analyze_blast_radius
Analyze architecture dependencies to identify failure impacts by calculating which components break if another fails, helping assess coupling and risk before deployment.
Instructions
Analyze blast radius and dependency structure of an architecture.
For each component (or just one, if component_id is set): returns direct
dependents, transitive dependents, blast-radius size, SPOF status, and
tier position. Use this to reason about failure modes — 'if component X
dies, what else breaks?'
When to use: You have a spec and want to understand coupling and failure
domains before production. Complementary to score_architecture (which
gives a summary grade) and lint_architecture (which flags specific
anti-patterns).
Behavior: Pure graph computation — no LLM, no network. Read-only. Does not touch cloud resources.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_json | Yes | ArchSpec to analyze. Builds a directed dependency graph from the spec's connections and computes reachability per component. | |
| component_id | No | Optional: focus analysis on a single component's blast radius (its direct dependents + transitive dependents). When omitted, returns blast-radius metrics for every component. |