plans 4b: Astra review brief and ledger
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+51
−1
docs/superpowers/notes/census-proposal-plans-4b-after-grace.md+1 −1docs/superpowers/notes/plans-4b-ledger.md+12 −0docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4B-CODE.md+38 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-plans-4b-after-grace.md b/docs/superpowers/notes/census-proposal-plans-4b-after-grace.md| index 3c1bf0959..03138f7fa 100644 |
| --- a/docs/superpowers/notes/census-proposal-plans-4b-after-grace.md |
| +++ b/docs/superpowers/notes/census-proposal-plans-4b-after-grace.md |
| @@ -6,6 +6,6 @@ Envelopes re-pinned: `internal/console`, `internal/mail`, `internal/objstore`. |
| Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision. |
| -Seal: `43e430a3b3edf9333bfe2c64f24ca9e4c04475dc45ae4983d4e8bcab6a9c0bc4` → `43e430a3b3edf9333bfe2c64f24ca9e4c04475dc45ae4983d4e8bcab6a9c0bc4`. |
| +Seal: `0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0` → `0c4eabfe38e12b098285bdeb5ceb0b16e5333928f5b02e160a6b16b5fd9ce1e0`. |
| Overlay: `internal/provision/testdata/plan14-root-reads-plans-4b-after-grace.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/docs/superpowers/notes/plans-4b-ledger.md b/docs/superpowers/notes/plans-4b-ledger.md| new file mode 100644 |
| index 000000000..ede3d2579 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/plans-4b-ledger.md |
| @@ -0,0 +1,12 @@ |
| +# SDD ledger — plan: docs/superpowers/plans/2026-10-25-plans-4b-email-and-storage-stages.md |
| +Pre-flight: T1 produces planMailPauseAt, T4 consumes (match); T2 produces SetWritesDenied/EnsureUser(denyWrites)/Record.WritesDenied, T3 consumes (match); T3 produces storageDenyDue, T4 consumes (match). T4 changes planNoticesOf signature (4a callers updated in T4). |
| +Task 1: Ruling: enforceAccountMail runs from a defer at the top of enforceMailLimits, so it follows every per-sender outcome (including an already-paused sender) — the plan said 'after the per-sender checks' — cost if wrong: none. |
| +Task 1: complete (commits 4944c8b..9c76cd7, tests: go test ./internal/console/ -run 'PlanMailPauseAt|AccountMail|PlanMailPause|PlanResume|SESEvent|Enforce|MailCount|ResumeStale' → ok github.com/carlosframework/platform/internal/console 21.530s) |
| +Task 2: complete (commits 9c76cd7..c5b0081, tests: go test ./internal/objstore/ -run 'StorePolicy|GrantWritesTheWriteDeny|SetWritesDenied|Grant|Enforce' → ok github.com/carlosframework/platform/internal/objstore (cached)) |
| +Task 3: Ruling: the storage regrant runs under claimAppCall action 'plan-storage-regrant' (added to TestClaimAppMutationGate's door list), the scan-regrant precedent; the audit actor is 'plan' — cost if wrong: an action rename. |
| +Task 3: complete (commits c5b0081..a089ae0, tests: go test ./internal/console/ -run 'StorageDeny|ClaimAppMutationGate|GracePass' → ok github.com/carlosframework/platform/internal/console (cached)) |
| +Task 4: Ruling: planNoticesOf takes a stage func(capState) string (nil allowed) instead of limits and ceilings — the banner and CLI pass s.planStage(acct, now), the email pass passes nil — same effect, one fewer threaded value — cost if wrong: none. |
| +Task 4: Ruling: 4a's test fixture moved from 2x to 1.5x storage, because 2x is now the hard-ceiling stage (Paul's 2026-10-25 call) and correctly shows the storage-denied text — cost if wrong: none (fixture). |
| +Task 4: note: the email-paused banner reads the hourly-measured row, so it can lag the event-driven pause by up to an hour. |
| +Task 4: complete (commits a089ae0..6081376, tests: go test ./internal/console/ -run 'BannerSays|CLIWarning|Banner|GracePass|ExpiredPeriod' → ok github.com/carlosframework/platform/internal/console (cached)) |
| +Task 5: Ruling: no record-write census layer — TestPlan9B8RecordWriteCensus names no site (SetWritesDenied writes through objstore.PutIn, an existing writer) — cost if wrong: CI names it. |
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4B-CODE.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4B-CODE.md| new file mode 100644 |
| index 000000000..68b4e1799 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4B-CODE.md |
| @@ -0,0 +1,38 @@ |
| +# Whole-branch code review brief: Plans 4b (email and storage after-grace stages) |
| + |
| +You are a senior Go reviewer on the carlos platform, and the census's |
| +cross-model reviewer for this branch. Review branch `plans-4b-after-grace` |
| +(`git diff c3a34e32f9b13d60456f22bafd756abb3a97a026..HEAD` is the branch's own change). Read-only: do not |
| +modify the working tree, index, HEAD or branches. You may run `go test` |
| +with GOFLAGS=-buildvcs=false, targeted with -run. |
| + |
| +Requirements: the spec docs/superpowers/specs/2026-10-20-plans-caps-packs-design.md |
| +§5.5, §5.6 and §6; the plan docs/superpowers/plans/2026-10-25-plans-4b-email-and-storage-stages.md, |
| +including its Global Constraints, Review Focus and the two calls Paul |
| +CONFIRMED (the email pause at 2x skips the notice wait; storage at 2x is a |
| +hard ceiling); the executor's `Ruling:` lines in |
| +docs/superpowers/notes/plans-4b-ledger.md. Plan 4a (merged) is the base: |
| +plan_cap_state, afterGraceDue, the grace pass. |
| + |
| +Grade by effect. Check each Review Focus line deliberately, and also: |
| +- plans off changes nothing: no pause, no policy change, no record field; |
| + existing per-sender caps, rate pauses, manual pauses and scanning |
| + denies behave exactly as before; |
| +- the account pause: races between SES events, an account with many apps, |
| + per-instance senders, a sender paused for another reason; |
| +- resume: only plan and cap pauses from an earlier UTC day, never rate or |
| + manual; the hourly sweep cost; |
| +- the storage policy: reads, lists and deletes still allowed; the |
| + anti-forgery and scanning denies intact; MinIO uses the same policy; |
| +- convergence: set and clear idempotent; a regrant failure halfway (record |
| + marked, policy not rewritten); env stores; claim mode (claimAppCall); |
| +- the banner and CLI stage lines match what enforcement does. |
| + |
| +Census: answer the card's review question for every re-pinned envelope in |
| +docs/superpowers/notes/census-proposal-plans-4b-after-grace.md. Give |
| +approve or escalate per envelope. |
| + |
| +Answer: findings graded Critical / Important / Minor, each with file:line |
| +and a concrete failure scenario; then the census verdicts; then a verdict: |
| +accept, accept with fixes, or changes required. Do not review the |
| +wording (Luna-approved copy in plancaps_copy.go). |