{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentcarousel.com/spec/schemas/0.1/evidence-manifest.schema.json",
  "title": "Evidence bundle manifest",
  "description": "MANIFEST.json: the integrity index of an evidence bundle (spec/04-attestation.md). Lists every file in the bundle except MANIFEST.json and its detached signature.",
  "type": "object",
  "required": [
    "manifest_version",
    "files"
  ],
  "properties": {
    "manifest_version": {
      "const": 1
    },
    "files": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "path",
          "sha256"
        ],
        "properties": {
          "path": {
            "description": "Bundle-relative POSIX path: no leading slash and no backslashes. Verifiers additionally reject '.' and '..' segments, symlinks, and hard links (spec/05-verification.md).",
            "type": "string",
            "minLength": 1,
            "pattern": "^[^/\\\\][^\\\\]*$"
          },
          "sha256": {
            "$ref": "evidence.schema.json#/$defs/digest"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
