{
  "protocol": "lain/1.0",
  "provider": "LedgerProof Autonomous Network",
  "law": "An autonomous system may not advance to a higher-confidence state without acquiring independently verifiable evidence. Need -> Evidence -> Settlement. Every settlement mints a permanent evidence-graph node; trust accumulates as capital.",
  "description": "Machine-consumable evidence and confidence. Every deliverable's hash is cryptographically anchored in a public, append-only log; verification is independent of this network's availability.",
  "pricing_note": "Launch pricing in effect: confidence.resolve and the spot capabilities (answer.record-search, evidence.verify, receipt.agent-run) each settle at $0.05 USDC. A dry_run / the x402 challenge always returns the live price.",
  "live_manifest": "https://ledgerproofhq.io/api/lain/capabilities",
  "agent_card": "https://ledgerproofhq.io/.well-known/agent-card.json",
  "endpoints": {
    "capabilities": "GET https://ledgerproofhq.io/api/lain/capabilities",
    "request": "POST https://ledgerproofhq.io/api/lain/request",
    "autonomous_pay": "POST https://ledgerproofhq.io/api/lain/request with settlement:\"x402\" — real HTTP 402, the door where autonomous payment happens",
    "job": "GET https://ledgerproofhq.io/api/lain/job?id={job_id}",
    "confidence": "POST https://ledgerproofhq.io/api/lain/confidence",
    "evidence_graph": "GET https://ledgerproofhq.io/api/lain/confidence/{subject_key}",
    "enroll": "POST https://ledgerproofhq.io/api/lain/enroll",
    "watch": "POST https://ledgerproofhq.io/api/lain/watch",
    "mcp": "https://ledgerproofhq.io/api/lain/mcp",
    "agent_card": "GET https://ledgerproofhq.io/.well-known/agent-card.json — A2A Agent Card (identity, skills, x402 pay door)",
    "blocker_feed": "GET https://ledgerproofhq.io/api/lain/feed/blockers",
    "x402_resolve": "POST https://ledgerproofhq.io/api/lain/x402/resolve"
  },
  "mcp": {
    "transport": "streamable-http",
    "url": "https://ledgerproofhq.io/api/lain/mcp",
    "role": "discovery + orchestration: list capabilities, mint a free sample receipt, verify a receipt. Autonomous PAYMENT happens at the REST pay_door (x402.pay_door), which returns a real HTTP 402 that standard x402 wallet tooling auto-pays.",
    "tools": ["resolve_confidence", "subject_evidence_graph", "discover_opportunities", "fund_opportunity", "get_sample_receipt", "discover_capabilities", "request_capability", "get_job", "verify"]
  },
  "x402": {
    "principle": "An agent pays inline over HTTP 402 — no human checkout. Evidence releases only against a verified + settled payment (fail-closed).",
    "pay_door": "POST https://ledgerproofhq.io/api/lain/request with settlement:\"x402\" — the canonical autonomous-payment endpoint. Returns a real HTTP 402 challenge (USDC on Base) that x402-fetch / Coinbase AgentKit auto-pay from the agent's own wallet; re-send with the signed X-PAYMENT to settle inline. No enrollment, no human. A cold request with no settlement now defaults to this x402 challenge (never a human checkout).",
    "capability_price": "0.05 USDC each (launch pricing) — receipt.agent-run, evidence.verify, answer.record-search",
    "network": "base",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "settled_via": "Coinbase CDP facilitator",
    "products": { "receipt": "0.25 USDC", "certificate": "0.50 USDC (adds a fresh anchored receipt with verify_url)" },
    "discover": "GET https://ledgerproofhq.io/api/lain/feed/blockers — open confidence gaps; each blocker carries a self-describing price + resolution endpoint",
    "resolve": "POST https://ledgerproofhq.io/api/lain/x402/resolve {obligation_id, product} — 402 -> pay -> evidence (0.25 / 0.50 USDC obligation tier)"
  },
  "client_libraries": {
    "npm": "@ledgerproof/laen",
    "install": "npm i @ledgerproof/laen viem",
    "purpose": "Drop-in halt -> pay (x402) -> resume interceptor for JS/TS agents: unblock() / withLaen(). The principal's budget policy gates every spend.",
    "mcp_registry": "io.ledgerproofhq/lain"
  },
  "settlement": {
    "rule": "payment captures only after execution succeeded AND the anchored evidence exists; failed work cannot be charged; every settlement mints an evidence-graph node the next agent inherits",
    "states": ["REQUESTED", "QUOTED", "EXECUTING", "PROOF_PENDING", "PROOF_CONFIRMED", "AUTHORIZED", "CAPTURED", "DELIVERED", "REFUSED", "FAILED", "DISPUTED", "REFUNDED"]
  },
  "capabilities": [
    {
      "capability_id": "confidence.resolve",
      "summary": "Submit a confidence gap about a subject; receive independently verifiable evidence from the anchored record, a disclosed+recomputable suggested confidence, and the subject's accumulated evidence-graph history. Attests evidence integrity only, never conclusions.",
      "price": { "currency": "USD", "amount": 0.05 },
      "free_preview": "dry_run:true",
      "buy": "MCP resolve_confidence or POST /api/lain/confidence; dry_run:true is a free preview"
    },
    {
      "capability_id": "answer.record-search",
      "summary": "A proven, cited answer from the anchored public record (FDA recalls/approvals, SEC EDGAR, sanctions-list snapshots)",
      "price": { "currency": "USD", "amount": 0.05 },
      "buy": "request_capability settlement:\"x402\" -> HTTP 402 at the pay_door -> sign X-PAYMENT -> settle (autonomous, USDC on Base)"
    },
    {
      "capability_id": "receipt.agent-run",
      "summary": "Verified execution receipt for any agent action — canonical run metadata, hash-anchored; attests existence and integrity only",
      "price": { "currency": "USD", "amount": 0.05 },
      "free_sample": "MCP get_sample_receipt, one per caller per day",
      "buy": "request_capability settlement:\"x402\" -> HTTP 402 at the pay_door -> sign X-PAYMENT -> settle (autonomous, USDC on Base)"
    },
    {
      "capability_id": "recall.watch",
      "summary": "Standing subscription: monthly retainer + per-alert fee for each new matching recall, each anchored",
      "price": { "currency": "USD", "amount": 9.00, "period": "month" },
      "buy": "POST https://ledgerproofhq.io/api/lain/watch"
    },
    {
      "capability_id": "evidence.verify",
      "summary": "Machine-checkable evidence package for a digital claim or document hash (existence-at-time)",
      "price": { "currency": "USD", "amount": 0.05 },
      "buy": "request_capability settlement:\"x402\" -> HTTP 402 at the pay_door -> sign X-PAYMENT -> settle (autonomous, USDC on Base)"
    }
  ],
  "verify": "https://verify.ledgerproofhq.io/?seq={sequence}",
  "keys": "https://ledgerproofhq.io/.well-known/ledgerproof-key.json"
}
