feat: doctor checks for the Docker Sandboxes host state #123
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/sbx-doctor-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2 of design/harness/docker-sandbox-runtime.md section 7. wraptool doctor now reports the sbx host state that up --runtime=sbx refuses or warns on. env.sbx-cli reports presence always and, with probing, the version against the R1 floor and the sign-in state from sbx ls --quiet, warning when either would stop up. exposure.sbx-agent-forwarding warns when ssh.agentForwardingEnabled is not false and treats unverifiable output as the same warn. exposure.sbx-secrets warns on global secrets that are not model-provider keys, named by scope, type and name only, reports unparseable output as not checked rather than silence, and skips when sbx is signed out. exposure.sbx-policy-preset runs sbx policy check network localhost:22 and the review UI port when admin.listen is set, with no sandbox, and warns when the global policy reports Allowed, the allow-all shape. sbx has no command that names the active preset so the check asks the policy directly. env.no-backend-with-project counts sbx on PATH as a backend. Because the doctor Env seam executes nothing by design, the process boundary and every sbx output parser moved from cmd/sbxpreflight.go into the new leaf package internal/sbx, so up, down and doctor read sbx output through one implementation. doctor receives a sbx.Capturer on Input.Sbx, nil in every MapEnv-backed test and the same minimal-environment client up uses in production. Every check that executes sbx is probe-gated so --no-probe disables it. The parser tests moved with the code. Docs touched: doctor group table and the --no-probe flag row, a pointer on the comparison page, the sbx design section 7 and 17 status, the doctor design sections 5, 7.1 and 7.3, the plan file map, CLAUDE.md and the changelog. Not verified against a real sbx host from this devcontainer. Full local gate green: vet, tests, gofmt, golangci-lint. 🤖 Generated with Claude Code