{
  "buildinfo": {
    "_hints": {
      "related": [
        "/health",
        "/workspace/health",
        "/ports"
      ],
      "usage": "Compare build_sha to `git rev-parse HEAD` of the commit you built. Equal = running code is the code you shipped. Unequal = STALE build; rebuild before testing behavior."
    },
    "build_dirty": "true",
    "build_epoch": "1792390649",
    "build_local": "Oct 19 1:17 AM",
    "build_sha": "a8df45cdc607e3224158de810febfea50d1bce41",
    "build_stamp": "a8df45cdc607e3224158de810febfea50d1bce41-dirty-1792390649",
    "dev": false,
    "install_path": "C:\\Users\\azureuser\\AppData\\Local\\Adom Hydrogen\\hydrogen.exe",
    "instance_id": "hd-13416-18dfee8e9d847a20",
    "narrative": "Running exe IS build a8df45cdc607e3224158de810febfea50d1bce41-dirty (built Oct 19 1:17 AM). If this equals the SHA you pushed, your build shipped; if not, it's STALE, rebuild before trusting any behavior.",
    "ok": true,
    "pid": 13416
  },
  "context": "setup",
  "device": {
    "arch": "AMD64",
    "arch_process": "AMD64",
    "computer_name": "winvm",
    "cpu": "AMD64 Family 25 Model 17 Stepping 1, AuthenticAMD",
    "cpu_count": "8",
    "cpu_name": "AMD EPYC 9V64 32-Core Processor                ",
    "display_version": "24H2",
    "manufacturer": "Microsoft Corporation",
    "model": "Virtual Machine",
    "os_arch": "64-bit",
    "ram_gb": 32,
    "system_type": "x64-based PC",
    "windows": "Microsoft Windows 11 Pro",
    "windows_build": "26100",
    "windows_version": "10.0.26100",
    "wsl_distros": "NAME              STATE           VERSION\r\n* Adom-Workspace    Running         2",
    "wsl_version": "WSL version: 3.0.3.0\r\nKernel version: 6.18.54.1-1\r\nWSLg version: 1.0.79\r\nMSRDC version: 1.2.7391\r\nDirect3D version: 1.611.1-81528511\r\nDXCore version: 10.0.26100.1-240331-1435.ge-release\r\nWindows version: 10.0.26100.9457",
    "wslconfig": "[wsl2]\r\nnetworkingMode=mirrored\r\nguiApplications=false\r\n"
  },
  "diagnostics": {
    "_hints": {
      "expected": "16/16 checks should pass for a healthy system",
      "if_failures": "Each check has a 'fix' field with remediation steps. Common: workspace (restart the WSL2 distro), claude-auth (re-authenticate)",
      "related": [
        "/diagnostics/<check-name>",
        "/container-status",
        "/claude/status",
        "/wsl/status"
      ]
    },
    "checks": [
      {
        "check": "wsl-plane",
        "duration_ms": 45,
        "message": "WSL management plane answering (fresh wsl.exe probe)",
        "ok": true
      },
      {
        "check": "workspace",
        "details": {
          "distro": "Adom-Workspace",
          "runtime": "wsl2"
        },
        "duration_ms": 0,
        "message": "Workspace runtime is the WSL2 Adom-Workspace distro",
        "ok": true
      },
      {
        "check": "api-key",
        "details": {
          "api_response": "{\"id\":\"6738b00a4dc87b8adbb0a5a3\",\"name\":\"john\",\"avatar_hash\":\"0445b7ef1f697f4606f6328a9217a308\",\"avatar_url\":\"https://cdn.adom.inc/avatars/0445b7ef1f697f4606f6328a9217a308.png\",\"email\":\"[redacted]\"",
          "key_preview": "a_OgEx...5N2t",
          "path": "/var/run/adom/api-key"
        },
        "duration_ms": 322,
        "message": "API key installed and valid (a_OgEx...5N2t)",
        "ok": true
      },
      {
        "check": "env-vars",
        "details": {
          "ADOM_CARBON_URL": "http://127.0.0.1:47083",
          "ADOM_DESKTOP_MODE": "local",
          "ADOM_HYDROGEN_URL": "http://127.0.0.1:47083",
          "VSCODE_PROXY_URI": "http://{{port}}.localhost:47083/"
        },
        "duration_ms": 150,
        "message": "All 4 required vars set",
        "ok": true
      },
      {
        "check": "adom-cli",
        "details": {
          "output": "/usr/local/bin/adom-cli\n{\n  \"carbon_url\": null,\n  \"hydrogen_url\": null,\n  \"api_token\": null\n}\ntoken_source: [redacted]:/var/run/adom/api-key"
        },
        "duration_ms": 129,
        "message": "adom-cli installed and configured",
        "ok": true
      },
      {
        "check": "adom-cli-api",
        "details": {
          "output": "Checking Carbon API at http://127.0.0.1:47083...\nCarbon API is up:\n{\n  \"browser_connected\": true,\n  \"carbon_reachable\": true,\n  \"ok\": true,\n  \"service\": \"hd-proxy\",\n  \"sse_connections\": 1,\n  \"window_mode\": \"webview\"\n}"
        },
        "duration_ms": 219,
        "message": "Carbon API reachable via adom-cli",
        "ok": true
      },
      {
        "check": "sse",
        "details": {
          "browser_connected": true,
          "sse_connections": 1,
          "window_mode": "webview"
        },
        "duration_ms": 0,
        "message": "1 SSE connection(s), browser_connected=true",
        "ok": true
      },
      {
        "check": "webview",
        "details": {
          "latency_ms": 0,
          "method": "read-only GET (no test tab)"
        },
        "duration_ms": 0,
        "message": "Workspace tab API reachable (0ms)",
        "ok": true
      },
      {
        "check": "code-server",
        "details": {
          "port": 7380,
          "status": 200
        },
        "duration_ms": 1,
        "message": "200 on :7380",
        "ok": true
      },
      {
        "check": "extensions",
        "details": {
          "count": 4,
          "extensions": [
            "adom.adom-theme",
            "adom.adom-vscode",
            "anthropic.claude-code",
            "openai.chatgpt"
          ]
        },
        "duration_ms": 485,
        "message": "adom.adom-vscode + anthropic.claude-code installed",
        "ok": true
      },
      {
        "check": "claude-installed",
        "details": {
          "path": "/home/adom/.local/bin/claude",
          "version": "2.1.303 (Claude Code)"
        },
        "duration_ms": 344,
        "message": "claude 2.1.303 (Claude Code)",
        "ok": true
      },
      {
        "check": "claude-auth",
        "duration_ms": 144,
        "error": "No credentials file at /home/adom/.claude/.credentials.json",
        "fix": "Open Claude Code and sign in via the Claude.ai Subscription button.",
        "message": "claude-auth failed",
        "ok": false
      },
      {
        "check": "skills",
        "details": {
          "adompkg_module_count": 30,
          "adompkg_present": false,
          "skill_count": 219,
          "skill_md_exists": true
        },
        "duration_ms": 1072,
        "message": "219 skills deployed (30 adompkg modules)",
        "ok": true
      },
      {
        "check": "relay",
        "details": {
          "connectedClients": 1,
          "httpPort": 8766,
          "status": "ok",
          "tokenWarning": "This relay accepts the well-known DEVELOPMENT token, which is published in the              adom-bridge docs. Anyone who knows this relay's URL can join it and drive every              desktop connected to it. Rotate: restart with `adom-bridge-cli serve --supervise --token              <secret>` (or set ADOM_AUTH_TOKEN) and update each desktop's server entry auth_token to match.",
          "usingDefaultToken": true,
          "wsPort": 8765
        },
        "duration_ms": 143,
        "message": "Relay healthy on :8766 inside container",
        "ok": true
      },
      {
        "check": "ports",
        "details": {
          "ports": [
            {
              "accessible": true,
              "name": "code-server",
              "port": 7380
            }
          ]
        },
        "duration_ms": 1,
        "message": "All 1 workspace ports accessible",
        "ok": true
      },
      {
        "check": "identity",
        "duration_ms": 133,
        "message": "Identity established via api-key + session (legacy adom-identity.json not used)",
        "ok": true
      },
      {
        "check": "adom-bridge",
        "details": {
          "ping_ok": true,
          "ping_roundtrip_ms": 0,
          "relay_health": null,
          "relay_http_ok": true,
          "relay_uptime": null,
          "relay_version": null
        },
        "duration_ms": 1,
        "message": "Relay HTTP healthy (via code-server proxy)",
        "ok": true
      },
      {
        "check": "adom-bridge-direct",
        "details": {
          "discovered_via": "discovery-file",
          "health": {
            "instanceId": "ab-5212-67eeae7cfdae44fc",
            "ok": true,
            "pid": 5212,
            "service": "adom-bridge"
          },
          "port": 24680
        },
        "duration_ms": 1,
        "message": "ab direct API healthy on :24680 (found via discovery-file)",
        "ok": true
      }
    ],
    "duration_ms": 3197,
    "failed": 1,
    "ok": false,
    "passed": 17,
    "total": 18
  },
  "health": {
    "_hints": {
      "eval": "POST /eval with {\"js\":\"...\"} returns the JS result. Use for DOM queries. Never use /eval to click buttons, use /ai-cursor/click instead.",
      "next": "Check /workspace/health for the WSL editor, /container-status for workspace state, /claude/status for Claude auth, /diagnostics/all for full system health",
      "related": [
        "/workspace/health",
        "/buildinfo",
        "/ports",
        "/container-status",
        "/claude/status",
        "/diagnostics/all",
        "/wsl/status"
      ]
    },
    "build_dirty": "true",
    "build_epoch": "1792390649",
    "build_local": "Oct 19 1:17 AM",
    "build_sha": "a8df45cdc607e3224158de810febfea50d1bce41",
    "narrative": "HD control API is up. Running exe is build a8df45cdc607e3224158de810febfea50d1bce41 (built Oct 19 1:17 AM). Compare build_sha to `git rev-parse HEAD` to confirm it's the code you shipped.",
    "ok": true,
    "port": 47084,
    "service": "hydrogen-desktop-control"
  },
  "hydrogen_version": "1.0.653",
  "machine": "winvm",
  "reported_at": "2026-10-19T12:38:37Z",
  "setup_state": {
    "_hints": {
      "note": "Setup state: 'never-run' | 'in-progress' | 'complete' | 'error'. POST /setup/state to update. POST /setup/run-all to re-trigger full setup.",
      "related": [
        "/setup-status",
        "/setup/trigger",
        "/setup/run-all"
      ]
    },
    "ok": true,
    "state": "in-progress"
  },
  "wsl_status": {
    "_hints": {
      "note": "Lightweight WSL2 distro status (registered/running/host-reachable). For the deeper 'will the editor actually load' check (in-distro process + listener), use /workspace/health.",
      "related": [
        "/workspace/health",
        "/wsl/unregister",
        "/setup/run-all",
        "/setup/virgin-reset"
      ]
    },
    "code_server_port": 7380,
    "distro": "Adom-Workspace",
    "host_reachable": true,
    "ok": true,
    "registered": true,
    "running": true
  }
}