topology_affected
Find which tests to run after code changes: given changed files or symbols, it returns likely affected tests via dependency and co-location, with confidence and reason.
Instructions
After you change code, ask this which tests to run instead of running the whole suite. Given changed files or symbols, it returns the likely affected files and tests by traversing inward dependency edges AND by co-location (tests in the same directory as a changed/affected file — which catches sibling test files the call graph alone misses). Results are heuristic and biased toward recall (a missed test is worse than an extra); every test carries a confidence and the reason it was flagged. Returns a clear message when topology is disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Workspace-relative file paths to treat as change roots. | |
| symbols | No | Symbol names to treat as change roots. | |
| max_results | No | Maximum affected nodes to return. Default 50. |