plans 6b ledger: task 8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+5
−0
docs/superpowers/notes/plans-6b-ledger.md+5 −0
CI failed — run details
diff --git a/docs/superpowers/notes/plans-6b-ledger.md b/docs/superpowers/notes/plans-6b-ledger.md| index 34b1899c7..0d6445948 100644 |
| --- a/docs/superpowers/notes/plans-6b-ledger.md |
| +++ b/docs/superpowers/notes/plans-6b-ledger.md |
| @@ -36,3 +36,8 @@ Task 7: carry-forward (Task 13): an operation_unresolved problem on a deleted ac |
| Task 7: fix round 2 (commit e0a7e4a9): billingOp.StartQuantity is *int64, nil = unknown, stored -1 (column default in CREATE and ALTER); an unknown start never explains a raise; sendOpLocked refuses a quantity op without a known start; TestBeginBillingOpOnlyFromSend pins sendOpLocked as BeginBillingOp's only production caller. |
| Task 8 Ruling: the past-due notice key is notice.collecting, not the brief's notice.past_due — Task 7's TestConsoleBillingHasNoProviderWords forbids provider status words in console billing code, and the provider-neutral core rule outranks a key name — cost if wrong: none, keys are internal. |
| Task 7: complete (commits 20ff2c27..e0a7e4a9, review clean after fix round 2 of 5; Minor 9 deferred) |
| +Task 8 review Ruling: the currency radios are their own GET form that reloads the page with ?currency=, and the buy form submits the displayed currency as a hidden field, so the submitted currency always matches the prices shown (the console has no client JS) — cost if wrong: one page load when an owner changes currency. |
| +Task 8 review Ruling (replaces the GET-reload ruling, round 2): invariant "every currency the buy form can submit has its prices on the page, and the visible prices are the checked currency's", enforced in one place: the buy form renders each price once per sold currency and pure CSS (:has on the checked radio) hides the others; the radios stay required inside the buy form, so a refused query is never defaulted and no picks are lost — cost if wrong: a browser without :has shows all three currencies' prices. |
| +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) |