carlos / platform Public

cli-registry-words

CLI command registry, step 1 (words). Spec: docs/superpowers/specs/2026-11-09-cli-registry-design.md rev 5, approved by Paul 2026-11-09. Plan: docs/superpowers/plans/2026-11-09-cli-registry-words.md.

  • internal/clireg: the node tree, the walk (Dispatch) and Validate. main() now dispatches from commandRoot(). - Every word the carlos binary dispatches on is a node: 274 runnable paths, system router transparent, ops host conditional. - Leaves call the unchanged handlers. - The box plumbing dispatchers stay whole (spec A0).
  • Byte for byte. testdata/clireg-golden.jsonl holds 931 cases recorded from the merge-base binary and replayed against this one, with zero differences.
  • Parity: parity/cli.tsv is generated from the tree. The guard now checks every CLI path, audience and the MCP column. Four rows were adjusted; channels digests is now an operator row, because its read is operator-gated.
  • Docsite reads the top-level commands from the projection, replacing the main.go scanner.
  • AGENTS.md rule: a word that selects code is a clireg node.

Reviews:

  • Astra: plan (R1 NOT READY, R2 READY AFTER FIXES), Tasks 1, 3 and 7 (all applied), whole branch READY.
  • Census: approved by Astra, recorded on #280.

Root-binary change; it rides the next box release. No behaviour change.

Commits 39
Discussions 0 0 open
Tasks 12/12 done

Activity