Anchored Engagement · Case Study
This case study describes a last-mile dispatch capability anchored to TrueLeaf Tech's engagement with a major retail chain operating across India. The client runs one of the country's most operationally rigorous store networks, and their last-mile fulfilment is where operational discipline meets the chaos of real-world delivery.
Anchored to a confidential client engagement. The retail client whose work this case study draws from operates a large national footprint and is one of India's most respected names in operational efficiency. Specific implementation details have been generalised to honour the engagement's confidentiality.
Last-mile delivery is the part of e-commerce where engineering meets the physical world, and the physical world wins more often than engineers like to admit. Traffic, weather, building access, customer availability, returns, cash on delivery, address ambiguity — the failure modes are essentially infinite, and any system that treats them as edge cases is a system that fails in production every day.
The brief was to build a dispatch console for the operations team running last-mile fulfilment across a regional zone. The legacy system was a combination of spreadsheets, phone calls, and the kind of accumulated tribal knowledge that worked but did not scale. The opportunity was to replace this with something that scaled, without losing the operational intuition that the existing process embodied.
Every delivery order entering the system has to be assigned to a driver, with the assignment optimising for distance, current load, time windows, and a dozen other constraints. The naive approach is to optimise globally — solve for the best assignment of all orders to all drivers simultaneously. This is the kind of problem that looks tractable on a whiteboard and becomes computationally expensive in production.
We took a tiered approach. Bulk orders are assigned in batches using a simpler distance-and-load heuristic that produces good-enough results quickly. Edge cases — high-value orders, time-critical deliveries, customer service escalations — flow into a separate queue for operations supervisor review. The combination gives us automated decisions at scale and human oversight where it matters.
Drivers need software that works in the field, with intermittent connectivity, bright sunlight, gloved hands, and the cognitive overhead of someone whose primary job is driving. The companion app was built with these realities as design constraints, not afterthoughts. Offline-first architecture. Large touch targets. Minimum required taps for the common workflows. Clear status indicators that did not require reading paragraphs of text.
The technical implementation used a local-first state model with eventual synchronisation to the central system. When connectivity returned, the app reconciled its local state with the server's view, surfacing conflicts to the driver only when human resolution was actually required.
Operations supervisors need to see what is happening in their fleet, in real time, at a level of detail that lets them intervene when things go wrong. The visibility layer aggregated driver positions, delivery statuses, and outcome predictions into a single operational dashboard, updated continuously.
The interesting engineering work here was in the prediction layer: not just showing where drivers are, but predicting whether they will hit their delivery windows. The prediction model used historical traffic patterns, current location, remaining stops, and a small set of contextual signals to generate a confidence-rated estimate. Supervisors used this to triage attention — to focus on the deliveries that were likely to fail rather than the ones that were likely to succeed on their own.
Operational software lives in the gap between what is happening and what should be happening. The best tools make that gap visible the moment it appears.
Route optimisation has been an academic subject for decades, and the algorithms that produce theoretically optimal routes are well known. They are also computationally expensive. We chose to use heuristics that produce near-optimal routes in milliseconds rather than optimal routes in seconds. The operational speed was worth more than the marginal route improvement.
A persistent design question was how much autonomy to give drivers versus how much authority to centralise in dispatch. Pure autonomy produces inconsistent service. Pure centralisation produces drivers who resent the system and find ways around it. The right answer is in the middle, and the calibration shifts as drivers gain experience and as dispatch builds confidence in the underlying tools.
A counterintuitive lesson from operations is that predictable routes are often more valuable than optimised routes. A driver who knows their route well — who knows the buildings, the access codes, the customer patterns — delivers faster than a driver running an optimised route they have never seen. We built the assignment system to lean toward predictability for high-volume zones, allowing drivers to develop the kind of local expertise that optimisation models cannot capture.
The patterns from this engagement — tiered assignment, offline-first field software, predictive visibility layers — apply to any operational software domain where physical execution and digital coordination meet. We have used variations of these patterns across logistics, field service, and retail operations.
If you are building operational software for a workforce that operates in the physical world, get in touch. The challenges are specific and the patterns travel well between domains.
Work with us
If something in this case study resonates with what you're trying to build — or if you'd like to talk through a related problem — we'd be glad to spend a half-hour helping you think it through.
Start a conversation →The system uses tiered assignment with simpler heuristics for bulk orders and supervisor review for edge cases. The architecture scales horizontally on the assignment workers, with caching at the route calculation layer to avoid recomputing common routes. Peak-hour throughput has been validated at several times the typical load.
Yes. The driver app uses an offline-first architecture with a local-first state model. Drivers can complete deliveries, update statuses, and record outcomes without connectivity. The app synchronises with the central system when connectivity returns, with conflict resolution surfaced only when human attention is genuinely required.
Escalations flow through a dedicated queue with appropriate priority and routing. Drivers can flag issues from the field app; the issue is routed to the supervisor responsible for that driver and zone, who can intervene through the dispatch console. The escalation workflow is designed to be fast — typically under a minute from flag to supervisor visibility.
Yes. The system is designed to integrate with WMS and order management platforms via standard APIs. Order intake, status updates, and outcome reporting all flow through documented integration points, allowing the dispatch capability to slot into an existing fulfilment stack rather than requiring a wholesale replacement.
More from the TrueLeaf Tech engineering portfolio.
Let's build
Whether you're testing a hypothesis or scaling an established product, we'd be glad to spend a half-hour helping you think through the next step.