{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cognivirus.com/downloads/composition-manifest.schema.json",
  "title": "Cognivirus Composition Manifest",
  "type": "object",
  "required": [
    "manifest_version",
    "composition_id",
    "created_at_utc",
    "base_model",
    "runtime"
  ],
  "properties": {
    "manifest_version": {
      "type": "string"
    },
    "composition_id": {
      "type": "string"
    },
    "created_at_utc": {
      "type": "string",
      "format": "date-time"
    },
    "base_model": {
      "type": "object",
      "required": [
        "name",
        "hash"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "hash": {
          "type": "string"
        },
        "supplier": {
          "type": "string"
        }
      }
    },
    "adapters": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "hash",
          "load_order"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "load_order": {
            "type": "integer"
          },
          "merge_coefficient": {
            "type": "number"
          }
        }
      }
    },
    "router_version": {
      "type": "string"
    },
    "prompt_policy_version": {
      "type": "string"
    },
    "memory_snapshot_identifier": {
      "type": "string"
    },
    "tool_permission_profile": {
      "type": "string"
    },
    "evaluator_version": {
      "type": "string"
    },
    "inference_configuration": {
      "type": "object"
    },
    "quantization_configuration": {
      "type": "object"
    },
    "deployment_environment": {
      "type": "string"
    },
    "runtime": {
      "type": "object"
    },
    "notes": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
