THE SAME ACTION
SHOULD HAPPEN
ONCE.
Once is AI agent execution-safety infrastructure for MCP tools and applications that need safe retries after ambiguous outcomes. Stable identity. Durable state. Provider reconciliation. Protect supported refunds, bookings, payments and other consequential writes from unsafe duplicate execution after timeouts, lost responses and retries.
npx -y @once-agent/mcp
Different framework. Different retry machinery.
Same recovery protocol.
The same frozen Once V4 recovery core has been exercised under hard process termination across independent execution models. The control duplicates the external effect; the protected paths reconcile or fail closed instead of blindly executing again.
Install Once in a project or inspect the hard-crash labs line by line.
Scope: reproducible framework-level evidence using simulated provider ledgers and the SQLite reference backend. This is not a claim of universal exactly-once execution.
171 decisions.
171 correct.
Gemini, Claude and Grok were evaluated across six blind runs using two fixed Once routing-conformance suites, including a 40-case adversarial suite designed to test harder execution-safety boundaries.
Read the methodology, integrity hashes and aggregate results behind the six blind runs.
Scope: these results demonstrate conformance on the two fixed test suites in these six blind runs. They do not establish universal model correctness, guarantee routing for every real-world operation, or claim universal exactly-once execution.
The provider succeeded.
The agent doesn't know.
The dangerous case is not an obvious failure. The external action happens, but the response disappears. From the agent's point of view, success and failure can now look identical.
Attempts change.
The operation does not.
Once identifies the real-world operation, not the individual request. Every retry of the same logical action carries the same stable operation ID.
op_8F21
RETRY ≠ SAFE
HTTP distinguishes idempotent operations because a communication failure can leave the client needing to retry without knowing whether the first request already took effect.
RFC 9110 says a client should not automatically retry a non-idempotent request unless it can know the retry is safe or determine that the original request was never applied.
READ THE STANDARD ↗
The retry gets a decision.
Not another blind execution.
Once places durable execution state between the retrying agent and the provider performing the consequential operation.
Stable identity
One deterministic identity for the logical operation.
Durable state
Execution history survives requests, processes and retries.
Provider truth
Reconcile what can actually be established.
Safe decision
Suppress the duplicate or fail closed.
The retry gets a decision.
Not another blind execution.
Once does not treat a missing response as proof that nothing happened. It carries the same logical operation identity across retries, checks durable state and provider truth on supported paths, then chooses one of three outcomes.
Scope: Once does not infer provider truth from a lost response. Safe recovery on supported paths depends on durable operation identity, durable state and authoritative reconciliation or equivalent downstream guarantees.
MCP helps the agent choose the protection.
The runtime enforces the decision.
Once separates agent-facing discovery and setup from the execution-safety boundary. The MCP server helps an agent assess a project, plan protection, apply supported setup and verify the connection. The runtime is what executes, replays or blocks a protected consequential operation.
In short: MCP makes Once legible and usable to agents. The runtime is the safety boundary that protects the consequential operation.
Know what Once sees.
Know how failure behaves.
The current hosted SDK path is intentionally explicit about its boundary. Protected execution is authenticated to the Once service, operation data crosses that boundary, and the SDK fails with an error rather than silently bypassing Once when the service cannot be reached.
Scope: this describes the current hosted SDK execution path and the published reference labs. It is not a claim about undocumented storage location, retention, encryption, compliance or deployment guarantees. Those should be documented separately before they are promised.
Keep provider idempotency.
Add recovery when the caller no longer knows.
Once is not a replacement for provider-native idempotency, database constraints or durable workflows. Those controls remain valuable. Once focuses on the retry boundary around a consequential external operation: one stable logical identity, durable execution state and a safe decision after an ambiguous outcome.
Rule of thumb: keep every useful downstream guarantee. Add Once when the same consequential operation may be retried, the first outcome can be ambiguous, and blindly executing it again would be unsafe or costly.
Know what is proven today.
Know what still requires manual integration.
Once deliberately separates detection from protection. The scanner can identify a wider set of consequential operations than the current Runtime HTTP execution contract protects automatically. Unsupported shapes fail closed or require an adapter instead of being presented as covered.
Current boundary: Once does not claim that every provider, HTTP method, request shape or detected side effect is automatically protected. Provider-specific guarantees and automatic transformation support should be evaluated separately from detection.
Stripe supports idempotency so a request can be safely repeated after a connection error without accidentally performing the same operation twice.
Stripe also documents that idempotency keys may be removed automatically once they are at least 24 hours old.
STRIPE API REFERENCE ↗
Two attempts.
One external effect.
A Customer Zero regression sends the same supported consequential operation twice using one stable operation ID, then checks authenticated provider truth.
3 TOTAL
ATTEMPTS
AWS CLI v2 Standard retry mode has a default maximum of two retry attempts.
Including the original call, that produces three total call attempts by default.
AWS DOCUMENTATION ↗
Put your own traffic through the model.
See the retry problem at your scale.
Feed the same consequential traffic into both sides. The left models blind retry execution. The right models Once on the confirmed replay path. Use your own call volume — from one action to ten billion.
AT-LEAST-
ONCE
Pub/Sub provides at-least-once delivery by default.
Google documents that this means a message can be delivered multiple times, including some cases where it was already acknowledged.
GOOGLE CLOUD DOCUMENTATION ↗
Don't take the claim on faith.
Break it yourself.
The live Once Playground deliberately creates the ambiguous retry path: the provider performs the action, the response becomes uncertain, and the same stable operation is retried.
Go from project
to protected operation.
Using Once through an MCP client or AI agent? Use the MCP install below. Embedding Once directly in an application? Choose the TypeScript or Python SDK below. The terminal workflow beneath is the TypeScript / CLI path for inspecting consequential operations locally, reviewing proposed protection, then applying supported transformations. Install the TypeScript SDK above before using the shorter CLI commands after Doctor.
npx -y @once-agent/mcp
npm install @once-agent/sdk
pip install once-agent-sdk
Start with an isolated simulated provider on Node.js 24.15+. No credentials or real provider writes. This proof does not wire your application's tools.
Protect one action · UNKNOWN playbook · Guarantees and limits
Stay ahead with Once.
Product updates, new integrations, research and occasional offers — straight from the team building safer AI execution.
Your agents will retry.
Their side effects don't have to.
Execution safety for consequential AI-agent operations.