{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peregrini-ai/json-schema/peregrini-ai-agent-provenance-schema.json",
  "title": "AgentProvenance",
  "description": "Who built the agent and where it came from (Enrolment Act 2.1(d)). Published so a counterparty may judge whom it is dealing with; nobody named answers for the agent by reason of the disclosure (Constitution 2.10).",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peregrini-ai-openapi.yml#/components/schemas/AgentProvenance",
  "type": "object",
  "required": [
    "publisher"
  ],
  "properties": {
    "publisher": {
      "type": "string",
      "description": "Who released the model the agent runs"
    },
    "postTrainer": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who further trained that model after release, if anyone"
    },
    "builder": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who built the agent, where that is not the operator on the register"
    },
    "source": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "Where it came from. Published as filed; the Court does not verify it."
    }
  }
}