docs(plan): S-E5, the old Rule n labels in wanderbooks move to statement positions

S-C8 dropped BS-statement-3's and BS-partner-3's Rule n labels, which
had drifted from their positions; wanderbooks' cash-flow code and tests
still cite them by label (Rule 11 is statement 16).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-11-09 08:49:18 -07:00
1 parent 7a5cb6873a
commit b3ee97a94f
1 file changed
+1
+1
View File
@@ -87,6 +87,7 @@ workers have been faster).
| **S-C8** | bookspec's records cite their own parts by position: BS-format-2's statements cite each other as "(item 22)", "(item 18)", "(item 24)" (the old word, though the number is the position), and BS-statement-3's and BS-partner-3's statements open with "Rule n" labels that no longer equal their positions (BS-statement-3 statement 16 is "Rule 11"). Rewrite the cross-references as "statement k", and drop the labels or keep them only where an outside text cites them (then say so); extend the checker so a record's internal "statement k" names a part it has (found by S-E3, 2026-11-09) | S-E3 merged | bookspec `rules/format/BS-format-2.toml`, `rules/statement/BS-statement-3.toml`, `rules/partner/BS-partner-3.toml`, the checker | S |
| **S-E4** | Retired bookspec ids cited as authority: 35 `SOURCE:` clauses across four crates still cite a retired record (`BS-format-1` x23, `BS-ledger-13` x8, `BS-ledger-12` x4; found by V-D2, 2026-11-09). Each cites what states the rule now: the product rule the retirement names (`BS-ledger-13` is `WB-ledger-16`, `BS-ledger-12` is `WB-ledger-15`), and for `BS-format-1`, whose retirement names no successor, the rule that does state each clause's fact (read the retirement reason and the old B-27 text). Then `tests/bookspec/source_refs.rs` refuses a retired id in a `SOURCE:` clause, with a self-test | V-D2 merged | the 35 sites, `tests/bookspec/source_refs.rs` | S |
| **V-D3** | V-D2's audit findings: `audit::closes` takes its unit as `minor_units().unwrap_or(2)` while the allocation uses `allocation_places()`, so for a currency with no minor unit the audit's bound is looser than the split it checks; and before a count is trued up, a legacy last-absorbs close with four or more members may drift past one unit (BS-partner-1 statement 6 allows it until the true-up), which the audit's loose bound would still flag. Decide each from the rule, fix, and test; the replayed foreign original (no bound on replay, by design, since old books must read) stays documented | V-D2 merged | `audit.rs`, its tests | S |
| **S-E5** | Wanderbooks' bare "Rule n" / "rule n" mentions of BS-statement-3's and BS-partner-3's old labels (35 capitalised and about 78 lowercase, mostly in `cashflow.rs`, `tests/spec_cash_flow.rs`, `tests/spec_reports.rs`, `docs/spec/claims/statement.md`) move to `BS-statement-3 statement k` / `BS-partner-3 statement k`: S-C8 dropped the labels, which had drifted from the positions (Rule 1 is statement 2, Rule 11 statement 16, 5a-5d statements 7-10; S-C8's report has the line-by-line map). Then `tests/bookspec/sub_refs.rs` refuses a bare "Rule n" beside a cash-flow or party citation | S-C8 merged and pinned | those files, `sub_refs.rs` | S |
| **K-U10** | `impl Amount for Decimal`'s `checked_add` and `checked_mul` exact or None (BS-ledger-1: a product the arithmetic can't hold MUST be refused; BS-entry-4): `checked_mul` rounds a product whose mantissa passes 96 bits (K-U1's fix, 2026-11-08: `1050000010.0000000001 × 9.9999999999` books 10500000099.90 for an exact 10500000099.8949…, both inputs within D-75's ten places; pinned by `the_mantissa_edge_is_outside_the_precondition_and_pinned`), and `checked_add`: `rust_decimal` rounds dust away within one unit of `Decimal::MAX` (`MAX + 0.4` gives `Some(MAX)`), breaking the kernel's exact-or-None contract (found by K-U4, 2026-11-08; pinned by the canary `finding_decimal_add_rounds_dust_at_the_edge`): refuse a sum whose result scale fell below the operands'; after the sweep units merge (the file is shared). Also from K-U3's review (2026-11-09): `split_by_weights_into` ranks remainders by Decimal's rounded quotient, so an exact tie is decided by the 28th digit, not given to the earlier part as the docs and the Lean model say (20.00 by 4/1/1 gives 13.33, 3.34, 3.33 where exact ranking gives 13.34, 3.33, 3.33); the pre-U3 sites did the same, and K-U3 kept it and pinned both cases. Ranking by the exact integer remainder (`whole x w - part x total`, as `share_floor_with` does) moves a cent between parties in reports recomputed for past periods: an owner decision, put with the cents it moves before it lands | K-U4 merged | `kernel/entries.rs`, the canary, the bridge | S |
| **V-D** | Coverage report and floor; `rust_decimal` checked against exact rationals (task D) | none | in flight 2026-11-08 | S |
| **V-D2** | Tests where coverage is thinnest (the V-D findings, `docs/coverage-floor.md`): `ledger-store` `reconcilable.rs` (0% from the store's own suite), `ledger-core` `evidence.rs` (34% lines, 9% branches from the core's suite), `ledger.rs`'s command steps (`mark_sent_steps`, `settle_steps`, `run_payroll_steps`, …) and refusal arms, `conventions.rs` and `settings.rs` validation refusals, `audit.rs` branches; each test encodes the rule it covers; the floor rises with them | V-D | the crates' tests | M |