Files
Abhinav Raut 6c02431719 evaluate SLA synchronously on first reply, resolve and reopen
Met/breached timestamps were only stamped by the sweep tick, so a
"first response due soon" warning could go out after the agent had
already replied, and report averages measured tick time instead of
reply time.

Add EvaluateConversationSLA which judges the pending applied SLA right
away and always recomputes next_sla_deadline_at, so the conversation
package makes one call instead of pairing evaluate with a separate
recompute. ApplySLA reuses it for its pre-swap judgement. The sweep
loop stays as the breach detector for silent conversations and as the
retry net when the sync call fails.
2026-08-21 04:04:56 +05:30
..