carlos / platform Public

reviews: Astra brief for the path routes plan, round 3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e1fc17dcb4b1df679bc49fea47741f85e9ed8fd9 parent 7240922
1 file changed, +82 −0
  • docs/superpowers/reviews/ASTRA-BRIEF-path-routes-across-boxes-plan-R3.md +82 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/ASTRA-BRIEF-path-routes-across-boxes-plan-R3.md b/docs/superpowers/reviews/ASTRA-BRIEF-path-routes-across-boxes-plan-R3.md
new file mode 100644
index 000000000..0c6e81ceb
--- /dev/null
+++ b/docs/superpowers/reviews/ASTRA-BRIEF-path-routes-across-boxes-plan-R3.md
@@ -0,0 +1,82 @@
+# Review brief: path routes across boxes PLAN, round 3 of 3
+
+Repo carlos/platform, branch `path-routes-across-boxes`, commit 7240922da6290b01ed63328241759319d151a317.
+Under review: `docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md`.
+Authority: the spec it implements, `docs/superpowers/specs/2026-11-19-path-routes-across-boxes-design.md`
+(rev 5, approved by Paul 2026-11-19; reviewed by Astra in four rounds, findings in
+`docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-R{1..4}.md`), and the code
+on this branch (main plus docs). Do not review against unmerged branches.
+
+You are an independent reviewer. Read the spec, then the plan, then the code each task names,
+and check every claim the plan makes about that code (file paths, function names and
+signatures, line areas, existing tests and helpers it reuses).
+
+## Fixed: do not re-argue
+
+- The approved spec's design and Paul's rulings in it (approach A; region HA in scope; door
+ calls never cross boxes; shared PathFront/PathTarget; no roll gate, ordering rule instead).
+ Report a plan that fails to implement the spec, not the spec.
+
+## What to check
+
+1. **Spec coverage.** Every requirement in spec §5-§9 has a task whose tests prove it. Name any
+ gap.
+2. **Accuracy against the code.** Every named function, type, file, field and helper exists
+ with the stated shape, or the task creates it. Interfaces between tasks agree (names, types,
+ parameters).
+3. **Task 5's consistency rule** (`view()` with a remote table built beside a specific map
+ pointer): is it sound against how `Reload` publishes and how tests store `e.upstreams`?
+4. **Task 8's placement in ServeHTTP** and the front mark: does it run in the right order
+ relative to `selectUpstream`, the demo/admission/replica branches, `regionalGate`,
+ `routeHAIngress`, the ownership block, the far asset catch and the miss arm, and can it be
+ done without growing `ServeHTTP` (code-health ratchet)?
+5. **Task 7 and Task 9**: is splitting wire Host from route host in the backhaul and HA code
+ complete (every place that keys on `host` for identity), and are the tests able to
+ observe it with the existing harnesses (`backhaul_e2e_test.go`, `newBackhaulSceneWith`)?
+6. **Task 1's budget step**: measurable as written; does it block the right things?
+7. **Order** (rule 6): does the first merge change something Paul can see? (The whole plan
+ is one branch merged once; say so if that is a problem.)
+8. **Test feasibility**: are the named tests writable with the stated fixtures, and do any rely
+ on `time.Sleep` or the standard log without `captureLog`?
+
+## Round 3
+
+Earlier rounds: `docs/superpowers/reviews/ASTRA-FINDINGS-path-routes-across-boxes-plan-R1.md`
+(4 P1, 7 P2, 1 P3) and `...-plan-R2.md` (4 P1, 3 P2). After round 2, rule 2 applied and Paul chose
+its third option (2026-11-20): one selection entry point enforced by `TestSelectUpstreamIsTheOnlySite`,
+case 1 = today's `lookupUpstreamPath` answer plus one guard, the arrived-hop fallback settled inside
+selection. That choice is fixed: report a plan that fails to implement it, not the choice.
+
+First give one line per P1 and P2 from round 2: resolved, partly, or not. Carry unresolved ones forward
+at their severity, then add new findings, naming each fault family and whether it repeats an earlier
+one. This is round 3: a NOT READY also says whether the P1s share one cause and whether refusing the
+case up front or cutting would remove them.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the section or task, the problem,
+the evidence (file:line, verified), the failure scenario, a concrete
+fix and the invariant or trust boundary it breaks (that is its fault
+family). End with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.