How it works
Record continuously. Explain results later.
Retrace records Python applications continuously at under 1% overhead*. Cloud Replay and Provenance explain the recorded result.
On supported workloads. Overhead depends on how much I/O an application performs.
Decision provenance
Decision provenance is the ability to show how software produced a result: the inputs it depended on, the operations that combined them and the values that decided each branch.
Retrace provides decision provenance for Python. It reconstructs the explanation from the recorded run, so it shows what the code actually did, not what the source suggests it might have done.
Retrace’s provenance technology is patented in the UK, the US and Europe.
Patent numbers: US11880279B2 (US), GB2593858B (UK), EP4100831B1 (Europe).
One refund. One deciding value.
Why did the support agent refund £1,240 without approval?
Recorded: responses from outside your program, and the order threads ran.
Reconstructed on replay: every value and branch inside it.
The model's classification was one input. The value that decided the branch came from the carrier.
Retrace explains what your application did with the model's output. It does not explain the model's internal reasoning.
The model classified the message as a damaged item. The carrier API returned delivery_status "exception" at 14:02:07.412. At refund.py:88 the approval condition evaluated false because delivery_status was "exception", so the approval check was skipped and £1,240 was refunded without approval. The model and carrier responses were recorded. The condition and branch were reconstructed on replay.
Evidence before the question
Retrace records Python applications continuously. When a result is questioned, the evidence already exists. The run does not have to fail: a calculation, routing decision or agent action can need explaining after the application reports success.
Retrace records only what crosses the boundary between your Python program and the outside world, and the order it happened in. The recording does not contain your source code.
Outside your program
Boundary
Your Python process
- Rating table cacherating table v41 read at 09:14:02.118
- Customer record (database)
- Clock
- Background refresh jobrefresh at 09:14:02.125
pricing.py
.retrace recording · quote Q-20418
- rating table v41 read at 09:14:02.118
- refresh at 09:14:02.125
- rating table v42 read at 09:14:02.131
Recorded: responses from outside your program, and the order threads ran.
Reconstructed on replay: every value and branch inside it.
Record. Replay. Explain.
- Record continuously. The recorder runs in your Python environment and preserves the evidence behind supported executions.
- Investigate through cloud Replay. Engineers return to the recorded run, inspect frames and variables, set breakpoints and step forwards and backwards through VS Code.
- Follow the values with Provenance. Select a result to see its contributing inputs, operations and source locations, including the value that decided a branch.
- Investigate with the AI Debugger. Use execution evidence to explore explanations, identify causes and propose corrections, with the engineer in control.
Recording and investigation
By default, recordings are written in your own environment and nothing is uploaded automatically. Recordings can contain application data and should be treated as sensitive.
Replay needs the recording plus the code and dependencies that produced it. For cloud Replay, you share both with Retrace under the pilot’s agreed data terms. Replay and Provenance run in Retrace’s cloud; VS Code provides the developer interface. Workload, environment, data handling and retention are agreed during pilot scoping.
Requirements
- Python: CPython 3.11–3.15. Free-threaded (no-GIL) builds are not supported.
- Platforms: 64-bit Linux and macOS.
- Debugging: VS Code with the Retrace extension on the developer’s machine; Retrace’s Replay service runs in the cloud.
- CI: any CI system that can keep a file as a build artifact.
- Access: we provide the build directly during a pilot. It is not published on PyPI.
Retrace records at the boundary between Python and the outside world. Tell us which frameworks and native extensions your workload uses, and we’ll check them before the pilot starts.
Explore explaining a past result, AI application investigations and intermittent CI failures, or discuss an investigation.
Limits of replay
Retrace reconstructs supported Python execution state. It does not recover an execution that was never recorded, the internal computation of a model, opaque native or GPU state, or the internal state of a remote service. Original wall-clock latency and kernel scheduling are not reconstructed by Python replay. Deliberately removed data cannot be assumed recoverable.
For an AI application, the recorded response is what the application received. Replay investigates how the Python code behaved given that response.
The open-source preview. Retrace’s first public preview, released in May 2026, remains on GitHub as a reference for the broad approach. It is no longer maintained and differs from the current release.
A failure is hard to reconstruct.
A CI test passes on rerun, or a customer's integration fails and nobody can reproduce it. Replay the original run, not a new attempt.
One product
Replay makes the recorded execution inspectable. Provenance explains how its values were produced. Both are part of Retrace, and every pilot includes a limited Provenance allowance. Every explanation is complete; the allowance limits how many investigations, not how detailed they are.