Skip to content

Docs: document vg fix ranked upgrade plans and local-first bounds #292

Closed

Description

@vibgrate-team

Context

vg fix (and related ranked upgrade plans) is how operators move from a DriftScore report to concrete local changes. First-time contributors need a short public page: what the plan contains, that work stays on-disk unless the user applies it, and that secrets/credentials never appear in plan text or examples.

What to do

  1. Document the happy path: vg scan → ranked plan → vg fix apply/preview semantics (prefer vg in snippets).
  2. State local-first bounds: no silent network installs of private packages; never echo tokens or .env contents.
  3. Link related CI gating docs lightly (--drift-budget / baseline) without duplicating Docs: document vg scan --drift-budget / --drift-worsening CI gating #248 / Docs: document vg baseline create/update and CI gating with suppressions #278.

Acceptance

  • A reader can preview vs apply without reading source
  • No secrets in examples; local-first called out
  • DCO on docs PR (git commit -s)

Mentoring notes

Docs only. Do not redesign the fix UX in this ticket.

Activity

  1. added
    documentation
    on Sep 29, 2026
  2. vibgrate-team commented on Oct 12, 2026

    @vibgrate-team
    ContributorAuthor

    A few things in the current code change what this page should say, so here is a tighter spec before anyone picks it up.

    The "local-first" premise needs correcting. vg fix is not a local planner. src/reporting/commands/fix.ts refuses to run without a DSN (vg login, VIBGRATE_DSN, or --dsn) and sends the drifted dependency list to the hosted planner. Source code stays on the machine; dependency names, versions, and aggregate usage signals do not. The page should say exactly that rather than "work stays on-disk", which would be misleading.

    Much of the happy path is already in DOCS.md under ### vg fix. Flags, the three plan tiers, --dry-run / --no-apply / --yes / --plan, and exit codes are all there. The gap is narrower than the ticket suggests:

    1. A short "Preview, then apply" block showing the three distinct modes side by side: --no-apply (print plans, never touch the project), --dry-run (show what the chosen or recommended plan would change, never prompts), and --yes / --plan <tier> (apply). Note that with several plans and no --plan, --dry-run previews the recommended one.
    2. Reconcile the tier names. The prose calls them Low-risk / Balanced / Full; --plan takes safe / balanced / aggressive. Say which maps to which.
    3. Say plainly that applying runs the project's own package manager, so it does reach the network and the configured registries. Ecosystems without a one-shot pin (Maven/Gradle) are reported for a manual edit.
    4. Credentials: show VIBGRATE_DSN coming from a CI secret, never an inline value, and never put a DSN or registry token in a snippet.

    Acceptance (revised)

    • A reader can tell --no-apply, --dry-run, and apply apart without reading source
    • The page states what is sent to the hosted planner and what is not
    • Tier names in prose and --plan values are reconciled
    • No DSN, token, or .env contents in any example
    • Edits stay inside the existing ### vg fix section; no flag or UX changes
  3. vibgrate-team commented on Oct 13, 2026

    @vibgrate-team
    ContributorAuthor

    Fixed by #451 — thanks! Closing.

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

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions