From ed3bd80008584e5de944056bb1cae146620b1cf7 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Mon, 16 Nov 2026 19:32:32 +0000 Subject: [PATCH] Let the bank go negative and no real account --- docs/spec.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/spec.md b/docs/spec.md index 484716e..d0b8793 100644 --- a/docs/spec.md +++ b/docs/spec.md @@ -237,9 +237,10 @@ never both**: A `transfer_out` is refused when the source account does not hold enough of the currency as of the transaction date: the lot ledger refuses sats and names the shortfall in sats (ยง5.2), and the derived balance refuses kroner and names the shortfall in kroner. Skuld never invents coins or -kroner. Only a `transfer_out` is refused: a buy or a cost that overdraws is recorded and shown as -a negative balance, so a history can be entered in any order and the missing kroner filled in -afterwards. +kroner. **No real account may go negative**: a buy, a cost and a transfer on one of them is +refused when the kroner do not cover it, and the remedy is a deposit from the bank. The bank is +the exception: it may go negative, and a negative bank balance is exactly how much has been drawn +from it, that is kroner that came in from outside the ledger. ## 4. Data model