Keysproperty operations Corbelstone Residential

#221 · Inspection overdue · Cinder Point

done Tue 08:15 · inspection 519

Ledger row
policy v2
The call
POST /inspections/519/booking
Action, tier
book_inspection, tier 0
Decided by
rules: emergency lighting 3 days overdue and not booked; book the next slot.
Controller
Allowed: book_inspection is tier 0 (just do it); within budget (30 of 40 back-office actions this minute). (waited 15 min for the portfolio rate limit)
authority
conditions
cooldown
budget
Definition
inspection_overdue v1
At stake
emergency lighting 3 days overdue: the building is out of compliance
Outcome
Inspection 519 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": "Cinder Point",
  "building_id": 29,
  "currency": null,
  "days_overdue": 3,
  "due_at": "2026-10-24 00:00:00",
  "firm": "Hoeker Fire & Safety",
  "inspection_id": 519,
  "kind": "emergency_lighting",
  "stake_note": "emergency lighting 3 days overdue: the building is out of compliance",
  "started_at": "2026-10-24T00:00:00",
  "vendor_id": 290
}

Before and after

{
  "after": {
    "inspections": [
      {
        "booked_at": "2026-10-27T08:15:00",
        "booked_for": "2026-10-29T09:00:00",
        "done_at": null,
        "id": 519,
        "result": null
      }
    ]
  },
  "before": {
    "inspections": [
      {
        "booked_at": null,
        "booked_for": null,
        "done_at": null,
        "id": 519,
        "result": null
      }
    ]
  },
  "endpoint": "POST /inspections/519/booking",
  "note": "Inspection 519 booked for Thu 29 Oct 09:00.",
  "ok": true,
  "rollback_fn_name": "undo_book_inspection"
}

Arguments

{
  "inspection_id": 519
}