You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: document vg doctor checks and CI exit semantics #262
vg doctor is the natural “is this install healthy?” entry point for new users and CI images. Public docs should list what it checks, which exits mean “fix your environment,” and how it relates to vg build / vg scan without duplicating the full exit-code matrix already tracked elsewhere (#234).
What to do
Document each doctor check category at a high level (runtime, grammars, graph cache, optional modules).
Document exit code expectations for CI (pass vs actionable fail).
Short vg doctor snippet; local-first; no secrets.
Acceptance
Newcomer can interpret doctor output and decide next steps
It's a report, not a gate.vg doctor is read-only and never sets a failing exit code for what it finds. Each probe catches its own errors and reports them as state, so a non-zero exit means doctor itself crashed. The docs should say this directly, and the Docs: document vg scan / vg build exit codes for CI gating #234 exit-code page should link here instead of listing doctor codes.
Sections, in output order:
root
config: the file in use, plus ignored or shadowed config files and parse errors
map: built or not, generatedAt, and the stale-file count from the freshness snapshot (doctor never walks the tree)
lib: library catalog
auth: source (env / project / home / none), host, workspace id. The key and secret are never printed.
hosted: HEAD probe, 3 s timeout. Any HTTP response counts as reachable. Skipped with --offline, or --local, which implies it.
mcp: the launch command vg install would register
telemetry: opt-out source, CI detected
local inference: isolation, RAM/VRAM, weight catalog, warm host pool
For CI:vg doctor --json prints the same structure. The useful pattern is asserting on fields instead of the exit code, e.g. vg doctor --json | jq -e '.map.built and (.configNotes | length == 0)'.
The categories suggested in the issue (runtime, grammars, graph cache, optional modules) don't match what ships. There is no grammar check, for example. Document the sections above. One wording point to settle while writing: the skipped-probe line says "skipped under --local", but --offline alone also skips it. Use the flag users actually type.
Activity
vibgrate-team commentedon Oct 5, 2026
Facts for the doc, from
src/commands/doctor.ts:vg doctoris read-only and never sets a failing exit code for what it finds. Each probe catches its own errors and reports them as state, so a non-zero exit means doctor itself crashed. The docs should say this directly, and the Docs: document vg scan / vg build exit codes for CI gating #234 exit-code page should link here instead of listing doctor codes.rootconfig: the file in use, plus ignored or shadowed config files and parse errorsmap: built or not,generatedAt, and the stale-file count from the freshness snapshot (doctor never walks the tree)lib: library catalogauth: source (env / project / home / none), host, workspace id. The key and secret are never printed.hosted: HEAD probe, 3 s timeout. Any HTTP response counts as reachable. Skipped with--offline, or--local, which implies it.mcp: the launch commandvg installwould registertelemetry: opt-out source, CI detectedcompress: listener, store, memory, wrapped agents, invalidVG_*knobsvg doctor --jsonprints the same structure. The useful pattern is asserting on fields instead of the exit code, e.g.vg doctor --json | jq -e '.map.built and (.configNotes | length == 0)'.The categories suggested in the issue (runtime, grammars, graph cache, optional modules) don't match what ships. There is no grammar check, for example. Document the sections above. One wording point to settle while writing: the skipped-probe line says "skipped under --local", but
--offlinealone also skips it. Use the flag users actually type.