Skip to content

Docs: clarify network boundaries of vg serve --local and related modes #166

Open

Description

@vibgrate-team

Context

The CLI has several modes with different network semantics (vg serve, vg serve --local, vg code --local, vg scan --offline, explicit push/upload). Users need a clear matrix — related to but not the same as #153 (install/serve recovery checklist).

What to do

Add a short docs section with a behaviour matrix covering at least:

Mode May fetch? May upload? Writes local config/artifacts?
vg serve
vg serve --local
vg code --local (if shipped)
vg scan --offline
push/upload path (if shipped)

Verify each cell against current behaviour. Explain that vg install writes assistant config by design while upload remains opt-in.

Acceptance

  • Matrix matches shipped behaviour
  • Distinguishes “no upload” from “no local writes”
  • Uses vg consistently
  • A newcomer can pick the right mode without reading source

Mentoring notes

Docs-only unless a wording/diagnostic fix is required. DCO on commits.

Activity

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

    @vibgrate-team
    ContributorAuthor

    Spec notes for implementers

    The flags are already documented in code, so the matrix should be filled in from these sources rather than from memory.

    Global flags (src/cli-options.ts). The comment there spells out the split:

    • --offline answers "may this reach the network?": no model download, no catalog fetch, no upload.
    • --local answers "where does inference run?": on-device only, never a hosted model, and it implies --offline. The converse does not hold.

    vg serve (src/commands/serve.ts). Stdio by default; --http binds 127.0.0.1:7437 unless --host changes it. Uploads are opt-in only: --share-stats uploads the counts-only usage ledger, is off by default, and is disabled under --local. --savings records counts locally only. --compress adds a loopback listener (default port from VG_PROXY_PORT or 8787).

    vg scan --offline (src/reporting/commands/scan.ts): "Run without network calls; do not upload results". Pair it with --package-manifest for drift without registry lookups (README already shows vg scan --offline --package-manifest ./package-versions.zip --max-privacy).

    Columns I'd use. May fetch / May upload / Binds a port / Writes local files. "Writes local files" needs its own column because vg serve writes .vibgrate/ map and cache files even when nothing leaves the machine, and vg install writes assistant config by design.

    Acceptance check. Each cell should cite the flag or code path it came from in the PR description, and the doc should say plainly that --local without network still writes local artifacts unless --no-local-artifacts / --max-privacy applies (scan only). Cross-link #153 rather than repeating its recovery steps.

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