#242 · Water alarm, no ticket · Quarry Tower
done Tue 21:15 · alarm 1871
Ledger row
policy v2
policy v2
- The call
- POST /tickets source=alarm alarm=1871
- Action, tier
- open_ticket_from_alarm, tier 0
- Decided by
- rules: Leak alarm live 12 minutes with no ticket; open an emergency ticket now.
- Controller
- Allowed: open_ticket_from_alarm is tier 0 (just do it); within budget (0 of 6 actions at building 79 this hour).authorityconditionscooldownbudget
- Definition
- water_alarm_no_ticket v1
- At stake
- water running 12 min with nobody sent
- Outcome
- Emergency ticket 5652 opened from alarm 1871, vendor 26 dispatched.
- Undo
- Close the ticket as raised in error and cancel the dispatch.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"alarm_id": 1871,
"amount_at_risk": null,
"asset_id": 2397,
"building": "Quarry Tower",
"building_id": 79,
"currency": null,
"kind": "water_leak",
"minutes_active": 12,
"raised_at": "2026-10-27 21:03:01.841017",
"sensor": "Home 6D",
"stake_note": "water running 12 min with nobody sent",
"started_at": "2026-10-27T21:13:01.841017",
"unit_id": 5583
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27022,
"ticket_id": 5652,
"type": "created"
},
{
"id": 27023,
"ticket_id": 5652,
"type": "vendor_dispatched"
}
],
"tickets": [
{
"alarm_id": 1871,
"assigned_at": "2026-10-27T21:15:00",
"attended_at": "2026-10-27T23:48:45.092786",
"building_id": 79,
"category": "leak",
"closed_at": "2026-10-28T02:47:56.359113",
"completed_at": "2026-10-28T01:47:56.359113",
"due_at": "2026-10-28T01:15:00",
"duplicate_of": null,
"id": 5652,
"opened_at": "2026-10-27T21:15:00",
"priority": "emergency",
"reported_by": "keys operator",
"source": "alarm",
"status": "assigned",
"summary": "Water alarm: leak detected",
"trade": "plumbing",
"unit_id": 5583,
"vendor_id": 26
}
]
},
"before": {
"tickets": []
},
"endpoint": "POST /tickets source=alarm alarm=1871",
"note": "Emergency ticket 5652 opened from alarm 1871, vendor 26 dispatched.",
"ok": true,
"rollback_fn_name": "undo_open_ticket_from_alarm"
}Arguments
{
"alarm_id": 1871
}