carlos / platform Public

plans 6b ledger: task 9

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev cdff6f2cef0179241ba34daeddb12300784b1a30 parent 78fca6f
1 file changed, +4 −0
  • docs/superpowers/notes/plans-6b-ledger.md +4 −0

CI failed — run details

diff --git a/docs/superpowers/notes/plans-6b-ledger.md b/docs/superpowers/notes/plans-6b-ledger.md
index 0d6445948..b397c045d 100644
--- a/docs/superpowers/notes/plans-6b-ledger.md
+++ b/docs/superpowers/notes/plans-6b-ledger.md
@@ -41,3 +41,7 @@ Task 8 review Ruling (replaces the GET-reload ruling, round 2): invariant "every
Task 8: naming: the past-due key is notice.collecting; billingPageState has OwnersOnly; page.BillingPickQuery; renderMessage gains optional MsgLink/MsgLinkText (the /upgrade not-owner page links to /accounts/new); Store.OpenBillingProblemReasons; an op left sending shows as unresolved (confirm, portal). Form fields later tasks read: plan, currency, pack_<name>, start_over=1 (checkout); pack + quantity, or plan (change); renewal=stop|resume. Copy keys beyond the brief, for the Luna pass: fact.plan, fact.packs, fact.currency, plan.price, pack.price, team.total, currency.legend, button.change, button.upgrade, button.stop, button.resume, page.eyebrow, upgrade.new_account, error.title, page.read_failed, upgrade.read_failed.
Task 8: follow-up (P3): TestClaimConsoleMutationInvariant's GET /api/cli/apps/{account}/{app}/store/scan/object probe answered pending instead of clean once locally; the rerun passed.
Task 8: complete (commits 219045d5..d05c3dd9, review clean after fix round 2 of 5)
+Task 9 review Ruling: if the store write that retires a customer attempt after a cached 5xx fails, a later request resends that attempt's key; parked — Stripe replays the cached 500 for a reused key, so the resend cannot create a customer, and it retires the attempt then; closing it needs a billing-row column for no behavioural gain — cost if wrong: one extra request.
+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)