User Input
$ARGUMENTS
Outline
- Read
docs/skills/catalog.md#auto-review-loop-then-mergeanddocs/skills/catalog.md#merge-gate, plusAGENTS.md#program-bookkeepingfor the merge rules. - Scope the diff first: use the PR base from
gh pr view --json number,url,baseRefName,headRefName,isDraft, else the merge base withmain. For a stacked PR, review only the commits this PR adds on top of its base, and state which base was used. - Run independent reviewers over that diff, one per lens, without shared context: correctness, repo-standards conformance against
AGENTS.mdand both files under.specify/memory/, and spec/issue conformance where the branch names one. - Verify each finding adversarially against the code before acting: discard any claim without a specific line and a concrete failure scenario, and mutation-test a guard before trusting it.
- Apply surviving findings, rebuild, re-run affected suites as whole projects, and refresh generated maps when files or project references changed, staging every changed map by explicit path including
docs/maps/manifest.json. - Re-derive the diff and loop from step 3 until a round produces no surviving findings, or until the stated iteration cap; report a capped run as unconverged, not as a pass.
- Merge only through the Merge Gate: refusing is the default, the evidence comment must be posted on the PR first, and a red required check, a missing check run, a draft, or an unmerged base stops the merge even when the cause lies outside this branch.
Report scope, findings, discarded claims, and gate evidence. Do not merge without the posted PR comment.