what_if_revert
Simulates reverting code changes by removing specified nodes from the dependency graph, then recomputes the diff and risk against the baseline to show what would be recovered.
Instructions
Counterfactual: removes the named nodes from the head graph, recomputes the diff and risk against the real baseline, and reports what changes. Answers 'what recovers if I revert this?'. Models deletion only — it cannot model reverting a modified body back to its prior form. Requires a resolvable baseline; returns an error rather than a fabricated one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeIds | Yes | Node ids to remove. Format: 'relative/path.ts::Symbol' or 'relative/path.ts::Class::method', as returned by export_behavioral_graph. |