carlos / platform Public

spec 7.6: imports refused while paths cross boxes (Paul, 2026-11-21)

Rev 5.4. The two refusals and why; 5.1's PathFront import exclusion is
now defence in depth.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev cf9f9ae3c16547466bfda68841cdc22950b4cc01 parent 79ac6ab
1 file changed, +35 −4
  • docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md +35 −4
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 da8263509..b94b2e3f3 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.3, 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). Rev 5 approved by Paul 2026-11-19. Discussion #186. Builds on the path-routing design
+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
(`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
@@ -194,9 +194,11 @@ called by both sides:
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 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 gated target stays a target: the
+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.
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,
@@ -515,6 +517,35 @@ 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.
+
## 8. Rollout: ordering instead of a capability
No feature switch (**my call**): publishing a map that names a remote target