Production AI agents fail in ways unit tests don't catch: a prompt edit changes tone, a tool call returns something unexpected, and nobody notices until a customer does. Vestige instruments every LLM call, tool call, and transitive HTTP request in an agent run via OpenTelemetry, then lets you promote any recorded run into a regression test. Replay reconstructs that failure from content-hashed fixtures instead of live model calls, so a full test suite re-run costs nothing and never touches a real provider. Replays run in a Docker sandbox with no network, a read-only filesystem, and none of the worker's credentials. A GitHub Actions gate runs this on every pull request and blocks the merge on regression, and when an output changes, an LLM judge tells the reviewer whether it is a rewording or a real difference without ever passing the test itself.
Go ingest takes 30K+ agent spans/sec and lost none of them through a ClickHouse outage
Replays a 50-span agent failure from recorded fixtures in under 5s, with zero model calls
Gates PRs on replayed regression tests in a no-network sandbox, with a 100-pair test proving tenants stay isolated
Capture
OpenTelemetry SDKAuto-instruments OpenAI and Anthropic calls via OTel GenAI semantic conventions and patches httpx/requests at the transport layer to capture every hidden HTTP call inside a tool function, the signal that makes replay possible at all.
Ingest
Go + ClickHouseA Go OTLP receiver normalizes spans and writes them to a ClickHouse schema partitioned by day and ordered by trace for fast single-trace reads. Concurrent requests share grouped inserts, which about doubles throughput at 32 senders (roughly 30,000 spans/sec on a laptop). A write-ahead log covers database outages: stopping ClickHouse for 15 seconds mid-run lost none of 229,800 acknowledged spans.
Promote
content-hashed fixturesAny recorded trace can be frozen into a regression test. Every external request/response pair captured during that run is content-hashed and stored, forming a deterministic manifest keyed by request hash.
Replay
pg-boss worker + Docker sandboxA Postgres-backed job re-runs the agent with the same code path, but every outbound call is intercepted and served from the recorded fixture by hash instead of hitting a real model. The agent runs in a container with no network and a read-only filesystem; the worker mounts the fixtures in and forwards the spans it buffered to disk. Zero LLM calls, zero cost.
Diff & gate
GitHub Actions + LLM judgeThe replayed output is canonicalized and compared to the original by hash, with a token-level diff for the reviewer. A GitHub App posts a check on every pull request and blocks the merge if any promoted test regresses. The judge only explains a change; it never turns a failure into a pass.
SELECT REGRESSION
↑ pick a regression to trace the replay