Analyst Bootcamp Join on TelegramJoin
Drill #31 · 2026-11-06

Driver cancellation flow edge cases

Driver cancellation flow edge cases: state machine (AS-IS · Current trip lifecycle)
AS-IS · Current trip lifecycle · hand-drawn state machine: how things work today, the starting point for the task

The situation

You are a senior analyst on RidePulse's trip operations team. RidePulse runs the Dispatch engine, the TripTracker service and the Payout system. Ops have noticed drivers cancelling trips after they are "En-Route" and compliance asks for a clear policy. The current state diagram is shown below.

"Drivers say the 2-minute window is too short," says fleet manager Maya Patel.

Your task

  1. List all distinct trip states with short definitions.
  2. Build a transition table (from, to, trigger, guard) for the lifecycle.
  3. Recommend whether to allow a driver-initiated Cancel transition from the En-Route state, citing impact on SLA and driver payout; state the trade-off.

What this entity lifecycle / state machine exercise trains for ba + sas

Define the states and transitions of a core entity (order, claim, application), who triggers each transition and what is forbidden. The setting is fleet / ride-hailing / taxi: drivers, dispatch, surge pricing, trip states, driver payouts, cancellations, ratings.

Typical deliverables for this kind of task:

  • state list with definitions
  • transition table (from, to, trigger, guard)
  • invalid transitions handling

Senior level: ambiguity or conflicting constraints, cross-system impact, needs a decision with justification; still one focused slice, not the whole project. Budget 45–90 minutes.

#state_machine#fleet#cancellations

Read the theory first

More drills like this