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 <noreply@opencode.ai>
This commit is contained in:
1 parent
d6bc8d6cfe
commit
fb45b290d3
1 file changed
+13
-7
@@ -2340,7 +2340,7 @@ fn every_claim_is_backed() {
|
|||||||
}
|
}
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
EXCEPTIONS.len(),
|
EXCEPTIONS.len(),
|
||||||
14,
|
15,
|
||||||
"the kernel exception list changes only on purpose"
|
"the kernel exception list changes only on purpose"
|
||||||
);
|
);
|
||||||
// No ordinary function may fall through the right-law check: the
|
// 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",
|
"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",
|
"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
|
/// The kernel functions the right-law check cannot apply to, pinned
|
||||||
/// exactly: each is excepted above, and lacks either a harness law or a
|
/// exactly: each is excepted above, and lacks either a harness law or a
|
||||||
/// cited rule for one. `movements` and `reversal` allocate, so every
|
/// cited rule for one. `movements`, `reversal` and
|
||||||
/// harness proves their fixed-array helper; `round_places`, `round_minor`
|
/// `split_by_weights_with` allocate, so every harness proves their
|
||||||
/// and `fx_booked_minor` are Decimal wrappers whose law is the inner
|
/// fixed-array helper; `round_places`, `round_minor` and `fx_booked_minor`
|
||||||
/// function's; `Direction::key` is a wire name and `MonthPart::is_valid` a
|
/// are Decimal wrappers whose law is the inner function's; `Direction::key`
|
||||||
/// range predicate, with no law at all. A new name here is a deliberate
|
/// is a wire name and `MonthPart::is_valid` a range predicate, with no law
|
||||||
/// widening, never a silent hole.
|
/// at all. A new name here is a deliberate widening, never a silent hole.
|
||||||
const SKIPPED: &[&str] = &[
|
const SKIPPED: &[&str] = &[
|
||||||
"movements",
|
"movements",
|
||||||
"reversal",
|
"reversal",
|
||||||
@@ -2537,6 +2542,7 @@ const SKIPPED: &[&str] = &[
|
|||||||
"round_places",
|
"round_places",
|
||||||
"round_minor",
|
"round_minor",
|
||||||
"fx_booked_minor",
|
"fx_booked_minor",
|
||||||
|
"split_by_weights_with",
|
||||||
];
|
];
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in new issue
Block a user