chap.review.request
chap.review.requestRequest review of a task artefact by assigning it to one or more reviewers, enabling them to approve, reject, override, or abstain. Repeat with same artefact to add reviewers.
Instructions
Open a review on a task and address it to one or more reviewers. They then call chap.decide.approve, chap.decide.reject, chap.decide.override or chap.abstain.declare. Repeating the request with the same artefact adds reviewers to the open review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One or more reviewers, as a single URI string or an array of URI strings. Only a workspace member can go on to decide, so a review addressed elsewhere cannot be closed by its recipient. | |
| from | Yes | Participant URI, e.g. 'human:alice@example.org' or 'agent:bot@local'. | |
| rule | No | How many of the addressed reviewers must approve before the task completes. quorum:N is accepted for any N of 1 or more. The rule is fixed once the review is open: a later request naming a different one is refused with -32014. Omitting it on a later request leaves the rule alone, which is how reviewers are added to an open review. | any_one_approves |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| artefact | Yes | The draft being submitted for review. Pass a JSON object or array. A JSON-encoded string is parsed back to the structured value before dispatch, so patches in chap.decide.override apply against a real object. Re-requesting with the same artefact widens the reviewer set; a different artefact on an open review is refused with -32014. | |
| deadline | No | When the review is needed by, as an ISO 8601 timestamp. Recorded on the review; the coordinator does not act on it. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. |