Review 2026-12-02 Phase 3: Alarm pipeline correctness #254
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 3 — Alarm pipeline correctness (p1)
PollOncereports a failure (it is not a no-op) and does not reset the failure counter. Failover then engages, and "recovered" is reported only after a successful poll./hubs/alarmsconnections get the current active snapshot and provider status on connect.ActiveAckedrow.InAlarmupdates (it holds state and marks the provider degraded). Buffer an earlyAckeduntilInAlarmarrives at initial sync.Alarms:ReconcileIntervalSeconds(> 0) and put an upper bound onEvents:ReplayRetentionSeconds.null); add a load-time check so anullbrowse scope can't fall through.Verify:
GatewayAlarmMonitor*,AlarmsHub*, and Worker.Tests alarm classes on windev. Live check of failover (3.1) and subtag quality (3.5) on the dev rig; the rig's alarms are driven by object logic, so use its simulator.High findings filed separately:
Source:
code-reviews/2026-12-02-perf-bugs/README.mdandcode-reviews/2026-12-02-perf-bugs/PLAN.md(commitf200bda6on local branchdocs/review-2026-12-02-perf-bugs, not yet pushed). Reviewed at54367e74.Merged to
mainat68043411(pushed 2026-12-03). Gateway suite 1610 passed / 0 failed (macOS); windev worker CI 836 passed / 0 failed on that SHA.All rows 3.1–3.8 done. Deviations: 3.6 failover-edge watch-list refresh stays inline but capped at 10 s (ordering test) with a deploy-time cache;
ReconcileIntervalSecondsvalidated ≥ 1. Live rig check for 3.1/3.5 not run (object-driven alarms). Pre-existing flake:LiveClearMatchingReconcileClearRepair_IsSuppressed(~1/10 on the base too).