fix(occupancy): PR #70 review follow-ups — live staff-baseline floor, operator communication, dwell edge cases #77
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#77
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?
Accepted P2 (needs a decision)
n_staff_target; withk = 1.35and in = out = 1000 during retail hours the live tile shows 180), and cuts off the negative tail in the live tile and hourly series. The proportional model and its aggregates have a zero floor; ADR 0006 was corrected to say so. Decide: keep the staff baseline as a deliberate live-presentation choice (and label it), or move the live tile to the zero-floor model as #32 intended.Behaviour (P3)
/dwell/daypartsdefaults tofacility_now().date(): between midnight and the reset it returns the calendar day that hasn't opened, not the business day (use #69's business-day resolution).[0.00005, 0.005]can still draw a narrow band while the state isUNCALIBRATED. Consider keeping the guardrail-derived variance until the maturity threshold.occupancy_definition_cutover_at: dwell is recomputed, not stored, so past days are recomputed under the new definition. A "don't compare across the cutover" annotation would hide valid comparisons. Clarify the column's meaning (and ADR 0006's "rewrite historical aggregates: rejected").0 min · 10:00–22:00before opening and on closed days.Operator-facing (P3)
occupancy_definition_cutover_at,dwell_kpi_labelandis_uncalibratedaren't surfaced anywhere yet (the Statistics Deck, PR #20, is the intended consumer).initial_exit_multiplier.Code quality (P3)
analytics_service.get_dwell_dayparts_asyncre-implements Little's Law dwell math that lives in the occupancy service (deferred since round 2).occupancy_service.py~1699).Acceptance criteria
Related: #36, #32, ADR 0006, PR #70, PR #20, #73, #74.
Triage decisions (2026-09-24)
Note (2026-09-24): PR #20 is closed because the statistics deck is being redesigned from scratch. References to PR #20 / RFC-ARCH-2026-004 here now mean the future deck. The deck-side items stay valid, but the redesign will decide where they are shown. The backend contracts a deck should consume are listed in PR #20, comment 1835.