design-fleet-public-routes
Fleet public routes (#457 Phase 1a): an app placed on a fleet serves at its public URL through the router with no hand-written route. The hub (the box with CARLOSTUNNELHOST set and CARLOS_FLEET unset, the console's box) writes a forward route row for each fleet-placed instance record whose fleet its own fleets table says the record's account owns, and serves it down that fleet's tunnel to the bound box; nothing runs on the hub. One refusal decision, edge.FleetArmVerdict (with the shared DispatchArm and foldPlatformAliases), decides what Reload serves, what the edges file publishes, which wildcard parents the alias pass keeps, and what instances list reports, so they cannot disagree; a refused name stays refused through aliases, catch-alls, platform aliases and certificates (exact and wildcard). The forward row has one exact persisted shape (InertForward); only PutForward, DeleteForward, SetFleetBoxIf, SetDNSStatus and SetCertExpiresAt write it, every other routes writer refuses or skips it before any side effect (a go/ast inventory test keeps it so), and every other reader ignores it (root egress boxWhollyNested, root adoption, retention, canary status, domains trash). The hub enforces the app's rate limit and plan throttle once; the fleet box owns the password gate and the hub forwards the login untouched; the hub's caches never store a fleet app. The forward phase mints, keeps or retires rows from declineMint and removable (uncertainty keeps a row; production apps keep theirs), treats a host whose record cannot be read as disputed, gives a host named by both a platform and a fleet record neither row while armed, and leaves any existing row at a host in place (reported once per pass; instances list shows FPR-C08). Bindings bind only their own fleet at write time (SetFleetBoxIf, one statement; closes a pre-existing hole where a fleet box could steer another fleet's host). Edge reloads on route identity changes (fingerprint). A release floor, release.FleetForwardFloor = v0.32.0 (override --allow-below-fleet-forward-floor, signed in the pointer), refuses any channel move or first publication below it while a fleet exists, and creating a fleet is refused while any published pointer is below it (FPR-C02..C07). carlos add/route/remove refuse a forward host (FPR-C01). Copy FPR-C01..C08 approved by Paul unchanged. Request budget: about what a platform app costs its own box per fleet app; the bindings pass now runs on the hub only. Known limit: WebSockets do not cross the fleet tunnel (pre-existing, #471). Reviews: spec Astra R1-R3 (READY AFTER FIXES), plan Astra R1-R3, per-task Astra or Claude reviews with fix rounds, whole-branch Astra R1 NOT READY (P1 reload fingerprint), R2 READY AFTER FIXES (P2 C08 destination after folding, fixed and checked); census fleet-public-routes approved by Astra on #280. Not released; the first release with this is v0.32.0.
Discussions
- No discussions on this branch yet.
Tasks 18/18 done
- Task 0: Copy deck Done
- Task 1: Bindings bind only their own fleet, at write time (pre-existing hole) Done
- Task 2: The forward kind and its persisted shape Done
- Task 3: Every other writer refuses a forward row Done
- Task 4: The edge serves a forward row through the tunnel and does no gate or cache work for it Done
Activity
- task updated: Task 15: Live on dev
- task updated: Task 14: Legacy rows inventory, census, whole-branch review, merge
- task updated: Whole-branch review
- task updated: Census verdict on #280
- claude agent, operated by paul@keymail.dev pushed d4b47ec3e Fleet public routes review R2: C08 names the destination after the platform-alias fold
- claude agent, operated by paul@keymail.dev pushed c000f28ba Fleet public routes: whole-branch review R1 findings and the R2 brief
- claude agent, operated by paul@keymail.dev pushed efdab2976 Fleet public routes review R1: the census overlay re-proposed for both fixes
- claude agent, operated by paul@keymail.dev pushed 9f468a3c1 Fleet public routes review R1 finding 2: C08 reads the edge's own fleet-dispatch answer
- claude agent, operated by paul@keymail.dev pushed c5bd0b6a0 Fleet public routes review R1 finding 1: the edge's change poll sees route identity and a forward row's inertness
- claude agent, operated by paul@keymail.dev pushed e9d74dac8 Fleet public routes: whole-branch and census review brief, round 1, with the deferred-minor list
- claude agent, operated by paul@keymail.dev pushed 8301716d5 Fleet public routes Task 14 step 2: the census overlay proposed
- claude agent, operated by paul@keymail.dev pushed 0ee2ac4ba Merge origin/main (4029ac56) into design-fleet-public-routes
- task updated: Task 13: The production-wired witness
- claude agent, operated by paul@keymail.dev pushed 12eeecee2 Fleet public routes Task 13: the production-wired witness
- task updated: Task 12: Switch it on at the hub, and the request budget
- claude agent, operated by paul@keymail.dev pushed 409d43d62 Fleet public routes Task 12: the hub's instance pass forwards, and the request budget
- task updated: Task 11: The console reads forward rows right
- claude agent, operated by paul@keymail.dev pushed f68b4fae5 Fleet public routes Task 11 fix round 1: an unplace leaves no fleet behind, C08 only where requests miss the fleet, route_held cleaned
- claude agent, operated by paul@keymail.dev pushed 724f53798 Fleet public routes Task 11: the console reads forward rows right
- task updated: Task 10: The forward phase of the instance pass (dormant)
- claude agent, operated by paul@keymail.dev pushed a3e9803a1 Fleet public routes Task 10 fix round 2: a colliding host's row is kept on every instance-pass path
- claude agent, operated by paul@keymail.dev pushed ff553a48d Fleet public routes Task 10 fix round 1: failed-read hosts disputed, the collision given neither when armed
- claude agent, operated by paul@keymail.dev pushed e50ffe0d7 Fleet public routes Task 10: the forward phase of the hub's instance pass (dormant)
- task updated: Task 9: The fleet-create barrier and the three interleavings
- claude agent, operated by paul@keymail.dev pushed 9f877cfcb Fleet public routes Task 9 fix round 2: the barrier judges two-segment channels and skips release identities by release's own rules
- claude agent, operated by paul@keymail.dev pushed 42337eb6b Fleet public routes Task 9 fix round 1: the barrier judges every published pointer, repairs skip it, a deterministic early-unlock witness
- claude agent, operated by paul@keymail.dev pushed 2b9490a97 Fleet public routes Task 9: the fleet-create barrier and the three floor interleavings
- task updated: Task 8: The release floor on every channel move
- claude agent, operated by paul@keymail.dev pushed 3895bf1b4 Fleet public routes Task 8: the fleet forward floor on every system channel move
- claude agent, operated by paul@keymail.dev pushed 675b63615 Fleet public routes Task 8 step 1: the console floor gates take a fleet override, every caller passing false