{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://mda.sno.dev/spec/v1.0/schemas/frontmatter-agents-md.schema.json",
  "title": "AGENTS.md output frontmatter (strict, optional)",
  "description": "Strict schema for the optional YAML frontmatter of an AGENTS.md file. Frontmatter is OPTIONAL in AGENTS.md (per AAIF upstream); when present, MDA-extended fields MUST appear under metadata.mda.* and per-vendor fields under metadata.<vendor>.*. allowed-tools is NOT permitted at the top level.",
  "type": "object",
  "properties": {
    "name": { "$ref": "_defs/name.schema.json" },
    "description": { "$ref": "_defs/description.schema.json" },
    "license": { "type": "string" },
    "compatibility": { "type": "string", "maxLength": 500 },
    "metadata": { "$ref": "_defs/metadata-namespaces.schema.json" },
    "integrity": { "$ref": "_defs/integrity.schema.json" },
    "signatures": {
      "type": "array",
      "minItems": 1,
      "items": { "$ref": "_defs/signature.schema.json" }
    }
  },
  "dependentRequired": {
    "signatures": ["integrity"]
  },
  "unevaluatedProperties": false
}
