query_repository_graph
Walk a repository snapshot's dependency graph from file or symbol seeds to identify impacted files, symbols, and change-risk scores, sizing the blast radius before running simulations or applications.
Instructions
Walk the dependency graph of one persisted repository snapshot from optional file_path/symbol_name seeds and return impacted files and symbols with change-risk scores. Seed scope comes from snapshot_id or a triage workspace_evidence_bundle_ref — one of the two is required. direction inbound follows dependents, outbound follows dependencies, both (default) walks both. Use this before simulate_repository or apply_repository to size the blast radius of a change. Read-only against the repository; persists a lookup artifact. Returns seed files/symbols, direct dependencies and dependents, impacted files/symbols, graph nodes and edges, and top_change_risk_files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | Edge direction to walk: inbound = dependents, outbound = dependencies; defaults to both. | |
| file_path | No | Optional seed file to walk the graph from. | |
| max_depth | No | Traversal depth from the seeds, 1-6; defaults to 2. | |
| max_nodes | No | Graph node cap, 1-1024; defaults to 128. | |
| snapshot_id | No | Snapshot id from create_repository_snapshot; required unless workspace_evidence_bundle_ref is given. | |
| symbol_name | No | Optional seed symbol to walk the graph from. | |
| repository_id | Yes | Saved repository connector id from list_connectors. | |
| workspace_evidence_bundle_ref | No | Triage bundle ref; alternative seed scope to snapshot_id. |