feat(healing): re-check membership mismatches before healing

A decision created moments before an audit shows up as missing=1 until
the bouncer's next poll, which triggered a bouncer restart for nothing.

When the audit finds a membership mismatch, wait membership_recheck_delay
seconds (default 30, 0 disables) and audit again; only drift that is still
present is reported and healed. Metadata drift is not delayed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Opus 5.5 committed 2026-10-13 19:38:39 -04:00
1 parent 79f72512e4
commit 772892b78d
7 files changed
+100 -3

No files matched your search

+1
View File
@@ -4,6 +4,7 @@ agent:
check_jitter_pct: 0.10
heal_verify_delay: 5
heal_min_interval: 900
membership_recheck_delay: 30 # 0 disables the re-check
log_path: "/root/threat-engine-agent/logs/threat-agent.log"
state_file: "/root/threat-engine-agent/threat-agent-state.json"