Skip to content

docs: document vg fix ranked plans and planner bounds - #451

Closed
vibgrate-team wants to merge 1 commit into
mainfrom
cursor/docs-vg-fix-ranked-plans-ddc6
Closed

vibgrate-team wants to merge 1 commit into
mainfrom
cursor/docs-vg-fix-ranked-plans-ddc6

Conversation

@vibgrate-team

@vibgrate-team vibgrate-team commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The ### vg fix page already listed flags, the three plans, and exit codes, but two things were easy to misread.

The report labels and the --plan values did not line up. The prose called the plans Low-risk, Balanced, and Full, while --plan accepts safe, balanced, and aggressive. A reader could not tell which string selects which plan.

The network bounds were understated. The page said the CLI only measures the project locally and sends dependency versions plus usage signals. vg fix refuses to run without a DSN (vg login, VIBGRATE_DSN, or --dsn) and posts the drifted dependency list to the hosted planner. Source files stay on the machine. Dependency names, versions, and aggregate usage signals do not. Applying then runs the project's own package manager, which reaches the registries that manager is configured to use. Describing the command as local-only planning would be wrong.

Edits stay inside the existing ### vg fix section. No flag or UX changes.

  • Preview, then apply. --no-apply prints the plans and never touches the project. --dry-run previews the chosen or recommended plan and never prompts; when more than one plan contains upgrades and --plan is omitted, it previews the recommended plan. --yes and --plan <tier> apply, and the package manager runs.
  • Tier ids. --plan safe is Low-risk, --plan balanced is Balanced, and --plan aggressive is Full. When two tiers list the same upgrades, the lower-risk tier is kept and the other id selects that plan.
  • What is sent. Package name, ecosystem, current and latest versions, and — for npm and PyPI — aggregate usage signals (import-site and file counts, and imported symbol names). The request also includes the CLI version and, when git metadata is available, the repository name and commit id.
  • Credentials. The CI example sets VIBGRATE_DSN from ${{ secrets.VIBGRATE_DSN }}. No DSN, token, or .env contents appear in an example. Maven and Gradle remain a reported manual edit.

Related issues

Closes #292

Checklist

  • pnpm test passes
  • pnpm lint is clean
  • pnpm typecheck is clean
  • Docs updated (README / DOCS / ARCHITECTURE) where behavior changed
  • Determinism preserved — identical input still produces identical graph.json / report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)
  • No proprietary or internal references — public, Apache-2.0 content only
  • Commits use Conventional Commits and are signed off (git commit -s, DCO)

Notes for reviewers

Docs only. The text was checked against src/reporting/commands/fix.ts (runApplyFlow, DSN gate, candidate payload), src/reporting/utils/fix-plan.ts (hosted POST /v1/fix/plan), src/reporting/planning/types.ts (PlanTier), src/reporting/credentials.ts (DSN order), and src/reporting/planning/apply.ts (package-manager install versus a manual edit for ecosystems with no one-shot pin).

How to verify:

  1. Read DOCS.md under ### vg fix and compare the three modes, the tier mapping, and the network bounds with those sources.
  2. pnpm test, pnpm lint, and pnpm typecheck. Docs checks that read DOCS.md include test/docs-command-coverage.test.ts and test/go-pseudo-versions.test.ts.

Verification on this branch: pnpm test (504 files, 5295 passed, 2 expected fail), pnpm typecheck (clean), and pnpm lint (exit 0; 5 pre-existing unused-variable warnings in files this change does not touch).

Open in Web Open in Cursor 

The vg fix page mixed display labels with --plan ids and described the
command as if planning stayed on the machine. State the safe/balanced/
aggressive mapping, the preview versus apply flags, and what the hosted
planner and the package manager each send over the network.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
@vibgrate-team
vibgrate-team marked this pull request as ready for review October 12, 2026 11:58
@vibgrate-team

Copy link
Copy Markdown
Contributor Author

Closing: the vg fix section on main already documents the DSN requirement, the --no-apply / --dry-run / apply modes, and the safe / balanced / aggressive tier ids. This PR is superseded.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants