tascan_complete_task
Complete an ORDINARY task on behalf of a worker. Inserts a completion record and timer event. Coordination-cycle tasks (a CODE:/REVIEW: build or review, a Decision / Question / Integrate / Parked card on a project Decisions list — tasks that carry coord) are refused with 403 for every key tier: builds and reviews are completed by their runner, decisions only by the human on the worker page. SR-S2 rules (SR-API3): a key with an agent_id completes only as its own agent_registry worker (any other worker: 403 worker_not_key_owner); a key without one completes on behalf of the named worker (on_behalf_of, or worker_id) only when it is an owner/admin-tier root key, and the completion records on_behalf_of (actor and worker). A delegated key without an agent_id: 403 on_behalf_requires_owner_key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional completion notes | |
| task_id | Yes | Task ID to complete | |
| worker_id | No | Worker ID the completion is recorded for (an agent key: omit it, or pass its own worker) | |
| on_behalf_of | No | Worker ID the completion is done on behalf of (for an owner/admin-tier key the same as worker_id; recorded) | |
| response_value | No | Response value (for text/number/choice tasks) |