plans 4a: Astra whole-branch review brief and ledger
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+64
−0
docs/superpowers/notes/plans-4a-ledger.md+14 −0docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4A-CODE.md+50 −0
CI passed — run details
diff --git a/docs/superpowers/notes/plans-4a-ledger.md b/docs/superpowers/notes/plans-4a-ledger.md| new file mode 100644 |
| index 000000000..2fc5192b7 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/plans-4a-ledger.md |
| @@ -0,0 +1,14 @@ |
| +# SDD ledger — plan: docs/superpowers/plans/2026-10-25-plans-4a-warnings-and-grace.md |
| +Pre-flight: T2 produces measureCaps/capMeasure, T3 consumes them (match); T1 produces CapStates/RecordCapNotice/capState/afterGraceDue, T3-T5 consume (match); T3 produces planNoticesOf/planNoticeText, T4/T5 consume (match). No conflicts. |
| +Task 1: complete (commits 113a2c4..82a5b0f, tests: go test ./internal/console/ -run 'CapLevels|EvaluateCap|AfterGraceDue|CapState|RecordCapNotice|ClaimSQL|StoreGate' → ok github.com/carlosframework/platform/internal/console (cached)) |
| +Task 2: Ruling: a storage sweep that marks any of the account's stores unswept makes the storage cap unknown (error), not a smaller total — spec §5.5 counts from the sweep and an unswept store would understate usage — cost if wrong: storage warnings pause while a store's credentials are broken. |
| +Task 2: complete (commits 82a5b0f..a4d9d59, tests: go test ./internal/usage/ ./internal/console/ -run 'GetStatement|AccountSends|MeasureCaps' → ok github.com/carlosframework/platform/internal/console (cached)) |
| +Task 3: Ruling: email subject and settings link name the account by sqid ([carlos] Account <sqid>: plan usage), the storenotify precedent — no product name in platform code (provider-neutral, no tenant names) — cost if wrong: one string change after the Luna pass. |
| +Task 3: note: TestClaimConsoleMutationInvariant failed once uncached on an unrelated subtest, passed on rerun; worker_StartPlanGracePass probe PASS. |
| +Task 3: complete (commits a4d9d59..4752fde, tests: go test ./internal/console/ -run 'GracePass|EveryRegisteredClaimWorker|ClaimRoutes' → ok github.com/carlosframework/platform/internal/console 1.743s) |
| +Task 4: Ruling: banner tests load the account home (/a/<sqid>/) — the plan's /a/<sqid>/apps is not a route; accountPage feeds every account page, so the home page proves the shared hook — cost if wrong: none. |
| +Task 4: complete (commits 4752fde..9477549, tests: go test ./internal/console/ -run Banner → ok github.com/carlosframework/platform/internal/console (cached)) |
| +Task 5: complete (commits 9477549..74f4885, tests: sh -c 'go test ./internal/console/ -run CLIWarning && go test . -run PlanWarningTransport' → ok github.com/carlosframework/platform 0.016s) |
| +Task 6: Ruling: CLI warnings hook both gates — apiPrincipalAccount (wrapper) and apiAccountAppSaying — rather than renaming apiPrincipalAccountSaying (which would have been a removed+new census pair); the phase-1 move door, which calls the Saying form directly, carries no warning — cost if wrong: that one door prints no plan line. |
| +Task 6: Ruling: the six new store units are a hand-written census decision overlay (plans-4a-store, legacy/accepted-legacy as console SQL on its own table, J4, Plan 1's disposition); approval goes to Astra with the final review per the census recipe — cost if wrong: an escalation to Paul. |
| +Task 6: complete (commits 74f4885..802a3fe, tests: sh -c 'GOFLAGS=-buildvcs=false go test ./internal/provision/ -run 'Plan14RootReadCensus$|Plan9B8RecordWriteCensus$'' → ok github.com/carlosframework/platform/internal/provision (cached)) |
diff --git a/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4A-CODE.md b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4A-CODE.md| new file mode 100644 |
| index 000000000..fe04b59a1 |
| --- /dev/null |
| +++ b/docs/superpowers/specs/CODEX-REVIEW-BRIEF-PLANS-4A-CODE.md |
| @@ -0,0 +1,50 @@ |
| +# Whole-branch code review brief: Plans 4a (warnings, grace and notice) |
| + |
| +You are a senior Go reviewer on the carlos platform, and the census's |
| +cross-model reviewer for this branch. Review branch `plans-4-notices-grace`, |
| +range `113a2c4c..HEAD` excluding the merges of main (`git diff 606afcb9c2ab7749ba7b5d54f5d93a54018f8bcd..HEAD` |
| +shows the branch's own change against the merge base). 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 |
| +§6 (warnings, grace, notice; section 3 decisions are not to be argued |
| +with); the plan docs/superpowers/plans/2026-10-25-plans-4a-warnings-and-grace.md, |
| +including its Global Constraints and Review Focus; the executor's |
| +`Ruling:` lines in docs/superpowers/notes/plans-4a-ledger.md. Plan 4a only |
| +warns: after-grace stages are Plan 4b, which reads afterGraceDue. |
| + |
| +Grade by effect. Check each Review Focus line deliberately: |
| +1. a clock (first_over, grace_ends, notice_at) never resets by itself; |
| +2. a new period (UTC day for email, UTC month for bandwidth and awake |
| + hours) starts clean, and counts and sizes never roll; |
| +3. notice before the cap went over, or a member's notice, never counts; |
| +4. one reminder a day, not one per pass; no email when mail is not |
| + configured, and no notice then; |
| +5. an old CLI that never prints the warning earns no notice. |
| + |
| +Also look hard at: |
| +- plans off changes nothing: no rows, no header, no banner, no mail; |
| +- measurement correctness: units (GB = 1e9), unswept stores, a missing |
| + statement, the storage lookback; |
| +- concurrency between the hourly pass and page views and CLI requests |
| + recording notice; |
| +- email content: owner addresses only, no other account's data; |
| +- the CLI transport: the request header is a promise, so is every |
| + response warning printed; does it change any other request behaviour |
| + (redirects, streaming uploads, timeouts)? |
| +- cost: the pass reads one statement and up to 3 storage day files per |
| + account per hour. Is that acceptable against "no new per-box polling"? |
| + It is console-side, not per box. |
| + |
| +Census: answer the card's review question for every unit and envelope in |
| +docs/superpowers/notes/census-proposal-plans-4-notices-grace.md, including |
| +the hand-written decision overlay plans-4a-store. Does any root read now |
| +open, run, query or follow a path or input a tenant, app or box agent can |
| +create, write or name, or weaken a check the basis relies on? Give |
| +approve or escalate per unit, and check the overlay seals and fingerprints. |
| + |
| +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). |