US: vehicle inspections, trade dress and zero tolerance
Built: 2026-11-04. Written for US operators and whoever maintains the code.
The California PUC, like most US city regulators, requires three things from a ride platform:
- a 19-point vehicle inspection before a car carries riders, then again every 12 months or 50,000 miles, whichever comes first;
- the platform's trade dress (its decal) displayed on the car while working;
- a zero-tolerance drug and alcohol policy: when a rider reports that the driver seemed impaired, the driver comes off the road at once while the report is investigated.
These rules live in the market config section vehicleCompliance. They are on
in the US and off everywhere else.
The rules are configurable. Confirm your local regulator's interval, checklist and policy wording before going live.
Settings (Admin → People → Vehicle inspections → Settings)
| Setting | US default | What it means |
|---|---|---|
| An inspection lasts | 12 months | How long a passed inspection stays valid |
| Or until trip miles reach | 50,000 | Counts the car's completed trip miles since the inspection. 0 means date only |
| No car without a passed inspection | on | |
| No car without trade dress | on | |
| Zero tolerance | on |
What blocks going online
The driver app refuses Go online with the reason, and the operator sees the same reason on the page. A car is blocked when:
| Code | Reason |
|---|---|
inspection_required |
There is no passed inspection on file |
inspection_failed |
The latest inspection failed |
inspection_expired |
The months have run out. This existing vehicle-papers check is now fed by the inspection, and so are its expiry reminders |
inspection_mileage_due |
The car's trip miles since its inspection have reached the limit |
trade_dress_required |
No decal has been issued for the car |
Trip miles are counted from the inspection date. If the inspection was recorded on the same day it took place, they are counted from the moment it was recorded, so a car re-inspected mid-day starts from zero.
Recording an inspection
- Open the car and choose Record inspection.
- Enter the date, the inspector or facility, and the odometer reading.
- Mark each of the 19 California PUC points pass or fail. Mark all pass is a shortcut.
- If any point fails, write a note saying what must be fixed. The driver reads it.
A pass sets the next due date. A failure keeps the car off the road until
another inspection passes. History shows every inspection and which points
failed. Recording an inspection is audited as vehicle.inspection.
Trade dress
Issue trade dress records the serial number of the decal you hand to the
driver. Revoke it when the car leaves the platform. Both are audited as
vehicle.trade_dress.
Zero tolerance
- In the rider app, a rider opens Safety → Report and chooses Driver seemed impaired. They must pick the trip.
- If they are that trip's rider and report within 3 days, the driver is
suspended at once through a deactivation case:
- the reason is
safetyand the case is permanent until lifted; - it is created by the system;
- the driver is told why and can appeal.
- the reason is
- The incident is raised at high priority and carries the outcome in
metadata.zeroTolerance. - The operator investigates. They lift the case, or uphold it on appeal.
A report is not acted on when it comes from someone who was not on the trip, comes too late, or concerns a driver who already has an open case. That reason is recorded on the incident. Ordinary complaints suspend no one.
Code
backend/src/fleet/vehicle-compliance.ts: config, the 19 points, inspection validation, the next due date, andcomplianceProblem(no I/O).backend/src/fleet/vehicle-compliance.service.ts: the list, inspections, trade dress, andvehicleComplianceProblem, whichdrivers.servicegoOnlinecalls.backend/src/safety/zero-tolerance.service.ts: called fromIncidentsService.raisefor a complaint with categoryimpaired_driver.- Migration
1700000188000-VehicleInspections:- adds
vehicle_inspections; - adds the trade dress columns on
vehicles; - makes
driver_deactivations.created_bynullable, for cases opened by the system.
- adds
- Rider app:
app/(app)/safety.tsxreport sheet. Admin:app/(dashboard)/vehicle-inspections/page.tsx.