What Is Blast Radius Analysis?
Blast radius analysis calculates the set of files, modules, and services that would be affected if a specific file were modified, broken, or removed. It answers the question: "If I change this file, what else could break?" The analysis traverses the dependency graph forward from the target file, collecting all direct and transitive dependents up to a configurable depth.
Why It Matters
Software changes rarely affect only the file being changed. A modification to a shared utility function may cascade through every file that imports it. A breaking change to an API contract may affect every consumer service. The true scope of a change is determined not by the diff, but by the dependency graph.
Without blast radius analysis, teams estimate change impact from memory and experience. This estimation is accurate for familiar areas of the codebase and unreliable for everything else. When an engineer modifies a file they believe has limited impact, only to discover in production that it affected a critical path they did not know about, the resulting incident was preventable — the dependency graph contained the information, but nobody queried it.
Blast radius analysis makes change impact a queryable, quantifiable metric rather than a judgment call.
How It Works
Blast radius analysis uses breadth-first search (BFS) traversal on the dependency graph, starting from the target file and following reverse dependency edges — that is, edges from the target file to the files that depend on it.
At depth 1, the analysis finds all files that directly import or depend on the target file. At depth 2, it finds all files that depend on those first-level dependents. The traversal continues to a configurable maximum depth, typically 3 to 5 levels.
The result is a set of files organized by traversal depth, along with counts of affected files at each level. This provides both the total blast radius (all affected files) and the proximity distribution (how many files are immediately affected versus transitively affected).
Blast radius can also be computed in the forward direction — from the target file to its dependencies — answering the complementary question: "What does this file depend on, and what would break it if those dependencies changed?"
How Axiom Refract Addresses This
- Axiom Refract computes blast radius for any file using BFS traversal up to configurable depth (default 3, max 5) via the get_blast_radius tool
- The blast radius report includes both forward dependents (what breaks if this changes) and direct dependencies (what this file imports)
- Blast radius data is included in SPOF manifests and migration plans to prioritize which files need the most careful handling