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.

Docs: counts, tool rows and CHANGELOG entries match the merged code

Phoenix Agent (mac-studio)1fc78bdb4e94
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 68ff29b..f314f61 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@
## Unreleased
+Tools 139 -> 160. Collector sources 55 -> 61. New MCP surface: 29 prompts and 3
+resources (none before).
+
### Added: dashboard research panels (Phase 29)
- RESEARCH in the dashboard top bar (or the `p` key) opens four tabs:
liquidity board, situations, top stories and collection health. Each tab
@@ -110,13 +113,6 @@
Measured with 8 processes on one fresh file: 29 to 67 failed opens in 80
to 160 before, none in 160 after.
-### Fixed: collection health names the per-user cache fallback
-- `intel_collection_health` says when its run log is the temp-directory
- fallback, but it compared against the old shared `world-intel-mcp`
- directory after the fallback moved to the per-user
- `world-intel-mcp-<uid>` directory, so a run log in the real fallback was
- never named as one. The cache and history now read one path helper.
-
### Fixed: the collector cycle summary separates data from errors
- A source that answers with an upstream error (`{"error": ...}`) still
counts as a completed fetch, but the cycle summary now lists it under
@@ -200,6 +196,7 @@ responses say so. `limit=0` returns the full history.
- Live reading 2026-10-17: net liquidity for Wednesday 2026-10-14 was
USD 5,869.615 billion (WALCL 6,755,639 million, WDTGAL 885,823 million,
RRPONTSYD 0.201 billion, all observed 2026-10-14).
+- Adds 5 tools.
Not added, measured 2026-10-17: ICI money market fund assets and ETF net issuance
(403 on every path, robots.txt included); FINRA margin statistics (the finra.org
@@ -249,15 +246,17 @@ source here, and no proxy is substituted for any of these measures.
the headlines use its name; one named only by a demonym, capital or code,
or inside a longer name such as "Gulf of Mexico", is listed as excluded.
Responses say they describe same-session co-movement, not causation, and
- are not a trading signal. Tools 139 -> 140.
+ are not a trading signal. Adds 1 tool.
### Added: research guide over MCP (prompts and resources)
- The server now answers `resources/list`, `resources/read`, `prompts/list`
and `prompts/get`, and advertises the resources and prompts capabilities
- at initialize. Before this it exposed tools only. No tools were added or
- removed, and no tool name, parameter or existing response key changed;
- the corrected tool descriptions and the new UCDP failure fields are
- listed under Fixed.
+ at initialize. Before this it exposed tools only. This change adds no
+ tools and renames no tool or parameter. Changes to existing tools made
+ alongside it (the corrected tool descriptions, the UCDP failure fields,
+ `intel_yield_curve` returning `inverted: null` instead of `false` when no
+ spread could be computed, and the arXiv, Kp, ACLED, sanctions and
+ instability fixes) are listed under the two Fixed sections below.
- At initialize the server sends `instructions` that point a model at
`intel://guide` before its first tool call.
- `intel://guide` (markdown): how to ask a strong question (period,
@@ -320,7 +319,7 @@ source here, and no proxy is substituted for any of these measures.
hold each statement against the code through a real fetcher with every
upstream mocked.
-### Fixed
+### Fixed: tool error reporting and server fixes
- `intel_ucdp_events`: a missing token or a refused request (the UCDP API
answers 401 without a token) now returns `error`, `degraded: true` and
`reason` (`ucdp_unconfigured` or `ucdp_fetch_failed`) next to the empty
@@ -405,6 +404,8 @@ source here, and no proxy is substituted for any of these measures.
- `intel_internet_outages` returned an empty list with no marker when
neither Cloudflare Radar nor IODA answered; it now carries `error`,
`degraded` and reason `outages_unavailable`.
+
+### Fixed: research guide
- The guide did not mark `intel_instability_index` as needing ACLED
credentials, though without a `country_code` it returns the same
credentials error as the other ACLED tools. It now carries
@@ -661,7 +662,7 @@ source here, and no proxy is substituted for any of these measures.
synthetic store of 475,200 captures and 1.75 million observations
(10,982 series), one call took 24 to 46 ms (measured before the review
fixes, not re-measured).
-- Tools 152 -> 153.
+- Adds 1 tool.
### Added: observation history and collection health
- A history store in the cache SQLite file. Every collector source run is a
@@ -719,15 +720,19 @@ source here, and no proxy is substituted for any of these measures.
(`2026-02-30`, `0000` and fullwidth digits are rejected).
- MCP tools `intel_collection_health`, `intel_capture_history`,
`intel_series_history` and `intel_revisions`, and the CLI group
- `intel history health|captures|series|revisions`. History accrues only
- while the collector runs.
+ `intel history health|captures|series|revisions`. Adds 4 tools. History
+ accrues only while the collector runs, except the `backfill:*` series
+ that `intel_history_backfill` (`intel history backfill fred|ecb`) loads
+ from the publisher's current data.
- Collection health counts a success only from a live capture. A source
served from stale cache reads `stale`, keeps its last live success time
and goes overdue on schedule; consecutive failures count errors and
stale replays since the last live capture. Health also reports the last
fully ok capture (`last_ok_at`, `last_ok_age_s`; a Last ok column in
`intel history health`), `data_gaps` (an empty run log names the file
- it read), lost history writes and what it cannot prove.
+ it read, and a run log at the cache's temp-directory fallback,
+ `world-intel-mcp-<uid>/cache.db` under the system temp directory, is named
+ as the fallback), lost history writes and what it cannot prove.
`intel_revisions` reports how many observations and dated series it
checked, and its data gaps.
- The collector records every source outcome of a cycle in one
@@ -746,14 +751,14 @@ source here, and no proxy is substituted for any of these measures.
`WORLD_INTEL_HISTORY_CADENCE_S` and
`WORLD_INTEL_HISTORY_CADENCES=source=seconds,...` override it.
-### Fixed
+### Fixed: observation history (collector BaseException)
- A collector source task that ended in a `BaseException` that is not an
`Exception` (for example a cancelled task) made the cycle raise a
`TypeError` while tallying results, after the fetches finished, so that
cycle returned no summary and recorded no history. It now counts as a
failure and is recorded as an error capture.
-### Notes
+### Known limits: observation history
- Known limits, stated in `intel_collection_health`'s `cannot_prove` and
the `history` module docs: stale data are seen only through the
fetcher's expired-cache fallback or a top-level `_stale` marker (a
@@ -765,7 +770,6 @@ source here, and no proxy is substituted for any of these measures.
- The cycle summary's `successes` still counts a source that returned
`{"error": ...}` (unchanged, pinned by an existing test); that run's
history capture is an error.
-- Tools 139 -> 143.
### Added: connections with timing offsets (Phase 29)
- `intel_lagged_connections` (CLI: `intel history connections`): Pearson
@@ -846,7 +850,7 @@ source here, and no proxy is substituted for any of these measures.
(`WORLD_INTEL_HISTORY_DAYS`), a store filled only by the collector spans
about a year, so the month grid cannot reach the 20-point floor without a
longer retention or backfilled history.
-- Tools 152 -> 153.
+- Adds 1 tool.
### Added: history backfill and more history extractors (Phase 29)
- `intel history backfill fred SERIES... [--start YYYY-MM-DD]`,
@@ -923,7 +927,7 @@ source here, and no proxy is substituted for any of these measures.
and M3 stored 0.
- FRED's terms of use speak of personal, non-commercial use of FRED data;
whether a deployment fits them is the operator's call.
-- Tools 152 -> 153; the `intel history` group gains `backfill fred|ecb`.
+- Adds 1 tool; the `intel history` group gains `backfill fred|ecb`.
### Added: news signals (ROADMAP Phase 29)
- `intel_hostility_timeline`: per UTC day, GDELT DOC 2.0 coverage of a
@@ -966,9 +970,10 @@ source here, and no proxy is substituted for any of these measures.
marked `*` (and each count from a partial column), today `~`, and
expired columns are named with their age; unmeasured change and
attention print as not measured.
-- Collector: `situations` and `top_stories` (57 sources).
+- Collector: `situations` and `top_stories` join the `news` group.
+- Adds 3 tools.
-### Changed
+### Changed: news signals (shared feed requests, GDELT spacing)
- Concurrent `fetch_news_feed` reads of the same feed set share one
request per feed. The collector starts its four news sources in one
gather, and each used to request every feed itself; measured live
@@ -991,7 +996,7 @@ source here, and no proxy is substituted for any of these measures.
of the collector's 240 s `aoi_digest` budget and 50 AOIs timed out
after 48 calls (measured 2026-10-17, every other AOI domain stubbed).
-### Fixed
+### Fixed: news signals
- RSS outage read as a slow news day (ROADMAP Phase 24.5):
`fetch_news_feed` returned `count: 0` with no marker when every feed
failed. It now reports `feeds_attempted`, `feeds_ok`, `feeds_failed` and
@@ -1226,7 +1231,23 @@ source here, and no proxy is substituted for any of these measures.
maritime data". It now shows the nine waterways' statuses, a STALE note
for a frozen feed, the outage error, and the first data gaps.
-### Tests
+### Fixed: dashboard nav-warnings and fleet panels
+- The nav-warnings panel read `navArea` and `dtg`, so Area was always '?'
+ and Issued blank. It now reads `navarea` and `issue_date`, marks a stale
+ NGA feed (`feed_stale`) STALE and a degraded one DEGRADED, still renders
+ when the payload has `error`, and lists that error and the payload's
+ `data_gaps`.
+- The fleet panel was hidden when the report had `error` and showed 0 for
+ a missing score. It now shows '?' for a null `readiness_score` and for
+ the aircraft or surge count of a component listed in
+ `unavailable_components`. When `readiness_lower_bound` is set, the score
+ and level get a leading >= and the score is never shown in green; the
+ aircraft total gets a leading >= when theaters are unavailable. The panel
+ lists the error and `data_gaps`, marks DEGRADED and names the
+ unavailable components.
+- Warn and crit values in mini boxes are now coloured.
+
+### Tests: navigational warnings and fleet
- Failing-first regression tests built on live NGA records captured
2026-10-17, and `test_maritime_honesty.py` and `test_fleet_honesty.py`
for the second review round: each finding test fails on the previous
@@ -1240,10 +1261,10 @@ source here, and no proxy is substituted for any of these measures.
short reuse of an empty answer, both lookbehinds, longitude-only tokens,
decimal minutes followed by seconds) is killed by this file.
-### Still open
-- The dashboard's nav-warnings table and fleet panel do not yet read
- `feed_stale`, `stale`, `unknown`, `readiness_lower_bound` or `UNKNOWN`,
- and the collector counts error results as successful collections.
+### Still open: navigational warnings and fleet
+- The collector cycle summary's `successes` still counts a source that
+ answered with an upstream error; it is also listed under
+ `upstream_errors`.
- Strategic posture and temporal anomalies still read a posture outage as
zero activity; posture now marks it, but they do not check.
- A naval warning that cannot be placed leaves every waterway's status
@@ -1306,7 +1327,7 @@ source here, and no proxy is substituted for any of these measures.
makes that component null in `components`, listed in
`unavailable_components` and explained in `data_gaps`, never a 0.
-### Fixed
+### Fixed: AOI inputs (earthquakes, wildfires, GDELT, geocoding, brief aviation)
- `fetch_earthquakes` and `fetch_wildfires` mark a failed fetch (`error`,
`degraded`, `reason`; per region for FIRMS, with `failed_regions` and,
when other regions answered, `partial_errors`) instead of answering a
@@ -1320,23 +1341,29 @@ source here, and no proxy is substituted for any of these measures.
- `fetch_gdelt_search`'s cache key holds a digest of every request
parameter. The old key reduced a non-Latin query to underscores, so
"Київ" and "Суми" shared one entry and one AOI was scored on the other's
- timeline. The USGS and ACLED keys now hold the result limit, so a short
- answer cached for one caller is not served to another as complete.
+ timeline.
+- `fetch_earthquakes`'s cache key now holds the result limit (ACLED's
+ change is under Fixed: tool error reporting and server fixes), so a
+ short answer cached for one caller is not served to another as complete.
- The FIRMS docstring states what the request asks for: a day range of 2
(FIRMS's two most recent days), not the last 24 hours.
- A reverse-geocoding failure no longer repeats its prefix ("Reverse
geocoding failed: Reverse geocoding unavailable: ...").
-
-### Changed
+- The AOI brief's aviation section reads the `positions` list that the
+ domestic-flights source returns. It used to read a `sampled` key the
+ source never returns, so every live brief showed 0 aircraft in the
+ area. It now counts the sampled aircraft inside the area, and reports
+ aviation as a data gap only when the fetch fails or its answer has no
+ `positions` list.
+
+### Changed: AOI escalation
- The escalation also fetches earthquakes and wildfires (convergence
inputs) and one GDELT timeline, in parallel with ACLED and military
flights; their failures are named in `data_gaps`. The brief, the change
sweep and the escalation now share one AOI scoping helper, which reads
an answer without its list (an unrecognized shape) as unknown rather
than as an empty area, and names a failed FIRMS region next to answered
- ones. The brief's aviation section reads a `sampled` list the
- domestic-flights source does not return, so it now reports that as a
- data gap where it used to show 0 aircraft.
+ ones.
- `intel aoi escalation` prints a zero-filled component as not measured,
marks lower bounds, and shows the score ceiling and `computed_from`.
- `test_aoi.py` stubs every network-bound source by default: its older
@@ -1413,7 +1440,7 @@ source here, and no proxy is substituted for any of these measures.
Content API 2 MiB, Home Office ODS 8 MiB), and the refusal names the cap.
- Frontex is not built: its only data file is an XLSX under `/assets/`,
which its robots.txt disallows (measured 2026-10-17, see ROADMAP Phase 28).
-- Tools 139 -> 141.
+- Adds 2 tools.
### Added: Kalshi and cross-venue prediction markets
- `intel_kalshi_markets`: Kalshi open markets from its public market-data
@@ -1446,7 +1473,7 @@ source here, and no proxy is substituted for any of these measures.
and refuse a value that is not a number before any request.
- CLI: `intel kalshi`, `intel prediction-compare`, `intel prediction-settled`.
- Collector: `kalshi_markets` and `prediction_compare` (Economics
- category) join the `prediction` domain. Sources 55 -> 57. Tools 139 -> 142.
+ category) join the `prediction` domain. Adds 3 tools.
### Fixed: prediction markets outage read as "no markets"
- `intel_prediction_markets` returned `{"markets": [], "count": 0}` with no
diff --git a/README.md b/README.md
index 74d34a2..cd84ddc 100644
--- a/README.md
+++ b/README.md
@@ -176,7 +176,7 @@ collector.py (daemon) ─┘
- **CircuitBreaker**: Per-source tracking. 3 consecutive failures trips for 5 minutes. Each RSS feed gets its own breaker.
- **Cache**: SQLite WAL-mode TTL cache. `get()` returns live data, `get_stale()` returns expired data for fallback.
- **VectorStore**: Qdrant + FastEmbed (BAAI/bge-small-en-v1.5, 384-dim). Async background worker queue for non-blocking storage. Enables semantic search across all accumulated intelligence.
-- **Collector**: Standalone daemon that fetches all 57 sources in parallel and populates the vector store. Run once or as a daemon (default: 5-minute interval). Includes the AOI change sweep, so a running daemon continuously watches every defined geofence.
+- **Collector**: Standalone daemon that fetches all 61 sources in parallel and populates the vector store. Run once or as a daemon (default: 5-minute interval). Includes the AOI change sweep, so a running daemon continuously watches every defined geofence.
- **Sources** (`sources/*.py`): 30+ modules, each exports `async def fetch_*(fetcher, **kwargs) -> dict`.
- **Analysis** (`analysis/*.py`): Cross-domain synthesis — signal aggregation, instability indexing, NLP, company enrichment, macro composite.
- **Config** (`config/*.py`): Curated datasets — 22 hotspots, 70+ bases, 40 ports, 24 pipelines, 24 nuclear facilities, 34 cables, 48 datacenters, 27 spaceports, 82 exchanges.
@@ -256,7 +256,7 @@ at all, `intel --help` and `intel guide --measures` included, creates
| `intel_stablecoin_status` | Stablecoin peg health (USDT, USDC, DAI, FDUSD) |
| `intel_etf_flows` | Bitcoin spot ETF prices and volumes |
| `intel_sector_heatmap` | US equity sector performance (11 SPDR ETFs) |
-| `intel_macro_signals` | 7 macro indicators (Fear & Greed, VIX, DXY, gold, 10Y, BTC) |
+| `intel_macro_signals` | 7 macro signals: Fear & Greed, Bitcoin mempool fees, DXY, VIX, gold, 10Y Treasury yield, BTC dominance |
| `intel_commodity_quotes` | Commodity futures (gold, silver, crude, natgas, grains) |
### Forex & Currency (3)
@@ -442,7 +442,7 @@ Keyless: FRED graph CSV and the ECB Data Portal. Every point carries its observa
|------|-------------|
| `intel_prediction_markets` | Polymarket prediction contracts |
| `intel_kalshi_markets` | Kalshi open markets from its public market data (no account), ranked by volume; YES implied probabilities with the venue's units stated; filter by category or series. Says which events it scanned and whether the scan was complete. Data served from an expired cache entry after a failed fetch is marked `stale` and `degraded`, with its age |
-| `intel_prediction_compare` | The same event on Kalshi and Polymarket: deterministic matching (quantities, years, end dates, negation, rate actions such as cut/raise/hold, directions such as above/below, and outcome side must agree), a `match_confidence` with reasons per pair, the price gap, the closest rejected pairs and why, and unmatched counts per venue. `match_confidence` is an ordinal score for ranking pairs, not a probability that two markets are the same event. Each side names its price basis, spread and last-trade time; a pair is flagged and listed after comparable ones when either side is not a two-sided quote midpoint or its spread is wider than 0.10 |
+| `intel_prediction_compare` | The same event on Kalshi and Polymarket: deterministic matching (quantities, years, end dates, negation, rate actions such as cut/raise/hold, directions such as above/below, and outcome side must agree), a `match_confidence` with reasons per pair, the price gap, the closest rejected pairs and why, and unmatched counts per venue. `match_confidence` is an ordinal score for ranking pairs, not a probability that two markets are the same event. Each side names its price basis, spread and last-trade time; a pair is flagged and listed after comparable ones when either side has no price, is not a two-sided quote midpoint, comes from an expired cached copy served after a failed live fetch, or has a spread wider than 0.10, when the two venues' thresholds differ at the boundary (strict on one, inclusive on the other), or when a looked-up Kalshi last trade differs from the listing's last price |
| `intel_prediction_settled` | Settled markets on both venues with the outcome, the YES price at fixed offsets before close, and a Brier score per venue and offset with sample size, distinct events, selection and exclusions. A venue without price history is not scored, and a price history served from expired cache is excluded. Reference times differ by venue (Kalshi `close_time`; Polymarket the earlier of `endDate` and `closedTime`), so the two scores are not a head-to-head comparison. Polymarket's price histories share the `polymarket` circuit breaker with `intel_prediction_markets`: three failed history calls pause every Polymarket read for the breaker's 300 s cooldown |
### Elections (1)
@@ -590,10 +590,10 @@ different, openly licensed data source; no ews code is used.
| `intel_aoi_define` | Define a named area of interest: point + radius in km (1-2000) |
| `intel_aoi_define_polygon` | Define a polygon AOI from 3-64 [lat, lon] vertices (a border region, a strait, an EEZ) |
| `intel_aoi_define_corridor` | Define a corridor AOI: 2-64 waypoints plus a width in km (a shipping lane, supply road, cable run) |
-| `intel_aoi_update` | Rename an AOI or change its center/radius in place (a rename keeps its change history) |
+| `intel_aoi_update` | Rename any AOI, or change a circle AOI's center/radius in place (a polygon or corridor can only be renamed; to change its shape, delete and redefine it). A rename keeps its change history; an actual change to center or radius resets it, because the old baseline described a different area |
| `intel_aoi_list` | List all user-defined AOIs |
| `intel_aoi_delete` | Delete a user-defined AOI by name |
-| `intel_aoi_brief` | Cited brief for an AOI: earthquakes, military flights, wildfires, conflict events, aviation, nearby infrastructure, and news mentions, all filtered to the AOI's radius |
+| `intel_aoi_brief` | Cited brief for an AOI: earthquakes, military flights, wildfires, ACLED conflict events and sampled aviation inside the AOI's exact shape (circle, polygon or corridor); nearby static infrastructure with distances in km (for polygon and corridor AOIs, point sites are refined to the shape and pipelines and cables match the bounding circle, noted in `data_gaps`); and news for the settlement and county at the AOI's center (OSM Nominatim reverse geocoding), falling back to the AOI's name, noted in `data_gaps`, when no place is found. Every item carries a [n] citation; `data_gaps` names each domain that could not be scoped |
| `intel_aoi_escalation` | Hotspot escalation scoring (same engine as the 22 built-in hotspots) applied to a user AOI |
| `intel_aoi_changes` | What entered or left an AOI since the last sweep (earthquakes, military flights, ACLED events, wildfire clusters, news); the first call sets a baseline |
| `intel_aoi_digest` | One change sweep across every AOI (or a named subset) with a combined markdown digest; a scheduler can call it on an interval |
@@ -647,7 +647,7 @@ Reads the history store only, so the sample is what the collector saved, not eac
| Tool | Description |
|------|-------------|
-| `intel_lagged_connections` | Correlation between 2 to 8 stored series (keys as `intel_series_history` lists them) on a UTC day, week or month grid, tested at every lag from `-max_lag` to `+max_lag` (default 5, at most 30, at most 1,000 tests a call). Default transform is period-over-period changes, because levels of trending series correlate spuriously; `levels` on request. Per pair: the lag with the smallest p, with Pearson r, overlap n, two-sided p from Student's t (periods treated as independent), `p_ar1` recomputed with an AR(1) effective sample size from both series' lag-1 autocorrelations, and the Benjamini-Hochberg `q` and `q_ar1` across every test in the call. `significant` means `q_ar1` <= 0.05 by default (`significant_if_independent` applies the threshold to `q`); an effective sample under 3 is reported as no evidence, and `data_gaps` names autocorrelated series and pairs where serial correlation dominates. Lag +k compares A at period t with B at t+k, so A leads B by k. Pair/lag overlaps under 30 points are listed as not tested with their n; revised points use the latest vintage; rows without `observed_at` (Yahoo quotes) are not used; every clamped input is reported, in the CLI too |
+| `intel_lagged_connections` | Correlation between 2 to 8 stored series (keys as `intel_series_history` lists them) on a UTC day, week or month grid, tested at every lag from `-max_lag` to `+max_lag` (default 5, at most 30, at most 1,000 tests a call). Default transform is period-over-period changes, because levels of trending series correlate spuriously; `levels` on request. Per pair: the lag with the smallest p, with Pearson r, overlap n, two-sided p from Student's t (periods treated as independent), `p_ar1` recomputed with an AR(1) effective sample size from both series' lag-1 autocorrelations, and the Benjamini-Hochberg `q` and `q_ar1` across every test in the call. `significant` means `q_ar1` <= 0.05 by default (`significant_if_independent` applies the threshold to `q`); an effective sample under 3 is reported as no evidence, and `data_gaps` names autocorrelated series and pairs where serial correlation dominates. Lag +k compares A at period t with B at t+k, so A leads B by k. Pair/lag overlaps under `min_overlap` points (default 30, clamped to 20..3,000; `--min-overlap` in the CLI) are listed as not tested with their n; revised points use the latest vintage; rows without `observed_at` (Yahoo quotes) are not used; every clamped input is reported, in the CLI too |
---
diff --git a/ROADMAP.md b/ROADMAP.md
index 0d26fa1..709a9c7 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -1,8 +1,8 @@
# World Intel MCP — Feature Parity Roadmap
**Benchmark**: [koala73/worldmonitor](https://github.com/koala73/worldmonitor)
-**Updated**: 2026-10-12 (0.11.0: aircraft-cohort early warning, cross-border migration)
-**Current tools**: 157 (156 intel + 1 status)
+**Updated**: 2026-10-17 (Unreleased: Phase 29 research-grade history and evidence, in progress, and US and UK border-crossing flows; 0.11.0: aircraft-cohort early warning, cross-border migration)
+**Current tools**: 160 (159 intel + 1 status)
---
@@ -16,7 +16,7 @@
---
-## 0. Current Assessment / Gap Report (2026-09-01)
+## 0. Assessment Snapshot (2026-09-01; counts as of that date)
| Area | Finding | Status | Action |
|------|---------|--------|--------|
@@ -72,6 +72,8 @@
## 1. Data Sources — Complete Inventory
+The per-section catalog below covers 119 of the 160 registered tools; most later additions are named only in their phase entries, and README.md lists every registered tool.
+
### Markets & Economics (16 tools)
| Tool | WM Equivalent | Status |
@@ -169,7 +171,7 @@
|------|---------------|--------|
| `intel_webcams` | Public webcam locations worldwide (Windy) | :white_check_mark: |
-### Analysis & Intelligence (10 tools)
+### Analysis & Intelligence (9 tools)
| Tool | WM Equivalent | Status |
|------|---------------|--------|
| `intel_risk_scores` | `get-risk-scores` | :white_check_mark: |
@@ -225,7 +227,7 @@
| `intel_news_clusters` | Jaccard similarity clustering | :white_check_mark: |
| `intel_keyword_spikes` | Welford's algorithm spike detection | :white_check_mark: |
-### Extended Geospatial (10 tools)
+### Extended Geospatial (9 tools)
| Tool | WM Equivalent | Status |
|------|---------------|--------|
| `intel_undersea_cables` | 34 cables with landing points | :white_check_mark: |
@@ -536,9 +538,8 @@ heatmaps; the excess-origins tool infers takeoffs/landings and clusters
them. Only aircraft first seen 24 h before the window count, so a fresh
install answers `warming_up` for a day.
-### Phase 28: Cross-Border Migration (+6 = 141 tools)
-`intel_migration_flows`, `intel_migration_surges`, `intel_migration_history`, `intel_net_migration`,
-`intel_us_border_encounters`, `intel_uk_small_boat_arrivals`
+### Phase 28: Cross-Border Migration (+4 = 139 tools in 0.11.0; +2 border-crossing tools Unreleased)
+`intel_migration_flows`, `intel_migration_surges`, `intel_migration_history`, `intel_net_migration`
UNHCR origin -> destination corridors (about 6,000 for 2025) with
prior-year change and country/region filters; a surge ranking by
@@ -553,7 +554,7 @@ Shipped in 0.11.0 with the dashboard corridor map, CLI commands and
collector sources. Open: near-real-time displacement (IOM DTM, HDX HAPI:
both need keys).
-Border crossings (Unreleased, `sources/border_crossings.py`): FLOWS, events
+Border crossings (Unreleased, `sources/border_crossings.py`; `intel_us_border_encounters`, `intel_uk_small_boat_arrivals`): FLOWS, events
per day, week or month, kept apart from the stocks above and never added to
or compared with them. Publisher status as measured on 2026-10-17 with an
identifying User-Agent:
@@ -591,14 +592,14 @@ dashboard.
| Wave | Feature | What it means here | Status |
|------|---------|--------------------|--------|
| 1 | Observation history store | Every collector capture saved with `observed_at` (period the data describe), `published_at` (publisher release, when known) and `collected_at` (when we saved it); unchanged payloads stored once; bounded retention; backfill for sources that serve history (FRED CSV) | :white_check_mark: Unreleased: store, three dates, dedupe, retention, body and replay size caps, and `register_extractor()` done (`history.py`; extractors for Kp, USGS magnitudes, FRED central bank rates, Yahoo quotes, and in `history_extractors.py` the liquidity board, net liquidity and World Bank net migration); points from stale-cache replays are not stored. Backfill built 2026-10-17 (`history_backfill.py`, `intel_history_backfill`, `intel history backfill fred|ecb`) for FRED graph CSV and ECB Data Portal (BSI, ILM) series, under its own sources `backfill:fred` and `backfill:ecb`; `published_at` is NULL (neither response names a release date) and values are the vintage of the backfill day. Measured live 2026-10-17: WALCL 1,244 values (2002-12-18 to 2026-10-14), RRPONTSYD 3,348 (2,833 blank cells skipped), DGS10 16,182 (721 skipped), euro area M3 560 months (1980-01 to 2026-08); a second run and a refetch stored 0 |
-| 1 | Capture history and revisions | Earlier saved copies of a source, and values a later copy revised | :white_check_mark: Unreleased (`intel_capture_history` with payload replay, `intel_revisions`); a replay names the capture that stored its body, revisions say what they checked |
+| 1 | Capture history and revisions | Earlier saved copies of a source, and values a later copy revised | :white_check_mark: Unreleased (`intel_series_history` for one series' observations with all three dates or the list of available series, `intel_capture_history` with payload replay, `intel_revisions`; CLI `intel history series|captures|revisions`); a replay names the capture that stored its body, revisions say what they checked |
| 1 | Collection health | Per-source expected cadence; overdue / failing / never-run per source, measured from the run log, not inferred from cache freshness. Says what it cannot prove | :white_check_mark: Unreleased (`intel_collection_health`, `intel history health`): a success counts only from a live capture, so a source the fetcher answers from expired cache reads `stale` and goes overdue on schedule; lost history writes are recorded and reported. Stale data that bypass the fetcher's expired-cache fallback are not seen, and health says so |
| 1 | Research guide over MCP | MCP resources (guide generated from the live registry and source health, measures glossary, "what this server will not do") and MCP prompts (worked research questions, each naming the tools it needs and the limit to respect). Server exposed no prompts or resources before | :white_check_mark: Built 2026-10-17, unreleased: 3 resources (`intel://guide`, `intel://guide/source-health`, `intel://guide/measures`), 29 prompts, `intel guide`; verified over a live stdio session |
| 1 | Hostility timeline | Per country pair or country, daily counts of threat / sanction / force / criticism coverage plus tone (`intel_hostility_timeline`); situations between and inside countries, sortable by most covered, most hostile, biggest change (`intel_situations`) | :white_check_mark: Built 2026-10-17, unreleased: `intel_hostility_timeline` (GDELT DOC 2.0 `timelinevolraw` + `timelinetone`, one call per category; failed calls, expired cached copies and missing days null; `column_status` per call; partial days judged per column) and `intel_situations` (RSS headlines, ranked by covered / hostile / change, change defined over feeds whose history spans both windows, null with `change_measured: false` when no feed does). Review fixes 2026-10-17: expired GDELT copies were shown as current counts; a day with no buckets in the judging series read as complete; "no change" was reported where nothing was compared; a GDELT 429 was retried after 1 s and then 2 s; unknown codes such as "GBR" were searched as text; a partial RSS outage was unmarked; limits below 1 misbehaved. All fixed with failing-first tests. Measured 2026-10-17: timeline modes answer (HTTP 200, `date_resolution` `hour` for `timespan=7d` and `15m` for `3d`, explicit zero buckets, `norm` = all monitored articles), but a `timespan=7d` request returned 54 hours (2026-10-15T10Z onward), and about half of calls drew 429 even 30 s apart (later probes, 16:51 to 16:53Z, 4 of 4 drew 429, so the resolution for 14 days and coverage before 2026-10-15T10Z are unmeasured; 30 days was not probed; a live MCP run at 17:00Z got 4 of 6 columns after the retry pass, one at 17:20Z got 1 of 6, consistent with the server's breaker opening after 3 failed calls, which also skips the retry pass). The fetcher now spaces every live GDELT call at least 5 s apart across the processes that share one cache DB (`shared_floor.py`), and retries a 429 no sooner than that; the timeline's retry pass stops at the first retry that fails again. Second review 2026-10-17: a shared slot more than 40 s ahead (eight processes at 5 s; it was 600 s) is a clock jump, overwritten and logged, as is an unreadable row; a process keeps its own queued slot after a cancelled wait; the slot time is taken once the write lock is held; an empty or one-letter country is refused. The AOI sweep makes one GDELT call per AOI, so the floor bounds it: against a mocked GDELT, 45 AOIs took 220 s of the collector's 240 s `aoi_digest` budget and 50 timed out after 48 calls (every other AOI domain stubbed; `analysis/aoi.py` not changed here). Artlist was not used for daily counts: 250 records sorted by date covered 15 minutes. Situations see only the 22-country entity table, whose matcher still counts "South Sudan" as Sudan and "Indian Ocean" as India (`analysis/entities.py`, not changed here) |
| 1 | Story breadth | News clusters carry a distinct-outlet count; a top-stories view ranks by how many outlets carry a story | :white_check_mark: Built 2026-10-17, unreleased: clusters gain `outlets` / `outlet_count` (sister feeds of one publisher count once); `intel_top_stories` ranks by outlet count with an attention list (countries and organizations by mention growth). Found on the way: cluster `sources` was empty in every live cluster (key mismatch, `feed_name` vs `source_name`) and RSS times were shifted by the host UTC offset; both fixed. Concurrent RSS reads now share one request per feed (a live collector news-group cycle: 119 requests for 119 feeds). Review fixes 2026-10-17: clustering runs off the event loop; attention is empty with `attention_change_measured: false` when no feed spans both windows, never "nothing grew" |
| 1 | Liquidity and flows | Fed balance sheet, Treasury General Account, reverse repo and net liquidity (FRED keyless CSV), money supply (US M2, euro area M1/M2/M3, never summed), ECB, ICI fund flows and ETF net issuance, FINRA margin statistics, BLS series; amounts kept separate from flows | :yellow_circle: Built, unreleased: 5 tools (`intel_liquidity_board`, `intel_net_liquidity`, `intel_money_supply`, `intel_fed_liquidity_series`, `intel_ecb_series`), 5 CLI commands, 2 collector sources. FRED graph CSV and ECB Data Portal live-verified 2026-10-17. The TGA term is WDTGAL (Wednesday level, USD millions): WTREGEN is a week average; the net liquidity `method` block states each term's units, conversion and how RRPONTSYD (daily, USD billions) is aligned to the Wednesday. Blocked, measured 2026-10-17, and listed in the board's `blocked` field; no proxy is substituted, so fund flows and ETF net issuance have no source: ICI (money market fund assets at /research/stats/mmf, ETF net issuance at /research/stats/etf) answers 403 Akamai "Access Denied" on every path, robots.txt included; FINRA margin statistics XLSX answers 200, but the finra.org Terms of Use (Restrictions d and e) forbid building a database from the site and data mining, scraping or harvesting tools, robots included, and the page says data feeds are not available; BLS public API v1 answers 200 without a key (CPI-U, payrolls), but api.bls.gov robots.txt is `Disallow: /` and the terms page on www.bls.gov answers 403 to this server's User-Agent, so it is not used |
| 1 | Kalshi + cross-venue markets | Kalshi public market data next to Polymarket; same-event comparison with an explicit match confidence; settled markets scored against pre-settlement prices (Brier) | :white_check_mark: Unreleased: `intel_kalshi_markets`, `intel_prediction_compare`, `intel_prediction_settled` (`sources/kalshi.py`, `sources/prediction_cross.py`, `analysis/prediction_matching.py`), CLI and 2 collector sources. Kalshi endpoints measured 2026-10-17, all HTTP 200 without an account: `/events` (nested markets), `/series` (`include_volume`), `/markets?status=settled`, `/markets/candlesticks` (batch, capped at 10,000 candles per call), `/historical/cutoff`. The `/events` `category` parameter is ignored by the API, so categories resolve through `/series?category=`, whose filter is loose too (7 of the 869 series it returned for Economics were other categories), so series are matched exactly; an unknown category answers `{"series": null}` and is reported as a gap, not an outage. The exchange-wide settled listing is intraday sports (1,000 rows covered about 40 minutes; none open 24h), so settled samples default to the Economics category's top series. Polymarket Gamma caps a page at 100 rows. Matching is deliberately conservative: live 2026-10-17 it matched the Fed 25 bps hike/cut pairs for October and December and rejected 25 vs 50+ bps, 2026 vs 2027, and the Fed-hold pair ("no change" vs "Hike 0bps": a known false negative). Team and person aliases are not resolved, so most sports pairs stay unmatched. Kalshi requests are spaced 0.2 s apart in-process: the two collector sources scanning the same series at once drew HTTP 429, and at 0.1 s a 26-request category scan still drew one (none at 0.2 s in one live run). Settled samples are the most recently settled markets and cluster in time (one football match supplied 11 of 25 Polymarket markets in a live run), so a Brier score describes its sample, not a venue's skill. Every number a caller passes has a range stated in the input schema (at most 25 Kalshi series or pages per scan), so one call cannot fan out into unbounded upstream requests. Review round (2026-10-17): expired-cache serves are marked on every Kalshi read and on Polymarket's settled listing and histories, and a stale history is not scored; matching adds rate-action and direction gates, keeps signs and ordinals, reads a $ amount as an amount, and its candidate blocking is complete against a brute-force scan in tests; compare carries each side's price basis, spread and Kalshi last-trade time (public `/markets/trades`, HTTP 200 without an account, measured 2026-10-17) and ranks flagged pairs after comparable ones; Polymarket is scored against the earlier of endDate and closedTime (on 20 closed markets measured 2026-10-17, closedTime came 2.7 to 5.5 h after endDate for football and 164 h before it for one early resolution, and umaEndDate equalled closedTime in all 20, so no outcome-known time is published); Kalshi pacing applies only on a cache miss. The shared `polymarket` circuit breaker (three failed history calls pause all Polymarket reads for 300 s) is documented, not changed. Re-review round (2026-10-17): matching also rejects different days of the same month, disjoint months, different clock times, quantity unit or kind mismatches, reordered quantities, opposite wording and a name on one venue only (adversarial set: 42 of 46 cases right, the 4 misses are same-event pairs rejected); a side priced from an expired copy is flagged and not comparable; Kalshi last-trade lookups read the trade price, skip expired listings, stop after 10 lookups or 10 s and name each null time; matching runs in a worker thread (2,127 Kalshi x 2,000 Polymarket in 3.4 s on mac-studio, scratch benchmark) |
-| 1 | News vs market reaction | Companies and countries named in story clusters mapped to tickers / country indices; same-day move against a benchmark | :yellow_circle: Built 2026-10-17, unreleased; 7 test expectations await correction at merge: `intel_news_market_reaction` and `intel news-reaction`. Company rows: stock, benchmark (SPY, or the exchange country's index) and excess return on the story's session; country rows: index return with a trailing z-score. Session rule in the exchange's timezone (after close = next session; weekends and holidays read from the listing's own bars); a last bar Yahoo has not finalized is pending. Open: `^TASI` and `^TA125` (Saudi and Israel in the country-index table) return 404 on Yahoo, so those benchmarks are data gaps; story times inherit `sources/news.py`'s RSS timestamp offset until that is fixed |
+| 1 | News vs market reaction | Companies and countries named in story clusters mapped to tickers / country indices; same-day move against a benchmark | :yellow_circle: Built 2026-10-17, unreleased; 7 test expectations await correction at merge: `intel_news_market_reaction` and `intel news-reaction`. Company rows: stock, benchmark (SPY, or the exchange country's index) and excess return on the story's session; country rows: index return with a trailing z-score. Session rule in the exchange's timezone (after close = next session; weekends and holidays read from the listing's own bars); a last bar Yahoo has not finalized is pending. Open: `^TASI` and `^TA125` (Saudi and Israel in the country-index table) return 404 on Yahoo, so those benchmarks are data gaps |
| 2 | Connections with timing offsets | Correlation between retained series over a shared sample, tested at leads and lags, with minimum sample size and false-discovery control; states that it does not prove causation | :white_check_mark: Built 2026-10-17, unreleased: `intel_lagged_connections` and `intel history connections`. Pearson r on a UTC day, week or month grid at every lag from -max_lag to +max_lag (default 5, cap 30, at most 1,000 tests a call), period-over-period changes by default, p from Student's t (regularized incomplete beta, standard library), Benjamini-Hochberg adjustment across the call (default 0.05) with significance decided on the AR(1)-adjusted `q_ar1` (independent random walks in levels: 91 of 100 seeds flagged by the unadjusted q, none by `q_ar1`), "no evidence" below an effective sample of 3, a 30-point minimum with every untested pair and lag listed with its n, latest vintage, rows without `observed_at` refused with the reason, every clamp reported in the MCP response and the CLI, and a `cannot_prove` list. p-values match scipy to 3.3e-13 relative error. Verified 2026-10-17 over a live MCP stdio session and the CLI on four real FRED series loaded into an isolated store. Not done: rank correlation, prewhitening |
| 2 | Day timeline | What every retained source recorded for a given day, by observation date or collection date | :white_check_mark: Built 2026-10-17, unreleased: `intel_day_timeline` and `intel history day` (`history_timeline.py`; read-only `mode=ro` connection, never fetches). by=collected: per-source run-log state (changed, unchanged, answered, degraded, failed, not_attempted, collector_did_not_run, before_run_log, never_run, unknown_past_retention; collector ran, did_not_run, unknown_past_retention or not_recorded) with attempts, status counts, reasons, extractor failures, a partial_failure flag and payload changes; by=observed: date and UTC-instant values on the day, month and year values listed apart as period values, undated observations counted and excluded. Retention is stated per record kind for the day. Measured 2026-10-17: two live collector cycles of 6 sources four minutes apart (12 captures: ok 8, degraded 2, error 2; every payload in the second cycle matched the first) read back over a live MCP stdio session and the CLI; 2026-10-16 in the same store reads collector `not_recorded` (context `before_first_capture`) with sources `before_run_log` or `never_run` (re-measured 2026-10-18T02:16Z after the review fixes, MCP stdio and CLI). On a synthetic store (475,200 captures, 1.75 million observations, 10,982 series) one call took 24 to 46 ms (measured before the review fixes, not re-measured), and no statement full-scans a history table under SQLite 3.45.3, 3.53.4 and 3.54.0. Not measured: a live store with weeks of history |
| 3 | Dashboard views | Liquidity board, situations, top stories, collection health panels | :white_check_mark: Built 2026-10-17, unreleased: four tabs behind RESEARCH (key `p`), each loaded from its own route that calls the tool's function (`/api/liquidity-board`, `/api/situations`, `/api/top-stories`, and `/api/collection-health` on the dashboard cache's history store); a failed call renders as UNAVAILABLE or REFRESH FAILED with the function's reason, never as an empty list. Checked 2026-10-17 in headless Chrome with real upstreams (9 liquidity rows; 20 situations and 9 stories over 95 of 119 feeds; collection health after one collector cycle: 38 ok, 5 degraded, 16 failing), with FRED and ECB, every RSS feed and the history store made unreachable (each tab showed the outage and its reason), and with markup injected into a headline (shown as text). Situations and top stories take 5 to 15 s per call |
@@ -653,7 +654,7 @@ fail-quietly bugs below were fixed in the same-day follow-up
| UNHCR outage returned all-zero global totals with no error/degraded key ("zero refugees worldwide") | `sources/displacement.py` | fail-reads-as-success | :white_check_mark: Fixed (#22) |
| A climate zone whose fetch failed was silently omitted; full outage yielded `{"zones": {}}` with no marker | `sources/climate.py` | silent degradation | :white_check_mark: Fixed (#23) |
| "Resolved: Major outage" classified as an active critical incident; a dead provider feed still listed as checked | `sources/service_status.py` | misclassification | :white_check_mark: Fixed (#24) |
-| Naval warnings apply to all 9 waterways identically (no proximity/NAVAREA filter); `total_nearby` computed but never emitted | `sources/intelligence.py` vessel snapshot | precision | :white_check_mark: Fixed (Unreleased): a warning counts only at waterways within 300 km of a position its full text states; one that states no readable position counts nowhere (crediting positionless NAVAREA IV and XII warnings to Panama was measured wrong 5 of 5 times on the live feed and rejected) and, if naval, is listed in `unplaced_naval_warnings` with a reason; the rule is in `matching_rule`; `total_nearby` emitted; an NGA outage reads `unknown` and a frozen feed `stale`, not `clear` or a current threat level; a feed whose currency cannot be checked (no parseable issue date, or no active warnings at all) reads `unknown` and the fleet leaves it out of its score; a position match cannot start right after a letter ('20-O3-44N' used to read 3.73N), which changed no position in 3,643 real warnings. Open: an unplaced naval warning leaves waterway statuses unchanged and is named only in `data_gaps` |
+| Naval warnings apply to all 9 waterways identically (no proximity/NAVAREA filter); `total_nearby` computed but never emitted | `sources/intelligence.py` vessel snapshot | precision | :white_check_mark: Fixed (Unreleased): a warning counts only at waterways within 300 km of a position its full text states; one that states no readable position counts nowhere (crediting positionless NAVAREA IV and XII warnings to Panama was measured wrong 5 of 5 times on the live feed and rejected) and, if naval, is listed in `unplaced_naval_warnings` with a reason; the rule is in `matching_rule`; `total_nearby` emitted; an NGA outage reads `unknown` and a frozen feed `stale`, not `clear` or a current threat level; a feed whose currency cannot be checked (no parseable issue date, or no active warnings at all) reads `unknown` and the fleet leaves it out of its score; a position match cannot start right after a letter ('20-O3-44N' used to read 3.73N), which changed no position in 3,643 real warnings. Open: an unplaced naval warning leaves every waterway's status unchanged; it is named only in `unplaced_naval_warnings` and `data_gaps` |
| Country/company/leader entity matching was substring-based ("usa" inside "thousand", "hamas" inside "Bahamas") | `analysis/entities.py` | false positives | :white_check_mark: Fixed in 0.5.0 (word-boundary alternations, measured faster) |
| Category keywords matched substrings ("airstrike" bumped severity via "strike"; "denied" fired "ied") | `analysis/classifier.py` | false positives | :white_check_mark: Fixed in 0.5.0 (boundary-anchored stems, per-keyword overrides) |
| Silent-empty degradation without a marker on RSS/API failure | `sources/prediction.py` (documented as intended), `sources/maritime.py`, `sources/news.py` RSS path, `sources/fleet.py` `_safe` wrapper, `sources/military.py` military flights and theater posture | silent degradation | :yellow_circle: `sources/news.py` RSS path fixed 2026-10-17 (every call reports `feeds_attempted` / `feeds_ok` / `feeds_failed` / `feeds_stale`; no feed answering live is `error` + `degraded` + `reason: all_feeds_failed`, including the warm-cache case where failed feeds came back as expired copies and counted as healthy; failing-first regression tests). Since the 2026-10-17 review: fewer than half of the feeds answering live is `degraded` + `reason: partial_feeds_failed` with no error (measured that day: 95 of 119 answered, the rest permanent 404 / 403 / 410 plus one timeout), passed through by trending keywords, situations, top stories and the dossier; links are kept only when http(s) and titles are capped at 500 characters. `maritime.py`, `fleet.py`, military flights and theater posture fixed (Unreleased): outages carry `error`/`degraded`/`reason` and `data_gaps`; failed or stale fleet components are named in `unavailable_components`, and fleet readiness reads `UNKNOWN` with none available and is marked a lower bound with some missing; military flights with no live source carries `error`/`degraded`/`reason` and `data_gaps` beside `source: "none"`, including the warm-cache case, where an expired adsb.lol or OpenSky copy used to come back as current flights (it now goes under `stale_copy` with its age, after OpenSky is tried live); posture names the theaters no flight source answered for (`stale_theaters` for those only a copy answered) and does not cache them; a malformed `bbox` is `invalid_bbox` instead of the whole world; `intel posture` prints those theaters as unknown with the gaps; an empty NGA answer is degraded, not a quiet sea; nav warnings flag (`feed_stale`) a feed whose newest warning is over 14 days old (NGA's API holds nothing issued after 10 May 2024, measured 2026-10-17). `sources/prediction.py` fixed, unreleased: an outage or unexpected response adds `error` + `degraded`, an expired-cache serve adds `stale`; keys unchanged; regression tests written failing-first (3 failed on the old module). The fetcher's stale fallback marks only dict payloads, so other text and XML sources can serve expired copies unmarked Open: the dashboard and collector do not yet read the new markers; strategic posture and temporal anomalies still read a posture outage as zero activity |
@@ -691,8 +692,8 @@ suite, and a live MCP stdio session.
| Category | Current | Notes |
|----------|---------|-------|
-| Total MCP tools | 157 | 156 intelligence tools + `intel_status` |
-| Tool parity | 157 / 157 | `TOOLS` and handlers are aligned at import time; README's per-tool reference is pinned to the registry by `test_readme_documents_every_registered_tool` |
+| Total MCP tools | 160 | 159 intelligence tools + `intel_status` |
+| Tool parity | 160 / 160 | `TOOLS` and handlers are aligned at import time; README's per-tool reference is pinned to the registry by `test_readme_documents_every_registered_tool` |
| Static datasets | 18 | Bases, ports, pipelines, nuclear, cables, datacenters, spaceports, minerals, exchanges, trade routes, cloud regions, financial centers |
| RSS feeds | 119 | 24 categories |
| Tests in repo | 991 | 973 non-smoke tests + 18 live smoke tests (measured 2026-10-12: `pytest -m 'not smoke'` -> 973 passed, 18 deselected); full suite requires `.[dev]` |