front-integrations/src
Adam Moussa d06f5bd2f2
fix(sla-monitor): count only business hours in SLA elapsed-time calc
_business_minutes_elapsed clamped each weekday span to midnight instead
of BH_END, and never applied BH_START, so overnight hours (17:00-08:00)
were counted as business time. BH_START/BH_END were defined but unused
in the calculation. A ticket opened Fri 16:00 and evaluated Mon 10:00
scored 1080 min instead of the correct 180 min (6x overcount), flipping
a tier-1 breach into a false tier-2 page.

Clamp each weekday to the [BH_START, BH_END) window and only accrue the
overlap with [since, now); weekends remain excluded. Holidays are still
unhandled (pre-existing, separate gap).

Found by the daily scanner (agentic, CWE-440); proof-or-kill confirmed.
2026-07-13 13:16:30 -04:00
..
sla_monitor fix(sla-monitor): count only business hours in SLA elapsed-time calc 2026-07-13 13:16:30 -04:00
user_sync build(deps): bump the minor-and-patch group across 1 directory with 2 updates (#22) 2026-07-08 21:06:24 +00:00