Skip to main content
When your agent changes, some existing traces become stale — they were recorded against an older configuration. DecimalAI’s replay workflow re-runs those stale prompts through your updated agent and compares the results.

How It Works

DecimalAI is an observability platform, not an execution platform. Replay follows a pull-based workflow: You pull stale prompts from DecimalAI, run them through your agent on your own infrastructure, and submit the results back.

Replayability Classification

Not every trace can be replayed. DecimalAI classifies traces into three categories:

Running a Replay

Via the SDK

Via the CLI

Output:

Manual Flow

For teams with custom execution environments, you can decouple prompt export from agent execution:
You can also export prompts from the dashboard via the “Export Prompts” button on the Replay tab, or via the API:
Replay dashboard showing stale tasks and their classification

What Happens After Replay

Replay results feed back into the platform:
  1. New traces are created — tagged as replay outputs
  2. Evaluators score the new outputs — same eval suite as production
  3. Side-by-side comparison — original output vs. replay output
  4. DPO pairs generated — original (rejected) + replay (chosen) for preference training

Pairwise Evaluation

When scoring replayed traces, the platform runs a pairwise comparison: “Given the same task, which trajectory is better — original (v1) or replayed (v2)?” This comparison considers:
  • Eval scores from both versions
  • Output quality and completeness
  • Tool call correctness
Each replayed trace gets a win / loss / tie verdict: Pairwise evaluation runs automatically when replay results are submitted, and results are surfaced in the replay summary and on the Replay tab of the agent dashboard — a free byproduct of the replay workflow.

DPO Pair Generation

When a replay produces a better output than the original, DecimalAI can generate DPO training pairs:
These pairs are accessible from the dataset builder and can be exported for preference-based fine-tuning.

Export Prompts

You can export stale prompts for offline processing — useful when you run your agent on infrastructure that can’t pull from the SDK directly. Dashboard: Click “Export Prompts” on the Replay tab (or “Replay Prompts” on the Impact Report banner) to download a JSONL file of all replay-eligible prompts. API:
After running the prompts through your own agent, link each new trace back to its original with link(original_trace_id=..., replayed_trace_id=...) (see Manual Flow above) so the platform can score the comparison and generate DPO pairs.

When to Replay

Repair vs Replay: For schema changes (tool renamed, parameter changed), use Repair instead — it’s instant and costs nothing. Use replay only when agent behavior changed (prompt, model).

Next Steps

Replay API

REST reference for create batch, submit results, export prompts.

Datasets

Build DPO datasets from replay pairs (original = rejected, new = chosen).

Manifests

Replay is triggered by manifest changes — understand the diff first.