Design a Log Replay Simulation Platform for Autonomy Regression Testing
Last updated: November 29, 2026
Quick Overview
Design a platform that takes recorded drive logs from the fleet, replays them through a candidate autonomy software build (resimulation), scores the results against safety and comfort metrics, and gates releases, at a scale of hundreds of thousands of scenarios per build.
Nuro
November 29, 20260
0
0 solved
Design a platform that takes recorded drive logs from the fleet, replays them through a candidate autonomy software build (resimulation), scores the results against safety and comfort metrics, and gates releases, at a scale of hundreds of thousands of scenarios per build.
Every Nuro Driver release has to be shown not to regress on a large library of real and synthetic scenarios before it reaches robotaxi or OEM fleets, so simulation infrastructure is core engineering work. Interviewers check determinism, cost-efficient batch compute, metric design and how results feed a release decision.
What the Interviewer Expects
- Separate scenario library, job orchestration, execution workers, and metrics/results store
- Address determinism: fixed seeds, simulated clock, pinned containers and input versions
- Handle open-loop vs closed-loop replay and reactive agents
- Design scoring with per-scenario pass/fail plus aggregate regression comparison against a baseline
- Discuss cost controls: sharding, caching unchanged modules, preemptible compute, test selection
- Cover flaky results and triage tooling
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you detect that a regression is real rather than simulator nondeterminism?
- How would you pick a fast presubmit subset of scenarios for every code change?
- How would you handle replay when the new planner diverges from the logged ego path?
- How do you version scenarios when the sensor configuration changes for a new vehicle like the Lucid Gravity?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: ingest fleet logs into scenarios (a time window plus metadata and tags), run a build against a scenario set, compute metrics (collisions, near misses, rule violations, jerk, progress), com...
High-Level Design
- Scenario service: catalog in a relational DB with tags (unprotected left, rain, cut-in), pointers to log chunks in object storage, and versioned derived inputs.
- Build registry: container images ...