pending → claimed → done.
Endpoints
Authentication
Authorization: Bearer <api_key> or Authorization: ApiKey <key>. Optional if AGENT_CLOUD_API_KEY is unset. Every row is scoped by principal_id.
Request body
Non-empty task list. Each item has
id (optional, t1… by default), title and depends_on (task ids).claim: worker (optional, defaults to the current principal id). For complete: result (the task output).
Response
claim returns 403 when dependencies are unfinished or the task is already claimed; an unknown team is 404; a cycle or dangling dependency is 400; ids owned by another tenant are invisible and unwritable.