fix(incident): correct mile_marker key from _enrichment to _enriched

The enrichment pipeline writes to d._enriched, not d._enrichment.
Fix both _parse_state_511_incident and _parse_itd_511_incident.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson (via Claude) 2026-06-08 05:43:49 +00:00
commit 15c414f255

View file

@ -385,7 +385,7 @@ def _parse_state_511_incident(envelope: dict, category_raw: str, now: int) -> Op
"cause": d.get("cause"),
"description": d.get("description"),
"comment": d.get("comment"),
"mile_marker": (d.get("_enrichment") or {}).get("mile_marker", {}).get("value"),
"mile_marker": (d.get("_enriched") or {}).get("mile_marker", {}).get("value"),
}
@ -462,7 +462,7 @@ def _parse_itd_511_incident(envelope: dict, category_raw: str, now: int) -> Opti
"cause": d.get("cause"),
"description": d.get("description"),
"comment": d.get("comment"),
"mile_marker": (d.get("_enrichment") or {}).get("mile_marker", {}).get("value"),
"mile_marker": (d.get("_enriched") or {}).get("mile_marker", {}).get("value"),
}