feat(calibration): notify devs when EWMA k hits the guardrail clamp #50
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#50
Loading…
Reference in a new issue
No description provided.
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?
Problem (low priority)
The EWMA calibration clamps the exit multiplier
kto the guardrail[0.90, 1.35](occupancy_service.py:753, 941). When a legitimately-computed empiricalklands outside that band and gets clamped, nothing tells anyone — the clamp silently absorbs it. A persistent clamp-hit is a signal that this site's true baseline differs from the guardrail band (the band is currently biased to the primary mall, see #36), which the devs would want to know for a new/foreign deployment.Suggested behaviour
kfalls outside[0.90, 1.35], record a clamp-hit event (cycle id, rawk, clampedk, direction) and surface it — dev-facing log at minimum, optionally an admin-panel indicator.Priority
Low. Not blocking any deck KPI; it's an operability/observability improvement for multi-site use.
Acceptance criteria
koutside[0.90, 1.35]produces a recorded clamp-hit event with raw and clamped values.Surfaced during the grilling session on #36.
Triage resolution — 2026-09-23
This resolution supersedes conflicting original acceptance criteria.
The canonical operational exit-multiplier guardrail is [0.90, 1.35].
The [0.80, 1.30] whole-cycle ratio trust bounds are a separate concept.
This issue monitors actual clipping of a proposed smoothed EWMA multiplier;
an empirical ratio outside the operational band alone is not a clamp hit.
Keep this work low priority. Deliver durable diagnostic records and logs;
an admin-panel indicator is outside the initial scope. Repeated clipping
prompts investigation and does not prove the site's guardrail is wrong.
Acceptance:
ratio, pre-clamp EWMA value, applied multiplier and lower/upper bound hit.
the calibration mathematics, guardrail or trust-rule thresholds.
calibrated business cycles hit the same bound.
streak. A hit at the opposite bound starts a new streak.
hits remain recorded without repeating the escalation warning.
recompute the streak without duplicating previously emitted warnings.
from an actual clamp, and cover threshold, reset, direction changes,
reprocessing and historical corrections.
feat(calibration): notify devs when EWMA k hits the guardrail clamp (low priority)to feat(calibration): notify devs when EWMA k hits the guardrail clamp