{
  "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": "1791216615",
    "build_local": "Oct 5 11:10 AM",
    "build_sha": "fcd70f336be29b0a91cb12c1300816a9c0abb3af",
    "build_stamp": "fcd70f336be29b0a91cb12c1300816a9c0abb3af-dirty-1791216615",
    "dev": false,
    "install_path": "C:\\Users\\garyc\\AppData\\Local\\Adom Hydrogen\\hydrogen.exe",
    "instance_id": "hd-9280-18dc7308cd3ef038",
    "narrative": "Running exe IS build fcd70f336be29b0a91cb12c1300816a9c0abb3af-dirty (built Oct 5 11:10 AM). If this equals the SHA you pushed, your build shipped; if not, it's STALE, rebuild before trusting any behavior.",
    "ok": true,
    "pid": 9280
  },
  "context": "setup",
  "device": {
    "arch": "AMD64",
    "arch_process": "AMD64",
    "computer_name": "GORC",
    "cpu": "ARMv8 (64-bit) Family 8 Model 1 Revision 201, Qualcomm Technologies Inc",
    "cpu_count": "12",
    "cpu_name": "Snapdragon(R) X 12-core X1E80100 @ 3.40 GHz",
    "display_version": "25H2",
    "manufacturer": "Microsoft Corporation",
    "model": "Microsoft Surface Laptop, 7th Edition",
    "os_arch": "ARM 64-bit Processor",
    "ram_gb": 15.6,
    "system_type": "ARM64-based PC",
    "windows": "Microsoft Windows 11 Home",
    "windows_build": "26200",
    "windows_version": "10.0.26200",
    "wsl_distros": "NAME              STATE           VERSION\r\n* Ubuntu-24.04      Stopped         2\r\n  Adom-Workspace    Stopped         2",
    "wsl_version": "WSL version: 3.0.1.0\r\nKernel version: 6.18.40.1-1\r\nWSLg version: 1.0.79\r\nMSRDC version: 1.2.7214\r\nDirect3D version: 1.611.1-81528511\r\nDXCore version: 10.0.26100.1-240331-1435.ge-release\r\nWindows version: 10.0.26200.9550",
    "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": 72,
        "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",
        "duration_ms": 0,
        "error": "Cannot read API key: workspace not answering (a command timed out); not starting 'workspace command' for another 26s",
        "fix": "wsl -d Adom-Workspace -u root bash -c 'mkdir -p /var/run/adom && echo YOUR_TOKEN > /var/run/adom/api-key'",
        "message": "api-key failed",
        "ok": false
      },
      {
        "check": "env-vars",
        "duration_ms": 0,
        "error": "Cannot read container env: workspace not answering (a command timed out); not starting 'workspace command' for another 26s",
        "fix": "Ensure the WSL2 workspace (Adom-Workspace) is running.",
        "message": "env-vars failed",
        "ok": false
      },
      {
        "check": "adom-cli",
        "duration_ms": 0,
        "error": "adom-cli check failed: workspace not answering (a command timed out); not starting 'workspace command' for another 26s",
        "fix": "Ensure the WSL2 workspace (Adom-Workspace) is running and adom-cli is installed.",
        "message": "adom-cli failed",
        "ok": false
      },
      {
        "check": "adom-cli-api",
        "duration_ms": 0,
        "error": "adom-cli carbon status failed: workspace not answering (a command timed out); not starting 'workspace command' for another 26s",
        "fix": "Install adom-cli and ensure API key is valid.",
        "message": "adom-cli-api failed",
        "ok": false
      },
      {
        "check": "sse",
        "details": {
          "browser_connected": true,
          "sse_connections": 1,
          "window_mode": "webview"
        },
        "duration_ms": 1,
        "message": "1 SSE connection(s), browser_connected=true",
        "ok": true
      },
      {
        "check": "webview",
        "details": {
          "latency_ms": 1,
          "method": "read-only GET (no test tab)"
        },
        "duration_ms": 1,
        "message": "Workspace tab API reachable (1ms)",
        "ok": true
      },
      {
        "check": "code-server",
        "duration_ms": 2034,
        "error": "Cannot reach code-server on :7380: error sending request for url (http://127.0.0.1:7380/)",
        "fix": "Ensure the WSL2 workspace (Adom-Workspace) + code-server are running.",
        "message": "code-server failed",
        "ok": false
      },
      {
        "check": "extensions",
        "duration_ms": 1331,
        "error": "Cannot list extensions: workspace not answering (a command timed out); not starting 'workspace command' for another 22s",
        "fix": "Ensure code-server is installed in the container.",
        "message": "extensions failed",
        "ok": false
      },
      {
        "check": "claude-installed",
        "duration_ms": 0,
        "error": "Claude Code CLI not found in container",
        "fix": "Run: curl -fsSL https://claude.ai/install.sh | bash",
        "message": "claude-installed failed",
        "ok": false
      },
      {
        "check": "claude-auth",
        "duration_ms": 0,
        "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",
        "duration_ms": 1,
        "error": "Skills not deployed (skills=0, hub SKILL.md=missing, adompkg=MISSING)",
        "fix": "Skills ship via signed adompkg packages (baked + kept current by the registry updater). Force a refresh: ADOMPKG_ALLOW_SUDO=1 adompkg install adom/hydrogen-windows-bootstrap",
        "message": "skills failed",
        "ok": false
      },
      {
        "check": "relay",
        "duration_ms": 0,
        "error": "Relay health check failed: workspace not answering (a command timed out); not starting 'workspace command' for another 22s",
        "fix": "Ensure the adom-bridge relay is running inside the container on port 8766.",
        "message": "relay failed",
        "ok": false
      },
      {
        "check": "ports",
        "duration_ms": 4032,
        "error": "Inaccessible ports: code-server (7380)",
        "fix": "Ensure the WSL2 workspace (Adom-Workspace) is running and the proxy is up.",
        "message": "ports failed",
        "ok": false
      },
      {
        "check": "identity",
        "duration_ms": 1,
        "message": "Identity established via api-key + session (legacy adom-identity.json not used)",
        "ok": true
      },
      {
        "check": "adom-bridge",
        "duration_ms": 2030,
        "error": "Relay HTTP unreachable via code-server proxy (:7380/proxy/8766/)",
        "fix": "Ensure the adom-bridge relay is running in the container and code-server is accessible.",
        "message": "adom-bridge failed",
        "ok": false
      },
      {
        "check": "adom-bridge-direct",
        "details": {
          "discovered_via": "discovery-file",
          "health": {
            "instanceId": "ab-17904-695b7bfdb2394108",
            "ok": true,
            "pid": 17904,
            "service": "adom-bridge"
          },
          "port": 24680
        },
        "duration_ms": 3,
        "message": "ab direct API healthy on :24680 (found via discovery-file)",
        "ok": true
      }
    ],
    "duration_ms": 9523,
    "failed": 12,
    "ok": false,
    "passed": 6,
    "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": "1791216615",
    "build_local": "Oct 5 11:10 AM",
    "build_sha": "fcd70f336be29b0a91cb12c1300816a9c0abb3af",
    "narrative": "HD control API is up. Running exe is build fcd70f336be29b0a91cb12c1300816a9c0abb3af (built Oct 5 11:10 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.545",
  "machine": "GORC",
  "reported_at": "2026-10-08T04:24:06Z",
  "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": false,
    "ok": true,
    "registered": true,
    "running": false
  }
}