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
@@ -25,6 +25,17 @@ pub(crate) fn rules_md_carries_every_id() {
|
||||
}
|
||||
|
||||
for rule in bookspec_checker::rules().iter() {
|
||||
if rule.b == 0 {
|
||||
// Born after the B-n numbering ended (P14 unit S-C7): no index
|
||||
// row and no B-n section; its pick is recorded in the claims
|
||||
// file of its parent.
|
||||
assert!(
|
||||
all.contains(&format!("**Pick ({}):**", rule.id)),
|
||||
"{} carries its pick in its claims file",
|
||||
rule.id
|
||||
);
|
||||
continue;
|
||||
}
|
||||
assert!(
|
||||
index.contains(&format!("| B-{} | `{}` |", rule.b, rule.id)),
|
||||
"rules.md indexes B-{} to {}",
|
||||
|
||||
Reference in new issue
Block a user