Keysproperty operations Corbelstone Residential

#360 · Ticket past SLA · Saltire Place

done Mon 09:29 · ticket 5523

Ledger row
policy v2
The call
POST /tickets/5523/dispatch vendor=166 (replaces)
Action, tier
reassign_vendor, tier 1
Decided by
rules: Vendor 168 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 34 this hour).
authority
conditions
cooldown
budget
Definition
ticket_sla_breach v1
At stake
urgent ticket, -1 min to the SLA's end
Outcome
Ticket 5523: vendor 166 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-11-01 18:34:06.066521",
  "building": "Saltire Place",
  "building_id": 34,
  "candidate_vendor_ids": [
    166,
    169,
    173
  ],
  "category": "roof_gutter",
  "currency": null,
  "due_at": "2026-11-02 09:28:52.160268",
  "manager_id": 7,
  "minutes_to_due": -1,
  "mode": "no_show",
  "opened_at": "2026-11-01 09:28:52.160268",
  "priority": "urgent",
  "source": "tenant_app",
  "stake_note": "urgent ticket, -1 min to the SLA's end",
  "started_at": "2026-11-02T09:28:52.160268",
  "summary": "Gutter overflowing",
  "ticket_id": 5523,
  "trade": "roofing",
  "unit_id": null,
  "vendor_id": 168,
  "vendor_no_shows_30d": 1
}

Before and after

{
  "after": {
    "ticket_events": [
      {
        "id": 27070,
        "ticket_id": 5523,
        "type": "vendor_reassigned"
      }
    ],
    "tickets": [
      {
        "assigned_at": "2026-11-02T09:29:00",
        "attended_at": "2026-11-02T10:19:52.914821",
        "closed_at": "2026-11-02T14:49:14.180457",
        "completed_at": "2026-11-02T13:49:14.180457",
        "id": 5523,
        "status": "assigned",
        "vendor_id": 166
      }
    ]
  },
  "before": {
    "tickets": [
      {
        "assigned_at": "2026-11-01T18:34:06.066521",
        "attended_at": null,
        "closed_at": null,
        "completed_at": null,
        "id": 5523,
        "status": "assigned",
        "vendor_id": 168
      }
    ]
  },
  "endpoint": "POST /tickets/5523/dispatch vendor=166 (replaces)",
  "note": "Ticket 5523: vendor 166 dispatched.",
  "notified": {
    "message_id": 54,
    "to": [
      "building manager"
    ]
  },
  "ok": true,
  "rollback_fn_name": "undo_reassign_vendor"
}

Arguments

{
  "ticket_id": 5523,
  "vendor_id": 166
}