Tempero | The Causal Map: Revealing What Really Matters in a Scenario

Causal attribution for scenario testing

Your tests say a scenario fails.
We measure why.

Scenarios now come from fleet logs, crash reports (human drivers and automated vehicles) and LLM generators: nobody knows them intimately any more. The Causal Map restores that knowledge — which actors a failure needs, which variables carry it, whether it was avoidable — measured in simulation.

Why now

The more we delegate design to AI, the less we understand what we built.

More and more scenarios arrive undesigned: logged, reported, generated.

Pass/fail says it failed; the Causal Map measures why, by re-simulation: whether the SUT could have avoided it, and what least change avoids it.

Simple: change one thing, replay the scenario, measure the change on your KPIs. Hard: knowing which changes to try. The Causal Map computes which ones to run.

Expertise erodes when understanding is delegated. Teams that stop seeing why their scenarios fail stop being the experts.

ISO 21448 (SOTIF) asks you to identify triggering conditions behind hazardous behaviour, including in scenarios nobody on your team designed.

Method

How it works

Nothing fails yet? It first looks for a failure in the declared space, then explains what it finds.

Cases

Four sources, one analysis

One illustrative case per type of input: fleet logs, automated-vehicle crash reports, human-driver crash reports, LLM-generated. The same automated analysis runs on each, whatever its source.

A logged near-miss, from the Waymo Open Motion Dataset

Dense urban, same direction, 7 actors: the partner starts moving into the SUT's lane. The SUT takes the part of a recorded, human-driven car; the other road users, the Waymo car included, follow the log.

Esmini, the logged values: the SUT (orange), the partner ahead moving into its lane, the Waymo car (red)
esmini, the logged values: the SUT (orange), the partner ahead moving into its lane, the Waymo car (red)
The Causal Map's replay: the SUT (orange) keeps clear; it fails elsewhere
the Causal Map's replay: the SUT (orange) keeps clear; it fails elsewhere

Was it avoidable? yes: the SUT's controller brakes too softly

Which actors are necessary, alone or together? the partner; not the Waymo car, A1, A2, A4 and A5

What least change avoids it? when the partner starts, 1.5 s earlier

Did a broken traffic rule cause it? none: the files declare no traffic rule to break

When was it lost? 0.93 s before the contact

Which variables carry it? the partner's {speed}, {start}, {speed, start}; {speed}: how hard or close, not whether

How far can the scenario shrink and still fail? without A1, A2, the Waymo car, A4 and A5: same outcome, 2 of 7 road users kept; the partner's start fails only between 1.7 and 3.2 s: search space −36 %

5 of 7 road users removed: the partner alone carries the failure.

Source: Waymo Open Motion Dataset.

A crash an automated vehicle's operator reported to NHTSA

3 actors: the SUT moves out to pass a parked work truck; a pickup merging from the right cuts it off. Reconstructed from the report's narrative, the SUT in the reported vehicle's place.

Esmini: the SUT (orange) moving out to pass the parked truck (left), the pickup merging from the right
esmini: the SUT (orange) moving out to pass the parked truck (left), the pickup merging from the right
The Causal Map's replay: the SUT (orange) and the pickup (yellow here), a near-miss; it fails elsewhere
the Causal Map's replay: the SUT (orange) and the pickup (yellow here), a near-miss; it fails elsewhere

Was it avoidable? yes: the SUT's controller does not brake before the contact or near-miss

Which actors are necessary, alone or together? the pickup; not the parked work truck

What least change avoids it? the SUT's speed, 37 → 27 km/h

Did a broken traffic rule cause it? none: the files declare no traffic rule to break

When was it lost? 0.17 s before the near-miss

Which variables carry it? {SUT speed}, {lateral speed}, {gap} under all four KPIs; {lateral speed}: how hard or close, not whether

How far can the scenario shrink and still fail? without the parked work truck: same outcome, 2 of 3 road users kept

The truck the SUT moves out to pass is not necessary: the scenario fails without it.

Source: reported by Avride to NHTSA under its Standing General Order on crash reporting.

A crash between human drivers, from an NHTSA investigation

4 actors: in the report, an SUV hits a left-turning motorcycle (V2), then a pole and a pedestrian; the SUT drives the SUV's part. Reconstructed from the investigation's narrative.

“The crash occurred in a signalized intersection of two roadways. […] V1, a 2002 Ford Expedition sport utility vehicle with one occupant, was traveling southbound in lane two. V2, a Harley-Davidson motorcycle with two occupants, was traveling westbound in lane one, and attempting to make a left turn. At the intersection, the front of V1 contacted the right side of V2.”
Esmini, the reported values: the SUT (orange), the motorcycle (black)
esmini, the reported values: the SUT (orange), the motorcycle (black)
The Causal Map's replay: a near-miss with the motorcycle; it fails elsewhere
the Causal Map's replay: a near-miss with the motorcycle; it fails elsewhere

