AGENTS.md: stopping rules and a review brief template
Sessions have been spinning: three ran 22-25 days, one made 520 Astra runs, region HA 1b-next reached review round 13. The lessons that stop it (refuse up front, invariant tests, trim per-task review) lived only in Claude's memory, which Codex and worktree sessions never read. Adds eight stopping rules to AGENTS.md (round budget, same-fault-family stop, risk-sized review, no review against unmerged work, no dormant features without a switch-on date, visible slice first, one session per plan, report spinning unasked) and a brief template whose three-way verdict (READY / READY AFTER FIXES / NOT READY) stops P2s and P3s from starting another round.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+119
−0
AGENTS.md+54 −0docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md+65 −0
CI failed — run details
diff --git a/AGENTS.md b/AGENTS.md| index a05cc3c01..c829c035a 100644 |
| --- a/AGENTS.md |
| +++ b/AGENTS.md |
| @@ -31,6 +31,60 @@ Always name the model explicitly when dispatching; an omitted model silently |
| inherits the session's (usually the most expensive). A precise brief beats a |
| capable model — exact values, file paths and interfaces go in the brief. |
| +## Stopping rules (Paul's rule, 2026-10-26) |
| + |
| +Work here spins when review rounds have no budget. In October three |
| +sessions ran 22 to 25 days each, one of them made 520 Astra runs, the |
| +region HA 1b-next plan reached review round 13, and `main` holds 508 |
| +Astra brief and findings files. Each time Paul found out by asking |
| +"still going?". These rules bind every agent here, Claude and Codex, |
| +sessions and subagents, and the reviewers they brief. |
| + |
| +1. **A plan or spec review stops at the first round with no P1.** Apply |
| + that round's P2 fixes without another round. P3s go on a follow-up |
| + list on the branch and never start a round. A fourth round on the |
| + same document needs Paul's go: ask with what rounds 1-3 found and what |
| + a fourth would buy. |
| +2. **Two rounds in the same fault family: stop fixing.** When each fix |
| + in one area produces a new finding in that area two rounds running, |
| + do not write a third fix. Offer Paul the choice: |
| + - refuse the case up front, with a gate before the work starts and a |
| + report for an operator (hostfiles, `RestorableWithinCap`); |
| + - cut the feature that produces it (instance policy, live memory |
| + growth); |
| + - state the invariant, enforce it in one place, and check it with a |
| + guard test or a randomized simulation (rootfs, the per-unit lock). |
| +3. **Size per-task review to risk.** A task gets its own Astra or Opus |
| + review only when it touches a security gate, root or termination, a |
| + cache, production storage, billing or a redirect. Everything else is |
| + covered by one whole-branch review before merge. |
| +4. **Never review against unmerged work.** A plan that depends on a |
| + design still changing on another branch waits until that design |
| + merges. Region HA's plans were reviewed against the declared |
| + interfaces of unmerged claim plans, so every claim revision reopened |
| + them. One design in flight per area. |
| +5. **No dormant feature without a switch-on date.** Every later plan |
| + touching its packages has to be reviewed against a feature merged |
| + behind an off switch. Before building one, name what a user gets, |
| + who is asking for it, and when it switches on. With no answer, keep |
| + it on its branch. Claims, region HA and nearest-region placement all |
| + sat dormant on `main`; claims was shelved on 2026-10-25 at spec |
| + rev 6.34. |
| +6. **Something Paul can see lands first.** Order a plan so its first |
| + merge changes something a user or Paul can observe. Measurement and |
| + scaffolding ride with that slice, not ahead of it. |
| +7. **One session per plan, with a finish line.** A session owns one plan |
| + or a stated slice, and ends when that merges. After three days or |
| + three context compactions, write the handoff (`amadan branch |
| + handoff`) and stop; a fresh session picks up from there. |
| +8. **Say so before Paul has to ask.** When 24 hours pass with no merge, |
| + or rule 1 or 2 triggers, post on the branch's discussion and tell Paul |
| + in the session: what is blocking, what the last two rounds found, and |
| + the cut you recommend. |
| + |
| +Review briefs follow `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`, |
| +which carries the round budget and the three-way verdict to the reviewer. |
| + |
| ## Operate via API and CLI (Paul's rule, 2026-08-06) |
| Day-to-day CARLOS administration goes through the console API and the |
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md b/docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md| new file mode 100644 |
| index 000000000..1db932cee |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md |
| @@ -0,0 +1,65 @@ |
| +# Review brief template |
| + |
| +Copy everything below the line into `CODEX-REVIEW-BRIEF-<topic>.md` beside |
| +the document under review (`-R<n>` for later rounds), fill in the angle |
| +brackets, commit it, and name that commit in the reviewer's prompt. The |
| +stopping rules in AGENTS.md set the budget; this brief is how the |
| +reviewer learns it. Delete sections that don't apply, never the |
| +severity, verdict or last paragraph. |
| + |
| +--- |
| + |
| +# Review brief: <spec, plan, task or branch>, round <n> of 3 |
| + |
| +Repo carlos/platform, branch `<branch>`, commit <full sha>. |
| +Under review: `<path>`, or the diff `<base>..<tip>`. |
| +Authorities: <specs and plans MERGED on main, by path>. Do not review |
| +against unmerged branches; if this work needs one, say so as a P1 and stop. |
| + |
| +You are an independent reviewer. Read the document, then the code it |
| +names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings <list, with where they are recorded>. Report only |
| + mechanisms that fail to honour them. |
| +- Findings declined in earlier rounds, with reasons in `<file>`. Raise one |
| + again only with new evidence. |
| + |
| +## What to check |
| + |
| +1. <specific, numbered: the risks this document actually carries> |
| + |
| +## Round <n> (delete in round 1) |
| + |
| +First give one line per P1 and P2 from round <n-1> (`<findings file>`): |
| +resolved, partly, or not. Then report only new findings. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| + Blocks merge. |
| +- **P2**: wrong or missing. Fixed without another review round. |
| +- **P3**: clarity or polish. Goes on a follow-up list; never a reason for |
| + another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). Do not |
| +raise a P2 to P1 to keep the review open. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3. Each gives the section or task, the problem, |
| +the evidence (file:line, verified), the failure scenario and a concrete |
| +fix. End with exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another |
| + round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +In round 3, a NOT READY also says whether the P1s share one cause, and |
| +whether refusing the case up front or cutting the feature would remove |
| +them. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |