From 512352ecec375cf238aae5f944af35dc564ad7de Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sun, 8 Nov 2026 13:50:32 -0700 Subject: [PATCH] docs(plan): every CHOICE is a record now; the ones no example shows go on the allow-list Co-Authored-By: Claude Opus 5.5 --- plan/p14-bookspec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan/p14-bookspec.md b/plan/p14-bookspec.md index 6b3ec112..eb12bd05 100644 --- a/plan/p14-bookspec.md +++ b/plan/p14-bookspec.md @@ -73,7 +73,7 @@ workers have been faster). | **L-G5** | Model vs code by machine: random command sequences through the Rust `Ledger` and the Lean executable, compared state by state (task B) | L-G1 | wanderbooks `crates/ledger-core/tests/lean_model.rs`, a just recipe | M | | **L-G2, G4** | Documents in the executable model; more queries (closes to members, proration, cash flow last) | L-G3 | bookspec `lean/Exec/**` | L | | **X-H0** | Split the 4,647-line adapter `crates/ledger-core/tests/bookspec.rs` into modules, no behaviour change | none | `crates/ledger-core/tests/bookspec/**` | S-M | -| **X-H1** | Schema additions for the missing examples (balance sheet, general ledger, tax summary, 1099 worksheet, aging, payments, drafts and evidence, refused input); and, as each event or query lands, the 16 embedded CHOICEs S-C7b left in their parents' status notes because no example could show them yet (the EM, 2026-11-08: the allow-list cap stays at 9; they become records with examples here: partner prepaid-contract, shares-in-force, prepaid basis; asset §704(c) method; 1099 payee's share; arap due-today, as-of reading, payment before its document, vendor reference compare, recovery form, gross discount, gross fee, discount apportioning; format closing entries, the customer/vendor NAME, the two-A/R refusal; branch `s-c7b-noexample` in bookspec holds a draft of them) | S-A, X-H0 | bookspec `checker/src/schema.rs`; the adapter | L | +| **X-H1** | Schema additions for the missing examples (balance sheet, general ledger, tax summary, 1099 worksheet, aging, payments, drafts and evidence, refused input); and examples for every CHOICE record on `rules/allow-no-example.txt` (the EM, 2026-11-08, revised: every embedded CHOICE becomes its own record now so an engine can declare a pick for it; a record's examples must genuinely exercise it, an example is never linked to a choice it doesn't depend on, so the CHOICEs no example can show yet go on the allow-list, whose cap is raised once for them, from 9, and only shrinks after; X-H1/X-H2 work it down. Among them, from S-C7b's `s-c7b-noexample`: partner prepaid-contract, shares-in-force, prepaid basis; asset §704(c) method; 1099 payee's share; arap due-today, as-of reading, payment before its document, vendor reference compare, recovery form, gross discount, gross fee, discount apportioning; format closing entries, the customer/vendor NAME, the two-A/R refusal; and from S-C7a the records no example exercises: BS-entry-6..8, BS-ledger-14, -17, -18, -19, -21, BS-period-4, BS-prepaid-4, subject to its review) | S-A, X-H0 | bookspec `checker/src/schema.rs`; the adapter | L | | **X-H2** | Examples from the 2026-11-07 goldens, each from its worksheet | X-H1 (4 need nothing) | bookspec `examples/*.toml` | M | | **X-I** | Per-rule coverage in the runner with a floor (stated rules with an example never decrease) | S-A, X-H2 | bookspec `runner/`, `checker/tests/coverage.rs` | S-M | | **X-J** | wanderbooks traceability gate: every claimed BS id has an enforcement site and a test, every law a Lean theorem, every CHOICE a declared pick, every kernel function a Kani harness, a bridge property and a law | S-D, S-E, L-F2 | `crates/ledger-core/tests/traceability.rs`, `docs/spec/claims/**` | M |