patch_story
Edit a story's plan-authored fields atomically without hand-editing the manifest JSON, preventing write races with the scheduler's plan advance tick.
Instructions
Edit a story's plan-authored fields (agent_instructions, model, persona,
risk, dependencies, acceptance, pr_url, summary, tdd_split, backend)
without hand-editing the manifest JSON. files is not patchable: change
the plan's file list via ingest_plan and re-ingest.
Hand-editing the manifest races the scheduler's 60s advance_all_plans tick - a read-modify-write on either side can clobber the other's write. This tool takes the same _plan_lock the scheduler and dispatch_story use, so the edit is atomic with respect to it. Only the fields above may be set; status transitions go through set_story_status, not this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| plan_name | Yes | ||
| story_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||