billing-success: round 1 findings (READY AFTER FIXES, 1 P2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+20
−0
docs/superpowers/reviews/CODEX-FINDINGS-billing-success-r1.md+20 −0
Intent
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-billing-success-r1.md b/docs/superpowers/reviews/CODEX-FINDINGS-billing-success-r1.md| new file mode 100644 |
| index 000000000..6432dd9f1 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-billing-success-r1.md |
| @@ -0,0 +1,20 @@ |
| +# Astra findings: billing-success, round 1 of 3 |
| + |
| +gpt-6-astra via codex, high, at e0630a00. Unedited. |
| + |
| +Reviewed `origin/main...e0630a00410c446e31fd6c80171ad48bf552005a`, round 1. No P1 findings. |
| + |
| +1. **P2 — A missing subscription counts as a successful refresh.** |
| + [billingchange.go:554](/home/paulca/.cache/tmp/claude-1001/billing-success/internal/console/billingchange.go:554) discards the returned subscription and uses only `err == nil`. However, [refreshLocked:293](/home/paulca/.cache/tmp/claude-1001/billing-success/internal/console/billingsync.go:293) returns a nil subscription without an error when the provider answers `ErrNotFound` and recording the billing problem succeeds. |
| + |
| + **Failure scenario:** An upgrade or pack increase is applied, then the refresh returns `ErrNotFound`. The new limits remain unsynced, but the redirect carries the success marker and purchase-specific success flash. The billing problem prevents the success screen, leaving the normal page with old limits and a flash claiming the purchase is ready. |
| + |
| + **Fix:** Require `err == nil && sub != nil` before selecting the success reply. Add a regression test that returns `ErrNotFound` on the refresh after an applied change and expects the generic flash without a marker. |
| + |
| + **Fault family:** Purchase confirmation must require a completed subscription refresh. |
| + |
| +No P3 findings. Apply the P2 fix without reopening review. |
| + |
| +Validation: diff whitespace checks and formatting passed; static checks found CSRF fields in all nine billing POST forms. Targeted tests could not start because the read-only sandbox blocked Go’s build directory. No files changed. |
| + |
| +**READY AFTER FIXES** |
| \ No newline at end of file |