D79 · A driver in good standing with no car is approved: the stage available is removed
Accepted · 2026-10-28 · zuki · Partly supersedes D43 (the stage available) and D66 (the month without a car, and the data phase's drivers step)
Decision: driver_stage loses available. A driver in good standing with no car is approved, whether he has just passed his checks or has returned a car with no problem.
- After a return, the driver's stage follows the return's reason as before, except that accident, breakdown and contract ended give
approvedwhere they gaveavailable. on_leave, resigned and suspended, and a repossession (D66), are unchanged. - The month without a car moves to
approved. A driver who isapprovedand holds no live rental (D67:pendingtoreturned) for 30 days becomesinactive, counted from stage_changed_at by the daily job. Apendingrental is live, so a driver approved and waiting for a car never turnsinactivewhile he waits. - The data phase's drivers step makes a v1 driver in good standing with no car
approved, with stage_changed_at at cutover. So his 30 days still start at cutover, as D66 said foravailable. - A rejoin request may come from
inactive,on_leave,resignedorsuspended. Anapproveddriver needs none.
Why: zuki on #281 (2026-10-26): v1's bc status Virtual means the video survey is done; "use approved and remove available. We need to refactor this because of the redundancy. At later stage when the driver returns the car without problem his status is also back to approved." Both stages meant "may rent, holds no car". D66 kept the month for available only, because an approved driver waiting for a car was approved (zuki, 2026-10-20). Counting only drivers with no live rental keeps that protection: the waiting driver holds a pending rental. The higher-ups' "driver become inactive if status not assigned stay for month" (#159) still holds.
Consequences:
- The rules (DOC): R-DRV-19 (available leaves; inactive stays), R-DRV-20 (the three reasons give
approved), R-DRV-32 (the month forapprovedwith no live rental), R-DRV-33 (available leaves the list), R-DRV-38 (available's label "Aktif" goes; listed keeps "Listed") and R-DRV-39 (approved, from cutover). Rules that change meaning are retired and replaced with new IDs, as usual. - The schema (BE):
availableleaves the enum in the foundation migration, edited in place (D11), with 42_data_phase_schema's test changed to match. Nothing is built that setsavailabletoday. The drivers step's twobc.data->status:stagerows (Approved, Virtual) map toapproved. On the copy, no driver takes this path tonight (BE-DP-30, #281), so no count changes. - The app (FE, with M3 and M5): no page shows
available. The stage's labels follow the rules. - Unchanged:
inactiveand what it means (D66), the blacklist at max_repossessions, and D73 and D78's mapping of v1's repossessions.