carlos / platform Public

reviews: Astra plan round 3 findings for path routes across boxes

3 P1, 1 P2, 1 P3: plan-precision gaps in the selection contract's
consumers, the selector migration, and the pre-roll checker's inventory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev d73ff046cb764c24b53780ea569fa2f3e7215e8c parent e1fc17d
1 file changed, +75 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-plan-R3.md +75 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-plan-R3.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-plan-R3.md
new file mode 100644
index 000000000..7392dee13
--- /dev/null
+++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-plan-R3.md
@@ -0,0 +1,75 @@
+Reviewed commit `e1fc17dcb4b1df679bc49fea47741f85e9ed8fd9`. No files edited or tests run. “Plan” below means [the implementation plan](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md).
+
+| R2 finding | Status |
+|---|---|
+| P1-1 — front HA dispatch | **Partly resolved.** Remote dispatch placement is corrected; local platform-alias targets still select the front’s HA identity. Finding 1. |
+| P1-2 — platform-alias compatibility | **Partly resolved.** Selection now accepts them, but login and HA consumers misclassify them. Finding 1. |
+| P1-3 — selector structural guard | **Partly resolved.** The anchor changes, but the prescribed allowlist excludes a required caller. Finding 2. |
+| P1-4 — pre-roll discovery | **Partly resolved.** Published maps are inspected, but unreadable claims disappear from the check. Finding 3. |
+| P2-5 — login pinning and parsing | **Resolved.** Login uses the existing parsed path and the pin-preserving selection entry point. |
+| P2-6 — publication guard and negative coverage | **Resolved.** Excluded rows have explicit absence expectations; the missing negative cases are named. |
+| P2-7 — arrived-hop fallback contract | **Resolved.** Selection returns the front upstream before normal dispatch checks, with no pending remote action. |
+
+1. **P1 — Tasks 9 and 11 infer successful target selection from an invalid hostname comparison.**
+
+ [Plan:297](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:297) chooses the target’s HA identity only when `sel.Up.route.Host == sel.Target`. [Plan:332](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:332) refuses login when those names differ.
+
+ A platform-alias target deliberately carries its underlying instance’s route. Reload copies that entry at [edge.go:1479](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:1479); the differing map key and route host are explicitly asserted at [platformalias_test.go:77](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/platformalias_test.go:77).
+
+ **Failure:** H’s prefix selects local platform alias P, backed by instance I. Selection correctly returns I, with `Target=P`. A working same-box login now receives 409. For an HA front H, Task 9 passes H to `routeHAIngress`; H’s blocked state or forwarding decision can prevent I from serving.
+
+ **Fix:** carry an explicit successful-local-target outcome from `pathMatch` into `requestSelection`. Use that outcome for login eligibility and use the selected upstream’s route host for HA identity. Keep the original intended target separately. Add platform-alias login and HA-front regression tests through dispatch.
+
+ **Fault family:** preserving selected-route identity through downstream consumers; repeats R2 P1-1 and the same-box compatibility family from R1 P1-4/R2 P1-2.
+
+2. **P1 — Task 6’s selector migration cannot pass its prescribed compilation and structural checks.**
+
+ [Plan:211](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:211) changes `selectUpstream` from two return values to one `requestSelection`. Step 3 names only `ServeHTTP` and login adaptation. Three other callers still unpack two values and dereference the old pointer:
+
+ - [demo.go:94](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/demo.go:94)
+ - [demo.go:120](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/demo.go:120)
+ - [pagecache.go:533](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pagecache.go:533)
+
+ Separately, [plan:224–225](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:224) requires `lookupUpstreamPath` to wrap `pathMatch`, then excludes `lookupUpstreamPath` from the functions permitted to call it.
+
+ **Failure:** following the listed edits leaves assignment-count compilation errors. Adapting those callers still leaves the required wrapper rejected by the prescribed structural guard.
+
+ **Fix:** enumerate and migrate all five production call sites in Task 6. Specify separate, exact allowlists for selection entry points, lookup primitives and remote-map reads. Permit the compatibility wrapper’s primitive call while retaining its existing restrictions against request-dispatch use.
+
+ **Fault family:** a complete, guarded selection call graph; repeats R2 P1-3. The omitted callers also repeat the interface-completeness family.
+
+3. **P1 — Task 12’s pre-roll checker can report success after failing to read a cross-box map.**
+
+ [Plan:349](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:349) relies on `domains.ListClaims` to enumerate every published map.
+
+ That helper deliberately skips unsuccessful claim reads and returns a nil error: [claims.go:903](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/domains/claims.go:903). Object-read failures, including transient store errors, become skipped claims at [claims.go:937](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/domains/claims.go:937).
+
+ **Failure:** listing succeeds, but GET fails for the only claim containing cross-box targets. The checker sees no offending map and exits successfully, allowing the rollout-order check to pass without inspecting the configuration that matters.
+
+ **Fix:** use a completeness-reporting claim reader, or explicitly enumerate and validate every listed claim. Any unreadable or undecodable claim must prevent a clean verdict. Add fixtures for a failed claim GET and an unsupported or malformed claim.
+
+ **Fault family:** rollout approval requires a complete desired-state inventory; repeats R2 P1-4.
+
+4. **P2 — Task 6’s `pathMatch` interface lacks the state needed to preserve today’s lookup behavior.**
+
+ [Plan:187](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:187) defines a free function receiving only the upstream map, host and path.
+
+ Today’s lookup first calls `e.lookupDemoAware` at [edge.go:1956](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/edge.go:1956). That method consults the edge’s demo configuration and validates reserved names, rather than applying ordinary wildcard fallback: [demo.go:211](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/demo.go:211).
+
+ **Failure:** replacing this with an ordinary map lookup lets a parent catch-all resolve the reserved demo apex. The existing regression witness is [demo_test.go:119](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/demo_test.go:119).
+
+ **Fix:** make `pathMatch` an `Edge` method, or pass the result of the demo-aware host lookup into it. Include that primitive relationship in the structural guard and retain the existing demo regression test.
+
+ **Fault family:** preserving demo namespace restrictions during lookup extraction; new in this plan review.
+
+5. **P3 — The requirement matrix names three tests differently from Task 6.**
+
+ [Plan:386–387](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md:386) uses `TestSelectPathDoorNeverAcross`, `TestSelectPathDoorHopIgnoresRemoteMap` and `TestSelectPathForwardTargetNeverSelected`. Task 6 names these without `Path`.
+
+ **Effect and fix:** the matrix points to tests the plan does not create; align the names on the follow-up list. **Fault family:** requirement-to-test traceability; new.
+
+Task 5’s single atomic `routeTable` publication is sound and avoids the earlier mixed-generation window. Task 8’s revised placement handles case 3 before admission and remote dispatch before front HA and asset handling. The destination-specific harness can observe the intended topology and wire Host. The benchmark workload assertions and later reruns cover the completed feature; timing the whole reconciliation call gives a conservative bound on its path section. One branch merged once satisfies rule 6 because that first merge delivers the visible feature with its measurements.
+
+The P1s **do not share one cause**. Refusing incomplete inventories up front addresses finding 3. Findings 1–2 require completing the selection contract and its consumers; cutting platform-alias support would contradict the fixed compatibility ruling. No single refusal or feature cut removes all three while delivering the approved plan. This completes round 3; a fourth round requires Paul’s authorization.
+
+**NOT READY**
\ No newline at end of file