carlos / platform Public

census: keep runInstances and runProof as their units

Rename runInstancesBoxList back to runInstances (the bare listing) and
runProofPut back to runProof (carlos proof put), so the census keeps both
unit identities and runProof its authority disposition (E1). CLAIMS for
both are now body claims; overlay, chain line and card regenerated from
the base: six body rows, no removed or new units. Record-write layer
re-lists runInstances (lit:instances) with its new digest and re-digests
instancesCommand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 427da4bc7dd04f6fc8ee75cfafcac722e38106f1 parent 6ea678a
7 files changed, +30 −49
  • cli.go +4 −4
  • docs/superpowers/notes/census-claims-cli-registry-words.tsv +2 −4
  • docs/superpowers/notes/census-proposal-cli-registry-words.md +6 −16
  • internal/provision/cli_registry_words_census_test.go +8 −10
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv +5 −12
  • proof_cli.go +4 −2

CI cancelled — superseded by a newer push — run details

Intent

Human

<task-notification> <task-id>aa7472fd22bf8ae87</task-id> <tool-use-id>toolu_016qmmm5kRHdNKcRTx4cHiXp</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/27979b8d-cc90-4f50-88f6-87ba41433627/tasks/aa7472fd22bf8ae87.output</output-file> <status>completed</status> <summary>Agent "Task 9 merge main and census" 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>Steps 1 and 2 of Task 9 are done and the census tests are all green. I added two test-only exemptions to make them pass, and the reviewer needs to rule on those (item 1 at the end). Two commits are on `cli-registry-words`; the tip is `6ea678aa15b904067b9d4c3ce7047257b45a4890`. The `packed-refs.lock` error printed as expected, and `git log` confirms both commits. **Merge.** `origin/main` (3 commits) merged with no conflicts as `8596404c`. Nothing touched `main.go`, `commands.go` or the corpus. `go build ./...` and `go vet ./...` pass. **Corpus base.** The base moved to `197cc40ca6fd98dc80bb7baadb59206cabab9954`, which is `origin/main`'s tip. The only CLI change on main is in `pipeline.go:runPipelineShow`: the "one channel, no pipeline set" line now prints only when the single channel is exactly `{Name:"edge"}`. No corpus case reaches that path. Replay before re-recording showed zero differences. I then re-recorded from the new base (931 cases) and `git diff` was empty, so no existing line changed. I couldn't find a ledger file in the repo to write the new base into, so record it wherever the ledger lives. **Parity.** `make parity-doc` changed nothing. Main added no new top-level command, so no new node or parity row was needed. The parity, docsite and clireg package tests pass, and so does the root `TestCLIProjection|TestCommandTree|TestTopLevelWords|TestUpdateHint|TestGoldenCases|TestCanary` run. **Census card** (`docs/superpowers/notes/census-proposal-cli-registry-words.md`): | Class | Count | Units | |---|---|---| | body | 4 | `system.go:runSystem` and `system.go:systemVerb` (authority B,C,D,F,G,J4); `system_managedfleets.go:runSystemManagedFleets` and `update.go:maybeUpdateHint` (legacy) | | envelope | 4 | `.`, `internal/cgroup`, `internal/clireg`, `internal/ops` | | removed | 2 | `cli.go:runInstances` (legacy); `proof_cli.go:runProof` (authority E1) | | new | 2 | `cli.go:runInstancesBoxList`, `proof_cli.go:runProofPut`, both written `legacy` / `accepted-legacy` | | sites, reads, quiet, left, other | 0 | | The overlay is `internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv`, with its line added to the chain file. **CLAIMS file.** It is at `docs/superpowers/notes/census-claims-cli-registry-words.tsv` and the `$TMPDIR` copy is deleted. `census-propose` refuses claims for units the census doesn't see. So `main`, `buildCommandRoot`, `RunShimIfRequested`/`Shims`, the clireg package, ops `Run`/`Commands`/`Fallback`, every renamed or split system function, `instancesCommand` and `sidecarsCommand` are described in `#` comment lines in the same file. That keeps them in front of the reviewer without breaking the tool. **Record-write inventory (9B8).** I added a new layer, `internal/provision/cli_registry_words_census_test.go`, built on `regionHAHeldWriteCensusInventory`, and pointed `TestPlan9B8RecordWriteCensus` at it. Classes and kinds are unchanged and no record write was added. The Task 2 note about `buildCommandRoot` is out of date: the literals now live in the per-command nodes, not in `buildCommandRoot`. - **Removed `main.go:main`** (key-site, `lit:instances,lit:sidecars`). Its `case "instances"` and `case "sidecars"` literals moved into the nodes below. - **Removed `cli.go:runInstances`** (key-site, `lit:instances`). It was split in two. - **Added `cli.go:instancesCommand`** (key-site, `lit:instances`). This is the node's `Name`, main's old case literal. - **Added `cli.go:runInstancesBoxList`** (key-site, `lit:instances`). This is `runInstances`'s bare listing, moved whole with its `flag.NewFlagSet("instances")`. - **Added `sidecars_cli.go:sidecarsCommand`** (key-site, `lit:sidecars`). This is main's case literal; `runSidecars`'s switch became its children. **Tests.** `go test ./internal/provision/ -run 'Census|Plan14|Plan9B8|RecordWrite'` passes, as does the full `./internal/provision/` package (287 s). The root `TestPlan14History|TestSystem|TestPlan9B` tests also pass. **For the reviewer:** 1. **J4 exemptions (my addition, outside the plan's step list).** `TestPlan14RootInputInventoryCoverage` failed with "no production caller" for `system.go:runSystem` and `system.go:systemVerb`. Since step 6 they are kept only for their tests (plan constraint 5), and production reaches `systemCommand` through `buildCommandRoot`. I added two `inputExemptions` entries in `internal/provision/plan14_input_inventory_test.go` with a `census-ruling-cli-registry-words` ruling. If the reviewer rejects that, the other route is to delete both functions and change their tests, which breaks constraint 5. 2. **`runProof` split.** It was `authority`, task E1. Its one file read (`os.ReadFile` of the `put` file) now sits in `runProofPut`, which `census-propose` wrote as a new `legacy` / `accepted-legacy` unit. That looks like a downgrade from authority to legacy, so the reviewer should confirm that disposition. This is a unit that moved rather than went, and the card's own rules ask the reviewer to check exactly that. 3. **Update-hint word list.** The old `noHintVerbs` map is now `NoUpdateHint` on the nodes. I checked it word for word against the old map, including `ops` (set in `hostclaim_cli.go`) and `system`. `__drain-call` and the two `__rootfs-check-*` words aren't marked, but they call `os.Exit` before the hint can run, as they did before.</result> <usage><subagent_tokens>145649</subagent_tokens><tool_uses>64</tool_uses><duration_ms>960235</duration_ms></usage> </task-notification>

diff --git a/cli.go b/cli.go
index 1889e8f42..b92e3e5de 100644
--- a/cli.go
+++ b/cli.go
@@ -576,7 +576,7 @@ func runRemove(args []string) {
// words, not flags, and must never reach fs.Parse: enable is the app's
// provisioning opt-in (instances_cli.go), create/list/delete are the
// console-API record fronts (issue #66). Every other invocation (bare, a
-// flag, any other word) is the bare listing form, runInstancesBoxList —
+// flag, any other word) is the bare listing form, runInstances —
// THIS box's registry routes, operator-side — unchanged.
func instancesCommand() *clireg.Node {
const cust = clireg.Customer
@@ -599,15 +599,15 @@ func instancesCommand() *clireg.Node {
raw("set-pages", cust, runInstancesSetPages),
raw("retry", cust, runInstancesRetry),
},
- DefaultLeaf: &clireg.Node{Audience: clireg.BoxLocal, Run: clireg.RawArgs(runInstancesBoxList)},
+ DefaultLeaf: &clireg.Node{Audience: clireg.BoxLocal, Run: clireg.RawArgs(runInstances)},
DefaultOn: clireg.OnAbsent | clireg.OnFlag | clireg.OnWord,
}
}
-// runInstancesBoxList is bare `carlos instances`: this box's registry
+// runInstances is bare `carlos instances`: this box's registry
// routes. A word that is no subcommand is ignored, as the flag set stops
// at it.
-func runInstancesBoxList(args []string) {
+func runInstances(args []string) {
fs := flag.NewFlagSet("instances", flag.ExitOnError)
reg := fs.String("registry", defaultRegistry(), "registry database")
fs.Usage = flagUsage(fs, "")
diff --git a/docs/superpowers/notes/census-claims-cli-registry-words.tsv b/docs/superpowers/notes/census-claims-cli-registry-words.tsv
index ec3d93707..f19a1071a 100644
--- a/docs/superpowers/notes/census-claims-cli-registry-words.tsv
+++ b/docs/superpowers/notes/census-claims-cli-registry-words.tsv
@@ -8,10 +8,8 @@ system.go:runSystem argument routing: its switch arms moved into systemCommand (
system.go:systemVerb argument routing: its hard-coded verb case list is replaced by a walk of systemCommand's children (same words, router dropped once, help words returned as before); parsing only, used by tests only now; no root read added
system_managedfleets.go:runSystemManagedFleets argument routing: the show/set word check, bare usage (stderr, exit 2), help (stdout, exit 0) and unknown word (log.Fatal) moved into systemManagedFleetsCommand's children and Fallback; runSystemManagedFleets now takes the verb as a parameter (verb, args) instead of args[0]; the same flags, the same set/show --file rule, the same one os.ReadFile of --file; no root read added
update.go:maybeUpdateHint argument routing: the noHintVerbs word map is replaced by the NoUpdateHint mark on the dispatched path's nodes (ran []*clireg.Node); the same words are marked noHint in commands.go (edge, agent, adopt, bootstrap, add, remove, route, ops, status, vet, release-keygen, version, help/-h/--help, update, system) plus the plumbing words that returned before the hint; the terminal, release-build and box-environment checks and the cache read are unchanged; no root read added
-cli.go:runInstancesBoxList argument routing: runInstances's bare listing form moved whole under a new name (body byte-identical after its subcommand switch: the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where runInstances fell through before; the reads are runInstances's own, none added; disposition stays legacy as runInstances was
-proof_cli.go:runProofPut argument routing: runProof's "put" case moved whole into its own function, reached as proofCommand's "put" child; the same flags, the same os.ReadFile of the one positional file and proofPut; the read is runProof's put-case read, none added; note runProof was authority task E1 and this unit is written new legacy accepted-legacy by census-propose: reviewer to confirm the disposition
-cli.go:runInstances removed: split into instancesCommand (the subcommand word switch as clireg children) and runInstancesBoxList (the bare listing, body unchanged); nothing deleted that a root read relied on
-proof_cli.go:runProof removed: split into proofCommand (word switch: history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before) and runProofKeygen, runProofGet, runProofPut with the case bodies unchanged; runHistory unchanged
+cli.go:runInstances argument routing: its subcommand word switch moved into instancesCommand (cli.go) as clireg children, so runInstances lost the switch and is now only the bare listing, body byte-identical after the old switch (the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where it fell through before; same reads, none added
+proof_cli.go:runProof argument routing: its word switch moved into proofCommand (history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before), keygen and get into runProofKeygen and runProofGet with the case bodies unchanged; runProof is now only the put verb, reached as proofCommand's "put" child: the same flags, the same os.ReadFile of the one positional file and proofPut; same read, none added; runHistory unchanged
#
# Not census units (they read nothing root-owned); covered by the envelope
# re-pins of ., internal/cgroup, internal/clireg and internal/ops. Listed so
diff --git a/docs/superpowers/notes/census-proposal-cli-registry-words.md b/docs/superpowers/notes/census-proposal-cli-registry-words.md
index f36b17392..74b14601f 100644
--- a/docs/superpowers/notes/census-proposal-cli-registry-words.md
+++ b/docs/superpowers/notes/census-proposal-cli-registry-words.md
@@ -1,9 +1,11 @@
# Census approval: cli-registry-words
-Ruling `census-ruling-cli-registry-words`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-cli-registry-words`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
+| `cli.go` `runInstances` | body | unchanged (13) | argument routing: its subcommand word switch moved into instancesCommand (cli.go) as clireg children, so runInstances lost the switch and is now only the bare listing, body byte-identical after the old switch (the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where it fell through before; same reads, none added |
+| `proof_cli.go` `runProof` | body | unchanged (1) | argument routing: its word switch moved into proofCommand (history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before), keygen and get into runProofKeygen and runProofGet with the case bodies unchanged; runProof is now only the put verb, reached as proofCommand's "put" child: the same flags, the same os.ReadFile of the one positional file and proofPut; same read, none added; runHistory unchanged |
| `system.go` `runSystem` | body | unchanged (0) | argument routing: its switch arms moved into systemCommand (system.go), one child list, router a Transparent child, the old default and help arms in systemFallback; runSystem is now clireg.Dispatch(systemCommand(), args) and is kept with its signature for its tests only (production reaches systemCommand through buildCommandRoot, J4 exemption added); every handler it dispatched to is unchanged; no root read added |
| `system.go` `systemVerb` | body | unchanged (0) | argument routing: its hard-coded verb case list is replaced by a walk of systemCommand's children (same words, router dropped once, help words returned as before); parsing only, used by tests only now; no root read added |
| `system_managedfleets.go` `runSystemManagedFleets` | body | unchanged (1) | argument routing: the show/set word check, bare usage (stderr, exit 2), help (stdout, exit 0) and unknown word (log.Fatal) moved into systemManagedFleetsCommand's children and Fallback; runSystemManagedFleets now takes the verb as a parameter (verb, args) instead of args[0]; the same flags, the same set/show --file rule, the same one os.ReadFile of --file; no root read added |
@@ -11,29 +13,17 @@ Ruling `census-ruling-cli-registry-words`. The independent reviewer approves or
Envelopes re-pinned: `.`, `internal/cgroup`, `internal/clireg`, `internal/ops`.
-Removed units: the scan finds neither the declaration nor any of its sites.
-
-| unit | recorded disposition | basis | what changed |
-|---|---|---|---|
-| `cli.go` `runInstances` | legacy, task accepted-legacy | accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added | removed: split into instancesCommand (the subcommand word switch as clireg children) and runInstancesBoxList (the bare listing, body unchanged); nothing deleted that a root read relied on |
-| `proof_cli.go` `runProof` | authority, task E1 | E17: operator saves exact signed authorization and challenge before delivery, resumes without renewal, and verifies enrolled-root exact completion. Existing proof branches are unchanged. Tests: TestPlan14HistoryOperatorWorkflow, TestPlan14HistoryOperatorConflicts, TestPlan14HistoryOperatorExactCompletion, TestPlan14HistoryWorkflowProcessCrash, TestPlan14HistoryCommandResume, TestPlan14HistorySavedFiles, TestPlan14HistoryCLIDispatch. | removed: split into proofCommand (word switch: history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before) and runProofKeygen, runProofGet, runProofPut with the case bodies unchanged; runHistory unchanged |
-
Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. 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 the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
-A removed unit's recorded disposition and basis are in its table above. For a removed unit or a retired envelope, confirm from the diff that the code is deleted and not moved: a read that moved shows on this card as a change to the unit that took it, and a unit moved whole shows as a new unit, a decision. Reject if a check, refusal or validation that root relies on goes with the deleted code and its callers' changes on this card do not account for that.
-
Recorded dispositions, which each change must still satisfy:
+- `cli.go` `runInstances`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added
+- `proof_cli.go` `runProof`: authority, task E1. Basis: E17: operator saves exact signed authorization and challenge before delivery, resumes without renewal, and verifies enrolled-root exact completion. Existing proof branches are unchanged. Tests: TestPlan14HistoryOperatorWorkflow, TestPlan14HistoryOperatorConflicts, TestPlan14HistoryOperatorExactCompletion, TestPlan14HistoryWorkflowProcessCrash, TestPlan14HistoryCommandResume, TestPlan14HistorySavedFiles, TestPlan14HistoryCLIDispatch.
- `system.go` `runSystem`: authority, task B,C,D,F,G,J4. Basis: rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own;rev3=census-ruling-design-pdf-service;basis=add dispatch for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Adds managed-fleets operator CLI dispatch; no direct read added; existing root command branches unchanged.;rev3=census-ruling-agent-start-demo-2;basis=system.go:62-66 adds the demos family dispatch to the console-only operator client (system_demos.go:19, system_demos_api.go:23); no direct read added and other root commands are unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Dispatches carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback} to internal/host; no read of its own.;rev3=census-ruling-gvisor-demos;basis=Dispatch fixed runsc-ensure and exec-sandbox-allows-prev system applets; no direct reads.
- `system.go` `systemVerb`: authority, task B,C,D,F,G,J4. Basis: rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own;rev3=census-ruling-design-pdf-service;basis=add recognition for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Recognizes managed-fleets as a CLI family; no read added.;rev3=census-ruling-agent-start-demo-2;basis=system.go:43-57 recognizes demos; parsing only, no direct read added.;rev3=census-ruling-region-ha-p3b2;basis=Recognizes group-maintenance as a system verb; parsing only.;rev3=census-ruling-gvisor-demos;basis=Recognize two root sandbox applets; no direct reads.
- `system_managedfleets.go` `runSystemManagedFleets`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-managed-fleets-2a;basis=Explicit operator CLI reads only the --file JSON settings input with os.ReadFile, then sends it to an authenticated configured-system-operator API; not called by a root unit or tenant request. Copy (approved review 2026-11-02): usage text and the invalid-JSON message now say managed fleet settings; no read changed.
- `update.go` `maybeUpdateHint`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input
-New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
-
-- new `cli.go:runInstancesBoxList`: reads +file:Open, +registry:App, +registry:Backing, +registry:Channel, +registry:Environment, +registry:Hibernate, +registry:Host, +registry:Kind, +registry:Replication, +registry:Status, +registry:Unit, +registry:Version, +whole:Route; written legacy, accepted-legacy, frozen
-- new `proof_cli.go:runProofPut`: reads +file:ReadFile; written legacy, accepted-legacy, frozen
-
-Seal: `a6f3f9eec4aac5ea88f20d0e52eaa0651fce80c0d49b60883ff61ceade33d288` → `7a3e507ea1908738a7b710b6467dea688693c66673d93bd9c9e2bee503b0dc26`.
+Seal: `a6f3f9eec4aac5ea88f20d0e52eaa0651fce80c0d49b60883ff61ceade33d288` → `8924fafc5b6083858a72f45c764081abe3bcad6a6de71901470586c076c64bb6`.
Overlay: `internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/cli_registry_words_census_test.go b/internal/provision/cli_registry_words_census_test.go
index 72e541e79..298ec436e 100644
--- a/internal/provision/cli_registry_words_census_test.go
+++ b/internal/provision/cli_registry_words_census_test.go
@@ -11,14 +11,12 @@ package provision
// became the Name of the instances and sidecars nodes; it walks the
// tree built by buildCommandRoot (commands.go), which names no record
// literal itself. main has no write site left to list.
-// - runInstances (cli.go): split. Its subcommand word switch became
-// instancesCommand, and its bare listing form, with the
-// flag.NewFlagSet("instances") literal that made it a key-site, became
-// runInstancesBoxList, body unchanged. runInstances is deleted.
+// - runInstances (cli.go): its subcommand word switch became
+// instancesCommand; what is left is its bare listing form, body
+// unchanged, with the flag.NewFlagSet("instances") literal that made it
+// a key-site. Same name, kind and literal; re-digested.
// - instancesCommand (cli.go, new): the instances node, Name "instances"
// (main's case literal); key-site, lit:instances. Writes nothing.
-// - runInstancesBoxList (cli.go, new name): runInstances's bare listing,
-// moved whole; key-site, lit:instances, as runInstances was.
// - sidecarsCommand (sidecars_cli.go, new): the sidecars node, Name
// "sidecars" (main's case literal), its children runSidecars's
// subcommand switch (runSidecars, which held no write site, is
@@ -26,7 +24,7 @@ package provision
func cliRegistryWordsWriteCensusInventory() []censusEntry {
removed := []struct{ file, unit string }{
{"main.go", "main"},
- {"cli.go", "runInstances"},
+ {"cli.go", "runInstances"}, // re-listed below with its new digest
}
entries := append([]censusEntry(nil), regionHAHeldWriteCensusInventory()...)
for _, r := range removed {
@@ -44,9 +42,9 @@ func cliRegistryWordsWriteCensusInventory() []censusEntry {
}
added := []censusEntry{
// The instances node: Name "instances", main's case literal moved; writes nothing.
- {"cli.go", "instancesCommand", "key-site", "lit:instances", "5b9b80df34fa0e1d16d443e4525d4d2727166348d856d453174d49a3b136c601"},
- // runInstances's bare listing moved whole: flag.NewFlagSet("instances"); writes nothing.
- {"cli.go", "runInstancesBoxList", "key-site", "lit:instances", "2f90a37c7de33e113dbc35493dc2266e75cce63fb348d693e1088f23de0b14a1"},
+ {"cli.go", "instancesCommand", "key-site", "lit:instances", "88c4bccb335987374d0223e7c8217fd255d6e2801410d2b3fb19c9b53bac7f9d"},
+ // runInstances, now only its bare listing: flag.NewFlagSet("instances"); writes nothing.
+ {"cli.go", "runInstances", "key-site", "lit:instances", "0e8d39df0878db72cb54395cb836d12ab648f54317e560bf927f930cd1d60297"},
// The sidecars node: Name "sidecars", main's case literal moved; writes nothing.
{"sidecars_cli.go", "sidecarsCommand", "key-site", "lit:sidecars", "2c0a42691bc3172ca86e71df4faa5afc85df14adff006b9f9224419a5382851e"},
}
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index e6a5976b3..794583fe8 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -143,4 +143,4 @@ plan14-root-reads-fixed-host-ignore-user-data.tsv 250e3ba91e1bc5fcd6be5cc2bafce4
plan14-root-reads-deploy-edge-718.tsv 250e3ba91e1bc5fcd6be5cc2bafce4c7d6645d2d2f0c080913b99f01b1d19129
plan14-root-reads-demo-slice-adopt.tsv 707018faaa1fee3b47abb78389ae7854264e76621cc316889061adb69bf13e10
plan14-root-reads-security-review-mitigations.tsv a6f3f9eec4aac5ea88f20d0e52eaa0651fce80c0d49b60883ff61ceade33d288
-plan14-root-reads-cli-registry-words.tsv 7a3e507ea1908738a7b710b6467dea688693c66673d93bd9c9e2bee503b0dc26
+plan14-root-reads-cli-registry-words.tsv 8924fafc5b6083858a72f45c764081abe3bcad6a6de71901470586c076c64bb6
diff --git a/internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv b/internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv
index c7c8b6d20..031a54b4b 100644
--- a/internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv
+++ b/internal/provision/testdata/plan14-root-reads-cli-registry-words.tsv
@@ -1,22 +1,15 @@
# Census overlay cli-registry-words, written by census-propose (#369). census-ruling-cli-registry-words, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-cli-registry-words.md.
-# 4 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 2 removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired.
-# 2 new dispositions: 0 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+# 6 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 51fbefa376299d901762a8cbc3686631d49e4e276ddfd03a22d279fa4dbddd54 cli.go runInstances legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added;rev3=census-ruling-cli-registry-words;basis=argument routing: its subcommand word switch moved into instancesCommand (cli.go) as clireg children, so runInstances lost the switch and is now only the bare listing, body byte-identical after the old switch (the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where it fell through before; same reads, none added file:Open@216,registry:App@2089,registry:Backing@2171,registry:Channel@2104,registry:Environment@2115,registry:Hibernate@1980,registry:Host@2081,registry:Kind@2096,registry:Replication@2156,registry:Status@2130,registry:Unit@2182,registry:Version@2140,whole:Route@1954 0e8d39df0878db72cb54395cb836d12ab648f54317e560bf927f930cd1d60297
@legacy 89d22b2fbd96458050aba2a25a756811e9bb9200d96871f84c4c0ff09dae1b52 system_managedfleets.go runSystemManagedFleets legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2a;basis=Explicit operator CLI reads only the --file JSON settings input with os.ReadFile, then sends it to an authenticated configured-system-operator API; not called by a root unit or tenant request. Copy (approved review 2026-11-02): usage text and the invalid-JSON message now say managed fleet settings; no read changed.;rev3=census-ruling-cli-registry-words;basis=argument routing: the show/set word check, bare usage (stderr, exit 2), help (stdout, exit 0) and unknown word (log.Fatal) moved into systemManagedFleetsCommand's children and Fallback; runSystemManagedFleets now takes the verb as a parameter (verb, args) instead of args[0]; the same flags, the same set/show --file rule, the same one os.ReadFile of --file; no root read added file:ReadFile@531 4760e8539b378f103388a06c31b836329d11a6cdc8887655379ee21b41e32552
@legacy ceb7db8f04e07dd851b74167bd598556f0941b9842f417c55c7e5e12a81bcc95 update.go maybeUpdateHint legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-cli-registry-words;basis=argument routing: the noHintVerbs word map is replaced by the NoUpdateHint mark on the dispatched path's nodes (ran []*clireg.Node); the same words are marked noHint in commands.go (edge, agent, adopt, bootstrap, add, remove, route, ops, status, vet, release-keygen, version, help/-h/--help, update, system) plus the plumbing words that returned before the hint; the terminal, release-build and box-environment checks and the cache read are unchanged; no root read added file:ReadFile@539 326206519a2f5097849b09e582f4eb0813d66c9dd27026c3cad288ffaeb1cbd0
-@legacy 9cfe65203fe0d1de5a5e678976502a7ae8a5c36164ccd7d4b515569a94b4bf55 cli.go runInstancesBoxList legacy accepted-legacy accepted-legacy;rev3=census-ruling-cli-registry-words;basis=argument routing: runInstances's bare listing form moved whole under a new name (body byte-identical after its subcommand switch: the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where runInstances fell through before; the reads are runInstances's own, none added; disposition stays legacy as runInstances was file:Open@223,registry:App@2096,registry:Backing@2178,registry:Channel@2111,registry:Environment@2122,registry:Hibernate@1987,registry:Host@2088,registry:Kind@2103,registry:Replication@2163,registry:Status@2137,registry:Unit@2189,registry:Version@2147,whole:Route@1961 2f90a37c7de33e113dbc35493dc2266e75cce63fb348d693e1088f23de0b14a1
-@legacy 7010d0d608b80636e9b4ee245f55eb0ea01842587c0817f24d4774e875585fb9 proof_cli.go runProofPut legacy accepted-legacy accepted-legacy;rev3=census-ruling-cli-registry-words;basis=argument routing: runProof's "put" case moved whole into its own function, reached as proofCommand's "put" child; the same flags, the same os.ReadFile of the one positional file and proofPut; the read is runProof's put-case read, none added; note runProof was authority task E1 and this unit is written new legacy accepted-legacy by census-propose: reviewer to confirm the disposition file:ReadFile@296 0e6a2cb25341669630ea8c1c880836af3c58d88c23556913cddb94917a7afd17
+cli.go runInstances legacy accepted-legacy accepted-legacy;rev3=census-ruling-seeded-instances;basis=the carlos CLI: its API verbs on a person's machine as that person, its local listing by hand on a box as whoever runs it (no box unit): main's body with one more dispatch arm, import, which goes to the API-mode import verbs; read sites unchanged;rev3=census-ruling-edge-asset-cache-1;basis=one more dispatch arm, set-assets, which goes to runInstancesSetAssets (the API-mode verb that turns an instance's asset cache on or off through the console); read sites unchanged (13), none added;rev3=census-ruling-edge-page-cache-1;basis=Task 12: one more arm in the instances verb switch, "set-pages" dispatching to runInstancesSetPages (instances_pages.go, a signed-in CLI client that PATCHes the console instance door with only {"pages":"on"|"off"}); a CLI subcommand a signed-in user runs, not called by the agent or by any root pass; read sites unchanged (13); no read added;rev3=census-ruling-cli-registry-words;basis=argument routing: its subcommand word switch moved into instancesCommand (cli.go) as clireg children, so runInstances lost the switch and is now only the bare listing, body byte-identical after the old switch (the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where it fell through before; same reads, none added file:Open@216,registry:App@2089,registry:Backing@2171,registry:Channel@2104,registry:Environment@2115,registry:Hibernate@1980,registry:Host@2081,registry:Kind@2096,registry:Replication@2156,registry:Status@2130,registry:Unit@2182,registry:Version@2140,whole:Route@1954 0e8d39df0878db72cb54395cb836d12ab648f54317e560bf927f930cd1d60297
+proof_cli.go runProof authority E1 E17: operator saves exact signed authorization and challenge before delivery, resumes without renewal, and verifies enrolled-root exact completion. Existing proof branches are unchanged. Tests: TestPlan14HistoryOperatorWorkflow, TestPlan14HistoryOperatorConflicts, TestPlan14HistoryOperatorExactCompletion, TestPlan14HistoryWorkflowProcessCrash, TestPlan14HistoryCommandResume, TestPlan14HistorySavedFiles, TestPlan14HistoryCLIDispatch.;rev3=census-ruling-cli-registry-words;basis=argument routing: its word switch moved into proofCommand (history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before), keygen and get into runProofKeygen and runProofGet with the case bodies unchanged; runProof is now only the put verb, reached as proofCommand's "put" child: the same flags, the same os.ReadFile of the one positional file and proofPut; same read, none added; runHistory unchanged file:ReadFile@293 2e7a354ec19f47a6d347d38bbaaa9e2345b64ff98c77bb64012c8461a447efd4
system.go runSystem authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own;rev3=census-ruling-design-pdf-service;basis=add dispatch for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Adds managed-fleets operator CLI dispatch; no direct read added; existing root command branches unchanged.;rev3=census-ruling-agent-start-demo-2;basis=system.go:62-66 adds the demos family dispatch to the console-only operator client (system_demos.go:19, system_demos_api.go:23); no direct read added and other root commands are unchanged.;rev3=census-ruling-region-ha-p3b2;basis=Dispatches carlos system group-maintenance {status|permit|revoke|prepare|apply|rollback} to internal/host; no read of its own.;rev3=census-ruling-gvisor-demos;basis=Dispatch fixed runsc-ensure and exec-sandbox-allows-prev system applets; no direct reads.;rev3=census-ruling-cli-registry-words;basis=argument routing: its switch arms moved into systemCommand (system.go), one child list, router a Transparent child, the old default and help arms in systemFallback; runSystem is now clireg.Dispatch(systemCommand(), args) and is kept with its signature for its tests only (production reaches systemCommand through buildCommandRoot, J4 exemption added); every handler it dispatched to is unchanged; no root read added b363271258c73eca5568b40d0a6b253f8c71615a57e319709d20e92bbd5f0b0a
system.go systemVerb authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own;rev3=census-ruling-design-pdf-service;basis=add recognition for carlos system pdf; no new reads;rev3=census-ruling-managed-fleets-2a;basis=Recognizes managed-fleets as a CLI family; no read added.;rev3=census-ruling-agent-start-demo-2;basis=system.go:43-57 recognizes demos; parsing only, no direct read added.;rev3=census-ruling-region-ha-p3b2;basis=Recognizes group-maintenance as a system verb; parsing only.;rev3=census-ruling-gvisor-demos;basis=Recognize two root sandbox applets; no direct reads.;rev3=census-ruling-cli-registry-words;basis=argument routing: its hard-coded verb case list is replaced by a walk of systemCommand's children (same words, router dropped once, help words returned as before); parsing only, used by tests only now; no root read added c44750eba8d12a17e431c707fd750479b243ca5cb39813e47a5d03a897dfad52
system_managedfleets.go runSystemManagedFleets legacy accepted-legacy accepted-legacy;rev3=census-ruling-managed-fleets-2a;basis=Explicit operator CLI reads only the --file JSON settings input with os.ReadFile, then sends it to an authenticated configured-system-operator API; not called by a root unit or tenant request. Copy (approved review 2026-11-02): usage text and the invalid-JSON message now say managed fleet settings; no read changed.;rev3=census-ruling-cli-registry-words;basis=argument routing: the show/set word check, bare usage (stderr, exit 2), help (stdout, exit 0) and unknown word (log.Fatal) moved into systemManagedFleetsCommand's children and Fallback; runSystemManagedFleets now takes the verb as a parameter (verb, args) instead of args[0]; the same flags, the same set/show --file rule, the same one os.ReadFile of --file; no root read added file:ReadFile@531 4760e8539b378f103388a06c31b836329d11a6cdc8887655379ee21b41e32552
update.go maybeUpdateHint legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-cli-registry-words;basis=argument routing: the noHintVerbs word map is replaced by the NoUpdateHint mark on the dispatched path's nodes (ran []*clireg.Node); the same words are marked noHint in commands.go (edge, agent, adopt, bootstrap, add, remove, route, ops, status, vet, release-keygen, version, help/-h/--help, update, system) plus the plumbing words that returned before the hint; the terminal, release-build and box-environment checks and the cache read are unchanged; no root read added file:ReadFile@539 326206519a2f5097849b09e582f4eb0813d66c9dd27026c3cad288ffaeb1cbd0
-cli.go runInstancesBoxList legacy accepted-legacy accepted-legacy;rev3=census-ruling-cli-registry-words;basis=argument routing: runInstances's bare listing form moved whole under a new name (body byte-identical after its subcommand switch: the same flag set, registry.Open of --registry, List and table); reached as instancesCommand's DefaultLeaf on no word, a flag or an unknown word, exactly where runInstances fell through before; the reads are runInstances's own, none added; disposition stays legacy as runInstances was file:Open@223,registry:App@2096,registry:Backing@2178,registry:Channel@2111,registry:Environment@2122,registry:Hibernate@1987,registry:Host@2088,registry:Kind@2103,registry:Replication@2163,registry:Status@2137,registry:Unit@2189,registry:Version@2147,whole:Route@1961 2f90a37c7de33e113dbc35493dc2266e75cce63fb348d693e1088f23de0b14a1
-proof_cli.go runProofPut legacy accepted-legacy accepted-legacy;rev3=census-ruling-cli-registry-words;basis=argument routing: runProof's "put" case moved whole into its own function, reached as proofCommand's "put" child; the same flags, the same os.ReadFile of the one positional file and proofPut; the read is runProof's put-case read, none added; note runProof was authority task E1 and this unit is written new legacy accepted-legacy by census-propose: reviewer to confirm the disposition file:ReadFile@296 0e6a2cb25341669630ea8c1c880836af3c58d88c23556913cddb94917a7afd17
-@remove cli.go runInstances
-@removed cli.go runInstances H3 census-ruling-cli-registry-words;absent;basis=removed: split into instancesCommand (the subcommand word switch as clireg children) and runInstancesBoxList (the bare listing, body unchanged); nothing deleted that a root read relied on
-@remove proof_cli.go runProof
-@removed proof_cli.go runProof E1 census-ruling-cli-registry-words;absent;basis=removed: split into proofCommand (word switch: history, keygen, get, put; bare or any other word log.Fatal(proofUsage) as before) and runProofKeygen, runProofGet, runProofPut with the case bodies unchanged; runHistory unchanged
-@coverage . a84e667bb4e775a183229b86804067c268e886e55d7ed666c02324eddf222e1b
+@coverage . f53d79506072b194acc91d64a5c72ee25454e8840ce97d720af595abfaf8e722
@coverage internal/cgroup a70c0c3f066034536052cc5129f8776962631fda5875ef91260b96ce31648763
@coverage internal/clireg 10115f7463f0277a375889654ffc0cd5102f63a8b4a9c1b3cc9df55de2bc2d37
@coverage internal/ops cd56a6ff179798afb3002d87e22a9d89474c0ed4fd9afde7f90175bfa759be90
diff --git a/proof_cli.go b/proof_cli.go
index 1fb316f5a..38c723853 100644
--- a/proof_cli.go
+++ b/proof_cli.go
@@ -44,7 +44,7 @@ func proofCommand() *clireg.Node {
raw("history", box, runHistory),
raw("keygen", box, runProofKeygen),
raw("get", box, runProofGet),
- raw("put", box, runProofPut),
+ raw("put", box, runProof),
},
Fallback: func(args, consumed []string) {
log.Fatal(proofUsage)
@@ -82,7 +82,9 @@ func runProofGet(args []string) {
}
}
-func runProofPut(args []string) {
+// runProof is `carlos proof put`, kept under its old name so the census
+// unit keeps its authority disposition.
+func runProof(args []string) {
ctx := context.Background()
fs := flag.NewFlagSet("proof put", flag.ExitOnError)
app := appFlag(fs, "")