Review Task
review_taskApprove or reject a task in REVIEWING (AUDITOR/human) or a human-state task.
AWAITING_HUMAN and ESCALATED_TO_HUMAN require an actual human account;
workspace automation keys cannot resolve them. Rejections increment the
ping-pong counter and may escalate to human. items [{item_id, result:
PASS|FAIL}] judge each acceptance item (an approval passes them all);
cited_clauses name the spec clauses a rejection rests on. Read
get_audit_view first: under quality control an approval needs it.next_status (generated from the shared enum): approve -> DONE|HANDOFF|READY; reject -> READY|IN_PROGRESS. IN_PROGRESS returns the task to its executor while the executor's lease is still valid, otherwise to READY (effective_status). This mirrors REST POST /v1/tasks/{key}/review.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_key": "<task_key>",
"decision": "<decision>"
},
"name": "review_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | ||
| items | No | ||
| decision | Yes | ||
| feedback | No | ||
| task_key | Yes | ||
| next_status | No | approve: DONE|HANDOFF|READY; reject: READY|IN_PROGRESS (IN_PROGRESS sends the task back to its executor for rework) | |
| cited_clauses | No | ||
| idempotency_key | No | Optional. Retries with the same key and arguments within 24 h replay the first result (replayed=true) without a second write; a different body with the same key is idempotency_key_reused. | |
| expected_version | No | ||
| session_batch_id | No | ||
| commander_grant_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||