{
  "name": "CrossCompute Agent Trust Policy",
  "version": "1.0.0",
  "updatedAt": "2026-03-09",
  "baseUrl": "https://www.crosscompute.io",
  "executionModel": {
    "defaultMode": "non-spending",
    "spendingRequiresExplicitConsentEnv": "CROSSCOMPUTE_ALLOW_SPEND=true",
    "walletCreationCanBeDisabledEnv": "CROSSCOMPUTE_ALLOW_WALLET_CREATE=false"
  },
  "chargeBoundary": {
    "nonChargingEndpoints": [
      "POST /api/agents/register",
      "GET /api/agents/usage",
      "POST /v1/chat/completions"
    ],
    "chargingEndpoints": [
      "POST /api/agents/topup"
    ],
    "notes": "Only /api/agents/topup is a payment entrypoint. Inference consumes existing credits."
  },
  "allowedActions": [
    "register_agent_account",
    "read_agent_usage",
    "call_openai_compatible_inference",
    "x402_topup_when_explicitly_enabled"
  ],
  "paymentRules": {
    "protocol": "x402",
    "network": "eip155:8453",
    "challengeFieldsMustBeImmutable": true,
    "onchainTxHashExpectedOnSuccess": true
  },
  "observability": {
    "healthEndpoint": "https://www.crosscompute.io/health",
    "paymentHeaderPresenceResponseHeader": "x-crosscompute-payment-header-present",
    "paymentHeaderKindResponseHeader": "x-crosscompute-payment-header-kind",
    "routingResponseHeaders": [
      "x-crosscompute-routing-profile",
      "x-crosscompute-routing-tier",
      "x-crosscompute-routing-budget",
      "x-crosscompute-routing-version",
      "x-crosscompute-routed-model",
      "x-crosscompute-provider",
      "x-crosscompute-price-rule",
      "x-crosscompute-billed-credits"
    ],
    "suggestedPreflightChecks": [
      "GET /health",
      "GET /.well-known/agent-trust-policy.json",
      "GET /openapi.json"
    ]
  },
  "routingProfiles": {
    "acceptedModelAliases": [
      "auto",
      "cheap",
      "medium",
      "premium",
      "eco",
      "balanced"
    ],
    "recommendedUsage": {
      "cheap": "cost_first",
      "medium": "balanced",
      "premium": "quality_first",
      "auto": "adaptive_default"
    },
    "runtimeDefaults": {
      "defaultProfile": "auto",
      "maxFallbacks": 5,
      "runtimeHealthEnabled": true,
      "circuitBreakerFailures": 3,
      "circuitBreakerCooldownMs": 120000,
      "healthAlpha": 0.2,
      "cheapMaxUsd": 0,
      "mediumMaxUsd": 0,
      "premiumMaxUsd": 0,
      "explorationEpsilon": 0
    },
    "anthropicModelIdNote": "Prefer hyphen form like claude-sonnet-4-6."
  },
  "machineDocs": {
    "skill": "https://www.crosscompute.io/agent-skill.md",
    "quickstartScript": "https://www.crosscompute.io/examples/crosscompute-agent-quickstart.mjs",
    "openapi": "https://www.crosscompute.io/openapi.json",
    "llms": "https://www.crosscompute.io/llms.txt"
  }
}
