Repository navigation
Done
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
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-mapgains 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 whosepathshold a changed file or that has no paths,link:<id>/reasonfor each link with the part at either end, andlaw:<id>/textfor 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 idtakesrefuses is skipped and not counted inleft_out. - A review item carries a kind,
changedorstill-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 kindstill-truewith that id exists for the PR, so an accepted or overturned flag is not offered again.checkedandflaggedstill 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'sMapReviewmatches the server's view underwire-types-agree, and every typedMapReviewliteral still type-checks. -
system-map.json's Background runs held item anddocs/studio/behaviour/background-runs.mddescribe still-true items. - Run each new test red, an assertion failure, not an import failure, before writing its fix.
Reading
- #619 decision: Q1 to Q3, which items, flags only, no base review.
- Studio map: the Map text review asks "still true?" of text a PR left unchanged #687, Implementation Decisions and Testing Decisions: the item set, key, record and view this ticket builds; tests drive
server/tests/map_review.rs's public surface, never private functions. - Spec Studio map: the Map diff and the Map text review (Step 4 of #474) #634, the Map text review's
takesrule and trust rules, which still-true items keep. docs/studio/behaviour/map.md: how to edit the system map and tag a test with@law:.
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
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Studio map: the Map text review asks "still true?" of text a PR left …
danielrispler commentedon Nov 27, 2026
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):changedon 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