v478 Fleet Map Driver-App GPS Intake Contract, Consent, and Live Eligibility
Decision
Reviewed v477 Fleet Map non-live marker lifecycle dashboard and stale-position cleanup and proceeded with v478 Fleet Map driver-app GPS intake contract, consent, and live eligibility.
The build intentionally adds driver-app GPS readiness, consent, privacy, and live-marker eligibility contracts before any real GPS coordinate intake. It does not connect GPS/ELD providers, does not call Google Geocoding/Routes APIs, does not change payment collection, broker distribution limits, owned portal rules, internal load-board access, or Transportation Accounting activation.
What changed
- Added driver-app GPS intake readiness to every Fleet Map position.
- Added live-marker eligibility states for contract ready, consent pending, consent blocked, live eligible, live blocked, intake not ready, and live protected.
- Added driver consent/privacy readiness checks before a truck can be considered future live-GPS eligible.
- Added a driver-app GPS intake policy block describing required payload fields, freshness rules, consent requirements, and green-marker boundaries.
- Added DomainEvent-backed readiness audit records under FLEET_MAP_DRIVER_APP_GPS_READINESS_RECORDED.
- Added a guarded POST API route at /api/fleet-map/driver-app-gps-readiness.
- Added GPS Intake and Live eligible filters, summary counts, selected-truck readiness controls, GPS eligibility dashboard, GPS readiness audit trail, truck-list chips, hover/info-window labels, and CORI prompts.
- Added .env.example flags for readiness recording and kept real driver-app GPS intake disabled by default.
What's Visible
In Workspace Operations / Fleet Map
- New GPS Intake and Live eligible filters appear in the Fleet Map filter row.
- A new Driver-app GPS readiness summary tile shows contract-ready, consent-ready, live-eligible, blocked, and audit-record counts.
- A new Driver-app GPS intake, consent, and live eligibility panel groups trucks by readiness state.
- The selected truck panel now shows driver-app GPS intake status, consent status, live eligibility, required payload contract fields, freshness rule, green-marker rule, and next step.
- Supervisors can record driver-app GPS readiness only after acknowledging consent/privacy and confirming that v478 does not ingest or move marker coordinates.
- A new Driver-app GPS readiness audit trail panel shows recorded readiness events.
- Truck cards, map hover cards, and map info windows show driver-app GPS readiness labels.
- CORI prompts now include GPS readiness, consent, blocked eligibility, and live marker activation boundary review questions.
Rule Check
- Green marker = live driver-app GPS only: Yes.
- Dispatcher-confirmed/manual records stay blue/non-live: Yes.
- v478 readiness recording ingests live coordinates: No.
- v478 readiness recording moves marker coordinates: No.
- v478 readiness recording turns any marker green: No.
- Real driver-app GPS activation is enabled: No.
- Real GPS/ELD/telematics providers connected: No.
- Google Geocoding/Routes/Places server API calls activated: No.
- Driver messaging activated: No.
- Payment collection changed: No.
- Broker distribution limits changed: No.
- Owned portal rules changed: No.
- Internal load-board access changed: No.
- Transportation Accounting workflows activated: No.
- Prisma schema changed: No.
Validation
- npm run dispatchspot:preflight passed.
- Targeted TypeScript/TSX parser checks passed for changed Fleet Map files.
- npm run build could not complete in the sandbox because dependencies are not installed here: next: not found.