{
 "openapi": "3.1.0",
 "info": {
  "title": "RotaGrant API",
  "version": "0.1.0",
  "description": "The HTTP API of a RotaGrant deployment, made from the product's own route definitions at the commit named in `x-rotascale-source`. Nothing here is written by hand.\n\nThere is no shared endpoint. RotaGrant runs in your environment, and your deployment serves its own copy of this description at `/api/docs`. That copy is the authority on what your version has and which features are switched on; this one is the reference for one commit of the main line. The version is 0.1.0: routes and shapes can still change.\n\nEvery route says who may call it. Most need a bearer token from the identity provider your deployment uses, held by a person with the role named. The routes an SDK calls also accept a workspace API key. A few are open, and say why."
 },
 "paths": {
  "/healthz": {
   "get": {
    "tags": [
     "Health and public keys"
    ],
    "summary": "Healthz",
    "operationId": "healthz_healthz_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Healthz Healthz Get"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   }
  },
  "/.well-known/jwks.json": {
   "get": {
    "tags": [
     "Health and public keys"
    ],
    "summary": "Jwks",
    "description": "The public half of the signing key, as a JWK set.",
    "operationId": "jwks__well_known_jwks_json_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Jwks  Well Known Jwks Json Get"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   }
  },
  "/status": {
   "get": {
    "tags": [
     "Health and public keys"
    ],
    "summary": "Status ",
    "description": "Non-secret posture. Verifiable without shell access — an operator, an\nauditor, or a support engineer can all confirm how this deployment is\nconfigured without anyone handing out a login.",
    "operationId": "status__status_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Status  Status Get"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   }
  },
  "/v1/agents": {
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Create Agent",
    "operationId": "create_agent_v1_agents_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AgentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AgentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin",
    "description": "**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "get": {
    "tags": [
     "Registry"
    ],
    "summary": "List Agents",
    "operationId": "list_agents_v1_agents_get",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "name": "orphans",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "only agents with no owner",
       "default": false,
       "title": "Orphans"
      },
      "description": "only agents with no owner"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AgentOut"
         },
         "title": "Response List Agents V1 Agents Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/agents/resolve": {
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Resolve Agent",
    "description": "An agent names itself. Called by the SDK on first contact.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "resolve_agent_v1_agents_resolve_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ResolveIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ResolveOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/agents/{agent_id}/claim": {
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Claim Agent",
    "description": "Name an accountable owner — the act that turns a discovered process into\na governed one. Deliberately a human's decision, never a key's.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "claim_agent_v1_agents__agent_id__claim_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ClaimIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AgentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/agents/{agent_id}/jurisdiction": {
   "put": {
    "tags": [
     "Registry"
    ],
    "summary": "Set Jurisdiction",
    "description": "Say which regime governs this agent, overriding the workspace's.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "set_jurisdiction_v1_agents__agent_id__jurisdiction_put",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/JurisdictionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AgentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/agents/{agent_id}": {
   "get": {
    "tags": [
     "Registry"
    ],
    "summary": "Get Agent",
    "operationId": "get_agent_v1_agents__agent_id__get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AgentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/agents/{agent_id}/provenance": {
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Add Provenance",
    "description": "Record a configuration snapshot.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "add_provenance_v1_agents__agent_id__provenance_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProvenanceIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProvenanceOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   },
   "get": {
    "tags": [
     "Registry"
    ],
    "summary": "Agent Provenance",
    "description": "Every recorded configuration of this agent, newest first.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "agent_provenance_v1_agents__agent_id__provenance_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ProvenanceRecordOut"
         },
         "title": "Response Agent Provenance V1 Agents  Agent Id  Provenance Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/agents/{agent_id}/decommission": {
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Decommission Agent",
    "description": "Retire an agent: revoke what it holds, keep everything it did.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "decommission_agent_v1_agents__agent_id__decommission_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DecommissionIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DecommissionedOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/models": {
   "get": {
    "tags": [
     "Registry"
    ],
    "summary": "List Models",
    "operationId": "list_models_v1_models_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/ModelOut"
         },
         "type": "array",
         "title": "Response List Models V1 Models Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "post": {
    "tags": [
     "Registry"
    ],
    "summary": "Create Model",
    "operationId": "create_model_v1_models_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ModelIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ModelCreatedOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin",
    "description": "**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/grants/preview": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Preview Grant",
    "description": "The exact bytes this grant's attestation will cover.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "preview_grant_v1_grants_preview_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GrantIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PreviewOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/grants": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Issue Grant",
    "operationId": "issue_grant_v1_grants_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GrantIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin",
    "description": "**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "List Grants",
    "description": "A page of the workspace's grants, and the size of the set it came from.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_grants_v1_grants_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     },
     {
      "name": "state",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "pattern": "^(in_force|pending_approval|expired|revoked|superseded|all)$",
       "description": "in_force (default), pending_approval, expired, revoked or all",
       "default": "in_force",
       "title": "State"
      },
      "description": "in_force (default), pending_approval, expired, revoked or all"
     },
     {
      "name": "not_enforcing",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "description": "only grants in observe, shadow or canary (or only enforcing ones)",
       "title": "Not Enforcing"
      },
      "description": "only grants in observe, shadow or canary (or only enforcing ones)"
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "matches a grant id, a principal or an agent's name",
       "title": "Q"
      },
      "description": "matches a grant id, a principal or an agent's name"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "column, '-' prefix for descending",
       "title": "Sort"
      },
      "description": "column, '-' prefix for descending"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 25,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantPageOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grant-families": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Create Family",
    "description": "Authorise a shape of work, for a rung, once.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "create_family_v1_grant_families_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FamilyIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   },
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "List Families",
    "operationId": "list_families_v1_grant_families_get",
    "parameters": [
     {
      "name": "environment",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Environment"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/GrantOut"
         },
         "title": "Response List Families V1 Grant Families Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/grant-families/{family_id}/instantiate": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Instantiate Family",
    "description": "Give one agent authority from a family.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "instantiate_family_v1_grant_families__family_id__instantiate_post",
    "parameters": [
     {
      "name": "family_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Family Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InstantiateIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/grants/{grant_id}/delegate": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Delegate Grant",
    "description": "Create a child grant. Rejected unless it is a subset on every axis.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "delegate_grant_v1_grants__grant_id__delegate_post",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/GrantIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/authorize": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Authorize",
    "description": "The hot path. Every consequential agent action passes through here.\n\nReturns 200 with the decision rather than an error status even when the\nanswer is no: a refusal is a normal, expected outcome that the caller must\nhandle, and it is evidence either way.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "authorize_v1_authorize_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AuthorizeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AuthorizeOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/capabilities/exchange": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Exchange Capability",
    "description": "A narrower token from a wider one, for a sub-agent.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "exchange_capability_v1_capabilities_exchange_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ExchangeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Exchange Capability V1 Capabilities Exchange Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/decisions/{ledger_id}/settle": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Settle Decision",
    "description": "Tell us whether the held action actually happened.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "settle_decision_v1_decisions__ledger_id__settle_post",
    "parameters": [
     {
      "name": "ledger_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Ledger Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SettleIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Settle Decision V1 Decisions  Ledger Id  Settle Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/grants/pending": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "List Pending",
    "description": "Grants waiting on a second named approver.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_pending_v1_grants_pending_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/GrantOut"
         },
         "type": "array",
         "title": "Response List Pending V1 Grants Pending Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Get Grant",
    "description": "One grant.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "get_grant_v1_grants__grant_id__get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/approve": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Approve Grant",
    "description": "A second named human signs the same bounds, and the grant becomes active.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "approve_grant_v1_grants__grant_id__approve_post",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ApproveIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/grants/revoke-superseded": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Revoke Superseded Grants",
    "description": "Retire the copies an automation left behind, as one recorded act.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "revoke_superseded_grants_v1_grants_revoke_superseded_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RevokeSupersededIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RevokeSupersededOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/grants/{grant_id}/revoke": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Revoke Grant",
    "description": "Revoke a grant and everything that inherited from it.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "revoke_grant_v1_grants__grant_id__revoke_post",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RevokeIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RevokedOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/agents/{agent_id}/grants": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Agent Grants",
    "description": "What is this agent allowed to do, right now?\n\nOne query. Answering it today means reading four config systems and hoping.\n\n**Who may call it:** any role or an API key.",
    "operationId": "agent_grants_v1_agents__agent_id__grants_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/GrantOut"
         },
         "title": "Response Agent Grants V1 Agents  Agent Id  Grants Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "any role or an API key"
   }
  },
  "/v1/assurance-file": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Assurance File",
    "description": "One document showing everything a named person authorised, and whether\nthe bounds held.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "assurance_file_v1_assurance_file_get",
    "parameters": [
     {
      "name": "subject",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Subject"
      }
     },
     {
      "name": "days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 90,
       "title": "Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssuranceFileOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/assurance": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Assurance",
    "description": "Did the bounds this grant carries actually hold?\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_assurance_v1_grants__grant_id__assurance_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssuranceOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/chain": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Chain",
    "description": "The path from this grant back to the human at its root.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_chain_v1_grants__grant_id__chain_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChainOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/attestation": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Attestation",
    "description": "Who authorised this, and does the grant still match what they signed?\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_attestation_v1_grants__grant_id__attestation_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AttestationOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/ledger": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Ledger",
    "description": "Every exercise of this authority, including the refusals.\n\nAn agent that tried something forbidden and was stopped is exactly what a\nsupervisor wants to see — so denials are first-class rows here, not silence.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_ledger_v1_grants__grant_id__ledger_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/LedgerEntryOut"
         },
         "title": "Response Grant Ledger V1 Grants  Grant Id  Ledger Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/ledger/{ledger_id}/replay": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Replay Decision",
    "description": "Re-decide a recorded authorisation from its own sealed context.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "replay_decision_v1_ledger__ledger_id__replay_get",
    "parameters": [
     {
      "name": "ledger_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Ledger Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReplayOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/enforcement": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Set Enforcement",
    "description": "Move a grant along the rollout ladder.\n\nPromotion and demotion both run through here. Demoting is a legitimate and\nexpected move — a canary whose refusal rate turns out to be wrong should go\nback to observe rather than be switched off, because switching it off loses\nthe measurement that would tell you when it is ready.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "set_enforcement_v1_grants__grant_id__enforcement_post",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PromoteIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GrantOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/grants/{grant_id}/rollout": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Rollout",
    "description": "What this grant would have refused, and how to read it.\n\nThe report a team looks at on Friday before promoting. Because the policy\ndecides identically in every mode and both answers are recorded, this needs\nno simulator — it is an aggregation over what already happened.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_rollout_v1_grants__grant_id__rollout_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RolloutOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/replay": {
   "post": {
    "tags": [
     "Authority"
    ],
    "summary": "Replay",
    "description": "Re-decide real history under a different policy.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "replay_v1_replay_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReplayIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReplaySweepOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/ledger/{ledger_id}/remedies": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Ledger Remedies",
    "description": "Which control would have prevented this, and what would it have cost?\n\nA remedy that prevents the incident is easy. A remedy whose cost elsewhere\nyou can state is usable. Each candidate is replayed across the same grant's\nhistory so the second number is real.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "ledger_remedies_v1_ledger__ledger_id__remedies_get",
    "parameters": [
     {
      "name": "ledger_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Ledger Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RemediesOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/drift": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Grant Drift",
    "description": "Has the agent changed since this authority was issued?\n\nReported rather than enforced. Blocking on drift would break production on\nevery deploy, and a control people disable in week one protects nothing —\nbut a grant whose subject moved underneath it is a fact the person\naccountable for it should be told.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "grant_drift_v1_grants__grant_id__drift_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProvenanceDriftOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/authority/outcomes": {
   "get": {
    "tags": [
     "Authority"
    ],
    "summary": "Outcomes",
    "description": "The decision vocabulary, so clients can branch on it without guessing.",
    "operationId": "outcomes_v1_authority_outcomes_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Outcomes V1 Authority Outcomes Get"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   }
  },
  "/v1/capabilities/incidents": {
   "post": {
    "tags": [
     "Authority",
     "Capabilities"
    ],
    "summary": "Report Incident",
    "description": "Report a capability token that turned up where it should not have.",
    "operationId": "report_incident_v1_capabilities_incidents_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IncidentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/IncidentRecordedOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   },
   "get": {
    "tags": [
     "Authority",
     "Capabilities"
    ],
    "summary": "List Incidents",
    "description": "Every capability incident, ours and theirs, newest first.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_incidents_v1_capabilities_incidents_get",
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 100,
       "title": "Limit"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/IncidentOut"
         },
         "title": "Response List Incidents V1 Capabilities Incidents Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/grants/{grant_id}/drill/prediction": {
   "get": {
    "tags": [
     "Authority",
     "Authority"
    ],
    "summary": "Drill Prediction",
    "description": "What pulling the kill switch here would stop, without stopping it.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "drill_prediction_v1_grants__grant_id__drill_prediction_get",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DrillPredictionOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/drills": {
   "get": {
    "tags": [
     "Authority",
     "Authority"
    ],
    "summary": "Drill History",
    "operationId": "drill_history_v1_drills_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/DrillOut"
         },
         "type": "array",
         "title": "Response Drill History V1 Drills Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/grants/{grant_id}/drill": {
   "post": {
    "tags": [
     "Authority",
     "Authority"
    ],
    "summary": "Run Drill",
    "description": "Exercise the kill switch against a real delegation tree.\n\n**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "run_drill_v1_grants__grant_id__drill_post",
    "parameters": [
     {
      "name": "grant_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Grant Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DrillIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DrillOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin"
   }
  },
  "/v1/drills/{drill_id}/artefact": {
   "get": {
    "tags": [
     "Authority",
     "Authority"
    ],
    "summary": "Drill Artefact",
    "description": "The sealed record of a drill.\n\nNo `response_model`: the signature covers the canonical JSON, and a model\nthat reordered or defaulted a field would return a body that no longer\nverifies against its own seal. Same reason as the conformance claim.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "drill_artefact_v1_drills__drill_id__artefact_get",
    "parameters": [
     {
      "name": "drill_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Drill Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Drill Artefact V1 Drills  Drill Id  Artefact Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/signing-keys/challenge": {
   "post": {
    "tags": [
     "Personal signing keys"
    ],
    "summary": "Registration Challenge",
    "description": "Options for registering an authenticator.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "registration_challenge_v1_signing_keys_challenge_post",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ChallengeOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/signing-keys": {
   "get": {
    "tags": [
     "Personal signing keys"
    ],
    "summary": "List Keys",
    "description": "Every registered key in the workspace.\n\nVisible to any reader rather than only to its owner: which senior managers\ncan sign personally, and which are still relying on the platform key, is a\nfact the second line of defence needs.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_keys_v1_signing_keys_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/KeyOut"
         },
         "type": "array",
         "title": "Response List Keys V1 Signing Keys Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   },
   "post": {
    "tags": [
     "Personal signing keys"
    ],
    "summary": "Register Key",
    "description": "Store the public half of a newly created credential.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "register_key_v1_signing_keys_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RegisterIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeyOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/signing-keys/{key_id}/revoke": {
   "post": {
    "tags": [
     "Personal signing keys"
    ],
    "summary": "Revoke Key",
    "description": "Retire a key. The row stays, and so does its public half.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "revoke_key_v1_signing_keys__key_id__revoke_post",
    "parameters": [
     {
      "name": "key_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeyOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/deployment/configuration": {
   "get": {
    "tags": [
     "Deployment"
    ],
    "summary": "Deployment Configuration",
    "description": "Every setting safe to display, its source, and any findings.\n\n**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "deployment_configuration_v1_deployment_configuration_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ConfigurationOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin"
   }
  },
  "/v1/deployment/egress": {
   "get": {
    "tags": [
     "Deployment"
    ],
    "summary": "Deployment Egress",
    "description": "What this deployment can reach, checked rather than described.\n\n**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "deployment_egress_v1_deployment_egress_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EgressOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin"
   }
  },
  "/v1/sources": {
   "get": {
    "tags": [
     "Sources"
    ],
    "summary": "List Sources",
    "description": "Which engines can be imported from, and what has been.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_sources_v1_sources_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SourcesOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/sources/import": {
   "post": {
    "tags": [
     "Sources"
    ],
    "summary": "Import From Source",
    "description": "Record decisions made by another governance engine.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "import_from_source_v1_sources_import_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ImportIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ImportOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/trajectories": {
   "post": {
    "tags": [
     "Evidence"
    ],
    "summary": "Create Trajectory",
    "description": "Open a trajectory. Idempotent on `external_ref`.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "create_trajectory_v1_trajectories_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TrajectoryIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrajectoryOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   },
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "List Trajectories",
    "description": "A page of trajectories, and the size of the set it came from.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_trajectories_v1_trajectories_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     },
     {
      "name": "tainted",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tainted"
      }
     },
     {
      "name": "stopped",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "description": "only trajectories the platform refused or gated",
       "title": "Stopped"
      },
      "description": "only trajectories the platform refused or gated"
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "matches external_ref or agent",
       "title": "Q"
      },
      "description": "matches external_ref or agent"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "column, '-' prefix for descending",
       "title": "Sort"
      },
      "description": "column, '-' prefix for descending"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 200,
       "minimum": 1,
       "default": 50,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrajectoryPageOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/trajectories/{trajectory_id}/steps": {
   "post": {
    "tags": [
     "Evidence"
    ],
    "summary": "Add Step",
    "operationId": "add_step_v1_trajectories__trajectory_id__steps_post",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StepIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Add Step V1 Trajectories  Trajectory Id  Steps Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor",
    "description": "**Who may call it:** an API key, or any role other than auditor."
   }
  },
  "/v1/trajectories/{trajectory_id}/close": {
   "post": {
    "tags": [
     "Evidence"
    ],
    "summary": "Close",
    "operationId": "close_v1_trajectories__trajectory_id__close_post",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CloseIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrajectoryOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor",
    "description": "**Who may call it:** an API key, or any role other than auditor."
   }
  },
  "/v1/trajectories/{trajectory_id}/explain": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Explain Trajectory",
    "description": "What stopped this agent, in the terms of what it actually read.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "explain_trajectory_v1_trajectories__trajectory_id__explain_get",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ExplainOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/trajectories/{trajectory_id}": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Get Trajectory",
    "operationId": "get_trajectory_v1_trajectories__trajectory_id__get",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TrajectoryDetailOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/trajectories/{trajectory_id}/verify": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Verify",
    "description": "Recompute the hash from stored data. Any post-capture edit fails here.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "verify_v1_trajectories__trajectory_id__verify_get",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VerifyOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/trajectories/{trajectory_id}/erase-payloads": {
   "post": {
    "tags": [
     "Evidence"
    ],
    "summary": "Erase Trajectory Payloads",
    "description": "Destroy a trajectory's payloads, keeping the record and its proofs.\n\n**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "erase_trajectory_payloads_v1_trajectories__trajectory_id__erase_payloads_post",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ErasePayloadsIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ErasePayloadsOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin"
   }
  },
  "/v1/evidence/signing-keys": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Signing Keys",
    "description": "Which keys have signed roots here, and who held each one.\n\nUnder `/evidence/` because `/v1/signing-keys` is already taken by the\nWebAuthn keys a human registers to sign approvals — \"a key the platform\ncannot sign with\". These are the opposite: the key the platform signs\nevidence WITH. Two unrelated things one word apart, and the first draft of\nthis route silently shadowed the other one.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "signing_keys_v1_evidence_signing_keys_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SigningKeysOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/evidence/verification-statement": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Verification Statement",
    "description": "The key, the custody, and where to check both.\n\nHand this to an auditor once, by a route that is not this API. Everything\nsigned afterwards verifies against it.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "verification_statement_v1_evidence_verification_statement_get",
    "parameters": [
     {
      "name": "sign",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "attach an Ed25519 signature",
       "default": false,
       "title": "Sign"
      },
      "description": "attach an Ed25519 signature"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VerificationStatementOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/evidence/continuity": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Continuity ",
    "description": "Can this deployment still verify the evidence it has already issued?\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "continuity__v1_evidence_continuity_get",
    "parameters": [
     {
      "name": "sign",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "attach an Ed25519 signature",
       "default": false,
       "title": "Sign"
      },
      "description": "attach an Ed25519 signature"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ContinuityOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/trajectories/{trajectory_id}/proof": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Proof",
    "description": "The artifact handed to a regulator: an inclusion proof against a signed,\nanchored Merkle root, disclosing nothing about any other trajectory.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "proof_v1_trajectories__trajectory_id__proof_get",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProofOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/streams/{stream_key}/seal": {
   "post": {
    "tags": [
     "Evidence"
    ],
    "summary": "Seal",
    "description": "Seal unsealed trajectories on a stream into a signed, anchored root.\n\nExposed for on-demand sealing and for tests; the scheduled sweep calls the\nsame function. Sealing on demand must never be the only path — evidence\nthat only becomes provable when someone remembers to ask is not evidence.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "seal_v1_streams__stream_key__seal_post",
    "parameters": [
     {
      "name": "stream_key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Stream Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SealOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/streams": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Streams",
    "description": "Every evidence stream, from the registry.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "streams_v1_streams_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/StreamsOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/streams/{stream_key}/completeness": {
   "get": {
    "tags": [
     "Evidence"
    ],
    "summary": "Completeness",
    "description": "Assert the sequence is contiguous.\n\nA Merkle root proves what IS in the tree and can never prove what should\nhave been. This is the check that catches a deletion.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "completeness_v1_streams__stream_key__completeness_get",
    "parameters": [
     {
      "name": "stream_key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Stream Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Completeness V1 Streams  Stream Key  Completeness Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/otel/traces": {
   "post": {
    "tags": [
     "OpenTelemetry"
    ],
    "summary": "Export Traces",
    "operationId": "export_traces_v1_otel_traces_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TracesIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/TracesOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor",
    "description": "**Who may call it:** an API key, or any role other than auditor."
   }
  },
  "/v1/evidence-types": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Evidence Types",
    "description": "The vocabulary a clause map may cite.\n\nPublished so a regulatory analyst can author a map without reading code.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "evidence_types_v1_evidence_types_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "additionalProperties": true,
         "type": "object",
         "title": "Response Evidence Types V1 Evidence Types Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/clause-maps": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Clause Maps",
    "operationId": "clause_maps_v1_clause_maps_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ClauseMapsOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/clause-maps/{key}": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Clause Map Detail",
    "operationId": "clause_map_detail_v1_clause_maps__key__get",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Clause Map Detail V1 Clause Maps  Key  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/packs/{key}": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Pack",
    "description": "Assemble an evidence pack LIVE.\n\nNever cached. A pack generated after evidence was tampered with must show\nthat, and a document that cannot go stale cannot mislead.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "pack_v1_packs__key__get",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key"
      }
     },
     {
      "name": "sign",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "attach an Ed25519 signature",
       "default": false,
       "title": "Sign"
      },
      "description": "attach an Ed25519 signature"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PackOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/readiness": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Readiness Score",
    "description": "Score this deployment against every loaded instrument, and say what to fix.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "readiness_score_v1_readiness_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReadinessOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/assessment": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Assessment",
    "description": "The Art. 35 assembly, built live.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "assessment_v1_assessment_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssessmentOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/assessment/narrative": {
   "put": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Record Narrative",
    "description": "Record what only the controller can answer.\n\nA new row each time rather than an update: Art. 35(11) makes review a\nrecurring obligation, and overwriting the previous answers would erase the\nfact that the assessment used to say something else.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "record_narrative_v1_assessment_narrative_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NarrativeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AssessmentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/audit-bundle": {
   "get": {
    "tags": [
     "Regulatory"
    ],
    "summary": "Audit Bundle",
    "description": "Everything an independent auditor would otherwise assemble by clicking.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "audit_bundle_v1_audit_bundle_get",
    "parameters": [
     {
      "name": "sign",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "default": true,
       "title": "Sign"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Audit Bundle V1 Audit Bundle Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/market-profiles": {
   "get": {
    "tags": [
     "Market"
    ],
    "summary": "List Profiles",
    "operationId": "list_profiles_v1_market_profiles_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketProfilesOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/market-profile": {
   "get": {
    "tags": [
     "Market"
    ],
    "summary": "Resolved Profile",
    "description": "Which regime applies here, and WHY it was chosen.\n\n\"Which laws did this deployment believe applied to this decision, at the\nmoment it was made?\" — answerable, with the resolution level attached.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "resolved_profile_v1_market_profile_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MarketProfileOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/market-profile/capability/{capability}": {
   "get": {
    "tags": [
     "Market"
    ],
    "summary": "Check Capability",
    "description": "Ask whether a capability is permitted here before attempting it.\n\nRefusals raise a problem document carrying the legal basis.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "check_capability_v1_market_profile_capability__capability__get",
    "parameters": [
     {
      "name": "capability",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Capability"
      }
     },
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Check Capability V1 Market Profile Capability  Capability  Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/residency": {
   "get": {
    "tags": [
     "Market"
    ],
    "summary": "Residency",
    "description": "Where this deployment says it runs, and every configured egress target.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "residency_v1_residency_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ResidencyOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/features": {
   "get": {
    "tags": [
     "Market"
    ],
    "summary": "List Features",
    "description": "Every gateable behaviour, its state here, and WHY it is in that state.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_features_v1_features_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeaturesOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/features/{feature_key}": {
   "put": {
    "tags": [
     "Market"
    ],
    "summary": "Set Feature",
    "description": "Set an operator preference on a feature the market leaves open.\n\nRefuses, citing the legal basis, when the resolved market profile forbids or\nrequires the feature. That refusal is evidence in itself: it shows the\nplatform enforced a jurisdictional boundary rather than merely describing one.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "set_feature_v1_features__feature_key__put",
    "parameters": [
     {
      "name": "feature_key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Feature Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FeatureSet"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FeatureSetOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/me": {
   "get": {
    "tags": [
     "Identity"
    ],
    "summary": "Me",
    "description": "The caller's identity, entitlements, and the regime they are operating under.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "me_v1_me_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MeOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/workspace/jurisdiction": {
   "put": {
    "tags": [
     "Identity"
    ],
    "summary": "Set Workspace Jurisdiction",
    "description": "Place a whole workspace under a regime.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "set_workspace_jurisdiction_v1_workspace_jurisdiction_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WorkspaceJurisdictionIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JurisdictionOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/organization/jurisdiction": {
   "put": {
    "tags": [
     "Identity"
    ],
    "summary": "Set Organization Jurisdiction",
    "description": "The broadest rung: every workspace in the organisation, unless overridden.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "set_organization_jurisdiction_v1_organization_jurisdiction_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WorkspaceJurisdictionIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JurisdictionOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/audit": {
   "get": {
    "tags": [
     "Audit"
    ],
    "summary": "Audit Trail",
    "description": "Who changed the governance configuration, and what they changed.\n\n**Who may call it:** admin or auditor. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "audit_trail_v1_audit_get",
    "parameters": [
     {
      "name": "target_type",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Target Type"
      }
     },
     {
      "name": "target_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Target Id"
      }
     },
     {
      "name": "actor",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Actor"
      }
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "matches actor, action, target or reason",
       "title": "Q"
      },
      "description": "matches actor, action, target or reason"
     },
     {
      "name": "action",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "exactly this action",
       "title": "Action"
      },
      "description": "exactly this action"
     },
     {
      "name": "since",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "date-time"
        },
        {
         "type": "null"
        }
       ],
       "description": "at or after this time",
       "title": "Since"
      },
      "description": "at or after this time"
     },
     {
      "name": "until",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string",
         "format": "date-time"
        },
        {
         "type": "null"
        }
       ],
       "description": "at or before this time",
       "title": "Until"
      },
      "description": "at or before this time"
     },
     {
      "name": "group",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "fold each run of one actor doing one thing into its newest entry",
       "default": false,
       "title": "Group"
      },
      "description": "fold each run of one actor doing one thing into its newest entry"
     },
     {
      "name": "tampered",
      "in": "query",
      "required": false,
      "schema": {
       "type": "boolean",
       "description": "only entries that no longer match their own digest",
       "default": false,
       "title": "Tampered"
      },
      "description": "only entries that no longer match their own digest"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "column, '-' prefix for descending",
       "title": "Sort"
      },
      "description": "column, '-' prefix for descending"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 1000,
       "minimum": 1,
       "default": 200,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AuditOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin or auditor"
   }
  },
  "/v1/audit/seals": {
   "get": {
    "tags": [
     "Audit"
    ],
    "summary": "Audit Seals",
    "description": "Every seal over the audit trail, with its signature and its timestamp.\n\n**Who may call it:** admin or auditor. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "audit_seals_v1_audit_seals_get",
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AuditSealsOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin or auditor"
   }
  },
  "/v1/audit/head": {
   "get": {
    "tags": [
     "Audit"
    ],
    "summary": "Audit Head",
    "description": "Where each audit trail ends, for anyone to write down. No sign-in.",
    "operationId": "audit_head_v1_audit_head_get",
    "parameters": [
     {
      "name": "trail",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "only this trail",
       "title": "Trail"
      },
      "description": "only this trail"
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer",
         "minimum": 0
        },
        {
         "type": "null"
        }
       ],
       "description": "seals numbered from here, oldest first, instead of the newest",
       "title": "From"
      },
      "description": "seals numbered from here, oldest first, instead of the newest"
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AuditHeadOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [],
    "x-rotascale-requires": "no credential"
   }
  },
  "/v1/keys": {
   "get": {
    "tags": [
     "API keys"
    ],
    "summary": "List Keys",
    "operationId": "list_keys_v1_keys_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ApiKeysOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin",
    "description": "**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "post": {
    "tags": [
     "API keys"
    ],
    "summary": "Create Key",
    "description": "Mint a key. The secret is returned ONCE and never stored.\n\n**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "create_key_v1_keys_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/KeyIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/KeyMintedOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin"
   }
  },
  "/v1/keys/{key_id}/revoke": {
   "post": {
    "tags": [
     "API keys"
    ],
    "summary": "Revoke Key",
    "operationId": "revoke_key_v1_keys__key_id__revoke_post",
    "parameters": [
     {
      "name": "key_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RevokeKeyIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RevokedKeyOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "admin",
    "description": "**Who may call it:** admin. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/controls": {
   "get": {
    "tags": [
     "Overview"
    ],
    "summary": "Controls",
    "description": "Is what you think is running, running?\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "controls_v1_controls_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ControlsOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/controls/holds": {
   "get": {
    "tags": [
     "Overview"
    ],
    "summary": "Holds",
    "description": "Which authority is outstanding, behind the count on /v1/controls.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "holds_v1_controls_holds_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/HoldOut"
         },
         "type": "array",
         "title": "Response Holds V1 Controls Holds Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/overview": {
   "get": {
    "tags": [
     "Overview"
    ],
    "summary": "Workspace Overview",
    "description": "Every headline number, computed over the whole workspace.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "workspace_overview_v1_overview_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OverviewOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/briefing": {
   "get": {
    "tags": [
     "Overview"
    ],
    "summary": "Briefing",
    "description": "What changed since you were last here, and what needs you now.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "briefing_v1_briefing_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BriefingOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/mcp/observe": {
   "post": {
    "tags": [
     "MCP servers"
    ],
    "summary": "Observe Manifest",
    "description": "Record an MCP server's tool manifest, and return what moved.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "observe_manifest_v1_mcp_observe_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ObserveIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ObserveOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   }
  },
  "/v1/mcp/servers": {
   "get": {
    "tags": [
     "MCP servers"
    ],
    "summary": "List Servers",
    "operationId": "list_servers_v1_mcp_servers_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/ServerOut"
         },
         "type": "array",
         "title": "Response List Servers V1 Mcp Servers Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/mcp/servers/{server_id}/tools": {
   "get": {
    "tags": [
     "MCP servers"
    ],
    "summary": "List Tools",
    "operationId": "list_tools_v1_mcp_servers__server_id__tools_get",
    "parameters": [
     {
      "name": "server_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Server Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ToolOut"
         },
         "title": "Response List Tools V1 Mcp Servers  Server Id  Tools Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/mcp/register": {
   "get": {
    "tags": [
     "MCP servers"
    ],
    "summary": "Ict Register",
    "description": "Every MCP dependency observed, who reaches it, and under what authority.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "ict_register_v1_mcp_register_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RegisterOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/mcp/drift": {
   "get": {
    "tags": [
     "MCP servers"
    ],
    "summary": "Drift",
    "description": "Every manifest change, newest first.\n\nThe feed an operator reads after an incident, and the reason the changes\nare a table rather than a flag on the tool.\n\nBoth counts are computed over the whole workspace rather than the page, so\nfiltering to the description changes narrows what is SHOWN without changing\nwhat is CLAIMED.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "drift_v1_mcp_drift_get",
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "e.g. description_changed",
       "title": "Kind"
      },
      "description": "e.g. description_changed"
     },
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "matches server, tool or kind",
       "title": "Q"
      },
      "description": "matches server, tool or kind"
     },
     {
      "name": "sort",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "column, '-' prefix for descending",
       "title": "Sort"
      },
      "description": "column, '-' prefix for descending"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 500,
       "default": 100,
       "title": "Limit"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0,
       "title": "Offset"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DriftPageOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/search": {
   "get": {
    "tags": [
     "Search"
    ],
    "summary": "Search Workspace",
    "description": "Agents, grants, trajectories and clause references matching `q`.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "search_workspace_v1_search_get",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "description": "free text, or a pasted identifier",
       "default": "",
       "title": "Q"
      },
      "description": "free text, or a pasted identifier"
     },
     {
      "name": "per_kind",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 25,
       "minimum": 1,
       "default": 5,
       "title": "Per Kind"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SearchOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/incident-classes": {
   "get": {
    "tags": [
     "Incidents"
    ],
    "summary": "Incident Classes",
    "description": "The Article 73 classes, and what choosing each one asserts.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "incident_classes_v1_incident_classes_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "items": {
          "$ref": "#/components/schemas/ClassOut"
         },
         "type": "array",
         "title": "Response Incident Classes V1 Incident Classes Get"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/incidents": {
   "post": {
    "tags": [
     "Incidents"
    ],
    "summary": "Raise Incident",
    "description": "Record an incident, with the customer's classification.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "raise_incident_v1_incidents_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReportableIncidentIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReportableIncidentOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   },
   "get": {
    "tags": [
     "Incidents"
    ],
    "summary": "List Incidents",
    "operationId": "list_incidents_v1_incidents_get",
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReportableIncidentOut"
         },
         "title": "Response List Incidents V1 Incidents Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/incidents/{incident_id}/dossier": {
   "get": {
    "tags": [
     "Incidents"
    ],
    "summary": "Preview Dossier",
    "description": "What a report would contain if prepared now. Nothing is stored.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "preview_dossier_v1_incidents__incident_id__dossier_get",
    "parameters": [
     {
      "name": "incident_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Incident Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Preview Dossier V1 Incidents  Incident Id  Dossier Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/incidents/{incident_id}/reports": {
   "post": {
    "tags": [
     "Incidents"
    ],
    "summary": "Prepare Report",
    "description": "Freeze the dossier as a numbered revision.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "prepare_report_v1_incidents__incident_id__reports_post",
    "parameters": [
     {
      "name": "incident_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Incident Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PrepareIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReportOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   },
   "get": {
    "tags": [
     "Incidents"
    ],
    "summary": "List Reports",
    "description": "Every revision, oldest first — the chain as a regulator reads it.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_reports_v1_incidents__incident_id__reports_get",
    "parameters": [
     {
      "name": "incident_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Incident Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/ReportOut"
         },
         "title": "Response List Reports V1 Incidents  Incident Id  Reports Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/notifications": {
   "get": {
    "tags": [
     "Notifications"
    ],
    "summary": "List Notifications",
    "description": "Everything worth interrupting somebody for.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "list_notifications_v1_notifications_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NotificationsOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/notifications/{key}/ack": {
   "post": {
    "tags": [
     "Notifications"
    ],
    "summary": "Acknowledge",
    "description": "Take responsibility for one notification.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "acknowledge_v1_notifications__key__ack_post",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Key"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AckIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NotificationOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/agents/{agent_id}/certification": {
   "get": {
    "tags": [
     "Certification"
    ],
    "summary": "Candidate",
    "description": "Everything known about this agent, and what it would take to clear it.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "candidate_v1_agents__agent_id__certification_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CandidateOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   },
   "post": {
    "tags": [
     "Certification"
    ],
    "summary": "Issue",
    "description": "Clear this agent for its environment, in your name.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "issue_v1_agents__agent_id__certification_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/IssueIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CertificateOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/certificates/{certificate_id}/revoke": {
   "post": {
    "tags": [
     "Certification"
    ],
    "summary": "Revoke",
    "description": "Withdraw a clearance, with a reason that outlives the person who gave it.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "revoke_v1_certificates__certificate_id__revoke_post",
    "parameters": [
     {
      "name": "certificate_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Certificate Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WithdrawIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CertificateOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/certificates": {
   "get": {
    "tags": [
     "Certification"
    ],
    "summary": "Certificates",
    "description": "Every clearance issued in this workspace, newest first.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "certificates_v1_certificates_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CertificatesOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/fairness/attributes": {
   "get": {
    "tags": [
     "Fairness"
    ],
    "summary": "Attributes",
    "description": "What this jurisdiction allows to be screened, and what each one costs.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "attributes_v1_fairness_attributes_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScreenableOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/fairness/screens": {
   "get": {
    "tags": [
     "Fairness"
    ],
    "summary": "Screens",
    "description": "Every screen run in this workspace, newest first.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "screens_v1_fairness_screens_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScreensOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   },
   "post": {
    "tags": [
     "Fairness"
    ],
    "summary": "Run Screen",
    "description": "Screen for disparity, and keep the run as evidence.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "run_screen_v1_fairness_screens_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RunIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScreenOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/fairness/declarations": {
   "post": {
    "tags": [
     "Fairness"
    ],
    "summary": "Declare",
    "description": "Record a declared attribute for one decision.\n\n**Who may call it:** an API key, or any role other than auditor.",
    "operationId": "declare_v1_fairness_declarations_post",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DeclareIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Declare V1 Fairness Declarations Post"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     },
     {
      "apiKey": []
     }
    ],
    "x-rotascale-requires": "an API key, or any role other than auditor"
   },
   "delete": {
    "tags": [
     "Fairness"
    ],
    "summary": "Erase",
    "description": "Erase declared attributes. Screen results survive.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "erase_v1_fairness_declarations_delete",
    "parameters": [
     {
      "name": "attribute",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Attribute"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Erase V1 Fairness Declarations Delete"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/personal-data/families": {
   "get": {
    "tags": [
     "Personal data"
    ],
    "summary": "Families",
    "description": "What this jurisdiction looks for, and what it cannot see.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "families_v1_personal_data_families_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CapabilityOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/trajectories/{trajectory_id}/personal-data": {
   "post": {
    "tags": [
     "Personal data"
    ],
    "summary": "Scan One",
    "description": "Scan one trajectory's payloads, in place, and record what they carry.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "scan_one_v1_trajectories__trajectory_id__personal_data_post",
    "parameters": [
     {
      "name": "trajectory_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Trajectory Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScanOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/personal-data/scans": {
   "get": {
    "tags": [
     "Personal data"
    ],
    "summary": "Scans",
    "operationId": "scans_v1_personal_data_scans_get",
    "parameters": [
     {
      "name": "carrying",
      "in": "query",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Carrying"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ScansOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/personal-data/overdue": {
   "get": {
    "tags": [
     "Personal data"
    ],
    "summary": "Overdue",
    "description": "Records still holding personal data past their regime's retention window.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "overdue_v1_personal_data_overdue_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OverdueListOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/agents/{agent_id}/behaviour": {
   "get": {
    "tags": [
     "Behaviour"
    ],
    "summary": "Agent Behaviour",
    "description": "This agent's last window against the one before it.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "agent_behaviour_v1_agents__agent_id__behaviour_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     },
     {
      "name": "window_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Window Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DriftOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/behaviour": {
   "get": {
    "tags": [
     "Behaviour"
    ],
    "summary": "Workspace Behaviour",
    "description": "Every agent, worst first.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "workspace_behaviour_v1_behaviour_get",
    "parameters": [
     {
      "name": "window_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Window Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/DriftListOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/contract/vocabulary": {
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Vocabulary",
    "description": "Every clause that can be declared, and what each one says.\n\nThe console builds its form from this rather than from a copy. A second list\nof clause types in TypeScript would drift the moment one was added here, and\nthe failure mode is a form offering a clause the API refuses.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "vocabulary_v1_contract_vocabulary_get",
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VocabularyOut"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/agents/{agent_id}/contract": {
   "post": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Declare Contract",
    "operationId": "declare_contract_v1_agents__agent_id__contract_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ContractIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ContractOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin",
    "description": "**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Current Contract",
    "operationId": "current_contract_v1_agents__agent_id__contract_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "anyOf": [
          {
           "$ref": "#/components/schemas/ContractOut"
          },
          {
           "type": "null"
          }
         ],
         "title": "Response Current Contract V1 Agents  Agent Id  Contract Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/agents/{agent_id}/contract/claim": {
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Signed Claim",
    "description": "The conformance claim as a signed artefact, verifiable off this system.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "signed_claim_v1_agents__agent_id__contract_claim_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     },
     {
      "name": "window_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Window Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "additionalProperties": true,
         "title": "Response Signed Claim V1 Agents  Agent Id  Contract Claim Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/agents/{agent_id}/contract/assessment": {
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Contract Assessment",
    "description": "Did the contract hold over this window?\n\nReturns null when nothing has been declared. That is a different fact from a\ncontract that held, and collapsing them would let an agent with no contract\nread as compliant.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "contract_assessment_v1_agents__agent_id__contract_assessment_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     },
     {
      "name": "window_days",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 365,
       "minimum": 1,
       "default": 30,
       "title": "Window Days"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "anyOf": [
          {
           "$ref": "#/components/schemas/ContractAssessmentOut"
          },
          {
           "type": "null"
          }
         ],
         "title": "Response Contract Assessment V1 Agents  Agent Id  Contract Assessment Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/agents/{agent_id}/breakers": {
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "List Breakers",
    "operationId": "list_breakers_v1_agents__agent_id__breakers_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/BreakerOut"
         },
         "title": "Response List Breakers V1 Agents  Agent Id  Breakers Get"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role",
    "description": "**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person."
   },
   "post": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Declare Breaker",
    "operationId": "declare_breaker_v1_agents__agent_id__breakers_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BreakerIn"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BreakerOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin",
    "description": "**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person."
   }
  },
  "/v1/agents/{agent_id}/breakers/counterfactual": {
   "get": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Breaker Counterfactual",
    "description": "How often a breaker on this clause would have fired over real history.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "breaker_counterfactual_v1_agents__agent_id__breakers_counterfactual_get",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     },
     {
      "name": "clause_key",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "default": "*",
       "title": "Clause Key"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CounterfactualOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  },
  "/v1/breakers/{breaker_id}/arm": {
   "post": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Arm Breaker",
    "description": "Move a breaker to enforce, having seen what it would have done.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "arm_breaker_v1_breakers__breaker_id__arm_post",
    "parameters": [
     {
      "name": "breaker_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Breaker Id"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ArmIn"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BreakerOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/agents/{agent_id}/breakers/evaluate": {
   "post": {
    "tags": [
     "Behaviour",
     "Behaviour"
    ],
    "summary": "Evaluate Breakers",
    "description": "Check every breaker on this agent now.\n\n**Who may call it:** governance-officer or admin. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "evaluate_breakers_v1_agents__agent_id__breakers_evaluate_post",
    "parameters": [
     {
      "name": "agent_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "title": "Agent Id"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EvaluationOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "governance-officer or admin"
   }
  },
  "/v1/red-team": {
   "get": {
    "tags": [
     "Red team"
    ],
    "summary": "Red Team",
    "description": "Which obfuscations get past this deployment's identifier detector.\n\n**Who may call it:** any role. A workspace API key is refused here: this is an act that belongs to a named person.",
    "operationId": "red_team_v1_red_team_get",
    "parameters": [
     {
      "name": "iterations",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "maximum": 20000,
       "minimum": 200,
       "default": 3000,
       "title": "Iterations"
      }
     },
     {
      "name": "seed",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "default": 20260813,
       "title": "Seed"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Successful Response",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RedTeamOut"
        }
       }
      }
     },
     "422": {
      "description": "Validation Error",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      }
     }
    },
    "security": [
     {
      "bearerToken": []
     }
    ],
    "x-rotascale-requires": "any role"
   }
  }
 },
 "components": {
  "schemas": {
   "AckIn": {
    "properties": {
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "title": "AckIn"
   },
   "AgentIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
     },
     "slug": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 120
       },
       {
        "type": "null"
       }
      ],
      "title": "Slug"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "owner_subject": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Subject"
     },
     "owner_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Email"
     },
     "org_unit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Org Unit"
     },
     "autonomy_tier": {
      "type": "string",
      "pattern": "^L[0-4]$",
      "title": "Autonomy Tier",
      "default": "L0"
     },
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     },
     "environment": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(dev|staging|prod|live|test)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Environment"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "AgentIn"
   },
   "AgentOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "owner_subject": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Subject"
     },
     "org_unit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Org Unit"
     },
     "autonomy_tier": {
      "type": "string",
      "title": "Autonomy Tier"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "identity_verified": {
      "type": "boolean",
      "title": "Identity Verified"
     },
     "identity_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Identity Source"
     },
     "identity_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Identity Ref"
     },
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     },
     "recert_due_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recert Due At"
     },
     "discovered_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Discovered At"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "environment",
     "name",
     "description",
     "owner_subject",
     "org_unit",
     "autonomy_tier",
     "status",
     "identity_verified",
     "identity_source",
     "market_profile_id",
     "recert_due_at",
     "discovered_at",
     "created_at"
    ],
    "title": "AgentOut"
   },
   "AnchorOut": {
    "properties": {
     "provider": {
      "type": "string",
      "title": "Provider"
     },
     "root_hash": {
      "type": "string",
      "title": "Root Hash"
     },
     "signature": {
      "type": "string",
      "title": "Signature"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "instructions": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Instructions"
     },
     "warning": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Warning"
     },
     "anchored": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Anchored"
     },
     "why_not": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Why Not"
     },
     "beacon": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Beacon"
     },
     "proves": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Proves"
     }
    },
    "type": "object",
    "required": [
     "provider",
     "root_hash",
     "signature",
     "created_at"
    ],
    "title": "AnchorOut",
    "description": "What was done to fix this root in time."
   },
   "ApiKeyOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "scope_source": {
      "type": "string",
      "title": "Scope Source"
     },
     "display": {
      "type": "string",
      "title": "Display"
     },
     "created_by": {
      "type": "string",
      "title": "Created By"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "last_used_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Used At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "revocation_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revocation Reason"
     },
     "active": {
      "type": "boolean",
      "title": "Active"
     },
     "never_used": {
      "type": "boolean",
      "title": "Never Used"
     },
     "dormant": {
      "type": "boolean",
      "title": "Dormant"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "environment",
     "scope_source",
     "display",
     "created_by",
     "created_at",
     "active",
     "never_used",
     "dormant"
    ],
    "title": "ApiKeyOut",
    "description": "One key. Never the secret — that is shown once, at creation, and gone."
   },
   "ApiKeysOut": {
    "properties": {
     "keys": {
      "items": {
       "$ref": "#/components/schemas/ApiKeyOut"
      },
      "type": "array",
      "title": "Keys"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "never_used": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Never Used"
     },
     "dormant": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Dormant"
     }
    },
    "type": "object",
    "required": [
     "keys",
     "count",
     "never_used",
     "dormant"
    ],
    "title": "ApiKeysOut"
   },
   "ApproveIn": {
    "properties": {
     "signing_assertion": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Assertion"
     },
     "signing_challenge": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Challenge"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 1000
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "title": "ApproveIn",
    "description": "The checker's signature over the same bounds the maker signed."
   },
   "ArmIn": {
    "properties": {
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "expecting_trips": {
      "type": "integer",
      "title": "Expecting Trips"
     }
    },
    "type": "object",
    "required": [
     "basis",
     "expecting_trips"
    ],
    "title": "ArmIn"
   },
   "AssessmentOut": {
    "properties": {
     "generated_at": {
      "type": "string",
      "title": "Generated At"
     },
     "regime": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RegimeDisclosureOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "sections": {
      "items": {
       "$ref": "#/components/schemas/AssessmentSectionOut"
      },
      "type": "array",
      "title": "Sections"
     },
     "unanswered": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unanswered"
     },
     "complete": {
      "type": "boolean",
      "title": "Complete"
     },
     "safeguards_not_enforcing": {
      "items": {
       "$ref": "#/components/schemas/SafeguardOut"
      },
      "type": "array",
      "title": "Safeguards Not Enforcing"
     },
     "disclaimer": {
      "additionalProperties": true,
      "type": "object",
      "title": "Disclaimer"
     },
     "limit": {
      "type": "string",
      "title": "Limit"
     },
     "reviewed_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reviewed By"
     },
     "reviewed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reviewed At"
     },
     "review_note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Review Note"
     }
    },
    "type": "object",
    "required": [
     "generated_at",
     "sections",
     "unanswered",
     "complete",
     "safeguards_not_enforcing",
     "disclaimer",
     "limit"
    ],
    "title": "AssessmentOut"
   },
   "AssessmentSectionOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "article": {
      "type": "string",
      "title": "Article"
     },
     "filled_by": {
      "type": "string",
      "title": "Filled By"
     },
     "content": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content"
     },
     "controller_answer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Controller Answer"
     },
     "answered": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Answered"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "article",
     "filled_by"
    ],
    "title": "AssessmentSectionOut"
   },
   "AssuranceFileOut": {
    "properties": {
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "period": {
      "additionalProperties": true,
      "type": "object",
      "title": "Period"
     },
     "regime": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RegimeDisclosureOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "headline": {
      "type": "string",
      "title": "Headline"
     },
     "summary": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Summary"
     },
     "authorities": {
      "items": {
       "$ref": "#/components/schemas/AuthorityAssuranceOut"
      },
      "type": "array",
      "title": "Authorities"
     },
     "disclaimer": {
      "additionalProperties": true,
      "type": "object",
      "title": "Disclaimer"
     },
     "assurance_note": {
      "type": "string",
      "title": "Assurance Note"
     }
    },
    "type": "object",
    "required": [
     "subject",
     "period",
     "headline",
     "summary",
     "authorities",
     "disclaimer",
     "assurance_note"
    ],
    "title": "AssuranceFileOut",
    "description": "One named manager, one period: what they authorised and what held."
   },
   "AssuranceFindingOut": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "severity": {
      "type": "string",
      "title": "Severity"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "severity",
     "detail"
    ],
    "title": "AssuranceFindingOut"
   },
   "AssuranceOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "holds": {
      "type": "boolean",
      "title": "Holds"
     },
     "bounds": {
      "additionalProperties": true,
      "type": "object",
      "title": "Bounds"
     },
     "decisions": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Decisions"
     },
     "scope_source": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Scope Source"
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/FindingOut"
      },
      "type": "array",
      "title": "Findings"
     },
     "attestation": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Attestation"
     }
    },
    "type": "object",
    "required": [
     "grant_id",
     "holds",
     "bounds",
     "decisions",
     "scope_source",
     "findings"
    ],
    "title": "AssuranceOut",
    "description": "Did the bounds hold, against what actually happened?"
   },
   "AttestationCheckOut": {
    "properties": {
     "signature_valid": {
      "type": "boolean",
      "title": "Signature Valid"
     },
     "matches_grant": {
      "type": "boolean",
      "title": "Matches Grant"
     },
     "signed_by_platform": {
      "type": "boolean",
      "title": "Signed By Platform"
     }
    },
    "type": "object",
    "required": [
     "signature_valid",
     "matches_grant",
     "signed_by_platform"
    ],
    "title": "AttestationCheckOut",
    "description": "Whether the signature still describes this grant."
   },
   "AttestationOut": {
    "properties": {
     "attested": {
      "type": "boolean",
      "title": "Attested"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "signature_valid": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signature Valid"
     },
     "matches_grant": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Matches Grant"
     },
     "signed_by_platform": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signed By Platform"
     },
     "subject": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject"
     },
     "subject_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject Email"
     },
     "subject_display": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject Display"
     },
     "signed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signed At"
     },
     "signing_key_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Key Ref"
     },
     "assurance": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Assurance"
     }
    },
    "type": "object",
    "required": [
     "attested"
    ],
    "title": "AttestationOut",
    "description": "Who authorised this, and does the grant still match what they signed?"
   },
   "AttributeOut": {
    "properties": {
     "attribute": {
      "type": "string",
      "title": "Attribute"
     },
     "categories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Categories"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "legal_basis": {
      "type": "string",
      "title": "Legal Basis"
     },
     "lawful_here": {
      "type": "boolean",
      "title": "Lawful Here"
     },
     "refusal": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Refusal"
     },
     "capability": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Capability"
     },
     "conditions": {
      "items": {
       "$ref": "#/components/schemas/ConditionOut"
      },
      "type": "array",
      "title": "Conditions"
     }
    },
    "type": "object",
    "required": [
     "attribute",
     "categories",
     "source",
     "legal_basis",
     "lawful_here",
     "conditions"
    ],
    "title": "AttributeOut"
   },
   "AuditEventOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "actor": {
      "type": "string",
      "title": "Actor"
     },
     "actor_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Actor Email"
     },
     "actor_roles": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Actor Roles"
     },
     "action": {
      "type": "string",
      "title": "Action"
     },
     "target_type": {
      "type": "string",
      "title": "Target Type"
     },
     "target_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Target Id"
     },
     "before": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Before"
     },
     "after": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "After"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "content_hash": {
      "type": "string",
      "title": "Content Hash"
     },
     "intact": {
      "type": "boolean",
      "title": "Intact"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "count": {
      "type": "integer",
      "title": "Count",
      "default": 1
     },
     "first_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "First At"
     },
     "same_reason": {
      "type": "boolean",
      "title": "Same Reason",
      "default": true
     },
     "seq": {
      "type": "integer",
      "title": "Seq",
      "default": 0
     },
     "sealed": {
      "type": "boolean",
      "title": "Sealed",
      "default": false
     },
     "digest_version": {
      "type": "integer",
      "title": "Digest Version",
      "default": 1
     }
    },
    "type": "object",
    "required": [
     "id",
     "actor",
     "actor_roles",
     "action",
     "target_type",
     "content_hash",
     "intact",
     "created_at"
    ],
    "title": "AuditEventOut",
    "description": "One change a PERSON made to the rules themselves."
   },
   "AuditHeadOut": {
    "properties": {
     "trails": {
      "items": {
       "$ref": "#/components/schemas/TrailHeadOut"
      },
      "type": "array",
      "title": "Trails"
     },
     "what_this_is": {
      "type": "string",
      "title": "What This Is"
     },
     "timestamps": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/StampBacklogOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "trails",
     "what_this_is"
    ],
    "title": "AuditHeadOut"
   },
   "AuditOut": {
    "properties": {
     "events": {
      "items": {
       "$ref": "#/components/schemas/AuditEventOut"
      },
      "type": "array",
      "title": "Events"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "default": 0
     },
     "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 200
     },
     "offset": {
      "type": "integer",
      "title": "Offset",
      "default": 0
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
     },
     "all_intact": {
      "type": "boolean",
      "title": "All Intact"
     },
     "tampered_total": {
      "type": "integer",
      "title": "Tampered Total",
      "default": 0
     },
     "missing_total": {
      "type": "integer",
      "title": "Missing Total",
      "default": 0
     },
     "missing_first": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "title": "Missing First",
      "default": []
     },
     "broken_seals": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Broken Seals",
      "default": []
     },
     "entries_total": {
      "type": "integer",
      "title": "Entries Total",
      "default": 0
     },
     "sealed_through": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sealed Through"
     },
     "sealed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sealed At"
     },
     "unsealed_total": {
      "type": "integer",
      "title": "Unsealed Total",
      "default": 0
     },
     "legacy_total": {
      "type": "integer",
      "title": "Legacy Total",
      "default": 0
     },
     "seals_total": {
      "type": "integer",
      "title": "Seals Total",
      "default": 0
     },
     "key_custody": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Key Custody"
     },
     "anchor": {
      "type": "string",
      "title": "Anchor",
      "default": "export"
     },
     "timestamped_total": {
      "type": "integer",
      "title": "Timestamped Total",
      "default": 0
     },
     "timestamped_late_total": {
      "type": "integer",
      "title": "Timestamped Late Total",
      "default": 0
     },
     "timestamped_late_until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timestamped Late Until"
     },
     "untimestamped_total": {
      "type": "integer",
      "title": "Untimestamped Total",
      "default": 0
     },
     "timestamps_unchecked": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Timestamps Unchecked"
     },
     "timestamp_signers": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Timestamp Signers",
      "default": []
     },
     "head_seal": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Head Seal"
     },
     "head_fingerprint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Head Fingerprint"
     }
    },
    "type": "object",
    "required": [
     "events",
     "count",
     "all_intact"
    ],
    "title": "AuditOut"
   },
   "AuditSealOut": {
    "properties": {
     "seal_no": {
      "type": "integer",
      "title": "Seal No"
     },
     "statement": {
      "additionalProperties": true,
      "type": "object",
      "title": "Statement"
     },
     "statement_hash": {
      "type": "string",
      "title": "Statement Hash"
     },
     "signature": {
      "type": "string",
      "title": "Signature"
     },
     "signing_public_key": {
      "type": "string",
      "title": "Signing Public Key"
     },
     "signing_key_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Key Ref"
     },
     "key_custody": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Key Custody"
     },
     "key_custody_means": {
      "type": "string",
      "title": "Key Custody Means"
     },
     "sealed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Sealed At"
     },
     "timestamp": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SealTimestampOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "seal_no",
     "statement",
     "statement_hash",
     "signature",
     "signing_public_key",
     "key_custody_means",
     "sealed_at"
    ],
    "title": "AuditSealOut"
   },
   "AuditSealsOut": {
    "properties": {
     "seals": {
      "items": {
       "$ref": "#/components/schemas/AuditSealOut"
      },
      "type": "array",
      "title": "Seals"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     }
    },
    "type": "object",
    "required": [
     "seals",
     "total",
     "limit",
     "offset",
     "how_to_verify"
    ],
    "title": "AuditSealsOut"
   },
   "AuthorisedBoundsOut": {
    "properties": {
     "scope": {
      "additionalProperties": {
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "type": "object",
      "title": "Scope",
      "default": {}
     },
     "budget_amount_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Amount Minor"
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "budget_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Count"
     },
     "not_after": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Not After"
     },
     "conditions": {
      "additionalProperties": true,
      "type": "object",
      "title": "Conditions",
      "default": {}
     },
     "enforcement_mode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enforcement Mode"
     }
    },
    "type": "object",
    "title": "AuthorisedBoundsOut",
    "description": "What the manager actually signed for, on one grant."
   },
   "AuthorityAssuranceOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Id"
     },
     "signed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signed At"
     },
     "error": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Error"
     },
     "authorised": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AuthorisedBoundsOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "attestation": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AttestationCheckOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "held": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Held"
     },
     "decisions": {
      "additionalProperties": true,
      "type": "object",
      "title": "Decisions",
      "default": {}
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/AssuranceFindingOut"
      },
      "type": "array",
      "title": "Findings",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "grant_id"
    ],
    "title": "AuthorityAssuranceOut",
    "description": "One authority in the assurance file: what was signed, and what held."
   },
   "AuthorizeIn": {
    "properties": {
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "action": {
      "additionalProperties": true,
      "type": "object",
      "title": "Action"
     },
     "amount_minor": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Amount Minor",
      "default": 0
     },
     "currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Currency"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "step_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Step Id"
     },
     "taint": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Taint"
     },
     "incumbent_decision": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(allow|deny)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Incumbent Decision"
     }
    },
    "type": "object",
    "title": "AuthorizeIn"
   },
   "AuthorizeOut": {
    "properties": {
     "outcome": {
      "type": "string",
      "title": "Outcome"
     },
     "allowed": {
      "type": "boolean",
      "title": "Allowed"
     },
     "policy_outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Outcome"
     },
     "enforcement_mode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enforcement Mode"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "ledger_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ledger Id"
     },
     "remaining_amount_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Remaining Amount Minor"
     },
     "remaining_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Remaining Count"
     },
     "findings": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Findings"
     },
     "capability": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Capability"
     },
     "capability_expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Capability Expires At"
     }
    },
    "type": "object",
    "required": [
     "outcome",
     "allowed",
     "reason",
     "grant_id",
     "ledger_id",
     "remaining_amount_minor",
     "remaining_count",
     "findings"
    ],
    "title": "AuthorizeOut"
   },
   "BlockedOut": {
    "properties": {
     "ordinal": {
      "type": "integer",
      "title": "Ordinal"
     },
     "outcome": {
      "type": "string",
      "title": "Outcome"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "gate": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gate"
     },
     "caused_by": {
      "items": {
       "$ref": "#/components/schemas/CauseOut"
      },
      "type": "array",
      "title": "Caused By",
      "default": []
     },
     "unblock": {
      "items": {
       "$ref": "#/components/schemas/UnblockOut"
      },
      "type": "array",
      "title": "Unblock",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "ordinal",
     "outcome",
     "reason"
    ],
    "title": "BlockedOut"
   },
   "BreakerIn": {
    "properties": {
     "clause_key": {
      "type": "string",
      "title": "Clause Key",
      "default": "*"
     },
     "action": {
      "type": "string",
      "title": "Action",
      "default": "notify"
     }
    },
    "type": "object",
    "title": "BreakerIn"
   },
   "BreakerOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "clause_key": {
      "type": "string",
      "title": "Clause Key"
     },
     "mode": {
      "type": "string",
      "title": "Mode"
     },
     "action": {
      "type": "string",
      "title": "Action"
     },
     "states": {
      "type": "string",
      "title": "States"
     },
     "armed_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Armed By"
     },
     "armed_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Armed At"
     },
     "armed_basis": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Armed Basis"
     },
     "tripped_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tripped At"
     },
     "tripped_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tripped Reason"
     }
    },
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "clause_key",
     "mode",
     "action",
     "states"
    ],
    "title": "BreakerOut"
   },
   "BreakerOutcomeOut": {
    "properties": {
     "breaker_id": {
      "type": "string",
      "title": "Breaker Id"
     },
     "states": {
      "type": "string",
      "title": "States"
     },
     "fired": {
      "type": "boolean",
      "title": "Fired"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "action": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Action"
     },
     "would_have_fired": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Would Have Fired"
     },
     "revoked": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked"
     }
    },
    "type": "object",
    "required": [
     "breaker_id",
     "states",
     "fired",
     "detail"
    ],
    "title": "BreakerOutcomeOut"
   },
   "BriefingItemOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "text": {
      "type": "string",
      "title": "Text"
     },
     "href": {
      "type": "string",
      "title": "Href"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     }
    },
    "type": "object",
    "required": [
     "key",
     "text",
     "href",
     "count",
     "kind"
    ],
    "title": "BriefingItemOut"
   },
   "BriefingOut": {
    "properties": {
     "since": {
      "type": "string",
      "format": "date-time",
      "title": "Since"
     },
     "first_visit": {
      "type": "boolean",
      "title": "First Visit"
     },
     "needs_you": {
      "items": {
       "$ref": "#/components/schemas/BriefingItemOut"
      },
      "type": "array",
      "title": "Needs You"
     },
     "changed": {
      "items": {
       "$ref": "#/components/schemas/BriefingItemOut"
      },
      "type": "array",
      "title": "Changed"
     },
     "nothing_needs_you": {
      "type": "boolean",
      "title": "Nothing Needs You"
     },
     "narrated_by": {
      "type": "string",
      "title": "Narrated By"
     },
     "narration_note": {
      "type": "string",
      "title": "Narration Note"
     }
    },
    "type": "object",
    "required": [
     "since",
     "first_visit",
     "needs_you",
     "changed",
     "nothing_needs_you",
     "narrated_by",
     "narration_note"
    ],
    "title": "BriefingOut"
   },
   "CandidateOut": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "agent_name": {
      "type": "string",
      "title": "Agent Name"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "certification_required": {
      "type": "boolean",
      "title": "Certification Required"
     },
     "standing": {
      "$ref": "#/components/schemas/StandingOut"
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/ClearanceCheckOut"
      },
      "type": "array",
      "title": "Findings"
     },
     "unknowns": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unknowns"
     },
     "binds_to_manifest": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Binds To Manifest"
     },
     "binds_to_content": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Binds To Content"
     },
     "market_profile": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile"
     }
    },
    "type": "object",
    "required": [
     "agent_id",
     "agent_name",
     "environment",
     "certification_required",
     "standing",
     "findings",
     "unknowns"
    ],
    "title": "CandidateOut",
    "description": "What a signer is agreeing to, before they agree to it."
   },
   "CapabilityOut": {
    "properties": {
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "packs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Packs"
     },
     "families": {
      "items": {
       "$ref": "#/components/schemas/FamilyOut"
      },
      "type": "array",
      "title": "Families"
     },
     "not_looked_for": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Not Looked For"
     }
    },
    "type": "object",
    "required": [
     "market_profile",
     "packs",
     "families",
     "not_looked_for"
    ],
    "title": "CapabilityOut"
   },
   "CauseOut": {
    "properties": {
     "source_kind": {
      "type": "string",
      "title": "Source Kind"
     },
     "means": {
      "type": "string",
      "title": "Means"
     },
     "source_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Ref"
     },
     "introduced_at_step": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Introduced At Step"
     },
     "introduced_by_step_kind": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Introduced By Step Kind"
     }
    },
    "type": "object",
    "required": [
     "source_kind",
     "means"
    ],
    "title": "CauseOut",
    "description": "One untrusted read that put a label on the context."
   },
   "CertificateOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "issued_by": {
      "type": "string",
      "title": "Issued By"
     },
     "issued_by_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued By Email"
     },
     "issued_at": {
      "type": "string",
      "format": "date-time",
      "title": "Issued At"
     },
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "manifest_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Manifest Hash"
     },
     "content_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Hash"
     },
     "provenance_version": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provenance Version"
     },
     "market_profile": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile"
     },
     "checks": {
      "additionalProperties": true,
      "type": "object",
      "title": "Checks"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "revoked_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked By"
     },
     "revocation_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revocation Reason"
     },
     "standing": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/StandingOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "environment",
     "issued_by",
     "issued_at",
     "basis",
     "checks"
    ],
    "title": "CertificateOut"
   },
   "CertificatesOut": {
    "properties": {
     "certificates": {
      "items": {
       "$ref": "#/components/schemas/CertificateOut"
      },
      "type": "array",
      "title": "Certificates"
     }
    },
    "type": "object",
    "required": [
     "certificates"
    ],
    "title": "CertificatesOut"
   },
   "ChainLink": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "depth": {
      "type": "integer",
      "title": "Depth"
     },
     "principal_type": {
      "type": "string",
      "title": "Principal Type"
     },
     "principal_id": {
      "type": "string",
      "title": "Principal Id"
     },
     "scope": {
      "additionalProperties": {
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "type": "object",
      "title": "Scope"
     },
     "enforcement_mode": {
      "type": "string",
      "title": "Enforcement Mode"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "attested_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Attested By"
     },
     "signed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signed At"
     }
    },
    "type": "object",
    "required": [
     "grant_id",
     "depth",
     "principal_type",
     "principal_id",
     "scope",
     "enforcement_mode",
     "status"
    ],
    "title": "ChainLink"
   },
   "ChainOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "depth": {
      "type": "integer",
      "title": "Depth"
     },
     "chain": {
      "items": {
       "$ref": "#/components/schemas/ChainLink"
      },
      "type": "array",
      "title": "Chain"
     },
     "resolves_to_a_human": {
      "type": "boolean",
      "title": "Resolves To A Human"
     },
     "accountable": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Accountable"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "grant_id",
     "depth",
     "chain",
     "resolves_to_a_human"
    ],
    "title": "ChainOut"
   },
   "ChallengeOut": {
    "properties": {
     "options": {
      "type": "string",
      "title": "Options"
     },
     "challenge": {
      "type": "string",
      "title": "Challenge"
     }
    },
    "type": "object",
    "required": [
     "options",
     "challenge"
    ],
    "title": "ChallengeOut",
    "description": "What the browser hands to `navigator.credentials`."
   },
   "ChangeOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "tool_name": {
      "type": "string",
      "title": "Tool Name"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "previous_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Previous Hash"
     },
     "current_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Hash"
     },
     "observed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Observed At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "tool_name",
     "kind",
     "previous_hash",
     "current_hash",
     "observed_at"
    ],
    "title": "ChangeOut"
   },
   "ClaimIn": {
    "properties": {
     "owner_subject": {
      "type": "string",
      "maxLength": 320,
      "minLength": 1,
      "title": "Owner Subject"
     },
     "owner_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Owner Email"
     },
     "org_unit": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Org Unit"
     }
    },
    "type": "object",
    "required": [
     "owner_subject"
    ],
    "title": "ClaimIn"
   },
   "ClassOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "days": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Days"
     },
     "article": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Article"
     },
     "means": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Means"
     },
     "also": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Also"
     }
    },
    "type": "object",
    "required": [
     "key",
     "label"
    ],
    "title": "ClassOut"
   },
   "ClauseMapOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "jurisdiction": {
      "type": "string",
      "title": "Jurisdiction"
     },
     "regulator": {
      "type": "string",
      "title": "Regulator"
     },
     "instrument": {
      "type": "string",
      "title": "Instrument"
     },
     "instrument_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Instrument Ref"
     },
     "version": {
      "type": "string",
      "title": "Version"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "source_url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Url"
     },
     "accepted_by_customer": {
      "type": "boolean",
      "title": "Accepted By Customer"
     },
     "accepted_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Accepted By"
     },
     "accepted_on": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Accepted On"
     },
     "caveat": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caveat"
     },
     "clauses": {
      "type": "integer",
      "title": "Clauses"
     },
     "by_provenance": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "By Provenance"
     }
    },
    "type": "object",
    "required": [
     "key",
     "jurisdiction",
     "regulator",
     "instrument",
     "version",
     "status",
     "accepted_by_customer",
     "clauses",
     "by_provenance"
    ],
    "title": "ClauseMapOut",
    "description": "One regulatory instrument we claim to map, and how far we stand behind it."
   },
   "ClauseMapsOut": {
    "properties": {
     "clause_maps": {
      "items": {
       "$ref": "#/components/schemas/ClauseMapOut"
      },
      "type": "array",
      "title": "Clause Maps"
     }
    },
    "type": "object",
    "required": [
     "clause_maps"
    ],
    "title": "ClauseMapsOut"
   },
   "ClauseTypeOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     }
    },
    "type": "object",
    "required": [
     "key",
     "label",
     "kind"
    ],
    "title": "ClauseTypeOut"
   },
   "ClearanceCheckOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "bears_on": {
      "type": "string",
      "title": "Bears On"
     },
     "count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Count"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "state",
     "detail",
     "bears_on"
    ],
    "title": "ClearanceCheckOut"
   },
   "CloseIn": {
    "properties": {
     "outcome": {
      "additionalProperties": true,
      "type": "object",
      "title": "Outcome"
     },
     "status": {
      "type": "string",
      "pattern": "^(completed|failed|aborted)$",
      "title": "Status",
      "default": "completed"
     }
    },
    "type": "object",
    "title": "CloseIn"
   },
   "CohortOut": {
    "properties": {
     "value": {
      "type": "string",
      "title": "Value"
     },
     "n": {
      "type": "integer",
      "title": "N"
     },
     "allowed": {
      "type": "integer",
      "title": "Allowed"
     },
     "rate": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Rate"
     },
     "suppressed": {
      "type": "boolean",
      "title": "Suppressed"
     },
     "suppressed_note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Suppressed Note"
     },
     "gap": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Gap"
     },
     "ratio": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ratio"
     },
     "z": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Z"
     },
     "verdict": {
      "type": "string",
      "title": "Verdict"
     }
    },
    "type": "object",
    "required": [
     "value",
     "n",
     "allowed",
     "suppressed",
     "verdict"
    ],
    "title": "CohortOut"
   },
   "ConditionOut": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "name",
     "state",
     "detail"
    ],
    "title": "ConditionOut"
   },
   "ConfigFindingOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "severity": {
      "type": "string",
      "title": "Severity"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "remedy": {
      "type": "string",
      "title": "Remedy"
     }
    },
    "type": "object",
    "required": [
     "code",
     "severity",
     "title",
     "detail",
     "remedy"
    ],
    "title": "ConfigFindingOut"
   },
   "ConfigurationOut": {
    "properties": {
     "groups": {
      "items": {
       "$ref": "#/components/schemas/SettingGroupOut"
      },
      "type": "array",
      "title": "Groups"
     },
     "signing": {
      "$ref": "#/components/schemas/SigningOut"
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/ConfigFindingOut"
      },
      "type": "array",
      "title": "Findings"
     },
     "withheld": {
      "items": {
       "$ref": "#/components/schemas/WithheldOut"
      },
      "type": "array",
      "title": "Withheld"
     },
     "disclosure": {
      "type": "string",
      "title": "Disclosure"
     }
    },
    "type": "object",
    "required": [
     "groups",
     "signing",
     "findings",
     "withheld",
     "disclosure"
    ],
    "title": "ConfigurationOut",
    "description": "Everything this deployment is set to do, and what is wrong with it."
   },
   "ContinuityOut": {
    "properties": {
     "state": {
      "type": "string",
      "title": "State"
     },
     "means": {
      "type": "string",
      "title": "Means"
     },
     "unbroken": {
      "type": "boolean",
      "title": "Unbroken"
     },
     "orphaned_key_refs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Orphaned Key Refs"
     },
     "orphaned_batches": {
      "type": "integer",
      "title": "Orphaned Batches"
     },
     "holding": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Holding"
     },
     "hash_schema_version": {
      "type": "integer",
      "title": "Hash Schema Version"
     },
     "stale_schema_versions": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Stale Schema Versions"
     },
     "stale_batches": {
      "type": "integer",
      "title": "Stale Batches"
     },
     "batches": {
      "type": "integer",
      "title": "Batches"
     },
     "checked_at": {
      "type": "string",
      "title": "Checked At"
     },
     "seal": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DocumentSealOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "state",
     "means",
     "unbroken",
     "orphaned_key_refs",
     "orphaned_batches",
     "holding",
     "hash_schema_version",
     "stale_schema_versions",
     "stale_batches",
     "batches",
     "checked_at"
    ],
    "title": "ContinuityOut",
    "description": "Whether the evidence this workspace holds can still be verified."
   },
   "ContractAssessmentOut": {
    "properties": {
     "claim": {
      "additionalProperties": true,
      "type": "object",
      "title": "Claim"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "decisions": {
      "type": "integer",
      "title": "Decisions"
     },
     "window_start": {
      "type": "string",
      "title": "Window Start"
     },
     "window_end": {
      "type": "string",
      "title": "Window End"
     },
     "clauses": {
      "additionalProperties": true,
      "type": "object",
      "title": "Clauses"
     },
     "contract_id": {
      "type": "string",
      "title": "Contract Id"
     },
     "declared_by": {
      "type": "string",
      "title": "Declared By"
     },
     "declared_at": {
      "type": "string",
      "title": "Declared At"
     },
     "basis": {
      "type": "string",
      "title": "Basis"
     }
    },
    "type": "object",
    "required": [
     "claim",
     "state",
     "decisions",
     "window_start",
     "window_end",
     "clauses",
     "contract_id",
     "declared_by",
     "declared_at",
     "basis"
    ],
    "title": "ContractAssessmentOut"
   },
   "ContractIn": {
    "properties": {
     "clauses": {
      "additionalProperties": true,
      "type": "object",
      "title": "Clauses"
     },
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "allow_loosening": {
      "type": "boolean",
      "title": "Allow Loosening",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "clauses",
     "basis"
    ],
    "title": "ContractIn"
   },
   "ContractOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "clauses": {
      "additionalProperties": true,
      "type": "object",
      "title": "Clauses"
     },
     "states": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "States"
     },
     "declared_by": {
      "type": "string",
      "title": "Declared By"
     },
     "declared_at": {
      "type": "string",
      "title": "Declared At"
     },
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "superseded_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Superseded At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "clauses",
     "states",
     "declared_by",
     "declared_at",
     "basis"
    ],
    "title": "ContractOut"
   },
   "ContractStateOut": {
    "properties": {
     "declared": {
      "type": "boolean",
      "title": "Declared"
     },
     "state": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "breached": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Breached",
      "default": []
     },
     "claim_stated": {
      "type": "boolean",
      "title": "Claim Stated",
      "default": false
     },
     "breakers": {
      "type": "integer",
      "title": "Breakers",
      "default": 0
     },
     "armed": {
      "type": "integer",
      "title": "Armed",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "declared"
    ],
    "title": "ContractStateOut",
    "description": "One agent's contract, for the estate view."
   },
   "ControlCheck": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "consequence": {
      "type": "string",
      "title": "Consequence",
      "default": ""
     },
     "facts": {
      "additionalProperties": true,
      "type": "object",
      "title": "Facts"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "state",
     "detail"
    ],
    "title": "ControlCheck",
    "description": "One control, and whether it is actually running."
   },
   "ControlsOut": {
    "properties": {
     "state": {
      "type": "string",
      "title": "State"
     },
     "window_hours": {
      "type": "integer",
      "title": "Window Hours"
     },
     "checks": {
      "items": {
       "$ref": "#/components/schemas/ControlCheck"
      },
      "type": "array",
      "title": "Checks"
     }
    },
    "type": "object",
    "required": [
     "state",
     "window_hours",
     "checks"
    ],
    "title": "ControlsOut"
   },
   "CounterfactualOut": {
    "properties": {
     "days": {
      "type": "integer",
      "title": "Days"
     },
     "windows_examined": {
      "type": "integer",
      "title": "Windows Examined"
     },
     "trips": {
      "items": {
       "$ref": "#/components/schemas/TripOut"
      },
      "type": "array",
      "title": "Trips"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "note": {
      "type": "string",
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "days",
     "windows_examined",
     "trips",
     "count",
     "note"
    ],
    "title": "CounterfactualOut"
   },
   "DeclareIn": {
    "properties": {
     "ledger_id": {
      "type": "string",
      "maxLength": 34,
      "minLength": 1,
      "title": "Ledger Id"
     },
     "attribute": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Attribute"
     },
     "value": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Value"
     }
    },
    "type": "object",
    "required": [
     "ledger_id",
     "attribute",
     "value"
    ],
    "title": "DeclareIn",
    "description": "One subject's declared attribute, for one decision.\n\nNo subject identifier, deliberately — a declaration names the DECISION,\nwhich the platform already governs. Adding a person here would turn an\naggregate screen into a dataset about individuals."
   },
   "DecommissionIn": {
    "properties": {
     "reason": {
      "type": "string",
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "DecommissionIn"
   },
   "DecommissionedOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "decommissioned_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Decommissioned At"
     },
     "revoked": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Revoked",
      "default": []
     },
     "revoked_count": {
      "type": "integer",
      "title": "Revoked Count",
      "default": 0
     },
     "note": {
      "type": "string",
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "id",
     "status",
     "note"
    ],
    "title": "DecommissionedOut"
   },
   "DependencyOut": {
    "properties": {
     "server_id": {
      "type": "string",
      "title": "Server Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "transport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Transport"
     },
     "endpoint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endpoint"
     },
     "first_seen_at": {
      "type": "string",
      "title": "First Seen At"
     },
     "last_seen_at": {
      "type": "string",
      "title": "Last Seen At"
     },
     "tool_count": {
      "type": "integer",
      "title": "Tool Count"
     },
     "manifest_changes": {
      "type": "integer",
      "title": "Manifest Changes"
     },
     "agents": {
      "items": {
       "$ref": "#/components/schemas/RegisterAgentOut"
      },
      "type": "array",
      "title": "Agents"
     },
     "agent_count": {
      "type": "integer",
      "title": "Agent Count"
     },
     "grants": {
      "items": {
       "$ref": "#/components/schemas/RegisterGrantOut"
      },
      "type": "array",
      "title": "Grants"
     },
     "refusals": {
      "type": "integer",
      "title": "Refusals"
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/RegisterFindingOut"
      },
      "type": "array",
      "title": "Findings"
     }
    },
    "type": "object",
    "required": [
     "server_id",
     "name",
     "first_seen_at",
     "last_seen_at",
     "tool_count",
     "manifest_changes",
     "agents",
     "agent_count",
     "grants",
     "refusals",
     "findings"
    ],
    "title": "DependencyOut",
    "description": "One ICT third-party dependency."
   },
   "DocumentSealOut": {
    "properties": {
     "seal_version": {
      "type": "integer",
      "title": "Seal Version"
     },
     "algorithm": {
      "type": "string",
      "title": "Algorithm"
     },
     "content_hash": {
      "type": "string",
      "title": "Content Hash"
     },
     "signature": {
      "type": "string",
      "title": "Signature"
     },
     "public_key": {
      "type": "string",
      "title": "Public Key"
     },
     "signing_key_ref": {
      "type": "string",
      "title": "Signing Key Ref"
     },
     "ephemeral": {
      "type": "boolean",
      "title": "Ephemeral"
     },
     "custody": {
      "type": "string",
      "title": "Custody"
     },
     "custody_means": {
      "type": "string",
      "title": "Custody Means"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     },
     "warning": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Warning"
     }
    },
    "type": "object",
    "required": [
     "seal_version",
     "algorithm",
     "content_hash",
     "signature",
     "public_key",
     "signing_key_ref",
     "ephemeral",
     "custody",
     "custody_means",
     "how_to_verify"
    ],
    "title": "DocumentSealOut",
    "description": "The seal, as it goes over the wire."
   },
   "DriftListOut": {
    "properties": {
     "agents": {
      "items": {
       "$ref": "#/components/schemas/DriftOut"
      },
      "type": "array",
      "title": "Agents"
     },
     "silent": {
      "type": "integer",
      "title": "Silent"
     },
     "contracts": {
      "additionalProperties": {
       "$ref": "#/components/schemas/ContractStateOut"
      },
      "type": "object",
      "title": "Contracts",
      "default": {}
     },
     "breached": {
      "type": "integer",
      "title": "Breached",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "agents",
     "silent"
    ],
    "title": "DriftListOut"
   },
   "DriftOut": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "classification": {
      "type": "string",
      "title": "Classification"
     },
     "baseline": {
      "$ref": "#/components/schemas/FingerprintOut"
     },
     "current": {
      "$ref": "#/components/schemas/FingerprintOut"
     },
     "shifts": {
      "items": {
       "$ref": "#/components/schemas/ShiftOut"
      },
      "type": "array",
      "title": "Shifts"
     },
     "explanations": {
      "items": {
       "$ref": "#/components/schemas/ExplanationOut"
      },
      "type": "array",
      "title": "Explanations"
     },
     "not_assessed": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Not Assessed"
     },
     "what_this_means": {
      "type": "string",
      "title": "What This Means"
     },
     "minimum_decisions": {
      "type": "integer",
      "title": "Minimum Decisions"
     }
    },
    "type": "object",
    "required": [
     "agent_id",
     "classification",
     "baseline",
     "current",
     "shifts",
     "explanations",
     "what_this_means",
     "minimum_decisions"
    ],
    "title": "DriftOut"
   },
   "DriftPageOut": {
    "properties": {
     "changes": {
      "items": {
       "$ref": "#/components/schemas/ToolDriftOut"
      },
      "type": "array",
      "title": "Changes"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "injections_total": {
      "type": "integer",
      "title": "Injections Total"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "changes",
     "total",
     "injections_total",
     "limit",
     "offset"
    ],
    "title": "DriftPageOut",
    "description": "A page of manifest changes, and the counts that describe the whole set."
   },
   "DrillIn": {
    "properties": {
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "expecting": {
      "type": "integer",
      "title": "Expecting"
     }
    },
    "type": "object",
    "required": [
     "basis",
     "expecting"
    ],
    "title": "DrillIn"
   },
   "DrillOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "root_grant_id": {
      "type": "string",
      "title": "Root Grant Id"
     },
     "ran_at": {
      "type": "string",
      "title": "Ran At"
     },
     "run_by": {
      "type": "string",
      "title": "Run By"
     },
     "basis": {
      "type": "string",
      "title": "Basis"
     },
     "predicted_count": {
      "type": "integer",
      "title": "Predicted Count"
     },
     "actual_count": {
      "type": "integer",
      "title": "Actual Count"
     },
     "matched": {
      "type": "boolean",
      "title": "Matched"
     }
    },
    "type": "object",
    "required": [
     "id",
     "root_grant_id",
     "ran_at",
     "run_by",
     "basis",
     "predicted_count",
     "actual_count",
     "matched"
    ],
    "title": "DrillOut"
   },
   "DrillPredictionOut": {
    "properties": {
     "root_grant_id": {
      "type": "string",
      "title": "Root Grant Id"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "agents": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Agents"
     },
     "max_depth": {
      "type": "integer",
      "title": "Max Depth"
     },
     "in_subtree_total": {
      "type": "integer",
      "title": "In Subtree Total"
     },
     "would_revoke": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Would Revoke"
     }
    },
    "type": "object",
    "required": [
     "root_grant_id",
     "count",
     "agents",
     "max_depth",
     "in_subtree_total",
     "would_revoke"
    ],
    "title": "DrillPredictionOut"
   },
   "EgressEnforcementOut": {
    "properties": {
     "refusing_outside_connections": {
      "type": "boolean",
      "title": "Refusing Outside Connections"
     },
     "inside_networks_declared": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Inside Networks Declared"
     },
     "proxy_variables_ignored": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Proxy Variables Ignored"
     },
     "refused_since_start": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Refused Since Start"
     }
    },
    "type": "object",
    "required": [
     "refusing_outside_connections"
    ],
    "title": "EgressEnforcementOut",
    "description": "What an airgapped deployment is doing about outside addresses."
   },
   "EgressOut": {
    "properties": {
     "airgapped": {
      "type": "boolean",
      "title": "Airgapped"
     },
     "targets": {
      "items": {
       "$ref": "#/components/schemas/EgressTargetOut"
      },
      "type": "array",
      "title": "Targets"
     },
     "enforcement": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EgressEnforcementOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "leaves_deployment": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Leaves Deployment"
     },
     "verdict": {
      "type": "string",
      "title": "Verdict"
     },
     "checked_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Checked At"
     }
    },
    "type": "object",
    "required": [
     "airgapped",
     "targets",
     "verdict"
    ],
    "title": "EgressOut"
   },
   "EgressTarget": {
    "properties": {
     "target": {
      "type": "string",
      "title": "Target"
     },
     "value": {
      "type": "string",
      "title": "Value"
     },
     "leaves_deployment": {
      "type": "boolean",
      "title": "Leaves Deployment"
     }
    },
    "type": "object",
    "required": [
     "target",
     "value",
     "leaves_deployment"
    ],
    "title": "EgressTarget"
   },
   "EgressTargetOut": {
    "properties": {
     "target": {
      "type": "string",
      "title": "Target"
     },
     "setting": {
      "type": "string",
      "title": "Setting"
     },
     "value": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Value"
     },
     "configured": {
      "type": "boolean",
      "title": "Configured"
     },
     "contacts": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contacts"
     },
     "leaves_deployment": {
      "type": "boolean",
      "title": "Leaves Deployment"
     },
     "satisfiable_in_a_closed_network": {
      "type": "boolean",
      "title": "Satisfiable In A Closed Network"
     },
     "purpose": {
      "type": "string",
      "title": "Purpose"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     },
     "status_code": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Status Code"
     },
     "latency_ms": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Latency Ms"
     }
    },
    "type": "object",
    "required": [
     "target",
     "setting",
     "configured",
     "leaves_deployment",
     "satisfiable_in_a_closed_network",
     "purpose",
     "state"
    ],
    "title": "EgressTargetOut"
   },
   "EnforcementOut": {
    "properties": {
     "mode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mode"
     },
     "recorded_outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recorded Outcome"
     },
     "policy_outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Outcome"
     },
     "suppressed": {
      "type": "boolean",
      "title": "Suppressed",
      "default": false
     }
    },
    "type": "object",
    "title": "EnforcementOut"
   },
   "ErasePayloadsIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 3,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "ErasePayloadsIn",
    "description": "Why, and on whose authority. Both are required."
   },
   "ErasePayloadsOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "erased": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Erased"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "requested_by": {
      "type": "string",
      "title": "Requested By"
     },
     "store": {
      "type": "string",
      "title": "Store"
     },
     "content_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Hash"
     },
     "hash_unchanged": {
      "type": "boolean",
      "title": "Hash Unchanged"
     },
     "still_verifies": {
      "type": "boolean",
      "title": "Still Verifies"
     }
    },
    "type": "object",
    "required": [
     "trajectory_id",
     "erased",
     "reason",
     "requested_by",
     "store",
     "hash_unchanged",
     "still_verifies"
    ],
    "title": "ErasePayloadsOut",
    "description": "A receipt for a destruction, with the integrity claim checked."
   },
   "EvaluationOut": {
    "properties": {
     "outcomes": {
      "items": {
       "$ref": "#/components/schemas/BreakerOutcomeOut"
      },
      "type": "array",
      "title": "Outcomes"
     }
    },
    "type": "object",
    "required": [
     "outcomes"
    ],
    "title": "EvaluationOut"
   },
   "EvasionOut": {
    "properties": {
     "identifier": {
      "type": "string",
      "title": "Identifier"
     },
     "mutation": {
      "type": "string",
      "title": "Mutation"
     },
     "sample": {
      "type": "string",
      "title": "Sample"
     },
     "residual": {
      "type": "boolean",
      "title": "Residual",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "identifier",
     "mutation",
     "sample"
    ],
    "title": "EvasionOut"
   },
   "EvidenceAvailability": {
    "properties": {
     "title": {
      "type": "string",
      "title": "Title"
     },
     "available": {
      "type": "boolean",
      "title": "Available"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Count"
     },
     "fix": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fix"
     }
    },
    "type": "object",
    "required": [
     "title",
     "available",
     "detail"
    ],
    "title": "EvidenceAvailability"
   },
   "ExchangeIn": {
    "properties": {
     "token": {
      "type": "string",
      "title": "Token"
     },
     "tool": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tool"
     },
     "amount_minor": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Amount Minor"
     },
     "resource_ref": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Resource Ref"
     },
     "ttl_seconds": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 300.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Ttl Seconds"
     }
    },
    "type": "object",
    "required": [
     "token"
    ],
    "title": "ExchangeIn",
    "description": "Hand a narrower credential to a sub-agent."
   },
   "ExplainOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "blocked": {
      "items": {
       "$ref": "#/components/schemas/BlockedOut"
      },
      "type": "array",
      "title": "Blocked",
      "default": []
     },
     "explains": {
      "type": "boolean",
      "title": "Explains",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "trajectory_id"
    ],
    "title": "ExplainOut",
    "description": "Why this trajectory was stopped, and what would unblock it."
   },
   "ExplanationOut": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "at": {
      "type": "string",
      "title": "At"
     },
     "by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "By"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "at",
     "detail"
    ],
    "title": "ExplanationOut"
   },
   "FairnessAttributeOut": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "categories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Categories"
     },
     "legal_basis": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Legal Basis"
     },
     "enforced_conditions": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Enforced Conditions"
     }
    },
    "type": "object",
    "required": [
     "name",
     "source",
     "categories",
     "enforced_conditions"
    ],
    "title": "FairnessAttributeOut"
   },
   "FamilyIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
     },
     "environment": {
      "type": "string",
      "pattern": "^(dev|staging|prod|live|test)$",
      "title": "Environment"
     },
     "principal_type": {
      "type": "string",
      "pattern": "^(human|team|service)$",
      "title": "Principal Type",
      "default": "human"
     },
     "principal_id": {
      "type": "string",
      "title": "Principal Id"
     },
     "scope": {
      "additionalProperties": {
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "type": "object",
      "title": "Scope"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "policy": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20000
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy"
     },
     "budget_amount_minor": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Amount Minor"
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 3,
        "minLength": 3
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "budget_count": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Count"
     },
     "ttl_hours": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Ttl Hours",
      "default": 2160
     },
     "conditions": {
      "additionalProperties": true,
      "type": "object",
      "title": "Conditions"
     },
     "enforcement_mode": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(observe|shadow|canary|enforce)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enforcement Mode"
     },
     "canary_percent": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100.0,
        "exclusiveMinimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Canary Percent"
     },
     "signing_assertion": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Assertion"
     },
     "signing_challenge": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Challenge"
     },
     "signing_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Token"
     }
    },
    "type": "object",
    "required": [
     "name",
     "environment",
     "principal_id"
    ],
    "title": "FamilyIn",
    "description": "A shape of work a manager signs off once, for one rung of the ladder."
   },
   "FamilyOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "pack": {
      "type": "string",
      "title": "Pack"
     },
     "verifiable": {
      "type": "boolean",
      "title": "Verifiable"
     },
     "checked_where": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Checked Where",
      "default": []
     },
     "active_here": {
      "type": "boolean",
      "title": "Active Here"
     },
     "obligation": {
      "type": "string",
      "title": "Obligation"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "pack",
     "verifiable",
     "active_here",
     "obligation"
    ],
    "title": "FamilyOut"
   },
   "FeatureRow": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "description": {
      "type": "string",
      "title": "Description"
     },
     "category": {
      "type": "string",
      "title": "Category"
     },
     "caution": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Caution"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "locked": {
      "type": "boolean",
      "title": "Locked"
     },
     "legal_basis": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Legal Basis"
     },
     "market_profile": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "description",
     "category",
     "caution",
     "state",
     "enabled",
     "source",
     "locked",
     "legal_basis",
     "market_profile"
    ],
    "title": "FeatureRow"
   },
   "FeatureSet": {
    "properties": {
     "enabled": {
      "type": "boolean",
      "title": "Enabled"
     },
     "reason": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "enabled",
     "reason"
    ],
    "title": "FeatureSet"
   },
   "FeatureSetOut": {
    "properties": {
     "feature": {
      "$ref": "#/components/schemas/FeatureRow"
     },
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "set_by": {
      "type": "string",
      "title": "Set By"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "title": {
      "type": "string",
      "title": "Title"
     }
    },
    "type": "object",
    "required": [
     "feature",
     "market_profile",
     "set_by",
     "reason",
     "title"
    ],
    "title": "FeatureSetOut",
    "description": "The feature after the change, and who changed it."
   },
   "FeaturesOut": {
    "properties": {
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "market_profile_name": {
      "type": "string",
      "title": "Market Profile Name"
     },
     "resolved_from": {
      "type": "string",
      "title": "Resolved From"
     },
     "airgapped": {
      "type": "boolean",
      "title": "Airgapped"
     },
     "features": {
      "items": {
       "$ref": "#/components/schemas/FeatureRow"
      },
      "type": "array",
      "title": "Features"
     }
    },
    "type": "object",
    "required": [
     "market_profile",
     "market_profile_name",
     "resolved_from",
     "airgapped",
     "features"
    ],
    "title": "FeaturesOut"
   },
   "FindingOut": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "severity": {
      "type": "string",
      "title": "Severity"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "kind",
     "severity",
     "detail"
    ],
    "title": "FindingOut"
   },
   "FingerprintOut": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "window_start": {
      "type": "string",
      "title": "Window Start"
     },
     "window_end": {
      "type": "string",
      "title": "Window End"
     },
     "decisions": {
      "type": "integer",
      "title": "Decisions"
     },
     "reportable": {
      "type": "boolean",
      "title": "Reportable"
     },
     "outcomes": {
      "additionalProperties": {
       "type": "number"
      },
      "type": "object",
      "title": "Outcomes"
     },
     "tools": {
      "additionalProperties": {
       "type": "number"
      },
      "type": "object",
      "title": "Tools"
     },
     "amount_median": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Amount Median"
     },
     "amount_p95": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Amount P95"
     },
     "policy_divergence": {
      "type": "number",
      "title": "Policy Divergence"
     },
     "observed_scope": {
      "type": "number",
      "title": "Observed Scope"
     }
    },
    "type": "object",
    "required": [
     "agent_id",
     "window_start",
     "window_end",
     "decisions",
     "reportable",
     "outcomes",
     "tools",
     "policy_divergence",
     "observed_scope"
    ],
    "title": "FingerprintOut"
   },
   "FirstSightOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "subject": {
      "type": "string",
      "title": "Subject"
     }
    },
    "type": "object",
    "required": [
     "code",
     "detail",
     "subject"
    ],
    "title": "FirstSightOut"
   },
   "GrantIn": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "principal_type": {
      "type": "string",
      "pattern": "^(human|team|service)$",
      "title": "Principal Type",
      "default": "human"
     },
     "principal_id": {
      "type": "string",
      "title": "Principal Id"
     },
     "scope": {
      "additionalProperties": {
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "type": "object",
      "title": "Scope"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "policy": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 20000
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy"
     },
     "budget_amount_minor": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Amount Minor"
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 3,
        "minLength": 3
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "budget_count": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Count"
     },
     "ttl_hours": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Ttl Hours",
      "default": 24
     },
     "conditions": {
      "additionalProperties": true,
      "type": "object",
      "title": "Conditions"
     },
     "delegation_policy": {
      "type": "string",
      "pattern": "^(none|attenuating)$",
      "title": "Delegation Policy",
      "default": "none"
     },
     "enforcement_mode": {
      "type": "string",
      "pattern": "^(observe|shadow|canary|enforce)$",
      "title": "Enforcement Mode",
      "default": "enforce"
     },
     "canary_percent": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100.0,
        "exclusiveMinimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Canary Percent"
     },
     "signing_assertion": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Assertion"
     },
     "signing_challenge": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Challenge"
     },
     "signing_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Token"
     }
    },
    "type": "object",
    "required": [
     "agent_id",
     "principal_id"
    ],
    "title": "GrantIn"
   },
   "GrantOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "enforcement_mode": {
      "type": "string",
      "enum": [
       "observe",
       "shadow",
       "canary",
       "enforce"
      ],
      "title": "Enforcement Mode"
     },
     "canary_percent": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Canary Percent"
     },
     "issued_against_provenance": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued Against Provenance"
     },
     "agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Id"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "environment": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Environment"
     },
     "principal_type": {
      "type": "string",
      "title": "Principal Type"
     },
     "principal_id": {
      "type": "string",
      "title": "Principal Id"
     },
     "parent_grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Parent Grant Id"
     },
     "depth": {
      "type": "integer",
      "title": "Depth"
     },
     "scope": {
      "additionalProperties": {
       "items": {
        "type": "string"
       },
       "type": "array"
      },
      "type": "object",
      "title": "Scope"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "policy": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy"
     },
     "policy_rendering": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Rendering"
     },
     "budget_amount_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Amount Minor"
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "spent_amount_minor": {
      "type": "integer",
      "title": "Spent Amount Minor"
     },
     "budget_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Count"
     },
     "spent_count": {
      "type": "integer",
      "title": "Spent Count"
     },
     "held_amount_minor": {
      "type": "integer",
      "title": "Held Amount Minor",
      "default": 0
     },
     "held_count": {
      "type": "integer",
      "title": "Held Count",
      "default": 0
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "not_before": {
      "type": "string",
      "format": "date-time",
      "title": "Not Before"
     },
     "not_after": {
      "type": "string",
      "format": "date-time",
      "title": "Not After"
     },
     "conditions": {
      "additionalProperties": true,
      "type": "object",
      "title": "Conditions"
     },
     "delegation_policy": {
      "type": "string",
      "title": "Delegation Policy"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "pending_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Pending Reason"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "revoked_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked By"
     },
     "revoked_by_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked By Email"
     },
     "revocation_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revocation Reason"
     }
    },
    "type": "object",
    "required": [
     "id",
     "enforcement_mode",
     "canary_percent",
     "issued_against_provenance",
     "agent_id",
     "kind",
     "environment",
     "principal_type",
     "principal_id",
     "parent_grant_id",
     "depth",
     "scope",
     "audience",
     "policy",
     "policy_rendering",
     "budget_amount_minor",
     "budget_currency",
     "spent_amount_minor",
     "budget_count",
     "spent_count",
     "created_at",
     "not_before",
     "not_after",
     "conditions",
     "delegation_policy",
     "status"
    ],
    "title": "GrantOut"
   },
   "GrantPageOut": {
    "properties": {
     "grants": {
      "items": {
       "$ref": "#/components/schemas/GrantOut"
      },
      "type": "array",
      "title": "Grants"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "grants",
     "total",
     "limit",
     "offset"
    ],
    "title": "GrantPageOut",
    "description": "A page of grants, and the size of the set it came from.\n\n`total` is the FILTERED set, not the page; see `TrajectoryPageOut`."
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "type": "array",
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "HTTPValidationError"
   },
   "HeldOut": {
    "properties": {
     "identifier": {
      "type": "string",
      "title": "Identifier"
     },
     "mutation": {
      "type": "string",
      "title": "Mutation"
     }
    },
    "type": "object",
    "required": [
     "identifier",
     "mutation"
    ],
    "title": "HeldOut"
   },
   "HitOut": {
    "properties": {
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "id": {
      "type": "string",
      "title": "Id"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "sublabel": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Sublabel"
     },
     "state": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "State"
     },
     "context": {
      "additionalProperties": true,
      "type": "object",
      "title": "Context",
      "default": {}
     }
    },
    "type": "object",
    "required": [
     "kind",
     "id",
     "label"
    ],
    "title": "HitOut",
    "description": "One thing found, and what it is."
   },
   "HoldOut": {
    "properties": {
     "ledger_id": {
      "type": "string",
      "title": "Ledger Id"
     },
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "agent": {
      "type": "string",
      "title": "Agent"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "amount_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Amount Minor"
     },
     "currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Currency"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "age_minutes": {
      "type": "integer",
      "title": "Age Minutes"
     }
    },
    "type": "object",
    "required": [
     "ledger_id",
     "grant_id",
     "agent",
     "environment",
     "state",
     "created_at",
     "age_minutes"
    ],
    "title": "HoldOut",
    "description": "Authority handed out and not yet resolved."
   },
   "IdentifierFindingOut": {
    "properties": {
     "family": {
      "type": "string",
      "title": "Family"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "confidence": {
      "type": "string",
      "title": "Confidence"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "obligation": {
      "type": "string",
      "title": "Obligation"
     }
    },
    "type": "object",
    "required": [
     "family",
     "title",
     "confidence",
     "count",
     "obligation"
    ],
    "title": "IdentifierFindingOut"
   },
   "IdentityOut": {
    "properties": {
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "identity_source": {
      "type": "string",
      "title": "Identity Source"
     },
     "authenticated": {
      "type": "boolean",
      "title": "Authenticated"
     }
    },
    "type": "object",
    "required": [
     "subject",
     "kind",
     "identity_source",
     "authenticated"
    ],
    "title": "IdentityOut"
   },
   "ImportIn": {
    "properties": {
     "source": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1,
      "title": "Source"
     },
     "payload": {
      "title": "Payload"
     }
    },
    "type": "object",
    "required": [
     "source",
     "payload"
    ],
    "title": "ImportIn"
   },
   "ImportOut": {
    "properties": {
     "source": {
      "type": "string",
      "title": "Source"
     },
     "imported": {
      "type": "integer",
      "title": "Imported"
     },
     "trajectories": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Trajectories"
     },
     "agents_discovered": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Agents Discovered"
     },
     "unattested_fields": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unattested Fields"
     },
     "scope": {
      "type": "string",
      "title": "Scope"
     }
    },
    "type": "object",
    "required": [
     "source",
     "imported",
     "trajectories",
     "scope"
    ],
    "title": "ImportOut"
   },
   "IncidentIn": {
    "properties": {
     "token": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 16,
      "title": "Token"
     },
     "kind": {
      "type": "string",
      "pattern": "^(replayed|audience_mismatch|unknown_key|other)$",
      "title": "Kind"
     },
     "source_hint": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Hint"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 2000
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "token",
     "kind"
    ],
    "title": "IncidentIn",
    "description": "A resource telling us something is wrong with a token it was given."
   },
   "IncidentOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "jti": {
      "type": "string",
      "title": "Jti"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "ledger_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ledger Id"
     },
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "audience": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Audience"
     },
     "source_hint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source Hint"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "jti",
     "source",
     "kind",
     "created_at"
    ],
    "title": "IncidentOut",
    "description": "A capability token that turned up where it should not have."
   },
   "IncidentRecordedOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "recorded": {
      "type": "boolean",
      "title": "Recorded"
     },
     "jti": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Jti"
     },
     "reading": {
      "type": "string",
      "title": "Reading"
     }
    },
    "type": "object",
    "required": [
     "id",
     "recorded",
     "reading"
    ],
    "title": "IncidentRecordedOut",
    "description": "What reporting a capability incident returns."
   },
   "IncidentRegimeOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "authority": {
      "type": "string",
      "title": "Authority"
     },
     "clocks_hours": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Clocks Hours"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "code",
     "authority",
     "clocks_hours"
    ],
    "title": "IncidentRegimeOut"
   },
   "InstantiateIn": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "principal_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Principal Id"
     },
     "scope": {
      "anyOf": [
       {
        "additionalProperties": {
         "items": {
          "type": "string"
         },
         "type": "array"
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scope"
     },
     "budget_amount_minor": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Amount Minor"
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 3,
        "minLength": 3
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "budget_count": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Count"
     },
     "ttl_hours": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Ttl Hours",
      "default": 24
     },
     "conditions": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Conditions"
     },
     "enforcement_mode": {
      "anyOf": [
       {
        "type": "string",
        "pattern": "^(observe|shadow|canary|enforce)$"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enforcement Mode"
     },
     "signing_assertion": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Assertion"
     },
     "signing_challenge": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Challenge"
     },
     "signing_token": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Token"
     }
    },
    "type": "object",
    "required": [
     "agent_id"
    ],
    "title": "InstantiateIn",
    "description": "Give one agent authority from a family."
   },
   "InstrumentReadiness": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "selected": {
      "type": "boolean",
      "title": "Selected"
     },
     "jurisdiction": {
      "type": "string",
      "title": "Jurisdiction"
     },
     "instrument": {
      "type": "string",
      "title": "Instrument"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "satisfied": {
      "type": "integer",
      "title": "Satisfied"
     },
     "scored_clauses": {
      "type": "integer",
      "title": "Scored Clauses"
     },
     "percent": {
      "type": "integer",
      "title": "Percent"
     },
     "blocking_evidence": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Blocking Evidence"
     },
     "improvable_evidence": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Improvable Evidence"
     }
    },
    "type": "object",
    "required": [
     "key",
     "selected",
     "jurisdiction",
     "instrument",
     "status",
     "satisfied",
     "scored_clauses",
     "percent",
     "blocking_evidence",
     "improvable_evidence"
    ],
    "title": "InstrumentReadiness"
   },
   "IssueIn": {
    "properties": {
     "basis": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 10,
      "title": "Basis"
     },
     "accepts_unknowns": {
      "type": "boolean",
      "title": "Accepts Unknowns",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "basis"
    ],
    "title": "IssueIn",
    "description": "What the signer adds. Everything else is assembled, not typed in."
   },
   "JurisdictionIn": {
    "properties": {
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     }
    },
    "type": "object",
    "title": "JurisdictionIn",
    "description": "Which regime governs this agent's authority."
   },
   "JurisdictionOut": {
    "properties": {
     "level": {
      "type": "string",
      "title": "Level"
     },
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     },
     "resolves_to": {
      "type": "string",
      "title": "Resolves To"
     },
     "resolved_from": {
      "type": "string",
      "title": "Resolved From"
     }
    },
    "type": "object",
    "required": [
     "level",
     "resolves_to",
     "resolved_from"
    ],
    "title": "JurisdictionOut",
    "description": "Where the regime now comes from, and what it resolves to."
   },
   "KeyIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
     },
     "environment": {
      "type": "string",
      "pattern": "^(dev|staging|prod|live|test)$",
      "title": "Environment",
      "default": "prod"
     },
     "expires_in_days": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 3650.0,
        "minimum": 1.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires In Days"
     },
     "scope_source": {
      "type": "string",
      "pattern": "^(asserted|observed)$",
      "title": "Scope Source",
      "default": "asserted"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "KeyIn"
   },
   "KeyMintedOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "scope_source": {
      "type": "string",
      "title": "Scope Source"
     },
     "display": {
      "type": "string",
      "title": "Display"
     },
     "created_by": {
      "type": "string",
      "title": "Created By"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "last_used_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Used At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "revocation_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revocation Reason"
     },
     "active": {
      "type": "boolean",
      "title": "Active"
     },
     "never_used": {
      "type": "boolean",
      "title": "Never Used"
     },
     "dormant": {
      "type": "boolean",
      "title": "Dormant"
     },
     "key": {
      "type": "string",
      "title": "Key"
     },
     "warning": {
      "type": "string",
      "title": "Warning"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "environment",
     "scope_source",
     "display",
     "created_by",
     "created_at",
     "active",
     "never_used",
     "dormant",
     "key",
     "warning"
    ],
    "title": "KeyMintedOut",
    "description": "A newly minted key, and the one time its secret is visible."
   },
   "KeyOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "subject": {
      "type": "string",
      "title": "Subject"
     },
     "subject_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Subject Email"
     },
     "registered_at": {
      "type": "string",
      "format": "date-time",
      "title": "Registered At"
     },
     "last_used_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Used At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "label",
     "subject",
     "subject_email",
     "registered_at",
     "last_used_at",
     "revoked_at"
    ],
    "title": "KeyOut"
   },
   "LedgerEntryOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "outcome": {
      "type": "string",
      "title": "Outcome"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "amount_minor": {
      "type": "integer",
      "title": "Amount Minor"
     },
     "balance_after_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Balance After Minor"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "taint": {
      "items": {
       "$ref": "#/components/schemas/TaintLabelOut"
      },
      "type": "array",
      "title": "Taint"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "replayable": {
      "type": "boolean",
      "title": "Replayable"
     },
     "policy_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Version"
     },
     "policy_outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Outcome"
     },
     "enforcement_mode": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enforcement Mode"
     },
     "policy_outcome_cedar": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Outcome Cedar"
     },
     "policy_diagnostics": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/PolicyDiagnosticsOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "settlement_state": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Settlement State"
     },
     "settlement_note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Settlement Note"
     },
     "scope_source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scope Source"
     }
    },
    "type": "object",
    "required": [
     "id",
     "outcome",
     "amount_minor",
     "taint",
     "created_at",
     "replayable"
    ],
    "title": "LedgerEntryOut",
    "description": "One decision, as the grant page and the replay panel read it."
   },
   "MarketProfileOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "jurisdictions": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Jurisdictions"
     },
     "clause_maps": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Clause Maps"
     },
     "locale": {
      "type": "string",
      "title": "Locale"
     },
     "currency": {
      "type": "string",
      "title": "Currency"
     },
     "jurisdiction_packs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Jurisdiction Packs"
     },
     "retention_days": {
      "type": "integer",
      "title": "Retention Days"
     },
     "fairness_attributes": {
      "items": {
       "$ref": "#/components/schemas/FairnessAttributeOut"
      },
      "type": "array",
      "title": "Fairness Attributes"
     },
     "incident_regimes": {
      "items": {
       "$ref": "#/components/schemas/IncidentRegimeOut"
      },
      "type": "array",
      "title": "Incident Regimes"
     },
     "disclosure_regimes": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Disclosure Regimes"
     },
     "forbidden_capabilities": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Forbidden Capabilities"
     },
     "resolved_from": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Resolved From"
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "jurisdictions",
     "clause_maps",
     "locale",
     "currency",
     "jurisdiction_packs",
     "retention_days",
     "fairness_attributes",
     "incident_regimes",
     "disclosure_regimes",
     "forbidden_capabilities"
    ],
    "title": "MarketProfileOut",
    "description": "The regime in force, and what it decides."
   },
   "MarketProfilesOut": {
    "properties": {
     "profiles": {
      "items": {
       "$ref": "#/components/schemas/MarketProfileOut"
      },
      "type": "array",
      "title": "Profiles"
     }
    },
    "type": "object",
    "required": [
     "profiles"
    ],
    "title": "MarketProfilesOut",
    "description": "Every regime this deployment knows about."
   },
   "MeOut": {
    "properties": {
     "identity": {
      "$ref": "#/components/schemas/IdentityOut"
     },
     "roles": {
      "items": {
       "$ref": "#/components/schemas/RoleOut"
      },
      "type": "array",
      "title": "Roles"
     },
     "teams": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Teams"
     },
     "workspace": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/WorkspaceOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "market_profile": {
      "additionalProperties": true,
      "type": "object",
      "title": "Market Profile"
     },
     "memberships": {
      "items": {
       "$ref": "#/components/schemas/MembershipOut"
      },
      "type": "array",
      "title": "Memberships"
     }
    },
    "type": "object",
    "required": [
     "identity",
     "roles",
     "teams",
     "market_profile",
     "memberships"
    ],
    "title": "MeOut",
    "description": "Who the caller is, and what that permits here."
   },
   "MembershipOut": {
    "properties": {
     "workspace_id": {
      "type": "string",
      "title": "Workspace Id"
     },
     "workspace_slug": {
      "type": "string",
      "title": "Workspace Slug"
     },
     "workspace_name": {
      "type": "string",
      "title": "Workspace Name"
     },
     "roles": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Roles"
     },
     "current": {
      "type": "boolean",
      "title": "Current",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "workspace_id",
     "workspace_slug",
     "workspace_name",
     "roles"
    ],
    "title": "MembershipOut"
   },
   "ModelCreatedOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "version": {
      "type": "string",
      "title": "Version"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "version"
    ],
    "title": "ModelCreatedOut"
   },
   "ModelIn": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "provider": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provider"
     },
     "version": {
      "type": "string",
      "title": "Version"
     },
     "model_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Model Type"
     },
     "vendor_flag": {
      "type": "boolean",
      "title": "Vendor Flag",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "name",
     "version"
    ],
    "title": "ModelIn"
   },
   "ModelOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "provider": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provider"
     },
     "version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Version"
     },
     "model_type": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Model Type"
     },
     "vendor_flag": {
      "type": "boolean",
      "title": "Vendor Flag"
     },
     "validation_status": {
      "type": "string",
      "title": "Validation Status"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "last_observed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Observed At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "vendor_flag",
     "validation_status",
     "source"
    ],
    "title": "ModelOut",
    "description": "A model this workspace has actually seen serve a call."
   },
   "ModelRef": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
     },
     "provider": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Provider"
     },
     "version": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 100
       },
       {
        "type": "null"
       }
      ],
      "title": "Version"
     }
    },
    "type": "object",
    "required": [
     "name"
    ],
    "title": "ModelRef",
    "description": "The model that actually SERVED a call, as the runtime saw it."
   },
   "NarrativeIn": {
    "properties": {
     "answers": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Answers"
     },
     "note": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 3,
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "note"
    ],
    "title": "NarrativeIn",
    "description": "The controller's half. Everything here is theirs and stays theirs."
   },
   "NotificationOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "subject_kind": {
      "type": "string",
      "title": "Subject Kind"
     },
     "subject_id": {
      "type": "string",
      "title": "Subject Id"
     },
     "urgency": {
      "type": "string",
      "title": "Urgency"
     },
     "at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "At"
     },
     "acknowledged_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Acknowledged By"
     },
     "acknowledged_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Acknowledged At"
     }
    },
    "type": "object",
    "required": [
     "key",
     "kind",
     "title",
     "detail",
     "subject_kind",
     "subject_id",
     "urgency"
    ],
    "title": "NotificationOut"
   },
   "NotificationsOut": {
    "properties": {
     "notifications": {
      "items": {
       "$ref": "#/components/schemas/NotificationOut"
      },
      "type": "array",
      "title": "Notifications",
      "default": []
     },
     "unacknowledged": {
      "type": "integer",
      "title": "Unacknowledged",
      "default": 0
     },
     "scope": {
      "type": "string",
      "title": "Scope",
      "default": ""
     }
    },
    "type": "object",
    "title": "NotificationsOut"
   },
   "ObserveIn": {
    "properties": {
     "server": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Server"
     },
     "transport": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 16
       },
       {
        "type": "null"
       }
      ],
      "title": "Transport"
     },
     "endpoint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endpoint"
     },
     "tools": {
      "items": {
       "$ref": "#/components/schemas/ToolIn"
      },
      "type": "array",
      "title": "Tools"
     },
     "agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Id"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     }
    },
    "type": "object",
    "required": [
     "server",
     "tools"
    ],
    "title": "ObserveIn"
   },
   "ObserveOut": {
    "properties": {
     "server_id": {
      "type": "string",
      "title": "Server Id"
     },
     "discovered": {
      "type": "boolean",
      "title": "Discovered",
      "description": "true if this call created the server"
     },
     "tool_count": {
      "type": "integer",
      "title": "Tool Count"
     },
     "changes": {
      "items": {
       "$ref": "#/components/schemas/ChangeOut"
      },
      "type": "array",
      "title": "Changes"
     },
     "injection_risk": {
      "type": "boolean",
      "title": "Injection Risk",
      "description": "a description moved while its schema did not — the signature of tool poisoning rather than a version bump"
     },
     "first_sight": {
      "items": {
       "$ref": "#/components/schemas/FirstSightOut"
      },
      "type": "array",
      "title": "First Sight"
     }
    },
    "type": "object",
    "required": [
     "server_id",
     "discovered",
     "tool_count",
     "changes",
     "injection_risk"
    ],
    "title": "ObserveOut"
   },
   "OrganizationOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "slug"
    ],
    "title": "OrganizationOut"
   },
   "OverdueListOut": {
    "properties": {
     "overdue": {
      "items": {
       "$ref": "#/components/schemas/OverdueOut"
      },
      "type": "array",
      "title": "Overdue"
     },
     "scanned": {
      "type": "integer",
      "title": "Scanned"
     },
     "unscanned": {
      "type": "integer",
      "title": "Unscanned"
     }
    },
    "type": "object",
    "required": [
     "overdue",
     "scanned",
     "unscanned"
    ],
    "title": "OverdueListOut"
   },
   "OverdueOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "reference": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference"
     },
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "retention_days": {
      "type": "integer",
      "title": "Retention Days"
     },
     "age_days": {
      "type": "integer",
      "title": "Age Days"
     },
     "over_by_days": {
      "type": "integer",
      "title": "Over By Days"
     },
     "families": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Families"
     }
    },
    "type": "object",
    "required": [
     "trajectory_id",
     "market_profile",
     "retention_days",
     "age_days",
     "over_by_days",
     "families"
    ],
    "title": "OverdueOut"
   },
   "OverviewOut": {
    "properties": {
     "agents": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Agents"
     },
     "grants": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Grants"
     },
     "trajectories": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Trajectories"
     },
     "decisions": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Decisions"
     },
     "evidence": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Evidence",
      "default": {}
     },
     "scope": {
      "type": "string",
      "title": "Scope"
     }
    },
    "type": "object",
    "required": [
     "agents",
     "grants",
     "trajectories",
     "decisions",
     "scope"
    ],
    "title": "OverviewOut",
    "description": "The landing page. Every number here is a link to the thing it counts."
   },
   "PackFixOut": {
    "properties": {
     "evidence": {
      "type": "string",
      "title": "Evidence"
     },
     "fix": {
      "type": "string",
      "title": "Fix"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "route": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Route"
     }
    },
    "type": "object",
    "required": [
     "evidence",
     "fix",
     "kind"
    ],
    "title": "PackFixOut",
    "description": "One way to close a gap, and where to do it."
   },
   "PackGapOut": {
    "properties": {
     "clause": {
      "type": "string",
      "title": "Clause"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "missing": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Missing"
     },
     "fixes": {
      "items": {
       "$ref": "#/components/schemas/PackFixOut"
      },
      "type": "array",
      "title": "Fixes",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "clause",
     "title",
     "missing"
    ],
    "title": "PackGapOut",
    "description": "A clause with nothing behind it. The point of the document."
   },
   "PackOut": {
    "properties": {
     "pack_version": {
      "type": "integer",
      "title": "Pack Version"
     },
     "generated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Generated At",
      "description": "ISO 8601. Passed through verbatim; the signature covers it."
     },
     "workspace_id": {
      "type": "string",
      "title": "Workspace Id"
     },
     "disclaimer": {
      "additionalProperties": true,
      "type": "object",
      "title": "Disclaimer"
     },
     "regime": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/RegimeDisclosureOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "instrument": {
      "$ref": "#/components/schemas/ClauseMapOut"
     },
     "score": {
      "$ref": "#/components/schemas/PackScoreOut"
     },
     "sections": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Sections"
     },
     "seal": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DocumentSealOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "gaps": {
      "items": {
       "$ref": "#/components/schemas/PackGapOut"
      },
      "type": "array",
      "title": "Gaps"
     }
    },
    "type": "object",
    "required": [
     "pack_version",
     "generated_at",
     "workspace_id",
     "disclaimer",
     "instrument",
     "score",
     "sections",
     "gaps"
    ],
    "title": "PackOut",
    "description": "A regulator-facing pack for one instrument."
   },
   "PackScoreOut": {
    "properties": {
     "satisfied": {
      "type": "integer",
      "title": "Satisfied"
     },
     "scored_clauses": {
      "type": "integer",
      "title": "Scored Clauses"
     },
     "percent": {
      "type": "integer",
      "title": "Percent"
     },
     "note": {
      "type": "string",
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "satisfied",
     "scored_clauses",
     "percent",
     "note"
    ],
    "title": "PackScoreOut",
    "description": "How much of the instrument is evidenced."
   },
   "PartialSuccess": {
    "properties": {
     "rejectedSpans": {
      "type": "integer",
      "title": "Rejectedspans",
      "default": 0
     },
     "errorMessage": {
      "type": "string",
      "title": "Errormessage",
      "default": ""
     }
    },
    "type": "object",
    "title": "PartialSuccess"
   },
   "PolicyDiagnosticsOut": {
    "properties": {
     "reasons": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Reasons",
      "default": []
     },
     "errors": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Errors",
      "default": []
     },
     "detail": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     }
    },
    "type": "object",
    "title": "PolicyDiagnosticsOut",
    "description": "Why the policy said what it said."
   },
   "PrepareIn": {
    "properties": {
     "what_changed": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 5000
       },
       {
        "type": "null"
       }
      ],
      "title": "What Changed"
     },
     "filed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Filed At"
     },
     "filed_to": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "Filed To"
     }
    },
    "type": "object",
    "title": "PrepareIn"
   },
   "PreviewOut": {
    "properties": {
     "statement": {
      "type": "string",
      "title": "Statement"
     },
     "policy_rendering": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Rendering"
     },
     "challenge": {
      "type": "string",
      "title": "Challenge"
     },
     "token": {
      "type": "string",
      "title": "Token"
     },
     "bounds_rendering": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Bounds Rendering",
      "default": []
     },
     "policy_vacuity": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Vacuity"
     },
     "policy_unreachable_bounds": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Policy Unreachable Bounds",
      "default": []
     }
    },
    "type": "object",
    "required": [
     "statement",
     "challenge",
     "token"
    ],
    "title": "PreviewOut",
    "description": "What the browser must sign, and the token that pins it."
   },
   "PromoteIn": {
    "properties": {
     "enforcement_mode": {
      "type": "string",
      "pattern": "^(observe|shadow|canary|enforce)$",
      "title": "Enforcement Mode"
     },
     "canary_percent": {
      "anyOf": [
       {
        "type": "integer",
        "maximum": 100.0,
        "exclusiveMinimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Canary Percent"
     },
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "enforcement_mode",
     "reason"
    ],
    "title": "PromoteIn"
   },
   "ProofOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "leaf_hash": {
      "type": "string",
      "title": "Leaf Hash"
     },
     "position": {
      "type": "integer",
      "title": "Position"
     },
     "proof": {
      "items": {
       "additionalProperties": {
        "type": "string"
       },
       "type": "object"
      },
      "type": "array",
      "title": "Proof"
     },
     "root_hash": {
      "type": "string",
      "title": "Root Hash"
     },
     "leaf_count": {
      "type": "integer",
      "title": "Leaf Count"
     },
     "signature": {
      "type": "string",
      "title": "Signature"
     },
     "signing_key_ref": {
      "type": "string",
      "title": "Signing Key Ref"
     },
     "public_key": {
      "type": "string",
      "title": "Public Key"
     },
     "key_custody": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Key Custody"
     },
     "key_custody_means": {
      "type": "string",
      "title": "Key Custody Means",
      "default": ""
     },
     "key_is_recorded": {
      "type": "boolean",
      "title": "Key Is Recorded",
      "default": false
     },
     "sealed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Sealed At"
     },
     "anchor": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AnchorOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "timestamp": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/TimestampOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "verified_locally": {
      "type": "boolean",
      "title": "Verified Locally"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     }
    },
    "type": "object",
    "required": [
     "trajectory_id",
     "leaf_hash",
     "position",
     "proof",
     "root_hash",
     "leaf_count",
     "signature",
     "signing_key_ref",
     "public_key",
     "sealed_at",
     "verified_locally",
     "how_to_verify"
    ],
    "title": "ProofOut",
    "description": "An inclusion proof a counterparty can check without us."
   },
   "ProvenanceDriftOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "known": {
      "type": "boolean",
      "title": "Known"
     },
     "reading": {
      "type": "string",
      "title": "Reading"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "issued_against_version": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued Against Version"
     },
     "issued_against_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued Against Hash"
     },
     "current_version": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Version"
     },
     "current_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Hash"
     },
     "drifted": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Drifted"
     },
     "version_tolerance": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Version Tolerance"
     },
     "within_tolerance": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Within Tolerance"
     },
     "tolerance_verdict": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tolerance Verdict"
     },
     "tools_added_since": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tools Added Since"
     }
    },
    "type": "object",
    "required": [
     "grant_id",
     "known",
     "reading"
    ],
    "title": "ProvenanceDriftOut",
    "description": "Has the agent changed since this authority was issued, and does it matter?"
   },
   "ProvenanceIn": {
    "properties": {
     "model_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Model Id"
     },
     "model": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/ModelRef"
       },
       {
        "type": "null"
       }
      ]
     },
     "prompt_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prompt Version"
     },
     "tool_manifest": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tool Manifest"
     },
     "knowledge_sources": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Knowledge Sources"
     }
    },
    "type": "object",
    "title": "ProvenanceIn"
   },
   "ProvenanceOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "version": {
      "type": "integer",
      "title": "Version"
     },
     "content_hash": {
      "type": "string",
      "title": "Content Hash"
     },
     "manifest_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Manifest Hash"
     },
     "inherited_fields": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Inherited Fields"
     },
     "unchanged": {
      "type": "boolean",
      "title": "Unchanged"
     },
     "previous_version": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Previous Version"
     },
     "grants_bound_to_previous": {
      "type": "integer",
      "title": "Grants Bound To Previous",
      "default": 0
     },
     "findings": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Findings"
     }
    },
    "type": "object",
    "required": [
     "id",
     "version",
     "content_hash",
     "inherited_fields",
     "unchanged",
     "findings"
    ],
    "title": "ProvenanceOut",
    "description": "What was recorded, and what it means for authority already issued."
   },
   "ProvenanceRecordOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "version": {
      "type": "integer",
      "title": "Version"
     },
     "model_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Model Id"
     },
     "prompt_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prompt Version"
     },
     "tool_manifest": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tool Manifest"
     },
     "knowledge_sources": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Knowledge Sources"
     },
     "content_hash": {
      "type": "string",
      "title": "Content Hash"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "version",
     "content_hash",
     "created_at"
    ],
    "title": "ProvenanceRecordOut",
    "description": "One recorded configuration of an agent, as the history table reads it."
   },
   "ReadinessOut": {
    "properties": {
     "generated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Generated At"
     },
     "workspace_id": {
      "type": "string",
      "title": "Workspace Id"
     },
     "disclaimer": {
      "additionalProperties": true,
      "type": "object",
      "title": "Disclaimer"
     },
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "market_profile_source": {
      "type": "string",
      "title": "Market Profile Source"
     },
     "instruments": {
      "items": {
       "$ref": "#/components/schemas/InstrumentReadiness"
      },
      "type": "array",
      "title": "Instruments"
     },
     "selects_no_instrument": {
      "type": "boolean",
      "title": "Selects No Instrument"
     },
     "scope_note": {
      "type": "string",
      "title": "Scope Note"
     },
     "evidence": {
      "additionalProperties": {
       "$ref": "#/components/schemas/EvidenceAvailability"
      },
      "type": "object",
      "title": "Evidence"
     },
     "next_actions": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Next Actions"
     },
     "improvements": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Improvements"
     }
    },
    "type": "object",
    "required": [
     "generated_at",
     "workspace_id",
     "disclaimer",
     "market_profile",
     "market_profile_source",
     "instruments",
     "selects_no_instrument",
     "scope_note",
     "evidence",
     "next_actions",
     "improvements"
    ],
    "title": "ReadinessOut",
    "description": "How far the evidence goes — never whether anybody is compliant."
   },
   "RedTeamOut": {
    "properties": {
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "packs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Packs"
     },
     "method": {
      "type": "string",
      "title": "Method"
     },
     "iterations": {
      "type": "integer",
      "title": "Iterations"
     },
     "attacks_evaluated": {
      "type": "integer",
      "title": "Attacks Evaluated"
     },
     "evasions_found": {
      "type": "integer",
      "title": "Evasions Found"
     },
     "attack_success_rate": {
      "type": "number",
      "title": "Attack Success Rate"
     },
     "cells_total": {
      "type": "integer",
      "title": "Cells Total"
     },
     "cells_evaded": {
      "type": "integer",
      "title": "Cells Evaded"
     },
     "cells_with_a_defect": {
      "type": "integer",
      "title": "Cells With A Defect",
      "default": 0
     },
     "defect_note": {
      "type": "string",
      "title": "Defect Note",
      "default": ""
     },
     "share_of_grid_evaded": {
      "type": "number",
      "title": "Share Of Grid Evaded"
     },
     "elites": {
      "items": {
       "$ref": "#/components/schemas/EvasionOut"
      },
      "type": "array",
      "title": "Elites"
     },
     "held": {
      "items": {
       "$ref": "#/components/schemas/HeldOut"
      },
      "type": "array",
      "title": "Held"
     },
     "packs_untested": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Packs Untested",
      "default": []
     },
     "scope_note": {
      "type": "string",
      "title": "Scope Note"
     },
     "residual_note": {
      "type": "string",
      "title": "Residual Note"
     },
     "composition_note": {
      "type": "string",
      "title": "Composition Note"
     },
     "seeds_note": {
      "type": "string",
      "title": "Seeds Note"
     },
     "mutations": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Mutations"
     }
    },
    "type": "object",
    "required": [
     "market_profile",
     "packs",
     "method",
     "iterations",
     "attacks_evaluated",
     "evasions_found",
     "attack_success_rate",
     "cells_total",
     "cells_evaded",
     "share_of_grid_evaded",
     "elites",
     "held",
     "scope_note",
     "residual_note",
     "composition_note",
     "seeds_note",
     "mutations"
    ],
    "title": "RedTeamOut"
   },
   "RegimeDisclosureOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "applies": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Applies",
      "default": []
     },
     "resolved_from": {
      "type": "string",
      "title": "Resolved From"
     },
     "requires_second_approver_above_minor": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Requires Second Approver Above Minor"
     },
     "second_approver_currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Second Approver Currency"
     },
     "forbids": {
      "additionalProperties": {
       "type": "string"
      },
      "type": "object",
      "title": "Forbids",
      "default": {}
     },
     "assessed_against": {
      "type": "string",
      "title": "Assessed Against"
     }
    },
    "type": "object",
    "required": [
     "code",
     "name",
     "resolved_from",
     "assessed_against"
    ],
    "title": "RegimeDisclosureOut",
    "description": "Which law an artefact was produced under, and what it required."
   },
   "RegisterAgentOut": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "calls": {
      "type": "integer",
      "title": "Calls"
     },
     "last_call_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Call At"
     }
    },
    "type": "object",
    "required": [
     "agent_id",
     "calls"
    ],
    "title": "RegisterAgentOut"
   },
   "RegisterFindingOut": {
    "properties": {
     "code": {
      "type": "string",
      "title": "Code"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "code",
     "detail"
    ],
    "title": "RegisterFindingOut"
   },
   "RegisterGrantOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "principal_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Principal Id"
     }
    },
    "type": "object",
    "required": [
     "grant_id"
    ],
    "title": "RegisterGrantOut"
   },
   "RegisterIn": {
    "properties": {
     "label": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Label"
     },
     "credential": {
      "additionalProperties": true,
      "type": "object",
      "title": "Credential"
     },
     "challenge": {
      "type": "string",
      "title": "Challenge"
     }
    },
    "type": "object",
    "required": [
     "label",
     "credential",
     "challenge"
    ],
    "title": "RegisterIn"
   },
   "RegisterOut": {
    "properties": {
     "generated_at": {
      "type": "string",
      "title": "Generated At"
     },
     "dependencies": {
      "items": {
       "$ref": "#/components/schemas/DependencyOut"
      },
      "type": "array",
      "title": "Dependencies"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "scope": {
      "type": "string",
      "title": "Scope"
     },
     "regulation": {
      "type": "string",
      "title": "Regulation"
     }
    },
    "type": "object",
    "required": [
     "generated_at",
     "dependencies",
     "count",
     "scope",
     "regulation"
    ],
    "title": "RegisterOut",
    "description": "The standing register, not a per-incident list."
   },
   "RemediesOut": {
    "properties": {
     "ledger_id": {
      "type": "string",
      "title": "Ledger Id"
     },
     "replayable": {
      "type": "boolean",
      "title": "Replayable"
     },
     "why": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Why"
     },
     "recorded_outcome": {
      "type": "string",
      "title": "Recorded Outcome"
     },
     "candidates": {
      "items": {
       "$ref": "#/components/schemas/RemedyCandidate"
      },
      "type": "array",
      "title": "Candidates"
     },
     "reading": {
      "type": "string",
      "title": "Reading"
     }
    },
    "type": "object",
    "required": [
     "ledger_id",
     "replayable",
     "recorded_outcome",
     "candidates",
     "reading"
    ],
    "title": "RemediesOut"
   },
   "RemedyCandidate": {
    "properties": {
     "label": {
      "type": "string",
      "title": "Label"
     },
     "proposal": {
      "additionalProperties": true,
      "type": "object",
      "title": "Proposal"
     },
     "would_have_prevented": {
      "type": "boolean",
      "title": "Would Have Prevented"
     },
     "outcome": {
      "type": "string",
      "title": "Outcome"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "would_also_refuse_elsewhere": {
      "type": "integer",
      "title": "Would Also Refuse Elsewhere"
     },
     "out_of_decisions": {
      "type": "integer",
      "title": "Out Of Decisions"
     }
    },
    "type": "object",
    "required": [
     "label",
     "proposal",
     "would_have_prevented",
     "outcome",
     "would_also_refuse_elsewhere",
     "out_of_decisions"
    ],
    "title": "RemedyCandidate"
   },
   "ReplayChangeOut": {
    "properties": {
     "ledger_id": {
      "type": "string",
      "title": "Ledger Id"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "recorded": {
      "type": "string",
      "title": "Recorded"
     },
     "counterfactual": {
      "type": "string",
      "title": "Counterfactual"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     },
     "created_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Created At"
     }
    },
    "type": "object",
    "required": [
     "ledger_id",
     "recorded",
     "counterfactual",
     "reason"
    ],
    "title": "ReplayChangeOut",
    "description": "One decision a counterfactual would have decided differently."
   },
   "ReplayIn": {
    "properties": {
     "proposal": {
      "additionalProperties": true,
      "type": "object",
      "title": "Proposal"
     },
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Since"
     },
     "until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Until"
     },
     "limit": {
      "type": "integer",
      "maximum": 50000.0,
      "minimum": 1.0,
      "title": "Limit",
      "default": 5000
     }
    },
    "type": "object",
    "title": "ReplayIn",
    "description": "A hypothetical policy, and the window of real history to test it against."
   },
   "ReplayOut": {
    "properties": {
     "ledger_id": {
      "type": "string",
      "title": "Ledger Id"
     },
     "replayable": {
      "type": "boolean",
      "title": "Replayable"
     },
     "recorded_outcome": {
      "type": "string",
      "title": "Recorded Outcome"
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     },
     "why": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Why"
     },
     "replayed_outcome": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Replayed Outcome"
     },
     "matches": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Matches"
     },
     "recorded_policy_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Recorded Policy Version"
     },
     "current_policy_version": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Policy Version"
     },
     "policy_changed": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Policy Changed"
     },
     "context_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Context Hash"
     },
     "context_intact": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Context Intact"
     },
     "findings": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Findings"
     },
     "trace": {
      "anyOf": [
       {
        "items": {
         "$ref": "#/components/schemas/TraceStepOut"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trace"
     },
     "enforcement": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/EnforcementOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "ledger_id",
     "replayable",
     "recorded_outcome"
    ],
    "title": "ReplayOut",
    "description": "Re-deciding one sealed decision from its own record."
   },
   "ReplaySweepOut": {
    "properties": {
     "proposal": {
      "additionalProperties": true,
      "type": "object",
      "title": "Proposal"
     },
     "window": {
      "$ref": "#/components/schemas/ReplayWindow"
     },
     "policy_version": {
      "type": "string",
      "title": "Policy Version"
     },
     "replayed": {
      "type": "integer",
      "title": "Replayed"
     },
     "unchanged": {
      "type": "integer",
      "title": "Unchanged"
     },
     "changed": {
      "type": "integer",
      "title": "Changed"
     },
     "skipped_unsealed": {
      "type": "integer",
      "title": "Skipped Unsealed"
     },
     "skipped_other_policy_version": {
      "type": "integer",
      "title": "Skipped Other Policy Version"
     },
     "inferred_budget_arm": {
      "type": "integer",
      "title": "Inferred Budget Arm"
     },
     "would_newly_refuse": {
      "type": "integer",
      "title": "Would Newly Refuse"
     },
     "would_newly_allow": {
      "type": "integer",
      "title": "Would Newly Allow"
     },
     "transitions": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Transitions"
     },
     "sample_newly_refused": {
      "items": {
       "$ref": "#/components/schemas/ReplayChangeOut"
      },
      "type": "array",
      "title": "Sample Newly Refused"
     },
     "sample_newly_allowed": {
      "items": {
       "$ref": "#/components/schemas/ReplayChangeOut"
      },
      "type": "array",
      "title": "Sample Newly Allowed"
     },
     "reading": {
      "type": "string",
      "title": "Reading"
     }
    },
    "type": "object",
    "required": [
     "proposal",
     "window",
     "policy_version",
     "replayed",
     "unchanged",
     "changed",
     "skipped_unsealed",
     "skipped_other_policy_version",
     "inferred_budget_arm",
     "would_newly_refuse",
     "would_newly_allow",
     "transitions",
     "sample_newly_refused",
     "sample_newly_allowed",
     "reading"
    ],
    "title": "ReplaySweepOut",
    "description": "What a proposed change would have done across recorded history."
   },
   "ReplayWindow": {
    "properties": {
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Since"
     },
     "until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Until"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     }
    },
    "type": "object",
    "required": [
     "limit"
    ],
    "title": "ReplayWindow"
   },
   "ReportOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "incident_id": {
      "type": "string",
      "title": "Incident Id"
     },
     "revision": {
      "type": "integer",
      "title": "Revision"
     },
     "supersedes": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Supersedes"
     },
     "what_changed": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "What Changed"
     },
     "content_hash": {
      "type": "string",
      "title": "Content Hash"
     },
     "prepared_by": {
      "type": "string",
      "title": "Prepared By"
     },
     "prepared_by_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prepared By Email"
     },
     "prepared_at": {
      "type": "string",
      "format": "date-time",
      "title": "Prepared At"
     },
     "filed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Filed At"
     },
     "filed_to": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Filed To"
     },
     "dossier": {
      "additionalProperties": true,
      "type": "object",
      "title": "Dossier"
     }
    },
    "type": "object",
    "required": [
     "id",
     "incident_id",
     "revision",
     "content_hash",
     "prepared_by",
     "prepared_at",
     "dossier"
    ],
    "title": "ReportOut"
   },
   "ReportableIncidentIn": {
    "properties": {
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "classification": {
      "type": "string",
      "title": "Classification"
     },
     "aware_at": {
      "type": "string",
      "format": "date-time",
      "title": "Aware At"
     },
     "occurred_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Occurred At"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 5000
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "classification_reason": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 5000
       },
       {
        "type": "null"
       }
      ],
      "title": "Classification Reason"
     }
    },
    "type": "object",
    "required": [
     "classification",
     "aware_at"
    ],
    "title": "ReportableIncidentIn"
   },
   "ReportableIncidentOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "classification": {
      "type": "string",
      "title": "Classification"
     },
     "classification_label": {
      "type": "string",
      "title": "Classification Label"
     },
     "classified_by": {
      "type": "string",
      "title": "Classified By"
     },
     "classified_by_email": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Classified By Email"
     },
     "classification_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Classification Reason"
     },
     "aware_at": {
      "type": "string",
      "format": "date-time",
      "title": "Aware At"
     },
     "occurred_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Occurred At"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "summary": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Summary"
     },
     "closed_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Closed Reason"
     },
     "deadline": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Deadline"
     },
     "revisions": {
      "type": "integer",
      "title": "Revisions",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "id",
     "classification",
     "classification_label",
     "classified_by",
     "aware_at",
     "status"
    ],
    "title": "ReportableIncidentOut"
   },
   "ResidencyOut": {
    "properties": {
     "declared_region": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Declared Region"
     },
     "declared": {
      "type": "boolean",
      "title": "Declared"
     },
     "airgapped": {
      "type": "boolean",
      "title": "Airgapped",
      "default": false
     },
     "leaves_deployment": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Leaves Deployment"
     },
     "configured_egress": {
      "items": {
       "$ref": "#/components/schemas/EgressTarget"
      },
      "type": "array",
      "title": "Configured Egress"
     },
     "finding": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Finding"
     }
    },
    "type": "object",
    "required": [
     "declared_region",
     "declared",
     "configured_egress",
     "finding"
    ],
    "title": "ResidencyOut",
    "description": "Where this deployment says it runs, and everywhere it may talk."
   },
   "ResolveIn": {
    "properties": {
     "slug": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Slug"
     }
    },
    "type": "object",
    "required": [
     "slug"
    ],
    "title": "ResolveIn"
   },
   "ResolveOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "discovered": {
      "type": "boolean",
      "title": "Discovered",
      "description": "true if this call created the agent"
     },
     "governed": {
      "type": "boolean",
      "title": "Governed",
      "description": "false while the agent holds no authority"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "notice": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Notice"
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "status",
     "discovered",
     "governed",
     "environment"
    ],
    "title": "ResolveOut",
    "description": "What the SDK needs and nothing more."
   },
   "RevokeIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "RevokeIn"
   },
   "RevokeKeyIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "RevokeKeyIn"
   },
   "RevokeSupersededIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 20,
      "title": "Reason"
     },
     "dry_run": {
      "type": "boolean",
      "title": "Dry Run",
      "default": false
     },
     "agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Id"
     },
     "expected": {
      "anyOf": [
       {
        "type": "integer",
        "minimum": 0.0
       },
       {
        "type": "null"
       }
      ],
      "title": "Expected"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "RevokeSupersededIn",
    "description": "Revoke every grant a newer one has replaced and that was never used."
   },
   "RevokeSupersededOut": {
    "properties": {
     "matched": {
      "type": "integer",
      "title": "Matched"
     },
     "revoked": {
      "type": "integer",
      "title": "Revoked"
     },
     "dry_run": {
      "type": "boolean",
      "title": "Dry Run"
     },
     "rule": {
      "type": "string",
      "title": "Rule"
     },
     "audit_event_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Audit Event Id"
     }
    },
    "type": "object",
    "required": [
     "matched",
     "revoked",
     "dry_run",
     "rule"
    ],
    "title": "RevokeSupersededOut"
   },
   "RevokedKeyOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "environment": {
      "type": "string",
      "title": "Environment"
     },
     "scope_source": {
      "type": "string",
      "title": "Scope Source"
     },
     "display": {
      "type": "string",
      "title": "Display"
     },
     "created_by": {
      "type": "string",
      "title": "Created By"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "last_used_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Used At"
     },
     "revoked_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revoked At"
     },
     "revocation_reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Revocation Reason"
     },
     "active": {
      "type": "boolean",
      "title": "Active"
     },
     "never_used": {
      "type": "boolean",
      "title": "Never Used"
     },
     "dormant": {
      "type": "boolean",
      "title": "Dormant"
     },
     "note": {
      "type": "string",
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "environment",
     "scope_source",
     "display",
     "created_by",
     "created_at",
     "active",
     "never_used",
     "dormant",
     "note"
    ],
    "title": "RevokedKeyOut",
    "description": "A revoked key, and what that did."
   },
   "RevokedOut": {
    "properties": {
     "revoked": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Revoked"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "note": {
      "type": "string",
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "revoked",
     "count",
     "note"
    ],
    "title": "RevokedOut"
   },
   "RoleOut": {
    "properties": {
     "role": {
      "type": "string",
      "title": "Role"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "permits": {
      "type": "string",
      "title": "Permits"
     },
     "recognised": {
      "type": "boolean",
      "title": "Recognised"
     }
    },
    "type": "object",
    "required": [
     "role",
     "label",
     "permits",
     "recognised"
    ],
    "title": "RoleOut"
   },
   "RolloutOut": {
    "properties": {
     "grant_id": {
      "type": "string",
      "title": "Grant Id"
     },
     "enforcement_mode": {
      "type": "string",
      "enum": [
       "observe",
       "shadow",
       "canary",
       "enforce"
      ],
      "title": "Enforcement Mode"
     },
     "canary_percent": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Canary Percent"
     },
     "decisions": {
      "type": "integer",
      "title": "Decisions"
     },
     "suppressed": {
      "type": "integer",
      "title": "Suppressed"
     },
     "suppressed_amount_minor": {
      "type": "integer",
      "title": "Suppressed Amount Minor",
      "default": 0
     },
     "budget_currency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Currency"
     },
     "would_refuse": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Would Refuse"
     },
     "policy_refusal_rate": {
      "type": "number",
      "title": "Policy Refusal Rate"
     },
     "reading": {
      "type": "string",
      "title": "Reading"
     }
    },
    "type": "object",
    "required": [
     "grant_id",
     "enforcement_mode",
     "decisions",
     "suppressed",
     "would_refuse",
     "policy_refusal_rate",
     "reading"
    ],
    "title": "RolloutOut"
   },
   "RunIn": {
    "properties": {
     "attribute": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Attribute"
     },
     "agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Agent Id"
     },
     "since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Since"
     },
     "until": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Until"
     },
     "purpose": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 10,
      "title": "Purpose"
     }
    },
    "type": "object",
    "required": [
     "attribute",
     "purpose"
    ],
    "title": "RunIn"
   },
   "SafeguardOut": {
    "properties": {
     "key": {
      "type": "string",
      "title": "Key"
     },
     "title": {
      "type": "string",
      "title": "Title"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "fired": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Fired"
     },
     "to_enforce": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "To Enforce"
     }
    },
    "type": "object",
    "required": [
     "key",
     "title",
     "state",
     "detail"
    ],
    "title": "SafeguardOut"
   },
   "ScanOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "packs": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Packs"
     },
     "findings": {
      "items": {
       "$ref": "#/components/schemas/IdentifierFindingOut"
      },
      "type": "array",
      "title": "Findings"
     },
     "carries_personal_data": {
      "type": "boolean",
      "title": "Carries Personal Data"
     },
     "retention_days": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Retention Days"
     },
     "not_looked_for": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Not Looked For"
     },
     "scanned_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Scanned At"
     }
    },
    "type": "object",
    "required": [
     "trajectory_id",
     "market_profile",
     "packs",
     "findings",
     "carries_personal_data",
     "not_looked_for"
    ],
    "title": "ScanOut"
   },
   "ScansOut": {
    "properties": {
     "scans": {
      "items": {
       "$ref": "#/components/schemas/ScanOut"
      },
      "type": "array",
      "title": "Scans"
     }
    },
    "type": "object",
    "required": [
     "scans"
    ],
    "title": "ScansOut"
   },
   "ScreenOut": {
    "properties": {
     "id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Id"
     },
     "attribute": {
      "type": "string",
      "title": "Attribute"
     },
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "profile_source": {
      "type": "string",
      "title": "Profile Source"
     },
     "legal_basis": {
      "type": "string",
      "title": "Legal Basis"
     },
     "conditions": {
      "items": {
       "$ref": "#/components/schemas/ConditionOut"
      },
      "type": "array",
      "title": "Conditions"
     },
     "reference": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reference"
     },
     "decisions": {
      "type": "integer",
      "title": "Decisions"
     },
     "undisclosed": {
      "type": "integer",
      "title": "Undisclosed"
     },
     "cohorts": {
      "items": {
       "$ref": "#/components/schemas/CohortOut"
      },
      "type": "array",
      "title": "Cohorts"
     },
     "verdict": {
      "type": "string",
      "title": "Verdict"
     },
     "caveats": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Caveats"
     },
     "run_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Run By"
     },
     "run_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Run At"
     },
     "purpose": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Purpose"
     }
    },
    "type": "object",
    "required": [
     "attribute",
     "market_profile",
     "profile_source",
     "legal_basis",
     "conditions",
     "decisions",
     "undisclosed",
     "cohorts",
     "verdict",
     "caveats"
    ],
    "title": "ScreenOut"
   },
   "ScreenableOut": {
    "properties": {
     "market_profile": {
      "type": "string",
      "title": "Market Profile"
     },
     "attributes": {
      "items": {
       "$ref": "#/components/schemas/AttributeOut"
      },
      "type": "array",
      "title": "Attributes"
     }
    },
    "type": "object",
    "required": [
     "market_profile",
     "attributes"
    ],
    "title": "ScreenableOut"
   },
   "ScreensOut": {
    "properties": {
     "screens": {
      "items": {
       "$ref": "#/components/schemas/ScreenOut"
      },
      "type": "array",
      "title": "Screens"
     }
    },
    "type": "object",
    "required": [
     "screens"
    ],
    "title": "ScreensOut"
   },
   "SealHeadOut": {
    "properties": {
     "no": {
      "type": "integer",
      "title": "No"
     },
     "hash": {
      "type": "string",
      "title": "Hash"
     },
     "previous": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Previous"
     },
     "sealed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Sealed At"
     }
    },
    "type": "object",
    "required": [
     "no",
     "hash",
     "sealed_at"
    ],
    "title": "SealHeadOut"
   },
   "SealOut": {
    "properties": {
     "sealed": {
      "type": "boolean",
      "title": "Sealed"
     },
     "batch_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Batch Id"
     },
     "root_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Root Hash"
     },
     "leaf_count": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Leaf Count"
     },
     "signing_key_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signing Key Ref"
     },
     "anchor": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/AnchorOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "reason": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "sealed"
    ],
    "title": "SealOut"
   },
   "SealTimestampOut": {
    "properties": {
     "authority": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Authority"
     },
     "signer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signer"
     },
     "serial": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Serial"
     },
     "time": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Time"
     },
     "seconds_after_newest_record": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seconds After Newest Record"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "problem": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Problem"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "response": {
      "type": "string",
      "title": "Response"
     },
     "proves": {
      "type": "string",
      "title": "Proves"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     }
    },
    "type": "object",
    "required": [
     "state",
     "message",
     "response",
     "proves",
     "how_to_verify"
    ],
    "title": "SealTimestampOut",
    "description": "An authority's token over one seal, with what is needed to check it."
   },
   "SearchOut": {
    "properties": {
     "query": {
      "type": "string",
      "title": "Query"
     },
     "exact": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/HitOut"
       },
       {
        "type": "null"
       }
      ]
     },
     "hits": {
      "items": {
       "$ref": "#/components/schemas/HitOut"
      },
      "type": "array",
      "title": "Hits",
      "default": []
     },
     "counts": {
      "additionalProperties": {
       "type": "integer"
      },
      "type": "object",
      "title": "Counts",
      "default": {}
     },
     "total": {
      "type": "integer",
      "title": "Total",
      "default": 0
     },
     "shown": {
      "type": "integer",
      "title": "Shown",
      "default": 0
     }
    },
    "type": "object",
    "required": [
     "query"
    ],
    "title": "SearchOut"
   },
   "ServerOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "transport": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Transport"
     },
     "endpoint": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endpoint"
     },
     "first_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Seen At"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     },
     "tool_count": {
      "type": "integer",
      "title": "Tool Count"
     },
     "change_count": {
      "type": "integer",
      "title": "Change Count"
     }
    },
    "type": "object",
    "required": [
     "id",
     "name",
     "transport",
     "endpoint",
     "first_seen_at",
     "last_seen_at",
     "tool_count",
     "change_count"
    ],
    "title": "ServerOut"
   },
   "SettingGroupOut": {
    "properties": {
     "group": {
      "type": "string",
      "title": "Group"
     },
     "settings": {
      "items": {
       "$ref": "#/components/schemas/SettingOut"
      },
      "type": "array",
      "title": "Settings"
     }
    },
    "type": "object",
    "required": [
     "group",
     "settings"
    ],
    "title": "SettingGroupOut"
   },
   "SettingOut": {
    "properties": {
     "setting": {
      "type": "string",
      "title": "Setting"
     },
     "value": {
      "title": "Value"
     },
     "means": {
      "type": "string",
      "title": "Means"
     },
     "source": {
      "type": "string",
      "title": "Source"
     },
     "note": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "setting",
     "means",
     "source"
    ],
    "title": "SettingOut"
   },
   "SettleIn": {
    "properties": {
     "outcome": {
      "type": "string",
      "pattern": "^(settled|released)$",
      "title": "Outcome"
     },
     "note": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 500
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "type": "object",
    "required": [
     "outcome"
    ],
    "title": "SettleIn"
   },
   "ShiftOut": {
    "properties": {
     "measure": {
      "type": "string",
      "title": "Measure"
     },
     "key": {
      "type": "string",
      "title": "Key"
     },
     "before": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Before"
     },
     "after": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "After"
     },
     "delta": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Delta"
     },
     "z": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Z"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "measure",
     "key",
     "detail"
    ],
    "title": "ShiftOut"
   },
   "SigningKeyOut": {
    "properties": {
     "key_ref": {
      "type": "string",
      "title": "Key Ref"
     },
     "custody": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Custody"
     },
     "custody_means": {
      "type": "string",
      "title": "Custody Means"
     },
     "first_sealed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "First Sealed At"
     },
     "last_sealed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Sealed At"
     },
     "batches": {
      "type": "integer",
      "title": "Batches"
     },
     "current": {
      "type": "boolean",
      "title": "Current"
     }
    },
    "type": "object",
    "required": [
     "key_ref",
     "custody_means",
     "batches",
     "current"
    ],
    "title": "SigningKeyOut",
    "description": "One key that has signed roots in this deployment."
   },
   "SigningKeysOut": {
    "properties": {
     "current_key_ref": {
      "type": "string",
      "title": "Current Key Ref"
     },
     "current_custody": {
      "type": "string",
      "title": "Current Custody"
     },
     "current_custody_means": {
      "type": "string",
      "title": "Current Custody Means"
     },
     "ephemeral": {
      "type": "boolean",
      "title": "Ephemeral"
     },
     "keys": {
      "items": {
       "$ref": "#/components/schemas/SigningKeyOut"
      },
      "type": "array",
      "title": "Keys"
     }
    },
    "type": "object",
    "required": [
     "current_key_ref",
     "current_custody",
     "current_custody_means",
     "ephemeral",
     "keys"
    ],
    "title": "SigningKeysOut"
   },
   "SigningOut": {
    "properties": {
     "key_ref": {
      "type": "string",
      "title": "Key Ref"
     },
     "custody": {
      "type": "string",
      "title": "Custody"
     },
     "custody_means": {
      "type": "string",
      "title": "Custody Means"
     },
     "ephemeral": {
      "type": "boolean",
      "title": "Ephemeral"
     }
    },
    "type": "object",
    "required": [
     "key_ref",
     "custody",
     "custody_means",
     "ephemeral"
    ],
    "title": "SigningOut"
   },
   "SourceOut": {
    "properties": {
     "name": {
      "type": "string",
      "title": "Name"
     },
     "label": {
      "type": "string",
      "title": "Label"
     },
     "what_it_governs": {
      "type": "string",
      "title": "What It Governs"
     },
     "attests": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Attests"
     },
     "does_not_attest": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Does Not Attest"
     },
     "trajectories": {
      "type": "integer",
      "title": "Trajectories"
     },
     "decisions": {
      "type": "integer",
      "title": "Decisions"
     },
     "connected": {
      "type": "boolean",
      "title": "Connected"
     },
     "last_import_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Import At"
     }
    },
    "type": "object",
    "required": [
     "name",
     "label",
     "what_it_governs",
     "attests",
     "does_not_attest",
     "trajectories",
     "decisions",
     "connected"
    ],
    "title": "SourceOut"
   },
   "SourcesOut": {
    "properties": {
     "sources": {
      "items": {
       "$ref": "#/components/schemas/SourceOut"
      },
      "type": "array",
      "title": "Sources"
     },
     "total_decisions": {
      "type": "integer",
      "title": "Total Decisions"
     },
     "scope": {
      "type": "string",
      "title": "Scope"
     }
    },
    "type": "object",
    "required": [
     "sources",
     "total_decisions",
     "scope"
    ],
    "title": "SourcesOut"
   },
   "StampBacklogOut": {
    "properties": {
     "awaiting": {
      "type": "integer",
      "title": "Awaiting"
     },
     "waiting_since": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Waiting Since"
     }
    },
    "type": "object",
    "required": [
     "awaiting"
    ],
    "title": "StampBacklogOut",
    "description": "Whether seals are getting their timestamps, for a watcher outside."
   },
   "StandingOut": {
    "properties": {
     "state": {
      "type": "string",
      "title": "State"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "cleared": {
      "type": "boolean",
      "title": "Cleared"
     },
     "certificate_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Certificate Id"
     },
     "issued_by": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued By"
     },
     "issued_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Issued At"
     }
    },
    "type": "object",
    "required": [
     "state",
     "detail",
     "cleared"
    ],
    "title": "StandingOut",
    "description": "Whether the clearance still says what it said, computed now."
   },
   "StepIn": {
    "properties": {
     "kind": {
      "type": "string",
      "pattern": "^(plan|llm_call|tool_call|retrieval|delegation|enforcement|human_review|disclosure|extraction|access|sanitise|resource_refused)$",
      "title": "Kind"
     },
     "payload": {
      "additionalProperties": true,
      "type": "object",
      "title": "Payload"
     },
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "source_ref": {
      "type": "string",
      "title": "Source Ref",
      "default": ""
     },
     "trusted_source": {
      "type": "boolean",
      "title": "Trusted Source",
      "default": false
     },
     "discharges": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Discharges"
     }
    },
    "type": "object",
    "required": [
     "kind"
    ],
    "title": "StepIn"
   },
   "StepOut": {
    "properties": {
     "ordinal": {
      "type": "integer",
      "title": "Ordinal"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "grant_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Grant Id"
     },
     "taint_in": {
      "items": {
       "$ref": "#/components/schemas/TaintLabelOut"
      },
      "type": "array",
      "title": "Taint In"
     },
     "taint_out": {
      "items": {
       "$ref": "#/components/schemas/TaintLabelOut"
      },
      "type": "array",
      "title": "Taint Out"
     },
     "payload": {
      "additionalProperties": true,
      "type": "object",
      "title": "Payload"
     },
     "content_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Hash"
     }
    },
    "type": "object",
    "required": [
     "ordinal",
     "kind",
     "taint_in",
     "taint_out",
     "payload"
    ],
    "title": "StepOut",
    "description": "One step, as the trajectory timeline reads it."
   },
   "StreamOut": {
    "properties": {
     "stream_key": {
      "type": "string",
      "title": "Stream Key"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "issued": {
      "type": "integer",
      "title": "Issued"
     },
     "highest_seq": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Highest Seq"
     },
     "contiguous": {
      "type": "boolean",
      "title": "Contiguous"
     },
     "gaps": {
      "items": {
       "type": "integer"
      },
      "type": "array",
      "title": "Gaps"
     },
     "missing_from_tail": {
      "type": "boolean",
      "title": "Missing From Tail"
     },
     "last_record_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Record At"
     },
     "last_sealed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Last Sealed At"
     },
     "sealed": {
      "type": "boolean",
      "title": "Sealed",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "stream_key",
     "count",
     "issued",
     "contiguous",
     "gaps",
     "missing_from_tail"
    ],
    "title": "StreamOut",
    "description": "One evidence stream, and whether anything is missing from it."
   },
   "StreamsOut": {
    "properties": {
     "streams": {
      "items": {
       "$ref": "#/components/schemas/StreamOut"
      },
      "type": "array",
      "title": "Streams"
     },
     "count": {
      "type": "integer",
      "title": "Count"
     },
     "all_contiguous": {
      "type": "boolean",
      "title": "All Contiguous"
     },
     "unsealed": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "Unsealed"
     }
    },
    "type": "object",
    "required": [
     "streams",
     "count",
     "all_contiguous",
     "unsealed"
    ],
    "title": "StreamsOut"
   },
   "TaintLabelOut": {
    "properties": {
     "source_kind": {
      "type": "string",
      "title": "Source Kind"
     },
     "source_ref": {
      "type": "string",
      "title": "Source Ref"
     },
     "introduced_at_step": {
      "type": "integer",
      "title": "Introduced At Step"
     },
     "confidence": {
      "type": "number",
      "title": "Confidence",
      "default": 1.0
     }
    },
    "type": "object",
    "required": [
     "source_kind",
     "source_ref",
     "introduced_at_step"
    ],
    "title": "TaintLabelOut",
    "description": "One untrusted thing an agent read, and where it came from."
   },
   "TimestampOut": {
    "properties": {
     "authority": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Authority"
     },
     "signer": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Signer"
     },
     "serial": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Serial"
     },
     "time": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Time"
     },
     "seconds_after_newest_record": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Seconds After Newest Record"
     },
     "state": {
      "type": "string",
      "title": "State"
     },
     "problem": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Problem"
     },
     "message": {
      "type": "string",
      "title": "Message"
     },
     "response": {
      "type": "string",
      "title": "Response"
     },
     "proves": {
      "type": "string",
      "title": "Proves"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     }
    },
    "type": "object",
    "required": [
     "state",
     "message",
     "response",
     "proves",
     "how_to_verify"
    ],
    "title": "TimestampOut",
    "description": "A timestamp authority's token over this root.\n\nWhat says WHEN the root existed, in the words of a party that does not\nhold this deployment's key."
   },
   "ToolDriftOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "server_id": {
      "type": "string",
      "title": "Server Id"
     },
     "server_name": {
      "type": "string",
      "title": "Server Name"
     },
     "tool_name": {
      "type": "string",
      "title": "Tool Name"
     },
     "kind": {
      "type": "string",
      "title": "Kind"
     },
     "previous_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Previous Hash"
     },
     "current_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Current Hash"
     },
     "observed_by_agent_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Observed By Agent Id"
     },
     "trajectory_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Trajectory Id"
     },
     "observed_at": {
      "type": "string",
      "format": "date-time",
      "title": "Observed At"
     },
     "detail": {
      "additionalProperties": true,
      "type": "object",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "id",
     "server_id",
     "server_name",
     "tool_name",
     "kind",
     "previous_hash",
     "current_hash",
     "observed_by_agent_id",
     "trajectory_id",
     "observed_at",
     "detail"
    ],
    "title": "ToolDriftOut",
    "description": "One tool whose description or schema moved on an MCP server."
   },
   "ToolIn": {
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Name"
     },
     "description_hash": {
      "type": "string",
      "maxLength": 64,
      "minLength": 64,
      "title": "Description Hash"
     },
     "schema_hash": {
      "type": "string",
      "maxLength": 64,
      "minLength": 64,
      "title": "Schema Hash"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     }
    },
    "type": "object",
    "required": [
     "name",
     "description_hash",
     "schema_hash"
    ],
    "title": "ToolIn"
   },
   "ToolOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "server_id": {
      "type": "string",
      "title": "Server Id"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "description_hash": {
      "type": "string",
      "title": "Description Hash"
     },
     "schema_hash": {
      "type": "string",
      "title": "Schema Hash"
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "first_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "First Seen At"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "title": "Last Seen At"
     },
     "removed_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Removed At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "server_id",
     "name",
     "description_hash",
     "schema_hash",
     "description",
     "first_seen_at",
     "last_seen_at",
     "removed_at"
    ],
    "title": "ToolOut"
   },
   "TraceStepOut": {
    "properties": {
     "order": {
      "type": "integer",
      "title": "Order"
     },
     "gate": {
      "type": "string",
      "title": "Gate"
     },
     "question": {
      "type": "string",
      "title": "Question"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "detail": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "order",
     "gate",
     "question",
     "status"
    ],
    "title": "TraceStepOut"
   },
   "TracesIn": {
    "properties": {
     "resourceSpans": {
      "items": {
       "additionalProperties": true,
       "type": "object"
      },
      "type": "array",
      "title": "Resourcespans"
     }
    },
    "type": "object",
    "title": "TracesIn",
    "description": "An OTLP/JSON ExportTraceServiceRequest.\n\nLoosely typed on purpose. OTLP is versioned upstream and adds fields; a\nreceiver that 422s on an attribute it has not seen is a receiver that breaks\nwhen somebody upgrades their collector."
   },
   "TracesOut": {
    "properties": {
     "partialSuccess": {
      "$ref": "#/components/schemas/PartialSuccess"
     },
     "rotascale": {
      "additionalProperties": true,
      "type": "object",
      "title": "Rotascale"
     }
    },
    "type": "object",
    "required": [
     "partialSuccess",
     "rotascale"
    ],
    "title": "TracesOut"
   },
   "TrailHeadOut": {
    "properties": {
     "trail": {
      "type": "string",
      "title": "Trail"
     },
     "seals": {
      "type": "integer",
      "title": "Seals"
     },
     "recent": {
      "items": {
       "$ref": "#/components/schemas/SealHeadOut"
      },
      "type": "array",
      "title": "Recent"
     }
    },
    "type": "object",
    "required": [
     "trail",
     "seals",
     "recent"
    ],
    "title": "TrailHeadOut"
   },
   "TrajectoryDetailOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "stream_key": {
      "type": "string",
      "title": "Stream Key"
     },
     "seq": {
      "type": "integer",
      "title": "Seq"
     },
     "external_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Ref"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "taint": {
      "items": {
       "$ref": "#/components/schemas/TaintLabelOut"
      },
      "type": "array",
      "title": "Taint"
     },
     "content_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Hash"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "ended_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ended At"
     },
     "goal": {
      "additionalProperties": true,
      "type": "object",
      "title": "Goal"
     },
     "outcome": {
      "additionalProperties": true,
      "type": "object",
      "title": "Outcome"
     },
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     },
     "steps": {
      "items": {
       "$ref": "#/components/schemas/StepOut"
      },
      "type": "array",
      "title": "Steps"
     }
    },
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "stream_key",
     "seq",
     "external_ref",
     "status",
     "taint",
     "content_hash",
     "started_at",
     "ended_at",
     "goal",
     "outcome",
     "steps"
    ],
    "title": "TrajectoryDetailOut",
    "description": "The trajectory, plus everything it did."
   },
   "TrajectoryIn": {
    "properties": {
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "goal": {
      "additionalProperties": true,
      "type": "object",
      "title": "Goal"
     },
     "external_ref": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 200
       },
       {
        "type": "null"
       }
      ],
      "title": "External Ref"
     },
     "provenance_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provenance Id"
     },
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     }
    },
    "type": "object",
    "required": [
     "agent_id"
    ],
    "title": "TrajectoryIn"
   },
   "TrajectoryOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "agent_id": {
      "type": "string",
      "title": "Agent Id"
     },
     "stream_key": {
      "type": "string",
      "title": "Stream Key"
     },
     "seq": {
      "type": "integer",
      "title": "Seq"
     },
     "external_ref": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "External Ref"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "taint": {
      "items": {
       "$ref": "#/components/schemas/TaintLabelOut"
      },
      "type": "array",
      "title": "Taint"
     },
     "content_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Content Hash"
     },
     "started_at": {
      "type": "string",
      "format": "date-time",
      "title": "Started At"
     },
     "ended_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ended At"
     }
    },
    "type": "object",
    "required": [
     "id",
     "agent_id",
     "stream_key",
     "seq",
     "external_ref",
     "status",
     "taint",
     "content_hash",
     "started_at",
     "ended_at"
    ],
    "title": "TrajectoryOut"
   },
   "TrajectoryPageOut": {
    "properties": {
     "trajectories": {
      "items": {
       "$ref": "#/components/schemas/TrajectoryOut"
      },
      "type": "array",
      "title": "Trajectories"
     },
     "total": {
      "type": "integer",
      "title": "Total"
     },
     "limit": {
      "type": "integer",
      "title": "Limit"
     },
     "offset": {
      "type": "integer",
      "title": "Offset"
     },
     "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "trajectories",
     "total",
     "limit",
     "offset"
    ],
    "title": "TrajectoryPageOut",
    "description": "A page of trajectories, and the size of the set it came from."
   },
   "TripOut": {
    "properties": {
     "window_end": {
      "type": "string",
      "title": "Window End"
     },
     "clause": {
      "type": "string",
      "title": "Clause"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     }
    },
    "type": "object",
    "required": [
     "window_end",
     "clause",
     "detail"
    ],
    "title": "TripOut"
   },
   "UnblockOut": {
    "properties": {
     "action": {
      "type": "string",
      "title": "Action"
     },
     "detail": {
      "type": "string",
      "title": "Detail"
     },
     "weakens_control": {
      "type": "boolean",
      "title": "Weakens Control",
      "default": false
     }
    },
    "type": "object",
    "required": [
     "action",
     "detail"
    ],
    "title": "UnblockOut"
   },
   "ValidationError": {
    "properties": {
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "type": "array",
      "title": "Location"
     },
     "msg": {
      "type": "string",
      "title": "Message"
     },
     "type": {
      "type": "string",
      "title": "Error Type"
     },
     "input": {
      "title": "Input"
     },
     "ctx": {
      "type": "object",
      "title": "Context"
     }
    },
    "type": "object",
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError"
   },
   "VerificationStatementOut": {
    "properties": {
     "public_key": {
      "type": "string",
      "title": "Public Key"
     },
     "encoding": {
      "type": "string",
      "title": "Encoding"
     },
     "kid": {
      "type": "string",
      "title": "Kid"
     },
     "custody": {
      "type": "string",
      "title": "Custody"
     },
     "custody_means": {
      "type": "string",
      "title": "Custody Means"
     },
     "confirm_at": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Confirm At"
     },
     "confirm_note": {
      "type": "string",
      "title": "Confirm Note"
     },
     "how_to_verify": {
      "type": "string",
      "title": "How To Verify"
     },
     "limits": {
      "type": "string",
      "title": "Limits"
     },
     "issued_at": {
      "type": "string",
      "title": "Issued At"
     },
     "seal": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DocumentSealOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "public_key",
     "encoding",
     "kid",
     "custody",
     "custody_means",
     "confirm_at",
     "confirm_note",
     "how_to_verify",
     "limits",
     "issued_at"
    ],
    "title": "VerificationStatementOut",
    "description": "What a counterparty needs, once, before any artefact means anything."
   },
   "VerifyOut": {
    "properties": {
     "trajectory_id": {
      "type": "string",
      "title": "Trajectory Id"
     },
     "stored_hash": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Stored Hash"
     },
     "recomputed_hash": {
      "type": "string",
      "title": "Recomputed Hash"
     },
     "valid": {
      "type": "boolean",
      "title": "Valid"
     },
     "step_count": {
      "type": "integer",
      "title": "Step Count"
     },
     "structure_intact": {
      "type": "boolean",
      "title": "Structure Intact",
      "default": true
     },
     "hash_version": {
      "type": "integer",
      "title": "Hash Version",
      "default": 1
     },
     "payloads": {
      "additionalProperties": true,
      "type": "object",
      "title": "Payloads"
     }
    },
    "type": "object",
    "required": [
     "trajectory_id",
     "recomputed_hash",
     "valid",
     "step_count"
    ],
    "title": "VerifyOut",
    "description": "Does the stored hash still match a recomputation?"
   },
   "VocabularyOut": {
    "properties": {
     "clauses": {
      "items": {
       "$ref": "#/components/schemas/ClauseTypeOut"
      },
      "type": "array",
      "title": "Clauses"
     },
     "states": {
      "items": {
       "type": "string"
      },
      "type": "array",
      "title": "States"
     },
     "min_decisions": {
      "type": "integer",
      "title": "Min Decisions"
     }
    },
    "type": "object",
    "required": [
     "clauses",
     "states",
     "min_decisions"
    ],
    "title": "VocabularyOut"
   },
   "WithdrawIn": {
    "properties": {
     "reason": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 3,
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "reason"
    ],
    "title": "WithdrawIn"
   },
   "WithheldOut": {
    "properties": {
     "setting": {
      "type": "string",
      "title": "Setting"
     },
     "reason": {
      "type": "string",
      "title": "Reason"
     }
    },
    "type": "object",
    "required": [
     "setting",
     "reason"
    ],
    "title": "WithheldOut"
   },
   "WorkspaceJurisdictionIn": {
    "properties": {
     "market_profile_id": {
      "anyOf": [
       {
        "type": "string",
        "maxLength": 32
       },
       {
        "type": "null"
       }
      ],
      "title": "Market Profile Id"
     }
    },
    "type": "object",
    "title": "WorkspaceJurisdictionIn",
    "description": "Which built-in profile governs, or null to inherit from the level above."
   },
   "WorkspaceOut": {
    "properties": {
     "id": {
      "type": "string",
      "title": "Id"
     },
     "slug": {
      "type": "string",
      "title": "Slug"
     },
     "name": {
      "type": "string",
      "title": "Name"
     },
     "status": {
      "type": "string",
      "title": "Status"
     },
     "expires_at": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires At"
     },
     "organization": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/OrganizationOut"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "type": "object",
    "required": [
     "id",
     "slug",
     "name",
     "status"
    ],
    "title": "WorkspaceOut"
   }
  },
  "securitySchemes": {
   "bearerToken": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "JWT",
    "description": "A token from the identity provider your deployment federates with. It identifies a person; their roles in the workspace decide what they may do."
   },
   "apiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key",
    "description": "A workspace API key (`rsk_...`), issued in the console and shown once. It identifies a service, not a person, and is accepted only on the routes an SDK calls. It may also be sent as `Authorization: Bearer rsk_...`."
   }
  }
 },
 "servers": [
  {
   "url": "https://{deployment}",
   "description": "Your own deployment. There is no shared endpoint.",
   "variables": {
    "deployment": {
     "default": "rotagrant.internal.example",
     "description": "The host your deployment answers on."
    }
   }
  }
 ],
 "x-rotascale-source": {
  "repository": "rotascale-console",
  "commit": "dfb44d0f14e04741adbc317e1ae9fdf619d467cc",
  "exported": "2026-11-22",
  "routes": 139,
  "left_out": "2 routes tagged demo: the public demo's own plumbing"
 }
}
