carlos / platform Public

Fleet public routes: Astra plan review brief, round 3 (last)

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

CI passed — run details

Intent

Attributed to this commit: 26.0 g CO₂e (3,114,224 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-plan-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R3.md
new file mode 100644
index 000000000..4912a078e
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes-plan-R3.md
@@ -0,0 +1,143 @@
+# Review brief: fleet public routes implementation plan, round 3 of 3
+
+Repo carlos/platform, branch `design-fleet-public-routes`, commit 20bc8cbf7d99c19adee6edd4fb462bb5d7c08f0c.
+Under review: `docs/superpowers/plans/2026-10-30-fleet-public-routes.md` (rev 3).
+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.
+- The controller's rulings on plan round 2 (platform-39): fleet `pi` and
+ active box `amber-gliding` in `TestReconcileFleetBindingsSkipsCorruptJSON`;
+ Task 8 migrates every `systemFloorGate` caller and every direct caller
+ of the rollback path, passing `false`; Task 13's hub is an unstarted
+ TLS test server whose certificate callback refuses names `hub.Allowed`
+ rejects, with fresh connections for refusals; `carryAliasesTx` exercised
+ through `SetInstancePaths` or `Upsert` with the alias socket checked;
+ a synchronous `fleetFloorMu.TryLock()` assertion inside the publication
+ callback. Report only mechanisms that fail these rulings.
+
+## What to check
+
+1. Each round 1 and round 2 finding against rev 3 (the list under "Round
+ 3" below).
+2. The plan's own sweep ("Sweep for the same family (rev 3)"): for every
+ function whose signature or contract a task changes, is every caller,
+ test included, migrated in that task; is every fixture a changed
+ contract touches named; can every refusal test's fixture produce its
+ refusal? Name any it missed.
+3. Task 13's TLS admission: does `GetCertificate` returning `nil, nil`
+ fall back to the certificate `StartTLS` installs, and does a refused
+ name fail the handshake on a fresh connection?
+
+## Round 3
+
+Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-fleet-public-routes-plan-R1.md`
+(round 1, NOT READY, 3 P1, 6 P2) and
+`docs/superpowers/reviews/CODEX-FINDINGS-fleet-public-routes-plan-R2.md`
+(round 2, NOT READY, 3 P1, 2 P2; R1's P1-2, P1-3, P2-4, P2-6, P2-8, P2-9
+judged resolved). The plan's two "Review dispositions" tables map every
+finding to its answer.
+
+Round 1:
+- P1-1 (`SetFleetBox` callers): Task 1 Files, "Retired contracts", Step 1
+ (now with every positive binding fixture named, R2 P1-1).
+- P1-2 (package-private interfaces): Task 1 (`fleetbind_door_test.go`),
+ Task 12 (`BoxProvisionConfig`), Task 13 Interfaces.
+- P1-3 (corruption removed by the fixture): Task 4 `corruptRow`.
+- P2-4 (registry source): Task 12.
+- P2-5 (transactional side effects): Task 3 (and `carryAliasesTx`, R2 P2-4).
+- P2-6 (inventory completeness): Task 3 `TestRouteWriterInventoryIsComplete`.
+- P2-7 (barrier mutation): Task 9 case (c) (and the `TryLock`, R2 P2-5).
+- P2-8 (spec witnesses): Tasks 2, 4, 6, 7.
+- P2-9 (rollout deliverables): Task 14 Step 1, Task 15 Step 0.
+
+Round 2:
+- P1-1 (`TestReconcileFleetBindingsSkipsCorruptJSON`): Task 1 Step 1.
+- P1-2 (floor callers): Task 8 Step 1, every caller by file:line.
+- P1-3 (TLS refusal): Task 13 Interfaces and Step 2's two mutations.
+- P2-4 (`carryAliasesTx`): Task 3 Step 1.
+- P2-5 (nondeterministic mutation): Task 9 Step 1, case (c).
+
+First give one line per P1 and P2 from rounds 1 and 2: 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.
+
+This is round 3, the last (AGENTS.md stopping rules).
+
+## 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.
+
+In round 3, a NOT READY also says whether the P1s share one cause, and
+whether refusing the case up front or cutting the feature would remove
+them.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.