carlos / platform Public

spec: CLI registry review brief, round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 9f318cadbe1187fbfe29ba1963ef1a567673c3db parent 05ba34c
1 file changed, +89 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-cli-registry.md +89 −0
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-cli-registry.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-cli-registry.md
new file mode 100644
index 000000000..4470a0983
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-cli-registry.md
@@ -0,0 +1,89 @@
+# Review brief: CLI command registry spec, round 1 of 3
+
+Repo carlos/platform, branch `design-cli-registry`, commit COMMIT_SHA.
+Under review: `docs/superpowers/specs/2026-11-09-cli-registry-design.md`.
+Evidence beside it: `docs/superpowers/notes/2026-11-09-cli-dispatch-audit.md`
+(a read-only audit of every dispatcher; verify any line you rely on).
+Authorities (merged on main): `docs/superpowers/specs/2026-11-09-parity-guard-design.md`
+(slice 3, rev 3.1), `parity/`, `internal/parity`, `internal/docsite`,
+AGENTS.md ("Stopping rules", "The census"). 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, 2026-11-09: slice 4 is the Carloku MCP connector in three
+ projects; this is project 1, the registry. Design only.
+- Paul, 2026-11-09 (slice 3): the list of commands comes from a registry
+ the code dispatches from, not from a scanner.
+- Secrets are never entered through the connector.
+- Every existing invocation must keep working byte for byte (stdout,
+ stderr, exit code). Fixing the CLI's inconsistencies is a non-goal.
+- Out of scope: the connector, how a tool call executes, the confirmation
+ model (projects 2 and 3); `cmd/console`'s own CLI.
+
+## History
+
+This registry was section A of the slice 3 spec, reviewed three times
+(`CODEX-FINDINGS-parity-guard.md`, `-R2.md`, `-R3.md`, all in
+`docs/superpowers/specs/`). R3 left P1 R3-1 (no argument model) and P2s
+R3-2, R3-3 against it; Paul cut the registry from slice 3. This spec is a
+new design; its own budget is three rounds. First give one line per R3-1,
+R3-2, R3-3: resolved, partly, or not, then new findings.
+
+## What to check
+
+1. A2/A4: does a walk that consumes only command words, with every
+ remaining argument passed unchanged, reproduce every dispatcher in the
+ audit, including defaults that absorb unknown words (`DefaultOn`),
+ `system router`, `ops host`, the inline dispatch in main's switch, and
+ the pre-switch words? Name any dispatcher it cannot express.
+2. B1: can `Args.New` (bind + run, fresh state per call) carry a real
+ leaf's registration and handler unchanged, including `consoleOption`'s
+ package-level side effect, shared registrars, `flagWasSet`/`fs.Visit`
+ users, and the parent error mappings (`OnError`)? Try it on
+ `config destinations add`, `apps set` and `steering`.
+3. E1-E3: is the golden corpus deterministic and strong enough to prove
+ byte-for-byte for parse-level behaviour, and does the lint close the
+ gap the registry cannot (words dispatched inside handlers)? Can a new
+ sub-verb still land unseen?
+4. C: is the metadata enough for project 2 to generate a tool schema and
+ enforce account scope, and is C3/C4 sufficient to keep secret-taking
+ leaves from ever becoming tools?
+5. D: does the parity guard become complete over verb paths at step 1's
+ merge, and stay so through steps 2-7? Does D3's qualifier checking
+ break any existing row in `parity/parity.tsv`?
+6. A9 and the census: is the early phase unchanged in order and effect
+ (shim before scrub, `shimHooked`)? Is anything in the migration a
+ root-relevant change beyond argument routing?
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **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, a concrete
+fix and the invariant or trust boundary it breaks (that is its fault
+family). 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.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.