From ae23efe5a388053dae20359cd33ac949214b9dd7 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 20:44:40 -0700 Subject: [PATCH] docs(plan): K-U9 landed: the log line, and the outer crates' counts after it The detector, run again on the three crates K-U9 touched: ledger-gui 123 places of money arithmetic outside the kernel (was 137), ledger-import 18 (was 22), ledger-package 13 (unchanged: its sums are totals, not display rounding). Co-Authored-By: Claude --- docs/delegation-log.md | 1 + plan/2026-11-09_TRIAGE.md | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/delegation-log.md b/docs/delegation-log.md index 0924e33c..75d3215e 100644 --- a/docs/delegation-log.md +++ b/docs/delegation-log.md @@ -7,3 +7,4 @@ entries. Started 2026-11-09; earlier tasks were not logged. Columns: date | type (scout, run/verify, implement, refactor, debug, review) | provider/model/effort | size | wall-clock to report | tokens | outcome | rework | note 2026-11-09 | implement | muse / muse-wonder-1.0 / reasoningEffort high | small | 2h25m (machine at load 90+; the code was done in ~13 min) | | accepted after fixes | me, ~10 min: boundary assertions a tenth of a unit past the bound; its raw arithmetic in audit.rs still to route through the kernel | V-D3; sent before the tier policy; the bound covers one legacy close, not several +2026-11-09 | refactor | muse / muse-wonder-1.0 / reasoningEffort high | medium (17 files, +498/-62) | 4h13m (machine at load 50-90) | | accepted after one fix | me, ~5 min: the demo books' booked fee was put on the display rounding; back on the kernel's, rule unchanged | K-U9; sent before the tier policy; worked from a base 16 commits old, so it reported a traceability failure that main does not have; its report matched its diff diff --git a/plan/2026-11-09_TRIAGE.md b/plan/2026-11-09_TRIAGE.md index 87111092..baab39d4 100644 --- a/plan/2026-11-09_TRIAGE.md +++ b/plan/2026-11-09_TRIAGE.md @@ -27,11 +27,11 @@ books. The gaps are in what the gates do not see. multiply, negate or sum a `Decimal` outside the kernel: raw operators that panic on overflow, and `checked_*` calls that reach rust_decimal's methods (which round silently past 28 digits) instead of the kernel's. - The outer crates: **ledger-gui 137** (the viewer computes averages, - shares and percentages of its own in `books.rs` and the pages), - ledger-import 22, ledger-mcp 19, ledger-package 13, ledger-store 8, - ledger-config 2, and none in ledger-cli, ledger-host, ledger-reader - and ledger-vault. Closes with: + The outer crates, after K-U9: **ledger-gui 123** (the viewer computes + averages, shares and totals of its own in `books.rs` and the pages; + 137 before K-U9), ledger-import 18 (was 22), ledger-mcp 19, + ledger-package 13, ledger-store 8, ledger-config 2, and none in + ledger-cli, ledger-host, ledger-reader and ledger-vault. Closes with: - K-U11a, ledger-core: every site routed through the kernel (branch `k-u11a`; a script driven by the compiler's own spans, so no site is hand-copied). 199 of the 210 are done and committed there; the last @@ -53,9 +53,12 @@ books. The gaps are in what the gates do not see. checked a JPY close at a cent, and its pre-true-up bound ignored the member count. Left open: the bound covers one legacy close, not several in one set of books. -5. **Rounding for display is done outside the kernel** in ledger-gui, - ledger-import and ledger-package, each with its own copy (K-U9, in - flight). +5. **Rounding for display was done outside the kernel** in ledger-gui, + ledger-import and ledger-package, each with its own copy, and the + viewer's percentages were f64. Done (K-U9, merged 0e9990f11): one + `round_display` through the kernel, percentages by the kernel's + `percent_of`. A change against a zero or negative base now shows no + percentage. 6. **Recorded regression seeds that no test read.** Fixed (129a90dcf): the failures are replayed again, and a seed file no test reads fails the build. @@ -132,8 +135,8 @@ signing (D-64); the re-audit (P10); Q-6 before P9b. ## Order of work -1. Land what is in flight: V-D3 (done), K-U10a (reviewed), K-U10b (after - the owner's answer), K-U9. +1. Land what is in flight: V-D3 (done), K-U9 (done), K-U10a (reviewed), + K-U10b (the owner answered: exact; after K-U10a). 2. K-U11a on top of them, then K-U12, then the detector in `just check`. 3. `overflow-checks`, the CI split, `just prove`'s cap, `cargo-deny` (all four done).