> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runaether.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the tree containing a task

> Lists every task of the campaign tree a task belongs to, root first and then by depth and creation.

Use this tool when you need to:
- See the cloud agents a task spawned, and the ones they spawned, with each one's status
- Find the root of the campaign a child task belongs to

Examples:
- GET /tasks/{taskID}/tree
- GET /tasks/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/tree

Hints:
- taskID is the lowercase uuid of any task in the tree; there are no other parameters and items is not paged.
- Each item is the Task object listTasks and getTask return, archived ones included; parent_task_id gives the tree its shape. A task with no parent and no children is a tree of one.
- Use listTaskSubagents instead for the sub-agents and commands a task's agent ran inside its own workspace, getTask for one task, and listTaskActivity for a task's activity.
- Any member of the task's organization may read it, a viewer included; a billing member is refused with 403 org_role_insufficient, a suspended organization with 403 org_suspended, an agent host's grant with 403 agent_host_route_not_allowed, and a task the caller cannot see is 404; 503 when the membership check is unavailable.
- A tree past the campaign bounds (1000 tasks, depth 64) answers 500.



## OpenAPI

````yaml api-reference/openapi.json GET /tasks/{taskID}/tree
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /tasks/{taskID}/tree:
    get:
      tags:
        - tasks
      summary: Get the tree containing a task
      description: >-
        Lists every task of the campaign tree a task belongs to, root first and
        then by depth and creation.


        Use this tool when you need to:

        - See the cloud agents a task spawned, and the ones they spawned, with
        each one's status

        - Find the root of the campaign a child task belongs to


        Examples:

        - GET /tasks/{taskID}/tree

        - GET /tasks/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/tree


        Hints:

        - taskID is the lowercase uuid of any task in the tree; there are no
        other parameters and items is not paged.

        - Each item is the Task object listTasks and getTask return, archived
        ones included; parent_task_id gives the tree its shape. A task with no
        parent and no children is a tree of one.

        - Use listTaskSubagents instead for the sub-agents and commands a task's
        agent ran inside its own workspace, getTask for one task, and
        listTaskActivity for a task's activity.

        - Any member of the task's organization may read it, a viewer included;
        a billing member is refused with 403 org_role_insufficient, a suspended
        organization with 403 org_suspended, an agent host's grant with 403
        agent_host_route_not_allowed, and a task the caller cannot see is 404;
        503 when the membership check is unavailable.

        - A tree past the campaign bounds (1000 tasks, depth 64) answers 500.
      operationId: getTaskTree
      parameters:
        - in: path
          name: taskID
          required: true
          schema:
            format: uuid
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskTree'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TasksErrorResponse'
          description: Service Unavailable
