docs(spec): wanderbooks declares its picks for the new CHOICE records (entry, ledger, period, statement, prepaid)
Bookspect S-C7 split the CHOICEs embedded in these areas' AUTHORITY and CONVENTION rules into their own records, so an engine declares its pick by rule id. Each parent B-n section in docs/spec/claims/<area>.md now carries a **Pick (BS-<area>-<n>):** line naming wanderbooks' option with who decided it and when (the parents' **bookspec:** lines stand), and the bookspec adapter's claims() declares the same twenty picks with Claims::with_choice. The rules_md test now reads a born-after-B-n rule (b = 0 in the catalogue) by its **Pick (BS-...):** line instead of a B-n index row it cannot have. No engine behaviour changes: every pick is the decision the claims already recorded in prose (for example check-when-line-added, D-73's on-or-after-the-original, D-67's round-once-on-the-total, D-72's minor-unit-for-new-schedules). Verified against the s-c7a bookspec branch with the documented patch override (not committed): cargo test -p ledger-core --test bookspec, 53 passed. Co-Authored-By: Muse Wonder 1.0
This commit is contained in:
1 parent
8ecf177cb2
commit
cb55787852
7 files changed
+90
No files matched your search
@@ -10,6 +10,8 @@ Rules: B-3, B-4, B-5, B-8, B-9, B-10, B-20, B-23, B-29, B-31, B-32, B-44, B-45.
|
||||
|
||||
**bookspec:** `BS-ledger-1`
|
||||
|
||||
**Pick (BS-ledger-14):** book-in-the-smallest-unit, the owner, 2026-10-13
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** a foreign line is booked in the base currency's smallest unit (ISO 4217 minor units, `sources/iso-4217.md`), half away from zero: CHOICE (the owner, 2026-10-13), after the GnuCash cross-check found wanderbooks kept $108.34567 where GnuCash booked $108.35. Lines booked before then replay as booked (WB-entry-1).
|
||||
@@ -38,6 +40,8 @@ None.
|
||||
|
||||
**bookspec:** `BS-ledger-2`
|
||||
|
||||
**Pick (BS-ledger-15):** child-has-its-parents-type, the owner, 2026-10-13
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** a child account has its parent's type: CHOICE (the owner, 2026-10-13).
|
||||
@@ -92,6 +96,8 @@ and never called corrupt (statement 4). **Checked:** Lean `Step.extends`,
|
||||
|
||||
**bookspec:** `BS-ledger-5`
|
||||
|
||||
**Pick (BS-ledger-16):** on-or-after-the-original, the owner, 2026-11-08, wanderbooks D-73
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** none (AUTHORITY).
|
||||
@@ -123,6 +129,8 @@ None.
|
||||
|
||||
**bookspec:** `BS-ledger-7`
|
||||
|
||||
**Pick (BS-ledger-17):** reversal-evidence-is-originals, D-47, the owner, 2026-10-26
|
||||
|
||||
**Claims:** partly (the engine does not enforce it; the receipt policy of the tool layer does)
|
||||
|
||||
**Pick:** a reversal's evidence is its original's (a reversal needs no evidence of its own): CHOICE D-47 (the owner, 2026-10-26; options: a reversal's evidence is its original's / a reversal needs its own). The rest is AUTHORITY; a procedural rule.
|
||||
@@ -137,6 +145,10 @@ None.
|
||||
|
||||
**bookspec:** `BS-ledger-8`
|
||||
|
||||
**Pick (BS-ledger-18):** assignment-is-a-fact-in-the-books, the owner, 2026-10-15
|
||||
|
||||
**Pick (BS-ledger-19):** refuse-rather-than-renumber, the owner, 2026-10-13
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** the assignment of a role to an account is journaled, so replay never depends on a setting outside the journal: CHOICE (the owner, 2026-10-15); the engine refuses a role account that is not postable or of the role's type rather than renumber the chart: CHOICE (the owner, 2026-10-13). Receivables and payables are different (B-38, 2026-10-23): their documents read their figures from their lines.
|
||||
@@ -245,6 +257,10 @@ bookspec `examples/rename-changes-no-amount.toml`.
|
||||
|
||||
**bookspec:** `BS-ledger-11`
|
||||
|
||||
**Pick (BS-ledger-20):** warn-by-default, the owner, 2026-10-20
|
||||
|
||||
**Pick (BS-ledger-21):** round-once-on-the-total, the owner, 2026-11-07, D-67
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** warn versus refuse: CHOICE (Pub. 583: "the law does not require any specific kind of records"; the owner, 2026-10-20: warn by default, header accounts exempt, the first company set to refuse at the P3 cutover). A category's deductible amount rounds once, on the category total: CHOICE (the owner, 2026-11-07, D-67). The arithmetic is `kernel::deductible_amount`, so Kani proves the one rounding and the bridge carries it to `Decimal`.
|
||||
|
||||
Reference in new issue
Block a user