ECC/tests
Affaan Mustafa f9e8287346
fix: observer memory explosion with throttling, re-entrancy guard, and tail sampling (#536)
Three fixes for the positive feedback loop causing runaway memory usage:

1. SIGUSR1 throttling in observe.sh: Signal observer only every 20
   observations (configurable via ECC_OBSERVER_SIGNAL_EVERY_N) instead
   of on every tool call. Uses a counter file to track invocations.

2. Re-entrancy guard in observer-loop.sh on_usr1(): ANALYZING flag
   prevents parallel Claude analysis processes from spawning when
   signals arrive while analysis is already running.

3. Cooldown + tail-based sampling in observer-loop.sh:
   - 60s cooldown between analyses (ECC_OBSERVER_ANALYSIS_COOLDOWN)
   - Only last 500 lines sent to LLM (ECC_OBSERVER_MAX_ANALYSIS_LINES)
     instead of the entire observations file

Closes #521
2026-03-16 13:47:25 -07:00
..
ci fix(ci): enforce catalog count integrity (#525) 2026-03-16 13:37:51 -07:00
hooks fix: observer memory explosion with throttling, re-entrancy guard, and tail sampling (#536) 2026-03-16 13:47:25 -07:00
integration fix: update hook integration tests for auto-tmux-dev behavior 2026-03-07 22:45:44 -08:00
lib Add PowerShell installer wrapper and update documentation (#532) 2026-03-16 13:35:17 -07:00
scripts Add PowerShell installer wrapper and update documentation (#532) 2026-03-16 13:35:17 -07:00
codex-config.test.js fix: stop pinning o4-mini in codex config 2026-03-12 07:59:50 -07:00
opencode-config.test.js fix: repair opencode config and project metadata 2026-03-11 01:52:10 -07:00
run-all.js Add PowerShell installer wrapper and update documentation (#532) 2026-03-16 13:35:17 -07:00