edit
Apply code edits with AST-backed validation to guard against structural breakage and unintended side effects.
Instructions
Code-intelligence (codegraph-compatible) safety and change-management facade. Actions: ast_diff, classify, constraints, guard, impact, mutation_probe, plan_rename, pr, refactor, release_snapshot, rename, safe, verify. Pass action=help with target_action for an exact action schema. Cost: action=safe is slow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Action sub-mode (e.g. summary|cycles). | |
| limit | No | Max results. | |
| query | No | Search query/pattern. | |
| scope | No | Action discriminator (e.g. point|graph). | |
| action | Yes | Which business capability to invoke, or help for discovery. One of: ast_diff, classify, constraints, guard, help, impact, mutation_probe, plan_rename, pr, refactor, release_snapshot, rename, safe, verify | |
| symbol | No | Symbol/function name. | |
| persist | No | Write evaluated violations through to the cache. Set false for RFC-0022 read-only evaluation; no database or file is created. | |
| language | No | Language hint (usually auto). | |
| file_path | No | Target file path. | |
| access_mode | No | Explicit P0.4 zero-write access mode for routed read adapters. | |
| scope_paths | No | Primitive-issued frozen scope for action=constraints, or impact capture scope for action=impact. | |
| snapshot_id | No | Certified P0.1 index snapshot capability ID. | |
| function_name | No | Function name (alias of symbol). | |
| output_format | No | Output format: JSON. | |
| target_action | No | Business action to describe when action is help. | |
| route_lease_id | No | Ownership token required by action=release_snapshot. | |
| diff_snapshot_id | No | RFC-0022 frozen diff ID for constraints/classify/ast_diff/release_snapshot. | |
| modification_type | No | Required for action=guard: type of planned modification. One of: add_feature, behavior_change, delete, fix_bug, refactor, rename, signature_change. | |
| source_generation | No | Certified P0.1/P0.2 source generation. | |
| capture_diff_snapshot | No | Explicitly produce a frozen diff ID for same-process consumers; supported only on POSIX. |