{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "eas-kb://schemas/derivation-manifest/0.4.2",
  "title": "EAS-KB Derivation Manifest",
  "type": "object",
  "required": ["build_id", "eas_kb_version", "selected_rule_ids", "application_profile", "build_date", "test_state", "approval_state"],
  "properties": {
    "build_id": {"type": "string"},
    "eas_kb_version": {"type": "string"},
    "canon_fingerprint": {"type": "string"},
    "selected_rule_ids": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
    "module_versions": {"type": "object"},
    "application_profile": {"type": "string"},
    "newsroom_profile": {"type": ["string", "null"]},
    "overlays": {"type": "array", "items": {"type": "string"}},
    "prompt_build_id": {"type": ["string", "null"]},
    "model_provider": {"type": ["string", "null"]},
    "model_name": {"type": ["string", "null"]},
    "schema_versions": {"type": "object"},
    "tool_config_version": {"type": ["string", "null"]},
    "build_date": {"type": "string"},
    "test_state": {"type": "string"},
    "approval_state": {"type": "string"},
    "accountable_owner": {"type": ["string", "null"]}
  },
  "additionalProperties": true
}
