EV-13: guard the P4 live check's last sample (test_named_absence)
infra-pin / fresh (pull_request) Successful in 2s
checks / unit (pull_request) Successful in 27m17s

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-22 07:58:56 +01:00
parent 0774d1efd5
commit 57a9f56a64
+3 -2
View File
@@ -1051,9 +1051,10 @@ for _s, _r in steady({5: dict(a=10.0)}, end=14, **zero):
check("P4 [live]: from the send to the move the refusal is an open window "
"dated TS (armed_at still None)", all(w == TS and a is None
for s, w, a in _mid if s < 11))
_last = _mid[-1] if _mid else None
check(f"P4 [live]: the window arms dated TS when it runs out, and the moved "
f"read-back disarms it in the same sample ({_dates}, {_mid[-1]})",
_dates == [TS] and _tr.armed_at is None and not _tr.stuck_now
f"read-back disarms it in the same sample ({_dates}, {_last})",
_last is not None and _dates == [TS] and _tr.armed_at is None and not _tr.stuck_now
and pend(_tr) is None)
tr, first, ever = play(steady({5: dict(a=10.0)}, **zero), "ring", pre=zero)
check(f"P4 [ring]: the read-back moved inside the window BEFORE the refusal "