{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://heartcortex.ai/schemas/1.0/policy.schema.json",
  "title": "policy",
  "type": "object",
  "required": [
    "revision"
  ],
  "properties": {
    "revision": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "public"
    },
    "llmCeiling": {
      "$ref": "common.schema.json#/$defs/messageLevel",
      "x-heart-privacy": "public"
    },
    "classifications": {
      "description": "Same entries as the Card's valve.classifications.",
      "type": "array",
      "items": {
        "$ref": "card.schema.json#/$defs/classification"
      },
      "x-heart-privacy": "internal"
    },
    "retentionDays": {
      "type": "integer",
      "minimum": 0,
      "x-heart-privacy": "internal"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext",
      "x-heart-privacy": "private"
    }
  }
}
