H3Harnessscope: coreweight: 2fix: guided
H3: Stop hook has circuit breaker
Why this rule exists (Empirical Evidence)
Corpus analysis: only 5/92 Stop hooks have loop protection. Stop hook exit non-zero → Claude continues → triggers Stop again → infinite loop. Circuit breaker pattern: guard variable (STOP_HOOK_ACTIVE) checked at script entry.
Claude Code Repository Corpus Analysis (2026)
Anti-pattern (Triggers H3)
# Anti-pattern triggering H3 (Stop hook has circuit breaker) # Rule or repository configuration violates this check without verification.
Compliant pattern (Passes H3)
# Compliant harness passing H3 (Stop hook has circuit breaker) # Concrete, verifiable repository configuration backed by corpus-4533.
Verify locally or online
npm install -g agentlint-ai && agentlint check --check H3