Fleet public routes: whole-branch and census review brief, round 1, with the deferred-minor list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-branch.md+33 −0docs/superpowers/reviews/fleet-public-routes-deferred-minors.md+23 −0
CI passed — run details
Intent
<task-notification> <task-id>adc565219b453fcb6</task-id> <tool-use-id>toolu_01SWN8JLSKSBy2aiTFKJzHqv</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/adc565219b453fcb6.output</output-file> <status>completed</status> <summary>Agent "Task 14: inventory, merge main, 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>The merge, the census proposal and the inventory are all done. Status is DONE_WITH_CONCERNS: the CLI can't show everything the inventory needs (see concerns). Nothing pushed, nothing posted on amadan, tip 8301716d. **Merge (0ee2ac4b):** origin/main at 4029ac56 is in, 7 commits since the branch point. - **Conflict:** only one, in `internal/provision/plan9_b8_census_test.go`. The test still calls `fleetPublicRoutesWriteCensusInventory()`, which now builds on main's newest, `analyticsLiveWriteCensusInventory()` (it used `rootfsFleetFollowupsWriteCensusInventory` before). No re-pin was needed. - **Chain file:** `plan14-root-reads-chain.tsv` merged cleanly because the branch had no line yet. Main's 5 new lines stay in order and `fleet-public-routes` is last. - **Auto-merged:** `edge.go`, `assetcatch.go`, `server.go` and `instances_cli.go`. - **Checks:** `go build`, vet, gofmt and the darwin, windows and arm64 builds pass. The Plan9B8 test passes, and so does `go test ./internal/edge/ -run 'Fleet|Forward|Reload'`. **Census (8301716d):** 112 units plus one removed, and 7 envelopes (`.`, domains, edge, host, provision, registry, release). - **Units:** 31 body, 56 sites, 19 new, 6 reads. The registry schema is re-pinned under `other`, and `Registry.SetFleetBox` is removed. - **Reconciliation:** every unit matches spec §7. The only mismatch is a stale sentence in §7's Task 6 paragraph: it says `Edge.Reload` goes from `+registry:Host` x9 to x10, but the card shows fix round 3's figure (x7). I recorded this in a new "Task 14's card" paragraph in §7. §7's record-write paragraph now names the new base layer. Main's changes add no units. - **Claims:** 113 lines, in `/home/paulca/.cache/tmp/claude-1001/fleet-public-routes/census-claims.tsv`. The `fastConvergeLoop` claim names `BoxProvisionConfig`, which clears the deferred minor. - **Seal:** `af326671321edda76c7e6217a47892605a9e3b886fa880ad6d049c2f28f63873` → `1fe73b52e654afa61069ceed44a1119983f7d2df0fbca3d6d8ae326828d18c9a`. - **Tests:** `go test ./internal/provision/ -run 'Census|Plan14|Plan9B8'` passes. **Inventory:** written to `legacy-inventory.md`, which is git-ignored and not committed. - **Dev:** account bab owns fleets r10r (box-1 active) and r10w (box-1 detached); bac has no fleets and no apps. Across the 9 live bab apps, exactly 1 row names a fleet: `railsdemo.bab.dev.oncarlos.com`, fleet r10r, KIND instance, listed under bab, which is the fleet's owner. `shop` (on r10r) has no row on the console box, so the hub will create a forward row for it. - **Flagship:** none of the 26 accounts owns a fleet. None of the 139 apps is placed on a fleet, and none of the 186 rows across the 126 live apps names one. Count: 0. - **Rows that will go dark at the roll:** none known. **Concerns:** 1. The console lists rows by resolved account (`release.RouteAccount`) and never returns the raw `Account` value. A row listed under bab, which is also the ops account, could therefore hold raw bab, an empty value or an invalid one. The railsdemo row keeps its host unless its raw account is an invalid non-empty value; proving that needs a registry read. 2. `carlos routes` only reads the console box's own registry. Rows on other platform boxes, and fleets owned by accounts Paul isn't in, are not covered. 3. Step 3 (Astra's census and whole-branch review) and the verdict on #280 are still owed. Full report: `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/design-fleet-public-routes/.superpowers/sdd/2026-10-30-fleet-public-routes/task-14-report.md`</result> <usage><subagent_tokens>160586</subagent_tokens><tool_uses>62</tool_uses><duration_ms>576619</duration_ms></usage> </task-notification>
Attributed to this commit: 63.1 g CO₂e (8,180,713 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-fleet-public-routes, 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/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-branch.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-branch.md| new file mode 100644 |
| index 000000000..5df55d727 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-branch.md |
| @@ -0,0 +1,33 @@ |
| +# Review brief: fleet public routes (#457 Phase 1a) whole branch and census, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `design-fleet-public-routes`, diff `4029ac561cc03327d6de078568b33800c4d30c6c..<this brief's parent>` (tip 8301716d before this brief). |
| +Authorities: the approved spec docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md (rev 4, Paul's approval 2026-10-30; amended during the build where the ledger records a ruling: §4.3, §4.4, §4.7, §6, §7, §9), the plan docs/superpowers/plans/2026-10-30-fleet-public-routes.md, main's code, AGENTS.md (census, request budget, stopping rules, production-wired witnesses). |
| + |
| +You are an independent reviewer. Read the spec, then the branch diff, and check every claim against the code (file:line). |
| + |
| +## Fixed: do not re-argue |
| +- Paul's approval of spec rev 4 and the copy deck FPR-C01..C08 (approved unchanged). |
| +- Controller rulings recorded per task (each task had a review: Tasks 1, 3, 4, 6, 7, 8, 9, 10 by Astra; 2, 5, 11, 12, 13 by Claude reviewers). Among them: one refusal decision edge.FleetArmVerdict used by Reload, the edges-file writer and the alias pass; WebSockets do not cross the fleet tunnel (pre-existing, amadan #471, a stated non-goal); the barrier judges published pointers; a channel deliberately named releases/<tag> is out of reach of the doors; collision "given neither" when armed; unplace option A; non-inert forward rows left out of root adoption with a log line. |
| +- The deferred-minor list for your triage: docs/superpowers/reviews/fleet-public-routes-deferred-minors.md. For each, say "must fix before merge" or "follow-up". Two the controller flagged for you: Task 11's C08 clause is a partial copy of edge.FleetServeEligible (same fault family as Task 6); Task 12's Edge.Reload builds its owner map inline from ListFleets rather than through hubFleetOwners. |
| + |
| +## What to check |
| +1. Tenancy end to end: can any account cause a forward row, a served name, a published name, a certificate (exact or wildcard, local issuer or file) or a tunnel dispatch for a host it does not own, or steer another account's host to its fleet (bindings, aliases, catch-alls, platform aliases, regional, custom domains)? |
| +2. The writer guard: can any route writer in any package create, modify, convert or delete a forward row except the five allowed ones; is every refusal before side effects? |
| +3. The predicate: is FleetArmVerdict the only refusal decision (search for any other eligibility logic, including Task 11's C08 clause); do the forward phase and the edge agree, and does every disagreement fail closed? |
| +4. Root: boxWhollyNested and root adoption: can a forward row widen egress, hide a resident, or block residents? |
| +5. The release floor and fleet-create barrier: any publish path below the floor while a fleet exists without the signed override; lock order (fleetFloorMu before regionalMu) and deadlocks. |
| +6. Lifecycle: create, place, unplace, move fleet->fleet, detach box, trash (production and not), delete, collision, hub change, rollback; any window where two rows serve one host, a stale row serves after ownership changes, or uncertainty deletes. |
| +7. Request budget §6: any new per-box polling or timer; the comparative test's coverage. |
| +8. Census: a verdict for every unit and envelope on the card docs/superpowers/notes/census-proposal-fleet-public-routes.md, per AGENTS.md "Getting a change approved" (root units include boxWhollyNested, RootUpdateInputs.routes, ReconcileFleetBindings, the new FleetArmVerdict callers in host). |
| +9. Tests: production-wired where claimed (fleet_public_routes_e2e_test.go); anything that passes vacuously. |
| + |
| +## 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 newly changed security/root behaviour still get checked). |
| +- **P3**: polish. Follow-up list only. |
| +A P1 states its failure scenario and evidence (file:line). |
| + |
| +## Output |
| +Findings ranked P1, P2, P3, each with the problem, evidence (file:line, verified), failure scenario, concrete fix and the invariant it breaks. Then the deferred-minor triage. Then census verdicts per unit/envelope (APPROVE or REJECT with lines read). End with exactly one verdict: READY, READY AFTER FIXES, or NOT READY. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |
diff --git a/docs/superpowers/reviews/fleet-public-routes-deferred-minors.md b/docs/superpowers/reviews/fleet-public-routes-deferred-minors.md| new file mode 100644 |
| index 000000000..d5f5cb0c5 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/fleet-public-routes-deferred-minors.md |
| @@ -0,0 +1,23 @@ |
| +Task 1: minor (deferred): membership subquery's `fleet = ?` has no isolated regression (register away/box-2 active while home/box-2 detached; show the mutation) — fleetbox_if_test.go:72. |
| +Task 2: minor (deferred): putForwardSQL's update list not checked against kept columns (build from one production literal checked against PRAGMA). |
| +Task 2: minor (deferred): dns_checked_at preservation across PutForward untested. |
| +Task 2: minor (deferred): PutForward accepts a non-fleet Region or empty Host (defence in depth only; §4.4 refuses serving). |
| +Task 2: minor (deferred): non-forward refusal is a formatted error, not a sentinel. |
| +Task 2: minor (deferred): brief says 51 forbidden fields; the constraint list names 50 and the code has those 50 (plan count typo). |
| +Task 5: minor (deferred): CloseAccountUpgrades test checks the count, not the request context's cancellation. |
| +Task 5: minor (deferred): TestForwardUpgradeIsLimitedAtTheHub `ups > 2` vacuous; 101-or-502 acceptance cannot tell admitted from other non-429; box-side upgrade exemption untested (WebSocket limit, #471). |
| +Task 5: minor (deferred): no edge-level test of the plain HTTP plan-throttle path for a forward row. |
| +Task 5: minor (deferred): planThrottleOf/trackUpgrade fromTunnel exemption on the box not mutation-tested. |
| +Task 5: minor (deferred): ratelimit.go:119-121 overlong comment line. |
| +Task 11: minor (deferred, FINAL REVIEW: same fault family as Task 6): C08's "served toward the fleet" clause is a partial copy of edge.FleetServeEligible (skips Tunnel, owner, ready); should call the shared predicate/FleetArmVerdict. |
| +Task 11: minor (deferred): C08 treats any forward row at the host as not held, even another account's/app's/fleet's (collision-only case). |
| +Task 11: minor (deferred): fleetFromRoutes doc comment stale; legacyFleetFromRoutes duplicates its loop; sealkey.go:201 long comment. |
| +Task 11: minor (deferred): report noise (TestControlPlane* buildvcs; one plan9 timeout under load). |
| +Task 12: minor (deferred): comments (hub.go:43, budget test :63, spec §7 :1356) claim phase and edge cannot disagree on owners; they can for one pass (Reload reads ListFleets itself), failing closed; reword. |
| +Task 12: minor (deferred): budget test checks the edges-file PUT when a forward row appears, not when it goes. |
| +Task 12: minor (deferred): counting store hides optional store interfaces (fallback paths); note in the test doc with index-off telemetry. |
| +Task 12: minor (deferred): §6 test paragraph ambiguous about the baseline; add a clause. |
| +Task 12: minor (deferred): census basis text for fastConvergeLoop says boxProvisionConfig; Task 14 overlay names BoxProvisionConfig. |
| +Task 13: minor (deferred) + TASK 15 CARRY: a retired name with an existing cert is refused at HTTP (no map entry), not at the TLS handshake (wildcard cert, cert mirror, autocert cache answer without Allowed); Task 15 checks a retired name by its HTTP answer. |
| +Task 13: minor (deferred): step 6 does not assert the catch-all alias refused after trash; step 4 rebuilds alias-pass inputs by hand (omits Region); step 3 lacks an upper bound (oks <= 6); noisy 401 on first dial and status/boxes 404; step 2 does not pin which edge drew the login form. |
| +Task 13: final-review carry: confirm Task 6 tests cover a foreign account's record for the edges-file exclusion. |