` (it merges with `--match-head-commit`; the message is the PR title plus the
commit bullets and `Closes #N` — writing-standard.md § 1). Exit 6 = the head moved after review → your evidence is void;
leave the card in **Review** with a `[reviewer]` comment naming both shas.
The gate owns the merge decision (config `merge_policy`, `migrations`):
- **Exit 9 — verification-readiness.** Halt the run; preserve card, approval, claims, and worktree. Configure `verify_commands` with the owning project's real checks and restart explicitly. No bounce to Build, rebase retry, approval request, or bare merge.
- **Exit 7 — a human merges.** `merge_policy` matched (money / auth / schema label,
path or added-line keyword; a diff over `auto_max_lines`, default 400 — "big PR — please
review"; `default: "human"`). `schema` means destructive only (DROP / TRUNCATE / RENAME);
an additive migration follows `migrations.allowed_envs`, and a live DB is always human.
Card → **Blocked** with the 🙋 template: `Why blocked` quotes the gate's
`human-gate:` lines; `To unblock` = review PR # and merge it yourself, OR comment
`done` to approve (the next wave re-runs the gate, which merges). Label `needs-you`.
- **Exit 8 — 🙋 needs you.** Migrations for a database outside
`migrations.allowed_envs`, an allowed migrate command that failed, or a declared
human-only step. Card → **Blocked** with the 🙋 template
(`block-template.md` → "🙋 Needs you"), the gate's `needs-you:` commands copied
verbatim into `To unblock`, label `needs-you`, `blocked-by: -`. After the human
comments `done` after the current pinned request, the next wave verifies their
permission and the head, then moves it to Review. Re-run the gate; labels do not
authorize it. For exits 7 and 8, copy `approval-request:` into the canonical
issue block and link it from the PR (no duplicate request); see block-template.md.
- The rule in one line: the robot migrates the databases it was allowed to test its
work; live databases, money, auth and destructive schema changes wait for a person.
3. **Confirm the merge landed** — never trust the merge command's exit code:
**Exit 79 — required GitHub evidence unavailable:** stop the current run. Leave
the card, approval, claims, and worktree intact. Report the local halt reason;
do not classify missing data as safe, bounce it to Build, or post a new approval
request. Explicit recovery is in run-workflow.md → Required GitHub evidence.
`gh pr view --json state,mergeCommit` must report `MERGED` plus a commit sha,
and that sha must be an ancestor of the base branch
(`git merge-base --is-ancestor origin/`).
4. Only then: close the issue, move card Review → **Done**, post the ✅ comment citing
the merge commit sha.
5. Merge refused (failing checks, conflicts, branch protection) → card Review →
**Blocked** with the §4 Block template naming the blocker. Never leave it in Review;
a card left in Review gets re-picked and re-reviewed indefinitely.
**Invariant:** a card in `Done` has its code on the base branch. The run loop's
landed-work halt gate reads `Done` as its definition of progress, so a card marked Done
without a confirmed merge makes a runaway look like a healthy run.
### Prefix discipline
- Every new review thread Reviewer writes MUST start with its owner lane — `[builder]`, `[qa]`, or `[reviewer]` — then a label: `[blocker]`, `[issue]`, `[suggestion]`, `[nit]`, `[question]`, `[praise]` (writing-standard.md § 4). Older PRs may carry `[QA]` / `[review]`; read them as `[qa]` / `[reviewer]`.
- Unprefixed **top-level** human PR comments → treat as 🧑 Block reason. Move card Review → Blocked with the full §4 template.
- Inline human review-thread replies → context only, no Block.
### `super-truth` is folded into super-review
The standalone `super-truth` skill is removed (spec §10 item 8.9). The adversarial pattern is now built in — see next section.
## Adversarial mode (folded from super-truth)
Activated per `config.truth_gate`:
- `off` — never adversarial.
- `non-trivial` (default) — diff ≥10 lines OR labels in `{security, migration, payments, auth}` trigger adversarial.
- `always` — every card.
When activated, spawn 2 sub-agents in parallel:
- **Code-grounder.** Verify cited file:line still exists and matches claims.
- **Historian.** `git blame` the changed lines; check for ADRs / prior incidents.
**Use this brief verbatim.** Fill the `<…>` slots; do not reword, add or drop lines. A
reviewer that wrote its own brief once told the sub-agents over-engineering was blocking,
and a correct PR was held for it.
```
You are the in an adversarial truth-check of PR #.
Job:
Read the issue ACs and the diff first and form your own hypotheses. Only then read the
builder's summary below, as claims to check, not as the frame.
ACs:
Diff:
Builder's summary (claims):
Budget: at most 50 gh calls; prefer local git. Over budget: confidence "insufficient_data".
Class every finding: Gap / Bug / Verification miss / Scope drift / Over-engineering / No issue.
Severity: Blocker / Should fix / Nit.
Over-engineering is ALWAYS Should fix and NEVER Blocker on its own. It does not lower your
confidence score.
Confidence 0-100 = how sure you are the PR's claims are true and the code does what the ACs
ask. Design taste and over-building do not count against it.
Return: findings (class, severity, file:line, one line each) and confidence.
```
**After collecting, the Reviewer re-applies the rules itself.** Whatever a sub-agent wrote:
reclass any Over-engineering finding marked Blocker to Should fix, and ignore it when
deciding merge or bounce (step 7). A sub-agent that lowered its confidence only because of
over-engineering is re-scored without it. The merge decision is the Reviewer's, not the
sub-agents'.
**Aggregation rule: take the MINIMUM of the two scores.** Rationale: one strong skeptic should be enough to block.
Compare aggregate to `config.truth_threshold` (default `70`):
- **Below threshold** → Reviewer MUST NOT approve. Open `[reviewer]`-prefixed PR thread quoting the lowest-confidence sub-agent finding. Write the full §4 Block template comment. Move card Review → Blocked with reason 🛡 truth-check failed (confidence X/100). The bot's "Why I cannot decide" line names the specific sub-agent finding it could not confirm.
- **Above threshold** → continue to approval decision.
### Block/Skip exits use the §4 mandatory template
Same rule as super-build/super-qa.