plans 6b ledger: tasks 10 and 11 rulings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−0
docs/superpowers/notes/plans-6b-ledger.md+6 −0
CI failed — run details
diff --git a/docs/superpowers/notes/plans-6b-ledger.md b/docs/superpowers/notes/plans-6b-ledger.md| index b397c045d..49e38a892 100644 |
| --- a/docs/superpowers/notes/plans-6b-ledger.md |
| +++ b/docs/superpowers/notes/plans-6b-ledger.md |
| @@ -45,3 +45,9 @@ Task 9 review Ruling: if the store write that retires a customer attempt after a |
| Task 9: naming: checkoutIntent gains ExpireFirstSentAt, CreateIndeterminate, ExpireIndeterminate (guarded ALTERs; a mark is write-once and refuses resends); finishCreateLocked, confirmCheckoutLocked, observeCheckoutEvent, resyncCompletedLocked, NonTerminalCheckoutIntentsAfter (a pager). Refusals reuse Task 8's keys (operator row, problem, currency); no provider time shows checkout.failed. The return costs 1 session read + S for an open or completed intent, 0 for expired or abandoned. Task 13: replaceIntentLocked finishes a creating create and expires an open one. |
| Task 9: follow-up (P3, copy pass): with an unanswered customer create the page offers Buy (Task 8's !Live row) while checkout.uncertain says "Use Confirm now". |
| Task 9: complete (commits d93bc33a..78fca6f9, review clean after fix round 1 of 5) |
| +Task 10 review Ruling (plan-level gap): a problem opened by the request's own fresh read (finishOpLocked, allowanceLocked, restoreCheckLocked) stops the request: change, renewal, seat admission, match seats and the invite confirm re-check open problems after their reads and refuse before preparing any op, through one helper — the plan checks problems only before the reads, so a late restore flagged mid-request could still be followed by a new charge — cost if wrong: one local read per request. |
| +Task 10 review Ruling (narrows the problem re-check): the re-check binds only flows that can prepare a charge or a quantity raise (change, upgrade, seat admission, match seats, invite confirm); renewal stop and resume keep the plan's steps with no problem refusal — stopping only reduces future charges, the plan never refused it, and Task 13's deletion must be able to stop renewal under an unrelated problem — cost if wrong: an owner could resume renewal while a problem is open, which charges nothing until the period ends. |
| +Task 11 review Ruling: an invitee whose own seat op is still sending or unresolved gets admitUncertain (seats.join_uncertain), not the brief's admitOutstanding — the outstanding copy says the account is "in the middle of another change", which misdescribes the invitee's own payment; behaviour (no write, try again) is the same — cost if wrong: a copy key. |
| +Task 11: process note: the implementer wrote code before tests (a usage-limit cut split the session); failing-first evidence is a build failure of the new tests against HEAD plus 12 mutations; fixes are test-first. |
| +Task 10: naming: refuseOnProblemLocked(h, acct) (the problem re-check, also used by Task 11), billingCSRFRefused with refused.title / refused.csrf, sendChangeLocked, upgradeLocked takes the refreshed row. change.book refuses every upgrade target that isn't allowed (lower, missing a held pack, unpriced in the subscription's book) and a pack that book never priced; a failed renewal shows change.failed; stop and resume skip step-up (neither charges now); a pending op gets one refreshLocked before a new change; an older book shows change.no_estimate on the confirm page. Retiring, problem and operator-row refusals reuse billing.retiring, notice.problem, notice.operator_plan. |
| +Task 10: complete (commits cdff6f2c..873462c6, 2cdfb74c, dd47cce5; review clean after fix round 1 of 5) |