analyze_blast_radius
Map component dependencies to identify blast radius and single points of failure. For each component, determine which others break if it fails, enabling risk analysis before production.
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. |