Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/workers-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ on:
- "workers/playground/**"
- "workers/demo-provider/**"
- "workers/evaluation/**"
- "docs/index.html"
- "docs/**"
- "docs/app.js"
- "docs/page-analytics.js"
- "docs/styles.css"
- "sdk/typescript/package.json"
- "sdk/python/pyproject.toml"
- "mcp/package.json"
- "scripts/check-site-surface.mjs"
- "scripts/generate-site-surface.mjs"
- "scripts/website-funnel.test.mjs"
- "scripts/deploy-worker.cjs"
- ".github/workflows/workers-ci.yml"

Expand Down Expand Up @@ -48,8 +50,13 @@ jobs:
- name: Validate homepage helper syntax
run: node --check docs/page-analytics.js

- name: Validate public site versions, counter route and heartbeat
run: node scripts/check-site-surface.mjs
- name: Validate public versions and funnel safety boundaries
run: |
node scripts/generate-site-surface.mjs --check
node scripts/check-site-surface.mjs
node --check docs/funnel.js
node --check docs/retry-demo.js
node --test scripts/website-funnel.test.mjs

worker-dry-run:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

All notable changes to the Once SDK are documented here.
Historical SDK change notes are recorded here. For current published versions and
changes after the entries below, see the [public release history](https://github.com/stringsofthemind-oss/once/releases).
Website-only changes do not alter SDK execution semantics.

## 0.1.12 - 2026-09-25

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @once-agent/sdk

> **Automatic Connect:** `@once-agent/sdk@0.1.18` publishes the tested
> **Automatic Connect:** `@once-agent/sdk@0.1.22` publishes the tested
> `@once-agent/sdk/connect` path for classifying supported agent tools as
> `BYPASS`, `PROTECT`, or fail-closed `UNKNOWN`, then wiring whole local tool
> registries with trusted logical identity and effect binding. It also includes
Expand All @@ -13,6 +13,11 @@
> [local function guide](./examples/local-function/README.md) for its exact
> safety boundary and a first effect-count check.

> **Start here:** [Run the ungated retry simulation](https://onceexec.com/demo/) or
> [verify your first protected action locally](https://onceexec.com/quickstart/).
> The simulation does not execute the SDK; the local guide uses the installed SDK
> and a controlled fake provider, including fresh-process and UNKNOWN checks.

## Once — AI Agent Execution Safety

**MCP idempotency and safe retries for consequential AI agent writes.**
Expand All @@ -23,7 +28,7 @@ Once helps protect supported refunds, bookings, payments and other externally vi
- Automatic Connect guide: [`docs/CONNECT_AUTO.md`](./docs/CONNECT_AUTO.md)
- MCP idempotency guide: https://onceexec.com/mcp-idempotency/
- AI agent retry safety: https://onceexec.com/ai-agent-retry-safety/
- TypeScript SDK: [`@once-agent/sdk@0.1.18`](https://www.npmjs.com/package/@once-agent/sdk)
- TypeScript SDK: [`@once-agent/sdk@0.1.22`](https://www.npmjs.com/package/@once-agent/sdk)
- Python SDK: [`once-agent-sdk==0.1.1`](https://pypi.org/project/once-agent-sdk/)
- MCP package: `@once-agent/mcp@0.1.5`
- MCP Registry: `io.github.stringsofthemind-oss/once`
Expand Down
6 changes: 6 additions & 0 deletions docs/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,9 @@ The tester does not make network requests equal to the selected traffic volume.
## Discovery terms

MCP idempotency; automatic agent tool protection; automatic tool classification; AI agent execution safety; OpenAI Agents tool safety; AI agent retry safety; safe retries; unsafe retries; duplicate execution prevention; duplicate side-effect protection; ambiguous timeout; unknown outcome; durable replay; provider reconciliation; stable operation identity; consequential writes; side-effecting AI agent tools; Python AI agent SDK; PyPI agent execution safety.

## First-value verification
Use https://onceexec.com/quickstart/ for a current-package, no-key local check.
Its fake provider is not external-provider proof. Installing MCP alone is not
protection; all effects must traverse the protected boundary. Local mode will
not redispatch an ambiguous operation on an ABSENT observation.
2 changes: 1 addition & 1 deletion docs/ai-agent-retry-safety/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ <h2>Primary references</h2>
<div class="cta">
<h2>See the failure mode instead of just reading about it</h2>
<p>Use the Once tester to model retries, duplicate exposure and the execution-safety boundary, then follow the integration path that matches your stack.</p>
<p><a href="../#tester">Open the Once tester</a> · <a href="https://github.com/stringsofthemind-oss/once">View source</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a></p>
<p><a href="../demo/">Open the Once tester</a> · <a href="https://github.com/stringsofthemind-oss/once">View source</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a></p>
</div>
</article>
</main>
Expand Down
2 changes: 1 addition & 1 deletion docs/ambiguous-timeout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ <h2>Why timeout handling matters</h2>
<p>Transport failure tells you the caller did not receive a usable response. It does not tell you whether the provider committed the external effect.</p><h2>Safer recovery</h2>
<p>Keep the original logical-operation identity, inspect durable operation state and reconcile provider truth where supported. If safety cannot be established, preserve uncertainty instead of guessing.</p>
<div class="claim"><strong>Claim boundary:</strong> Once does not claim universal exactly-once execution. Safety depends on stable operation identity, durable Once state, the provider integration and sufficiently authoritative provider truth. When the outcome cannot be established safely, Once can preserve uncertainty rather than assume another external execution is safe.</div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../#tester">Try the Once tester</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../demo/">Run the retry simulation</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
</article></main><footer class="footer"><div class="wrap"><a href="../">Once</a><a href="../llms.txt">llms.txt</a><a href="../agent.md">Agent guide</a><span>AI agent execution safety · MCP idempotency · safe retries</span></div></footer></body></html>
2 changes: 1 addition & 1 deletion docs/claude-code-mcp-safe-retries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2>What the Once MCP server exposes</h2>
<h2>Install Once for Claude Code</h2>
<pre><code>claude plugin marketplace add stringsofthemind-oss/once
claude plugin install once@once-agent</code></pre>
<p><a href="../#tester">Try the Once tester</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/plugins/claude-code/once">Plugin source</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a></p>
<p><a href="../demo/">Run the retry simulation</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/plugins/claude-code/once">Plugin source</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a></p>
</div>
</article>
</main>
Expand Down
2 changes: 1 addition & 1 deletion docs/crewai-safe-retries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2>CrewAI example</h2>
<div class="cta">
<h2>Add execution safety to CrewAI tools</h2>
<pre><code>pip install once-agent-sdk</code></pre>
<p><a href="../#tester">Try the Once tester</a> · <a href="https://pypi.org/project/once-agent-sdk/">Python SDK</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/examples/crewai">CrewAI example</a></p>
<p><a href="../demo/">Run the retry simulation</a> · <a href="https://pypi.org/project/once-agent-sdk/">Python SDK</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/examples/crewai">CrewAI example</a></p>
</div>
</article>
</main>
Expand Down
2 changes: 1 addition & 1 deletion docs/cursor-mcp-safe-retries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>What the Once MCP server exposes</h2>
<div class="cta">
<h2>Add Once to Cursor</h2>
<pre><code>npx -y @once-agent/mcp</code></pre>
<p><a href="../#tester">Try the Once tester</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/examples/cursor">Cursor configuration</a></p>
<p><a href="../demo/">Run the retry simulation</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once/tree/main/examples/cursor">Cursor configuration</a></p>
</div>
</article>
</main>
Expand Down
115 changes: 115 additions & 0 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="color-scheme" content="dark" />
<title>Once retry demo — interactive simulation</title>
<meta
name="description"
content="Explore confirmed replay, conflicts and lost acknowledgements without an account, checkout or external writes."
/>
<meta name="google-site-verification" content="jBMY3qIvmf9hJoVVcvpgoEOW_gfZqUxNwHmtmUpErWk" />
<link rel="canonical" href="https://onceexec.com/demo/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Once retry demo — interactive simulation" />
<meta
property="og:description"
content="Explore confirmed replay, conflicts and lost acknowledgements without an account, checkout or external writes."
/>
<meta property="og:url" content="https://onceexec.com/demo/" />
<meta name="twitter:card" content="summary" />
<link rel="alternate" type="text/markdown" href="/agent.md" title="Once agent guide" />
<link rel="stylesheet" href="/funnel.css" />
<script src="/page-analytics.js" defer></script>
<script src="/funnel.js" defer></script>
<script src="/retry-demo.js" defer></script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="top">
<nav class="nav wrap" aria-label="Main">
<a class="brand" href="/"><span class="mark">1×</span> Once</a>
<div class="links">
<a href="/#mechanism">How it works</a><a href="/quickstart/">Quickstart</a><a href="/evidence/">Evidence</a
><a href="/support/" data-event="docs_click">Docs</a
><a href="https://github.com/stringsofthemind-oss/once" data-event="github_click">GitHub</a
><a class="btn primary" href="/#demo" data-event="hero_demo_click">Run the retry demo</a>
</div>
</nav>
</header>
<main tabindex="-1" id="main" class="wrap prose">
<p class="eyebrow">Ungated demonstration</p>
<h1>See what a retry should decide.</h1>
<p class="lead">Interactive simulation of Once’s documented state decisions. No account or checkout required.</p>
<div class="demo" data-retry-demo>
<div class="demo-header">
<div>
<span class="tag">INTERACTIVE SIMULATION</span>
<h3 data-demo-title>Ready</h3>
</div>
<p class="small">No account. No checkout. No external writes.</p>
</div>
<div class="demo-grid">
<div class="demo-side">
<h3>Without protection · blind retry</h3>
<ol data-events-naive>
<li>The action commits; acknowledgement is lost.</li>
<li>A blind retry can create a second ticket.</li>
</ol>
<strong class="metric bad" data-effects-naive>—</strong><span class="small">Simulated effects for this intent</span>
</div>
<div class="demo-side">
<h3>With Once · protected boundary</h3>
<ol data-events-safe>
<li>Known success can be replayed.</li>
<li>Unknown outcome blocks another dispatch.</li>
</ol>
<strong class="metric good" data-effects-safe>—</strong><span class="small">Simulated effects for this intent</span>
</div>
</div>
<div class="demo-message" role="status" aria-live="polite" aria-atomic="true">
<span class="state" data-demo-state>NOT STARTED</span>
<p data-demo-message>Use the controls to explore confirmed replay, changed-input conflict and uncertain outcomes.</p>
</div>
<div class="demo-controls" data-demo-controls hidden>
<button type="button" class="primary" data-demo-next>1. Run first action</button
><button type="button" data-demo-unavailable hidden>Provider truth unavailable</button
><button type="button" data-demo-reset>Reset demo</button>
</div>
<noscript
><p>
Interactive controls need JavaScript. The explanation above remains available.
<a href="/quickstart/">Run the actual SDK locally</a>.
</p></noscript
>
<div class="demo-result" data-demo-result hidden>
<strong>You have seen the decision. Now verify it with the SDK.</strong>
<div class="actions">
<a class="btn primary" href="/quickstart/" data-event="protect_first_action_click">Protect your first action</a>
</div>
</div>
<p class="small" style="margin: 20px 0 0">
This browser simulation illustrates Once’s documented behavior. It does not run the SDK, persist execution state or prove
external-provider durability. <a href="/evidence/">Inspect reproducible evidence</a> or
<a href="/quickstart/">verify the installed SDK</a>.
</p>
</div>
<div class="actions">
<a class="btn primary" href="/quickstart/" data-event="protect_first_action_click">Protect your first action</a>
</div>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.22</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
<a href="/quickstart/">Quickstart</a><a href="/evidence/">Evidence</a><a href="/agent.md">Agent guide</a
><a href="/retry-exposure/">Estimate retry exposure</a
><a href="https://playground.onceexec.com/hosted" data-event="hosted_sandbox_click">Hosted sandbox activation</a>
</nav>
</footer>
<p class="sr-only" data-copy-status role="status"></p>
</body>
</html>
2 changes: 1 addition & 1 deletion docs/duplicate-booking-retry/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ <h2>The booking failure mode</h2>
<p>The provider accepts the reservation, but the response times out. The agent retries and can create another reservation for the same traveller, slot, room or resource.</p><h2>Provider truth matters</h2>
<p>Where the booking system exposes authoritative lookup or reconciliation, use it to determine whether the original reservation exists before permitting another creation call.</p>
<div class="claim"><strong>Claim boundary:</strong> Once does not claim universal exactly-once execution. Safety depends on stable operation identity, durable Once state, the provider integration and sufficiently authoritative provider truth. When the outcome cannot be established safely, Once can preserve uncertainty rather than assume another external execution is safe.</div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../#tester">Try the Once tester</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../demo/">Run the retry simulation</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
</article></main><footer class="footer"><div class="wrap"><a href="../">Once</a><a href="../llms.txt">llms.txt</a><a href="../agent.md">Agent guide</a><span>AI agent execution safety · MCP idempotency · safe retries</span></div></footer></body></html>
2 changes: 1 addition & 1 deletion docs/duplicate-refund-timeout/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ <h2>The duplicate-refund failure mode</h2>
<p>The provider may commit the refund before the response reaches the agent. The caller sees a timeout and retries. Without stable logical identity or reconciliation, the second attempt can look like a brand-new refund.</p><h2>Recovery sequence</h2>
<ol><li>Reuse the same logical operation identity.</li><li>Read durable operation state.</li><li>Reconcile authoritative provider truth where supported.</li><li>Replay stored results when already confirmed.</li><li>Block another external execution if the outcome remains unsafe to determine.</li></ol>
<div class="claim"><strong>Claim boundary:</strong> Once does not claim universal exactly-once execution. Safety depends on stable operation identity, durable Once state, the provider integration and sufficiently authoritative provider truth. When the outcome cannot be established safely, Once can preserve uncertainty rather than assume another external execution is safe.</div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../#tester">Try the Once tester</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
<div class="cta"><h2>Use Once for this failure mode</h2><p>Once is the execution-safety layer between autonomous software and supported consequential real-world side effects.</p><pre><code>npx -y @once-agent/mcp</code></pre><p>Official MCP Registry identity: <code>io.github.stringsofthemind-oss/once</code></p><p><a href="../demo/">Run the retry simulation</a> · <a href="https://www.npmjs.com/package/@once-agent/mcp">MCP package</a> · <a href="https://github.com/stringsofthemind-oss/once">Source</a></p></div>
</article></main><footer class="footer"><div class="wrap"><a href="../">Once</a><a href="../llms.txt">llms.txt</a><a href="../agent.md">Agent guide</a><span>AI agent execution safety · MCP idempotency · safe retries</span></div></footer></body></html>
Loading
Loading