docs(plan): K-U10 landed: the triage, the status and the log say so

The triage marked exact Decimal arithmetic and the tie rule as in
flight; both are on main. It now says what each closed, the one figure
a new foreign line can book differently (the exact product's cent,
10500000099.89 where the double rounding booked .90; posted lines are
not recomputed), and what the checks found that the workers' own runs
did not: an exact division that accepted a rounded quotient, the six
review findings, and the Kani cover the tie change made unreachable.

The comment in add_line_fx said a 20-place product past 7.9e8 rounds
twice; since K-U10 the kernel holds that product in 256 bits and rounds
once. The K-U1 note's open edge points at the unit that closed it.

Three lines in the delegation log: the two hard implementations and the
review.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude committed 2026-11-09 22:41:34 -07:00
1 parent 5e9591725a
commit c5c57aaf4b
6 files changed
+40 -19

No files matched your search

+28 -14
View File
@@ -35,20 +35,35 @@ books. The gaps are in what the gates do not see.
- 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
11 wait for K-U10a's exact operations. Mine.
11 waited for K-U10a's exact operations, now on main. Mine.
- K-U12, the outer crates. Worker or script, decided on the counts.
- The script in `just check` at zero, so the count cannot rise again.
2. **Decimal sums and products round silently** (K-U10a, in flight).
`Decimal::checked_add` and `checked_mul` return a rounded answer when
the exact one needs more than 28 digits. The kernel's `Amount for
Decimal` should refuse instead. Independent review before it merges.
3. **An exact tie between shares goes where Decimal's 28th digit sends
it** (K-U10b, written and measured). The docs and bookspec's Lean say
a tie goes to the earlier part; the engine ranked rounded remainders,
so 20.00 by 4/1/1 came out 13.33 / 3.34 / 3.33. The owner decided on
2026-11-09 (D-76): exact ranking from now on (13.34 / 3.33 / 3.33).
No golden moves, two-member books cannot differ, at most one cent per
part. Merges after K-U10a (the same file).
2. **Decimal sums and products rounded silently.** Done (K-U10a, merged
e632855f1). `Decimal::checked_add` and `checked_mul` return a rounded
answer when the exact one needs more than 28 digits; the kernel's
`Amount for Decimal` now gives the exact answer or refuses, and a
foreign amount is rounded once from a 256-bit product. Within the line
cap no sum moves and no golden moved. One figure a new line can book
does move: 1050000010.0000000001 at 9.9999999999 books 10500000099.89,
the exact product's cent, where the double rounding booked .90 (posted
lines are not recomputed). What the worker's own run missed and the
checks found: `checked_div_exact` accepted a rounded quotient (10 / 3);
the independent review's six findings, all reproduced (a refusal at
steps of 27 and 28 places the docs did not state, four gaps in what
the properties covered, stale sentences). Not proved: the 256-bit
helpers have no Kani harness (checked against exact rationals by
property instead; `docs/proofs/k-u10.md` says why).
3. **An exact tie between shares went where Decimal's 28th digit sent
it.** Done (K-U10b, merged 5e9591725). The docs and bookspec's Lean
say a tie goes to the earlier part; the engine ranked rounded
remainders, so 20.00 by 4/1/1 came out 13.33 / 3.34 / 3.33. The owner
decided on 2026-11-09 (D-76): exact ranking from now on (13.34 / 3.33
/ 3.33). No golden moved; of the engine's splits only the K-1
worksheet's share of contributed property can differ, by a cent a
part. Kani then found the same rule on whole numbers: a part whose
share is exact never takes a leftover unit (5 by 2/3/5 is 1, 2, 2),
and the harness now asserts it with the strict bound. The worker had
not run Kani; its cover would have failed `just prove`.
4. **The audit's close check** (V-D3, merged abafa94a5, 09a8707e2): it
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
@@ -165,8 +180,7 @@ signing (D-64); the re-audit (P10); Q-6 before P9b.
## Order of work
1. Land what is in flight: V-D3 (done), K-U9 (done), K-U10a (reviewed),
K-U10b (the owner answered: exact; after K-U10a).
1. Land what is in flight: V-D3, K-U9, K-U10a, K-U10b (all four done).
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).
+4 -1
View File
@@ -40,6 +40,8 @@ merged. bookspec main is at 2b3b6c9 (wanderbooks pinned there).
of bookspec's theorem list (151 of 177). Kept and pinned: an exact tie
between shares goes where Decimal's 28th digit sends it, as it always
has (K-U10 puts exact ranking to the owner, with the cents it moves).
Decided since (D-76, merged 5e9591725): a tie goes to the earlier
part, ranked on exact remainders.
**Next**: X-H1d's fixes, X-H1e; S-C8, S-E4, V-D3 (small, from the
reviews); K-U6..U9, K-U10 (with the owner's tie-break decision); X-K2,
@@ -78,7 +80,8 @@ reviewed by a second model before it merged:
refuse; a reversal could be dated before its original (D-73); a
26-place foreign amount booked a cent the product never reached
(D-75). Found, scheduled: rust_decimal's add and multiply round at
their edges (K-U10).
their edges (K-U10; closed 2026-11-09, merged e632855f1: the kernel's
sums and products are exact or refused).
- **Coverage**: a report and floor (core 90%, store 92%, weekly), and
rust_decimal checked against exact rationals (V-D).