#349 · Ticket past SLA · Thistle Place
reverted Sun 08:35 · by Joris K. (maintenance lead, scripted) · ticket 5224
Ledger row
policy v2
policy v2
- The call
- undo: POST /tickets/5224/dispatch vendor=280 (replaces)
- Action, tier
- reassign_vendor, tier 1
- Decided by
- rules: Vendor 283 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 69 this hour).authorityconditionscooldownbudget
- Definition
- ticket_sla_breach v1
- At stake
- routine ticket, -4 min to the SLA's end
- Outcome
- the first vendor rang in and is on the way; a first miss on a routine job does not lose them the job [scripted on-call responses (synthetic)]
- Undo
- Put the first vendor back on the ticket.
Evidence
{
"amount_at_risk": null,
"assigned_at": "2026-10-29 00:25:55.067532",
"building": "Thistle Place",
"building_id": 69,
"candidate_vendor_ids": [
280,
276,
281
],
"category": "pests",
"currency": null,
"due_at": "2026-11-01 08:06:39.610608",
"manager_id": 14,
"minutes_to_due": -4,
"mode": "no_show",
"opened_at": "2026-10-27 08:06:39.610608",
"priority": "routine",
"source": "tenant_app",
"stake_note": "routine ticket, -4 min to the SLA's end",
"started_at": "2026-11-01T08:06:39.610608",
"summary": "Pests seen",
"ticket_id": 5224,
"trade": "pest",
"unit_id": 4920,
"vendor_id": 283,
"vendor_no_shows_30d": 1
}Before and after
{
"after": {
"restored_to": {
"tickets": [
{
"assigned_at": "2026-10-29T00:25:55.067532",
"attended_at": null,
"closed_at": null,
"completed_at": null,
"id": 5224,
"status": "assigned",
"vendor_id": 283
}
]
},
"undone": [
{
"assigned_at": "2026-10-29T00:25:55.067532",
"attended_at": null,
"closed_at": null,
"completed_at": null,
"id": 5224,
"restored": "tickets",
"status": "assigned",
"vendor_id": 283
},
{
"compensated": "ticket_events",
"id": 27065,
"ticket_id": 5224,
"type": "vendor_reassigned_reverted"
}
]
},
"before": {
"ticket_events": [
{
"id": 27064,
"ticket_id": 5224,
"type": "vendor_reassigned"
}
],
"tickets": [
{
"assigned_at": "2026-11-01T08:10:00",
"attended_at": "2026-11-01T08:43:13.767947",
"closed_at": "2026-11-01T13:05:25.852778",
"completed_at": "2026-11-01T12:05:25.852778",
"id": 5224,
"status": "assigned",
"vendor_id": 280
}
]
},
"endpoint": "undo: POST /tickets/5224/dispatch vendor=280 (replaces)",
"note": "Rolled back 2 change(s).",
"ok": true,
"rollback_fn_name": null
}Arguments
{
"ticket_id": 5224,
"vendor_id": 280
}