docs(plan): X-H1 in five slices, one after another
Every slice adds to the same four files (the schema, its derivation, the Lean runner and the adapter), so they cannot run in parallel; split by what the schema must learn, A/R and A/P reading first (the most rules for one new event and two queries). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8dec2900eb
commit
71df823080
1 file changed
+1
@@ -74,6 +74,7 @@ workers have been faster).
|
||||
| **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 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-H1a..e** | X-H1 in five slices, run one after another (each adds to bookspec's `schema.rs`, `derive.rs`, `lean/Exec.lean` and the adapter): **a** A/R and A/P reading: a payment event, the aging and due-date queries (BS-arap-1, -3, -7, -8, -9); **b** settlements, recoveries, vendor references, invoice numbers (BS-arap-4, -6, -10..14); **c** drafts and evidence (BS-entry-5, -6, BS-ledger-17); **d** refused input spelled in the schema (BS-entry-4, -7, BS-period-4, BS-ledger-19, BS-format-10, BS-1099-2, BS-partner-8); **e** the rest (BS-partner-15..17, BS-asset-3, -9, BS-1099-5, BS-ledger-9, -18, -21, BS-statement-9, BS-format-8, -9, BS-prepaid-4, BS-revenue-1). Each slice: the schema, its derivation, Lean runs it or skips it with a reason, examples per rule and per option, both allow-lists shrink (the EM, 2026-11-08) | X-H1's needs | as X-H1 | M each |
|
||||
| **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); a CI step, like `scripts/parity-floor.sh`, that fails when `rules/ids-issued.txt` loses a line or the allow-list grows against the base commit (the in-tree checks can't see a record and its ids-issued line deleted together) | 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 |
|
||||
|
||||
Reference in new issue
Block a user