You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: close block-path reject coverage gaps (PRED-04) (#194)
Closes#181.
- block.rs: add the missing Requant tampered-output reject test — with it,
every one of the 12 BlockOp variants rejects a bumped claimed output with
the exact typed error and op_id (Linear/BatchedLinear via Freivalds, the
exact-recompute ops via BlockOpMismatch). The accept half pins the
hand-computed requant outputs (incl. the ties-to-even case).
- lewm_predictor.rs: the small-dims predictor accept tests now pin the exact
24-element integer output vector instead of just is_ok + float tolerance,
locking the quantized semantics (kernels, tables, scheme derivation,
synthetic weights) end-to-end. Depth 1 and depth 6 pin the same vector:
the AdaLN-gated block contributions shift the float reference by less
than one f_ln quantization step (documented in the test).
- soundness_campaign.rs: add the range_check.modp_predictor mutant — the
mod-p accumulator-aliasing forgery (out[0] += p) on a BatchedLinear
accumulator, killed only by the block-path Freivalds range guard
(asserts the typed AccumulatorRange, not just any rejection) — so the
predictor/block path is merge-gated like the flat demo path. Campaign
floor raised to 7 mutants.
Full workspace suite green (200 tests); real-dims predictor release test
unaffected and green.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments