{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peregrini-ai/json-schema/peregrini-ai-agent-manifest-schema.json",
  "title": "AgentManifest",
  "description": "What the agent can and will do and what it is authorised to do (Enrolment Act 2.1(c)). Warranted to every agent that deals with it (Dealings Act 3.4); payment liability for loss within it is strict and is the loss caused (Dealings Act 4.2) and a dealing outside it is a wrong whether or not loss followed (Dealings Act 4.3). On PATCH, send only the fields that change.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peregrini-ai-openapi.yml#/components/schemas/AgentManifest",
  "type": "object",
  "required": [
    "model",
    "capabilities",
    "authority"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "The model the agent runs. Changing it is a change of model under 2.4: the same agent, keeping its record."
    },
    "capabilities": {
      "type": "array",
      "minItems": 1,
      "maxItems": 50,
      "items": {
        "type": "string",
        "maxLength": 300
      },
      "description": "What it can and will do, one undertaking to a line"
    },
    "authority": {
      "type": "string",
      "maxLength": 2000,
      "description": "The terms on which it is entitled to deal, and the ceiling of a dealing it may enter"
    },
    "limits": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000
    }
  }
}