#266 · Ticket past SLA · Heron Works
done Fri 15:55 · ticket 5381
Ledger row
policy v2
policy v2
- The call
- POST /tickets/5381/dispatch vendor=185 (replaces)
- Action, tier
- reassign_vendor, tier 1
- Decided by
- rules: Vendor 183 did not attend inside the SLA; send the next panel vendor and tell the building manager.
- Controller
- Allowed: reassign_vendor is tier 1 (do it and tell); within budget (0 of 6 actions at building 14 this hour).authorityconditionscooldownbudget
- Definition
- ticket_sla_breach v1
- At stake
- urgent ticket, -5 min to the SLA's end
- Outcome
- Ticket 5381: vendor 185 dispatched.
- Undo
- Put the first vendor back on the ticket.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"assigned_at": "2026-10-29 17:00:42.581028",
"building": "Heron Works",
"building_id": 14,
"candidate_vendor_ids": [
185,
181,
184
],
"category": "window",
"currency": null,
"due_at": "2026-10-30 15:50:59.653755",
"manager_id": 9,
"minutes_to_due": -5,
"mode": "no_show",
"opened_at": "2026-10-29 15:50:59.653755",
"priority": "urgent",
"source": "tenant_app",
"stake_note": "urgent ticket, -5 min to the SLA's end",
"started_at": "2026-10-30T15:50:59.653755",
"summary": "Window will not close",
"ticket_id": 5381,
"trade": "glazing",
"unit_id": 776,
"vendor_id": 183,
"vendor_no_shows_30d": 1
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27043,
"ticket_id": 5381,
"type": "vendor_reassigned"
}
],
"tickets": [
{
"assigned_at": "2026-10-30T15:55:00",
"attended_at": "2026-10-30T16:35:17.662140",
"closed_at": "2026-10-30T19:31:43.296752",
"completed_at": "2026-10-30T18:31:43.296752",
"id": 5381,
"status": "assigned",
"vendor_id": 185
}
]
},
"before": {
"tickets": [
{
"assigned_at": "2026-10-29T17:00:42.581028",
"attended_at": "2026-10-30T21:35:50.559529",
"closed_at": null,
"completed_at": null,
"id": 5381,
"status": "in_progress",
"vendor_id": 183
}
]
},
"endpoint": "POST /tickets/5381/dispatch vendor=185 (replaces)",
"note": "Ticket 5381: vendor 185 dispatched.",
"notified": {
"message_id": 45,
"to": [
"building manager"
]
},
"ok": true,
"rollback_fn_name": "undo_reassign_vendor"
}Arguments
{
"ticket_id": 5381,
"vendor_id": 185
}