#418 · Water alarm, no ticket · Wharf Court
done Mon 18:46 · alarm 2007
Ledger row
policy v2
policy v2
- The call
- POST /tickets source=alarm alarm=2007
- Action, tier
- open_ticket_from_alarm, tier 0
- Decided by
- rules: Leak alarm live 11 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 106 this hour).authorityconditionscooldownbudget
- Definition
- water_alarm_no_ticket v1
- At stake
- water running 11 min with nobody sent
- Outcome
- Emergency ticket 5668 opened from alarm 2007, vendor 34 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": 2007,
"amount_at_risk": null,
"asset_id": 2912,
"building": "Wharf Court",
"building_id": 106,
"currency": null,
"kind": "water_leak",
"minutes_active": 11,
"raised_at": "2026-11-02 18:35:42.625459",
"sensor": "Home 0009",
"stake_note": "water running 11 min with nobody sent",
"started_at": "2026-11-02T18:45:42.625459",
"unit_id": 7032
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27090,
"ticket_id": 5668,
"type": "created"
},
{
"id": 27091,
"ticket_id": 5668,
"type": "vendor_dispatched"
}
],
"tickets": [
{
"alarm_id": 2007,
"assigned_at": "2026-11-02T18:46:00",
"attended_at": "2026-11-02T19:46:01.618644",
"building_id": 106,
"category": "leak",
"closed_at": "2026-11-02T23:05:52.129527",
"completed_at": "2026-11-02T22:05:52.129527",
"due_at": "2026-11-02T22:46:00",
"duplicate_of": null,
"id": 5668,
"opened_at": "2026-11-02T18:46:00",
"priority": "emergency",
"reported_by": "keys operator",
"source": "alarm",
"status": "assigned",
"summary": "Water alarm: leak detected",
"trade": "plumbing",
"unit_id": 7032,
"vendor_id": 34
}
]
},
"before": {
"tickets": []
},
"endpoint": "POST /tickets source=alarm alarm=2007",
"note": "Emergency ticket 5668 opened from alarm 2007, vendor 34 dispatched.",
"ok": true,
"rollback_fn_name": "undo_open_ticket_from_alarm"
}Arguments
{
"alarm_id": 2007
}