Seal is a payment security layer designed specifically for AI agents, with the core goal of achieving "exactly-once" execution of irreversible actions, preventing agents from duplicate charges across processes, retries, or concurrent scenarios. It consists of an MCP server named seal-mcp (based on stdio, JSON-RPC 2.0) and a Python library, providing 12 tools, including seal_propose, seal_execute, seal_paths (gateway mode), seal_admit, seal_commit, seal_abort, seal_heartbeat, seal_get, seal_verify, seal_incident_receipt, seal_expect, and seal_obligations.
Main capabilities:
- Exactly-once admission: Relies on a shared Postgres database, allowing only one winner per intent, determined through atomic operations. Every admitted action generates a certificate containing a content-addressed hash, forming a hash chain; any tampering will break subsequent hashes and can be verified trustlessly via DSN.
- World confirmation: Integrates with real providers such as Stripe to verify the charges that actually occurred. Certificates can be upgraded to WORLD_FINAL (world confirmed) or WORLD_DIVERGED (world diverged), the latter of which freezes the domain and automatically rejects further spending.
- Pre-commit world freeze: Optionally checks the read_set and checker before execution to prevent fund operations based on stale information.
- Graduated Clearance: The CLEARED status of a path requires it to be set by an operator and to have a recent successful storm test record; otherwise, it automatically enters HOLD. REVOKED takes effect permanently. Provides range_report() to export audit events and provider-referenced certificates.
- Exclusive Authority: Agents can only obtain tickets and cannot access provider keys. execute() is the only place that calls the provider, and tickets are bound to the exact authorized parameters, are single-use, and expire.
- Graduated Clearance: Adds amount thresholds on top of Clearance, supporting maker-checker duseparate responsibilities, for example, amounts over a certain threshold require approval by two different humans. Approval records are also included in the same hash chain.
- Portable receipts: certificates use canonical JSON hashing per RFC 8785 and can be signed with Ed25519, allowing third parties to verify without a database or network.
- Earned Autonomy: from L0 OBSERVED to L5 AUTONOMOUS, automatically calculated based on the actual records of the payment path (provider-confirmed settlement, scans showing no hidden transfers). Since 0.4.0, licenses drive the gateway, and only reaching L3 or above allows unattended movement of funds, and within operator-set limits. Three situations immediately return control to a human: the path has not earned autonomy, paused (funds are moving behind the gateway), held (execution reached the provider but the result is unknown). Disabled by default.
Usage:
- When started as an MCP server, it initially runs in introspection-only mode, responding to initialization and tool lists without requiring an environment. Set SEAL_DSN to a Postgres DSN to actually admit actions, and set SEAL_EXECUTORS to your module to enable gateway mode.
- As a Python library, it can be instantiated via Seal(dsn), using methods such as seal.admit(), seal.commit(), and seal.fail(). Supports blind_reclaim=True to restore the legacy takeover behavior.
- Gateway mode: Gateway(seal, earned_autonomy=True) or set SEAL_EARNED_AUTONOMY=1.
- Provides non-engineer documentation: docs/PLAIN-ENGLISH.md.
Applicable scenarios:
- Payment systems that need to prevent agents from double-charging or repeatedly performing irreversible operations.
- Financial operations that need audit and compliance evidence, such as tiered authorization and separation of duties.
- Scenarios that need to prove execution uniqueness and world confirmation to third parties.
- Automated fund movement that needs to dynamically grant autonomy based on historical performance.
Limitations:
- Depends on a Postgres database.
- World confirmation depends on the provider's eventually consistent index, so there is latency.
- In pre-commit world freezing, atomicity between the checker call and the admission INSERT is not possible, so there is a very small window.
- The gateway runs in the user's own infrastructure, but a process on the same host that can read the gateway environment may still steal keys.
- Portable receiptsverification can only prove integrity and origin, and cannot prove completeness (whether other certificates exist). (The information in the introduction section is truncated in the original text; a complete explanation was not provided.)