plan: Task 7 review brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-T7.md+51 −0
CI failed — run details
Intent
<task-notification> <task-id>a25cc91a3c84e61eb</task-id> <tool-use-id>toolu_01ABo2JNKhf4HhFkTxcqaW5a</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/a25cc91a3c84e61eb.output</output-file> <status>completed</status> <summary>Agent "Implement Task 7 system words" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Task 7 is committed as **b1abd1d13bbad300829c8c883c7b279960e3c70b** (`cli: system words in the registry`) on branch cli-registry-words. The packed-refs.lock error printed during the commit; `git log -1` shows the commit landed and the tree is clean. The corpus went from 737 to 931 lines, all additions, and replay against the branch shows zero differences. **The system tree** (`systemCommand()` in system.go; it carries NoUpdateHint and replaces the old `system` leaf in commands.go): - `router` is a Transparent child with no audience. - **system's fallback:** - `help`, `-h` or `--help` prints `systemUsage` to stderr and exits 0. - Otherwise it calls the unchanged `systemUnknownVerbMessage`, passing `["router"]+args` when the last consumed word is `router` and `args` otherwise. It then prints the usage to stderr and exits 2. - The result matches today: `system router` prints "no verb given", `system router router` prints unknown verb "router", `system router help` exits 0, and bare `system` prints only the usage. - **Single raw leaves:** - Box-local: runsc-ensure, exec-sandbox-allows-prev, group-maintenance (`os.Exit(host.RunGroupMaintenance(...))`), files, guard-arm, guard-exec, journal-migrate, floor-allows-prev, apply, install-channel, host-env, named-units, db-worker. - Operator: update, status, rollback, cancel-activation. - **antivirus** {status, enable, disable, rotate-webhook-key}: each leaf is a closure calling `runSystemAntivirus(args, word)`. The fallback prints "no verb given" when bare, and "unknown verb" for anything else, help words included. Both exit 2. - **pdf** {status → `runSystemPDFStatus`}: the fallback prints the usage and exits 2 when bare or on an unknown word; a help word prints the usage and exits 0. - **layout** {status, migrate, revert → `runSystemLayout(sub, args)`}: the fallback prints the layout usage and exits 2 when bare. A help word prints it and exits 0. An unknown word gets "unknown verb" and exits 2. - **geoip** {publish, status, off}: the fallback works like antivirus. - **managed-fleets** {show, set → `runSystemManagedFleets(verb, args)`}: bare prints the usage to stderr and exits 2. A help word prints it to stdout and exits 0. Any other word goes to `log.Fatal`, exit 1. - **seeds-floor publish, legacy-routes assign, lifetimes cutover, hosts-used status**: one shared helper, `systemOneVerbCommand`. Any other word prints `systemUsage` and exits 2. - **box** {role (raw, operator), publish-record (box-local)} and **group** {role}: the fallback prints `systemUsage` and exits 2. - **demos** {status, serving, takedown, takedown-status → `runSystemDemos(verb, rest)`, the old loop and after-loop checks unchanged}: - reports is a branch with child resolve and an unnamed list default on all three cases, running `runSystemDemosReports(resolve, args)`. - The demos fallback prints the help to stdout and exits 0 when a help word is the only argument; everything else prints `systemDemosInvalid` and exits 2. **Kept whole:** only the five box plumbing dispatchers A0 names. Splitting the other families changed no check order: - In every family the word was read before any other work. - In demos, every error before the session call already printed the same message and exit code. **Corpus extras:** all of the cases you listed, plus `system box role x` and `system group role x y --zz z` to pin the `roleArgs` change. Nothing needed Golden.Skip or SkipBare: both recording runs matched and nothing timed out. The root-only verbs fail fast as non-root, or before their parse in the case of `RunSystemFiles`. **Tests:** the system test set, the tree/projection test set, internal/parity, internal/docsite and internal/clireg all pass. `go vet`, `gofmt`, `go build ./...` and the darwin and windows builds are clean. I didn't run any internal package tests because no internal package changed. **Decisions the plan didn't settle:** 1. **No `SystemCommands()` exports in internal/host, internal/hostenv or internal/dbreads.** The plan's file list names them, but those leaves have no words to declare. Building them in package main from the existing exported functions means no root-side code changes, which fits A0's "census sees no change" and Task 6's precedent (system.go `systemCommand`). Every internal/host entry point signature is unchanged. 2. **`systemVerb` is kept, not deleted** (system.go, just below `systemFallback`). Eight test files call it. It now reads its words from `systemCommand()`'s children, so there is one list. `runSystem` is a one-line `clireg.Dispatch` wrapper. 3. **`roleArgs` now takes the arguments after `role`** (system_roles.go `roleArgs`). The check `len<3 || rest[0]!="role"` became `len<2`. Both give the same usage and exit 2, and the extras pin it. 4. **Old family dispatchers deleted, since nothing else called them:** `runSystemAntivirusVerb`, `runSystemPDFVerb`, `runSystemGeoipVerb`, `runSystemBoxVerb`, and the four `*Verb` one-word wrappers (renamed to `runSystemSeedsFloorPublish`, `runSystemLegacyRoutesAssign`, `runSystemLifetimesCutover`, `runSystemHostsUsedStatus`). `runSystemGroupVerb` became `runSystemGroupRole`. `runSystemDemos`, `runSystemDemosReports`, `runSystemLayout` and `runSystemManagedFleets` now take the verb as a parameter. `runSystemDemos` keeps its now-unreachable default `invalid()` arm unchanged. 5. **The guard-exec test key** is `goldenRootPub` from internal/release/golden_test.go:32. The internal/host tests generate their keys at runtime, so there was no fixed host key to use. `CARLOS_DEPLOYMENT_BUCKET` stays unset, so the key-set case exits 1 with `hostfloor: authenticated floor required` before reading any disk; the key-unset case fails on the key. 6. **Audiences:** box-local for the plumbing words plus box publish-record, operator for the rest. `system runsc-ensure` and `system exec-sandbox-allows-prev` now appear in parity/cli.tsv as box-local, but parity/parity.tsv:225 has no row member for them. I didn't edit parity.tsv because that is Task 8's guard work, but Task 8 will need to add them. `make parity-doc` changed only parity/cli.tsv (43 system leaves replace the one `system` row); docs/parity.md is unchanged. No scratch files or binaries are left behind.</result> <usage><subagent_tokens>174193</subagent_tokens><tool_uses>52</tool_uses><duration_ms>613090</duration_ms></usage> </task-notification>
Attributed to this commit: 18.3 g CO₂e (2,246,625 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on cli-registry-words, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-T7.md b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-T7.md| new file mode 100644 |
| index 000000000..c12dea21f |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-cli-registry-words-T7.md |
| @@ -0,0 +1,51 @@ |
| +# Review brief: CLI registry step 1, Task 7 (system, root-run), round 1 of 3 |
| + |
| +Repo carlos/platform, branch `cli-registry-words`. Under review: the diff |
| +`60ec807c..b1abd1d1` (`system*.go`, `commands.go`, corpus). |
| +Authorities: `docs/superpowers/specs/2026-11-09-cli-registry-design.md` |
| +(rev 5, merged on main), sections A2, A6, A8 and B1 "Errors"; the plan's |
| +Task 1 (`docs/superpowers/plans/2026-11-09-cli-registry-words.md`) and its |
| +Interfaces block, which later tasks consume. |
| + |
| +You are an independent reviewer. Read the diff, then the spec and the |
| +plan, and check the code against them. |
| + |
| +## What to check |
| + |
| +The spec's A0 (box plumbing stays whole), A2 (fallback with `consumed`), |
| +A6 (`system router` transparent), B6 (`system demos`, `box`/`group role`) |
| +are the authorities, with the plan's Task 7 and the dispatcher audit |
| +(part B, "system"). |
| + |
| +1. Byte for byte: for every `system` verb, does every invocation shape |
| + (bare, help words, unknown words, `router` forms, flags before and |
| + after the verb, bad values) produce today's stdout, stderr and exit |
| + code? Compare the diff against the code at 7f4bdf3a, not only the |
| + corpus. |
| +2. Root-side order: does anything that runs as root (`apply`, |
| + `guard-*`, `group-maintenance`, `files`, `host-env`, `named-units`, |
| + `install-channel`, `journal-migrate`, `floor-allows-prev`, |
| + `runsc-ensure`, `exec-sandbox-allows-prev`, `db-worker`) now run a |
| + check in a different order, receive different arguments, or skip a |
| + check? Any such change is a P1. |
| +3. `system demos` split: does every verb still run today's manual loop |
| + and after-loop checks, with the same error for every bad input? |
| +4. Do the corpus extras pin the risky shapes, and is anything missing? |
| +5. Census: is this argument routing only (no root-read added)? |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **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. 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. |