carlos / platform Public

reviews: Astra whole-branch round 4 (READY AFTER FIXES) (#186)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7fdcb97c2c345701ec193e9350e01b5e1f90754d parent a01b81e
1 file changed, +59 −0
  • docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-branch-R4.md +59 −0
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-branch-R4.md b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-branch-R4.md
new file mode 100644
index 000000000..4617213f2
--- /dev/null
+++ b/docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-branch-R4.md
@@ -0,0 +1,59 @@
+Reviewed `11e88490..fb946e10e0c0e936e8d2c03359721af5d69933ee`, authorized round 4. The checkout’s later commit adds only the review brief. **No P1 found; one P2 test gap.**
+
+**Round 3 P1 disposition**
+
+- **P1-1 — Paused republish and stale rollback:** Removed by the ruling. Imports and cross-box prefixes may coexist; the refusal and rollback code are gone.
+- **P1-2 — Retained publications and target relocation:** Removed by the ruling. Cross-box targets may keep serving during the front’s import; receiver withdrawal is no longer required.
+- **P1-3 — Lifetime recovery bypass:** Removed by the ruling. Recovery no longer needs to exclude cross-box prefixes.
+- **P1-4 — Incomplete placement evidence:** Removed by the ruling. The co-location admission check and its callers are gone.
+
+**Findings**
+
+**P1:** None.
+
+**P2 — Post-commit coverage omits the front and same-box prefix from boxes B and C.**
+
+[internal/edge/path_across_import_test.go:162](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/path_across_import_test.go:162), lines 162–167: `/other` and `/here/x` are requested only through `s.hub`; the three-box loop covers only `/acme/y`.
+
+**Failure scenario:** The test passes even if requests entering B or C fail to reach the imported front or its same-box target after commit. This leaves the brief’s requested post-commit coverage incomplete and contradicts the test’s “from every box” comment.
+
+**Fix:** Request all three routes through every box after `CommitImport`, checking the imported front, same-box target and cross-box target responses. Update the backend request assertions accordingly.
+
+**Fault family:** import lifecycle — routing coverage across receiving boxes.
+
+**P3:** None raised.
+
+**Revert verification**
+
+- `internal/console` and `internal/domains` are byte-for-byte equal to their pre-`79ac6ab7` state.
+- `PathFront`, `PathTarget` and `PathEligibilityCases` match pre-`75d18c81`; only the explanatory `PathFront` comment differs.
+- No remaining production/test references to the removed refusal helpers, hooks, restoration writer or census layer were found.
+- The HA fix (`6d692fef`) and upgrade-trigger fix (`ea5800d5`), including their tests, are unchanged.
+- During import, the new tests cover all three boxes for the front, same-box prefix and cross-box prefix, with both open and rollback-closed gates.
+
+**Census verdicts**
+
+| Unit or envelope | Verdict and basis |
+|---|---|
+| `PathFront` | **APPROVE.** [pathroute.go:19](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/registry/pathroute.go:19), lines 19–24: restored kind exclusions; import independence implements the ruling. No new input source. |
+| `PathTarget` | **APPROVE.** [pathroute.go:28](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/registry/pathroute.go:28), lines 28–30: readiness plus the restored front predicate; target admission remains unchanged. |
+| `var PathEligibilityCases` | **APPROVE.** [pathroute.go:45](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/registry/pathroute.go:45), lines 45–56: restored literal test table; no runtime read. |
+| `pathRouteKind` | **APPROVE removal.** Its checks return to `PathFront`; no declaration or caller remains. |
+| `claimRawRestoreClaimPathsAt` | **APPROVE removal.** The conditional claim-restoration writer is deleted with its callers. |
+| `RestoreClaimPathsAt` | **APPROVE removal.** Its mutation wrapper is deleted; no replacement write path was introduced. |
+| `pathRoutesImportWriteCensusInventory` | **APPROVE removal.** The additional writer it inventoried no longer exists. |
+| `TestPlan9B8RecordWriteCensus` | **APPROVE.** [plan9_b8_census_test.go:360](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/provision/plan9_b8_census_test.go:360), lines 360–374: restores the preceding inventory while retaining discovery and policy checks. |
+| `internal/domains` envelope | **APPROVE.** Production source restored; recomputed envelope matches. |
+| `internal/registry` envelope | **APPROVE.** Only the reviewed predicate/table restoration changes production source; recomputed envelope matches. |
+
+The three restored unit digests match their overlay entries. All 266 chain seals validate, ending at `680c00f4…6d16`. Unchanged census approvals remain applicable.
+
+**Dot-segment 404**
+
+This is expected traversal-guard behavior, not a routing defect or the backend-normalization 404 described by the two-spelling rule.
+
+The matcher selects `acme` from the cleaned spelling. The unchanged path then matches [`hard.traversal.dotdot`](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edgeguard/catalogue.txt:3), and [writeGuardBlock](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/guard.go:355) returns 404 before the backend receives it. The existing matcher test explicitly [disables protection for this reason](/home/paulca/.paseo/worktrees/03ai90xp/path-routes-across-boxes/internal/edge/path_test.go:208). No production change is needed.
+
+Whitespace and formatting checks passed. Targeted tests could not start because Go could not create its work directory on the read-only filesystem. No files changed, no subagents or full suites ran, and `GOCACHE` was left untouched. Apply the P2 fix without reopening review.
+
+READY AFTER FIXES
\ No newline at end of file