#263 · Inspection overdue · Lantern Court
done Fri 08:00 · inspection 547
Ledger row
policy v2
policy v2
- The call
- POST /inspections/547/booking
- Action, tier
- book_inspection, tier 0
- Decided by
- rules: emergency lighting 0 days overdue and not booked; book the next slot.
- Controller
- Allowed: book_inspection is tier 0 (just do it); within budget (0 of 40 back-office actions this minute).authorityconditionscooldownbudget
- Definition
- inspection_overdue v1
- At stake
- emergency lighting 0 days overdue: the building is out of compliance
- Outcome
- Inspection 547 booked for Mon 02 Nov 09:00.
- Undo
- Cancel the booking.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"building": "Lantern Court",
"building_id": 53,
"currency": null,
"days_overdue": 0,
"due_at": "2026-10-30 00:00:00",
"firm": "Hoveer Compliance",
"inspection_id": 547,
"kind": "emergency_lighting",
"stake_note": "emergency lighting 0 days overdue: the building is out of compliance",
"started_at": "2026-10-30T00:00:00",
"vendor_id": 299
}Before and after
{
"after": {
"inspections": [
{
"booked_at": "2026-10-30T08:00:00",
"booked_for": "2026-11-02T09:00:00",
"done_at": null,
"id": 547,
"result": null
}
]
},
"before": {
"inspections": [
{
"booked_at": null,
"booked_for": null,
"done_at": null,
"id": 547,
"result": null
}
]
},
"endpoint": "POST /inspections/547/booking",
"note": "Inspection 547 booked for Mon 02 Nov 09:00.",
"ok": true,
"rollback_fn_name": "undo_book_inspection"
}Arguments
{
"inspection_id": 547
}