Scope the following refactoring task: $ARGUMENTS
Produce a refactoring impact report:
- •Matches: Use
tools/ai/scope_changes.shto count affected files and lines - •File list: Every file that needs to change, grouped by crate
- •Dependency order: Which files should be changed first? (common/ before server/, proto before everything)
- •Risk assessment:
- •Does this touch conflict zones? (proto, Cargo.toml, server.rs)
- •Could this break existing tests?
- •Does this require proto regeneration?
- •Effort estimate: How many subagents would this need? (use rule: >10 changes across >3 files = subagents)
- •Recommendation: Direct edit, subagent delegation, or separate branch?
Be concise. Use counts and file lists, not full file contents.