# Escrow-Anything — Zero-Custody AI Agent Metering & Conditional Settlement Engine > Pure Python 3 stdlib SQLite WAL (`BEGIN IMMEDIATE`) double-entry micro-USD metering, 4D budget governance lock, Proof-of-Delivery conditional escrow, multi-party split ledger, and Creem/Escrow.com two-way reconciliation engine at https://escrow.fastmesh.dev over HTTP REST, native Streamable MCP (`POST /mcp`, 9 tools), Causal Bazaar (`escrow_anything_settlement_v1`), and `treg hub` (0% seller commission). ## Core Guarantees & Zero-Custody Boundary - **Zero Fiat Custody (`platform_retained_third_party_funds_micros == 0`)**: Our engine executes deterministic software locks, PoD verification, and split/reconciliation instructions only. All fiat card checkouts, global VAT/GST, and chargebacks stay with **Creem.io (Merchant of Record)**; high-ticket `$500+` milestones route to **Escrow.com**. - **Unbreakable Double-Entry & Non-Negative Balance**: `SUM(debits) == SUM(credits)` in exact integer micro-USD (`1 USD = 1,000,000 micros`) with `CHECK(available_micros >= 0)` and `BEGIN IMMEDIATE` serialization. - **Strict `$0` Billing on Miss, Failure, or Fake-200**: HTTP `422` invalid inputs, PII redline rejections, Cloudflare/CAPTCHA/login-wall `200 OK` shells, empty JSON stubs, and failed PoD deliverables strictly settle at `$0` and release `100%` of locked funds. - **Zero Prompt & Trajectory Resale**: Customer deliverables and execution traces are never sold or used to train third-party models. - **Support**: `ops@fastmesh.dev` ## Verified Gauntlet & Test Metrics - **Unit Tests**: `24/24` passed (`0` warnings under `python3 -W default`). - **Adversarial & Concurrency Gauntlet**: `16/16` scenarios passed (`gauntlet/gauntlet_report.json`, `$0.00` external spend). - **Concurrency Contention**: `16`-thread reserve contention (`6` succeeded, `10` rejected `insufficient_funds`, `0` negative balances, `0` SQLite lock errors). - **Idempotency Replay Storm**: `12`-thread duplicate `idem_key` storm created `1` reservation (`0` double-charges); mutated payloads raise `409 IDEMPOTENCY_CONFLICT`. - **Ledger Integrity Proof**: `drift_micros == 0`, `trial_balance_drift_micros == 0`, `negative_balance_count == 0`, `platform_retained_third_party_funds_micros == 0`. ## Endpoints & Agent Discovery - [Web Console & 5-Second Try-Now](https://escrow.fastmesh.dev/): Zero-signup interactive console simulating all 5 modes with live double-entry ledger balance view. - [Health Check](https://escrow.fastmesh.dev/health): Live liveness, SQLite WAL status, zero-custody flag, and ledger drift proof (`GET /health`). - [Native Streamable MCP Endpoint](https://escrow.fastmesh.dev/mcp): JSON-RPC 2.0 MCP server (`initialize`, `tools/list`, `tools/call`: `escrow_reserve`, `escrow_settle`, `escrow_budget_check`, `escrow_approval_decide`, `escrow_pod_create`, `escrow_pod_verify`, `escrow_split`, `escrow_reconcile`, `escrow_balance`). - [OpenAPI 3.1.0 Specification](https://escrow.fastmesh.dev/openapi.json): Complete machine-readable REST + MCP schema. - [Agent Skill Playbook](https://escrow.fastmesh.dev/skill.md): Concrete REST, MCP, treg hub, and Creem webhook verification guide. - [Mode 1 Pre-Reserve & Settle](https://escrow.fastmesh.dev/v1/reserve): Atomic reserve (`POST /v1/reserve`), exact settle (`POST /v1/settle`), and release (`POST /v1/release`). - [Mode 2 4D Budget Governance](https://escrow.fastmesh.dev/v1/budget/check): Policy config (`POST /v1/budget/policy`), 4D check (`POST /v1/budget/check`), and ticket decision (`POST /v1/approvals/{ticket_id}/decide`). - [Mode 3 Proof-of-Delivery Escrow](https://escrow.fastmesh.dev/v1/escrow/create): Conditional lock (`POST /v1/escrow/create`), deliverable verification (`POST /v1/escrow/deliver`), and status (`GET /v1/escrow/{escrow_id}`). - [Mode 4 Multi-Party Split Ledger](https://escrow.fastmesh.dev/v1/splits/execute): Integer bps split (`POST /v1/splits/execute`) and atomic clawback reversal (`POST /v1/splits/reverse`). - [Mode 5 Creem Webhook & Reconciliation](https://escrow.fastmesh.dev/webhooks/creem): HMAC-SHA256 webhook (`POST /webhooks/creem`), Escrow.com milestone sync (`POST /v1/escrow-com/record`), two-way report (`GET /v1/reconcile/report`), and ledger audit (`GET /v1/ledger/audit`). ## Creem Prepaid Credit Packs (Non-Expiring, One-Time) - **Starter (`$9`)**: `sku_escrow_starter_9` — `9,000,000` micro-USD (`$9.00` value) — https://www.creem.io/product/prod_escrow_anything_starter_9 - **Pro (Recommended) (`$29`)**: `sku_escrow_pro_29` — `29,000,000` micro-USD (`$29.00` value) — https://www.creem.io/product/prod_escrow_anything_pro_29 - **Scale (`$99`)**: `sku_escrow_scale_99` — `99,000,000` micro-USD (`$99.00` value) — https://www.creem.io/product/prod_escrow_anything_scale_99 - **Enterprise (`$299`)**: `sku_escrow_enterprise_299` — `299,000,000` micro-USD (`$299.00` value) — https://www.creem.io/product/prod_escrow_anything_enterprise_299 ## Multi-Channel Distribution - **Causal Bazaar Public Card**: `escrow_anything_settlement_v1` (`hand_id: a05_escrow_anything_hand_v1`, `is_public=1`, `price_micros=10000`, runner `run_hand.py`). - **Treg Hub 0%-Commission Recipe**: `escrow-anything` (`treg_hub/recipe.json`, `treg_hub/run.js`, `treg_hub/check.json`, `commission_pct=0`, strict `$0` on fake-200/failure). ## Technical Settlement & Governance Guides (25 Pages) - [AI Agent Pre-Auth Reserve & Exact Settle API in Micro-USD (Zero Negative Balance)](https://escrow.fastmesh.dev/guides/ai-agent-pre-auth-reserve-settle-api-micro-usd): `mode1_reserve_settle` — Target query: `AI agent pre-auth reserve settle API micro-USD` (1133 words). - [How to Stop Concurrent AI Agent Negative-Balance Overruns With SQLite WAL Locks](https://escrow.fastmesh.dev/guides/stop-concurrent-ai-agent-negative-balance-overruns): `mode1_reserve_settle` — Target query: `stop concurrent AI agent negative balance overruns SQLite WAL` (1098 words). - [Anti-Overrun MCP Settlement With $0 Automatic Release on Fake-200 & Empty Stubs](https://escrow.fastmesh.dev/guides/anti-overrun-mcp-settlement-fake-200-zero-charge): `mode1_reserve_settle` — Target query: `anti-overrun MCP settlement zero charge on fake 200` (1108 words). - [Lago & Orb Alternative for Inline Pre-Execution AI Agent Metering](https://escrow.fastmesh.dev/guides/lago-orb-alternative-inline-pre-execution-agent-metering): `mode1_reserve_settle` — Target query: `Lago Orb alternative inline pre-execution AI agent metering` (1126 words). - [Stripe Billing & MPP Alternative for Micro-USD AI Agent Wallets & Creem MoR](https://escrow.fastmesh.dev/guides/stripe-billing-mpp-alternative-micro-usd-agent-wallet): `mode1_reserve_settle` — Target query: `Stripe Billing MPP alternative micro-USD AI agent wallet` (1063 words). - [Enforce 4D AI Agent Hard Budget Caps (Per-Call, Per-Hour, Per-Day, Per-Task)](https://escrow.fastmesh.dev/guides/ai-agent-hard-budget-caps-per-call-hour-day-task): `mode2_budget_lock` — Target query: `AI agent hard budget caps per call hour day task` (1078 words). - [Human-in-the-Loop Ask Approval Budget Locks With 100% Auto-Unfreeze on Reject](https://escrow.fastmesh.dev/guides/human-in-the-loop-ask-approval-budget-lock-auto-unfreeze): `mode2_budget_lock` — Target query: `human in the loop ask approval budget lock auto unfreeze` (1057 words). - [Declarative Allow / Ask / Deny Tool Governance Engine for MCP AI Agents](https://escrow.fastmesh.dev/guides/declarative-allow-ask-deny-tool-governance-mcp-agents): `mode2_budget_lock` — Target query: `declarative allow ask deny tool governance MCP agents` (1127 words). - [Prevent Runaway LLM Tool Loops From Draining API Keys With Atomic Spend Locks](https://escrow.fastmesh.dev/guides/prevent-runaway-llm-tool-loops-hard-spend-ceiling): `mode2_budget_lock` — Target query: `prevent runaway LLM tool loops hard spend ceiling` (1038 words). - [Naive & Vetta Alternative With Zero Negative Balance & Zero Prompt Resale](https://escrow.fastmesh.dev/guides/naive-vetta-alternative-zero-negative-balance-mcp-governance): `mode2_budget_lock` — Target query: `Naive Vetta alternative zero negative balance MCP governance` (1038 words). - [Proof-of-Delivery AI Agent Escrow With Automated SHA-256 & JSON Schema Checks](https://escrow.fastmesh.dev/guides/proof-of-delivery-ai-agent-escrow-sha256-json-schema): `mode3_proof_of_delivery` — Target query: `Proof of Delivery AI agent escrow SHA-256 JSON schema` (1072 words). - [Conditional Escrow API for Autonomous AI Agent Subcontractors (100% Auto-Refund)](https://escrow.fastmesh.dev/guides/conditional-escrow-api-for-autonomous-agent-subcontractors): `mode3_proof_of_delivery` — Target query: `conditional escrow API for autonomous AI agent subcontractors` (1026 words). - [Escrow.com Alternative for Sub-$500 High-Frequency AI Agent Micro-Tasks](https://escrow.fastmesh.dev/guides/escrow-com-alternative-for-sub-500-micro-agent-tasks): `mode3_proof_of_delivery` — Target query: `Escrow.com alternative for sub 500 micro agent tasks` (1057 words). - [HTTP Verifier & Composite Proof-of-Delivery Conditional Release Escrow API](https://escrow.fastmesh.dev/guides/http-verifier-webhook-conditional-release-escrow-api): `mode3_proof_of_delivery` — Target query: `HTTP verifier webhook conditional release escrow API` (1056 words). - [Zero-Trust Agent-to-Agent Settlement With Instant Refund on Deliverable Mismatch](https://escrow.fastmesh.dev/guides/zero-trust-agent-to-agent-settlement-auto-refund-mismatch): `mode3_proof_of_delivery` — Target query: `zero trust agent to agent settlement auto refund mismatch` (989 words). - [Integer-Conserving Multi-Party Split Ledger in Micro-USD (0% Internal Split Fee)](https://escrow.fastmesh.dev/guides/integer-conserving-multi-party-split-ledger-micro-usd): `mode4_split_ledger` — Target query: `integer conserving multi-party split ledger micro-USD` (1107 words). - [Zero-Cent-Drift Basis-Point Revenue Split API for Tool Creators & Affiliates](https://escrow.fastmesh.dev/guides/zero-cent-drift-basis-point-revenue-split-api-creators-affiliates): `mode4_split_ledger` — Target query: `zero cent drift basis point revenue split API creators affiliates` (1090 words). - [Avoid Creem's +2% Affiliate Fee With a 0%-Surcharge Double-Entry Split Ledger](https://escrow.fastmesh.dev/guides/creem-plus-2-percent-affiliate-fee-alternative-split-ledger): `mode4_split_ledger` — Target query: `avoid Creem 2 percent affiliate fee internal split ledger` (1070 words). - [Idempotent Multi-Party Payout Splits (idem_key + 409 Guard) With Atomic Reversal](https://escrow.fastmesh.dev/guides/idempotent-multi-party-payout-splits-with-atomic-reversal): `mode4_split_ledger` — Target query: `idempotent multi party payout splits atomic reversal` (1005 words). - [Polar.sh Alternative for AI Tool Marketplaces With 0% Int'l Surcharge & Splits](https://escrow.fastmesh.dev/guides/polar-sh-alternative-zero-surcharge-agent-marketplace-splits): `mode4_split_ledger` — Target query: `Polar.sh alternative zero international surcharge AI marketplace splits` (1064 words). - [Creem Webhook HMAC-SHA256 Idempotency & Automatic Split Clawback on Refunds](https://escrow.fastmesh.dev/guides/creem-webhook-hmac-sha256-idempotency-refund-clawback): `mode5_creem_reconcile` — Target query: `Creem webhook HMAC SHA256 idempotency refund clawback` (1101 words). - [Zero-Custody MoR Settlement Architecture Combining Creem.io & Escrow.com](https://escrow.fastmesh.dev/guides/zero-custody-mor-settlement-architecture-creem-escrow-com): `mode5_creem_reconcile` — Target query: `zero custody MoR settlement architecture Creem Escrow.com` (955 words). - [SQLite WAL BEGIN IMMEDIATE Double-Entry Ledger With SUM(Debits)==SUM(Credits)](https://escrow.fastmesh.dev/guides/sqlite-wal-begin-immediate-double-entry-ledger-audit-proof): `mode5_creem_reconcile` — Target query: `SQLite WAL BEGIN IMMEDIATE double entry ledger audit proof` (954 words). - [Two-Way Financial Reconciliation API for Creem MoR & Escrow.com Milestones](https://escrow.fastmesh.dev/guides/two-way-reconciliation-api-creem-mor-and-escrow-com-milestones): `mode5_creem_reconcile` — Target query: `two way reconciliation API Creem MoR Escrow.com milestones` (946 words). - [Zero-Prompt-Resale, PII-Redline Agent Billing & Settlement Rail (LAW1 Compliant)](https://escrow.fastmesh.dev/guides/zero-prompt-resale-privacy-preserving-agent-billing-rail): `mode5_creem_reconcile` — Target query: `zero prompt resale PII redline agent billing settlement rail` (1071 words).