{
  "baseline": {
    "actual": "actual.env",
    "template": ".env.example",
    "counts": {
      "missing": 2,
      "present": 3,
      "extra": 1,
      "empty": 0,
      "unresolved": 1,
      "cycles": 0
    }
  },
  "product": "Config Doctor",
  "generated": "2026-12-02T13:33:39Z",
  "includesValues": false,
  "notice": "Possible-secret detection is heuristic. Review keys, file names and diagnostics before sharing any report. Comparison excludes invalid files. Baseline presence is not a declaration of requiredness. Extra keys are informational; empty template defaults do not make actual values missing.",
  "files": [
    {
      "id": "",
      "name": "actual.env",
      "path": "",
      "format": "env",
      "valid": true,
      "entries": [
        {
          "key": "APP_PORT",
          "type": "string",
          "value": "••••••••",
          "secret": false,
          "empty": false,
          "depth": 0
        },
        {
          "key": "SERVICE_URL",
          "type": "string",
          "value": "••••••••",
          "secret": false,
          "empty": false,
          "depth": 0
        },
        {
          "key": "DEMO_API_TOKEN",
          "type": "string",
          "value": "••••••••",
          "secret": true,
          "empty": false,
          "depth": 0
        },
        {
          "key": "DEMO_FEATURE",
          "type": "string",
          "value": "••••••••",
          "secret": false,
          "empty": false,
          "depth": 0
        }
      ],
      "diagnostics": [
        {
          "severity": "warning",
          "code": "unresolved reference",
          "key": "SERVICE_URL",
          "line": 2,
          "message": "Variable SERVICE_HOST is not defined in this file. Process environment and other files are not consulted.",
          "reference": "SERVICE_HOST"
        },
        {
          "severity": "warning",
          "code": "secret",
          "key": "DEMO_API_TOKEN",
          "line": 0,
          "message": "Possible secret. Review before sharing."
        },
        {
          "severity": "info",
          "code": "summary",
          "key": "",
          "line": 0,
          "message": "4 normalized entries inspected. Secret detection is heuristic, not a complete security scan."
        }
      ]
    },
    {
      "id": "",
      "name": ".env.example",
      "path": "",
      "format": "env",
      "valid": true,
      "entries": [
        {
          "key": "APP_PORT",
          "type": "string",
          "value": "",
          "secret": false,
          "empty": true,
          "depth": 0
        },
        {
          "key": "LOG_LEVEL",
          "type": "string",
          "value": "",
          "secret": false,
          "empty": true,
          "depth": 0
        },
        {
          "key": "SERVICE_HOST",
          "type": "string",
          "value": "",
          "secret": false,
          "empty": true,
          "depth": 0
        },
        {
          "key": "SERVICE_URL",
          "type": "string",
          "value": "",
          "secret": false,
          "empty": true,
          "depth": 0
        },
        {
          "key": "DEMO_API_TOKEN",
          "type": "string",
          "value": "",
          "secret": false,
          "empty": true,
          "depth": 0
        }
      ],
      "diagnostics": [
        {
          "severity": "warning",
          "code": "empty",
          "key": "APP_PORT",
          "line": 0,
          "message": "Empty value."
        },
        {
          "severity": "warning",
          "code": "empty",
          "key": "LOG_LEVEL",
          "line": 0,
          "message": "Empty value."
        },
        {
          "severity": "warning",
          "code": "empty",
          "key": "SERVICE_HOST",
          "line": 0,
          "message": "Empty value."
        },
        {
          "severity": "warning",
          "code": "empty",
          "key": "SERVICE_URL",
          "line": 0,
          "message": "Empty value."
        },
        {
          "severity": "warning",
          "code": "empty",
          "key": "DEMO_API_TOKEN",
          "line": 0,
          "message": "Empty value."
        },
        {
          "severity": "info",
          "code": "summary",
          "key": "",
          "line": 0,
          "message": "5 normalized entries inspected. Secret detection is heuristic, not a complete security scan."
        }
      ]
    }
  ],
  "differences": [
    {
      "key": "APP_PORT",
      "status": [
        "present"
      ],
      "missingIn": []
    },
    {
      "key": "DEMO_API_TOKEN",
      "status": [
        "present",
        "possible secrets"
      ],
      "missingIn": []
    },
    {
      "key": "DEMO_FEATURE",
      "status": [
        "extra"
      ],
      "missingIn": []
    },
    {
      "key": "LOG_LEVEL",
      "status": [
        "missing baseline key"
      ],
      "missingIn": [
        "actual.env"
      ]
    },
    {
      "key": "SERVICE_HOST",
      "status": [
        "missing baseline key"
      ],
      "missingIn": [
        "actual.env"
      ]
    },
    {
      "key": "SERVICE_URL",
      "status": [
        "present",
        "unresolved reference"
      ],
      "missingIn": []
    }
  ]
}