Files
6krrt/tests/test_circuit_breaker.py
adlee-was-taken f76ee5a9f6 fix: gate streaming breaker on stream_completed, register content-fault warning tripwire
BLOCKING A: A client disconnect (GeneratorExit) in the streaming generator
runs the finally block, which verified the empty content as 'malformed' and
opened a breaker against a healthy model. Added stream_completed flag
(initialized False, set True after the iteration loop exits normally) and
gated the breaker call on it. Disconnect leaves the flag False, recording
nothing.

BLOCKING B: content_fault_warnings was wired into scoring_coverage but
never registered in the TUI warning tripwire. Added dual-window
(alert+baseline) pattern detection matching rejection_warnings: 'new
content fault:' for novel patterns (absent from baseline), 'content fault:'
for known patterns (present in baseline, count >= threshold). Registered
both classes in WARN_CLASS_MATCHERS with lookbehind on the rate matcher.
Seeded chernobyl fixture with both novel and known malformed verification
rows.
2026-09-09 22:55:26 -04:00

4.9 KiB