build(check): every crate is held at zero Decimal arithmetic outside the kernel (K-U12)
The viewer was the last crate with arithmetic of its own on amounts. With it at zero, `just kernel-only` runs the detector over all eleven crates, and it now fails when a folder under crates/ is not in its list, so a new crate cannot do money arithmetic of its own from the day it is added. Why it matters for the books: the proofs (Kani, Lean) are about the kernel. A sum or a product computed anywhere else is one they say nothing about, and rust_decimal's own operators either panic or round without saying so. Bar item 1 of AGENTS.md is now a property the compiler checks for the whole workspace, not a rule to remember. Checked on main after the merge: the detector reads 0 places and 0 waivers for ledger-gui, the crate's whole test suite passes in one run (300 passed, 0 failed, 1 ignored), clippy with warnings denied and fmt are clean. docs/proofs/k-u12.md is the account: the 183 places by crate, the rule each kind followed, and the decision for every site that was not a plain sum or sign. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
e444a41071
commit
ef86f7820a
7 files changed
+129
-16
No files matched your search
@@ -1075,7 +1075,10 @@ kernel. What the proofs and their reviews found, beyond the tidying:
|
||||
of 28-digit shares (`checked_add_rounded`), which exact addition
|
||||
refused for every split by thirds. `kernel::rescale_exact` is the one
|
||||
place a figure's written places change, and it refuses to round.
|
||||
`docs/proofs/k-u11.md` has the account.
|
||||
`docs/proofs/k-u11.md` has the account. K-U12 did the same for the
|
||||
crates around the core (183 places, 123 of them in the viewer), so the
|
||||
gate covers every crate of the workspace and fails on a crate it does
|
||||
not list; `docs/proofs/k-u12.md`.
|
||||
- **The sweep changed no posted figure.** Every golden and existing test
|
||||
passed unchanged. `round_places` reproduces `round_dp_with_strategy` to
|
||||
the character except a negative-zero input (which no call site can
|
||||
|
||||
Reference in new issue
Block a user