Keysproperty operations Corbelstone Residential

#348 · Ticket past SLA · Thistle Place

done Sun 08:10 · ticket 5224

Ledger row
policy v2
The call
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).
authority
conditions
cooldown
budget
Definition
ticket_sla_breach v1
At stake
routine ticket, -4 min to the SLA's end
Outcome
Ticket 5224: vendor 280 dispatched.
Undo
Put the first vendor back on the ticket.

Undo

Nothing to undo from here: done.

What happened next

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": {
    "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
      }
    ]
  },
  "before": {
    "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
      }
    ]
  },
  "endpoint": "POST /tickets/5224/dispatch vendor=280 (replaces)",
  "note": "Ticket 5224: vendor 280 dispatched.",
  "notified": {
    "message_id": 47,
    "to": [
      "building manager"
    ]
  },
  "ok": true,
  "rollback_fn_name": "undo_reassign_vendor"
}

Arguments

{
  "ticket_id": 5224,
  "vendor_id": 280
}