RelayClamp
One clamp on the relay's bound, none on anything else it reports
3/3 passed in 1ms
| Test | What it does | Result |
|---|---|---|
test_bound_converges | At beta = 1 the gap between key_bound and key_attack falls tenfold per decade of V_A from 1e3 to 1e5. | ✅ pass |
test_one_clamp | At a relay position that cannot distil, SwapResult.key_rate is max(0, key_bound) = 0.0 while explain()'s key_bound = key_raw and attack.key_rate = key_attack stay negative. | ✅ pass |
test_two_quantities | At a live relay position key_bound and key_attack differ by over 0.1, and lowering beta to 0.90 lowers key_attack and leaves key_bound bit-identical. | ✅ pass |