{
  "type": "object",
  "required": [
    "header",
    "manifestId",
    "modelId",
    "modelVersion",
    "backend",
    "contractMajors",
    "parameters",
    "createdAt"
  ],
  "properties": {
    "header": {
      "type": "object",
      "required": [
        "namespace",
        "major",
        "minor"
      ],
      "properties": {
        "namespace": {
          "type": "string",
          "const": "ai.aletheion.asm"
        },
        "major": {
          "type": "number",
          "const": 1
        },
        "minor": {
          "type": "integer",
          "minimum": 0
        }
      },
      "additionalProperties": false
    },
    "manifestId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "modelId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "modelVersion": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "backend": {
      "anyOf": [
        {
          "type": "string",
          "const": "deterministic"
        },
        {
          "type": "string",
          "const": "vector"
        },
        {
          "type": "string",
          "const": "causal_head"
        },
        {
          "type": "string",
          "const": "dual_asm"
        },
        {
          "type": "string",
          "const": "asm_cm"
        }
      ]
    },
    "artifactDigest": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "contractMajors": {
      "type": "object",
      "patternProperties": {
        "^.*$": {
          "type": "integer",
          "minimum": 1
        }
      }
    },
    "parameters": {
      "type": "object",
      "patternProperties": {
        "^.*$": {}
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": false,
  "$id": "asm-inference-manifest-v1"
}
