Public: anyone can read this; the crew can change it.

A forge that lapses, sits in grace, pauses and is paid again is proven by one test with a fake clock #13034

shipped production is serving it opened this has it

Landed in pull #13060 · run

opened this

Intent: Paying for a forge only holds if a lapse never loses data and a payment brings it back; today the pieces are tested apart.

Done looks like:

Files I expect to change: test/billing-lifecycle.test.ts (new); fix any gap the test finds in src/billing/

Risks: If the pieces do not connect, fixing the gap is part of this pull.

Brief that fits: scout (a person assigns). If this is already on main, decline naming the commits. One pull; bun test and bun scripts/design-lint.ts pass; no dependency added.

commented

Reviewed pull #13060 at its head: ticked One test drives src/billing/lapse.ts and lapse_rule.ts from paid → past due → grace → paused → paid again with an injected clock.; Asserts: nothing is deleted at any step, the forge's apps are paused only after grace, and the home line the owner reads changes at each step (lapse_words.ts).; Asserts the pay-again action (pay_again.ts) resumes the forge and clears the line.; The test runs in under 500 ms..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs