Ingestion with health
Each feed polls on its own interval. Every poll ends as a success (zero items is normal) or a named failure:
timeout, connection, http_<code>, parse,
publish, internal. NWS uses ETag conditional requests; 429 and 5xx retry with backoff
that honours Retry-After. Quiet sources are told apart from broken ones.
One validated schema
Every source maps to schema version 2. Anything that fails validation is dead-lettered with its Kafka offset,
never stored. Units are requested explicitly and checked (km/h, mm, °C). Provenance records which fields came
from the source, which were inferred and how.
Location with stated confidence
Source point, source area, geocoded high or medium, ambiguous, or unresolved. Headlines are located only
from places they name, through the US Census Gazetteer. The outlet's market can choose between same-named
places but never supplies a location. Ambiguous names stay off the map.
Real geometry
NWS zone polygons are fetched once, simplified with Douglas-Peucker to about 50 m and cached. "Which warnings
covered this point" is exact point-in-polygon with hole support, not a centroid comparison. Point events get an
H3 cell (resolution 7) for correlation.
Deterministic correlation
Same event id, then CAP references for NWS updates and alternate ids for USGS, then Open-Meteo series, then
roadway reports in the same or neighbouring H3 cell within ±180 minutes, rejected when they name different roads
or opposite directions. Two outlets on one crash make it corroborated.
Incident lifecycle
open → updated → cleared, with separate reasons: source expired, source
withdrawn, not re-observed, observation window elapsed, reported reopened. None of them claims the hazard
physically ended. A cleared incident reopens when new, unexpired evidence arrives.
Durable and replayable
Kafka keeps what the sources said, not SAURON's interpretation, so improved mappers can be replayed over old
data. Offsets are committed only after storage, and writes are idempotent through content-hash versioning.
Replaying into a fresh store gives an identical result.
Dashboard
Plotly Dash with incidents, map, source events, analytics and system health tabs. Filters for time, state,
category, US state, severity and location quality. Leaflet map with markers, clusters or heatmap over USGS and
OpenStreetMap basemaps; no WebGL needed. Light and dark themes, CSV export, per-incident reports.
Read-only JSON API
Incidents with filters, bounding box and keyset pagination; incident detail with every piece of evidence and
its state history; NWS alerts covering a point during a time window; /healthz and
/readyz with per-feed status.
Observability
Prometheus metrics for poll outcomes, response times, rejects and filter reasons, duplicates suppressed,
geocoder outcomes, dead letters, consumer lag and publication-to-available latency. Alert rules never fire on
zero events. A Grafana dashboard is provisioned automatically. Logs are JSON lines.
Security and privacy
Binds to loopback by default and refuses a public address without a password or API token. Credentials are
compared in constant time; the container runs unprivileged. Event-level data only: person-level contact
enrichment was removed, and follow-up headlines, the ones that name victims, are filtered out.
Evaluation tooling
Hand-labeled development and held-out headline sets, with code hashes recorded before the holdout was viewed.
Scripts for geocoding evaluation, throughput benchmarking and migrating the original pipeline's output with
verified backups.