Was it avoidable? yes: the SUT's controller brakes too late, never brakes or brakes too softly, depending on the case

Which actors are necessary, alone or together? the motorcycle; not the pedestrian and the pole

What least change avoids it? the motorcycle's gap, 5 → 20 m

Did a broken traffic rule cause it? no: no road user breaks a rule the files declare

When was it lost? 0.42 s before the near-miss

Which variables carry it? {SUT speed}, {V2 speed}, {V2 gap}, {V2 speed, V2 gap}; {SUT speed} and {V2 speed}: how hard or close, not whether

How far can the scenario shrink and still fail? without the pedestrian and the pole: same outcome, 2 of 4 road users kept; the motorcycle's gap fails only at 5 and 10 m: search space −50 %

The report's pole and pedestrian are not necessary: the motorcycle alone is.

Source: NHTSA National Motor Vehicle Crash Causation Survey, 2005–2007, US government public data.

A generated scenario, from a paragraph of text

An LLM turns the text into an OpenSCENARIO file: a two-lane roundabout, the SUT and six other cars.

“A four-arm roundabout with two circulating lanes and a yield sign at every entry, in dense traffic. The SUT enters the roundabout on the outer lane, moves to the inner lane, drives almost a full turn, then moves back to the outer lane and exits at the arm just before the one it entered from. Four other cars circulate on the inner and outer lanes ahead of and behind the SUT, and two cars enter the roundabout from two different arms across the SUT's path, one of them failing to yield.”
Esmini, declared values: the SUT (orange) and the car yielding at the north entry, a near-miss
esmini, declared values: the SUT (orange) and the car yielding at the north entry, a near-miss
The Causal Map's replay, worst case: the car that does not yield (yellow) runs into the SUT (orange)
the Causal Map's replay, worst case: the car that does not yield (yellow) runs into the SUT (orange)

Was it avoidable? yes: the SUT's controller does not brake before the near-miss; in the contact case, its braking puts the SUT in the path of the car that does not yield

Which actors are necessary, alone or together? the car that does not yield, the car that yields and three of the four circulating cars; not the one behind on the outer lane

What least change avoids it? the non-yielding car's pull-out gap, 10 m smaller

Did a broken traffic rule cause it? yes: the SUT does not give way at a yield sign; obeying it alone removes the failure

When was it lost? 0.47 s before the near-miss

Which variables carry it? the SUT's initial speed most, then the ring speed, the yield wait, the pull-out gap and the non-yielder's speed

How far can the scenario shrink and still fail? it does not: the whole declared space fails and every road user is kept, dense traffic at work

From a paragraph of text to a multi-actor roundabout, and its why: a yield sign the SUT did not obey.

Inside your test loop

An engine that rides on your stack — not a stack to migrate to.

One tool call

causal_map, through a standard agent-integration protocol (MCP), from a dev environment, a chat surface or a CI step.

Open-standard native

Consumes and emits the open scenario and road-network formats. No proprietary scenario language to adopt or migrate to.

Simulator-agnostic core

A thin adapter over the real simulation tool rather than a reimplementation.

Compute-agnostic

Locally, on-premise or in the cloud, and suited to CI/CD.

It explains failures; it does not certify safety.

Value

What an explanation buys you

Trust

Every finding is measured, not modelled; every case shown ships with the scenario file that reproduces it.

Smaller scenarios

Drop the actors the failure does not need, and the values that never fail: a leaner test, fewer runs every release.

SUT failure or unavoidable contact

Was it avoidable? If not, no ticket.

A target for the fix

When it was lost, and the least change that avoids it, as a scenario you can replay.

What to cover

The carrying variables are the coverage model, written for you in OpenSCENARIO 2.0.

Compare system versions

Same scenario, two systems: what changes in the explanation, what holds.

Engineers stay the experts

AI writes the scenarios; your team still sees why each one fails.

Evidence for ISO 21448 (SOTIF)

Triggering conditions, measured: which road users matter, which variables carry the failure, over which values.

About

Tempero

Tempero (Latin: to temper, to refrain) exists to mitigate the risks of high-risk AI systems. The founding team comes from automated reasoning, formal testing and constraint solving, with prior roles at Microsoft Research and autonomous-systems institutes. Automotive SDVs come first, because they rest on mature standards such as OpenSCENARIO.

Youssef Hamadi

Co-Founder

LinkedIn

Sathia Subbarayan

Co-Founder

LinkedIn

Santhoshi K S

Engineer

LinkedIn

Karthikeyan Natrajan

Human Resources Manager

LinkedIn

Sreedharshan G J

AI Research Engineer

LinkedIn

Manimaran M

Technical Recruiter

LinkedIn

From Pass/Fail to a Measured Why

See it for yourself: personal access to the Causal Map server, on request.

Request access