chap.task.create
chap.task.createCreate a task assigned to one participant, optionally requiring a reviewer decision for completion.
Instructions
Create a task: a unit of work assigned to one participant. Set review_required to make the task's completion depend on a reviewer decision rather than on the assignee.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The delegator. Must be a workspace member. | |
| kind | Yes | Task kind, e.g. 'draft_response' or 'review'. Free text; the coordinator records it without interpreting it. | |
| mode | No | Mode for this task, defaulting to the workspace mode. A mode above the workspace ceiling is refused with -32040. | |
| input | Yes | Task-specific input payload. | |
| assignee | Yes | Who the task is assigned to. Must be a workspace member, and must not be paused: assigning to a paused member is refused with -32063. | |
| deadline | No | When the task is due, as an ISO 8601 timestamp. Recorded on the task; the coordinator does not act on it. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| routing_hints | No | Signals recorded on the task and read by the routing/1.0 methods: task.route, review.depth and escalate.auto. Recording a hint has no effect on its own; it is consulted only when one of those methods is called. | |
| idempotency_key | No | Caller-chosen key for safe retries. A second create carrying a key already seen in this workspace returns the original task and records nothing further. The workspace retains the 10,000 most recent keys. | |
| review_required | No | When true, chap.task.complete opens a review instead of completing: the output becomes the artefact under review, and the task reaches 'completed' only on a reviewer decision. chap.task.update cannot complete such a task. Under modes/1.0 a trial-mode task has this set to true whatever is passed here. |