carlos / platform Public

edge-roll-blip: Astra spec review brief, round 3 (final)

claude agent, operated by paul@keymail.dev 70a10389c66344b0d0c2e8b6f7cf4f6797aa1846 parent 0162613
1 file changed, +95 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-roll-blip-spec-R3.md +95 −0

CI passed — run details

diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-roll-blip-spec-R3.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-roll-blip-spec-R3.md
new file mode 100644
index 000000000..0156e9006
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-edge-roll-blip-spec-R3.md
@@ -0,0 +1,95 @@
+# Review brief: edge-roll-blip design spec (#434 part B), round 3 of 3 (FINAL)
+
+Repo carlos/platform, branch `edge-roll-blip`, commit 016261301b35311943d99b87d46c7ac353ae14aa (the commit before this brief).
+Under review: `docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md`.
+Authorities: the code on this branch (main plus docs only), AGENTS.md.
+Do not review against unmerged branches; if this work needs one, say so as a P1 and stop.
+
+You are an independent reviewer. Read the document, then the code it
+names, and check every claim against that code.
+
+## Fixed: do not re-argue
+
+- **Paul's ruling, 2026-10-28, recorded on amadan #434 ("2 then 3"):** this
+ branch's whole scope is the local-upstream hold (a refused or missing
+ local upstream gets its dial retried within the 13 s window instead of
+ 502; probed local routes wait for prober readmission instead of 503)
+ plus a startup log line. There is NO `carlos-edge.socket`, and no unit,
+ root, updater, install, bootstrap or rollback change. The socket design
+ is parked in the spec's "Later: option 3" section and is NOT built here.
+- **Every socket, listener-handoff, INV-R and rollback-compatibility
+ finding from rounds 1 and 2 is out of scope by ruling.** Do not raise
+ findings against the "Later: option 3" section; it is a note for a
+ future slice, not a design under review.
+- Part C (instances surviving an edge restart) is out. No console special
+ case unless forced.
+
+## What to check
+
+1. D10 (unprobed routes): the shared local dial retry. Is "local" decided
+ correctly (loopback IP literals, `localhost`, unix sockets) and never
+ for a remote addr? Is retrying refused/ENOENT safe for every method,
+ for request bodies, and for upgrades (WebSockets)? Is it bounded by the
+ request context and the 13 s cap, with no goroutine or connection leak
+ (Go 1.26 transport dial detachment)? Does the unification with the
+ existing unix retry in `genproxy.go` change any current unix behaviour?
+2. D10b (probed routes): the hold never dials an ejected upstream; the
+ readmission allowance formula matches the prober's real schedule
+ (`prober.go`: sequential per-tick probing, `probeTimeout`, `rise_after`,
+ `interval`, clamping); the 30 s cap; mixed local/remote sets; the
+ empty-live-set case; behaviour when readmission exceeds the cap.
+3. Interaction with the wake hold (`wakeWaitBound`), the activator's own
+ dial path, `answered.go` cause classification and access logs/metrics,
+ timeouts, and client disconnects during the hold.
+4. The startup log line: accurate for every way the edge binds (dev mode,
+ -http/-https flags), and cheap.
+5. The local witness: does it exercise the real proxy path, bind
+ 127.0.0.1 only, fail when the hold is off, stay fast and non-flaky in
+ CI, and report the measured wait?
+6. Cross-compile (darwin/windows CI) and any test seam it adds.
+
+## Round 3 (FINAL)
+
+Earlier rounds of this design:
+- Round 1, `docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec.md`:
+ NOT READY. P1 rollback compatibility (socket), P1 restart admission
+ (probed local routes 503), 4 P2.
+- Round 2, `docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R2.md`:
+ NOT READY. P1 rollback compatibility again (socket guard), so stopping
+ rule 2 triggered; P2 restart admission (readmission allowance ignored
+ probe timeout and sequential probing).
+- Paul then cut the socket (ruling above). The spec's "Review history and
+ dispositions" section maps each finding.
+
+First give one line per round-1 and round-2 P1/P2: "out of scope by
+ruling", resolved, partly, or not. Carry forward any in-scope finding not
+fully resolved at its current severity, then add new findings. Name the
+fault family beside each. This is the last round: there is no round 4.
+
+## 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.
+- **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, the problem, the
+evidence (file:line, verified), the failure scenario, a concrete fix and
+the invariant or trust boundary it breaks (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. Also say whether the P1s share
+ one cause, and whether refusing the case up front or cutting the
+ feature would remove them.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.