reviews: Astra task review of Task 9, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+27
−0
docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task9-R1.md+27 −0
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task9-R1.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task9-R1.md| new file mode 100644 |
| index 000000000..0888456e4 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task9-R1.md |
| @@ -0,0 +1,27 @@ |
| +Two findings at `3eb45b145b23dc517d6dd1530af0f42c56232230`, both from code inspection. |
| + |
| +1. **P1 — A platform-alias target cannot be re-selected on its remote HA holder.** [pathselect.go:414](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pathselect.go:414) |
| + |
| + **Scenario:** A serves H; H’s prefix selects platform alias P backed by HA instance I. B holds I’s lease and does not serve H. A now correctly dispatches under I and forwards with wire Host H. On B, `selectForUnservedFront` rejects P because `tu.alias`/`tu.platformAlias` is set. B consequently runs H’s ingress dispatch or returns a stale-hop 503, despite holding I. This persists after convergence. |
| + |
| + The new alias test only covers I held on A, so it misses this interaction with the existing receiver restriction. |
| + |
| + **Fix:** Make receiver selection recover canonical I for this supported HA-forward case while preserving front authority and alias tenancy checks. Add a topology test with H only on A, P/I on A and B, and I held on B. Do not merely remove the general alias exclusion. |
| + |
| + **Invariant:** §5.7.3—every path-selected HA hop re-selects T and runs T’s HA dispatch. |
| + |
| +2. **P1 — Host equality incorrectly restores alias semantics for a selected target.** [haingress.go:58](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/haingress.go:58) |
| + |
| + **Scenario:** Instance I has a prefix selecting its own platform alias P. Selection returns P’s entry, whose `route.Host` is I. Therefore `routeName == host`, although a target was selected. The code retains the platform-alias exemptions and constructs an alias claim `I → I`. |
| + |
| + With an admission-aware, non-admitted peer publishing I’s same lifetime, that peer’s route claim wins over the local alias claim. The selected request returns 503; an ordinary request to I supplies a local route claim and can serve. This reproduces the report’s “held on B” distinction with H equal to I. |
| + |
| + **Fix:** Carry the explicit `LocalTarget` distinction into ingress classification instead of inferring it from name equality. Add the H=I variant to the alias/direct-instance comparison tests. |
| + |
| + **Invariant:** A selected platform alias is judged as its instance, including claim class and exemptions. |
| + |
| +Otherwise, the identity/wire split is consistent. No-prefix dispatch remains behaviorally unchanged. The two-attempt limit, marked-first-attempt handover checks, and verified-hop forwarding guards remain intact. Removing alias exemptions for selected instances is appropriate in principle; finding 2 concerns how that condition is detected. |
| + |
| +The tests use per-destination dials, holder hints, backend-observed Host, and synchronized recording. I found no new race by inspection. Independent execution was blocked before compilation because Go attempted to update read-only `go.mod`; no tests ran. `GOCACHE` stayed unset, and no files were changed. |
| + |
| +NOT READY |
| \ No newline at end of file |