patch_story
Update a story's plan data atomically to prevent scheduler write conflicts. Sets agent instructions, model, persona, risks, dependencies, acceptance, PR URL, and summary fields safely.
Instructions
Edit a story's plan-authored fields (agent_instructions, model, persona, risk, dependencies, acceptance, pr_url, summary) without hand-editing the manifest JSON.
Hand-editing the manifest directly races the scheduler's 60s advance_all_plans tick - a read-modify-write on either side can silently clobber the other's write. This tool acquires 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 | |||