Back to all work

Agent Flight Recorder

A wrong decision.
A way to find out why.

A debugging workspace for recorded AI agent runs. Follow the evidence, replay a change, and check the result across a set of test cases.

Working prototype

The question behind it

The run completed.
The answer was wrong.

A customer is charged $49 twice. Your support bot denies the refund. There was no crash, no timeout, and no obvious exception. The agent completed its task—and still made the wrong decision.

That is the gap I wanted to explore: making an agent's recorded inputs, tool responses, and decisions easier to inspect, so you can test a specific explanation.

Recorded policy7 days

A 10-day-old duplicate charge is denied.

Replacement policy30 days

The same case gets a $49 refund recommendation.

This is a synthetic support-agent example. The refund is a recommendation; no payment is issued.

How it works

An investigation
you can follow.

  • Record what the agent saw.

    Capture explicit model and tool call boundaries with the Python SDK. Redact sensitive values before saving the recording.

  • Follow the evidence.

    Inspect the saved run, its timeline, and individual events. In this case, the recorded policy response reveals the seven-day refund window.

  • Test one change.

    Replace that policy response with the current thirty-day policy. Preserve the original recording and compare the recommendations. Replay uses saved inputs without live tool or model calls.

  • Check beyond one case.

    Compare both policies across the synthetic regression dataset, inspect individual outcomes, and export the investigation as Markdown.

What the demo shows

Evidence for
the next decision.

With the replacement policy, the demo's denied refund becomes an approval recommendation. The linked evaluation then checks how the policy behaves across other scenarios.

60Synthetic cases
12Improved outcomes
0Regressions

These are results from the included synthetic dataset, not a claim about arbitrary agents or real-world deployments.

Where it stands

Built, working,
still being explored.

The prototype includes Python capture, a run inspector, policy experiments for the validated support-agent fixture, regression reports, and Markdown investigation exports.

You can capture and inspect your own Python workflow. Custom replay requires a runtime adapter; the included replay and policy experiments are specific to the synthetic support-agent integration.

The portfolio video is a recorded demonstration. It does not connect visitors to a live debugging backend.

Read the demo transcript

Your support bot just denied a refund. The customer was charged twice for forty-nine dollars. You're the engineer who has to explain it.

Open that saved run. The bot finished normally. It just made the wrong decision. That's the problem Flight Recorder helps you investigate.

Follow the policy response. The charge is ten days old, but the bot read a seven-day refund window. It used the wrong policy.

Try a policy change, load the current thirty-day policy, and run the experiment. The original recording stays intact. You're testing saved inputs, without live tool calls.

Now the same case is approved. The recommendation changes from zero to forty-nine dollars. You can see exactly what changed, and why.

Before shipping that fix, check it against other cases. Run both policies across sixty synthetic scenarios. Twelve improve. None regress. Open a case and compare the results.

Download the evidence as Markdown. You've got the policy change, the replay, and the test results in one investigation.

Use it when a customer reports a bad agent decision and you need evidence before changing the system. Start with the Python SDK; custom replay needs a runtime adapter.

More from oncoffee.

Follow the work as it takes shape.

Find me on GitHub