Failure calc: single shore-up math + no equity test, the bond market controls money (Closes #88) #114

Merged
robertismo merged 2 commits from 88-failure-calc into master 2026-10-01 14:54:54 +00:00
Owner

What changed

One shore-up math. Game.shoreUpNeed is now the only place the shore-up calculation lives. The take screen's SHORE UP line and the finance phase's forced borrow both derive from it, so the displayed minimum take and the enforced requirement can never diverge.

Equity requirement removed. The bankruptcy pass no longer tests report().Equity < 0. A bank fails only when it cannot pay: negative cash after bills, or a reserve the bond market could not shore up. Solvency is a liquidity question — a bank operates as long as the market is willing to fund it, and the bond market fully controls the supply and demand of money. Net position stays on the books and in reports as information, but it no longer executes anyone.

Verification

  • build + full test suite + vet clean
  • the tight-cash repro (the wipeout game from #88) now runs 16 turns and ends with a winner instead of the table dying in a cascade
## What changed **One shore-up math.** `Game.shoreUpNeed` is now the only place the shore-up calculation lives. The take screen's SHORE UP line and the finance phase's forced borrow both derive from it, so the displayed minimum take and the enforced requirement can never diverge. **Equity requirement removed.** The bankruptcy pass no longer tests `report().Equity < 0`. A bank fails only when it cannot pay: negative cash after bills, or a reserve the bond market could not shore up. Solvency is a liquidity question — a bank operates as long as the market is willing to fund it, and the bond market fully controls the supply and demand of money. Net position stays on the books and in reports as information, but it no longer executes anyone. ## Verification - build + full test suite + vet clean - the tight-cash repro (the wipeout game from #88) now runs 16 turns and ends with a winner instead of the table dying in a cascade
Shore-up math now lives in exactly one place: Game.shoreUpNeed. The take
screen's SHORE UP line and the finance phase's forced borrow both derive
from it, so the displayed minimum take and the enforced requirement can
never diverge.

The equity requirement is removed from the bankruptcy pass. A bank fails
only when it cannot pay: negative cash after bills, or a reserve the
bond market could not shore up. Solvency is a liquidity question now -
a bank operates as long as the market is willing to fund it, and the
bond market fully controls the supply and demand of money. The take
screen's equity warning stays as information, but net position no
longer executes anyone.
Merge branch 'master' into 88-failure-calc
Some checks failed
build / build (push) Failing after 3s
17536b64c9
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars!114
No description provided.