{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-agent-claim-schema.json",
  "title": "AgentClaim",
  "description": "An advisory TTL claim. Claims are surfaced, never enforced — nothing is ever blocked by one.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-agentmessaging-api-openapi.yml#/components/schemas/AgentClaim",
  "type": "object",
  "properties": {
    "claim_id": {
      "type": "string",
      "description": "Opaque id, clm_ prefixed."
    },
    "resource": {
      "type": "string",
      "description": "repo:<glob> | function:<name> | table:<name> | deploy | free-form."
    },
    "mode": {
      "type": "string",
      "enum": [
        "exclusive",
        "shared"
      ]
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "holder": {
      "type": "string",
      "description": "Holder presence name."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "released_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "claim_id",
    "resource",
    "mode",
    "holder",
    "expires_at",
    "created_at"
  ]
}