Skip to content

160-tool MCP server for real-time global intelligence from free public APIs: markets, liquidity, prediction markets, SEC filings, conflict, military, aircraft-cohort early warning, migration and border flows, cyber, climate, news and more. Dated observation history, 29 research prompts, cited briefs, geofences, SSE dashboard. MIT, no paid API keys.

country-overview: the dossier's elections can be another country's

Phoenix Agent (mac-studio)79a22112e093
diff --git a/CHANGELOG.md b/CHANGELOG.md
index be878fe..0b32571 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -389,6 +389,9 @@ source here, and no proxy is substituted for any of these measures.
with no note; past entries keep a proximity risk; and the country
filter also matches part of a name (RUS returns Belarus). The step and
limits now say each of these. The code is unchanged.
+- country-overview now says the dossier's elections section reads the
+ same hand-kept table: empty means not covered, and its match on part of
+ a name can add another country's election (RUS gets Belarus's).
### Added: tropical cyclone forecast tracks
- `intel_cyclones` and `intel_jtwc_cyclones` take `include_forecast`
diff --git a/src/world_intel_mcp/guide_prompts.py b/src/world_intel_mcp/guide_prompts.py
index 38eac78..31cb5bf 100644
--- a/src/world_intel_mcp/guide_prompts.py
+++ b/src/world_intel_mcp/guide_prompts.py
@@ -1451,6 +1451,11 @@ PROMPTS: tuple[ResearchPrompt, ...] = (
"UCDP data: a total at the floor says nothing about this month.",
"World Bank figures in the dossier are annual and often a year or "
"more old. Give the year of each.",
+ "The dossier's elections section reads a hand-kept election "
+ "table: empty means the country is not covered, not that no vote "
+ "is due, and its match on part of a name can add another "
+ "country's election, so keep only entries whose iso3 is "
+ "{country}.",
),
),
)
diff --git a/src/world_intel_mcp/tests/test_guide.py b/src/world_intel_mcp/tests/test_guide.py
index ccfe773..df26be6 100644
--- a/src/world_intel_mcp/tests/test_guide.py
+++ b/src/world_intel_mcp/tests/test_guide.py
@@ -1910,3 +1910,24 @@ async def test_election_watch_says_what_the_calendar_table_is() -> None:
assert "(RUS returns Belarus)" in text
assert elections._proximity_score(-13) == elections._proximity_score(13) > 0
assert "Entries with status past have already happened" in text
+
+
+async def test_country_overview_says_the_dossier_elections_can_be_another_country() -> None:
+ from world_intel_mcp.analysis import dossier
+
+ async def calendar_only(coro, label):
+ if label == "elections":
+ return await coro
+ coro.close()
+ return {"_error": "not called"}
+
+ import unittest.mock as _mock
+
+ with _mock.patch.object(dossier, "_safe", calendar_only):
+ result = await dossier.fetch_country_dossier(_DownFetcher(), country="RUS")
+ entries = result["elections"]["upcoming"] + result["elections"]["past"]
+ assert [e["iso3"] for e in entries] == ["BLR"]
+ text = " ".join(_text("country-overview", {"country": "RUS"}).split())
+ assert "keep only entries whose iso3 is RUS" in text
+ assert "empty means the country is not covered" in text