edge-roll-blip: Astra spec review round 2 findings (NOT READY, 1 P1, rule 2 triggers)
1 file changed,
+36
−0
docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R2.md+36 −0
diff --git a/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R2.md b/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R2.md| new file mode 100644 |
| index 000000000..d6c271275 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-FINDINGS-edge-roll-blip-spec-R2.md |
| @@ -0,0 +1,36 @@ |
| +Reviewed `dad8843b`. No files changed or full test suites run. Amadan #434 was inaccessible from the sandbox; the committed binding brief supplied the scope. |
| + |
| +Round-one dispositions: |
| + |
| +- **P1-1, rollback compatibility: partly resolved.** The persistent drop-in covers the original recovery gap, but its failure handling can still admit an incompatible binary. Remains **P1** below. |
| +- **P1-2, restart admission: partly resolved.** D10b addresses immediate rejection and empty live sets. Its readmission calculation remains incorrect; that residual issue is **P2** below. |
| +- **P2, listener compatibility: resolved.** D5 distinguishes absent listeners from incompatible inherited listeners. |
| +- **P2, rollback version floor: resolved.** The spec correctly states the conditional v0.25.0 floor and removes reliance on it. |
| +- **P2, witness binary selection: resolved.** W2 specifies the temporary build for both commands and checks inheritance before measuring. |
| +- **P2, fd-store preservation: resolved.** D1 now distinguishes the preservation settings. |
| + |
| +1. **P1 — D4: the rollback guard treats a failed status query as proof that the socket is inactive.** |
| + |
| + **Evidence:** The exact shell line at [design:212](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:212) ends with `systemctl stop carlos-edge.socket || ! systemctl -q is-active carlos-edge.socket`. Negation accepts *every* unsuccessful status query, including inability to contact the manager or execute `systemctl`. Existing code explicitly distinguishes a failed query from a reported state at [systemunits.go:101](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/host/systemunits.go:101). |
| + |
| + I reproduced the shell logic without touching systemd: with a failing predicate and shell functions returning 1 for both `systemctl` calls, the guard exits **0**. |
| + |
| + **Failure scenario:** Recovery restores an old binary at [systemapply.go:1892](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/host/systemapply.go:1892), then fails before socket removal. At the next edge start, the old binary rejects the predicate. Both the stop command and subsequent status query fail while PID 1 retains the listeners. E-start nevertheless succeeds, and the old edge fails to bind with `EADDRINUSE`. |
| + |
| + **Concrete fix:** After a failed stop, require an explicit manager response proving the socket is inactive or absent. An unavailable or unparseable status must fail the guard. Add a witness where both commands fail while the socket remains active; it must prevent `ExecStart`. |
| + |
| + **Fault family:** **INV-R / rollback compatibility — the same family as round-one P1-1.** Failure to establish listener ownership must not authorize an incompatible edge. |
| + |
| +2. **P2 — D10b: the readmission allowance excludes probe duration and sequential probing.** |
| + |
| + **Evidence:** [Design:320](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/docs/superpowers/specs/2026-10-27-edge-roll-blip-design.md:320) calls `rise_after × interval` the maximum readmission time. However, probes have a two-second timeout at [prober.go:50](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/edge/prober.go:50), and each tick probes upstreams sequentially. [Prober.go:441](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/edge-roll-blip/internal/edge/prober.go:441) explicitly explains that a tick can exceed its interval. |
| + |
| + **Failure scenario:** An already-ejected mixed set contains three black-holed remote upstreams followed by one restarting local upstream. Remote probes consume approximately six seconds per pass. The local upstream returns at ten seconds, passes probes around twelve and eighteen seconds, and is readmitted after the default seventeen-second hold has already returned 503. |
| + |
| + **Concrete fix:** Derive the allowance from the actual sequential probe schedule and response timeout, using normalized health settings. Retain the thirty-second cap, but explicitly describe cases where readmission can exceed it. Add delayed-probe and mixed-set witnesses. |
| + |
| + **Fault family:** **INV-H / restart admission — the same family as round-one P1-2.** The bounded hold must account for the admission mechanism it waits on. |
| + |
| +INV-R remains blocking in two consecutive rounds, so stopping rule 2 applies. Stop the fix loop and return the prescribed choice to Paul: refuse unsupported cases up front, cut socket activation, or revise the single enforcement point with a guard test covering this failure. |
| + |
| +**NOT READY** |
| \ No newline at end of file |