# Compare MCAP robot runs against a baseline

Use OORB RunFP to compare baseline and candidate MCAP episodes, apply task-specific tolerances, and inspect missing or changed evidence.

Canonical: https://oorb.io/docs/compare-robot-runs/
Maintained by: OORB
Updated: 2026-10-15

## Compare MCAP recordings from the same robot task

OORB RunFP compares MCAP recordings stored as robot episodes against a baseline. It reports changes in available software, environment, and behavior evidence. Choose a baseline and candidate from the same task, then use task-specific criteria to decide which differences matter.

Create the episodes using [the getting started guide](/docs/getting-started/), then replace these placeholders with actual episode IDs:

For a complete investigation, follow [the field-failure workflow](/docs/robot-field-failure-investigation/). For a candidate release, use [policy-update validation](/docs/robot-policy-update-validation/) to keep model identity, baselines, and physical outcomes distinct.

```sh
runfp diff <baseline-episode-id> <candidate-episode-id>
```

The comparison report helps inspect what changed across recorded runs. Depending on the signals present, behavior evidence can include joint states, odometry, poses, and actuator values.

## Set the reference for repeated checks

```sh
runfp baseline set <baseline-episode-id> --name pick-place
runfp history pick-place
```

The named baseline is reused by group checks. History shows attempts with available commit and outcome evidence, which can narrow an investigation to relevant software changes.

## Apply your task's criteria

Use a prepared protocol to make required evidence and tolerances explicit:

```sh
runfp diff <baseline-episode-id> <candidate-episode-id> --protocol protocols/pick-place.yaml
```

Review missing topics, incompatible structures, and protocol findings before interpreting metric differences. A recording without the signal you need cannot establish that behavior stayed the same.

For an automated comparison gate, choose a finding threshold deliberately:

```sh
runfp diff <baseline-episode-id> <candidate-episode-id> --fail-on high
```

Thresholds refer to the comparison engine's findings. They are not a universal definition of a successful physical task. [CI checks](/docs/robot-regression-ci/) and [recorded task outcomes](/docs/robot-success-rate/) answer different release questions.

## What the evidence establishes

| Evidence | What you can use it for | What still needs validation |
| --- | --- | --- |
| Captured software or model changes | Identify differences worth investigating | Whether a change caused a failure |
| Recorded motion or state differences | Inspect observed behavior changes | Whether behavior meets the physical task objective |
| Missing or incompatible signals | Identify limits on comparability | Recovering evidence that was never recorded |
| An associated commit | Trace a run to available workspace provenance | Reproduction when dependencies or local edits differ |

A difference report supports investigation; it does not automatically establish root cause.

## Can I compare two ROS 2 MCAP recordings?

Yes. Import both MCAP recordings as episodes using [the getting started guide](/docs/getting-started/), then compare their episode IDs with `runfp diff`. Confirm that topic structures, task conditions, and required signals are compatible before interpreting differences. The comparison uses recorded evidence; it does not rerun the policy.

## What happens when a topic or sensor is missing?

Review the report's missing or incompatible signals and any protocol findings. A missing observation cannot establish that the behavior stayed the same. Treat the absent evidence as a limit on the comparison, and capture the required signal before relying on it for a release decision.

If the recorded evidence points to a field failure, [request an OORB reliability audit](/#pilot-application).
