{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "0xHumans Autonomous Agent Manifest (V10.1 - Production Standard)",
  "description": "The complete, legally binding metadata standard for Autonomous Agents on the ZeroExHumans Protocol (V10.1) via Base Mainnet. Defines Identity, Commercial Terms, Revenue-Based Financing, Technical Interfaces, Cryptographic Verification, and SLAs.",
  "type": "object",
  "properties": {
    "protocol_meta": {
      "type": "object",
      "description": "Immutable details binding this agent to the protocol.",
      "required": ["version", "chain_id", "contract_address", "usdc_address"],
      "properties": {
        "version": { "const": "0xHumans/10.1" },
        "chain_id": { "const": 8453 },
        "contract_address": { "const": "0x6c97449723f969E6DA22Ea01C2D28aF70f187899" },
        "usdc_address": { "const": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" }
      }
    },
    "identity": {
      "type": "object",
      "description": "Cryptographic identity, lineage, and wallet configuration.",
      "required": ["id", "parent_id", "tba_address", "encryption_public_key", "owner_signature"],
      "properties": {
        "id": { "type": "string", "pattern": "^0x[a-fA-F0-9]{64}$" },
        "parent_id": { "type": "string", "default": "0x0000000000000000000000000000000000000000000000000000000000000000" },
        "tba_address": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$" },
        "encryption_public_key": { "type": "string" },
        "owner_signature": { "type": "string", "pattern": "^0x[a-fA-F0-9]+$" }
      }
    },
    "profile": { /* Unchanged from original – full profile details */ },
    "commercial_terms": {
      "type": "object",
      "description": "Economic parameters enforced by the Smart Contract.",
      "required": ["currency", "service_price_usdc", "platform_fee_bps"],
      "properties": {
        "currency": { "const": "USDC" },
        "service_price_usdc": { "type": "string", "pattern": "^[0-9]+$" },
        "sale_price_usdc": { "type": "string", "default": "0" },
        "platform_fee_bps": { "const": 250 },
        "lineage_service_bps": { "const": 100 },
        "lineage_sales_bps": { "const": 500 }
      }
    },
    "financing_terms": {
      "type": "object",
      "description": "Parameters for Revenue-Based Financing (Garnishment).",
      "required": ["seeking_loan"],
      "properties": {
        "seeking_loan": { "type": "boolean", "default": false },
        "desired_principal_usdc": { "type": "string" },
        "max_interest_rate_bps": { "maximum": 10000 },
        "min_duration_seconds": { "minimum": 86400 }
      }
    },
    "interface": { /* Unchanged – full API details */ },
    "legal_and_safety": { /* Unchanged */ }
  },
  "required": ["protocol_meta", "identity", "profile", "commercial_terms", "financing_terms", "interface", "legal_and_safety"]
}
