cos_graph_impact
Analyzes code change impact, grouping affected nodes by risk tier (will_break, should_review, context) to help prioritize review.
Instructions
Group affected nodes by risk tier (will_break / should_review / context).
Args:
uid: Fully-qualified node uid. Scheme: code:file:<path> |
code:function:<path>::<name> | code:class:<path>::<name> |
code:module:<dotted> | doc:file:<path> | folder:<path>.
Raw repo paths (core/foo.py) are auto-resolved to
code:file: / doc:file: / folder:. If unsure, run
cos_graph_query first to discover the right uid.
direction: "downstream" (callers — break if uid changes) |
"upstream" (deps uid calls/imports) | "both".
depth: BFS hop limit (default 3).
confidence_min: Drop edges below this score (default 0.3, matching the function + HTTP route).
visit_limit: BFS node-visit cap (1..50000, default 500). Raise when meta.walk_truncated is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| depth | No | ||
| direction | No | downstream | |
| visit_limit | No | ||
| confidence_min | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |