{
  "$defs": {
    "CheckStatus": {
      "description": "Outcome of a single diagnostic check.",
      "enum": [
        "ok",
        "warn",
        "missing",
        "down",
        "info"
      ],
      "title": "CheckStatus",
      "type": "string"
    }
  },
  "description": "A single diagnostic row.\n\nAttributes:\n    category: Grouping label (e.g. ``\"Local LLM\"``).\n    name: Specific item checked (e.g. ``\"ollama daemon\"``).\n    status: The outcome.\n    detail: Human-readable description of what was found.\n    fix: Actionable remediation when status is not OK.\n    critical: Whether a non-OK status blocks Phase 0 sign-off.",
  "properties": {
    "category": {
      "title": "Category",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/CheckStatus"
    },
    "detail": {
      "default": "",
      "title": "Detail",
      "type": "string"
    },
    "fix": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Fix"
    },
    "critical": {
      "default": false,
      "title": "Critical",
      "type": "boolean"
    }
  },
  "required": [
    "category",
    "name",
    "status"
  ],
  "title": "CheckResult",
  "type": "object"
}
