task_update
Patch a Task Passport without changing lifecycle status: append or replace constraints, next actions, tags, and write scope, update repositories, and preserve omitted fields.
Instructions
Patch the current Task Passport without changing lifecycle status. List fields (constraints, writeScope, nextActions, tags) append and deduplicate; repositories upsert by id; omitted fields are preserved; empty or no-op updates fail. Pass clearNextActions to replace the next-actions list instead of appending, e.g. to clear a stale plan before finalizing. Pass replaceConstraints to replace constraints that are obsolete or superseded; removed constraints stay in the task history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | New risk level for the task. | |
| tags | No | Free-form labels to append. | |
| objective | No | Replacement objective text. | |
| writeScope | No | Repo-relative prefix paths to append to the write scope. A directory path includes its children; globs are not supported. | |
| constraints | No | Constraints to append, or the full replacement list when replaceConstraints is true. | |
| nextActions | No | Next steps to append, or the full replacement list when clearNextActions is true. | |
| repositories | No | Additional checkouts keyed by id; the ledger root is primary. Local updates append scopes; imported bindings use only the supplied local scope. Requires an active task with pending or unknown verification. | |
| clearNextActions | No | Replace the next actions with the provided nextActions (or clear them) instead of appending. | |
| replaceConstraints | No | Replace the constraints with the provided constraints (or clear them) instead of appending; removed ones are recorded in the task-update event. |