Approve
chap.decide.approveApprove the artefact under review as it stands, recording an auditable decision. Only the addressed reviewer may approve, and quorum rules can keep the review open for others.
Instructions
Approve the artefact under review as it stands. Only a reviewer the review was addressed to may decide, and anyone else is refused with -32011. The task completes once the review's rule is satisfied, so under all_approve or quorum:N an approval may leave the review open awaiting others. Use chap.decide.override instead to accept a corrected version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Participant URI, e.g. 'human:alice@example.org' or 'agent:bot@local'. | |
| tags | No | Workspace-defined labels for this decision, e.g. ['tone', 'unsupported-claim']. Recorded in the audit entry. chap.audit.read does not filter on tags, so grouping by tag is done by the reader. | |
| comment | No | The reviewer's note on this decision. Recorded in the audit entry for the decision. | |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| approved_artefact_digest | No | Optional. SHA-256 over the JCS canonicalisation of the artefact under review, in the form `sha256:<hex>`. When present it binds the decision to the exact content reviewed, and a mismatch is refused with -32074. |