From 4af71d45c7e9c430ce7a94f08b83cbbf564555a8 Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Mon, 16 Feb 2026 18:49:37 +0200 Subject: [PATCH] Remove suppressed matches tracking from state to prevent re-evaluation alerts --- .../hooks/clawsec-advisory-guardian/handler.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/skills/clawsec-suite/hooks/clawsec-advisory-guardian/handler.ts b/skills/clawsec-suite/hooks/clawsec-advisory-guardian/handler.ts index e0cb2f4..e3a6275 100644 --- a/skills/clawsec-suite/hooks/clawsec-advisory-guardian/handler.ts +++ b/skills/clawsec-suite/hooks/clawsec-advisory-guardian/handler.ts @@ -209,14 +209,6 @@ const handler = async (event: HookEvent): Promise => { state.notified_matches[key] = nowIso; } - // Track suppressed matches in state (so they aren't re-evaluated) but don't alert - for (const match of suppressedMatches) { - const key = matchKey(match); - if (!state.notified_matches[key]) { - state.notified_matches[key] = nowIso; - } - } - if (unseenMatches.length > 0 && Array.isArray(event.messages)) { event.messages.push(buildAlertMessage(unseenMatches, installRoot)); }