# Dispatch the reviewer, then record the findings This step runs once the checks are recorded. One dispatch answers six checks and the mutation survivors. One call records what came back. ## Assemble the brief Run: ``` "${CLAUDE_PLUGIN_ROOT}"/skills/review/scripts/review-actions.sh brief "" ``` It refuses at exit 62 when `checks` recorded nothing, because five of the eight lenses read its results. It writes the brief to `review/brief.json`. The brief holds the criteria and the non-goals from the frozen contract, and every work order. A non-goal the live contract changed or added after the freeze carries its live text, and `nonGoalChanges` lists both texts. A criterion changed after the freeze carries its live text too, and `criterionChanges` lists both texts, unless a frozen test names it. Then `brief` and `close` refuse at exit 3, because that test proves the frozen text. It holds the path to `review/diff.patch`. It holds the research records. Each finding carries the paths its source names, each marked on disk or not, and its URLs apart. It holds `guideBodies`, the guide bodies design opened, each marked on disk or not. It holds `practiceSearch`: the review's own practice search and its count of findings with a source, else null. It holds the results of checks 4 to 8, with every tool row and every mutation survivor. It holds the findings implementation ruled deferred. It holds `pendingDecisions`: the findings and departures a build left for the person. It holds `playbooksPath`: the path of `records/playbooks.json` when research loaded one, else null. It holds `absenceClauses`: every done-when clause the tests step routed here, read from the ledger. The call prints the brief's own path, the path the findings go to at `review/findings.json`, and the counts. Read neither file into this conversation, per SKILL.md. Its `reviewer:` line says whether to dispatch the reviewer. ## Search for current practice when no guide is on disk `practice-search: dispatch` means no guide body is on disk and the review has not searched yet. The `reviewer:` line then reads `wait`. A missing guide is a reason to look, never a reason to skip the check. So search before the reviewer runs, in every run mode, light included. Dispatch `outward-searcher` once. Its message lines are the run mode, the words, and the bound, as its own definition asks, and no paths. The words are the frameworks `read` printed, then "current best practice", then the task's goal in a few words. The bound is official documentation and maintained sources for those frameworks, current for the release the code uses. Record each finding the searcher returns, the way research records one: ``` "${CLAUDE_PLUGIN_ROOT}"/skills/research/scripts/research-actions.sh record "" \ --search review-practices --searched-for "" \ --text "" --source "" ``` Give no `--criteria-served`. A practice serves the guides and practices checks, not a criterion. Keep `fetch-failed` in the text of a snippet. A search that found nothing is recorded once, with `--source` the words "searched and empty", so it names no URL. Then run `brief` again. The script decides what the search proves. `brief` counts each finding with a URL that is no `fetch-failed` snippet and no searched and empty answer. A count of one or more makes the search the body both lenses judge. Each of the two checks then reads met only when the reviewer's `practiceJudged` names, for that lens, a counted finding. Otherwise it reads unknown, a warning the person reads at close. `findings` warns when the search holds more or fewer findings than the brief the reviewer read. `findings` and `close` also warn when a non-goal changed after `brief` ran. An autonomous run refuses each at exit 51 instead. ## Dispatch the architecture reviewer **Dispatch only on `reviewer: dispatch`.** On `reviewer: skip`, no order commits in the code repository, and no order routed a done-when clause here. The diff then holds nothing the task produced, and every lens would read undeclared. So skip the dispatch, and run `findings` below with no `--findings`. The record keeps the reason under `reviewerSkipped`, and the summary prints it. Tell the person that reason in one line. A routed clause keeps the dispatch, because it still needs a judge. **Dispatch `architecture-reviewer`**, on opus, with the message SKILL.md names: the role, the run mode, the brief's path, and the findings path. A critic runs at the top model whatever it judges. **The prompt carries no brief content.** The role opens every body itself, and pasting one here spends this conversation's context on what the file already holds. **One dispatch carries all eight lenses.** Eight dispatches would read the same diff at eight times the cost, and a finding does not change because a different context raised it. The lens words are fixed, and a check reads its verdict off the lens that raised the finding: | Lens | The check it answers | |---|---| | `non-goals` | check 2, the task did what it said it would not do | | `solid` | check 9, a principle finding with file, lines and rule | | `dry` | check 10, duplication, including against untouched code | | `architecture` | check 11, the code does not match the orders design wrote, or business logic sits in the UI layer | | `guides` | check 12, a guide research cited was not followed | | `practices` | check 16, an accepted framework practice was not applied, or a play in `records/playbooks.json` was contradicted | | `mutation` | a survivor inside code a criterion covers | | `purpose` | check 3, a hunk that serves nothing, or fails one of the four purposefulness questions | Checks 3 and 4 each have a script half and a lens half: `purpose` for check 3, `mutation` for check 4. An unmet script half decides the check. On a met script half, the lens half decides it by the rule for lens checks below. A medium or high lens finding reads unmet in every case. A `purpose` finding keeps the file and lines. No dispatch record is opened, and none can be: `dispatch-open` requires a work order id, and a task level review has no order. SKILL.md says what follows from that. The role holds Read, Glob, Grep and Write, and no Bash, so it runs nothing. **Its read is wider than the per order reviewer's, deliberately.** Duplication against untouched code and coupling across orders cannot be seen inside a diff, so it holds Glob and Grep over the code path. Do not narrow that by hand. **The routed done-when clauses come back as one verdict each.** A clause that asserts an absence says the change added nothing of a named kind. No test of it could be watched failing, so the tests step routed it here instead (live-run row 184). The reviewer judges each one against the diff. It writes `absenceVerdicts` in its findings file, beside the findings and the catalog notes. The three words are met, unmet and unknown. Each verdict also says, as `testable` yes or no, whether a test could have watched the clause fail. `findings` records one row per clause, and one `absence-clauses` check over them all. That check reads unmet when one clause reads unmet or testable yes. It reads unknown when one reads unknown or gave no testable answer, and met when every one reads met and testable no. It reads not-needed when no order routed a clause. The verdict rules then apply as they do to every other check. So a clause nobody could judge is a warning, and so is a clause a test could have proved. The summary prints one `absence()` line per clause. Name each one that reads testable yes to the person: it takes a test with a red run. Do not judge a clause yourself and do not send one back: the reviewer reads the diff, and this conversation does not. **Check 16 asks the catalog for nothing.** An agentic recipe is searched for by capability, and that search resolves no body, so there is no path to ask for. A recipe research never found was never a practice this project accepted. The reviewer opens the paths the research records already hold. ## Record the findings Run: ``` "${CLAUDE_PLUGIN_ROOT}"/skills/review/scripts/review-actions.sh findings "" \ --findings ``` It names the code path moving, or its tree going dirty, since `checks` ran. So does a practice search or a non-goal that changed after `brief` ran. A file the role left behind is caught there, rather than read as a finding. With a person present each is a warning in the task record. An autonomous run refuses at exit 51. It refuses at exit 3 with no `--findings`, unless `brief` printed `reviewer: skip`. It records checks 2, 9 to 12 and 16, and every finding. It lowers checks 3 and 4 where their lens raised a finding. It records one row per routed done-when clause, and one more check for them all. It prints one summary line per check with the counts. Each of those checks reads met when its lens returned nothing, unmet when that lens returned a finding, and unknown when the findings file is absent or unreadable. **An absent verdict is never a clean one**, and version 5 paid for that four times. When every finding of a lens is low, the check reads met, and each finding stays follow-up for completion to offer. Check 16 has a floor before its lens, described in `references/checks.md`: a playbook record that was never loaded reads unknown. Checks 12 and 16 have one more floor, and it is the research records. Both read them and nothing else. A task whose research records cite no source leaves both undeclared, because neither lens had a guide or an accepted practice to judge against. A task with no research record at all leaves both unknown, because nobody looked. Met means a judgement happened. So where the brief puts no guide body on disk, both read unknown when their lens raised nothing. A code file research cites is not a guide body. A practice the review's own search found with a source lifts that floor, when the reviewer's `practiceJudged` names it for the lens. Check 16 also escapes it when the playbook record has a loaded source. With neither, each check waits for the person at close. ## Classify every finding - **A finding citing a criterion at medium or high severity** is this task's work. `close` records that criterion unmet, and the task is not done. - **A finding citing a non-goal** is this task's work the other way. The task did what it said it would not do. - **A finding citing neither, or a low one citing a criterion,** is recorded with `disposition: follow-up`, and named in the report, whatever the run mode. Interactive, offer one task per finding, and for each yes run: ``` "${CLAUDE_PLUGIN_ROOT}"/skills/completion/scripts/completion-actions.sh follow-ups "" \ --create ``` That script owns the task id, `-`, and writes the goal from the evidence. Completion later finds the task by its folder, so no field is added. Autonomous, nothing is created here. Folding a finding in silently is what scope exists to prevent. - **Severity overrides the third case only.** A high severity security fault is raised at once, to the person, because leaving it queued ships it. The severity words are high, medium and low. **The builders' reports are refused as authority.** They are unverified claims, and a reason in one never lowers a finding's severity. The earlier stages' conversations go with them. **The per order findings are refused as settled.** A finding implementation ruled deferred at its fix round cap is not closed. `finished.json` carries each with its reason and the id it linked to, so the first two cases above apply to it, and this step classifies it again. A deferral is a person saying not now, never a person saying this is fine. Report the findings by lens, with a count and the id each one cites, and name the findings file's own path for the person to open. Name every finding carrying `disposition: follow-up` as work nobody has a task for yet. Do not read the evidence bodies into this conversation, per SKILL.md.