#355 · Ticket past SLA · Birch Works
done Mon 08:24 · ticket 5456
Ledger row
policy v2
policy v2
- The call
- POST /tickets/5456/dispatch vendor=37
- Action, tier
- dispatch_vendor, tier 0
- Decided by
- rules: No vendor at half the routine SLA; dispatch the best panel vendor.
- Controller
- Allowed: dispatch_vendor is tier 0 (just do it); within budget (0 of 6 actions at building 50 this hour).authorityconditionscooldownbudget
- Definition
- ticket_sla_breach v1
- At stake
- routine ticket, 3600 min to the SLA's end
- Outcome
- Ticket 5456: vendor 37 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": "Birch Works",
"building_id": 50,
"candidate_vendor_ids": [
37,
3,
52
],
"category": "blocked_drain",
"currency": null,
"due_at": "2026-11-04 20:24:19.486365",
"manager_id": 4,
"minutes_to_due": 3600,
"mode": "no_vendor",
"opened_at": "2026-10-30 20:24:19.486365",
"priority": "routine",
"source": "tenant_app",
"stake_note": "routine ticket, 3600 min to the SLA's end",
"started_at": "2026-11-02T08:24:19.486365",
"summary": "Drain blocked",
"ticket_id": 5456,
"trade": "plumbing",
"unit_id": 3620,
"vendor_id": null,
"vendor_no_shows_30d": 0
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27069,
"ticket_id": 5456,
"type": "vendor_dispatched"
}
],
"tickets": [
{
"assigned_at": "2026-11-02T08:24:30",
"attended_at": "2026-11-03T18:49:42.614035",
"closed_at": "2026-11-03T23:29:32.876536",
"completed_at": "2026-11-03T22:29:32.876536",
"id": 5456,
"status": "assigned",
"vendor_id": 37
}
]
},
"before": {
"tickets": [
{
"assigned_at": null,
"attended_at": null,
"closed_at": null,
"completed_at": null,
"id": 5456,
"status": "new",
"vendor_id": null
}
]
},
"endpoint": "POST /tickets/5456/dispatch vendor=37",
"note": "Ticket 5456: vendor 37 dispatched.",
"ok": true,
"rollback_fn_name": "undo_dispatch_vendor"
}Arguments
{
"ticket_id": 5456,
"vendor_id": 37
}