review: Astra round 2 findings for free-storage-250
Summary
Round 2: NOT READY, with two P1s, each the second round in its fault family (stopping rule 2), and one P2. No third fix written; the choice goes to Paul. Census approved for all four envelopes at a345a29.
1 file changed,
+50
−0
docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R2.md+50 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R2.md b/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R2.md| new file mode 100644 |
| index 000000000..48bdff582 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R2.md |
| @@ -0,0 +1,50 @@ |
| +Round 1 findings: |
| + |
| +- **P1 scanning — partly resolved:** approval provenance no longer bypasses scanning for the app’s main store; the new environment-store exception still bypasses it. |
| +- **P1 email — partly resolved:** hourly pauses now promote to daily pauses, but resumption can still bypass an exhausted current-hour allowance. |
| +- **P2 grandfathering — partly resolved:** publication and storage enforcement wait for settlement; effective-limit replies still expose the reduced allowance. |
| + |
| +1. **P1 — Forced scanning: existing environment stores bypass the requirement.** |
| + |
| + [storeselfserve.go:129](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/storeselfserve.go:129) explicitly clears `scanRequired` when an environment store has a provisioning record. [apistore_provision.go:86](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/apistore_provision.go:86) consequently skips scanning and enforcement. |
| + |
| + **Failure scenario:** an account provisions an environment store under a paid plan or earlier approval, then uses Free. A member can re-run provisioning, including repairing credential delivery, and receive success with the store unscanned. This is an unconditional exception, not the reported, resumable failure allowed by the brief. |
| + |
| + **Fix:** refuse this unsupported case before the provisioning walk and provide an operator-visible report, or implement environment-store scanning before allowing it. |
| + |
| + **Fault family:** provisioning authority must not waive mandatory scanning. **This is the second consecutive round in this family.** |
| + |
| +2. **P1 — Hourly email: stale pauses can resume after the current hour is exhausted.** |
| + |
| + [planmail.go:90](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/planmail.go:90) permits replacing an hourly pause only when imposing a daily pause. When the current hour is exhausted, an existing hourly pause retains its old timestamp. [mailcounts.go:283](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/mailcounts.go:283) calls enforcement, then clears that still-stale pause at line 289. |
| + |
| + **Failure scenario:** both apps are paused in hour H. In H+1, a status request resumes app A, which sends five emails while app B remains paused. Enforcement leaves B’s H timestamp unchanged. A status request for B then reactivates its credentials despite the exhausted H+1 allowance. The status path has no subsequent account enforcement. |
| + |
| + **Fix:** centralize the resume decision around both current account allowances. Refuse resumption while either is exhausted; preserve manual, rate and per-instance pauses. Test this two-app sequence. |
| + |
| + **Fault family:** a shorter pause must not release a longer account-wide restriction. **This is the second consecutive round in this family.** |
| + |
| +3. **P2 — Grandfathering: unsettled accounts still receive incorrect limit replies.** |
| + |
| + [planlimits.go:149](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/planlimits.go:149) returns the new catalog limit when `Kept` remains unset. [apiaccountplan.go:189](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/apiaccountplan.go:189) and [billingpage.go:434](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/billingpage.go:434) independently do the same. |
| + |
| + **Failure scenario:** settlement fails before reaching an eligible account. Publication and enforcement correctly wait, but its plan API and billing page report 50 MB instead of its retained 1 GB. |
| + |
| + **Fix:** preserve the previous allowance for unresolved accounts, or explicitly report the storage allowance as unresolved. Cover these readers in the partial-failure/retry test. |
| + |
| + **Fault family:** grandfathered allowances must survive incomplete migration. |
| + |
| +The first two findings trigger stopping rule 2: stop iterative fixes and choose refusal, feature removal, or centralized invariant enforcement with a guard test. I recommend refusing unsupported environment-store provisioning and centralizing mail-resume eligibility. |
| + |
| +Census verdicts for `a345a296e6de2a308241148279afcd2b95c34e29`: |
| + |
| +| Envelope | Verdict | Evidence | |
| +|---|---|---| |
| +| `.` | Approve | Additive reply/display and provisioning selection: `apimode.go:2157`, `store.go:234`, `accounts_plan.go:225`, `mail_cli.go:1580`. | |
| +| `internal/mailwire` | Approve | Additive pause constant and predicate: `mailwire.go:32`, `:63`. | |
| +| `internal/objstore` | Approve | Additive provenance constant; grant behavior unchanged: `objstore.go:57`, `walk.go:203`. | |
| +| `internal/plans` | Approve | Validated catalog fields and monotonic allowance merging: `catalog.go:292`, `:474`, `:503`. | |
| + |
| +No census-scoped files changed after `d97a24d`; subsequent code changes are console-only. Targeted tests could not start because the read-only sandbox refused Go’s build directory, so the census test was not revalidated. No files changed, subagents spawned, or full suites run. |
| + |
| +**NOT READY** |
| \ No newline at end of file |