#220 · Inspection overdue · Fenwick Mansions
done Tue 08:15 · inspection 518
Ledger row
policy v2
policy v2
- The call
- POST /inspections/518/booking
- Action, tier
- book_inspection, tier 0
- Decided by
- rules: legionella 4 days overdue and not booked; book the next slot.
- Controller
- Allowed: book_inspection is tier 0 (just do it); within budget (29 of 40 back-office actions this minute). (waited 15 min for the portfolio rate limit)authorityconditionscooldownbudget
- Definition
- inspection_overdue v1
- At stake
- legionella 4 days overdue: the building is out of compliance
- Outcome
- Inspection 518 booked for Thu 29 Oct 09:00.
- Undo
- Cancel the booking.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"building": "Fenwick Mansions",
"building_id": 118,
"currency": null,
"days_overdue": 4,
"due_at": "2026-10-23 00:00:00",
"firm": "Jansma & Sons Compliance",
"inspection_id": 518,
"kind": "legionella",
"stake_note": "legionella 4 days overdue: the building is out of compliance",
"started_at": "2026-10-23T00:00:00",
"vendor_id": 295
}Before and after
{
"after": {
"inspections": [
{
"booked_at": "2026-10-27T08:15:00",
"booked_for": "2026-10-29T09:00:00",
"done_at": null,
"id": 518,
"result": null
}
]
},
"before": {
"inspections": [
{
"booked_at": null,
"booked_for": null,
"done_at": null,
"id": 518,
"result": null
}
]
},
"endpoint": "POST /inspections/518/booking",
"note": "Inspection 518 booked for Thu 29 Oct 09:00.",
"ok": true,
"rollback_fn_name": "undo_book_inspection"
}Arguments
{
"inspection_id": 518
}