From dea86883db2ba4bc1e6951fdb38965cfc4088e88 Mon Sep 17 00:00:00 2001 From: "Matt Johnson (via Claude)" Date: Sun, 7 Jun 2026 08:20:22 +0000 Subject: [PATCH] fix(wfigs): set all fire broadcasts to immediate severity Fire events are already change-detected by the wfigs handler so the grouper coalescing window adds no value and causes commit callbacks to be lost when events are replaced. Setting severity to immediate unconditionally bypasses the grouper entirely. Co-Authored-By: Claude Opus 4.6 --- meshai/central/wfigs_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshai/central/wfigs_handler.py b/meshai/central/wfigs_handler.py index a138f77..6523cb9 100644 --- a/meshai/central/wfigs_handler.py +++ b/meshai/central/wfigs_handler.py @@ -152,7 +152,7 @@ def handle_wfigs(normalized: dict, envelope: dict, subject: str, data["category"] = "wildfire_declared" # v0.6-3c: severity override for fire broadcasts if isinstance(data, dict): - data["_severity_override"] = "immediate" if (acres and acres > 1000) or contained_pct == 0 else "priority" + data["_severity_override"] = "immediate" _attach_commit_handles(data, irwin_id=irwin_id, acres=acres, contained_pct=contained_pct, event_log_row_id=log_id) @@ -175,7 +175,7 @@ def handle_wfigs(normalized: dict, envelope: dict, subject: str, data["category"] = "wildfire_declared" # v0.6-3c: severity override for fire broadcasts if isinstance(data, dict): - data["_severity_override"] = "immediate" if (acres and acres > 1000) or contained_pct == 0 else "priority" + data["_severity_override"] = "immediate" _attach_commit_handles(data, irwin_id=irwin_id, acres=acres, contained_pct=contained_pct, event_log_row_id=log_id) @@ -219,7 +219,7 @@ def handle_wfigs(normalized: dict, envelope: dict, subject: str, last_bcast_contained=last_bcast_contained) # v0.6-3c: severity override for fire updates if isinstance(data, dict): - data["_severity_override"] = "immediate" if (acres and acres > 1000) or contained_pct == 0 else "priority" + data["_severity_override"] = "immediate" _attach_commit_handles(data, irwin_id=irwin_id, acres=acres, contained_pct=contained_pct, event_log_row_id=log_id)