Central - data hub spine. Adapters -> NATS/JetStream -> archive.
  • Python 88.6%
  • HTML 9.4%
  • CSS 1.2%
  • Shell 0.6%
  • PLpgSQL 0.2%
Find a file
zvx-echo6 47a5c2b60e v0.10.3: rip out state_511_atis adapter (superseded by itd_511 v0.10.0; Castle Rock legacy shape EOL per sister-site discovery)
Removes both Castle Rock-backed adapters: state_511_atis (incidents/closures/road
work) AND state_511_atis_cameras (telemetry). Same upstream dependency, same
redundancy now that itd_511 + itd_511_cameras (v0.10.0) cover Idaho via the
official ITD REST API. The sister-site discovery confirmed no other Castle Rock
customer still exposes the legacy /map/mapIcons/ + /List/GetData/ shape these
adapters consumed (modern Castle Rock customers run an auth-gated SPA product).

What goes:
  - src/central/adapters/state_511_atis.py + state_511_atis_cameras.py
  - tests/test_state_511_atis.py + test_state_511_atis_cameras.py
  - 4 GUI partials under src/central/gui/templates/_event_{rows,summaries}/
  - 7 fixtures under tests/fixtures/state_511_atis_*
  - test_gui_adapter_edit.py::test_state_511_atis_no_bbox_map (imported the
    deleted module)
  - 2 _SAMPLE_INNER + 1 _EXPECTED_SUBJECT entries in test_events_feed_frontend.py
  - state_511_atis_cameras from _TELEMETRY list in test_telemetry_separation.py
  - 2 doc subsections in docs/CONSUMER-INTEGRATION.md §6
  - state_511_atis + state_511_atis_cameras entries from ADAPTER_GROUPS

What stays:
  - public.events rows from the deleted adapters (preserved as historical
    record per Matt; archive will not re-publish these ids since the supervisor
    no longer polls the adapters).
  - CENTRAL_TRAFFIC stream (wzdx, tomtom_*, itd_511 still publish to it).

Added: sql/migrations/032_remove_state_511_atis_adapters.sql -- idempotent
DELETE on config.adapters for both adapter names.

Added: tests/test_consumer_doc.py::test_castle_rock_legacy_adapters_remain_removed
regression guard against accidental re-introduction by a future revert.

Test suite: 996 passed / 1 skipped under both zvx and central (was 1029 / 1
on main; net -33 = 17 from deleted test files + 16 from auto-shrunk
parametrizations over discover_adapters() and _EXPECTED_SUBJECT).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-06 18:17:18 +00:00
docs v0.10.3: rip out state_511_atis adapter (superseded by itd_511 v0.10.0; Castle Rock legacy shape EOL per sister-site discovery) 2026-06-06 18:17:18 +00:00
etc-templates scaffold: initial repository structure 2026-05-15 19:16:24 +00:00
scripts scaffold: initial repository structure 2026-05-15 19:16:24 +00:00
sql v0.10.3: rip out state_511_atis adapter (superseded by itd_511 v0.10.0; Castle Rock legacy shape EOL per sister-site discovery) 2026-06-06 18:17:18 +00:00
src/central v0.10.3: rip out state_511_atis adapter (superseded by itd_511 v0.10.0; Castle Rock legacy shape EOL per sister-site discovery) 2026-06-06 18:17:18 +00:00
systemd feat(gui): add auth core, setup gate, and first-run operator creation 2026-05-17 05:30:49 +00:00
tests v0.10.3: rip out state_511_atis adapter (superseded by itd_511 v0.10.0; Castle Rock legacy shape EOL per sister-site discovery) 2026-06-06 18:17:18 +00:00
.gitattributes chore: normalize line endings to LF 2026-05-16 22:26:12 +00:00
.gitignore feat(gui): add auth core, setup gate, and first-run operator creation 2026-05-17 05:30:49 +00:00
.python-version foundation: models, adapter ABC, config, CE wire, schema 2026-05-15 21:08:56 +00:00
CHANGELOG.md docs: add v0.3.0 changelog entry and network bindings reference (#29) 2026-05-18 14:26:09 -06:00
LICENSE scaffold: initial repository structure 2026-05-15 19:16:24 +00:00
pyproject.toml v0.10.0: ITD 511 official API adapter (events + advisories + cameras) (#85) 2026-06-03 22:36:26 -06:00
README.md docs: add test database setup, restore geom to test fixture 2026-05-17 18:26:48 +00:00
uv.lock v0.10.0: ITD 511 official API adapter (events + advisories + cameras) (#85) 2026-06-03 22:36:26 -06:00

Central

Central is the data hub spine for the infrastructure. Adapters normalize upstream sources into a canonical event shape, publish CloudEvents to NATS/JetStream, and archive to TimescaleDB for historical query. Single-LXC deployment.

Status

Phase 0 — scaffold. Not yet operational.

Architecture

  • Python 3.12 (uv-managed)
  • NATS + JetStream for live event bus
  • TimescaleDB + PostGIS for archive and geospatial query
  • One supervisor process managing adapter lifecycle
  • One archive consumer process persisting events to TimescaleDB
  • Both processes systemd-managed

Testing

See docs/test-database.md for test database setup.

License

MIT. See LICENSE.