plans 6b: round-8 findings and the round-9 brief
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+74
−0
docs/superpowers/specs/CODEX-FINDINGS-PLANS-6B-PLAN-R8.md+57 −0docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6B-PLAN-R9.md+17 −0
CI passed — run details
diff --git a/docs/superpowers/specs/CODEX-FINDINGS-PLANS-6B-PLAN-R8.md b/docs/superpowers/specs/CODEX-FINDINGS-PLANS-6B-PLAN-R8.md| new file mode 100644 |
| index 000000000..081f9a2d4 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-FINDINGS-PLANS-6B-PLAN-R8.md |
| @@ -0,0 +1,57 @@ |
| +**Verdict: changes required** at `0d2b5e050f800f4b13113f3d2a23572cef40316a`. |
| + |
| +One new Important finding and two new Minor findings. Wording and settled rulings were not reviewed. |
| + |
| +| Round-7 finding | Disposition | Evidence | |
| +|---|---|---| |
| +| Inherited recovery-time item: no refresh without a customer ID | **Fixed** | The customer-independent price probe supplies time, with quiet-account and headerless-timeout recovery tests. [Probe](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:82), [tests](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:901). | |
| +| 1. First-send timestamps trust an unchecked wall clock | **Fixed** | Every first-send timestamp and resend deadline uses provider time. The regression test covers initial skew, correction, restart and recovery after 24½ hours. [Contract](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:84), [test](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:897). | |
| +| 2. Lock-taking wrapper contradicts the lock contract | **Fixed as reported** | `closeBillingProblem` acquires the hold; `closeBillingProblemLocked` receives it. The test’s broader scope has a separate defect below. [Split](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:180). | |
| + |
| +Only new findings follow. |
| + |
| +1. **Important — the seven-day restore alert still crosses clock domains.** |
| + |
| + Invariant 9 explicitly leaves this alert on console time because it supposedly never compares against provider time. Task 7 still defines its deadline as seven days **after renewal**, whose timestamp is the provider’s period boundary. No console-local renewal-observation timestamp is specified. [Clock exception](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:96), [deadline](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:841). |
| + |
| + Suppose a late restore applies after renewal and settles, but invoice reads keep failing. With the console clock fourteen days behind, comparing console `now` against `PeriodEnd + 7d` delays `restore_check_stalled` until twenty-one actual days after renewal. The settled operation supplies no unresolved-operation alert, and the unavailable baseline prevents the late-restore detector from flagging unpaid capacity. |
| + |
| + Use provider time for this deadline. Alternatively, explicitly persist a console-local observation timestamp and define the changed alert semantics. Test invoice failures across skew, clock correction and restart. |
| + |
| +2. **Minor — the global lock test requires billing holds on unrelated helpers.** |
| + |
| + The revised contract selects **every** `*Locked` function across `internal/console` and requires a `billingHold`. Existing helpers such as `sesConsoleMailer.ensureLocked` operate under their own locks and have no billing account. [Test scope](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:260), [existing helper and caller](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/internal/console/consolemail.go:96). |
| + |
| + Implementing the prescribed AST test therefore fails on untouched code, even after the billing wrapper is corrected. Restrict selection to billing helpers through an explicit scope or naming convention, while retaining coverage of both migrated 6a helpers. |
| + |
| +3. **Minor — fallback probes are missing from several request budgets.** |
| + |
| + The budget assumes branches that already read need no probe, but the new contract also probes after headerless reads or expired observations. Task 7 explicitly tests that fallback. [Budget](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:281), [fallback test](/home/paulca/.cache/tmp/claude-1001/plans-6b-checkout-flow/docs/superpowers/plans/2026-10-25-plans-6b-checkout-flow.md:877). |
| + |
| + An operation recovery whose subscription read succeeds without `Date`, followed by a successful probe and resend, costs **three requests**; `F` allows only two. The hourly-pass row likewise omits its permitted probe. |
| + |
| + Add conditional probe costs to every affected branch and assert counts for headerless reads, stale observations and failed probes. |
| + |
| +The Date-resolution error does not defeat the two-hour idempotency margin. Truncation makes the first-send stamp earlier, shortening its window; underestimating time during recovery extends eligibility slightly. The same underestimate slightly shortens Checkout lifetime, admits continuation closer to expiry, relaxes the restore cutoff and moves proration earlier. These errors include transport latency as well as subsecond truncation; the existing client has a 15-second request timeout. Probe failure is explicitly fail-closed. Retirement staleness, daily seat checks and backoff have local time bases; the restore alert is the exception above. |
| + |
| +Static review only; no tests or repository writes. HEAD and the clean working tree are unchanged. The initial coordination network attempt was blocked; subsequent review used local material only. |
| + |
| +--- |
| + |
| +**FIRST PROMPT:** |
| +“Follow the brief docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6B-PLAN-R8.md exactly, at the branch's current HEAD.” |
| + |
| +**WHAT:** |
| +Review revision 8 of the Plans 6b implementation plan. |
| + |
| +**STATUS:** |
| +Complete: changes required; one Important and two Minor findings. |
| + |
| +**NEEDED:** |
| +Nothing for this review. |
| + |
| +**RECOMMENDED:** |
| +Correct the restore-alert clock, narrow the lock-test scope, and complete probe budgets. |
| + |
| +**SESSION:** |
| +Safe to close. Repository unchanged; nothing left running. |
| \ No newline at end of file |
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6B-PLAN-R9.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6B-PLAN-R9.md| new file mode 100644 |
| index 000000000..fbab41cb9 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-6B-PLAN-R9.md |
| @@ -0,0 +1,17 @@ |
| +# Plan review brief, round 9: Plans 6b |
| + |
| +Round 8 reviewed 0d2b5e05; its findings are |
| +docs/superpowers/specs/CODEX-FINDINGS-PLANS-6B-PLAN-R8.md. Revision 9 is |
| +`git diff 0d2b5e05..HEAD` (restore stall on provider time; lock test |
| +scoped to billing files plus any billingHold taker; conditional probe |
| +term P? in the budget). Rulings, context and read-only rules as in |
| +rounds 1-8. |
| + |
| +Report: |
| +1. A disposition table for round 8's three findings. |
| +2. Only NEW findings in the revision-9 diff, graded Critical / |
| + Important / Minor with a concrete failure scenario. |
| +3. A verdict: accept, accept with fixes, or changes required. Reserve |
| + "changes required" for Critical or Important findings. |
| + |
| +Do not review the wording. |