Record the evidence around a failed action

Capture observations, model results, and controller events so failures can be replayed.

Exercise brief·Intermediate·3 min read

Opening the Python editor…

Requirements and learning goals

Before you start

  • A Wendy device
  • An app with observable events

You will be able to

  • Record and inspect an episode
  • Keep source timing
  • Separate recording from training

The browser exercise above works without extra setup. The project brief below assumes the listed prerequisites and gives you a task and checks to perform. Need a guided first project?

An is a recorded interval containing sensor data and application events. Recording the moments around a failed action lets your team inspect what the model saw and why the controller acted. Wendy Data stores that evidence on the device. Here you will capture one episode and check that it contains enough information to explain a failure.

Once manual capture works, configure a campaign trigger for a meaningful failure event instead of collecting only successful demonstrations.

Record the decision context

A useful failure report includes the input frame, its capture time, model version, prediction, accepted intent, controller state, and outcome. A screenshot of the final position rarely explains which decision went wrong.

Start with a local Wendy Data recording before adding automatic triggers. Select the same device for each command and choose actual source IDs returned by discovery.

wendy data sources
wendy data record --name first-check --source telemetry
wendy data status
wendy data stop
wendy data episodes

Then inspect and download the episode ID reported by the device:

wendy data inspect <episode-id>
wendy data download <episode-id> --output ./episode

The Wendy Data guide describes source selection, checksums, and application recording streams.

Checkpoint 1 of 2

A robot stopped short of its target. You have a screenshot of its final position. Which additional evidence would show which decision went wrong?

Commit to an answer. Every choice explains itself.

Add application evidence

Declare episode-write for an app that emits events or model results. Use the recording examples for the actual transport. Include a request ID so predictions and actions can be matched later.

Trigger a on a deliberate failure, such as an expired observation. Check the manifest for sources that actually recorded and any errors. Pre-trigger history varies by source; do not assume every sensor includes the seconds before the event.

Check and extend

A teammate should be able to explain the failure from the downloaded evidence. Missing records remain missing, not implied successes. Local capture does not automatically create labels, train a model, or make data available in BI.

Checkpoint 2 of 2

A campaign triggers on an expired observation. In the downloaded episode, controller events surround the failure, but one camera source has no records from before the trigger. What can you conclude?

Commit to an answer. Every choice explains itself.

Optional extension: label the failure and add it to a held-out regression set. Keep model tuning examples separate from final evaluation.

Can you do each of these?

  • Record and inspect an episode
  • Keep source timing
  • Separate recording from training

0 of 2 checkpoints solved. Try checkpoint 1

Previous: Connect perception to action without blocking control
All lessons in this topic
  1. 1. Run a VLM on a live camera
  2. 2. Understand vision-language-action models
  3. 3. Inspect a VLA action chunk
  4. 4. Ground a request in supported robot skills
  5. 5. Connect perception to action without blocking control
  6. 6. Record the evidence around a failed action
  7. 7. Compare a learned approach with a scripted baseline

Ask Wendy

Answers about Wendy and WendyOS

What would you like to know?

Ask about devices, development, and deployment.

Check linked docs for technical details.