Files
worldmonitor/docs
Elie Habib b0af1ad84f feat(simulation): geographic theater diversity + market_cascade economic paths (#2264)
* feat(simulation): geographic theater diversity + market_cascade economic paths

Three improvements to the MiroFish simulation pipeline:

1. Geographic deduplication: adds THEATER_GEO_GROUPS constant mapping
   CHOKEPOINT_MARKET_REGIONS values to macro-groups (MENA, AsiaPacific,
   EastEurope, etc.). buildSimulationPackageFromDeepSnapshot now skips
   candidates whose macro-group is already represented, preventing
   Red Sea + Middle East (both MENA) from appearing as separate theaters.

2. Label cleanup: strips trailing (stateKind) parenthetical from theater
   labels before writing to selectedTheaters, so "Black Sea maritime
   disruption state (supply_chain)" becomes "Black Sea maritime disruption
   state" in the UI.

3. market_cascade path: renames spillover → market_cascade across 4 sites
   (evaluationTargets, Round 1 prompt + JSON template, Round 2 prompt +
   JSON template, tryParseSimulationRoundPayload expectedIds). The
   market_cascade path instructs the LLM to model 2nd/3rd order economic
   consequences: energy price direction ($/bbl), freight rate delta,
   downstream sector impacts, and FX stress on import-dependent economies.

Tests: 176 pass (3 net new — geo-dedup, label cleanup, market_cascade
prompt; plus updated entity-collision and path-validation tests).

🤖 Generated with Claude Sonnet 4.6 via Claude Code (https://claude.ai/claude-code) + Compound Engineering v2.49.0

Co-Authored-By: Claude Sonnet 4.6 (200K context) <noreply@anthropic.com>

* docs: fix markdownlint MD032 in simulation diversity plan

---------

Co-authored-by: Claude Sonnet 4.6 (200K context) <noreply@anthropic.com>
2026-03-26 08:31:19 +04:00
..