Skip to content

Studio map: the Map text review checks still-true items of touched parts #697

Done

Description

@danielrispler

Parent

#687

What to build

The Map text review also asks "still true?" of the unchanged map text of each part whose owned files a PR changed, and the page's review view carries the flags. This ticket is the whole server side and the wire seam that ticket 2's Ratify rows read; the page shows nothing new yet.

  • system-map gains a public function that says which of a part's held items a list of changed files reaches, by the map's own path patterns (Studio map: the Map text review asks "still true?" of text a PR left unchanged #687, Implementation Decisions, "Modules").
  • A part is touched when the PR changed a file it owns, by the map at the PR's head, the placement the PR brief and Guard with a law use. Ignored and unowned files touch nothing.
  • A touched part's still-true items: part:<id>/purpose, part:<id>/caption, held:<part>/<n> for each held item whose paths hold a changed file or that has no paths, link:<id>/reason for each link with the part at either end, and law:<id>/text for each law with "backing": "trust" on the part or on one of those links (not on a flow). Not the part's name, not empty text. An item the PR changed is a changed item only. A still-true item whose id takes refuses is skipped and not counted in left_out.
  • A review item carries a kind, changed or still-true. The prompt lists the two kinds under their own headings, and says still-true text was not edited by the PR and is judged against the code at the head. Its ids only, never text; the answer's shape and the four verdicts are unchanged.
  • A still-true verdict's key is its id, a hash of its text, and a hash of the head's blob ids of the touched part's changed files in path order (for a link, both ends' changed files; for a law on a link, the link's). A deleted file enters as its path and "deleted". Changed items keep today's key.
  • One run per head with the unjudged changed and still-true items; 10-minute limit; no item cap. When it runs is unchanged but for the item set: on a stored brief at a head with any unjudged item, on Daniel's own PRs; a stranger's PR only on "Review map text", offered only when the head has a changed item, its still-true items joining that run.
  • pr_map_review's view gains the flagged still-true verdicts only (supported ones are not sent), each with its id, verdict, why, cites, its display name and its text as the head's map has them, read by the server. Each also carries the ratify id the page decides it by (the review item's id joined to its verdict key) and whether a ratify record of kind still-true with that id exists for the PR, so an accepted or overturned flag is not offered again. checked and flagged still count changed items.
  • The PR's review file keeps still-true verdicts beside the changed ones with their kind and key; a file without the new fields reads as today, a missing kind being changed.

Acceptance criteria

  • A PR that changes one part's file and no map text yields that part's purpose, caption, the held item on that file, a held item with no paths, its link reasons and its trust law; not its name, its other held items or its check-backed law.
  • An item the PR changed is reviewed once, as changed.
  • A second head that changes the same file again reviews its still-true items again; one that changes only another part's file reuses their verdicts.
  • The prompt names each item's kind under its own heading and holds no map text.
  • A supported still-true item is not in the view; a flagged one is, with its name, text at the head, ratify id and decided state.
  • A stranger's PR starts nothing until "Review map text"; a PR with only still-true items offers no such button.
  • A record file from before this spec reads with its verdicts (a fixture written by today's build).
  • ui/types.ts's MapReview matches the server's view under wire-types-agree, and every typed MapReview literal still type-checks.
  • system-map.json's Background runs held item and docs/studio/behaviour/background-runs.md describe still-true items.
  • Run each new test red, an assertion failure, not an import failure, before writing its fix.

Reading

Touches

  • Files: system-map/src/touched.rs, system-map/tests/touched.rs, server/src/map_review.rs, server/tests/map_review.rs, server/tests/wire.rs, ui/types.ts, scripts/snap/fixtures-brief.ts, ui/tests/map-brief.test.mjs, ui/tests/ratify.test.mjs, ui/tests/map-ratify.test.mjs, system-map.json, docs/studio/behaviour/background-runs.md
  • Session: auto mode
  • Route: strong · effort high — changes the stored review record, the wire type and the items queued per run

Activity

  1. added
    ready-for-agent
    on Nov 26, 2026
  2. danielrispler commented on Nov 27, 2026

    @danielrispler
    OwnerAuthor

    Resolved by #715 (fd109bc): still-true items of touched parts reviewed with changed items in one run per head; flags in pr_map_review's view with name, text, ratify id and decided state. Final-review fixes (072b33c, d4bee4a): changed on the view so a still-true-only head shows no review line, old-build rewrites keep still-true verdicts, non-ASCII paths in the changed-file list.
    Route outcome: strong·high claude/opus → pass | 25m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions