{
  "schema_version": "1.0.0",
  "service": "agent-decision-gate-api",
  "product_name": "Agent Decision Gate",
  "canonical_origin": "https://agentdecisiongate.com",
  "status": "x402_live_commercial_alpha",
  "purpose": "Turn one-off branch checks into a recurring execution audit chain by carrying previous_receipt_hash into the next checkpoint.",
  "retention_strategy": {
    "core_loop": [
      "Call POST /v1/branches/evaluate for the first checkpoint.",
      "Store the returned receipt.receipt_id and receipt.integrity_hash.",
      "When the same run_id and branch_id continue, send the last receipt.integrity_hash as request.previous_receipt_hash.",
      "Use persist=true when D1/R2-backed public chain verification is needed.",
      "Verify any returned or stored receipt through POST /v1/receipts/verify or GET /v1/receipts/{receipt_id}."
    ],
    "why_agents_return": [
      "the next branch decision needs the prior chain head",
      "another agent can verify why a branch continued or stopped",
      "operators can audit spend, tool use, claims, and branch state over time",
      "a small repeated checkpoint can prevent larger recurring compute or payment losses"
    ],
    "state_handle": {
      "field": "previous_receipt_hash",
      "source": "receipt.integrity_hash from the previous checkpoint",
      "scope": "same run_id and branch_id",
      "conflict_behavior": "when persistence is enabled, stale or mismatched previous_receipt_hash values are rejected as receipt-chain conflicts"
    }
  },
  "machine_instructions": {
    "first_call": {
      "method": "POST",
      "url": "https://agentdecisiongate.com/v1/branches/evaluate",
      "body_hint": {
        "run_id": "stable run identifier",
        "branch_id": "stable branch identifier",
        "previous_receipt_hash": null
      }
    },
    "follow_up_call": {
      "method": "POST",
      "url": "https://agentdecisiongate.com/v1/branches/evaluate?persist=true",
      "body_hint": {
        "run_id": "same run identifier",
        "branch_id": "same branch identifier",
        "previous_receipt_hash": "{last receipt.integrity_hash}"
      }
    },
    "verify": {
      "receipt": "https://agentdecisiongate.com/v1/receipts/verify",
      "lookup": "https://agentdecisiongate.com/v1/receipts/{receipt_id}",
      "lookup_by_hash": "https://agentdecisiongate.com/v1/receipts/by-hash/{integrity_hash}"
    }
  },
  "pricing_hint": {
    "first_checkpoint_usdc": "0.01",
    "follow_up_checkpoint_usdc": "0.01",
    "persisted_receipt_target_usdc": "0.02 after commercial alpha hardening"
  },
  "search_phrases": [
    "recurring agent checkpoint",
    "agent receipt chain",
    "previous_receipt_hash",
    "agent execution audit chain",
    "verifiable branch checkpoint history"
  ]
}