mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
record_failure ignored the half_open state: the minimum-sample gate (total >= 10) and the success counter meant a failure during probation neither re-opened the circuit nor prevented it from closing. One failure followed by three successes closed the circuit with the failure forgotten. Trip back to open on the first half-open failure, with fresh counters.