UpdateStatus

Updates the status of a Task as it progresses through its lifecycle. This method allows agents or operators to report the current state of a task, which could include changes to task status and error information. Each status update increments the task's status_version. When updating status, clients must provide the current version to ensure consistency. The system rejects updates with mismatched versions to prevent race conditions. Terminal states (`STATUS_DONE_OK` and `STATUS_DONE_NOT_OK`) are permanent; once a task reaches these states, no further updates are allowed.

UpdateStatusRequest

Request
This endpoint expects an object.
status_updateobject
The updated status.

UpdateStatusResponse

Response
This endpoint returns an object.
taskobject
The updated Task.