Driver Availability Audit

Every online/offline mutation is traced. Flagged = rule violation.

Online Drivers
0
Rule Violations
0
Forced Offline (auto)
0
No Trace (legacy)
0
#Driver IDOnlineAvail. StatusLast Change: Mutation SourceReasonprev→new onlineTimestampRule OK?
No drivers found
Availability Mutation Rules
✅ MAY set online=true
  • toggleDriverOnlineStatus (explicit driver Go Online)
  • upsertDriverAvailability (Rork app Go Online)
  • Admin force-online (if implemented)
✅ MAY set online=false
  • toggleDriverOnlineStatus (explicit Go Offline)
  • driverStatusSync (logout)
  • expireDriverSlots (slot expired / heartbeat timeout)
  • dispatchHealthMonitor (inactivity timeout)
  • Admin disabled/suspended
🚫 Must NEVER change online/offline
  • driverHeartbeat — timestamps only
  • updateDriverLocation — GPS coords only
  • getAvailableOffers / getDriverAvailableOffers
  • autoAssignDriver — scoring only
  • Dashboard refresh / Test Engine
  • Offer polling
📋 Trace fields required
  • driver_id
  • previous_online / new_online
  • previous_availability_status / new_availability_status
  • mutation_source
  • mutation_reason
  • timestamp