Skip to content

fix: add Mexico to CII scoring — TIER1, keywords, ports#337

Merged
koala73 merged 1 commit into
mainfrom
fix/mexico-cii-scoring
Feb 24, 2026
Merged

fix: add Mexico to CII scoring — TIER1, keywords, ports#337
koala73 merged 1 commit into
mainfrom
fix/mexico-cii-scoring

Conversation

@koala73

@koala73 koala73 commented Feb 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • PR feat: add Mexico as CII hotspot #327 added Mexico to INTEL_HOTSPOTS in geo.ts but missed the actual CII scoring infrastructure — news was ingested but silently discarded by if (!TIER1_COUNTRIES[code]) continue guards in every ingest*ForCII() function
  • Adds Mexico across all 4 required files so cartel violence, protests, military deployments, and infrastructure events properly flow into instability scoring

Changes

config/countries.tsMX: 'Mexico' added to TIER1_COUNTRIES

services/country-instability.ts — Full CII wiring:

  • Keywords: mexico, cartel, sinaloa, jalisco, cjng, tijuana, juarez, sedena, etc.
  • Baseline risk: 35 (cartel warfare, state fragility, fentanyl crisis)
  • Event multiplier: 1.0 (mixed reporting — some well-covered, cartel zones under-reported)
  • Bounding box: [14, 33, -118, -86]
  • ISO3 mapping: MEX → MX
  • Hotspot wiring: mexico → MX
  • Displacement name: 'Mexico': 'MX'

config/ports.ts — 3 critical Mexican ports:

  • Manzanillo (busiest, Pacific gateway, USMCA corridor)
  • Lazaro Cardenas (2nd largest, Asia-Mexico deep-water)
  • Veracruz (largest Gulf port, US-Mexico trade)

App.tsMX: 'Mexico' in deep link country names

Test plan

  • tsc --noEmit — zero errors
  • npm run build:full — passes
  • Open Mexico country brief — should show instability score reflecting cartel violence
  • Search "mexico" — hotspot result should link to country brief
  • Deep link ?country=MX should resolve to Mexico

PR #327 only added Mexico to INTEL_HOTSPOTS in geo.ts but missed the
actual CII scoring infrastructure. News was being ingested but silently
discarded by the `if (!TIER1_COUNTRIES[code]) continue` guards in every
ingest*ForCII() function.

Changes:
- config/countries.ts: add MX to TIER1_COUNTRIES
- country-instability.ts: keywords (cartel, sinaloa, cjng, etc.),
  baseline risk 35, event multiplier 1.0, bounding box, ISO3 mapping
  (MEX→MX), hotspot wiring (mexico→MX), displacement name mapping
- config/ports.ts: Manzanillo, Lazaro Cardenas, Veracruz
- App.ts: add MX to deep link country names
@vercel

vercel Bot commented Feb 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Feb 24, 2026 6:47pm
worldmonitor-finance Building Building Preview, Comment Feb 24, 2026 6:47pm
worldmonitor-happy Ready Ready Preview, Comment Feb 24, 2026 6:47pm
worldmonitor-startup Building Building Preview, Comment Feb 24, 2026 6:47pm

Request Review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

@koala73
koala73 merged commit 313908b into main Feb 24, 2026
3 of 5 checks passed
koala73 added a commit that referenced this pull request Feb 24, 2026
…geo matching

The CII scoring merge (PR #337) added MX to TIER1, keywords, and ports
but missed the App.ts maps that feed the country brief UI:
- COUNTRY_BOUNDS: geo-matching protests/conflicts to Mexico's territory
- COUNTRY_ALIASES: matching cartel/narco/fentanyl headlines to brief
koala73 added a commit that referenced this pull request Feb 24, 2026
…geo matching (#338)

The CII scoring merge (PR #337) added MX to TIER1, keywords, and ports
but missed the App.ts maps that feed the country brief UI:
- COUNTRY_BOUNDS: geo-matching protests/conflicts to Mexico's territory
- COUNTRY_ALIASES: matching cartel/narco/fentanyl headlines to brief
andreteow pushed a commit to andreteow/worldmonitor-a47 that referenced this pull request Feb 25, 2026
…ala73#337)

PR koala73#327 only added Mexico to INTEL_HOTSPOTS in geo.ts but missed the
actual CII scoring infrastructure. News was being ingested but silently
discarded by the `if (!TIER1_COUNTRIES[code]) continue` guards in every
ingest*ForCII() function.

Changes:
- config/countries.ts: add MX to TIER1_COUNTRIES
- country-instability.ts: keywords (cartel, sinaloa, cjng, etc.),
  baseline risk 35, event multiplier 1.0, bounding box, ISO3 mapping
  (MEX→MX), hotspot wiring (mexico→MX), displacement name mapping
- config/ports.ts: Manzanillo, Lazaro Cardenas, Veracruz
- App.ts: add MX to deep link country names
andreteow pushed a commit to andreteow/worldmonitor-a47 that referenced this pull request Feb 25, 2026
…geo matching (koala73#338)

The CII scoring merge (PR koala73#337) added MX to TIER1, keywords, and ports
but missed the App.ts maps that feed the country brief UI:
- COUNTRY_BOUNDS: geo-matching protests/conflicts to Mexico's territory
- COUNTRY_ALIASES: matching cartel/narco/fentanyl headlines to brief
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
…ala73#337)

PR koala73#327 only added Mexico to INTEL_HOTSPOTS in geo.ts but missed the
actual CII scoring infrastructure. News was being ingested but silently
discarded by the `if (!TIER1_COUNTRIES[code]) continue` guards in every
ingest*ForCII() function.

Changes:
- config/countries.ts: add MX to TIER1_COUNTRIES
- country-instability.ts: keywords (cartel, sinaloa, cjng, etc.),
  baseline risk 35, event multiplier 1.0, bounding box, ISO3 mapping
  (MEX→MX), hotspot wiring (mexico→MX), displacement name mapping
- config/ports.ts: Manzanillo, Lazaro Cardenas, Veracruz
- App.ts: add MX to deep link country names
facusturla pushed a commit to facusturla/worldmonitor that referenced this pull request Feb 27, 2026
…geo matching (koala73#338)

The CII scoring merge (PR koala73#337) added MX to TIER1, keywords, and ports
but missed the App.ts maps that feed the country brief UI:
- COUNTRY_BOUNDS: geo-matching protests/conflicts to Mexico's territory
- COUNTRY_ALIASES: matching cartel/narco/fentanyl headlines to brief
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