Skip to content

Replay and Scenario Mining Operations

Last updated: 2026-05-24

Why It Matters

Autonomous fleet logs contain many routine miles and a small number of high-value moments. Scenario mining turns uncurated logs into replayable evidence: near conflicts, strange object interactions, failed localization, blocked routes, rare weather, confusing ground markings, and other long-tail cases that should become regression tests.

This page covers the operational loop from mined fleet event to replayable scenario asset. It does not define simulator physics or the full safety validation strategy. Use ../mlops/evaluation-platform-replay-gates-by-scale.md to turn replay packages into release-blocking evaluation manifests, runtime package checks, shadow/canary evidence, waiver records, and platform evaluation SLOs.

Operating Model

  1. Ingest candidate events from triggers, operator notes, incident reports, model disagreement, anomaly detectors, and natural-language scenario search.
  2. Index clips with map context, ego trajectory, actor tracks, weather, lighting, airport zone, model versions, and intervention metadata.
  3. Mine scenarios using both rule queries and embedding or language search. Argoverse's scenario-mining task frames the problem as retrieving specific safety-relevant scenarios from large multi-modal logs localized to HD maps.
  4. Normalize each accepted scenario into a scenario record: intent, actors, dynamic sequence, trigger conditions, ODD tags, source clip, and expected system response.
  5. Represent dynamic replay intent using ASAM OpenSCENARIO concepts where practical: entities, storyboard, maneuvers, events, actions, triggers, conditions, and external road-network references.
  6. Represent object and scene annotations using ASAM OpenLABEL-compatible fields where practical: object identity, class, 2D/3D geometry, segmentation, relations, actions, intentions, and taxonomy references.
  7. When a scenario is mined from semantic-map drift or open-vocabulary/offboard labeling, preserve whether the label is a reviewed map class, a candidate concept, or a deliberate unknown region. A replay can assert "this must remain unknown" just as legitimately as "this should be promoted to class X".
  8. Promote scenarios by state: candidate, triaged, replay_ready, regression_required, retired.

Embedding search indices used for mining are MLOps artifacts, not invisible infrastructure. Each query result should be attributable to a corpus snapshot, embedding model, chunk/window policy, vector index build, metadata filters, access class, and deletion state. Use ../mlops/feature-embedding-store-ops-by-scale.md to decide when a local exploratory index is enough and when a governed vector-search service needs recall, freshness, and audit SLOs.

Replay Suite by MLOps Scale

Replay is not only a simulator asset; it is an MLOps release gate. The suite should start lightweight, then become a governed regression product as the model gains operational authority.

MLOps scaleReplay scopePromotion ruleSuite-management risk
S0 notebook researchOptional clips used for qualitative debuggingStore interesting failures as candidate events when they may recurLosing high-value examples in local notebooks
S1 repeatable prototypeSmall fixed smoke suite for representative routes, classes, and sensor statesA new baseline should pass the same clips as the previous baselineOverfitting to a tiny hand-picked suite
S2 production productRegression suite for known incidents, label-edge cases, and runtime packaging checksA candidate must pass replay with the same artifact package that will be deployedEvaluating the model checkpoint but not the container, map, taxonomy, or runtime config
S3 fleet and multi-siteSite/ODD-sliced suites from mined logs, shadow disagreements, operator notes, and intervention clustersPromotion is per ODD cell; failed cells remain blocked or canaried separatelyOne airport or route dominates the suite and hides local regressions elsewhere
S4 regulated safety-criticalHazard-linked scenarios tied to the safety case, monitor activations, and waiver recordsA release cannot proceed with unresolved regression-required scenarios unless risk acceptance is explicit and time-limitedWaivers becoming permanent substitutes for fixes
S5 platform scaleShared scenario catalog, common schemas, automated coverage reports, and cross-team replay infrastructureSuites are versioned products with ownership, retention policy, deprecation rules, and platform observabilityTeams fork incompatible scenario formats and cannot compare evidence

The state machine should be stricter at higher scale. At S0-S1, candidate and triaged states are enough to preserve learning. At S2, replay_ready becomes part of product release hygiene. At S3-S4, regression_required scenarios are blocking evidence unless a named release authority accepts the residual risk. At S5, suite health itself becomes a platform SLO: run time, flake rate, coverage, stale scenario age, duplicate rate, and cost per replay hour.

