{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "EngineHealthCardSchema",
  "type": "object",
  "properties": {
    "formula_id": { "type": "string" },
    "health_card": {
      "type": "object",
      "properties": {
        "data_integrity": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "authority_collision": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "numeric_conflict": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "live_t20": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "calibration_debt": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "cash_defense": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "renderer_contract": { "type": "string", "enum": ["PASS", "WARN", "FAIL"] },
        "next_action": { "type": "string" }
      },
      "required": ["data_integrity", "authority_collision", "numeric_conflict", "live_t20", "next_action"]
    }
  },
  "required": ["formula_id", "health_card"]
}
