OPEN SOURCE · AGENT RELIABILITY

Stress-test what your AI agent actually does.

Put your agent through failures that matter: duplicate refunds, skipped approvals, and success claims that don't match reality. Reproduce the failure. Verify the fix.

Download and extract first. Python 3.9+. No account or API key.

Have a production failure? Import and replay it.
NEW · SUPPORT-AGENT SCENARIO PACK

The refund went through.
The response never arrived.

Would your agent refund the customer twice? Inject a timeout after a payment commits, inspect the actual effects, and check the fix against the same scenario.

Inspect the before and after
INJECTED FAULT Timeout after refund commits
Unsafe retry$98refunded

2 committed refunds

FAIL · duplicate effect
Same operation key$49refunded

1 committed refund

PASS · fix verified

Results from the included $49 synthetic refund scenario. Local simulation; no payments or model API calls.

Stateful failure injection Business-effect assertions Portable reproduction Before / after verification

New in 0.3.0 · Production incident imports

Your next regression test already happened.

Import a production trace, redact sensitive values locally, and rerun your agent against the recorded tool responses. Keep the failure as a regression check your team can inspect.

Install or upgrade from PyPI:

python -m pip install --upgrade runledgerExplore incident replay
01

Import locallyIncident JSON or a RunLedger JSONL trace.

02

Redact and reviewReplace sensitive values; preserve trace relationships.

03

Replay in orderThe first timeout stays first. Unrecorded calls stop replay.

Your logs stay local. Review the bundle before sharing; replay covers the recorded tool boundary.

REAL REPLAY · DEMO CASE t1 1 case failed

Regression Viewer

A missing field. A failed check. A clear reason.

An intentionally stricter schema catches the demo agent returning an incomplete answer. The report shows the contract, output, and tool trace together.

SCHEMA VALIDATION FAILED

Missing required field: next_steps

The CLI exits with code 1. Make this check required in your repository to block the merge.

Inspect the full report

schema.json · required fields

{
  "required": [
    "category",
    "reply",
    "next_steps"
  ]
}

The updated schema requires next_steps in every final output.

The workflow

Keep the regression check.

Use the scenario pack for stateful failures. Use the existing CLI to record tool interactions and enforce your contracts on every change.

01

Record a passing run

Capture tool calls and responses in a cassette. Review the results and promote a known-good baseline.

--mode record
02

Replay the tools

Reuse those recorded tool responses in CI. Mismatched calls surface without depending on the live tool service.

--mode replay
03

Enforce your contracts

Fail the check on schema violations, tool-order errors, enforced budget limits, or a drop from the baseline.

--baseline baselines/demo.json

Already using quality evaluations? Keep your scoring framework alongside these CI checks. See how they fit together.

Connect your agent

Keep your framework. Add the protocol bridge.

RunLedger launches your agent as a subprocess. Add an adapter that exchanges JSONL messages over standard input and output, then route the tool calls you want to record or replay through it.

Choose an integration walkthrough
A small interface, explicit responsibilities
  1. 1.Your adapter reads the task and emits tool requests.
  2. 2.RunLedger executes or replays the registered tools.
  3. 3.Your agent returns its output for contract checks.

Get started

Start with a scenario. Build from there.

Run the free support-agent pack, or get help adding RunLedger checks to your repository.

Try it yourself

FREE · OPEN SOURCE

Reproduce a duplicate refund, inspect its committed effects, and verify the fixed policy against five support scenarios.

  • No account or model API key
  • Install from PyPI, or use the portable demo ZIP
  • Before / after reports and JUnit results
Run the support-agent pack

Get setup help

$299 · FIXED PRICE

Have RunLedger wired into one agent repository so the agreed tool-call regressions fail your pull-request check.

  • RunLedger and GitHub Actions setup for one repo
  • Replay cassettes and a passing baseline
  • Tool order, output schema, and tool-call budget gates
See setup details

Need broader implementation or ongoing help? Compare all services.

Ship agents with confidence.