From fb45b290d3e8575a4a91d9a009efca63e842d850 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 01:31:45 -0700 Subject: [PATCH] test(core): the kernel shares pass the traceability gate split_by_weights_with allocates its Vec buffers and has no harness of its own, so it joins the gate's EXCEPTIONS (15 now) and SKIPPED, with its law 18 carried by split_by_weights_into, whose fixed-array call the bridge makes directly; the harnesses call share_of and share_floor_with by name, their SOURCE lines cite the rules laws 18 and 42 serve (share_floor_with cites BS-partner-1 and BS-1099-1 so it intersects law 42), and the K-U3 note's rows give each harness its law number. Co-Authored-By: DeepSeek V4.1 Flash --- .../tests/bookspec/traceability.rs | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/crates/ledger-core/tests/bookspec/traceability.rs b/crates/ledger-core/tests/bookspec/traceability.rs index cf905009..524b6cd5 100644 --- a/crates/ledger-core/tests/bookspec/traceability.rs +++ b/crates/ledger-core/tests/bookspec/traceability.rs @@ -2340,7 +2340,7 @@ fn every_claim_is_backed() { } assert_eq!( EXCEPTIONS.len(), - 14, + 15, "the kernel exception list changes only on purpose" ); // No ordinary function may fall through the right-law check: the @@ -2519,16 +2519,21 @@ const EXCEPTIONS: &[(&str, &str, &str)] = &[ "a Kani harness and a law", "it is the Decimal/currency wrapper around `round_step`; the harnesses and law 40 are round_step's, and the bridge carries them to Decimal", ), + ( + "split_by_weights_with", + "a Kani harness and a law", + "it allocates two Vec buffers; every harness calls the fixed-array `split_by_weights_into` directly, and its law 18 is split_by_weights_into's", + ), ]; /// The kernel functions the right-law check cannot apply to, pinned /// exactly: each is excepted above, and lacks either a harness law or a -/// cited rule for one. `movements` and `reversal` allocate, so every -/// harness proves their fixed-array helper; `round_places`, `round_minor` -/// and `fx_booked_minor` are Decimal wrappers whose law is the inner -/// function's; `Direction::key` is a wire name and `MonthPart::is_valid` a -/// range predicate, with no law at all. A new name here is a deliberate -/// widening, never a silent hole. +/// cited rule for one. `movements`, `reversal` and +/// `split_by_weights_with` allocate, so every harness proves their +/// fixed-array helper; `round_places`, `round_minor` and `fx_booked_minor` +/// are Decimal wrappers whose law is the inner function's; `Direction::key` +/// is a wire name and `MonthPart::is_valid` a range predicate, with no law +/// at all. A new name here is a deliberate widening, never a silent hole. const SKIPPED: &[&str] = &[ "movements", "reversal", @@ -2537,6 +2542,7 @@ const SKIPPED: &[&str] = &[ "round_places", "round_minor", "fx_booked_minor", + "split_by_weights_with", ]; #[test]