mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-08-26 17:31:34 +00:00
Behavior-preserving relocation (byte-identical goldens), behind the staged-
cutover gate.
- formatters/nws.py + gating/nws.py: move _render + all CAP parsing (HTML-strip,
_parse_nws_description, motion/hail/wind, county scoping, short-expiry) and the
gating (3h re-alert window, Update/Cancel/Expire tombstone, first-sighting,
warning->immediate severity). Native env/nws.py stops truncating description +
carries parameters/eventCode/certainty/msgType/references/geocoder. Registers
weather_warning + weather_statement.
- formatters/incident.py + gating/incident.py: absorb the incident _render AND
the work_zone renderer, reconciling the two sub_type vocabularies; traffic_events
change-detection gating. Native env/{traffic,roads511}.py emit canonical data.
Registers work_zone/road_incident/road_closure/traffic_congestion.
- formatters/_anchor.py: shared town/distance/bearing resolver (consolidates WFIGS
_location_anchor + incident nearest_town; WFIGS fire reuses in Phase 3).
- Fixtures captured: nws x37, traffic x46.
Tier-a byte-identical goldens for all fixtures. Tests: +~150; 0 new failures
(34 baseline, 1539 passed).
Co-authored-by: Matt Johnson <mj@k7zvx.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
140 lines
No EOL
3.5 KiB
JSON
140 lines
No EOL
3.5 KiB
JSON
{
|
|
"envelope": {
|
|
"id": "ID:tomtom:TTI-b6f6bc37-311b-4087-aa8a-6b7f6113bb59-TTL15306674364011000",
|
|
"source": "central.echo6.co",
|
|
"type": "central.incident.tomtom_incidents.v1",
|
|
"time": "2026-07-04T22:44:00+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "incident.tomtom_incidents",
|
|
"centralseverity": 3,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "ID:tomtom:TTI-b6f6bc37-311b-4087-aa8a-6b7f6113bb59-TTL15306674364011000",
|
|
"adapter": "tomtom_incidents",
|
|
"category": "incident.tomtom_incidents",
|
|
"time": "2026-07-04T22:44:00Z",
|
|
"expires": "2026-07-04T23:06:30Z",
|
|
"severity": 3,
|
|
"geo": {
|
|
"centroid": [
|
|
-114.9407834501,
|
|
42.9236671751
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[
|
|
-114.9407834501,
|
|
42.9236671751
|
|
],
|
|
[
|
|
-114.9410422833,
|
|
42.9236671751
|
|
],
|
|
[
|
|
-114.9413225741,
|
|
42.9236671751
|
|
],
|
|
[
|
|
-114.9417235644,
|
|
42.9236685254
|
|
],
|
|
[
|
|
-114.94239814,
|
|
42.923672515
|
|
],
|
|
[
|
|
-114.9424477608,
|
|
42.923672515
|
|
],
|
|
[
|
|
-114.9424558075,
|
|
42.923672515
|
|
],
|
|
[
|
|
-114.9424893351,
|
|
42.923672515
|
|
],
|
|
[
|
|
-114.942681113,
|
|
42.9236738653
|
|
],
|
|
[
|
|
-114.9428500922,
|
|
42.9236738653
|
|
],
|
|
[
|
|
-114.9437392445,
|
|
42.9236805554
|
|
],
|
|
[
|
|
-114.9441858323,
|
|
42.9236873069
|
|
],
|
|
[
|
|
-114.9443454237,
|
|
42.9236885959
|
|
],
|
|
[
|
|
-114.944361517,
|
|
42.9236899462
|
|
],
|
|
[
|
|
-114.944669971,
|
|
42.9236939971
|
|
],
|
|
[
|
|
-114.9450146349,
|
|
42.9236926468
|
|
],
|
|
[
|
|
-114.9451822729,
|
|
42.9236912965
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"data": {
|
|
"description": "Stationary traffic",
|
|
"event_code": 101,
|
|
"from": "Highway 30 / South 750 East",
|
|
"to": "US Highway 30 / 2nd Avenue",
|
|
"magnitude_of_delay": 3,
|
|
"icon_category": 6,
|
|
"length": 358.1977801718,
|
|
"delay": 154,
|
|
"road_numbers": [
|
|
"I-84 Business"
|
|
],
|
|
"start_time": "2026-07-04T22:44:00Z",
|
|
"end_time": "2026-07-04T23:06:30Z",
|
|
"time_validity": "present",
|
|
"state_code": "ID",
|
|
"bbox_name": "mountain_home_corridor",
|
|
"latitude": 42.9236671751,
|
|
"longitude": -114.9407834501,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": "Love's",
|
|
"city": "Bliss",
|
|
"county": "Gooding",
|
|
"state": "Idaho",
|
|
"country": "United States",
|
|
"postal_code": "83314",
|
|
"timezone": "America/Boise",
|
|
"landclass": null,
|
|
"elevation_m": 993.83984375
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"subject": "central.traffic.incident.id",
|
|
"captured_epoch": 1783206522
|
|
} |