carlos / platform Public

Fleet public routes: Astra spec review brief, round 1

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

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes.md
new file mode 100644
index 000000000..c7820a9c3
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-fleet-public-routes.md
@@ -0,0 +1,33 @@
+# Review brief: fleet public routes design (#457 Phase 1a), round 1 of 3
+
+Repo carlos/platform, branch `design-fleet-public-routes`, commit 855b514e40a430b35b89d5018d28337b085096f6.
+Under review: `docs/superpowers/specs/2026-10-29-fleet-public-routes-design.md`.
+Authorities: main's code (origin/main 1fa2a99b), AGENTS.md (census, request budget, provider-neutral core, production-wired witnesses, stopping rules), docs/superpowers/specs/2026-10-24-rootfs-apps-design.md, the fleet secrets key spec docs/superpowers/specs/2026-10-29-fleet-secrets-key-design.md. The managed-fleets draft (branch design-managed-fleets-457) is context only, not an authority.
+
+You are an independent reviewer. Read the spec, then the code it names, and check every claim against that code (file:line).
+
+## Fixed: do not re-argue
+- Paul, 2026-10-29: fleet-placed apps must serve at their public URL through the platform router with no hand-written route. Scope is Phase 1a only (not managed provisioning, billing, 1b box choice, 1c reboot leases).
+- Controller's calls on §10's open questions (platform-39): Q1 a new `forward` row kind; Q2 forwarded responses skip the hub's response cache in 1a; Q3 hand rows keep winning and are not adopted; Q4 the edge refuses a fleet-placed row whose account does not match the fleet owner (rows with no account served as today and logged); Q5 `apps place` stops re-stamping rows on the console box. Report only mechanisms that fail these.
+
+## What to check
+1. Tenancy: can any tenant get a forward row (and so a proxy, a certificate, a custom domain) for a host it does not own, or route another account's host to its own fleet? Check both checks (§4.4: the writer and the edge) against how records, fleets, fleet_boxes and bindings are written and who can write them. Bindings files under fleets/<f>/bindings/ are written by whom? Can a fleet box forge one for another fleet's or account's host?
+2. The `inScope` boundary: confirm no path lets the hub stage, start, replicate, hold a lease for, or adopt a fleet record (adopt pass, replica sync, litestream, config sync, root passes, cert warm, analytics, rollouts, hibernation sweeps). §4.14's list of readers that must ignore a forward row: is it complete? Name any reader missed.
+3. Lifecycle: create, delete, move fleet->platform, platform->fleet, fleet->fleet, fleet detach, box detach, hub change, rollback to an older binary; any window where two rows serve one host, or a stale row serves after the owner changes. The "remove only on a pass where every read succeeded" rule: sound?
+4. TLS and certs: who issues the fleet host's cert on the hub, rate limits, the wildcard; custom domains via the alias pass; the regional domains floor (#447) interaction.
+5. Request budget §6 and the claimed savings: verify the arithmetic against the code paths; no new per-box polling (memory s3-requests-cost-money).
+6. Census §7: is the claim "no new root read" right? What will the card show?
+7. Tests §8: does the gating witness go through production wiring (real console, hub edge, fleet edge over the tunnel)? What failure would it miss?
+8. Rollout §9: no switch and no floor; is that safe given a rollback leaves rows an older binary serves and never removes?
+
+## Severity
+- **P1**: unsafe, would not work, or contradicts the code. Blocks the plan.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Follow-up list only.
+
+A P1 states its failure scenario and the evidence (file:line).
+
+## Output
+Findings ranked P1, P2, P3. Each gives the section, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks. 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.