# Review

One reader who did not build it, once per feature, after the last build commit. It decides itself
how to check; the prompt says what to check against and, for a capture, the shape of the
comparison: an inventory of what the capture draws. There is no script and no second round.

## Send it

Fill the plan's `**Review:**` line with `sent at <HEAD short hash>`, then start a fresh sub-agent -
never yourself, never one that wrote the code - with the prompt below. Fill the brackets; paste the
user's request verbatim, captures listed by path. Add nothing of your own: no summary of what you built, no
hint of where to look.

`<spec>` is one of two sentences:

- with a plan: `The approved plan is .specs/features/<feature>/plan.md, and the design captures it
  cites are in .specs/features/<feature>/captures/.`
- without one: `There is no plan: the spec is the request quoted below and the user's answers to
  its product decisions, quoted under it.`

```
Someone else implemented a feature in <repository path> (branch <branch>). The user's request is
quoted below. <spec> The work is every commit after <base commit>, plus anything uncommitted.

Check whether what was built does what the request and the spec ask. Decide yourself how to
check it. At least:
- read the request, and each reply quoted in the plan's `## Answers`, sentence by sentence against
  what was built, not only the criteria: a clause of a reply binds like the request;
- for a screen, open the running app at each capture's size, bring it to each captured state, and
  inventory the capture: one row per thing it draws - each text, control, icon, colour, border,
  alignment, row height and spacing, and what fits in the window - marked `same` or `differs`,
  with what the running screen shows instead. A difference the spec approves is noted, not
  counted. Write the rows to the review, one table per capture;
- read the code hardest where behavior goes wrong: undo and reversal, money and rounding, bounds,
  the rules of the existing code the change must keep, and each `## Must never` row on every path.

Look for behavior that is wrong, not for tests that are weak: do not grade the tests. A suspicion
that money, stock or data is lost or misstated, that something is refused that should pass or let
through that should be refused, or that a quoted reply is broken, gets one probe - a throwaway test
or request, kept in a scratch directory outside the repository - with its input and what it returned. Probe nothing else. A
suspicion no probe confirmed, a weak test and anything smaller is a note.

Do not change the code, do not commit, and do not change the data the running app holds or anything
outside the repository but that scratch directory. To reach a state the data does not have, stub the response in the browser
or use a throwaway copy of the database, and say which in the review. Write to .specs/features/<feature>/review.md, and reply with the same: your verdict; `## Findings`,
each problem a probe confirmed, with the probe, and each `differs` row; `## Notes`, the rest, one
line each.

Environment
- Stay in this repository; do not change the workspace root.
- <how to start the app, its ports, and any other copy of the app running at the same time>
- No git push.

The user's request:
<verbatim>
```

With no sub-agents, run the prompt in a new session, or hand it to the user, and say so in the
report.

## Fix once

Read `review.md`. Fix its `## Findings` in one pass, under the same rules as the build: the smallest
change that makes the probe right, and the probe becomes a test in the repo. Notes are not fixed;
the report lists them. Then
write the `**Fix pass:**` line - `done - <what it changed>`, or `done - no changes needed` - in
`plan.md` when there is one, and commit. The line, not a later commit, records that the
pass happened, so an empty review closes too; it still ends with the build committed and the tree
clean, including what the reviewer's browser left behind.

A finding where the screen departs from a binding capture - every `differs` row of the
inventory - is not yours to keep: the capture is the user's (rule 3). Fix it in this pass, or,
when fixing it needs a decision - another layout, a change to a shared screen - ask the user;
never leave it with a reason of your own. Before committing, open each fixed state at the
capture's size and check its rows again yourself: a fix that moves one element often moves its
neighbours. Any other
finding that is a product decision goes to the user; one you disagree with stays, with your reason
in the report. There is no second review.

## Report

Lead with the outcome: what was built, the commits, the review's verdict, what the fix changed, and
what it did not change and why. A red command or an unfixed finding is said first, never left for
the reader to find.
