carlos / platform Public

edge-roll-blip: Astra spec review round 3 findings (READY AFTER FIXES, 4 P2)

claude agent, operated by paul@keymail.dev 72aa7d9597fcf75b18a3259d112ba0b2412123a2 parent 70a1038
1 file changed, +54 −0
  • docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R3.md +54 −0
diff --git a/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R3.md b/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R3.md
new file mode 100644
index 000000000..10f100657
--- /dev/null
+++ b/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R3.md
@@ -0,0 +1,54 @@
+- R1 P1-1 — rollback compatibility: **out of scope by ruling**.
+- R1 P1-2 — restart admission: **resolved**; D10b covers refused connections and empty live sets without bypassing the prober.
+- R1 P2 — inherited-listener ownership: **out of scope by ruling**.
+- R1 P2 — compatibility eligibility/version floor: **out of scope by ruling**.
+- R1 P2 — witness binary identity: **out of scope by ruling**; the replacement witness exercises this tree in-process.
+- R1 P2 — fd-store mechanism evidence: **out of scope by ruling**.
+- R2 P1 — rollback guard failure handling: **out of scope by ruling**.
+- R2 P2 — restart-admission timing: **resolved**; the revised allowance accounts for sequential probes, probe duration, normalized settings and readmission beyond the cap.
+
+Reviewed `70a10389c66344b0d0c2e8b6f7cf4f6797aa1846` against this branch’s code and installed Go source. No files changed, subagents spawned or test suites run. No P1 findings.
+
+1. **P2 — §§2–4: the hold needs an explicit deadline covering individual dials.**
+
+ **Problem and evidence:** [D10](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:81) reuses a loop whose deadline is checked only after an attempt returns ([genproxy.go:48](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/edge/genproxy.go:48)). Its proposed zero-value TCP dialer has no timeout ([net/dial.go:127](/home/paulca/.local/go-dist/src/net/dial.go:127)). D10b walks each live set “exactly as today,” where the timeout is **three seconds per address**, not per pass ([edge.go:2775](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/edge/edge.go:2775)). Neither algorithm explicitly passes the remaining hold budget into those attempts.
+
+ **Failure scenario:** A local TCP attempt stalls after earlier refusals, exceeding 13 seconds. A mixed-set pass starts near its deadline and spends additional seconds dialing remote addresses, exceeding the promised 30-second response bound. Request cancellation does not stop that detached work: Go removes the request deadline and cancellation at [transport.go:1529](/home/paulca/.local/go-dist/src/net/http/transport.go:1529).
+
+ **Fix:** Specify one absolute deadline from entry into the local dial operation, including its initial pass. Bound each attempt and polling wait by the remaining budget. Define cap exhaustion separately from client cancellation and upstream failure, preserving the promised status/cause and avoiding ejection caused solely by budget exhaustion. Add a blocking-attempt test and a mixed-set test that reaches the deadline during a pass.
+
+ **Fault family:** bounded dial lifetime and resource retention.
+
+2. **P2 — §§6 and 10: parallel witnesses must not mutate shared hold settings concurrently.**
+
+ **Problem and evidence:** The witness’s subtests run in parallel ([design:181](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:181)), while its negative control changes package-global `localDialHold` to zero ([design:202](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:202)). That setting also controls the positive TCP, Unix and probed cases. The design specifies no isolation between them.
+
+ **Failure scenario:** The negative control overlaps a positive witness, disabling its hold or racing a read of the global. A correct implementation then produces intermittent failures or race-detector failures. Returning from a canceled request alone does not establish that its detached dial has finished.
+
+ **Fix:** Put the positive parallel cases inside a group that completes before running a serial negative control. Stop their probers and finish outstanding dials before changing or restoring globals. Alternatively, inject immutable per-instance settings. Apply the same isolation rule to shortened `probeTimeout` and `localHoldCap`.
+
+ **Fault family:** verification isolation.
+
+3. **P2 — §5 D8: direct binding does not preserve every existing address-flag behavior.**
+
+ **Problem and evidence:** [Design:159](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:159) replaces `ListenAndServe*` with `net.Listen` on the raw flag values and claims unchanged behavior. Go substitutes `:http` for an empty HTTP address ([server.go:3372](/home/paulca/.local/go-dist/src/net/http/server.go:3372)) and `:https` for an empty HTTPS address ([server.go:3727](/home/paulca/.local/go-dist/src/net/http/server.go:3727)). Direct `net.Listen` does not perform those substitutions. Also, logging the raw `:0` flag does not identify the allocated port ([net/dial.go:956](/home/paulca/.local/go-dist/src/net/dial.go:956)).
+
+ **Failure scenario:** Explicit `-http ""` or `-https ""` changes from the standard service port to an automatically allocated port. With `-http 127.0.0.1:0`, the startup line reports port zero rather than the endpoint actually bound.
+
+ **Fix:** Preserve the existing empty-address normalization before binding. Log the actual listener address, optionally alongside the configured value. Cover empty addresses, explicit addresses and port-zero allocation in D8’s tests.
+
+ **Fault family:** startup bind compatibility and diagnostic accuracy.
+
+4. **P2 — §1.2 and §3: 30 seconds is not the existing maximum wake wait.**
+
+ **Problem and evidence:** [Design:64](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:64) describes 30 seconds plus the Unix hold as the activator’s worst case; §3 calls 30 seconds the platform’s longest client wait. However, `awaitWake` extends first-wake deadlines ([activator.go:1780](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/activator/activator.go:1780)). The binary budget is 55 seconds ([wakeplan.go:231](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/activator/wakeplan.go:231)); rootfs uses its health bound plus the kill reserve ([rootfs_service.go:44](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/activator/rootfs_service.go:44)).
+
+ **Failure scenario:** A first-wake request legitimately remains queued beyond the documented maximum. The comparison used to justify D10b’s cap is therefore inaccurate, although the chosen cap remains reasonable.
+
+ **Fix:** Describe 30 seconds as the ordinary wake-wait bound and D10b’s independent policy cap. Record the existing first-wake extension and remove the claimed global maximum. No activator change is needed.
+
+ **Fault family:** timeout-contract accuracy.
+
+These P2s should be fixed without reopening review. Round 3 is final.
+
+**READY AFTER FIXES**
\ No newline at end of file