name: blast-radius-workflow description: Evidence-first workflow for Blast Radius impact analysis using MCP tools and orchestrator. Use when users ask what might break from code changes (rename, remove, add, type change), need impacted files/symbols/tests, or want risk and confidence summaries for a target repository.
Blast Radius Workflow
Use this workflow to produce a deterministic, evidence-backed blast radius result.
Execute setup checks
- Confirm Blast Radius MCP server is available.
- Confirm
BLAST_RADIUS_REPO_ROOTor requestrepo_rootpoints to the target repository. - Confirm target paths are repo-relative inside tool inputs.
If any setup check fails, stop and ask only for the missing input.
Collect and normalize inputs
- Capture
intentin one sentence. - Capture optional
anchors(file, symbol, route). - Capture optional unified
diff. - Normalize route-like anchors to
route:METHOD /path. - Keep symbol anchors in
symbol:...form when available.
If no anchors exist, infer minimal anchors from intent and changed files.
Run tool sequence
Run in this order and keep outputs isolated by tool name.
get_ast_dependencies(always)- Build
target_filesfrom diff changed files and file anchors.
- Build
trace_data_shape(conditional)- Run only for API/field changes with both
field_pathandentry_points.
- Run only for API/field changes with both
find_semantic_neighbors(always)- Use intent-derived
query_text; scope to target files when possible.
- Use intent-derived
get_historical_coupling(conditional)- Run only when
.githistory exists and target files are known.
- Run only when
get_covering_tests(conditional)- Run only when tests exist and impacted nodes can be formed.
On validation failure, fix shape errors once and retry once.
Merge evidence with strict weighting
- Treat Tool 1 and Tool 2 as primary structural evidence.
- Treat Tool 3 as suggestive; if uncorroborated, mark as unknown risk zone.
- Use Tool 4 to rank likelihood via co-change support.
- Use Tool 5 to rank test execution order.
- Explicitly separate facts, assumptions, and limitations.
Return report format
Return a concise report with:
- Top impacted files/symbols
- Risk per item:
high | medium | low | unknown - Confidence per item:
high | medium | low - Evidence summary (which tools support each item)
- Prioritized tests to run first
- Assumptions and limitations
- A markdown artifact saved in the workspace (for example
blast_docs/BLAST_RADIUS_REPORT.md)
Escalation rules
- If only semantic evidence exists, do not over-assert breakage.
- If diff is missing and results are broad, request a diff or concrete anchors.
- If Tool 2 yields no sites for field changes, request explicit entry points.
Load references when needed
- For ready-to-use prompts and output skeletons, read
references/prompt-and-output-templates.md.