reviews: Astra task review of Task 7 (path routes across boxes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+18
−0
docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task7.md+18 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task7.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task7.md| new file mode 100644 |
| index 000000000..5b94939c7 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task7.md |
| @@ -0,0 +1,18 @@ |
| +One P2; no P1 findings. |
| + |
| +**P2 — The fallback test does not prove suspect-box avoidance.** [internal/edge/pathhop_test.go:310](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pathhop_test.go:310) |
| + |
| +- **Failure scenario:** If `backhaulTarget` incorrectly receives `wireHost`, the second request can dial the closed Betty listener again, then reach Carol through the correctly route-keyed connect fallback. Both response assertions and Carol’s request count still pass. |
| +- **Fix:** Count Betty’s `DialContext` invocations. Assert one after the first request and no increase after the second. Keep the existing response assertions. |
| +- **Invariant:** The initial suspect-box alternative must use the selected route’s identity, and the test must distinguish avoidance from another failed dial. |
| + |
| +The remaining checks pass by inspection: |
| + |
| +- Signing, SNI, certificate verification and connection pooling use `wireHost`; the outgoing Host remains `r.Host`. Holder cache operations, owner checks, alternatives, handover and drops use `routeHost`. |
| +- The verified-hop refusal is the first decision in `backhaulRouteTo`, following only the existing atomic home-map load. The `backhaulTo` wrapper reaches it directly; no new path bypasses it. |
| +- With `wireHost == routeHost`, existing callers retain their previous behavior, including log text and retry limits. |
| +- The per-destination harness independently routes Betty and Carol. The backend echo observes Host and the verified client chain; holder tests inspect both cache keys and subsequent destination counts. |
| + |
| +The targeted `TestBackhaulRouteTo` run could not start: the read-only sandbox prevented Go from creating its work directory. `GOCACHE` was left unset. No files were edited or full suites run. |
| + |
| +READY AFTER FIXES |
| \ No newline at end of file |