regional box names: census proposal (six body changes, envelopes re-pinned) + Astra R2 findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed,
+105
−0
docs/superpowers/notes/census-proposal-regional-box-names.md+29 −0docs/superpowers/specs/CODEX-FINDINGS-REGIONAL-BOX-NAMES-R2.md+54 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-regional-box-names.tsv+21 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-regional-box-names.md b/docs/superpowers/notes/census-proposal-regional-box-names.md| new file mode 100644 |
| index 000000000..a86065de2 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-regional-box-names.md |
| @@ -0,0 +1,29 @@ |
| +# Census approval: regional-box-names |
| + |
| +Ruling `census-ruling-regional-box-names`. Every change below keeps the disposition it already has, so it needs an approval, not a decision. |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/console/templates/fleet.html` `external` | body | unchanged (1) | both Label cells render {{.Name}} with {{.Label}} in a .small span when Name is set, else {{.Label}} as before; html/template escapes both; no read added | |
| +| `internal/host/agent.go` `statusLoop` | body | unchanged (4) | resolves STATUS_NAME_REGION once via resolveNameRegion (env read, trim, validate, "" for fleet boxes) and sets Probes.NameRegion; no read added | |
| +| `internal/host/agent.go` `statusTick` | body | unchanged (4) | after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added | |
| +| `internal/status/assets/index.html` `external` | body | unchanged (1) | renderBoxes shows b.name with b.label in a .box-label span via asText when a name is set; no read added | |
| +| `internal/status/assets/status.css` `external` | body | unchanged (1) | adds the .box-label rule; no read added | |
| +| `internal/status/fleet.go` `BuildFleet` | body | unchanged (2) | copies Box.Name to FleetBox.Name; no read added | |
| + |
| +Envelopes re-pinned: `internal/console`, `internal/console/templates`, `internal/host`, `internal/hostenv`, `internal/moves`, `internal/status`, `internal/status/assets`. |
| + |
| +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. Escalate 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. An escalation goes to the census owner as a decision. |
| + |
| +Recorded dispositions, which each change must still satisfy: |
| + |
| +- `internal/console/templates/fleet.html` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input |
| +- `internal/host/agent.go` `statusLoop`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-2b;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with its tick through groupStatusTick, so a box whose host.env carries the group marker (CARLOS_BOX_REFERENCE=group) publishes its status report only under its group reference, resolved afresh each tick, and nothing until it resolves, never under status.Label; every other box, fleet boxes included, gets statusTick with today's label and key; read sites unchanged |
| +- `internal/host/agent.go` `statusTick`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| +- `internal/status/assets/index.html` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input |
| +- `internal/status/assets/status.css` `external`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J4;basis=root-input |
| +- `internal/status/fleet.go` `BuildFleet`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route |
| + |
| +Seal: `5f9f8435788e8bdaa965e1dc68cfccd5264b2b2121366ec73004b9ca3cb48ecb` → `b13c19503f42ea8cb7057dbe5f6517eb39b2d8ba81b172bd4eaf487b715e335c`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-regional-box-names.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-REGIONAL-BOX-NAMES-R2.md b/docs/superpowers/specs/CODEX-FINDINGS-REGIONAL-BOX-NAMES-R2.md| new file mode 100644 |
| index 000000000..c04067dc2 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-FINDINGS-REGIONAL-BOX-NAMES-R2.md |
| @@ -0,0 +1,54 @@ |
| +### Strengths |
| + |
| +- All five review-focus cases are handled: unresolved group references prevent publication; fleet boxes are excluded even with invalid identities; whitespace is trimmed without lowercasing; missing names preserve the old display; collisions retain separate, labelled rows. |
| +- Naming happens after the identity override. Storage keys, operational identities and host sorting remain label-based. |
| +- Both pages render names safely as text. The host.env allowlist and move-environment additions are justified integration changes. |
| +- Read-only checks passed for all eight themed lists, the three independent hash goldens, and an in-memory JavaScript rendering check covering unnamed rows, collisions and literal markup. |
| + |
| +### Issues |
| + |
| +#### Critical (Must Fix) |
| + |
| +None found. |
| + |
| +#### Important (Should Fix) |
| + |
| +**1. The census records do not cover this diff.** |
| + |
| +File: [agent.go:4205](/home/paulca/.cache/tmp/claude-1001/regional-labels/internal/host/agent.go:4205), with corresponding changes in `statusLoop`, `BuildFleet` and the embedded assets. |
| + |
| +The branch changes six census-recorded units without updating their recorded digests: `statusLoop`, `statusTick`, `BuildFleet`, the status HTML and CSS, and the console fleet template. Read-only digest calculations confirm that none of their new digests appears in the census inventories. Package envelopes also change. |
| + |
| +`TestPlan14RootReadCensus` explicitly rejects these mismatches, so this tip cannot satisfy the merge gate. Complete the census proposal and independent approval on #280, including the changed envelopes, then obtain green CI on the resulting tip. |
| + |
| +**2. The word-list approval step remains unresolved.** |
| + |
| +File: [design.md:219](/home/paulca/.cache/tmp/claude-1001/regional-labels/docs/superpowers/specs/2026-10-25-regional-box-names-design.md:219). |
| + |
| +The executor retained all four taste flags without taking them to Paul, although [plan.md:67](/home/paulca/.cache/tmp/claude-1001/regional-labels/docs/superpowers/plans/2026-10-25-regional-box-names.md:67) explicitly requires that decision before Task 2. |
| + |
| +The distinction between taste and rule breaches does not justify this departure: taste decisions are precisely what that step reserves for Paul. Post-release replacements also change existing display names despite unchanged labels and region codes. Resolve and record those decisions before landing the lists. |
| + |
| +#### Minor (Nice to Have) |
| + |
| +None requiring a code change. |
| + |
| +### Recommendations |
| + |
| +- Correct Task 2’s rationale: `[40]string` permits fewer than 40 initializers and fills the remainder with empty strings. The existing hygiene test catches those empty entries, so the implementation remains adequately guarded. |
| +- The remaining executor rulings are reasonable: test placement, escaping coverage, environment documentation and label `nowrap` introduce no identified defect. |
| +- I did not run Go tests or builds because they write files. The census finding follows from source and digest inspection, not a reported test run. I inspected the named mint-refusal test and found no connection between its build helper failure and this diff. |
| + |
| +### Declined to judge |
| + |
| +- Deployment-repository configuration, agent restarts and live rollout: explicitly separate follow-up work, absent from this diff. |
| +- Regional operational identities and names in logs, alerts, roles or CLI output: explicit non-goals; preserving their existing labels was checked. |
| +- Final aesthetic acceptance of the four regional-word flags: reserved to Paul; the missing decision is reported above. |
| + |
| +### Assessment |
| + |
| +**Ready to merge?** With fixes. |
| + |
| +**Reasoning:** The display-name implementation preserves identity, compatibility and safe rendering. The reviewed tip still needs its census updates and approval, plus resolution of the explicitly deferred word-list decisions. |
| + |
| +No files were modified. |
| \ No newline at end of file |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 792992c54..12656232b 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -27,3 +27,4 @@ plan14-root-reads-plans-4b-after-grace.tsv 0c4eabfe38e12b098285bdeb5ceb0b16e5333 |
| plan14-root-reads-certwarm-wake.tsv 91204fcbc484343c03bd5ae69e3084055bc519a5b317e2ae3dc49880080764e2 |
| plan14-root-reads-static-sweep-new.tsv 5f9f8435788e8bdaa965e1dc68cfccd5264b2b2121366ec73004b9ca3cb48ecb |
| plan14-root-reads-static-sweep.tsv 5f9f8435788e8bdaa965e1dc68cfccd5264b2b2121366ec73004b9ca3cb48ecb |
| +plan14-root-reads-regional-box-names.tsv b13c19503f42ea8cb7057dbe5f6517eb39b2d8ba81b172bd4eaf487b715e335c |
diff --git a/internal/provision/testdata/plan14-root-reads-regional-box-names.tsv b/internal/provision/testdata/plan14-root-reads-regional-box-names.tsv| new file mode 100644 |
| index 000000000..d3954e27f |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-regional-box-names.tsv |
| @@ -0,0 +1,21 @@ |
| +# Census overlay regional-box-names, written by census-propose (#369). census-ruling-regional-box-names, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-regional-box-names.md. |
| +# 6 body, 0 sites, 7 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy d023b7c53e96ef444228aa5d1281a83a964dd23034b57b5dcc1f22b12782d7e4 internal/console/templates/fleet.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=both Label cells render {{.Name}} with {{.Label}} in a .small span when Name is set, else {{.Label}} as before; html/template escapes both; no read added file:external@0 0c6da27bb9d7e1c334388582c5620887e71843421a0a899f4f3037fefb4b9ee4 |
| +@legacy 36e704f5d19ca54c3f84bf5e78081cf712a0856fb78034d8acbca59592695153 internal/host/agent.go statusLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-2b;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with its tick through groupStatusTick, so a box whose host.env carries the group marker (CARLOS_BOX_REFERENCE=group) publishes its status report only under its group reference, resolved afresh each tick, and nothing until it resolves, never under status.Label; every other box, fleet boxes included, gets statusTick with today's label and key; read sites unchanged;rev3=census-ruling-regional-box-names;basis=resolves STATUS_NAME_REGION once via resolveNameRegion (env read, trim, validate, "" for fleet boxes) and sets Probes.NameRegion; no read added whole:Route@6237,whole:Route@6264,whole:Route@7506,whole:Route@9520 57a90cd24d024adddd60bc7a9c53c7a649731cc82dd4c2df18f0958ffe04eedf |
| +@legacy 1c62b2d15f6c082b24d9a0c42519ea9e3badfaf9adcad32333da4781884eef59 internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added whole:Route@1362,whole:Route@838,whole:RouteAlias@790,whole:RouteAlias@800 19e102196bb359a90537830eab66bff271cab966b00d1aaee1db8b40dbb3da35 |
| +@legacy fa1d4c600a47331d7b26fbfb1864f56f6fb496e094b1bcfead27f4cb34eb21c0 internal/status/assets/index.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=renderBoxes shows b.name with b.label in a .box-label span via asText when a name is set; no read added file:external@0 4ae69e3b788b1cff394ff67acbe75bd93e96f823ad288f2aab29b50494cc7028 |
| +@legacy 892e4ea3fbb3ca818524c6d28b7ba9d1fc88f48080273d1cce2704821cf97f26 internal/status/assets/status.css external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=adds the .box-label rule; no read added file:external@0 69cd9c6fe6990c0391d853d965c24e8810168befce07507ba63f2f2be824b305 |
| +@legacy 9d4b6d400e1c212b0e4c2073e765eaedd7f5fc7288aedf6fed34f79c61307e19 internal/status/fleet.go BuildFleet legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=copies Box.Name to FleetBox.Name; no read added whole:Route@1227,whole:Route@1305 baf686616619c7d685238e075377d419214c6a411a10b068a1f5e70483776708 |
| +internal/console/templates/fleet.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=both Label cells render {{.Name}} with {{.Label}} in a .small span when Name is set, else {{.Label}} as before; html/template escapes both; no read added file:external@0 0c6da27bb9d7e1c334388582c5620887e71843421a0a899f4f3037fefb4b9ee4 |
| +internal/host/agent.go statusLoop legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-2b;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body with its tick through groupStatusTick, so a box whose host.env carries the group marker (CARLOS_BOX_REFERENCE=group) publishes its status report only under its group reference, resolved afresh each tick, and nothing until it resolves, never under status.Label; every other box, fleet boxes included, gets statusTick with today's label and key; read sites unchanged;rev3=census-ruling-regional-box-names;basis=resolves STATUS_NAME_REGION once via resolveNameRegion (env read, trim, validate, "" for fleet boxes) and sets Probes.NameRegion; no read added whole:Route@6237,whole:Route@6264,whole:Route@7506,whole:Route@9520 57a90cd24d024adddd60bc7a9c53c7a649731cc82dd4c2df18f0958ffe04eedf |
| +internal/host/agent.go statusTick legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=after the label override, sets box.Name = status.DisplayName(box.Label, p.NameRegion) when NameRegion is set; a pure hash over the label; no read added whole:Route@1362,whole:Route@838,whole:RouteAlias@790,whole:RouteAlias@800 19e102196bb359a90537830eab66bff271cab966b00d1aaee1db8b40dbb3da35 |
| +internal/status/assets/index.html external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=renderBoxes shows b.name with b.label in a .box-label span via asText when a name is set; no read added file:external@0 4ae69e3b788b1cff394ff67acbe75bd93e96f823ad288f2aab29b50494cc7028 |
| +internal/status/assets/status.css external legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-regional-box-names;basis=adds the .box-label rule; no read added file:external@0 69cd9c6fe6990c0391d853d965c24e8810168befce07507ba63f2f2be824b305 |
| +internal/status/fleet.go BuildFleet legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-regional-box-names;basis=copies Box.Name to FleetBox.Name; no read added whole:Route@1227,whole:Route@1305 baf686616619c7d685238e075377d419214c6a411a10b068a1f5e70483776708 |
| +@coverage internal/console bcb7f58eedaa425f68cb7eaeadd835c3ea7fc87f204f884c59bfce4aace214f4 |
| +@coverage internal/console/templates c994245d5ee1c6159025f2db3d2282bb537e15407d327a13aaa83247c9bb33c8 |
| +@coverage internal/host 1eb018ef086cf0b6591adcadd9982e41e7a4c5f0263a047f6e7b6dea8d2095ab |
| +@coverage internal/hostenv 3d6cf991a076e035fbc63b0abe880b05e2eafd5fef0472e80b50d238333ba269 |
| +@coverage internal/moves c861bbf5c06d0732037e4b967405e0934cb2ac4fd7118a113c1cc1907a81bdad |
| +@coverage internal/status 176696bda7ebefc3b10db35f19d9ca1a153017fed033659a872ea68400be051d |
| +@coverage internal/status/assets b7cec9925601cff7b2127bf6c46956a520f2da674664d40c3659e8ee91406e4b |