chap.decide.approve
chap.decide.approveApprove an artefact under review to complete the task when the review rule is satisfied. Optionally bind approval to the exact content digest for audit accuracy.
Instructions
Approve the artefact under review. The task completes once the review's rule is satisfied.
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. |