Files
huskies/server/src
Timmy 0572af2193 feat: outer cap on commit-recovery respawns catches flapping agents
The progress-aware no-progress cap (3 consecutive byte-identical diffs)
doesn't catch the degenerate pattern where the agent keeps making
DIFFERENT file edits each session but never commits — every respawn
resets the no-progress counter, infinite loop, budget burns.

Adds ContentKey::CommitRecoveryTotalAttempts: an absolute counter that
increments on every commit-recovery respawn regardless of progress.
TOTAL_ATTEMPTS_CAP = 8; when hit, block with reason 'agent flapped — N
respawns without ever committing'.

Two caps now bound the recovery loop:
- NO_PROGRESS_CAP (3): catches stuck-agent (same diff repeatedly)
- TOTAL_ATTEMPTS_CAP (8): catches flapping-agent (different diffs, no commits)

Easy to tune the constant lower if we see runaway in practice.
All 2936 tests pass.
2026-05-14 11:34:17 +01:00
..
2026-05-12 17:55:12 +00:00
2026-05-14 08:12:56 +00:00
2026-05-14 08:12:56 +00:00
2026-05-14 09:38:15 +00:00
2026-05-13 22:55:05 +00:00
2026-05-14 09:38:15 +00:00
2026-05-13 23:39:17 +00:00
2026-05-12 23:16:25 +00:00
2026-05-14 08:41:44 +00:00
2026-05-14 08:52:38 +00:00
2026-05-12 17:55:12 +00:00
2026-05-14 09:38:15 +00:00
2026-05-14 08:12:56 +00:00
2026-05-14 09:38:15 +00:00
2026-05-14 09:38:15 +00:00
2026-05-12 21:33:41 +00:00
2026-05-13 14:56:08 +00:00
2026-04-29 10:47:18 +00:00
2026-05-13 08:46:22 +00:00
2026-04-28 09:33:23 +00:00
2026-05-13 15:11:37 +00:00
2026-04-29 10:47:18 +00:00
2026-05-12 23:16:25 +00:00
2026-04-29 10:47:18 +00:00
2026-04-29 10:47:18 +00:00
2026-04-29 10:47:18 +00:00