Agent execution infrastructure
Make every agent execution reproducible.
Ontral captures the observations that shaped an AI-agent execution into a deterministic capsule — so teams can replay failures, find the first divergence, test alternative decisions, and prevent regressions.
Your agent may be nondeterministic. Its execution history should not be.
import ontral ontral.record(app="support-agent")
The failure problem
Logs show what was emitted. They do not reconstruct the world the agent saw.
An agent’s execution is shaped by everything it observed. Any of these can differ the next time you run it:
- model outputs
- tool responses
- retrieval results
- state
- time
- randomness
- concurrency
- external services
- application code
- side-effect boundaries
Traditional trace
what you have today- logs
- spans
- prompt
- final output
You can inspect fragments. You cannot reconstruct the historical universe.
Ontral capsule
what Ontral captures- observations
- ordering
- state
- tool activity
- time
- randomness
- effects
- exceptions
You can reconstruct the execution.
Observability and replay solve different problems. Traces tell you what your system emitted — a capsule lets you re-run the past.
Execution capsule
Capture the observations that shaped the run.
One ontral.record() captures supported observations across model, tool, network, retrieval, runtime, state, exception, and execution-ordering boundaries — sealed into one durable, verifiable capsule. Select a class to see what is recorded.
Observation class
Retrieval
Retrieved documents and their exact versions at execution time — preserved even after the index, the store, or the document changes.
content-addressed blobs · replay eligibility requires coverage of the run’s nondeterministic boundaries
Exact replay
Reproduce the failure without repeating the damage.
Replay serves the captured observations back to the agent instead of calling live providers or external systems again. It works after the model changed, the documents changed, the database changed — or the provider is gone.
The original execution was nondeterministic. The captured capsule is deterministic.
$ ontral replay cap_8f3a91 --attest capsule restored 1,204 events provider calls 0 external tool calls 0 world mutations 0 replay status identical attestation verified
Execution debugger
Find the first meaningful divergence.
Replay a capsule against current code, prompts, or models. Ontral walks both executions together and stops at the first observation where they disagree. Select a node to inspect it.
Selected node
policy.retrieve
- boundary
- retrieval
- source
- doc v7
- replay
- doc v8
- class
- first divergence
The retrieval boundary returned document v8 where the capsule recorded v7. Every later difference is downstream of this observation.
first divergence · policy.retrieve · v7 → v8
Counterfactual replay
Change one observation. Replay the alternate history.
From an existing production capsule, replace a single observation and replay the downstream execution. The live tail stays dry-run: no emails, no charges, no mutations.
Replace
Replay from
Keep fixed
- code
- customer state
- previous tool responses
- captured model observations
Original · recorded
Counterfactual · dry-run
What happened?
exact replay
What caused it?
divergence analysis
Would the correction work?
counterfactual replay
Could it regress?
corpus testing
Regression testing
Turn production failures into permanent tests.
Promote important production capsules into a regression corpus. Ontral re-executes the corpus and fails the build when behavior changes in ways you forbid — before the change ships.
Gate changes to
- code
- prompts
- models
- tool schemas
- retrieval
- policies
- MCP servers
Test cases come from executions that actually happened — not scenarios engineers invented.
PR #482 · upgrade retrieval pipeline
illustrative CI report · replay gate
cap_2c11d8 · tool.refund.execute attempted during replay — effect blocked, build rejected
Drift monitoring
Know when the same agent starts behaving differently.
Ontral replays a pinned historical corpus on a schedule and alerts when outcomes or important intermediate decisions flip — not when a benchmark score moves.
Compare a pinned corpus against
- model updates
- model aliases over time
- prompt changes
- code changes
- retrieval changes
- tool changes
Status · design-partner capability, shaped with early teams
- corpus
- refund-escalation · 64 capsules
- previous
- safe escalation
- current
- autonomous refund
- first divergence
- model.response · node 142
- trigger
- model alias updated upstream
Replay fidelity
Exactness is proven, not assumed.
When an agent touches an uninstrumented source of nondeterminism — a raw socket, a native extension, an unsupported client — replay fails closed and reports the exact uncovered boundary.
Incomplete capture is a first-class diagnostic, not a silent success.
source thread-3 operation socket.connect coverage unsupported boundary remediation install the relevant interceptor or annotate the boundary
designed to fail closed · eligibility reported per capsule
Illustrative attestation · cap_8f3a91
original root · capture
8f21c39ab7…e104
replay root · attested
8f21c39ab7…e104
Cryptographic evidence
Every capsule is independently verifiable.
- Content-addressed storage — every observation hashed into the capsule root.
- Tamper detection — any modified byte changes the root.
- Replay attestation — proof that a replay corresponds to a captured execution.
- Export and import — verify the same capsule across environments.
- Durable incident evidence — for audits, postmortems, and disputes.
This is not blockchain. It is verifiable execution evidence.
Integrations
Capture the boundaries that shape execution.
Interceptors sit at the boundaries where nondeterminism enters — providers, networks, protocols, and the runtime itself.
Requests, responses, streams, and tool calls.
Messages, streaming, and tool use.
Async and sync HTTP at the client boundary.
Classic HTTP calls and their exact payloads.
Protocol traffic to and from MCP servers.
Clock reads served back on replay.
random, UUIDs, and sampled seeds.
Task and thread ordering as recorded lanes.
Wrap internal tools as explicit captured boundaries.
Enterprise
Your execution data. Your deployment boundary.
The control plane is being productized with design partners. Deployment follows your data boundary, not ours.
Hosted capsule store and replay engine.
early accessCapsules never leave your network.
design partnerRun the full stack on your infrastructure.
design partnerFor regulated and air-gapped environments.
design partnerControl plane · design-partner roadmap
Enterprise details →- organizations + workspaces
- projects + environments
- SSO + SAML
- SCIM
- RBAC
- audit logs
- encryption
- retention
- redaction
- customer-managed keys
- regional residency
- customer-controlled storage
Roadmap items are built with design partners — not all are generally available today.
Use cases
Built for agents that take consequential action.
One infrastructure layer. These are workloads it serves — not separate Ontral products.
Customer support
Reproduce an incorrect refund or a contradictory answer.
Financial operations
Inspect why an invoice, approval, or payment was handled incorrectly.
Coding agents
Replay against changed code and locate the first incompatible operation.
Security operations
Investigate why an automated agent took — or skipped — an action.
Internal operations
Reconstruct decisions involving tools, retrieval, and changing company state.
Category clarity
Agent execution infrastructure. Nothing broader.
Ontral is
- execution capture
- exact replay
- debugging
- counterfactual testing
- regression infrastructure
- drift control
- execution evidence
Ontral is not
- an agent builder
- a prompt-management tool
- a generic observability dashboard
- an agent marketplace
- a model-training platform
- an all-in-one governance suite
Observability and replay solve different problems. Keep your traces — add the capsule.
Make every important agent execution reproducible.
Work with Ontral to make production failures replayable, explainable, testable, and preventable.