components:
  schemas:
    TaskTree:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/Task'
          type: array
      required:
        - items
      type: object
    TasksErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unserved
            - agent_pr_blocked
            - agent_pr_pending
            - agent_profile_changed
            - agent_starts_off
            - app_identity_missing
            - attribution_unavailable
            - bad_gateway
            - bad_request
            - caller_inactive
            - chat_archived
            - computer_connection_stale
            - computer_starts_no_agents
            - computer_starts_no_forks
            - computer_unreachable
            - conflict
            - connection_harness_mismatch
            - connection_not_held
            - contents_write_required
            - continuation_failed
            - continuation_unavailable
            - control_forbidden
            - creator_github_access_missing
            - embeddings_unavailable
            - fix_not_requested
            - fix_requests_unrecorded
            - forbidden
            - fork_branch_delete_unsupported
            - fork_forbidden
            - gateway_timeout
            - github_claim_unverified
            - github_failed
            - github_identity_mismatch
            - github_identity_required
            - github_push_access_required
            - github_reconnect_required
            - github_ref_not_found
            - gone
            - handed_branch_protected
            - head_moved
            - html_render_nul_byte
            - html_render_too_large
            - idempotency_key_conflict
            - idempotency_key_reused
            - idle_compaction_not_pending
            - idle_compaction_skipped
            - inference_proxy_unavailable
            - insufficient_credits
            - insufficient_inference_balance
            - internal_error
            - invalid_request
            - last_queued_message
            - main_chat_permanent
            - mcp_server_not_connected
            - merge_when_ready_requires_pr_review
            - message_not_queued
            - method_not_allowed
            - mode_forbidden
            - no_checkout_on_computer
            - no_dispatch_target
            - no_turn_running
            - not_acceptable
            - not_found
            - not_implemented
            - onboarding_already_completed
            - onboarding_requirements_missing
            - org_id_required
            - org_role_insufficient
            - org_suspended
            - payment_required
            - permission_prompt_answered_in_terminal
            - permission_prompt_expired
            - permission_prompt_open
            - permission_prompt_stopped
            - pr_review_actor_required
            - pr_review_publish_forbidden
            - precondition_failed
            - project_archived
            - project_has_no_repository
            - project_repo_disconnected
            - project_repository_differs
            - project_required
            - pull_request_closed
            - pull_request_mirror_failed
            - pull_request_not_mirrored
            - push_file_too_large
            - push_rejected
            - push_secret_detected
            - question_answers
            - queued_stop_requires_discard
            - rate_limited
            - repository_administration_not_granted
            - repository_already_connected
            - repository_create_forbidden
            - repository_create_rejected
            - repository_created_not_linked
            - repository_owner_not_caller
            - request_canceled
            - request_timeout
            - request_too_large
            - save_in_progress
            - save_requires_task_creator
            - service_unavailable
            - slash_command
            - stack_cycle
            - stack_too_large
            - stack_two_parents
            - stale_execution
            - stale_or_indeterminate
            - stale_pending_input
            - stream_delivery_gap
            - stream_event_conflict
            - task_already_saved
            - task_awaiting_message
            - task_awaiting_tool_response
            - task_backed_by_work_tree
            - task_bound_at_creation
            - task_branch_diverged
            - task_branch_is_default
            - task_branch_mismatch
            - task_branch_missing
            - task_connection_disconnected
            - task_creator_deleted
            - task_executing
            - task_file_too_large
            - task_fork_refused
            - task_has_no_commits
            - task_has_no_files
            - task_has_no_repository
            - task_history_has_merges
            - task_ineligible
            - task_is_child
            - task_not_accepting_messages
            - task_not_pinnable
            - task_not_started
            - task_rebase_in_progress
            - task_settings_changed
            - teleport_unavailable
            - terminal_chat
            - terminal_chat_continuation_refused
            - terminal_chat_run_running
            - terminal_question
            - unauthenticated
            - unsigned_aether_head
            - unsigned_commit
            - unsupported_changes
            - unsupported_media_type
            - untyped_error
            - validation_failed
            - working_tree_dirty
            - workspace_git_unavailable
            - workspace_gone
            - workspace_outdated
            - workspace_rejected
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    Task:
      discriminator:
        mapping:
          awaiting_input: '#/components/schemas/TaskAwaitingInput'
          errored: '#/components/schemas/TaskErrored'
          processing: '#/components/schemas/TaskProcessing'
          queued: '#/components/schemas/TaskQueued'
        propertyName: status
      oneOf:
        - $ref: '#/components/schemas/TaskQueued'
        - $ref: '#/components/schemas/TaskProcessing'
        - $ref: '#/components/schemas/TaskAwaitingInput'
        - $ref: '#/components/schemas/TaskErrored'
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    TaskAwaitingInput:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        awaiting_input:
          $ref: '#/components/schemas/TaskAwaitingInputPayload'
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        hardware:
          anyOf:
            - $ref: '#/components/schemas/HardwareConfig'
            - type: 'null'
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          enum:
            - default
            - plan
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          enum:
            - ultra
            - max
            - xhigh
            - high
            - medium
            - low
            - ultrathink
            - ultracode
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        status:
          enum:
            - awaiting_input
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
        work_tree:
          $ref: '#/components/schemas/TaskWorkTree'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - hardware
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - run_context
        - awaiting_input
      type: object
    TaskErrored:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        completed_at:
          format: date-time
          type: string
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        error:
          minLength: 1
          type: string
        failure:
          $ref: '#/components/schemas/TaskFailure'
        hardware:
          anyOf:
            - $ref: '#/components/schemas/HardwareConfig'
            - type: 'null'
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          enum:
            - default
            - plan
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          enum:
            - ultra
            - max
            - xhigh
            - high
            - medium
            - low
            - ultrathink
            - ultracode
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        status:
          enum:
            - errored
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
        work_tree:
          $ref: '#/components/schemas/TaskWorkTree'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - hardware
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - run_context
        - error
        - completed_at
      type: object
    TaskProcessing:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        hardware:
          anyOf:
            - $ref: '#/components/schemas/HardwareConfig'
            - type: 'null'
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          enum:
            - default
            - plan
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          enum:
            - ultra
            - max
            - xhigh
            - high
            - medium
            - low
            - ultrathink
            - ultracode
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          $ref: '#/components/schemas/TaskRunContext'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        status:
          enum:
            - processing
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
        work_tree:
          $ref: '#/components/schemas/TaskWorkTree'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - hardware
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - run_context
      type: object
    TaskQueued:
      additionalProperties: false
      properties:
        agent_type:
          anyOf:
            - $ref: '#/components/schemas/AgentType'
            - type: 'null'
        archived_at:
          format: date-time
          type:
            - string
            - 'null'
        auto_fix_ci:
          type: boolean
        auto_fix_pr_comments:
          type: boolean
        auto_rebase:
          type: boolean
        binding:
          anyOf:
            - $ref: '#/components/schemas/TaskRepositoryBinding'
            - type: 'null'
        campaign:
          anyOf:
            - $ref: '#/components/schemas/TaskCampaignSummary'
            - type: 'null'
        conversation:
          $ref: '#/components/schemas/TaskConversation'
        created_at:
          format: date-time
          type: string
        creator_reauth_required:
          type: boolean
        hardware:
          anyOf:
            - $ref: '#/components/schemas/HardwareConfig'
            - type: 'null'
        head_branch:
          minLength: 1
          type:
            - string
            - 'null'
        id:
          format: uuid
          type: string
        interaction_mode:
          enum:
            - default
            - plan
          type:
            - string
            - 'null'
        latest_message_revision:
          description: >-
            Maximum revision_sequence of currently stored task messages,
            including soft-deleted rows; zero means no messages. Compare
            equality only: hard deletion can decrease it. Not an activity/stream
            cursor or a task-wide version.
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        latest_status_message:
          type:
            - string
            - 'null'
        merge_when_ready:
          description: >-
            Whether the task merges its own published pull request once it is
            ready: external CI green, Aether Review's APPROVE at the exact head,
            no unresolved review thread and the task idle.
          type: boolean
        model:
          minLength: 1
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          type: string
        outcome:
          description: >-
            The one word a client renders for the task: its lifecycle rolled up
            with its pull request's state. status is the lifecycle alone.
          enum:
            - running
            - awaiting_input
            - approved
            - awaiting_ci
            - merged
            - unmerged
            - errored
            - archived
          type: string
        parent_task_id:
          format: uuid
          type:
            - string
            - 'null'
        pinned_at:
          format: date-time
          type:
            - string
            - 'null'
        plan_progress:
          $ref: '#/components/schemas/TaskPlanProgress'
        post_pr_demo_video:
          type: boolean
        post_pr_screenshots:
          type: boolean
        pr_review_mode:
          enum:
            - review_only
            - fix_on_request
            - apply_fixes
          type:
            - string
            - 'null'
        pr_review_summary:
          anyOf:
            - $ref: '#/components/schemas/TaskPRReviewSummary'
            - type: 'null'
        primary_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskPullRequest'
            - type: 'null'
        project:
          $ref: '#/components/schemas/TaskProjectContext'
        project_id:
          format: uuid
          type: string
        pull_requests:
          items:
            $ref: '#/components/schemas/TaskPullRequest'
          type: array
        reasoning_effort:
          enum:
            - ultra
            - max
            - xhigh
            - high
            - medium
            - low
            - ultrathink
            - ultracode
          type:
            - string
            - 'null'
        review_subject_pull_request:
          anyOf:
            - $ref: '#/components/schemas/TaskReviewSubjectPullRequest'
            - type: 'null'
        run_context:
          anyOf:
            - $ref: '#/components/schemas/TaskRunContext'
            - type: 'null'
        runs_on:
          anyOf:
            - $ref: '#/components/schemas/TaskRunsOn'
            - type: 'null'
        runtime_timing:
          $ref: '#/components/schemas/TaskRuntimeTiming'
        save_to_github:
          $ref: '#/components/schemas/TaskSaveToGitHub'
        source:
          $ref: '#/components/schemas/TaskSource'
        source_metadata:
          additionalProperties: true
          properties: {}
          type:
            - object
            - 'null'
        status:
          enum:
            - queued
          type: string
        updated_at:
          format: date-time
          type: string
        url:
          description: The task's page in the Aether web app.
          format: uri
          minLength: 1
          type: string
        usage:
          $ref: '#/components/schemas/TaskUsage'
        user_id:
          format: uuid
          type:
            - string
            - 'null'
        work_tree:
          $ref: '#/components/schemas/TaskWorkTree'
      required:
        - id
        - url
        - org_id
        - project_id
        - project
        - parent_task_id
        - user_id
        - name
        - agent_type
        - model
        - interaction_mode
        - runs_on
        - auto_fix_ci
        - auto_fix_pr_comments
        - auto_rebase
        - post_pr_screenshots
        - post_pr_demo_video
        - merge_when_ready
        - status
        - outcome
        - pull_requests
        - primary_pull_request
        - review_subject_pull_request
        - pr_review_summary
        - campaign
        - creator_reauth_required
        - usage
        - runtime_timing
        - hardware
        - source
        - created_at
        - updated_at
        - binding
        - save_to_github
        - latest_message_revision
        - reasoning_effort
        - archived_at
        - pinned_at
        - head_branch
        - pr_review_mode
        - source_metadata
        - latest_status_message
        - conversation
        - run_context
      type: object
    AgentType:
      description: >-
        The agent harness that runs a task, a profile or a connection:
        claude-code or claude_code is Claude Code, codex is Codex, opencode is
        OpenCode.
      enum:
        - codex
        - claude-code
        - opencode
        - claude_code
      type: string
    TaskAwaitingInputPayload:
      discriminator:
        mapping:
          message: '#/components/schemas/TaskAwaitingInputMessage'
          plan: '#/components/schemas/TaskAwaitingInputPlan'
          questions: '#/components/schemas/TaskAwaitingInputQuestions'
        propertyName: kind
      oneOf:
        - $ref: '#/components/schemas/TaskAwaitingInputMessage'
        - $ref: '#/components/schemas/TaskAwaitingInputQuestions'
        - $ref: '#/components/schemas/TaskAwaitingInputPlan'
    TaskRepositoryBinding:
      additionalProperties: false
      properties:
        base_branch:
          minLength: 1
          pattern: \S
          type: string
        bound_at:
          format: date-time
          type: string
      required:
        - base_branch
        - bound_at
      type: object
    TaskCampaignSummary:
      additionalProperties: false
      properties:
        active_descendants:
          format: int64
          minimum: 0
          type: integer
        attention:
          enum:
            - error
            - waiting
          type:
            - string
            - 'null'
        descendants_merged:
          format: int64
          minimum: 0
          type: integer
        descendants_total:
          format: int64
          minimum: 1
          type: integer
      required:
        - descendants_total
        - descendants_merged
        - active_descendants
        - attention
      type: object
    TaskConversation:
      additionalProperties: false
      properties:
        active_turn_id:
          format: uuid
          not:
            enum:
              - 00000000-0000-0000-0000-000000000000
          type:
            - string
            - 'null'
        processing_started_at:
          format: date-time
          type:
            - string
            - 'null'
      required:
        - active_turn_id
        - processing_started_at
      type: object
    HardwareConfig:
      additionalProperties: false
      properties:
        cpu_kind:
          enum:
            - shared
            - performance
          type: string
        cpus:
          format: int64
          maximum: 16
          minimum: 1
          type: integer
        gpu_kind:
          enum:
            - a10
            - l40s
            - a100-40gb
            - a100-80gb
          type:
            - string
            - 'null'
        memory_mb:
          format: int64
          maximum: 32768
          minimum: 256
          type: integer
        volume_size_gb:
          format: int64
          maximum: 500
          minimum: 1
          type: integer
      required:
        - cpu_kind
        - cpus
        - memory_mb
        - volume_size_gb
        - gpu_kind
      type: object
    TaskPlanProgress:
      additionalProperties: false
      properties:
        completed:
          format: int64
          minimum: 0
          type: integer
        current_step:
          minLength: 1
          pattern: \S
          type: string
        total:
          format: int64
          minimum: 1
          type: integer
      required:
        - completed
        - total
      type: object
    TaskPRReviewSummary:
      additionalProperties: false
      properties:
        comment_count:
          format: int64
          minimum: 0
          type:
            - integer
            - 'null'
        pull_request_id:
          format: uuid
          type: string
        review_task_id:
          format: uuid
          type: string
        run_count:
          format: int64
          minimum: 1
          type: integer
        run_status:
          $ref: '#/components/schemas/ReviewRunStatus'
        severity_counts:
          $ref: '#/components/schemas/PRReviewSeverityCounts'
        summary_severity:
          $ref: '#/components/schemas/PRReviewSummarySeverity'
        verdict:
          $ref: '#/components/schemas/PRReviewSummaryVerdict'
      required:
        - review_task_id
        - pull_request_id
        - run_status
        - comment_count
        - run_count
      type: object
    TaskPullRequest:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        base_branch:
          description: >-
            The branch the pull request targets on GitHub now, which may differ
            from the task's base after a retarget. Absent while it is unknown:
            before the pull request is synced from GitHub, or for one recorded
            before the mirror with its state alone. Never present without state.
          minLength: 1
          type: string
        branch_name:
          minLength: 1
          type: string
        checks_failed:
          format: int64
          minimum: 0
          type: integer
        checks_passed:
          format: int64
          minimum: 0
          type: integer
        checks_total:
          format: int64
          minimum: 0
          type: integer
        ci_status:
          enum:
            - pending
            - passed
            - failed
          type: string
        commits:
          format: int64
          minimum: 0
          type: integer
        deletions:
          format: int64
          minimum: 0
          type: integer
        html_url:
          minLength: 1
          type: string
        lines_changed:
          format: int64
          minimum: 0
          type: integer
        merge_when_ready_blocker:
          additionalProperties: false
          description: >-
            Present on an open pull request whose task opts into
            merge_when_ready while the latest evaluation found its head blocked:
            blocker names the first unmet condition at head_sha, first found
            there at observed_at. no_aether_review_in_org and
            base_not_authorized clear only when a person acts (turn on the
            project's review of its tasks' pull requests, or retarget the pull
            request to the task's branch), and the pull request carries a line
            saying so; every other blocker clears as CI, Aether Review, the task
            or GitHub moves on.
          properties:
            blocker:
              enum:
                - not_ready_for_merge
                - base_not_authorized
                - no_external_ci
                - no_aether_review_in_org
                - not_approved_at_head
                - unresolved_review_threads
                - task_running
                - not_cleanly_mergeable
              type: string
            head_sha:
              maxLength: 40
              minLength: 40
              pattern: ^[0-9a-f]{40}$
              type: string
            observed_at:
              format: date-time
              type: string
          required:
            - blocker
            - head_sha
            - observed_at
          type: object
        merged_at:
          format: date-time
          type: string
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pull_request_id:
          format: uuid
          type: string
        state:
          enum:
            - open
            - closed
            - merged
          type: string
        title:
          type: string
      required:
        - pull_request_id
        - pr_number
        - html_url
        - title
        - checks_passed
        - checks_failed
        - checks_total
        - commits
        - lines_changed
        - additions
        - deletions
      type: object
    TaskProjectContext:
      discriminator:
        mapping:
          active: '#/components/schemas/TaskActiveProject'
          archived: '#/components/schemas/TaskArchivedProject'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskActiveProject'
        - $ref: '#/components/schemas/TaskArchivedProject'
    TaskReviewSubjectPullRequest:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        base_branch:
          description: >-
            The branch the pull request targets on GitHub now, which may differ
            from the task's base after a retarget. Absent while it is unknown:
            before the pull request is synced from GitHub, or for one recorded
            before the mirror with its state alone. Never present without state.
          minLength: 1
          type: string
        branch_name:
          minLength: 1
          type: string
        checks_failed:
          format: int64
          minimum: 0
          type: integer
        checks_passed:
          format: int64
          minimum: 0
          type: integer
        checks_total:
          format: int64
          minimum: 0
          type: integer
        ci_status:
          enum:
            - pending
            - passed
            - failed
          type: string
        commits:
          format: int64
          minimum: 0
          type: integer
        deletions:
          format: int64
          minimum: 0
          type: integer
        html_url:
          minLength: 1
          type: string
        lines_changed:
          format: int64
          minimum: 0
          type: integer
        merge_when_ready_blocker:
          additionalProperties: false
          description: >-
            Present on an open pull request whose task opts into
            merge_when_ready while the latest evaluation found its head blocked:
            blocker names the first unmet condition at head_sha, first found
            there at observed_at. no_aether_review_in_org and
            base_not_authorized clear only when a person acts (turn on the
            project's review of its tasks' pull requests, or retarget the pull
            request to the task's branch), and the pull request carries a line
            saying so; every other blocker clears as CI, Aether Review, the task
            or GitHub moves on.
          properties:
            blocker:
              enum:
                - not_ready_for_merge
                - base_not_authorized
                - no_external_ci
                - no_aether_review_in_org
                - not_approved_at_head
                - unresolved_review_threads
                - task_running
                - not_cleanly_mergeable
              type: string
            head_sha:
              maxLength: 40
              minLength: 40
              pattern: ^[0-9a-f]{40}$
              type: string
            observed_at:
              format: date-time
              type: string
          required:
            - blocker
            - head_sha
            - observed_at
          type: object
        merged_at:
          format: date-time
          type: string
        origin_task_id:
          format: uuid
          type: string
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pull_request_id:
          format: uuid
          type: string
        review_check_conclusion:
          enum:
            - success
            - failure
            - cancelled
            - neutral
          type: string
        review_trigger:
          enum:
            - automatic
            - comment_command
            - manual
          type: string
        state:
          enum:
            - open
            - closed
            - merged
          type: string
        title:
          type: string
      required:
        - pull_request_id
        - pr_number
        - html_url
        - title
        - checks_passed
        - checks_failed
        - checks_total
        - commits
        - lines_changed
        - additions
        - deletions
        - review_trigger
      type: object
    TaskRunContext:
      additionalProperties: false
      properties:
        started_at:
          format: date-time
          type: string
        workspace_id:
          format: uuid
          type: string
      required:
        - workspace_id
        - started_at
      type: object
    TaskRunsOn:
      discriminator:
        mapping:
          aether: '#/components/schemas/TaskRunsOnAether'
          disconnected: '#/components/schemas/TaskRunsOnDisconnected'
          stored: '#/components/schemas/TaskRunsOnStored'
        propertyName: runs_on
      oneOf:
        - $ref: '#/components/schemas/TaskRunsOnAether'
        - $ref: '#/components/schemas/TaskRunsOnStored'
        - $ref: '#/components/schemas/TaskRunsOnDisconnected'
    TaskRuntimeTiming:
      discriminator:
        mapping:
          active: '#/components/schemas/TaskRuntimeTimingActive'
          inactive: '#/components/schemas/TaskRuntimeTimingInactive'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskRuntimeTimingInactive'
        - $ref: '#/components/schemas/TaskRuntimeTimingActive'
    TaskSaveToGitHub:
      enum:
        - offered
        - saved
        - not_started
        - agent_child
        - bound_at_creation
      type: string
    TaskSource:
      enum:
        - manual
        - web
        - mobile
        - cli
        - ci
        - sentry
        - linear
        - slack
        - automation
        - pr_review
        - teleport
        - agent
        - delegation
      type: string
    TaskUsage:
      additionalProperties: false
      properties:
        tokens_in:
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        tokens_out:
          format: int64
          maximum: 9007199254740991
          minimum: 0
          type: integer
        vm_uptime_seconds:
          format: int64
          minimum: 0
          type: integer
      required:
        - tokens_in
        - tokens_out
        - vm_uptime_seconds
      type: object
    TaskWorkTree:
      additionalProperties: false
      description: >-
        Where a task backed by a work tree lives: a folder on one of its
        creator's computers (by its name, and whether it is reachable), the kind
        of work tree (checkout, the person's own, which only they see;
        aether_made, one Aether made, which the organization sees), the branch
        it was last seen on, null while none is known, and, for a work tree
        Aether made, the task's start, null for a checkout.
      properties:
        branch:
          maxLength: 255
          minLength: 1
          pattern: "^[^\\0- \\x7f-\\xa0  - \L\P  　]+$"
          type:
            - string
            - 'null'
          x-aether-string-length-unit: unicode-code-point
        computer_id:
          format: uuid
          type: string
        computer_name:
          description: The computer's name, which every reader of the task sees.
          maxLength: 100
          minLength: 1
          type: string
          x-aether-string-length-unit: unicode-code-point
        computer_reachable:
          description: >-
            Whether the computer's machine bridge is connected. While it is not,
            the computer sleeps or is offline and a task Aether started there is
            paused: Aether can neither send it messages, stops or answers nor
            learn what it does until the computer is back. A run already under
            way on an awake computer carries on there.
          type: boolean
        folder:
          maxLength: 4096
          minLength: 1
          pattern: ^/
          type: string
          x-aether-string-length-unit: unicode-code-point
        kind:
          enum:
            - checkout
            - aether_made
          type: string
        start:
          anyOf:
            - $ref: '#/components/schemas/TaskWorkTreeStart'
            - type: 'null'
      required:
        - computer_id
        - computer_name
        - computer_reachable
        - folder
        - kind
        - branch
        - start
      type: object
    TaskFailure:
      additionalProperties: false
      properties:
        org_id:
          format: uuid
          type: string
        reason:
          $ref: '#/components/schemas/TaskFailureReason'
      required:
        - reason
        - org_id
      type: object
    TaskAwaitingInputMessage:
      additionalProperties: false
      properties:
        idle_compaction:
          $ref: '#/components/schemas/TaskIdleCompaction'
        kind:
          enum:
            - message
          type: string
      required:
        - kind
      type: object
    TaskAwaitingInputPlan:
      additionalProperties: false
      properties:
        input:
          $ref: '#/components/schemas/ProposePlanToolInput'
        kind:
          enum:
            - plan
          type: string
        tool_id:
          minLength: 1
          type: string
      required:
        - kind
        - tool_id
        - input
      type: object
    TaskAwaitingInputQuestions:
      additionalProperties: false
      properties:
        input:
          $ref: '#/components/schemas/AskUserToolInput'
        kind:
          enum:
            - questions
          type: string
        tool_id:
          minLength: 1
          type: string
      required:
        - kind
        - tool_id
        - input
      type: object
    ReviewRunStatus:
      enum:
        - reviewing
        - completed
        - failed
        - cancelled
        - superseded
        - archived
      type: string
    PRReviewSeverityCounts:
      additionalProperties: false
      properties:
        confirmed:
          format: int64
          minimum: 0
          type: integer
        nit:
          format: int64
          minimum: 0
          type: integer
        p1:
          format: int64
          minimum: 0
          type: integer
        p2:
          format: int64
          minimum: 0
          type: integer
        question:
          format: int64
          minimum: 0
          type: integer
      required:
        - p1
        - p2
        - nit
        - question
        - confirmed
      type: object
    PRReviewSummarySeverity:
      enum:
        - p1
        - p2
        - nit
      type: string
    PRReviewSummaryVerdict:
      enum:
        - approve
        - request_changes
        - comment
        - dismissed
        - superseded
      type: string
    TaskActiveProject:
      additionalProperties: false
      properties:
        name:
          minLength: 1
          pattern: \S
          type: string
        repository:
          anyOf:
            - $ref: '#/components/schemas/ProjectRepository'
            - type: 'null'
        state:
          enum:
            - active
          type: string
      required:
        - state
        - name
        - repository
      type: object
    TaskArchivedProject:
      additionalProperties: false
      properties:
        state:
          enum:
            - archived
          type: string
      required:
        - state
      type: object
    TaskRunsOnAether:
      additionalProperties: false
      properties:
        runs_on:
          enum:
            - aether
          type: string
      required:
        - runs_on
      type: object
    TaskRunsOnDisconnected:
      additionalProperties: false
      properties:
        runs_on:
          enum:
            - disconnected
          type: string
      required:
        - runs_on
      type: object
    TaskRunsOnStored:
      additionalProperties: false
      properties:
        id:
          format: uuid
          type: string
        name:
          minLength: 1
          type: string
        option:
          enum:
            - claude_plan
            - anthropic_api_key
            - chatgpt_plan
            - openai_api_key
            - openrouter_api_key
            - opencode_auth_file
          type: string
        runs_on:
          enum:
            - stored
          type: string
      required:
        - runs_on
        - id
        - option
        - name
      type: object
    TaskRuntimeTimingActive:
      additionalProperties: false
      properties:
        active_started_at:
          format: date-time
          type: string
        state:
          enum:
            - active
          type: string
      required:
        - state
        - active_started_at
      type: object
    TaskRuntimeTimingInactive:
      additionalProperties: false
      properties:
        state:
          enum:
            - inactive
          type: string
      required:
        - state
      type: object
    TaskWorkTreeStart:
      description: The start of a task Aether started on one of its creator's computers.
      discriminator:
        mapping:
          failed: '#/components/schemas/TaskWorkTreeStartFailed'
          started: '#/components/schemas/TaskWorkTreeStarted'
          starting: '#/components/schemas/TaskWorkTreeStarting'
          waiting: '#/components/schemas/TaskWorkTreeStartWaiting'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/TaskWorkTreeStarting'
        - $ref: '#/components/schemas/TaskWorkTreeStartWaiting'
        - $ref: '#/components/schemas/TaskWorkTreeStarted'
        - $ref: '#/components/schemas/TaskWorkTreeStartFailed'
    TaskFailureReason:
      enum:
        - inference_balance_empty
        - runtime_credits_exhausted
      type: string
    TaskIdleCompaction:
      additionalProperties: false
      description: >-
        Present while Aether will compact the waiting task's idle conversation:
        at fires_at, just before the prompt cache of the turn that left it idle
        at idle_since expires, it replaces the context_tokens-token conversation
        with a summary. Absent when none is scheduled, a newer turn superseded
        it, the person kept the full context (keepTaskFullContext), or it fired
        or was skipped.
      properties:
        context_tokens:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        fires_at:
          format: date-time
          type: string
        idle_since:
          format: date-time
          type: string
      required:
        - idle_since
        - fires_at
        - context_tokens
      type: object
    ProposePlanToolInput:
      additionalProperties: true
      properties:
        plan:
          type: string
        summary:
          type: string
      required:
        - summary
        - plan
      type: object
    AskUserToolInput:
      additionalProperties: true
      properties:
        questions:
          items:
            $ref: '#/components/schemas/AskUserQuestion'
          minItems: 1
          type: array
      required:
        - questions
      type: object
    ProjectRepository:
      additionalProperties: false
      description: >-
        A project's one linked GitHub repository: its identity and the state of
        the link that reaches it.
      properties:
        default_branch:
          minLength: 1
          pattern: \S
          type: string
        github_repo_id:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        link:
          $ref: '#/components/schemas/ProjectRepositoryLink'
        name:
          minLength: 1
          pattern: \S
          type: string
        owner:
          minLength: 1
          pattern: \S
          type: string
        url:
          minLength: 1
          pattern: \S
          type: string
      required:
        - url
        - owner
        - name
        - github_repo_id
        - default_branch
        - link
      type: object
    TaskWorkTreeStartFailed:
      additionalProperties: false
      description: >-
        The computer could not make the work tree: checkout_missing when the
        checkout Aether named is no checkout of the repository there;
        base_branch_unreachable when git could not fetch the base branch, or a
        fork's own branch, from origin; work_tree_failed when git could not add
        the work tree; session_unplaced when the computer could not place a
        fork's session files.
      properties:
        chat_id:
          description: >-
            The task's main chat: the Claude Code session the computer runs the
            task's turns in, whose runs say where each turn stands.
          format: uuid
          type: string
        reason:
          enum:
            - checkout_missing
            - base_branch_unreachable
            - work_tree_failed
            - session_unplaced
          type: string
        state:
          enum:
            - failed
          type: string
      required:
        - state
        - chat_id
        - reason
      type: object
    TaskWorkTreeStarted:
      additionalProperties: false
      description: >-
        The work tree is made: the main chat runs the task's turns, the first
        with its prompt, each as a run of the chat, which waits while the
        computer runs as many agents as it lets Aether start at once.
      properties:
        chat_id:
          description: >-
            The task's main chat: the Claude Code session the computer runs the
            task's turns in, whose runs say where each turn stands.
          format: uuid
          type: string
        state:
          enum:
            - started
          type: string
      required:
        - state
        - chat_id
      type: object
    TaskWorkTreeStarting:
      additionalProperties: false
      description: >-
        The computer makes the task's work tree, then runs its first turn; while
        the computer is not reachable, the start is paused.
      properties:
        chat_id:
          description: >-
            The task's main chat: the Claude Code session the computer runs the
            task's turns in, whose runs say where each turn stands.
          format: uuid
          type: string
        state:
          enum:
            - starting
          type: string
      required:
        - state
        - chat_id
      type: object
    TaskWorkTreeStartWaiting:
      additionalProperties: false
      description: >-
        The start waits: agents_off while the computer does not let Aether start
        agents (only the computer turns that on: aether computer agents on, in a
        terminal there).
      properties:
        chat_id:
          description: >-
            The task's main chat: the Claude Code session the computer runs the
            task's turns in, whose runs say where each turn stands.
          format: uuid
          type: string
        reason:
          enum:
            - agents_off
          type: string
        state:
          enum:
            - waiting
          type: string
      required:
        - state
        - chat_id
        - reason
      type: object
    AskUserQuestion:
      additionalProperties: false
      properties:
        header:
          type: string
        id:
          type: string
        multi_select:
          type: boolean
        options:
          items:
            $ref: '#/components/schemas/AskUserQuestionOption'
          type: array
        question:
          minLength: 1
          pattern: \S
          type: string
      required:
        - question
        - options
      type: object
    ProjectRepositoryLink:
      description: >-
        The link state: connected through the installation that reaches the
        repository, or disconnected while the repository identity is kept.
      discriminator:
        mapping:
          connected: '#/components/schemas/ProjectRepositoryLinkConnected'
          disconnected: '#/components/schemas/ProjectRepositoryLinkDisconnected'
        propertyName: state
      oneOf:
        - $ref: '#/components/schemas/ProjectRepositoryLinkConnected'
        - $ref: '#/components/schemas/ProjectRepositoryLinkDisconnected'
    AskUserQuestionOption:
      additionalProperties: false
      properties:
        description:
          type: string
        label:
          minLength: 1
          pattern: \S
          type: string
        preview:
          type: string
      required:
        - label
      type: object
    ProjectRepositoryLinkConnected:
      additionalProperties: false
      properties:
        installation_id:
          format: int64
          maximum: 9007199254740991
          minimum: 1
          type: integer
        state:
          enum:
            - connected
          type: string
      required:
        - state
        - installation_id
      type: object
    ProjectRepositoryLinkDisconnected:
      additionalProperties: false
      properties:
        state:
          enum:
            - disconnected
          type: string
      required:
        - state
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.