#260 · Ticket past SLA · Hawthorn Yard
done Thu 22:15 · ticket 5363
Ledger row
policy v2
policy v2
- The call
- POST /tickets/5363/dispatch vendor=60
- Action, tier
- dispatch_vendor, tier 0
- Decided by
- rules: No vendor at half the urgent SLA; dispatch the best panel vendor.
- Controller
- Allowed: dispatch_vendor is tier 0 (just do it); within budget (0 of 6 actions at building 4 this hour).authorityconditionscooldownbudget
- Definition
- ticket_sla_breach v1
- At stake
- urgent ticket, 719 min to the SLA's end
- Outcome
- Ticket 5363: vendor 60 dispatched.
- Undo
- Cancel the dispatch.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"assigned_at": null,
"building": "Hawthorn Yard",
"building_id": 4,
"candidate_vendor_ids": [
60,
73,
95
],
"category": "electrical_fault",
"currency": null,
"due_at": "2026-10-30 10:14:20.997587",
"manager_id": 8,
"minutes_to_due": 719,
"mode": "no_vendor",
"opened_at": "2026-10-29 10:14:20.997587",
"priority": "urgent",
"source": "phone",
"stake_note": "urgent ticket, 719 min to the SLA's end",
"started_at": "2026-10-29T22:14:20.997587",
"summary": "Electrical fault",
"ticket_id": 5363,
"trade": "electrical",
"unit_id": 283,
"vendor_id": null,
"vendor_no_shows_30d": 0
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27037,
"ticket_id": 5363,
"type": "vendor_dispatched"
}
],
"tickets": [
{
"assigned_at": "2026-10-29T22:15:00",
"attended_at": "2026-10-30T02:43:26.514723",
"closed_at": "2026-10-30T05:38:19.901449",
"completed_at": "2026-10-30T04:38:19.901449",
"id": 5363,
"status": "assigned",
"vendor_id": 60
}
]
},
"before": {
"tickets": [
{
"assigned_at": "2026-10-30T22:07:51.736675",
"attended_at": "2026-10-31T00:04:41.060872",
"closed_at": "2026-11-01T00:09:29.538277",
"completed_at": "2026-10-31T02:35:26.438652",
"id": 5363,
"status": "closed",
"vendor_id": 76
}
]
},
"endpoint": "POST /tickets/5363/dispatch vendor=60",
"note": "Ticket 5363: vendor 60 dispatched.",
"ok": true,
"rollback_fn_name": "undo_dispatch_vendor"
}Arguments
{
"ticket_id": 5363,
"vendor_id": 60
}