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>
82 lines
No EOL
2.2 KiB
JSON
82 lines
No EOL
2.2 KiB
JSON
{
|
|
"envelope": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTR14951767488044001",
|
|
"source": "central.echo6.co",
|
|
"type": "central.incident.tomtom_incidents.v1",
|
|
"time": "2026-05-27T14:05:30+00:00",
|
|
"datacontenttype": "application/json",
|
|
"centralschemaversion": "1.0",
|
|
"centralcategory": "incident.tomtom_incidents",
|
|
"centralseverity": 1,
|
|
"specversion": "1.0",
|
|
"data": {
|
|
"id": "ID:tomtom:TTI-4ee2bdba-b112-4223-894d-2b10d1a81de0-TTR14951767488044001",
|
|
"adapter": "tomtom_incidents",
|
|
"category": "incident.tomtom_incidents",
|
|
"time": "2026-05-27T14:05:30Z",
|
|
"expires": null,
|
|
"severity": 1,
|
|
"geo": {
|
|
"centroid": [
|
|
-116.0401029084,
|
|
43.3074604053
|
|
],
|
|
"bbox": null,
|
|
"regions": [
|
|
"US-ID"
|
|
],
|
|
"primary_region": "US-ID",
|
|
"geometry": {
|
|
"type": "LineString",
|
|
"coordinates": [
|
|
[
|
|
-116.0401029084,
|
|
43.3074604053
|
|
],
|
|
[
|
|
-116.0422030781,
|
|
43.30674159
|
|
],
|
|
[
|
|
-116.0451803301,
|
|
43.3054997305
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"data": {
|
|
"description": "Roadworks",
|
|
"event_code": 701,
|
|
"from": "East Monroe Avenue",
|
|
"to": "E Humvee Lane",
|
|
"magnitude_of_delay": 0,
|
|
"icon_category": 9,
|
|
"length": 465.4730178013,
|
|
"delay": null,
|
|
"road_numbers": [],
|
|
"start_time": "2026-05-27T14:05:30Z",
|
|
"end_time": null,
|
|
"time_validity": "present",
|
|
"state_code": "ID",
|
|
"bbox_name": "treasure_valley_ext",
|
|
"latitude": 43.3074604053,
|
|
"longitude": -116.0401029084,
|
|
"_enriched": {
|
|
"geocoder": {
|
|
"name": null,
|
|
"city": null,
|
|
"county": null,
|
|
"state": null,
|
|
"country": null,
|
|
"postal_code": null,
|
|
"timezone": "America/Boise",
|
|
"landclass": null,
|
|
"elevation_m": 956.5390625
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"subject": "central.traffic.incident.id",
|
|
"captured_epoch": 1783206527
|
|
} |