#257 · Ticket past SLA · Meridian Court
done Thu 11:50 · ticket 5350
Ledger row
policy v2
policy v2
- The call
- POST /tickets/5350/dispatch vendor=37 (replaces)
- Action, tier
- reassign_vendor, tier 1
- Decided by
- rules: Vendor 32 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 36 this hour).authorityconditionscooldownbudget
- Definition
- ticket_sla_breach v1
- At stake
- emergency ticket, -3 min to the SLA's end
- Outcome
- Ticket 5350: vendor 37 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 08:46:06.947494",
"building": "Meridian Court",
"building_id": 36,
"candidate_vendor_ids": [
37,
3,
52
],
"category": "leak",
"currency": null,
"due_at": "2026-10-29 11:47:44.869973",
"manager_id": 12,
"minutes_to_due": -3,
"mode": "no_show",
"opened_at": "2026-10-29 07:47:44.869973",
"priority": "emergency",
"source": "tenant_app",
"stake_note": "emergency ticket, -3 min to the SLA's end",
"started_at": "2026-10-29T11:47:44.869973",
"summary": "Water leaking",
"ticket_id": 5350,
"trade": "plumbing",
"unit_id": 2460,
"vendor_id": 32,
"vendor_no_shows_30d": 1
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27034,
"ticket_id": 5350,
"type": "vendor_reassigned"
}
],
"tickets": [
{
"assigned_at": "2026-10-29T11:50:00",
"attended_at": "2026-10-29T13:15:25.431379",
"closed_at": "2026-10-29T15:34:44.291378",
"completed_at": "2026-10-29T14:34:44.291378",
"id": 5350,
"status": "assigned",
"vendor_id": 37
}
]
},
"before": {
"tickets": [
{
"assigned_at": "2026-10-29T08:46:06.947494",
"attended_at": "2026-10-31T05:05:55.885069",
"closed_at": "2026-10-31T21:09:51.586167",
"completed_at": "2026-10-31T08:54:19.761719",
"id": 5350,
"status": "closed",
"vendor_id": 32
}
]
},
"endpoint": "POST /tickets/5350/dispatch vendor=37 (replaces)",
"note": "Ticket 5350: vendor 37 dispatched.",
"notified": {
"message_id": 43,
"to": [
"building manager"
]
},
"ok": true,
"rollback_fn_name": "undo_reassign_vendor"
}Arguments
{
"ticket_id": 5350,
"vendor_id": 37
}