Impact
impact
ImpactHook & DocImpactHook — blast-radius and doc-impact analysis.
Protocol hooks registered via axm.hooks entry points:
-
ast:impact→ImpactHook— callsanalyze_impact, returns the complete impact report asHookResultmetadata. Supports newline-separated symbol lists with max-score merge semantics. -
ast:doc-impact→DocImpactHook— callsanalyze_doc_impact, returnsdoc_refsasHookResultmetadata. Supports newline-separated symbol lists.
DocImpactHook
Run doc impact analysis on one or more symbols.
Reads path from params (or working_dir from context)
and symbol from params. When symbol contains newline
characters, each line is treated as a separate symbol.
Source code in packages/axm-ast/src/axm_ast/hooks/impact.py
execute(context, **params)
Execute the hook action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, Any]
|
Session context dictionary. |
required |
**params
|
Any
|
Must include |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with full report ( |
Source code in packages/axm-ast/src/axm_ast/hooks/impact.py
ImpactHook
dataclass
Run impact analysis on one or more symbols.
Reads path from params (or working_dir from context)
and symbol from params. When symbol contains newline
characters, each line is analyzed separately and results are
merged (max score, concatenated lists, deduplicated modules/tests).
Source code in packages/axm-ast/src/axm_ast/hooks/impact.py
execute(context, **params)
Execute the hook action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
dict[str, Any]
|
Session context dictionary. |
required |
**params
|
Any
|
Must include |
{}
|
Returns:
| Type | Description |
|---|---|
HookResult
|
HookResult with |