{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-delegation-body-schema.json",
  "title": "DelegationBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-agentnet-chain-control-api-openapi.yml#/components/schemas/DelegationBody",
  "properties": {
    "delegation_caps": {
      "$ref": "#/$defs/DelegationCaps"
    }
  },
  "type": "object",
  "required": [
    "delegation_caps"
  ],
  "$defs": {
    "DelegationCaps": {
      "properties": {
        "allowed_mcp_domains": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Allowed Mcp Domains"
        },
        "allowed_actions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Allowed Actions"
        },
        "max_spend_atomic_per_day": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Spend Atomic Per Day"
        },
        "evidence_tier_default": {
          "$ref": "#/$defs/EvidenceTier",
          "default": "none"
        }
      },
      "type": "object",
      "title": "DelegationCaps",
      "description": "On-chain or synced delegation limits — intersected with agent policy + key caps."
    },
    "EvidenceTier": {
      "type": "string",
      "enum": [
        "none",
        "l0_batch",
        "chain_anchor"
      ],
      "title": "EvidenceTier",
      "description": "Optional evidence plane activation for a Fleet run."
    }
  }
}