reviews: Astra task review of Task 8, round 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+24
−0
docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task8-R2.md+24 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task8-R2.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task8-R2.md| new file mode 100644 |
| index 000000000..d8e14aabc |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-task8-R2.md |
| @@ -0,0 +1,24 @@ |
| +- **A-P1-1 — resolved:** ownership uses the front’s identity, preserving attached-alias checks after path selection. |
| +- **A-P1-2 — resolved:** reservation and sweeping now recheck name authority; the reported ownership-change bypass is closed. |
| +- **A-P2 — resolved:** the callback result crosses a channel, synchronizing the test’s assertions. |
| +- **O-I1 — resolved:** a catch-all no longer prevents the exact front’s remote map from selecting its target. |
| + |
| +**P2 — Upgrade checks reject a supported legacy fallback.** [pathhop.go:222](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pathhop.go:222) |
| + |
| +**Fault family:** request/upgrade ownership consistency; repeats round 1 A-P1-2. |
| + |
| +**Failure scenario:** a local catch-all selects a tunnel backend; another box publishes a legacy, non-admission-aware exact name; no mesh key is mirrored. `nameOwnerVerdict` returns `ownerElsewhere`, but `serveNameOwner` deliberately permits local service when backhaul cannot sign and neither admission-aware ownership nor a case 3 front requires refusal ([pathhop.go:193–203](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/pathhop.go:193)). The existing `TestGroupNamesLegacyLocalAnswers/catchall-no-key` preserves this behavior. |
| + |
| +An ordinary upgrade request therefore passes that ownership block, then fails reservation with `errTenancyStale` and returns 502. A reload also sweeps an existing reservation despite unchanged tenancy and continued permission to serve locally. |
| + |
| +**Fix:** centralize the legacy local-fallback condition and share it between dispatch and upgrade rechecks. Add reservation and sweep coverage for the no-key case, alongside admission-aware cases that must still refuse. |
| + |
| +**Invariant:** upgrade revalidation must preserve the same local-serving permissions and refusals as request dispatch. |
| + |
| +The ordinary-upgrade tightening is correct for admission-aware ownership changes, but the blanket `v != ownerLocal` check introduces this compatibility regression. The implementer’s claim that `ServeHTTP` would never admit such a request is therefore too broad. |
| + |
| +This round has no P1. Stop review rounds under rule 1. The repeated family also triggers rule 2; I recommend its single shared invariant plus guard-test option. |
| + |
| +`git diff --check` passed. Targeted tests could not run: Go attempted to update `go.mod` in the read-only sandbox. No files were edited, no full suites ran, and GOCACHE remained unset. |
| + |
| +READY AFTER FIXES |
| \ No newline at end of file |