Skip to content

Docs: document vg doctor checks and CI exit semantics #262

Open

Description

@vibgrate-team

Context

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

  1. Document each doctor check category at a high level (runtime, grammars, graph cache, optional modules).
  2. Document exit code expectations for CI (pass vs actionable fail).
  3. Short vg doctor snippet; local-first; no secrets.

Acceptance

Activity

  1. added
    documentation
    good first issue
    on Sep 23, 2026
  2. vibgrate-team commented on Oct 5, 2026

    @vibgrate-team
    ContributorAuthor

    Facts for the doc, from src/commands/doctor.ts:

    • 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
      • compress: listener, store, memory, wrapped agents, invalid VG_* knobs
    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions