chap.decide.override
chap.decide.overrideApply an RFC 6902 JSON Patch to correct an artefact under review, recording the rationale and tags for an auditable decision trail.
Instructions
Correct the artefact under review with an RFC 6902 JSON Patch and accept the result. The patch, the rationale and any tags are recorded together, so the audit log holds what was changed and why, rather than only that the work was not accepted as written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | RFC 6902 JSON Patch operations applied to the artefact under review. The patched artefact becomes the task output; a patch that does not apply is refused with -32012. | |
| 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. | |
| task_id | Yes | Task identifier returned by chap.task.create. | |
| rationale | Yes | Why the correction was made. Required on every override and recorded in the audit entry, since the diff shows what changed but not why. | |
| workspace | Yes | Workspace identifier, e.g. 'wsp_techcorp_support'. | |
| logical_id | No | Caller-chosen identifier for the item being decided, stable across revisions and overrides of the same underlying content. Recorded in the audit entry. | |
| policy_refs | No | Identifiers of the policies or guidelines this correction applies, e.g. ['policy:no-delivery-promises']. Recorded in the audit entry. | |
| intent_preserved | No | True when the edit refines the decision the draft was making, false when it substitutes a different one. Recorded in the audit entry. | |
| 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. |