Evidence Artifacts

ArtifactMinimum contentsOwner
Scenario mining queryQuery text or rule, search index version, time window, filters, requesterScenario curator
Embedding index manifestCorpus snapshot, embedding model/checkpoint, preprocessing window, vector metric, index parameters, metadata filters, recall check, deletion propagation stateData platform
Candidate clip manifestSource log IDs, timestamps, manifest ID, compatibility hash, semantic layer ID, taxonomy ID, map tile IDs, telemetry schema URL/version, sensor availability, model versionsData platform
Triage recordWhy the clip matters, duplicate check, severity, regression prioritySafety validation
Scenario metadataActors, maneuvers, triggers, ODD tags, semantic-map context, affected map tiles, expected classes/unknown regions, source evidence IDs, expected behavior, acceptance metricScenario curator
Candidate semantic-label evidencePrompt set, offboard model/checkpoint, source-map or projection hash, reviewer state, taxonomy action, expected class or unknown assertion, promotion decision IDLabel operations
Annotation packageOpenLABEL-style labels, taxonomy ID/hash, label schema version, semantic-layer source, QA report ID, reviewerLabel operations
Replay packageSimulator version, map bundle, semantic layer, taxonomy, telemetry schema, runtime config, release evidence IDs, seed, initial state, scenario fileSimulation owner
Regression resultPass/fail, metric deltas, videos, logs, model version, waiver if anySafety validation

Acceptance Checks

  • Every replay scenario links back to immutable raw log, map, label, and processing snapshots.
  • Scenario metadata has enough structure for search, replay selection, and coverage accounting.
  • Scenario labels use a controlled taxonomy and record the schema version.
  • Candidate labels from offboard/open-vocabulary tools are either reviewed into a controlled taxonomy class, retained as explicit unknown-region evidence, or excluded from replay assertions.
  • The replay package can be executed by a clean worker without local manual files.
  • A scenario is not replay_ready until the clean worker validates the signed manifest, resolves all map/semantic/taxonomy/schema IDs, and confirms replayed telemetry conforms to the recorded schema URL/version.
  • Runtime validation compares vehicle-reported active IDs against replay package IDs before metrics count as release-regression evidence.
  • The expected behavior is measurable: clearance, stop distance, yield behavior, route recovery, localization bound, or intervention avoidance.
  • Regression-required scenarios are included in release gates before a model can be promoted.
  • Retired scenarios keep a reason, replacement scenario if any, and last passing release.

Failure Modes

Failure modeConsequenceControl
Scenario remains a video bookmarkCannot run regression or measure improvementRequire replay package before promotion
Query results are not versionedMining cannot be repeated after index changesStore query and index version
Duplicate scenarios flood the suiteRelease gates become slow without added coverageCluster and deduplicate before promotion
Labels drift across teamsScenario semantics change over timeVersion taxonomy and run label QA
Replay omits map or weather contextTest no longer represents the field eventStore map, zone, weather, lighting, and initial state
Replay omits semantic layer or schema contextMetrics compare against the wrong class ontology or dashboard interpretationRequire semantic layer/taxonomy/schema IDs before replay_ready
Expected behavior is vagueReview becomes subjectiveDefine quantitative pass criteria
Scenario suite only includes failuresOverfits to known bad cases and misses normal behaviorMaintain balanced coverage by ODD and maneuver
  • 50-cloud-fleet/mlops/data-flywheel-airside.md
  • 50-cloud-fleet/mlops/evaluation-platform-replay-gates-by-scale.md
  • 50-cloud-fleet/mlops/feature-embedding-store-ops-by-scale.md
  • 50-cloud-fleet/data-platform/fleet-data-pipeline.md
  • 30-autonomy-stack/simulation/simulators-for-airside.md
  • 30-autonomy-stack/end-to-end-driving/airside-autonomy-benchmark-spec.md
  • 60-safety-validation/verification-validation/airside-scenario-taxonomy.md
  • 60-safety-validation/verification-validation/shadow-mode.md
  • 60-safety-validation/verification-validation/testing-validation-methodology.md

Sources

Public research notes collected from public sources.