plan: whole-branch and census review brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+73
−0
docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-branch.md+73 −0
diff --git a/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-branch.md b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-branch.md| new file mode 100644 |
| index 000000000..8e6eff762 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-branch.md |
| @@ -0,0 +1,73 @@ |
| +# Review brief: CLI registry step 1 (words), whole branch + census, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `cli-registry-words`, commit TIP_SHA. |
| +Under review: the diff `197cc40ca6fd98dc80bb7baadb59206cabab9954..TIP_SHA` (git diff against the merge base |
| +with main). |
| +Authorities (merged on main): `docs/superpowers/specs/2026-11-09-cli-registry-design.md` |
| +rev 5; AGENTS.md "Stopping rules" and "The census: the reviewer decides". |
| +Plan (on this branch, reviewed READY AFTER FIXES): |
| +`docs/superpowers/plans/2026-11-09-cli-registry-words.md`. Earlier task |
| +reviews on this branch: `CODEX-FINDINGS-cli-registry-words-T1.md`, `-T3.md`, |
| +`-T7.md` (all applied; do not re-raise). |
| + |
| +You are an independent reviewer. Read the diff, then the spec and the code, |
| +and check every claim against the code at the merge base. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Spec rev 5 and its rulings (A0; box plumbing kept whole; no lint). |
| +- Recorded calls made during the build: `proof history` stays one raw leaf |
| + (its verb is read with its flags); whole-function dispatchers (`billing`, |
| + `move`, `devbox`) and the `ops host resolve` leaf re-prepend their word |
| + to the unchanged old function until their args step; `channels digests` |
| + parity row reclassified operator (its read is operator-gated). |
| + |
| +## What to check |
| + |
| +1. Byte for byte: does any invocation of any command change stdout, stderr, |
| + exit code, or whether the update hint runs? The golden corpus |
| + (`testdata/clireg-golden.jsonl`, 931 cases, recorded from the merge base |
| + binary; `clireg_golden_test.go`) is the gate: is it a sound gate, and is |
| + there a dispatcher shape it does not reach where the diff changed |
| + behaviour? Look hardest at Tasks 4-6 conversions (no per-task review): |
| + apps, env, secrets, config, auth, accounts, instances, canary, channels, |
| + releases, pipeline, move, email, store, relay, services, fleets, ledger, |
| + billing, db, devbox, ops. |
| +2. A0: does any converted dispatcher still pick a subcommand by comparing a |
| + word, outside the recorded exceptions? |
| +3. Tests that called old dispatchers: are signatures and behaviour kept? |
| +4. Parity guard (`internal/parity/cli.go`, `repo_test.go`, `parity/cli.tsv`, |
| + `parity/parity.tsv` changes): does it implement spec D2-D5 without |
| + weakening slice 3's rules? |
| +5. **Census verdict, per unit and envelope.** The card is |
| + `docs/superpowers/notes/census-proposal-cli-registry-words.md`, the |
| + CLAIMS `docs/superpowers/notes/census-claims-cli-registry-words.tsv` |
| + (its `#` lines describe units the census does not see), the overlay |
| + `internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv`, |
| + the record-write layer `internal/provision/cli_registry_words_census_test.go`, |
| + and two J4 exemptions in `internal/provision/plan14_input_inventory_test.go` |
| + (`runSystem`, `systemVerb` kept only for their tests). Apply AGENTS.md's |
| + census rules: reject if the change lets root open, run, query or follow |
| + anything it did not before from a path or input a tenant, an app or a |
| + box agent can create, write or name; if it weakens a check, refusal, |
| + validation, argument or environment root relies on; if a disposition is |
| + wrong; if a unit moved rather than went; or if the diff cannot settle |
| + it. Otherwise approve. Give one line per unit and envelope. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| +- **P2**: wrong or missing. Fixed without reopening this review (the census |
| + still checks the fix). |
| +- **P3**: clarity or polish; never a reason for another round. |
| + |
| +A P1 states its failure scenario and the evidence (file:line). |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3, each with evidence, failure scenario, fix and |
| +fault family. Then the census verdict lines. End with exactly one verdict: |
| +READY, READY AFTER FIXES (no P1), or NOT READY (P1s listed). |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of |
| +your own. Do not run the full test suites. |