{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/pipeline/schemas/run-evidence.schema.json",
  "title": "Run screenshot",
  "description": "What GET /v1/runs/{id}/evidence/{name} returns (`run-results.mjs <id> --evidence <name>`): one screenshot from the run's .pipeline/evidence directory, base64. name is a bare png or jpg file name; one that resolves outside the directory is not found.",
  "type": "object",
  "additionalProperties": false,
  "required": ["contractVersion", "taskId", "name", "mime", "data"],
  "properties": {
    "contractVersion": {
      "type": "string",
      "pattern": "^1\\.[0-9]+\\.[0-9]+$",
      "x-sensitivity": "none"
    },
    "taskId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "mime": {
      "enum": ["image/png", "image/jpeg"]
    },
    "data": {
      "type": "string",
      "contentEncoding": "base64"
    }
  }
}
