Skip to content

D83 · An Approve row loads as pending only when its driver is approved; any other stage loads it cancelled

Accepted · 2026-10-29 · zuki · Partly supersedes D82 (its scope: drivers on leave or suspended) and D69 (Approve is pending whatever the driver's stage)

Decision: The rentals step loads a v1 onboarding row in Approve as a pending rental only when the drivers step put its driver on approved. For any other stage it loads a cancelled rental with no car. D82 said this for on_leave and suspended; this decision gives every other stage the same answer. A row of the old-data class (R-RNT-64) is still ignored and loads no rental at all.

Why:

  • zuki, 2026-10-29, on #302: "Cancelled, like D82", after the first full BE-DP-36 run loaded 355 pending rentals for drivers the drivers step had made blacklisted (294) or resigned (61).
  • The reason is D78's and D82's: a driver who is not approved shouldn't hold a live rental that lets him book a car. A blacklisted or resigned driver holding a pending rental contradicts D66 and D73 in the same way.
  • The reconcile's check rentals and stage found it: it listed those 355 rentals as disagreeing with their driver's stage (R-RNT-49).

Consequences:

  • The rules (DOC): R-RNT-33 says a pending rental needs an approved driver and any other stage gives cancelled; R-RNT-49 and R-RNT-52 follow. On the copy of 2026-10-29: 652 cancelled (275 on_leave, 22 suspended, 294 blacklisted, 61 resigned) and 70 pending, derived from BE-DP-36's first full run.
  • The reconcile prints the rentals cancelled check as one line for each driver stage with its count, not one for each row, because 652 rows are too many to sign one by one. zuki signs the four lines; the rows are found by a query.
  • They come back the normal way, through a rejoin request (R-DRV-33), as for D78's.
  • No schema change. cancelled already holds no car (rentals_car_unless_pending).
  • Unchanged: D78 for the 19 re-approved drivers (approved, pending); the old-data rows (R-RNT-64).