Plans can say which functions to change
A plan can now end with a change map: one yaml block listing each file, and
optionally each function, class or heading, that must change, why, and in which
step. anchor work sends the executor excerpts for the targets of the current step.
The block
## Change map
```yaml
version: 1
changes:
- id: C1
path: scripts/orchestrate.py
symbol: execute_task
action: modify
why: "send each step its own symbols"
steps: [2]
```
action is modify, add or remove. The plan template describes each key.
A Python definition or Markdown section is sent whole when it fits the excerpt
budget; otherwise the executor gets the lines around the name.
What the CLI does with it
anchor draft --promote refuses an invalid block, or a modify or remove
target that is not in the tree. At work start an invalid block stops the run
before any model call; a target that has since moved is logged and skipped.
Check one by hand with python scripts/plan_changes.py <plan>.
Plans without it
The section is optional. Existing plans work as before, and nothing adds a map to them. List only files you have read: leave out what you would have to guess.