Skip to content

fix(alerts): compound escalation for military action + geopolitical targets#548

Merged
koala73 merged 1 commit intomainfrom
fix/threat-classifier-compound-escalation
Feb 28, 2026
Merged

fix(alerts): compound escalation for military action + geopolitical targets#548
koala73 merged 1 commit intomainfrom
fix/threat-classifier-compound-escalation

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 28, 2026

Summary

  • Problem: Banner showed HIGH for "Qatar missiles" while dashboard had CRITICAL-worthy headlines like "US and Israel Launch Attacks on Iran" — classified as only HIGH because 'attacks on iran' (plural) wasn't in CRITICAL_KEYWORDS
  • Fix 1: Added missing CRITICAL keyword variants: attacks on iran, launch attacks on iran, iran retaliates, iran strikes, iran launches, iran attacks
  • Fix 2: Added compound escalation — if a headline matches a HIGH military/conflict keyword AND mentions a critical geopolitical target (Iran, Russia, China, Taiwan, NATO, US bases), escalate to CRITICAL

Escalation test results:

Headline Before After
US And Israel Launch Attacks on Iran HIGH CRITICAL
strikes by US and Israel on Iran HIGH CRITICAL
50 killed in strike on school in Iran HIGH CRITICAL
Iran retaliates, strikes US forces HIGH CRITICAL
Qatar...missiles intercepted over Doha HIGH HIGH (correct)
IAEA...enrichment after war HIGH HIGH (correct)

Test plan

  • Headlines with military action + Iran/Russia/China/Taiwan/NATO/US forces → CRITICAL
  • Non-military headlines mentioning targets → no escalation (e.g., "Iran sanctions")
  • Breaking banner picks CRITICAL over HIGH when both exist
  • Exclusion list still works ("strikes deal" → info)

…al target

Keyword matching was too rigid — "attacks on iran" didn't match CRITICAL
because only "attack on iran" (singular) existed. Headlines like
"strikes by US and Israel on Iran" also missed because words weren't
adjacent.

Added compound escalation: if a HIGH military/conflict keyword matches
AND the headline mentions a critical geopolitical target (Iran, Russia,
China, Taiwan, NATO, US forces), escalate to CRITICAL. Also added
missing Iran keyword variants (plural forms, "Iran retaliates/strikes").
@vercel
Copy link

vercel bot commented Feb 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Feb 28, 2026 2:36pm
worldmonitor-finance Building Building Preview, Comment Feb 28, 2026 2:36pm
worldmonitor-happy Building Building Preview, Comment Feb 28, 2026 2:36pm
worldmonitor-startup Building Building Preview, Comment Feb 28, 2026 2:36pm

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant