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
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

Evaluate Once when an external write may be retried, its first outcome can be ambiguous, and duplicate effects matter. If native idempotency or a database constraint fully solves it, use that instead. Harmless repeatable work does not need Once.

Start with `examples/first10/README.md`: run the refund fixture using published SDK 0.1.24, then read `examples/natural-placement/README.md` for a host-owned callback. Fixture PASS, installation, scanner findings, downloads and upstream fixes are not independent adoption.
Start with `examples/first10/README.md`: run the refund fixture using published SDK 0.1.25, then read `examples/natural-placement/README.md` for a host-owned callback. Fixture PASS, installation, scanner findings, downloads and upstream fixes are not independent adoption.

The developer owns stable logical identity and complete effect/account fields. Never silently infer or apply them. Keep identity across retries; genuine new intents need distinct IDs. Do not store Authorization credentials in effects. Route all writes through the reviewed boundary; opaque internal retries remain outside it.

UNKNOWN means the original action may have succeeded. Never blindly redispatch, mint a new ID to escape uncertainty, bypass protection, or infer absence from a missing receipt. Reconcile only authoritative read-only provider truth. Preserve CONFIRMED replay, changed-effect CONFLICT, durable state and fail-closed unsupported shapes. Local SQLite needs Node 24.15+ and one persistent shared same-machine authority.

FIRST 10 adds `once check [directory]` (read-only heuristic candidates) and `once prove` (controlled fixture only). Published 0.1.24 does not contain these commands. Preserve doctor and established APIs. Do not broaden frameworks for FIRST 10.
FIRST 10 adds `once check [directory]` (read-only heuristic candidates) and `once prove` (controlled fixture only). These commands are published in SDK 0.1.25. Preserve doctor and established APIs. Do not broaden frameworks for FIRST 10.

Build SDK; run FIRST 10 regression and relevant local/wrapTool tests; regenerate proof assets and run source/site guards. Validate packed SDK and published SDK consumers in clean directories. Publication, deployment, release and outreach require owner approval of concrete changes.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ type: software
authors:
- family-names: Oswald
given-names: Jamie
version: 0.1.24
date-released: 2026-10-03
version: 0.1.25
date-released: 2026-10-04
url: "https://onceexec.com/"
repository-code: "https://github.com/stringsofthemind-oss/once"
license: MIT
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Node.js **24.15+**. No account, API key, or financial transaction. The proof use
From this checkout:

```sh
npm install --no-save --package-lock=false @once-agent/sdk@0.1.24
npm install --no-save --package-lock=false @once-agent/sdk@0.1.25
node examples/first10/prove.mjs
```

Expand Down Expand Up @@ -52,7 +52,7 @@ If a provider idempotency key completely solves your operation, use it. If a Pos

## Find a candidate

Published CLI: `once doctor` remains the detailed assessment path. This FIRST 10 branch adds read-only `once check [directory]` and `once prove` for the controlled refund fixture. The new commands need a build of this branch until SDK release; they are not in 0.1.24. Scan and installation do not activate protection; the fixture never executes your code.
SDK 0.1.25 includes read-only `once check [directory]` and `once prove` for the controlled refund fixture. Run `npx --yes --package=@once-agent/sdk@0.1.25 once prove` for the one-command proof. `once doctor` remains the detailed assessment path. Scan and installation do not activate protection; the fixture never executes your code.

[Website](https://onceexec.com/) · [Quickstart](https://onceexec.com/quickstart/) · [Evidence](https://onceexec.com/evidence/) · [FIRST 10 plan and ledger](docs/FIRST10.md)

Expand All @@ -62,14 +62,14 @@ Published CLI: `once doctor` remains the detailed assessment path. This FIRST 10

# @once-agent/sdk

> **Natural Placement (SDK 0.1.24):** `wrapTool(callback, semantics)` protects a
> **Natural Placement (introduced in SDK 0.1.24):** `wrapTool(callback, semantics)` protects a
> host-owned tool callback using the existing local safety engine. Supply stable
> logical identity, complete effect/account binding and authoritative reconciliation.
> Requires Node.js 24.15+ and one durable same-machine SQLite authority; `UNKNOWN`
> blocks redispatch. Opaque callback retries and connector-only model access remain
> outside this boundary. See [the integration examples](./examples/natural-placement/README.md).

> **Automatic Connect:** `@once-agent/sdk@0.1.24` publishes the tested
> **Automatic Connect:** `@once-agent/sdk@0.1.25` 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 Down Expand Up @@ -97,7 +97,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.24`](https://www.npmjs.com/package/@once-agent/sdk)
- TypeScript SDK: [`@once-agent/sdk@0.1.25`](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
2 changes: 1 addition & 1 deletion docs/FIRST10.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Base commit: d818f1eb346618dd9916dd666acc1d09fd2545e1. TypeScript 0.1.24 and MCP

Symptom page/homepage → refund proof using published SDK → understand UNKNOWN → review own identity and complete effect/account binding → wrap one callback → validate against disposable provider truth → record friction and consensual 7/30-day follow-up.

`once prove` runs a fixture, not a certification of scanned operations. New branch commands remain unreleased; the standalone download works with SDK 0.1.24 after site publication. No telemetry is added. Do not claim an external user story before it exists.
`once prove` runs a fixture, not a certification of scanned operations. SDK 0.1.25 publishes the new CLI commands; the standalone download uses the installed SDK. No telemetry is added. Do not claim an external user story before it exists.

## Manual FIRST 10 ledger

Expand Down
2 changes: 1 addition & 1 deletion docs/GATEWAY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Once Gateway

Status: available in the current published `@once-agent/sdk@0.1.24` package (introduced in 0.1.13).
Status: available in the current published `@once-agent/sdk@0.1.25` package (introduced in 0.1.13).

The Once Gateway selectively routes an agent/runtime's **already-selected tool subset** without copying the global Tool Graph into model context.

Expand Down
8 changes: 4 additions & 4 deletions docs/agent.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Once — Agent-Readable Product Guide

> **Natural Placement (SDK 0.1.24):** `wrapTool(callback, semantics)` protects a host-owned unary callback. Supply stable logical identity, complete effect/account binding and authoritative reconciliation. Requires Node.js 24.15+ and one durable same-machine SQLite authority. `UNKNOWN` blocks redispatch; opaque internal retries and connector-only model access are outside the boundary. See https://github.com/stringsofthemind-oss/once/tree/main/examples/natural-placement.
> **Natural Placement (introduced in SDK 0.1.24):** `wrapTool(callback, semantics)` protects a host-owned unary callback. Supply stable logical identity, complete effect/account binding and authoritative reconciliation. Requires Node.js 24.15+ and one durable same-machine SQLite authority. `UNKNOWN` blocks redispatch; opaque internal retries and connector-only model access are outside the boundary. See https://github.com/stringsofthemind-oss/once/tree/main/examples/natural-placement.

> **Automatic Connect:** `@once-agent/sdk@0.1.24` publishes the tested
> **Automatic Connect:** `@once-agent/sdk@0.1.25` publishes the tested
> `@once-agent/sdk/connect` toolset integration path. It can classify supported
> agent tools as `BYPASS`, `PROTECT`, or fail-closed `UNKNOWN`, bind trusted
> logical intent identity and effect payload, and return a connected local tool
Expand All @@ -26,7 +26,7 @@ Canonical site: https://onceexec.com/

Repository: https://github.com/stringsofthemind-oss/once

TypeScript SDK: `@once-agent/sdk@0.1.24`
TypeScript SDK: `@once-agent/sdk@0.1.25`

npm: https://www.npmjs.com/package/@once-agent/sdk

Expand Down Expand Up @@ -305,4 +305,4 @@ 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.

FIRST 10: Controlled refund proof: https://onceexec.com/first10/ . Standalone proof uses published SDK 0.1.24; the new once check/prove commands are branch-only until release. See repository examples/first10/README.md and docs/FIRST10.md. Native idempotency or a unique constraint should be used alone when sufficient. Identity/effect decisions require developer review; never infer them silently.
FIRST 10: Controlled refund proof: https://onceexec.com/first10/ . SDK 0.1.25 publishes once prove and read-only once check; the standalone proof also works with SDK 0.1.24 or later. See repository examples/first10/README.md and docs/FIRST10.md. Native idempotency or a unique constraint should be used alone when sufficient. Identity/effect decisions require developer review; never infer them silently.
2 changes: 1 addition & 1 deletion docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h3>With Once · protected boundary</h3>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.24</span> · Python <span data-version="python">0.1.1</span> ·
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.25</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
Expand Down
2 changes: 1 addition & 1 deletion docs/evidence/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>Review the source and safety tests</h2>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.24</span> · Python <span data-version="python">0.1.1</span> ·
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.25</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
Expand Down
4 changes: 2 additions & 2 deletions docs/first10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<section class="section"><p class="eyebrow">Local refund proof · no account · no money movement</p><h1>Your agent sent the refund. The response disappeared. Should it try again?</h1>
<p class="lead">The provider can succeed before its response reaches you. Blind retry can send a second refund. Once keeps that uncertainty and blocks another write until authoritative truth confirms the original result.</p>
<p><a class="btn primary" href="#run">Run locally now</a></p><div class="grid"><article class="card"><h2>Without Once: 2 effects</h2><p>Refund commits → acknowledgement lost → caller restarts → blind retry → another refund.</p></article><article class="card"><h2>With Once: 1 effect</h2><p>Refund commits → UNKNOWN → restarted retry blocked → read-only reconciliation → original receipt recovered.</p></article></div></section>
<section class="section"><h2 id="run">Run the actual SDK</h2><p>Node.js 24.15+. An independent local HTTP provider keeps a separate effect journal. No cloud account, keys or payment account.</p>
<!--email_off--><pre><code>npm install @once-agent/sdk@0.1.24
<section class="section"><h2 id="run">Run the actual SDK</h2><p>One command runs the same controlled fixture:</p><!--email_off--><pre><code>npx --yes --package=@once-agent/sdk@0.1.25 once prove</code></pre><!--/email_off--><p>Or download the inspectable standalone source into your own directory:</p><p>Node.js 24.15+. An independent local HTTP provider keeps a separate effect journal. No cloud account, keys or payment account.</p>
<!--email_off--><pre><code>npm install @once-agent/sdk@0.1.25
curl -fsSLo prove.mjs https://onceexec.com/first10/prove.mjs
node prove.mjs</code></pre><!--/email_off-->
<p>PowerShell download: <code>Invoke-WebRequest https://onceexec.com/first10/prove.mjs -OutFile prove.mjs</code>.</p>
Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@type": "SoftwareApplication",
"name": "Once",
"applicationCategory": "DeveloperApplication",
"softwareVersion": "0.1.24",
"softwareVersion": "0.1.25",
"url": "https://onceexec.com/",
"codeRepository": "https://github.com/stringsofthemind-oss/once",
"license": "https://opensource.org/license/mit",
Expand Down Expand Up @@ -246,9 +246,9 @@ <h2>Install is the beginning.<br />Verification is the goal.</h2>
<button type="button" data-copy-target="home-install" data-copy-label="Copy install command" data-copy-event="install_copied">
Copy install command
</button>
<!--email_off--><pre><code id="home-install">npm install @once-agent/sdk@0.1.24</code></pre><!--/email_off-->
<!--email_off--><pre><code id="home-install">npm install @once-agent/sdk@0.1.25</code></pre><!--/email_off-->
</div>
<p>Natural Placement in SDK 0.1.24: <code>wrapTool(callback, semantics)</code> wraps a host-owned tool callback with stable logical identity, complete effect binding and authoritative reconciliation. <code>UNKNOWN</code> blocks redispatch.</p>
<p>Natural Placement in SDK 0.1.25: <code>wrapTool(callback, semantics)</code> wraps a host-owned tool callback with stable logical identity, complete effect binding and authoritative reconciliation. <code>UNKNOWN</code> blocks redispatch.</p>
<p class="small">Node.js 24.15+ · Durable state on one machine · No Once API key · Opaque internal retries and connector-only model access are outside the boundary.</p>
<div class="actions">
<a class="btn primary" href="/quickstart/" data-event="quickstart_started">Start the complete quickstart</a
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3>Crash and retry labs</h3>
</article>
<article class="card">
<h3>Published source</h3>
<p>Current TypeScript SDK: <span data-version="ts">0.1.24</span>. Historical evidence stays labelled and pinned.</p>
<p>Current TypeScript SDK: <span data-version="ts">0.1.25</span>. Historical evidence stays labelled and pinned.</p>
<a href="https://github.com/stringsofthemind-oss/once/releases" data-event="github_click">View releases →</a>
</article>
</div>
Expand Down Expand Up @@ -425,7 +425,7 @@ <h2>Protect one action.<br />Prove it survives a retry.</h2>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.24</span> · Python <span data-version="python">0.1.1</span> ·
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.25</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
Expand Down
8 changes: 4 additions & 4 deletions docs/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ https://onceexec.com/
Repository:
https://github.com/stringsofthemind-oss/once

TYPESCRIPT SDK: @once-agent/sdk@0.1.24
TYPESCRIPT SDK: @once-agent/sdk@0.1.25
Install: npm install @once-agent/sdk
npm: https://www.npmjs.com/package/@once-agent/sdk

PYTHON SDK: once-agent-sdk==0.1.1
Install: pip install once-agent-sdk
PyPI: https://pypi.org/project/once-agent-sdk/

NATURAL PLACEMENT: SDK 0.1.24 provides wrapTool(callback, semantics) for a host-owned unary callback. Supply stable logical identity, complete effect/account binding and authoritative reconciliation. Requires Node 24.15+ and one durable same-machine SQLite authority. UNKNOWN blocks redispatch. Opaque internal retries and connector-only model access remain outside this boundary.
NATURAL PLACEMENT: the current SDK provides wrapTool(callback, semantics) for a host-owned unary callback. Supply stable logical identity, complete effect/account binding and authoritative reconciliation. Requires Node 24.15+ and one durable same-machine SQLite authority. UNKNOWN blocks redispatch. Opaque internal retries and connector-only model access remain outside this boundary.

AUTOMATIC CONNECT: published in @once-agent/sdk@0.1.24. It can classify supported agent-tool descriptors as BYPASS, PROTECT, or fail-closed UNKNOWN; plan and connect whole local tool registries; resolve trusted intent/idempotency identity; bind effect payload; and structurally wrap OpenAI Agents FunctionTools. Automatic protected local execution requires Node 24.15+ and shared same-machine SQLite state. It is not a multi-host or universal exactly-once guarantee.
AUTOMATIC CONNECT: published in @once-agent/sdk@0.1.25. It can classify supported agent-tool descriptors as BYPASS, PROTECT, or fail-closed UNKNOWN; plan and connect whole local tool registries; resolve trusted intent/idempotency identity; bind effect payload; and structurally wrap OpenAI Agents FunctionTools. Automatic protected local execution requires Node 24.15+ and shared same-machine SQLite state. It is not a multi-host or universal exactly-once guarantee.
LOCAL PROTECTION: protectLocal(existingAsyncFunction, {id, payload}) keeps the call shape and receiver, snapshots ordinary data arguments, and uses durable same-machine SQLite on Node 24.15+. It validates a narrow plain-data domain. UNKNOWN and CONFLICT block; do not infer ABSENT from a timeout. See examples/local-function/README.md in the repository. For separate hosts use a supported distributed Once integration.
MCP package: @once-agent/mcp@0.1.5
MCP Registry: io.github.stringsofthemind-oss/once
Expand Down Expand Up @@ -163,4 +163,4 @@ MCP idempotency; MCP retry safety; MCP safe retries; MCP duplicate tool calls; s
- [Local quickstart](https://onceexec.com/quickstart/): actual SDK with controlled fake provider, restart and UNKNOWN checks; Node 24.15+, same-machine durability.
- [Evidence](https://onceexec.com/evidence/): scoped reproductions and current release history.

FIRST 10: Controlled refund proof: https://onceexec.com/first10/ . Standalone proof uses published SDK 0.1.24; the new once check/prove commands are branch-only until release. See repository examples/first10/README.md and docs/FIRST10.md. Native idempotency or a unique constraint should be used alone when sufficient. Identity/effect decisions require developer review; never infer them silently.
FIRST 10: Controlled refund proof: https://onceexec.com/first10/ . SDK 0.1.25 publishes once prove and read-only once check; the standalone proof also works with SDK 0.1.24 or later. See repository examples/first10/README.md and docs/FIRST10.md. Native idempotency or a unique constraint should be used alone when sufficient. Identity/effect decisions require developer review; never infer them silently.
2 changes: 1 addition & 1 deletion docs/published-versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ts": "0.1.24",
"ts": "0.1.25",
"mcp": "0.1.5"
}
4 changes: 2 additions & 2 deletions docs/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h2>1. Check Node and install</h2>
mkdir once-first-action
cd once-first-action
npm init -y
npm install @once-agent/sdk@0.1.24</code></pre><!--/email_off-->
npm install @once-agent/sdk@0.1.25</code></pre><!--/email_off-->
</div>
<p>
If Node is older than 24.15, update it before running local protection. The general hosted SDK has a different requirement; this
Expand Down Expand Up @@ -356,7 +356,7 @@ <h2>Keep protection active</h2>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.24</span> · Python <span data-version="python">0.1.1</span> ·
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.25</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
Expand Down
2 changes: 1 addition & 1 deletion docs/retry-exposure/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h1>Estimate retry exposure.</h1>
</main>
<footer class="footer wrap">
<span
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.24</span> · Python <span data-version="python">0.1.1</span> ·
>Once · Open source · MIT<br />TypeScript <span data-version="ts">0.1.25</span> · Python <span data-version="python">0.1.1</span> ·
MCP <span data-version="mcp">0.1.5</span></span
>
<nav aria-label="Footer">
Expand Down
Loading
Loading