#384 · Water alarm, no ticket · Garnet House
done Mon 11:43 · alarm 1997
Ledger row
policy v2
policy v2
- The call
- POST /tickets source=alarm alarm=1997
- 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 120 this hour).authorityconditionscooldownbudget
- Definition
- water_alarm_no_ticket v1
- At stake
- water running 11 min with nobody sent
- Outcome
- Emergency ticket 5661 opened from alarm 1997, 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": 1997,
"amount_at_risk": null,
"asset_id": 3603,
"building": "Garnet House",
"building_id": 120,
"currency": null,
"kind": "water_leak",
"minutes_active": 11,
"raised_at": "2026-11-02 11:32:42.408327",
"sensor": "Home 11G",
"stake_note": "water running 11 min with nobody sent",
"started_at": "2026-11-02T11:42:42.408327",
"unit_id": 7935
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27071,
"ticket_id": 5661,
"type": "created"
},
{
"id": 27072,
"ticket_id": 5661,
"type": "vendor_dispatched"
}
],
"tickets": [
{
"alarm_id": 1997,
"assigned_at": "2026-11-02T11:43:00",
"attended_at": "2026-11-02T14:01:11.568961",
"building_id": 120,
"category": "leak",
"closed_at": "2026-11-02T18:05:41.527334",
"completed_at": "2026-11-02T17:05:41.527334",
"due_at": "2026-11-02T15:43:00",
"duplicate_of": null,
"id": 5661,
"opened_at": "2026-11-02T11:43:00",
"priority": "emergency",
"reported_by": "keys operator",
"source": "alarm",
"status": "assigned",
"summary": "Water alarm: leak detected",
"trade": "plumbing",
"unit_id": 7935,
"vendor_id": 34
},
{
"closed_at": "2026-11-02T13:01:12.655216",
"duplicate_of": 5661,
"id": 5601,
"status": "merged"
}
]
},
"before": {
"tickets": [
{
"closed_at": null,
"duplicate_of": null,
"id": 5601,
"status": "completed"
}
]
},
"endpoint": "POST /tickets source=alarm alarm=1997",
"note": "Emergency ticket 5661 opened from alarm 1997, vendor 34 dispatched.",
"ok": true,
"rollback_fn_name": "undo_open_ticket_from_alarm"
}Arguments
{
"alarm_id": 1997
}