spec: path routes across boxes rev 2, Astra round 1 fixes
Round 1 found 7 P1 and 2 P2. Rev 2 narrows cross-box selection to a claim's own exact non-HA route and exact non-HA targets, publishes a route owner in the edges file, dials exactly the checked box, and fixes purge execution, gate refusal and the fleet-wide cost budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+393
−223
docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R1.md+93 −0docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md+300 −223
CI passed — run details
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R1.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R1.md| new file mode 100644 |
| index 000000000..029415129 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R1.md |
| @@ -0,0 +1,93 @@ |
| +Reviewed commit `6f8f2467af3094f848e37d544d86c5e676e88044`, round 1 of 3. This was a static design review against the checked-out code. I made no edits and ran no tests. |
| + |
| +1. **P1 — §5.3: `homes.Owner` does not provide the primary-route ownership this design requires.** |
| + |
| + `servedOwners` combines the front route’s owner with every local path target’s owner. Different apps—even within one account—produce empty account/app fields. `Owner` then returns false. Evidence: [edgesfile.go:149](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/host/edgesfile.go:149), [edgesfile.go:186](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/host/edgesfile.go:186), [homemap.go:1293](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/homemap.go:1293). The existing [mixed-owner test](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/host/edgesfile_test.go:1195) explicitly requires this behavior. |
| + |
| + **Failure:** hub H has one local prefix serving another app and another prefix targeting remote T. Every non-home ingress rejects H’s remote map because `Owner(H)` fails. It backhauls to H, which cannot hop again and serves the hub instead of T. Direct ingress on H can select T, making placement determine the answer. |
| + |
| + **Fix:** publish primary-route authority separately from the existing whole-host door owner. Preserve the door’s mixed-owner refusal. Retain claim account/app alongside each live path map so selection can validate it against that authority. |
| + |
| + **Fault family:** primary-route authority versus whole-host door authorization. |
| + |
| +2. **P1 — §5.3: remote target resolution admits wildcard matches that the receiver cannot select.** |
| + |
| + `Owner(T)` uses wildcard fallback, while path targets resolve through the exact key `m[T]`. Evidence: [homemap.go:1270](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/homemap.go:1270), [edge.go:2030](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2030). Today derivation requires an actual ready route at T: [aliases.go:685](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/domains/aliases.go:685). |
| + |
| + **Failure:** a map names `missing.example.com`, with no such route, but another upgraded box publishes a same-account `*.example.com`. The proposed sender accepts its owner and capability and spends the hop. The receiver has no exact target entry; it cannot serve the selection or hop onward, so today’s front-route 200 becomes 503. |
| + |
| + **Fix:** require remote target evidence for the exact eligible route named by the map. Reject wildcard-only resolution and explicitly define eligibility for alias, regional and forward entries. Apply the same target rule locally and remotely. |
| + |
| + **Fault family:** agreement between sender and receiver about target identity. |
| + |
| +3. **P1 — §§5.1–5.4: aliases do not receive their primary’s remote path map.** |
| + |
| + Local aliases inherit the primary’s entire upstream, including its paths. This is deliberate and tested: [edge.go:1510](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:1510), [path_test.go:92](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/path_test.go:92). The proposed remote map is built only from `route_paths` rows keyed by their own host; no equivalent alias inheritance is specified. |
| + |
| + **Failure:** alias A points to hub H; H’s `/tenant` targets T on another box. On H’s box, A inherits the map and sends a signed request with `Host: A` to T’s box. That box has remote rows for H, but none for A, so re-resolution returns none and rejects the hop. Entering through another box instead sends the request to H and falls back to the hub. |
| + |
| + **Fix:** resolve the authorized front-name-to-primary relationship before selecting its map on every box. Preserve ordinary alias inheritance and platform aliases’ distinct rules. Add an end-to-end alias witness with H and T on different boxes. |
| + |
| + **Fault family:** equivalent routing through primary and attached hostnames. |
| + |
| +4. **P1 — §5.5: the blanket ownership-check bypass can let a wildcard override another account’s exact hostname.** |
| + |
| + The proposal says path-selected upstreams carry a mark and skip the ownership block. Today that block checks whether an exact remote hostname outranks the local wildcard answer: [edge.go:2547](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2547). Exact claims outrank wildcard claims in [nameauthority.go:80](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edgesfile/nameauthority.go:80). |
| + |
| + **Failure:** account A’s local wildcard inherits a prefix map selecting A’s backend. Account B owns an exact hostname covered by that wildcard on another box. A request for B’s hostname hits A’s local wildcard prefix. Marking every path selection and skipping the ownership block sends B’s traffic to A’s backend. Case 1 does not perform case 3’s ownership check. |
| + |
| + **Fix:** retain front-host authority resolution before applying any map. Only bypass the later block when the selection carries evidence that this specific front name already passed that resolution; a generic “path selected” flag is insufficient. |
| + |
| + **Fault family:** exact-name precedence and cross-account traffic isolation. |
| + |
| +5. **P1 — §§5.5, 7.5: unchanged HA ingress routing overrides the selected path target.** |
| + |
| + `routeHAIngress` runs **after** `selectUpstream`, before miss handling. It resolves HA metadata using the request Host and requires the local upstream to match that primary. Otherwise it forwards or refuses. Evidence: [edge.go:2485](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2485), [edge.go:2538](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2538), [haingress.go:117](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/haingress.go:117). |
| + |
| + **Failure:** an HA front host H selects remote target T. On T’s box, re-resolution produces local T, but HA ingress still resolves H. T cannot satisfy the H identity comparison. `frontForwardHAIngress` rejects the already-hopped request: [haingress.go:136](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/haingress.go:136). |
| + |
| + **Fix:** explicitly separate front-name authority from selected-route HA handling. Once an authorized prefix selects T, HA admission, holder selection and handover must operate on T while preserving H for HTTP Host and hop authentication. Cover HA fronts and HA targets separately. |
| + |
| + **Fault family:** selected-route identity through HA dispatch. |
| + |
| +6. **P1 — §§5.4, 8: the capability check does not cover the box ultimately dialled.** |
| + |
| + After selection checks a box, `backhaulTarget` can replace it with a cached holder or alternative. Response handling can subsequently follow another holder or handover destination. Evidence: [backhaul_holder.go:156](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/backhaul_holder.go:156), [backhaul_holder.go:260](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/backhaul_holder.go:260), [backhaul_holder.go:279](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/backhaul_holder.go:279). |
| + |
| + **Failure:** `Owner(T)` selects an upgraded box advertising `path-hops-1`, but T’s holder is an old box. The sender follows that holder with the front Host. The old receiver has no remote path map and rejects the request, turning the previous front-route 200 into 503. |
| + |
| + **Fix:** enforce capability eligibility on every actual destination, including cached holders, alternatives and retries. Define the compatibility fallback when the required holder lacks the capability; checking only the initial owner cannot establish rollout safety. |
| + |
| + **Fault family:** destination eligibility throughout mixed-version forwarding. |
| + |
| +7. **P1 — §7.2: accepting the purge header does not permit the cache eviction.** |
| + |
| + `applyPurgeTargets` independently filters every response-cache purge through `purgeOwns`. That function immediately rejects a front host absent from the local upstream map. Evidence: [purge_header.go:745](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/purge_header.go:745), [purge_header.go:866](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/purge_header.go:866). The control-side `ownsHost` uses the same guard: [pagecache.go:167](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pagecache.go:167). |
| + |
| + **Failure:** T’s response declares `Carlos-Purge-Host: H`. The proposed resolver change accepts H through `remotePaths`, but `purgeOwns` returns false because H is absent from `m`. Cached tenant pages remain stale. |
| + |
| + **Fix:** extend the final purge-ownership guard as well as header resolution, using one coherent snapshot. Preserve account validation and the current-instance check. Test actual eviction for path, URL and whole-host purges, plus refusal after ownership changes. |
| + |
| + **Fault family:** purge authorization surviving through execution. |
| + |
| +8. **P2 — §7.3: define login refusal before availability fallback erases the selected target.** |
| + |
| + §5.3 returns the front route when remote ownership or capability checks fail. §7.3 only specifies refusal when `next` selects a remote result. Existing login handling replaces `up` with the lookup result and later passes that route’s Host and gate hash to `Admit`: [edge.go:2784](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2784), [edge.go:3011](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:3011). |
| + |
| + **Failure scenario:** T renders a gate form, then its remote eligibility disappears before the POST reaches H. Ordinary selection falls back to H, concealing that the login belongs to unsupported cross-box routing. |
| + |
| + **Fix:** retain the matched prefix and intended target independently of the serving fallback. Refuse an unsupported cross-box login before choosing a password hash or issuing a cookie, including capability-loss and unavailable-owner cases. |
| + |
| + **Fault family:** login credentials bound to the route that requested them. |
| + |
| +9. **P2 — §§5.1, 6, 9: the unchanged convergence-time claim lacks a fleet-wide cost check.** |
| + |
| + Reconciliation unconditionally upserts every desired path row, and `Fingerprint` scans all path rows every two seconds: [aliases.go:966](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/domains/aliases.go:966), [registry.go:4314](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/registry/registry.go:4314), [edge.go:3963](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:3963). |
| + |
| + **Failure scenario:** multiple hosts each publish 10,000 prefixes. Every box now performs work for their combined maps, including unrelated boxes. A per-claim cap does not bound that total, so the claimed unchanged five-second convergence is unproven. |
| + |
| + **Fix:** require measurements for reconciliation, fingerprinting and reload at several capped hosts. Specify an acceptable budget and address unnecessary writes or batching if measurements exceed it. This is a missing validation requirement, not a measured performance failure. |
| + |
| + **Fault family:** bounded control-plane work and convergence latency. |
| + |
| +**NOT READY** |
| \ No newline at end of file |
diff --git a/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md b/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md| index b85515852..23afc5894 100644 |
| --- a/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md |
| +++ b/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md |
| @@ -1,13 +1,21 @@ |
| # Path routes across boxes: a prefix whose target lives on another box |
| -Rev 1, 2026-11-19. Discussion #186. Builds on the path-routing design |
| +Rev 2, 2026-11-19. Discussion #186. Builds on the path-routing design |
| (`2026-09-02-path-based-routing-design.md`, "the 09-02 design" below) and |
| changes none of its rulings except the one it was written to lift: §6's |
| "a prefix's target route must be homed on the same box as the hostname's |
| own route". |
| Written without a live session with Paul. Every decision he did not make is |
| -marked **my call** and listed in §11. |
| +marked **my call** and listed in §11; questions only he can answer are in |
| +§12. |
| + |
| +**Review history.** Round 1 (Astra, |
| +`docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R1.md`): |
| +7 P1, 2 P2. Rev 2 answers all nine: P1-1 by publishing a route owner |
| +(§5.1), P1-2 by exact targets (§5.3), P1-3, P1-4 and P1-5 by narrowing who |
| +may select across boxes (§5.3, §7.5), P1-6 by dialling exactly the checked |
| +box (§5.4), P1-7 in §7.2, P2-8 in §7.3, P2-9 in §6. |
| ## 1. Intent |
| @@ -36,20 +44,25 @@ tenant's `X-Carlos-Version`. |
| Goals: |
| -- A prefix whose target is homed on any box of the deployment reaches the |
| - target, whichever box the request arrives on. |
| +- A prefix on a hub's own hostname whose target is homed on any box of the |
| + deployment reaches the target, whichever box the request arrives on. |
| - The target sees exactly what it sees today on the same box: the original |
| `Host`, the original path bytes (no stripping), and its own route's |
| - attribution (metering, version header, activator, gate, purge tenancy). |
| + attribution (metering, version header, activator, purge tenancy). |
| - At most one hop between edges, as today. |
| -Non-goals: |
| +Non-goals (each keeps today's behaviour: the prefix serves the host's own |
| +route): |
| +- **Front names other than the claim's own exact route.** Aliases, attached |
| + hostnames, platform aliases, wildcard catch-alls, regional names and |
| + forward (fleet) rows do not select a target on another box. They keep |
| + selecting same-box targets exactly as today. |
| +- **Region-HA routes**, as the front host or as the target (§7.5). |
| +- **A password gate on a target selected across boxes** (§7.3). |
| - No change to the wire, the write door, the cap, or the matcher (the |
| - two-spelling first-segment rule, 09-02 §6). |
| -- No multi-segment prefixes, no per-prefix settings, no path-aware certs, |
| - DNS or placement. The hostname stays the unit of all three. |
| -- No password gate on a target selected across boxes (§7.3). |
| + two-spelling first-segment rule, 09-02 §6). No multi-segment prefixes, no |
| + per-prefix settings, no path-aware certs, DNS or placement. |
| Anti-goals (would be a failure even if requests got through): |
| @@ -58,9 +71,9 @@ Anti-goals (would be a failure even if requests got through): |
| - **The tenant seeing a different request depending on placement.** Same box |
| and cross box must be indistinguishable to the app: same `Host`, same |
| cache key, same purge vocabulary. |
| -- **Another tenant's traffic reaching a backend.** The 09-02 account rule (a |
| - target must be in the claim's account) holds on every box, including boxes |
| - that cannot see either route locally. |
| +- **Another tenant's traffic reaching a backend**, or a wildcard's map |
| + answering for a hostname another account owns exactly. The 09-02 account |
| + rule holds on every box, including boxes that cannot see either route. |
| - **A 503 where today gives a 200 during a roll.** A mixed-version fleet |
| must behave at least as well as today's fall-through. |
| @@ -68,22 +81,23 @@ Anti-goals (would be a failure even if requests got through): |
| 1. **Derivation** (`internal/domains/aliases.go`, `ReconcileAliasesReport`). |
| Every box reads every claim. A claim's `Paths` become `route_paths` rows |
| - only on the box whose registry holds the claim's host route (the |
| - "hostname's own route is not on this box; another box derives these |
| - rows" branch), and only for targets that are a **local ready route** in |
| - the claim's account. Anything else is counted as unresolved and logged. |
| + only on the box whose registry holds the claim's host route, and only for |
| + targets that are a **local ready route** in the claim's account. |
| + Anything else is counted as unresolved and logged. |
| 2. **Fold** (`Edge.Reload`, edge.go ~1440). Each row is attached to the host's |
| - entry in the live map as `up.paths[prefix] = target`. A row whose host has |
| - no entry is skipped. Forward hosts, demo routes and demo-reserved targets |
| - are filtered out. |
| -3. **Lookup** (`lookupUpstreamPath`). Host first; for a host with a map, |
| - first segment (raw and cleaned); a hit returns `m[target]` wholesale; any |
| - miss returns the host's own entry. Regional entries never select by path. |
| + entry in the live map as `up.paths[prefix] = target`. Aliases and |
| + catch-alls inherit their primary's map; platform aliases keep their own. |
| + Forward hosts, demo routes and demo-reserved targets are filtered out. |
| +3. **Lookup** (`lookupUpstreamPath`). Host first (exact, then one-label |
| + wildcard); for a host with a map, first segment (raw and cleaned); a hit |
| + returns `m[target]` wholesale; any miss returns the host's own entry. |
| + Regional entries never select by path. After the lookup, the ownership |
| + block (`!e.servesExactly(host)` or an alias) checks whether another box's |
| + exact claim outranks the local answer. |
| 4. **Elsewhere.** A request for `example.com/acme` that arrives on a box not |
| homing `example.com` is a host miss and is backhauled, signed for |
| `example.com`, to the host's home box, which then runs step 3. The home |
| - box cannot hop again, so even if it knew where the target lived it could |
| - not send the request there. |
| + box cannot hop again. |
| So the fix cannot live on the host's home box alone: by the time a |
| non-home ingress box has backhauled the request there, its one hop is spent. |
| @@ -93,53 +107,58 @@ non-home ingress box has backhauled the request there, its one hop is spent. |
| **A. The ingress box selects; one hop to the selected route's box |
| (chosen).** Every box knows every path-routed host's map. The box a request |
| -arrives on selects the target exactly as the home box does today, then |
| -serves it locally or makes its one hop straight to the box that serves the |
| -target. The receiving box re-runs the same selection from `Host` and path |
| -and serves the target. One hop, `Host` preserved, the target's box does all |
| -the per-request work, as it does for any backhauled host. |
| +arrives on selects the target as the home box does today, then serves it |
| +locally or makes its one hop straight to the box that serves the target. |
| +The receiving box re-runs the same selection from `Host` and path and |
| +serves the target. |
| -**B. Two hops: ingress → host's home → target's box.** Keeps today's |
| -derivation. Rejected: it relaxes "one hop, ever", which is the loop guard; |
| -doubles cross-box latency for every tenant request arriving off the hub's |
| -box; and makes the hub's box a relay for every tenant's traffic. |
| +**B. Two hops: ingress → host's home → target's box.** Rejected: it relaxes |
| +"one hop, ever", the loop guard; doubles cross-box latency; makes the hub's |
| +box a relay for every tenant's traffic. |
| **C. Rewrite `Host` to the target and backhaul as an ordinary hop** (the |
| literal reading of "keyed on the target host" in #186). Rejected: the |
| -tenant would see `Host: acme.<...>.oncarlos.com` across boxes and |
| -`Host: example.com` on the same box; the response cache would key the |
| -tenant's pages under the target's hostname, so one target behind two front |
| -hosts would share entries; the hub-session cookie (`__Host-`, user-models |
| -§6.3) and every absolute URL the tenant builds depend on the front host. It |
| -also still needs ingress-side selection to avoid a second hop, so it saves |
| +tenant would see a different `Host` across boxes than on the same box; the |
| +response cache would key tenant pages under the target's hostname; the hub |
| +session cookie (`__Host-`, user-models §6.3) and every absolute URL depend |
| +on the front host. It still needs ingress-side selection, so it saves |
| nothing. |
| -**D. Keep co-location and enforce it** (place tenants on the hub's box, or |
| -refuse cross-box targets at the door). Rejected: it is the ceiling #186 asks |
| -to remove. |
| +**D. Keep co-location and enforce it.** Rejected: it is the ceiling #186 |
| +asks to remove. |
| ## 5. Design |
| -### 5.1 Derivation: every box derives every path-routed host's rows |
| +### 5.1 Facts every box needs |
| -`route_paths` keeps its schema and its "wholly pass-owned" rule. What |
| -changes is which box derives which rows: |
| +**Path rows for every path-routed host, on every box.** `route_paths` keeps |
| +its schema and its "wholly pass-owned" rule; what changes is which box |
| +derives which rows: |
| - **The host gate.** If the claim's host is a local route, today's check |
| - stands (route account and app match the claim). If it is not local, the |
| - rows are still derived; the host's ownership is checked at request time |
| - against the home map instead (§5.3). The sidecar-suffix refusals stand |
| - unchanged on every box. |
| + stands. If not, the rows are still derived; the host's route owner is |
| + checked at request time (§5.3). The sidecar-suffix refusals stand. |
| - **The target gate.** Prefix validity and the sidecar-target refusal stand. |
| - If the target is a local route, today's account and readiness checks |
| - stand. If it is not local, the row is derived and the account check moves |
| - to request time (§5.3). |
| -- **The unresolved log** loses its "must be homed on the SAME box" advice. |
| - The reconcile pass can no longer tell "missing" from "elsewhere"; the edge |
| - can, and logs (§5.6). |
| + A local target keeps today's account and readiness checks. A non-local |
| + target's row is derived and checked at request time (§5.3). |
| +- **Writes are diffed.** The pass writes only rows that changed (today it |
| + upserts every desired row every pass); this matters once every box holds |
| + every map (§6). |
| +- **The unresolved log** loses its "must be homed on the SAME box" advice; |
| + the edge logs the reasons it can tell apart (§5.6). |
| - The cap and its deterministic sorted truncation are unchanged, and now |
| - matter more: every box must truncate identically or the same URL would |
| - select differently by ingress. |
| + matter more: every box must truncate identically. |
| + |
| +**A route owner in the edges file.** Each box's edges file gains, on the |
| +row for an exact route it serves (never an alias or `*.` row), three |
| +additive fields: `route_account`, `route_app` (the route's own account and |
| +app) and `route_ha` (the route is region-HA). Today's `account`/`app` stay |
| +exactly as they are: they are the **door's** owner, folded over every |
| +route and path target under the name, and blank when those disagree, which |
| +a hub with prefixes to other apps always does (round 1 P1-1). The new |
| +fields answer a different question, "whose route is this exact name", and |
| +are what §5.3 checks. `homeMap` exposes them only through the exact lookup |
| +(`ExactHome`'s rule: no wildcard fallback). |
| Every `ListPaths` reader must then be checked against rows whose host is not |
| local (**the builder's audit**, a required plan task): |
| @@ -147,202 +166,243 @@ local (**the builder's audit**, a required plan task): |
| | Reader | Today's assumption | Needed | |
| |---|---|---| |
| | `Edge.Reload` fold | rows' hosts are in `m` | rows whose host is not in `m` go to the remote map (§5.2), not dropped | |
| -| `servedOwners` (`internal/host/edgesfile.go`) | skips hosts it does not serve | unchanged; a remote target is not added as an owner (§7.4) | |
| +| `servedOwners` (`internal/host/edgesfile.go`) | skips hosts it does not serve | unchanged; the door owner is untouched (§7.4) | |
| | `assetpolicy` `pathHosts` | marks local path hosts | harmless superset; confirm | |
| -| `apiroutes` (`carlos routes`) | rows hang under listed hosts | show rows only under hosts the listing has, as now; confirm no orphan rows render | |
| -| `Fingerprint` | hashes all rows | unchanged; it must still move on every row change | |
| -| reconcile's own delete-unlisted pass | — | unchanged | |
| +| `apiroutes` (`carlos routes`) | rows hang under listed hosts | rows only under hosts the listing has; no orphan rows | |
| +| `Fingerprint` | hashes all rows | unchanged; must still move on every row change | |
| +| purge ownership (`purgeOwns`, `ownsHost`) | front host in `m` | §7.2 | |
| **My call:** one table, not a second "remote paths" table. The rows are the |
| -same fact (a claim's prefix map); only the reader decides what locality |
| -means, and the reload fold is where that already happens. |
| +same fact (a claim's prefix map); the reader decides what locality means. |
| ### 5.2 The live map: a remote map beside `m` |
| `Reload` builds, from rows whose host has no entry in `m`, a |
| -`remotePaths map[host]map[prefix]target` stored in the same snapshot as `m`, |
| -so one `current()` read sees both. The same filters as the local fold apply: |
| -no forward hosts, demo-reserved hosts and targets dropped |
| -(`filterDemoRoutes`' rules), and no map for any name the regional table |
| -holds on this box (regional names never select by path, 09-02 and #447). |
| +`remotePaths map[host]remoteMap` (prefix → target, plus the claim's account |
| +and app from the row) in the same snapshot as `m`, so one `current()` read |
| +sees both. The same filters as the local fold apply: no forward hosts, |
| +demo-reserved hosts and targets dropped (`filterDemoRoutes`' rules), and no |
| +map for any name the regional table holds on this box. Aliases and |
| +catch-alls get **no** remote map: only a claim's own host is keyed. |
| Rows whose host **is** in `m` fold into `up.paths` exactly as today, with one |
| -change: a row whose target is **not** in `m` is kept, not silently missing |
| -at lookup. That is what lets the host's own box send a prefix to a remote |
| -target (§5.3, case 1). |
| +change: a row whose target is not in `m` is kept, so the host's own box can |
| +send that prefix to a remote target (§5.3, case 2). |
| ### 5.3 Selection |
| -`lookupUpstreamPath(host, path)` keeps its signature for every caller that |
| -only wants a local upstream, and selection gains a third outcome. The |
| -result of selecting is one of: |
| +The result of selecting is one of: |
| -- **local**: an upstream on this box (today's two outcomes, host route or |
| - path target); |
| -- **remote**: "this request belongs to route T, served on box B" (new); |
| +- **local**: an upstream on this box (today's outcomes); |
| +- **remote**: "this request belongs to route T, on box B" (new); |
| - **none**: a host miss with no path selection (today's backhaul to the |
| host's home, unchanged). |
| The matcher (both spellings, cleaned wins, one segment, one hop of |
| -indirection) is shared, not copied: one function produces the selected |
| -prefix and target for a host's map whichever map it came from. |
| - |
| -Cases, on the box the request arrives on: |
| +indirection) is one function, shared by the local and remote maps. |
| + |
| +**Who may select across boxes.** A remote selection, or a local selection |
| +of a target for a front host this box does not serve, is allowed only when |
| +the request's `Host` is a **front route**: the exact name of a route that |
| +is not region-HA, matched exactly (never through a wildcard key), and not |
| +an alias, platform alias, regional name or forward row. On the host's own |
| +box that is the exact entry with `!up.alias && !up.platformAlias && |
| +up.regional == regionalNone && !up.route.IsForward() && !up.route.HA`; off |
| +it, the home map's exact row for `Host` with `route_account`/`route_app` |
| +equal to the row's claim account and app and `route_ha` false. Any other |
| +front name keeps today's selection: same-box targets only, and the |
| +ownership block after the lookup runs exactly as today (round 1 P1-3, |
| +P1-4, P1-5). |
| + |
| +**What may be selected across boxes.** A **target route**: the exact name of |
| +a route, resolved through the home map's exact lookup only (never |
| +`Owner`'s wildcard fallback), with `route_account` equal to the row's |
| +account and `route_ha` false; its box dialable and publishing `path-hops-1` |
| +(§8). Locally, `m[T]` must be a route's own entry: not an alias, platform |
| +alias, regional, forward, demo or sidecar entry. The same rule on both |
| +sides, so sender and receiver agree on what a target is (round 1 P1-2). |
| + |
| +Cases, on the box the request arrives on, for a front route: |
| 1. **The host is local, a prefix hits, the target is local.** Today's |
| answer, unchanged. |
| -2. **The host is local, a prefix hits, the target is not local.** Look up the |
| - target's owner in the home map (`homes.Owner(T)`). Selected as **remote** |
| - only when all hold: the owner is dialable; its account equals the row's |
| - account (the 09-02 tenancy rule, now enforced where the facts are); its |
| - serving box publishes the `path-hops-1` capability (§8). Otherwise the |
| - request serves the host's own route, as today, and the edge logs (§5.6). |
| -3. **The host is not local and has a remote map.** First check the host's |
| - owner (`homes.Owner(host)`): its account and app must equal the row's |
| - account and app, or the remote map is ignored for this request and it is |
| - backhauled to the host's home as today. Then match the path: |
| +2. **The host is local, a prefix hits, the target is not local.** If the |
| + target rule above holds, **remote**. Otherwise the host's own route, as |
| + today, and a log (§5.6). |
| +3. **The host is not local and has a remote map.** The front route check |
| + above, against the home map. If it fails, ignore the remote map: backhaul |
| + to the host's home, as today. If it holds, match the path: |
| - prefix misses → backhaul to the host's home, as today; |
| - - prefix hits and the target is local → serve the target here, as case 1 |
| - would on the home box; |
| - - prefix hits and the target is remote → as case 2, and if case 2's |
| - checks fail, backhaul to the host's home as today. |
| + - prefix hits, target local and a target route → serve it here; |
| + - prefix hits, target remote and the target rule holds → **remote**; |
| + - otherwise → backhaul to the host's home, as today. |
| 4. **The host is not local and has no remote map.** Today's answer. |
| -The account check on case 3's target is the one that matters most: no box |
| -may send a prefix to a route in another account, whichever box it is and |
| -whatever it can see locally. |
| +The account checks are the ones that matter most: no box may send a prefix |
| +to a route in another account, whichever box it is and whatever it can see |
| +locally. |
| -**My call:** request-time ownership checks rather than reload-time ones. |
| -The home map refreshes on its own 30-second cycle, independent of reload; |
| -checking at request time means a moved or re-owned route is judged against |
| -the freshest view, at the cost of two map reads on a request for a remote |
| -path-routed host. |
| +**My call:** checks at request time against the home map, not at reload. |
| +The home map refreshes on its own 30-second cycle; checking at request time |
| +judges a moved or re-owned route against the freshest view, at the cost of |
| +two map reads on a request for a remote path-routed front route. |
| ### 5.4 The hop, and the box that receives it |
| -A remote selection makes the ordinary signed backhaul (`backhaulTo`) with: |
| +A remote selection makes a signed backhaul through `hopTo`, with: |
| - **`Host` unchanged and the MAC over the request's `Host`**, as every hop is |
| signed today (`signHop(key, host, now)`). SNI is the request's host; every |
| - edge serves every cert (`certsync`'s mirror), so the receiving box |
| - presents it. |
| -- **Dialled to the target's serving box**, and every sender-side table that |
| - is keyed by host today (the HA holder cache, suspect boxes, |
| - `backhaulAlternative`, the backhaul owner) keyed by the **target**, since |
| - that is the route the hop is for. |
| - |
| -**No new hop header.** The receiving box does not take the sender's word for |
| -which route was selected; it runs the same selection itself, from `Host` and |
| -path, against its own maps, and on a verified hop accepts only a **local** |
| -answer: |
| + edge serves every cert (`certsync`'s mirror). |
| +- **Dialled exactly to the box the target rule checked.** No holder cache, no |
| + `backhaulAlternative`, no handover redirect: those exist for region-HA |
| + routes, which are excluded, and each would choose a box the capability |
| + check never saw (round 1 P1-6). A failed dial answers what a failed |
| + backhaul answers today (502); it never falls back to the host's route |
| + after bytes have been sent. |
| + |
| +**No new hop header.** The receiving box runs the same selection itself, |
| +from `Host` and path, against its own maps and home map, and on a verified |
| +hop accepts only a **local** answer: |
| - local answer → serve it (the target's entry wholesale, as on the same box); |
| - remote or none → `staleHopRefusal` (503, `Retry-After: 2`), never onward. |
| Both boxes derive the same rows from the same claims within one fast-converge |
| -tick, so they agree outside a few seconds after a republish. **My call:** |
| -re-resolution over a signed "selected target" header, because it adds no |
| -vocabulary to the hop, keeps "a hop is a request for `Host`" true, and makes |
| -the receiving box's own tenancy view the last word. |
| +tick and read the same edges files, so they agree outside a few seconds |
| +after a republish. **My call:** re-resolution over a signed "selected |
| +target" header: no new hop vocabulary, "a hop is a request for `Host`" |
| +stays true, and the receiving box's own tenancy view is the last word. |
| **The host's home box receiving a hop that selects a remote target.** This |
| happens when the sender did not select the prefix: an old binary mid-roll, |
| -or a sender whose map is a tick behind. The home box cannot hop again. It |
| -serves the **host's own route**, exactly today's answer, and logs. **My |
| -call**, over a 503: a 503 there would turn today's 200 into an error for |
| -every request arriving through an old box during a roll (§2's last |
| -anti-goal), and the window after a republish is the same few seconds today |
| -already has. |
| +or a sender a tick behind. The home box cannot hop again. It serves the |
| +**host's own route**, exactly today's answer, and logs. **My call**, over a |
| +503: a 503 would turn today's 200 into an error for every request arriving |
| +through an old box during a roll (§2's last anti-goal). |
| ### 5.5 ServeHTTP placement |
| -Selection stays where `selectUpstream` is today. A remote selection is |
| -handled on the miss arm's side, before the far asset catch, so a request |
| -that belongs to a target is never answered from the host's declared assets. |
| -Every arm above the lookup (`acceptHop`, the regional gate, the HA ingress |
| -alias) is unchanged. |
| - |
| -Case 3's "target is local" answer serves a host this box does not serve |
| -exactly. The alias and catch-all ownership block (the |
| -`!e.servesExactly(host)` branch after the regional gate) must not treat it |
| -as a wildcard match: a path-selected upstream carries a mark, and that block |
| -skips marked upstreams. The host's ownership was already checked in §5.3. |
| +Selection stays in `selectUpstream`. A remote selection is answered on the |
| +miss arm's side, before the far asset catch, so a request that belongs to a |
| +target is never answered from the host's declared assets. Every arm above |
| +the lookup (`acceptHop`, the regional gate) is unchanged. |
| + |
| +**The ownership block.** It runs unchanged for every selection except one: |
| +case 3's "target local, served here", where this box does not serve the |
| +front name at all. That upstream carries a mark naming the front route it |
| +was checked against (host, route account and app, the home map row's stamp |
| +and incarnation), not a bare "path selected" flag. The block skips only |
| +when the mark names the request's own `Host` and the home map still |
| +resolves that `Host` exactly to the same row. A wildcard or alias match |
| +never carries the mark, so the block's exact-name precedence check runs as |
| +today (round 1 P1-4). |
| + |
| +**HA ingress.** `routeHAIngress` and `frontForwardHA` see no change: the front |
| +route and the target are both non-HA by §5.3, so neither has HA metadata to |
| +act on for a cross-box selection (round 1 P1-5; §7.5). |
| Downstream of selection, nothing changes: the target's entry carries |
| -metering, the version header, the activator, admission, rate limits and |
| -the response cache. The cache keys on the requested host (09-02 §6), and the |
| -target's entries now live on the target's box. The page cache's exclusion of |
| -path-routed hosts (`pagecache.go`) must hold for case 3 too. |
| +metering, the version header, the activator, admission, rate limits and the |
| +response cache. The cache keys on the requested host (09-02 §6), and the |
| +target's entries live on the box that served them. The page cache's |
| +exclusion of path-routed hosts (`pagecache.go`) must hold for case 3 too. |
| ### 5.6 What the operator sees |
| -- The reconcile log keeps its per-host aggregated "names no local ready |
| - route" count, reworded so it no longer tells anyone to co-locate. |
| -- The edge logs, throttled per host, when a prefix names a target with no |
| - dialable owner anywhere, a target in another account, or a serving box |
| - without `path-hops-1`. These are the three "it still falls through" |
| - reasons, and they are the ones an operator can act on. |
| +- The reconcile log keeps its per-host "names no local ready route" count, |
| + reworded so it no longer tells anyone to co-locate. |
| +- The edge logs, throttled per host, when a front route's prefix names a |
| + target that is not a target route anywhere, is in another account, is |
| + region-HA, or sits on a box without `path-hops-1`; and when a front name |
| + is not a front route (alias, wildcard, HA) but its map names a remote |
| + target. These are the "it still falls through" reasons an operator can |
| + act on. |
| - **My call:** no new CLI surface in this slice. `carlos domains paths` |
| already lists the map; the hub scaffold's version check is the end-to-end |
| test of reachability. |
| -## 6. Latency |
| +## 6. Latency and cost |
| -- **Republishing a map** on its own: unchanged, about five seconds (09-02 |
| - §7), now on every box rather than one. |
| +- **Republishing a map:** about five seconds (09-02 §7), now on every box. |
| - **A brand-new target on another box** (a tenant just created): reachable |
| - from other boxes once its box republishes its edges file (seconds) and |
| - the sender's home map polls it (`homeMapInterval`, 30 s). Up to about 35 |
| - seconds, during which the prefix serves the host's own route. This is the |
| - same delay any new hostname has today when it arrives on a box that does |
| - not home it. The Rastrillo hub scaffold's step 6 version poll must allow |
| - at least a minute before marking a tenant `failed`. |
| + from other boxes once its box republishes its edges file (seconds) and the |
| + sender's home map polls it (`homeMapInterval`, 30 s). Up to about 35 |
| + seconds, during which the prefix serves the host's own route, the same |
| + delay any new hostname has today on a box that does not home it. The |
| + Rastrillo hub scaffold's step 6 version poll must allow at least a minute |
| + before marking a tenant `failed`. |
| +- **Cost on every box (round 1 P2-9).** Every box now holds every map, so |
| + the fast-converge pass, `Fingerprint` (every 2 s) and `Reload` scale with |
| + the deployment's total prefixes, not one host's. The plan's first task |
| + measures all three at 1, 5 and 10 hosts of 10,000 prefixes. Budget: at 10 |
| + capped hosts, the pass's path section, one `Fingerprint` and one `Reload` |
| + each stay under 100 ms on a dev box, and an unchanged republish writes no |
| + rows. Over budget, the builder brings it back under (diffed writes, |
| + hashing the path section from a per-claim digest) before anything else |
| + lands; if that cannot be done, it stops and reports with the numbers. |
| ## 7. What changes for adjacent features |
| ### 7.1 Regional names (#447) |
| -Unchanged. A regional entry still never selects by path, and no remote map |
| -is built for a name the regional table holds on the box. A cross-box target |
| -may be in another region; that hop is an ordinary cross-region backhaul. |
| +Unchanged. A regional entry never selects by path; no remote map is built |
| +for a name the regional table holds on the box; a regional name is never a |
| +front route or a target route. A cross-box target may be in another region: |
| +that hop is an ordinary cross-region backhaul. |
| -### 7.2 Purge |
| +### 7.2 Purge (round 1 P1-7) |
| A target app emits `Carlos-Purge-Host: <front host>` (09-02's "what an app |
| -must do"). Its box now holds the front host's entries for that target, and |
| -`resolvePurgeHost`'s path-routing branch must accept the front host when this |
| -box's remote map has a prefix on it selecting the purging route, with the |
| -same account requirement. A hub's whole-host purge drops the hub box's |
| -entries only; tenant pages cached on other boxes are purged by their own |
| -apps. **My call:** acceptable, and arguably more correct than today, where a |
| -hub's `Carlos-Purge: *` also drops every co-located tenant's pages. |
| - |
| -### 7.3 The password gate |
| - |
| -A login POST is re-resolved by its `next` path (`gate.LoginPath`), but it |
| -arrives at the host's route, not the prefix's, so on a box that does not |
| -serve the target it cannot be sent to the target without reading the body |
| -before the hop. **Out of scope** (**my call**): a gated target under a |
| -cross-box prefix is not supported in this slice. The receiving box never |
| -judges the password with the wrong route: a login POST whose `next` selects |
| -a remote target answers a refusal with a sentence, not the host's gate. |
| -Hub tenants authenticate with the hub session (user-models §6.3), so the |
| -hub model does not need the gate. |
| +must do"). Its box holds the front host's entries for that target. Two |
| +guards must accept the front host, from one snapshot: |
| + |
| +- `resolvePurgeHost`'s path-routing branch, and |
| +- the execution guard `purgeOwns` (`applyPurgeTargets`) and the control |
| + channel's `ownsHost` (`pagecache.go`), which today refuse any host absent |
| + from `m`. |
| + |
| +Both accept a front host absent from `m` only when this box's remote map for |
| +it has a prefix selecting the purging route, the front route check of §5.3 |
| +holds, and the purging route is the current instance, with the existing |
| +account requirement. Tests evict real entries for an exact URL, a path and |
| +a whole-host purge, and refuse once the prefix or ownership changes. |
| + |
| +A hub's whole-host purge drops the hub box's entries only; tenant pages |
| +cached on other boxes are purged by their own apps. **My call:** |
| +acceptable, and arguably more correct than today, where a hub's |
| +`Carlos-Purge: *` also drops every co-located tenant's pages. |
| + |
| +### 7.3 The password gate (round 1 P2-8) |
| + |
| +A login POST is re-resolved by its `next` path, but arrives at the front |
| +route's box, so a cross-box target cannot be reached without reading the |
| +body before the hop. **Out of scope** (**my call**). The login handling |
| +keeps the matched prefix and its **intended** target separately from the |
| +serving fallback: when `next` matches a prefix whose target is not a local |
| +target route (remote, or ineligible for any reason in §5.3), the POST is |
| +refused with a sentence, before any password hash is chosen or any cookie |
| +issued. It is never judged by the front route's gate. Hub tenants |
| +authenticate with the hub session (user-models §6.3), so the hub model does |
| +not need the gate. |
| ### 7.4 Door callers |
| A door caller's own app selected through a prefix is served as on the same |
| box (the door scope compares against the selected route). The edges file's |
| -owner set for a front host still lists only local targets, so a remote |
| -target app calling the **front host's own route** through the door is not |
| -admitted. **My call:** unchanged in this slice; a tenant calls the hub on the |
| -hub's own hostname. |
| +door owner for a front host is unchanged, so a remote target app calling |
| +the **front host's own route** through the door is not admitted. **My |
| +call:** unchanged in this slice; a tenant calls the hub on its own hostname. |
| ### 7.5 Region HA and fleets |
| -A born-HA target is dialled at its serving box as `Owner(T)` resolves it, |
| -with the holder logic keyed by the target (§5.4). A target that is a fleet |
| -forward row is unchanged from today (the 09-02 design never covered it). |
| +Region-HA routes are excluded as front routes and as targets (§5.3). Their |
| +dispatch (`routeHAIngress`, `frontForwardHA`, the holder cache, handover) |
| +resolves identity from the request's `Host` and would need to carry the |
| +selected target through all of it (round 1 P1-5, P1-6). A prefix that names |
| +an HA target, or sits on an HA front, keeps today's same-box behaviour and |
| +is logged. Whether hub tenants need HA in this slice is §12's first |
| +question. A target that is a fleet forward row is unchanged from today. |
| ## 8. Rollout and the mixed-version fleet |
| @@ -350,59 +410,76 @@ No feature switch (**my call**): publishing a map that names a remote target |
| is the opt-in, and the scaffold that does so has not shipped. |
| A box running this release publishes `path-hops-1` in its edges file's |
| -capabilities. A sender selects a remote target only when the target's |
| -serving box publishes it (§5.3), so a new ingress box never hops a prefix |
| -to an old box that would refuse it. An old ingress box backhauls to the |
| -host's home as today, and §5.4's rule keeps that answer a 200. |
| +capabilities and the route-owner fields of §5.1. A sender selects a remote |
| +target only when the box it will dial publishes `path-hops-1`, and case 3 |
| +needs the front host's home to publish the route owner; an old home |
| +publishes neither, so its prefixes keep today's behaviour. An old ingress |
| +box backhauls to the host's home as today, and §5.4's rule keeps that |
| +answer a 200. |
| **Behaviour change on release:** any live map that already names a target on |
| another box starts reaching that target. Before the roll, list path maps on |
| dev and flagship and confirm nobody relies on today's fall-through. None is |
| -expected: `ti.to` is not behind the edge and the hub scaffold has not shipped. |
| +expected: `ti.to` is not behind the edge and the hub scaffold has not |
| +shipped. |
| ## 9. Tests the plan must carry |
| -- Derivation: rows for a non-local host and non-local targets are written on |
| - every box; cross-account local targets still refused; sorted truncation |
| - identical across boxes. |
| -- Fingerprint moves when a non-local host's row changes. |
| -- Selection, all four cases of §5.3, each with the account check failing. |
| -- **The tenancy guard:** a remote map whose target's owner is another |
| - account never selects it, on the host's box and off it. |
| -- One hop: a verified hop never leaves the receiving box, whatever its maps |
| - say (an extension of the existing "one hop, ever" tests). |
| +- The cost measurement and budget of §6, first. |
| +- Derivation: rows for a non-local host and non-local targets on every box; |
| + cross-account local targets still refused; identical sorted truncation; |
| + an unchanged republish writes nothing. |
| +- Edges file: route-owner fields on exact route rows only; the door owner |
| + unchanged for a mixed host (the existing mixed-owner test stays green). |
| +- Selection: all four cases of §5.3, each with each check failing; a |
| + wildcard-only owner of the target never selects; an alias, a catch-all |
| + and an HA front never select remotely. |
| +- **Tenancy:** a remote map whose target's route owner is another account |
| + never selects it, on the host's box and off it; a local wildcard's map |
| + never answers for another account's exact hostname on another box (the |
| + ownership block still refuses). |
| +- One hop: a verified hop never leaves the receiving box; the dial goes to |
| + exactly the checked box. |
| - The home box receiving a hop that selects a remote target serves the |
| host's route. |
| - `path-hops-1` absent on the target's box → no remote selection. |
| -- An end-to-end test with two edges and a shared fake store: a request on the |
| - hub's box and one on the tenant's box both get the tenant's version header |
| - with the front `Host`; a removed prefix stops selecting within one fold. |
| -- Purge: a target's `Carlos-Purge-Host: <front host>` purges on its own box. |
| -- **Witness on dev** (rule 6, the slice's observable result): a hub on one dev |
| - box, a tenant on another, `curl https://<hub>/<slug>/api/version` from |
| - outside answers with the tenant's version, through either box's ingress. |
| +- Two edges and a shared fake store: a request on the hub's box and one on |
| + the tenant's box both get the tenant's version header with the front |
| + `Host`; a removed prefix stops selecting within one fold. |
| +- Purge eviction and refusal as in §7.2; gate refusal as in §7.3. |
| +- **Witness on dev** (rule 6): a hub on one dev box, a tenant on another, |
| + `curl https://<hub>/<slug>/api/version` from outside answers with the |
| + tenant's version, through either box's ingress. |
| ## 10. What is left to the builder |
| -- Where the remote map lives in the snapshot type, and the mark that tells |
| - the ownership block a path selection made the upstream (§5.5). |
| -- How the shared matcher returns the selected target without changing |
| - `lookupUpstreamPath`'s callers that want a local upstream only |
| - (`TestSelectUpstreamIsTheOnlySite` stays true). |
| +- The snapshot type for the remote map and the front-route mark (§5.5). |
| +- How the shared matcher returns the selected target without changing what |
| + `TestSelectUpstreamIsTheOnlySite` holds. |
| - The copy for the gate refusal in §7.3 goes through copy review. |
| ## 11. Calls I made (for Paul to confirm or overturn) |
| 1. Approach A: the ingress box selects, one hop, receiver re-resolves (§4). |
| -2. One `route_paths` table derived on every box, not a second table (§5.1). |
| -3. Ownership and account checks for remote hosts and targets at request |
| - time against the home map (§5.3). |
| -4. No new hop header; the receiving box re-runs selection (§5.4). |
| -5. The host's home box, receiving a hop that selects a remote target, serves |
| +2. Only a claim's own exact, non-HA route selects across boxes; aliases, |
| + catch-alls, regional and forward names keep same-box behaviour (§5.3). |
| +3. One `route_paths` table derived on every box; three additive edges-file |
| + fields for the route owner (§5.1). |
| +4. Ownership and account checks at request time against the home map (§5.3). |
| +5. No new hop header; the receiving box re-runs selection (§5.4). |
| +6. The host's home box, receiving a hop that selects a remote target, serves |
| the host's own route rather than 503 (§5.4). |
| -6. No new CLI surface (§5.6). |
| -7. A hub's whole-host purge stops reaching tenants on other boxes (§7.2). |
| -8. Password-gated targets under a cross-box prefix are out of scope (§7.3). |
| -9. Door calls from a remote target to the front host's own route stay |
| - refused (§7.4). |
| -10. No feature switch; a `path-hops-1` capability protects the roll (§8). |
| +7. No new CLI surface (§5.6). |
| +8. A hub's whole-host purge stops reaching tenants on other boxes (§7.2). |
| +9. Password-gated targets under a cross-box prefix are refused (§7.3). |
| +10. Door calls from a remote target to the front host's own route stay |
| + refused (§7.4). |
| +11. No feature switch; `path-hops-1` protects the roll (§8). |
| + |
| +## 12. Questions for Paul |
| + |
| +1. **Do hub tenants (or the hub) need region HA in this slice?** Rev 2 |
| + excludes HA fronts and HA targets, which keeps HA dispatch untouched. If |
| + Seamus or Patrix tenants will be born-HA from the start, HA needs its own |
| + design pass (carrying the selected target through `routeHAIngress`, |
| + holders and handover) before this can serve them. |