carlos / platform Public

Fleet public routes: Astra plan review brief, round 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev e80c50faf4960d9b9a5aef140f0c9444ea733231 parent bd8d8c8
1 file changed, +133 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R2.md +133 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R2.md
new file mode 100644
index 000000000..1a3b39572
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R2.md
@@ -0,0 +1,133 @@
+# Review brief: fleet public routes implementation plan, round 2 of 3
+
+Repo carlos/platform, branch `design-fleet-public-routes`, commit bd8d8c860c11a96f2310bda8ee094574215b250c.
+Under review: `docs/superpowers/plans/2026-10-30-fleet-public-routes.md` (rev 2).
+Authorities: the approved spec on this branch,
+`docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md` rev 4
+(approved by Paul 2026-10-30, recorded on amadan #457), and main's code
+(origin/main 1fa2a99b, which this branch is cut from). AGENTS.md (census,
+request budget, production-wired witnesses, stopping rules). Do not review
+against other unmerged branches.
+
+You are an independent reviewer. Read the plan, then the spec and the code
+it names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- Paul's approval of spec rev 4 (2026-10-30, #457). The design is settled:
+ report a plan that fails to implement it, not the design.
+- The controller's calls recorded in the spec (§10 "Decisions"): a new
+ `forward` row kind; forwarded responses skip the hub's response and asset
+ caches; every existing row at the host wins and is never converted; the
+ edge refuses a fleet-placed row whose account is not the fleet's owner
+ (an empty raw account served and logged); `apps place` stops re-stamping
+ rows; bindings hardened in this work; enforcement once at the hub; the
+ fleet edge owns the gate; root egress recognises the inert forward
+ shape; the release floor with its override; one eligibility predicate
+ for serving and publishing; explicit trash decisions; `Slug` kept; no
+ platform names in 1a; the hub does no gate work for a forward host; a
+ below-floor first publication refused while fleets exist, the barrier
+ passing an absent pointer; `SetFleetBoxIf`; canary reads skipped and a
+ marker-only trash prefetch; the domains trash loop skips forward rows;
+ one exhaustive shape; the blanket writer guard (judged sound in spec
+ round 3); the floor's "a fleet exists" condition.
+- The plan's rulings P-1 to P-3 (the floor numbered `v0.32.0` until the
+ cut, the override warning as the console's log line, the held-host
+ REASON computed by the console) were accepted in round 1.
+- The controller's rulings on plan round 1 (platform-39): Task 1 migrates
+ every `SetFleetBox` caller and fixture and retires the clear and
+ unknown-host contracts with their reason; the race test lives in
+ package `host` on a real store-door fixture; Task 13 may use one
+ exported seam if it is production-used and claimed in the census (the
+ plan chose in-process with `host.BoxProvisionConfig`, and says why a
+ subprocess harness was rejected); corruption injected by raw SQL after
+ `PutForward`, read back, then `Reload`; the registry threaded through
+ `BoxProvisionConfig` and both loops with the source pins updated;
+ per-writer fixtures, whole-table comparison, an archive spy, forward
+ restore inputs; Exec/Query/Prepare sites with constant-folded SQL and
+ explicit classification of the unresolved; case (a) kept plus a
+ blocked-create case; per-field consumer cases, a live-source no-mint
+ case, multipart through the real gate; a read-only legacy-row inventory
+ on dev and the flagship and a release-notes paragraph through the
+ release's Luna pass. Report only mechanisms that fail these rulings.
+
+## What to check
+
+1. Each round 1 finding against rev 2 (the list under "Round 2" below).
+2. Task 1's migration: does every test file that names `SetFleetBox`
+ compile and pass after Step 1, and does any production caller remain?
+3. Task 3: can each writer's fixture make its writer act at all (the
+ non-forward arm proves the fixture live), and does the inventory test's
+ constant folding see every SQL argument in `internal/registry`,
+ including those passed through a helper (`txer`, `upsertRoute`'s
+ `db.Exec`)?
+4. Task 9 case (c): is the synchronisation deterministic, and does the
+ early-unlock mutation really fail it?
+5. Task 12/13: is `BoxProvisionConfig` the only new export, is it
+ production-used, and can the root package build the witness from the
+ exported constructors named (`release.Pass`'s signature,
+ `fleetapi.New`, `tunnelclient.Loop`, `console.NewServer`)?
+6. Task 14's inventory: does `carlos routes` show the REGION and KIND the
+ step relies on, through the read path a member or operator already
+ has?
+
+## Round 2
+
+Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-fleet-public-routes-plan-R1.md`
+(round 1, NOT READY, 3 P1, 6 P2). The plan's "Review dispositions (Astra
+plan R1)" table maps each finding to its answer:
+
+- P1-1 (`SetFleetBox` callers): Task 1 Files ("Migrate"), Interfaces
+ ("Retired contracts"), Step 1.
+- P1-2 (package-private interfaces): Task 1 (`fleetbind_door_test.go` in
+ package `host`); Task 12 (`BoxProvisionConfig`); Task 13 Interfaces (the
+ constructors and the reason for in-process).
+- P1-3 (corruption removed by the fixture): Task 4 (`corruptRow`,
+ `TestReloadServesOnlyEligibleForwardRows`).
+- P2-4 (registry source): Task 12 Files, Interfaces, Step 1.
+- P2-5 (transactional side effects): Task 3 (`dumpDB`, per-writer
+ fixtures, the archive spy, `TestRestoreWritersRefuseForwardInputsAtAbsentHosts`).
+- P2-6 (inventory completeness): Task 3 (`TestRouteWriterInventoryIsComplete`,
+ `unresolvedRouteSQL`, the split-literal mutation).
+- P2-7 (the barrier's mutation): Task 9 case (c) and the mutation note.
+- P2-8 (spec witnesses): Task 2 `TestPutForwardSanitisesEachForbiddenColumn`;
+ Task 4 `TestForwardServingRefusesEachForbiddenColumn`,
+ `TestForwardLoginThroughTheRealFleetGate`; Task 6
+ `TestEdgesFileOmitsEachCorruptForwardRow`; Task 7
+ `TestEgressRefusesEachNonInertForwardRow`,
+ `TestDomainsMintsNoPlatformNameFromALiveForwardRow`.
+- P2-9 (rollout deliverables): Task 14 Step 1; Task 15 Step 0.
+
+First give one line per P1 and P2 from round 1: resolved, partly, or not.
+Carry every unresolved or partly resolved finding forward at its current
+severity, then add new findings. The verdict covers everything
+outstanding, earlier rounds included.
+
+## 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 review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the task, the problem, the
+evidence (file:line, verified), the failure scenario, a concrete fix and
+the invariant or trust boundary it breaks (that is its fault family). End
+with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.