patch_plan
Update a plan's role_config safely without hand-editing manifest JSON, using a lock to prevent races with the scheduler's periodic writes.
Instructions
Edit a plan manifest's top-level fields (currently only role_config) 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 role_config may be set; every other top-level field (repo_root, epics, stories, ...) is rejected fail-closed before the lock is taken, so an unknown field can never reach disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| plan_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||