{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.orbitspace.dev/examples/registry-signing-manifest.schema.json",
  "title": "OrbitSpace Registry signing manifest",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "bundle_schema_version", "entries"],
  "properties": {
    "schema_version": {"const": "orbitspace.registry.signing-manifest/v1"},
    "bundle_schema_version": {"const": "orbitspace.registry.bundle/v1"},
    "entries": {
      "type": "array",
      "minItems": 1,
      "maxItems": 2048,
      "uniqueItems": true,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["reference", "content_digest", "envelope_digest"],
        "properties": {
          "reference": {"type": "string", "pattern": "^(?:knowledge|tool|workflow|evaluator|capability|runtime-profile|model-provider|model-policy|skill)://(?!.*(?:\\.\\.|//))[a-z][a-z0-9._/-]{0,159}@[A-Za-z0-9][A-Za-z0-9._+-]{0,63}$"},
          "content_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
          "envelope_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}
        }
      }
    }
  }
}
