D94 · The checker team decides at the inspection: a rented car's repair of one day keeps its rental, a longer one is a return; its leader is admin_fleet
Proposed · 2026-11-09 · zuki, in a CTO session reviewing v1's workflows; it binds when this page's pull request is merged · Partly supersedes D63 (no preparation_leader role) · Applies to the work order flow (D47) and the inspections
Decision: preparation is one thing, every step that gets a car to ready, and the checker team does it. The team decides at each inspection what happens to the car.
-
Preparation is not cleaning. A work order on the route
preparationneeds no repair and goes to the Leader's check (the inspection of kindpreparation). The glossary says so. -
The Preparation Team is the checker team (checker and maintenance, R-ACC-67's roles), and its leader is v1's Admin vehicle, v2's
admin_fleet.preparation_leaderis not built;admin_fleetholdspreparation:approvewith admin and super_admin (R-ACC-65), so it assigns a work order's PIC and passes the Leader's check (R-WO-08). -
A return at the pool is routed by the checker team at its inspection (VEH-29). A car that is fine goes to
preparation; one that needs repair goes to insurance, maintenance or a pool repair. The return reason still sets the route a work order starts on (D47), and the team changes it there. No separate quick-check record is kept. -
At a checkpoint, the checker decides:
The car Rental and rent Car status What is recorded Fit to run Go on rentedThe damage, on the checkpoint Unfit, repaired within one day (usually 6 hours) Go on; the driver keeps the car and waits rentedA maintenance record (TOP, in the pool) or an insurance claim (the driver takes the car to the insurer's garage). No return and no work order. Unfit, more than one day End; rent stops that day returned, then the work order (D92)A return inspection on the spot, reason accident or breakdown, which opens the work order -
A one-day repair that overruns becomes the third row: the checker does the return inspection when it is clear, and the rental ends and rent stops that day.
-
After a long repair, the car is
readyfor anyone. It is not booked for the driver who had it: they make a new contract and take a new handover with its BASTK. A driver who needs a car meanwhile takes a replacement as a new rental (R-RNT). -
Each inspection kind carries only its own fields. An
outcomeis on every preparation inspection and on no other kind; awork_order_idis only on a return or a preparation inspection; areturn_reasonis only on a return, as today (R-INSP-03). v1's free text is reduced to these, not widened to fit it.
Why: zuki, 2026-11-09. Both "preparation"s in v2 mean the steps that get a car to ready; there is no cleaning step. Damage found at a checkpoint is recorded there, unless the checker says the car can't run and must be repaired, and then a repair of a day keeps the rent going while the driver waits, and a longer one is a return that ends it. After a long repair the driver books again like anyone. The Preparation Team is the checker team, led by v1's Admin vehicle, so a separate leader role repeats admin_fleet. The fields of an inspection should be tight because v1 left too much as free text.
Consequences:
- DOC (data phase, #587): rules for the three field constraints, beside R-INSP-03; R-ACC-65, R-ACC-67 and R-WO-08 for
admin_fleetin place ofpreparation_leader; the glossary's preparation; #84's VEH-29 question closes. - BE (data phase, #588): first count the loaded inspections that break each constraint, on a local night; then the check constraints and their pgTAP tests. A row that breaks one is a rule question for zuki, not a dropped constraint.
- M5: the checkpoint's three outcomes, the return on the spot, the short repair with no work order, and the routing at the return inspection, as rules and functions;
admin_fleet'spreparation:approvein the seed. - The role count is one fewer than D63 and D71 planned.
- The data phase's part rides slice #584 (timeline row 0l).