carlos / platform Public

review: Astra round 3 findings for free-storage-250

Summary

Round 3 (last in budget): NOT READY. Two P1s, both incomplete path coverage: instance-private and seeded creates still provision unscanned environment stores on scan-required plans, and the operator email resume door can lift a spent plan hold. Census approved for all four envelopes at 47a8e68. The 12 approved strings verified verbatim. No fourth fix or round without Paul.
claude agent, operated by paul@keymail.dev 7a7759f3e3a37aa7d2c1776193b515809344ec7f parent c81c3ca
1 file changed, +42 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R3.md +42 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R3.md b/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R3.md
new file mode 100644
index 000000000..c7f721092
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-FREE-STORAGE-1076-R3.md
@@ -0,0 +1,42 @@
+- **Round 2 P1, scanning — partly resolved:** direct environment provisioning now refuses repairs, but instance-private and seeded provisioning bypass that refusal.
+- **Round 2 P1, email — partly resolved:** the stale-hour sequence is guarded; operator resumption still bypasses the shared rule.
+- **Round 2 P2, grandfathering — accepted by Paul:** not reopened.
+
+1. **P1 — Instance-private and seeded creates still provision unscanned environment stores.**
+
+ **Evidence:** [instanceprivatestore.go:395](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/instanceprivatestore.go:395) checks standing account approval without checking the scanning requirement. [Line 322](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/instanceprivatestore.go:322) then calls `GrantInFor`. Member/service instance creation reaches this at [apiinstances.go:2684](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/apiinstances.go:2684); seeded creation reaches it at [apiinstanceseed.go:466](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/apiinstanceseed.go:466).
+
+ **Failure scenario:** an approved Free account with private storage enabled creates another instance or seed. It receives a newly provisioned, unscanned environment store despite decision 5. Standing approval does not make these requests operator-only.
+
+ **Fix:** refuse scan-required accounts in the shared instance-store preflight, before declaration or seed reservation, and enforce the same condition before granting. Cover ordinary creates, seeds and repairs.
+
+ **Invariant:** provisioning authority must not waive mandatory scanning.
+
+2. **P1 — Operator email resumption can clear an exhausted plan hold.**
+
+ **Evidence:** [apimail.go:1641](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/apimail.go:1641) calls `mail.SetPaused` directly without `planMailSpent`. The underlying mutation activates credentials at [walk.go:1376](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/mail/walk.go:1376) and clears the pause regardless of its kind. The new guard test at [planmail_hour_test.go:159](/home/paulca/github.com/carlosframework/platform/.worktrees/free-storage-250/internal/console/planmail_hour_test.go:159) exercises three automatic paths, not this endpoint.
+
+ **Failure scenario:** after five sends in the current hour—or exhaustion of the daily allowance—an operator runs email resume. The plan hold clears and credentials reactivate while the allowance remains spent. Decision 6 specifies every path; unlike decision 5, it provides no operator exception.
+
+ **Fix:** apply the shared allowance rule when this endpoint would clear a plan or plan-hour hold, checking the current sender inside the mutation. Preserve existing handling of other pause kinds. Add endpoint coverage.
+
+ **Invariant:** no resume path may release an exhausted account-wide plan restriction.
+
+No additional P2 or P3 findings.
+
+The direct environment refusal logs existing provisioned stores for operators. The explicit store-grant endpoint is operator-gated and outside decision 5; account ownership transfer changes membership without provisioning storage. All 12 approved strings match verbatim, are used, and have compatible format arguments; no corresponding placeholders remain.
+
+Census verdicts for `47a8e68f31520de52fec8be7e1de59720b52dfe1`:
+
+| Envelope | Verdict | Evidence |
+|---|---|---|
+| `.` | Approve | `accounts_plan.go:225,296`, `free_storage_copy.go:7`, `apimode.go:2157`, `store.go:234,514`, `mail_cli.go:1580`: display and provisioning-selection changes introduce no new root input paths. |
+| `internal/mailwire` | Approve | `mailwire.go:32,63`: additive pause constant and predicate. |
+| `internal/objstore` | Approve | `objstore.go:57`, `walk.go:203`: provenance constant and documentation; grant behavior unchanged. |
+| `internal/plans` | Approve | `catalog.go:292,360,474,503`: validated fields and monotonic allowance merging; no new root input paths. |
+
+Targeted tests could not start: the read-only sandbox refused Go’s build directory. Diff whitespace checks passed. No files changed, subagents spawned or full suites run.
+
+This exhausts round 3. Both P1s share an incomplete-path-coverage cause, across two distinct invariants. Refusing scan-required instance-store provisioning and refusing exhausted plan-hold resumes would remove these scenarios without cutting the entire feature. No fourth round is authorized.
+
+**NOT READY**
\ No newline at end of file