ops-plan-exempt: round 1 findings (NOT READY: 2 P1, 1 P2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+18
−0
docs/superpowers/reviews/CODEX-FINDINGS-ops-plan-exempt-r1.md+18 −0
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-ops-plan-exempt-r1.md b/docs/superpowers/reviews/CODEX-FINDINGS-ops-plan-exempt-r1.md| new file mode 100644 |
| index 000000000..3801fe418 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-ops-plan-exempt-r1.md |
| @@ -0,0 +1,18 @@ |
| +# Astra findings: ops-plan-exempt, round 1 of 3 |
| + |
| +gpt-6-astra via codex, high, brief CODEX-REVIEW-BRIEF-ops-plan-exempt.md at e492e431. Unedited. |
| + |
| +Reviewed `e492e431b21ad75be8a75c4ead8a32885d4c6531`, round 1. |
| + |
| +1. **P1 — Existing plan mail pauses can persist indefinitely.** |
| + `EffectiveLimits` now returns nil for ops ([planlimits.go:138](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/planlimits.go:138)), causing the grace pass to return before its automatic mail-resume step ([plangracepass.go:83](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/plangracepass.go:83), [line 180](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/plangracepass.go:180)). Startup settlement clears limits and storage denies, but no mail pauses. If ops was plan-paused before deployment, its inactive credentials generate no new send events to resume it; without manual intervention, mail remains stopped after midnight. **Fix:** clear existing `PauseKindPlan` pauses during exemption settlement, using a conditional mutation that preserves manual and rate pauses. Add a regression covering an already-paused sender. **Invariant:** ops has no plan-enforced email stage. |
| + |
| +2. **P1 — Checkout recovery and continuation bypass the exemption.** |
| + `confirmBillingLocked` reaches checkout recovery without consulting `planExempt` ([billingops.go:701](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/billingops.go:701)). Recovery can resend a previously prepared checkout creation ([billingcheckout.go:999](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/billingcheckout.go:999), [line 707](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/billingcheckout.go:707)). Separately, Continue still returns an existing checkout’s payment URL ([line 1071](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/billingcheckout.go:1071)). An owner using an old page or direct endpoint after deployment can therefore create or continue payment for ops despite the new billing page hiding those actions. **Fix:** enforce the exemption before recovery and continuation read or act on billing state; include these paths in the guard and regression tests. **Invariant:** no billing action or purchase path reaches ops. |
| + |
| +3. **P2 — Startup cleanup misses storage denies on trashed apps.** |
| + Settlement calls `clearStorageDeny` and then marks itself complete ([planexempt.go:65](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/planexempt.go:65)). That cleanup enumerates `AppsIn`, which explicitly excludes trashed apps ([planstorage.go:48](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/planstorage.go:48), [store.go:1838](/home/paulca/.cache/tmp/claude-1001/ops-plan-exempt/internal/console/store.go:1838)). Restore clears the trash marker and database state without clearing the storage deny. Thus, restoring an ops app that was denied before being trashed leaves uploads refused; subsequent grace passes skip ops. **Fix:** include trashed apps in exemption cleanup, or clear their plan denies during restoration. Test deny → trash → exemption settlement → restore. **Invariant:** ops’s stores retain no plan storage deny. |
| + |
| +No P3 findings. No root-binary package changed, so no root-read census card is required. Changed Go files pass formatting checks, and `git diff --check` passes. Targeted tests could not start because the read-only sandbox prevented Go from creating its work directory; census test passes were not independently reproduced. No files were edited. |
| + |
| +**NOT READY** |
| \ No newline at end of file |