`ReleasePathTest.onExternalEnd_overdue_emitsReleaseOverdueEvent` had failed since 2026-08-07. Every changelog entry since then called it a "pre-existing unrelated failure":
```
Wanted but not invoked: publisher.publish(<Capturing argument: ChronosEvent>);
Actually, there were zero interactions with this mock.
```
## Root cause
Commit `8c6be7f` ("added updatedAt for reservations") removed the overdue check from
`ReservationLifecycleServiceImpl.onExternalEnd`. The commit message and the changelog entry for that commit don't mention it. The design (Task 9.3, R20.15 / R8.4) still has
`onExternalEnd` publish `ReservationReleaseOverdue` when the release signal arrives after `bookedEnd`.
Task 12.1 notes that `ReconciliationJob` fires the same alert too, so consumers must be idempotent.
`ReconciliationJob.alertOverdueReleases()` does not replace it. It runs every 5 minutes and only sees
reservations that are still ACTIVE/RELEASING. If the orchestrator confirms the release before the next scan, a late
release was never reported.
## Change
| File | Change |
|---|---|
| `app/ReservationLifecycleServiceImpl.java` | Restored the `bookedEnd`-passed check in `onExternalEnd`: publishes `ChronosEvent.ReservationReleaseOverdue` and logs a warning |
No test changes. The existing `onExternalEnd_overdue_*` and `onExternalEnd_notOverdue_*` tests already describe the intended behaviour.
Changes for .changelog/index.md: 1 added line, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -87,3 +87,4 @@
| 2026-08-31 | [A `RESERVED` resource must still accept future reservations](20260831_1614_reserved-status-is-bookable.md) | A `CLIP_TO_CALENDAR` availability search returned future windows, but the matching hold for the same span was rejected `NOT_FEASIBLE / STATUS_NOT_BOOKABLE` because the resource's **live**`resourceStatus` was `RESERVED` — held by another active reservation *right now*. A discrete resource stays `RESERVED` for the whole provisioning/active/releasing span of one reservation, so this blocked every future booking while the resource was in use. Root cause: `ResourceStatus.isBookable()` returned true only for `AVAILABLE`, and its four status-gate callers (hold, firm/promote, assessment, availability search) rejected everything else. The requirements' blocking set is `SUSPENDED`/`ALARM`/`STANDBY`/`UNKNOWN` only — R18 pairs `AVAILABLE`**and**`RESERVED` as the healthy statuses that *clear* a block — and overlap with the in-flight reservation is already the conflict engine's job (`loadOverlapping` over `ACTIVE_STATES`), so the gate was both wrong and redundant. Fix is one method: `isBookable()` now returns true for `AVAILABLE` and `RESERVED`; no call-site changes, all four paths pick it up. +5 tests (unit for hold/firm/assessment/enum, Docker-gated `CalendarSpanRestIT` span-while-reserved); `developer-guide.md` + `CLAUDE.md` "Status blocking" clarified. 971 tests, 1 pre-existing unrelated failure (`ReleasePathTest.onExternalEnd_overdue_emitsReleaseOverdueEvent`) |
| 2026-08-30 | [serviceOrderRef on the REST reservation path — documentation parity](20260830_1930_serviceorderref-rest-parity-docs.md) | Answers "JMS can pass a service-order id on a hold/firm booking, REST can't". It always could — REST and JMS share the same `FeasibilityRequest` / `ResourceFirmRequest` records, `ReservationServiceImpl` stamps `serviceOrderRef` on the entity and the response echoes it, and `e2e/ReservationRestIT` already round-trips it. The gap was documentation asymmetry: the JMS guide lists request fields inline per operation, the REST guide's Reservations table listed none (only prose further down), and in Swagger `/reservations/by-resource` carried no request example while `requestHold` / `createFirm` carried three each. .changelog/annotations only, no behavioural change: REST guide table now lists body fields per operation (`serviceOrderRef?`, `correlationId?`, `coverageMode?`) with a by-resource curl example and a REST/JMS-parity + OSOM auto-stamp note; JMS guide gains a payload-parity line; `createFirmReservationByResource` gets a curated `@RequestBody` with two `@ExampleObject`s (`EX_BY_RESOURCE`, `EX_BY_RESOURCE_SPAN`) and `EX_CAPACITY` + the class-level `@Schema` on both records mention the tracking keys; new `OpenApiContractTest.openApiSpec_bookingRequests_document_serviceOrderRef` locks the spec against regression. 967 tests, 1 pre-existing unrelated failure (`ReleasePathTest.onExternalEnd_overdue_emitsReleaseOverdueEvent`) |
| 2026-09-03 | [`/api/v1/modifications` — enforce availability calendar, blackouts & capacity (R16.2)](20260903_2035_modification-calendar-blackout-capacity.md) | Schedule-modification feasibility checked only reservation-vs-reservation overlap + the horizon, so `EXTEND` / `START_MOVE` could push a reservation outside its availability calendar, across a blackout, past the pool's `maxReservationDuration`, or over the capacity ceiling within the new window — all of which the booking and assessment paths already reject (R16.2 specified, unimplemented on the modification path). Added `checkTargetShape(...)` to `ScheduleModificationServiceImpl`: after the existing engine gate passes, the post-modification interval is re-checked against calendar coverage (`AvailabilityService.bookingCoverage`), blackouts (`blockingBlackouts`), `maxReservationDuration`, and `engine.checkConflict` for capacity/overlap — the same primitives the booking path trusts. `EXTEND`/`START_MOVE` only (SHORTEN can only relax all four); calendar+blackout gated by `chronos.calendar.enforce-on-booking`. Rejections carry `CALENDAR` / `BLACKOUT` / `MAX_DURATION_EXCEEDED` / `CAPACITY` / `OVERLAP` in `violatedConstraints`, `suggestedAlternative` null (request property, not a race). No REST/JMS/DTO/schema change; `AvailabilityService` injected in-layer. +7 unit tests (10 existing unchanged via lenient `ALWAYS_OPEN` defaults). 978 tests, 1 pre-existing unrelated failure (`ReleasePathTest.onExternalEnd_overdue_emitsReleaseOverdueEvent`) |
| 2026-10-12 | [Restore the release-overdue alert in `onExternalEnd`](20261012_2328_restore-onexternalend-overdue-alert.md) | Fixes the long-standing `ReleasePathTest.onExternalEnd_overdue_emitsReleaseOverdueEvent` failure. Commit `8c6be7f` had removed the `ReservationReleaseOverdue` emission from `onExternalEnd` without recording it. `ReconciliationJob` does not cover a late release that is confirmed before its next 5-minute scan, so the check (R20.15, R8.4) is restored. 990 tests, 0 failures |