Skip to main content
Commands

vg impact

What breaks if you change a node? Deterministic structural blast radius using reverse reachability and decay confidence. With --tests, surfaces exactly the tests to run before shipping.

Overview

vg impact computes the reverse reachability from a node — every caller, transitively — with a decay confidence score. Use --tests to get the minimal test set covering the affected nodes, and --fail-on-untested as a CI gate.


Usage

vg impact <name>
FlagDefaultDescription
<name>Node to assess
--depth <n>4Max traversal depth
--testsSurface the tests covering the affected set
--fail-on-untestedExit 2 if any affected node is untested (CI gate)
--pick <n>Pick the nth candidate when ambiguous

Examples

vg impact UserService.createUser
vg impact PaymentProcessor --depth 6 --tests
vg impact AuthMiddleware --fail-on-untested

Related

  • vg tests — Which tests cover a node
  • vg tree — Forward call tree from a node

Example use cases

Expand any use case to watch a live replay of the real @vibgrate/cli running against one of our test repositories. Nothing executes in your browser — these are recordings of actual runs, with the scan time shown as of now.

vg impact <symbol>

Related Documentation