#254 · Inspection overdue · Ivywood Court
done Thu 08:00 · inspection 540
Ledger row
policy v2
policy v2
- The call
- POST /inspections/540/booking
- Action, tier
- book_inspection, tier 0
- Decided by
- rules: lift certificate 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
- lift certificate 0 days overdue: the building is out of compliance
- Outcome
- Inspection 540 booked for Fri 30 Oct 09:00.
- Undo
- Cancel the booking.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"building": "Ivywood Court",
"building_id": 20,
"currency": null,
"days_overdue": 0,
"due_at": "2026-10-29 00:00:00",
"firm": "Hoeker Fire & Safety",
"inspection_id": 540,
"kind": "lift_certificate",
"stake_note": "lift certificate 0 days overdue: the building is out of compliance",
"started_at": "2026-10-29T00:00:00",
"vendor_id": 290
}Before and after
{
"after": {
"inspections": [
{
"booked_at": "2026-10-29T08:00:00",
"booked_for": "2026-10-30T09:00:00",
"done_at": null,
"id": 540,
"result": null
}
]
},
"before": {
"inspections": [
{
"booked_at": null,
"booked_for": null,
"done_at": null,
"id": 540,
"result": null
}
]
},
"endpoint": "POST /inspections/540/booking",
"note": "Inspection 540 booked for Fri 30 Oct 09:00.",
"ok": true,
"rollback_fn_name": "undo_book_inspection"
}Arguments
{
"inspection_id": 540
}