carlos / platform Public

reviews: Astra round 2 findings for path routes across boxes

Two P1s: forward routes pass the sender's target check but not the
receiver's (same family as R1 P1-2, so rule 2 applies), and door
authorization does not survive re-resolution.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e7624ab7163579108d54aaa445481df681332764 parent 8f1a932
1 file changed, +39 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R2.md +39 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R2.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R2.md
new file mode 100644
index 000000000..896c24dd1
--- /dev/null
+++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R2.md
@@ -0,0 +1,39 @@
+- **R1 P1-1 — Resolved:** §5.1 separates route ownership from whole-host door ownership.
+- **R1 P1-2 — Partly resolved:** exact lookup removes wildcard targets, but remote eligibility still admits forward rows that the receiver rejects. Carried forward below.
+- **R1 P1-3 — Resolved:** aliases are explicitly excluded from cross-box selection.
+- **R1 P1-4 — Resolved:** the ownership bypass requires evidence for the exact front name; wildcard and alias selections retain the check.
+- **R1 P1-5 — Resolved:** excluding HA fronts and targets removes the identified dispatch conflict.
+- **R1 P1-6 — Resolved:** the hop dials exactly the capability-checked box, without holder substitution or retries elsewhere.
+- **R1 P1-7 — Resolved:** §7.2 covers both purge resolution and execution authorization, including account and current-instance checks.
+- **R1 P2-8 — Resolved:** §7.3 retains the intended target independently of fallback and refuses unsupported login handling before choosing credentials.
+- **R1 P2-9 — Resolved:** §6 requires capped-map measurements, explicit budgets, and no writes for unchanged rows.
+
+Reviewed commit `8f1a932db85f46247cb3426c5e3445a74056a498`, round 2 of 3. Static design review against the checked-out code. No files changed or tests run.
+
+1. **P1 — §§5.1–5.3: remote eligibility cannot distinguish an excluded forward route.**
+
+ The proposed publication adds `route_account`, `route_app`, and `route_ha` to exact route rows. The remote check accepts a same-account, non-HA exact row on a capable box; the local check explicitly rejects forward entries. See [design:152](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md:152) and [design:217](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md:217).
+
+ Forward rows are real registry routes, distinguished by `Kind == "forward"` ([forward.go:57](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/registry/forward.go:57)). The edges-file writer explicitly includes them and publishes them as `Role: "home"` ([edgesfile.go:718](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/host/edgesfile.go:718), [edgesfile.go:734](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/host/edgesfile.go:734)). None of the proposed fields communicates that distinction.
+
+ **Failure scenario:** H on box A maps `/tenant` to forward route F on upgraded box B. F passes the sender’s exact-owner, account, non-HA and capability checks. B receives `Host: H`, rejects local F under §5.3, and cannot forward onward. Today’s H fallback becomes 503. The off-home front check has the same missing distinction: it can classify a forward hostname as an eligible front.
+
+ **Fix:** define one eligibility predicate for both publication and local selection. Publish positive eligibility evidence only when that predicate holds, or add an explicit eligibility field beside route ownership. Require it for remote fronts and targets. Add sender/receiver agreement tests covering forward rows.
+
+ **Fault family:** agreement between sender and receiver about target identity. This continues **R1 P1-2**, at P1. It is the second consecutive round in this family; stopping rule 2 applies. The recommended option is one shared invariant with guard tests before another revision.
+
+2. **P1 — §§5.4–5.5, 7.4: door authorization does not survive receiver re-resolution.**
+
+ §7.4 promises authorization against the selected app, while §5.4 sends no selected-target identity and lets the receiver independently select any local answer ([design:264](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md:264), [design:391](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md:391)).
+
+ The caller’s account/app exists only in a local context value. `hopTo` sends a signed boolean door mark, explicitly without the caller identity ([edge.go:4859](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:4859)). `acceptHop` restores only that boolean ([homemap.go:1555](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/homemap.go:1555)). Consequently, the receiver cannot apply `doorOwnsRoute`; its ordinary check requires `isDoor` ([edge.go:2815](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:2815)). The received mark nevertheless exempts the request from rate limiting ([ratelimit.go:130](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/ratelimit.go:130)).
+
+ **Failure scenario:** even assuming the sender adds the necessary pre-hop ownership check, app A’s door call selects A’s target T on box B. During a republish, B already maps that prefix to app C’s local target U, in the same account. Front ownership remains unchanged, so all front/account checks pass. B serves U with the door exemption, although A’s key authorizes only A. The design explicitly permits temporary disagreement between maps.
+
+ **Fix:** refuse cross-box prefix handling for door traffic in this slice, including received door-marked hops, or authenticate caller/selected-app identity across the hop and require the receiver’s final selection to match. A sender-only check is insufficient. Test differing sender/receiver maps and fallback answers.
+
+ **Fault family:** app-scoped door authorization across independent routing decisions. This is a new finding, related to R1 P1-1’s door-authority boundary; separate route-owner fields do not preserve caller authorization.
+
+No additional P2 or P3 findings.
+
+**NOT READY**
\ No newline at end of file