spec 7.6: imports gate same-box prefixes only (Paul, 2026-11-21)
Rev 5.5. Section 7.6 states the ruling: the front's import gate covers its own route and same-box prefixes; cross-box prefixes keep serving. The refusal design (rev 5.4) and 5.1's PathFront import exclusion are withdrawn: three review rounds found them bypassable without a cross-box acknowledgement protocol.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+18
−37
docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md+18 −37
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 b94b2e3f3..2c31535a8 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,6 +1,6 @@ |
| # Path routes across boxes: a prefix whose target lives on another box |
| -Rev 5.4, 2026-11-21 (§7.2 cut by Paul during the build; §7.3 clarified; §5.1 import-gated fronts; §5.7 HA identity under a front route only; §7.6 imports refused up front, Paul's ruling). Rev 5 approved by Paul 2026-11-19. Discussion #186. Builds on the path-routing design |
| +Rev 5.5, 2026-11-21 (§7.2 cut by Paul during the build; §7.3 clarified; §5.7 HA identity under a front route only; §7.6 imports gate same-box prefixes only, Paul's ruling). Rev 5 approved by Paul 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 |
| @@ -192,14 +192,8 @@ called by both sides: |
| `PathTarget` is true for a ready route of kind `instance` or `static` that is |
| not a forward, demo or sidecar route. `PathFront` is true for a route of |
| -kind `instance` or `static` that is not a forward, demo or sidecar route |
| -and carries no import gate (an uncommitted import, its gate open or closed |
| -by a rollback: whole-branch review R1 P1-1). So no box that has refreshed |
| -selects a gated front's prefixes across boxes; they reach the front's own |
| -box, whose import gate holds them closed as it does today. A box that has |
| -not refreshed still holds the old mark, so what holds the rule is §7.6's |
| -refusals; this exclusion stays as defence in depth. A gated target stays a target: the |
| -box serving it runs the import gate on the selected row. |
| +kind `instance` or `static` that is not a forward, demo or sidecar route. |
| +An import gate does not change either answer (§7.6). |
| Region HA does not change either answer (§5.7). A guard test walks every |
| route kind and every flag the registry carries (forward, demo, sidecar, HA, |
| replica, hibernating, static, service) and fails if the published mark and |
| @@ -517,34 +511,21 @@ A tenant calls the hub on the hub's own hostname, and itself on its own. |
| A target that is a fleet forward row is not a target route (`PathTarget`), |
| so it keeps today's behaviour everywhere. |
| -### 7.6 Imports (Paul's ruling, 2026-11-21) |
| - |
| -An import's gate (seeded-instances spec §5.4) holds the front's prefixes |
| -closed on the front's own box, and `PathFront` stops that box publishing the |
| -front as one (§5.1). But a box that has not yet refreshed, or whose refresh |
| -failed, keeps the front's last `path_front=true` with no bound on how long, |
| -and if it serves a prefix's target it selects that target for the front's |
| -name (case 3) and serves it without the gate (whole-branch review R2 P1). |
| -Rule 2 applied; Paul chose to refuse the state up front: |
| - |
| -- **An import does not begin** while its host's claim has a prefix whose |
| - target is on another box: the import door's begin answers 409, `This |
| - address sends some of its paths to apps on other boxes, so it can’t be |
| - imported while they’re there. Remove those paths, import, then add them |
| - back.` |
| -- **While the import is open** (any state but committed), the paths door |
| - refuses a publish that adds such a prefix (a prefix the stored map lacks, |
| - or maps to another target): 409, `This address is being imported. Paths |
| - that go to apps on other boxes can be added once the import is |
| - committed.` Removals and same-box prefixes are published as before. |
| - |
| -"On another box" is judged by the console from the edges files every box |
| -publishes, as the edges route: a target is on the front's box only when some |
| -box publishes it as home and every box that does also publishes the front as |
| -home. A target no box publishes counts as on another box (the stricter |
| -reading). Both refusals' wording is pending Paul's copy review. Same-box |
| -prefixes need neither: the front's own gate holds them. `PathFront`'s import |
| -exclusion stays as defence in depth. |
| +### 7.6 Imports (Paul, 2026-11-21) |
| + |
| +A front's import gate (seeded-instances spec §5.4) covers its own route and |
| +its same-box prefixes (case 1), exactly as on main |
| +(`TestImportGateCoversPathRoutes`). A prefix whose target is a tenant app on |
| +another box (cases 2 and 3) is a separate app: it keeps serving, from every |
| +box, while the front imports. After commit everything routes as normal. |
| + |
| +Paul withdrew an earlier design that refused the state instead (no import |
| +begins while the front's claim crosses boxes; no cross-box prefix is added |
| +while one is open; and `PathFront` false for a gated front). Three review |
| +rounds found each version bypassable: a box that has not refreshed keeps |
| +the front's old mark, and the console's check and write race. Extending the |
| +gate across boxes reliably needs a cross-box acknowledgement protocol, which |
| +this design does not build. |
| ## 8. Rollout: ordering instead of a capability |