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

# Drive a Session with a client event

> Appends one client event to the Session, which is how work is made to happen: `user.message` starts a turn or steers a running one, `user.interrupt` ends the current turn without making the Session terminal, `user.custom_tool_result` returns the result of a parked Custom tool by its `tool_use_id`, `user.question_answer` answers one active `agent.question`, `user.define_outcome` attaches a rubric-graded definition of done, and `system.message` appends privileged system context that applies to the accompanying turn and every later one. System context is governed: it is control-plane authority, so a `runner` credential is refused before the Session is even looked up; it is refused when the Session's admitted model route cannot carry a mid-conversation system turn (an Anthropic route takes `system` as a top-level parameter only, so there is no position for one); it never replaces the agent definition's system prompt, which stays frozen; and a Session carries at most 16 of them, because unlike conversation this context is never condensed away and something has to bound it. It appends without starting a turn — a Run already in flight keeps its frozen spec, and the next one reads the instruction. A `user.message` `content` is a plain string or an array of typed content blocks (the CMA shape, adopted as-is): text blocks, image blocks with `base64`/`url`/`file` sources (png/jpeg/gif/webp), and document blocks with `base64` (PDF)/`text`/`url`/`file` sources plus optional `title` and `context`. Content blocks are model-visible input, never a second mount system. Inline images, PDFs, and text documents render at the trusted model gateway in the exact provider dialect and typed user history survives later Runs. A message carries at most 32 blocks and inline sources are byte-capped per block and per message (1 MiB). `url` sources are fetched platform-side only where the operator has configured a content-fetch allowlist: https only, to an allowlisted public DNS host, carrying no userinfo and no explicit port, following no redirect, and refused with a named reason where a deployment configures none; `file` sources are admitted by snapshotting the referenced File's bytes into the message's own inline content at admission (plan 755), so the stored event binds to the snapshot — deleting the original File never affects the stored event, its later-Turn replay, or the stream — and a File whose inline snapshot exceeds the byte caps is refused with a named reason. A new idempotency receipt binds the pre-snapshot authored event to the first admitted snapshot: an exact `Idempotency-Key` retry returns that stored event before a second File read or URL fetch, including after the original File is deleted, while changing the authored source under the same key conflicts before source access. Receipts written before this version retain compatibility by rebuilding the admitted event before their legacy comparison. A ZDR Workspace refuses block content entirely, exactly as it refuses attachments; and a model wire dialect that cannot carry a block type refuses at admission as `runtime.harness_incompatible`, never as a provider-shaped runtime error. A block-carrying message sent while a Run is active always begins the next Run rather than being flattened into the native mid-run channel. Every payload carries `authored_by` and `caused_by` attribution; an `Idempotency-Key` retry returns the first stored event instead of starting a second turn. The response is the stored event envelope — read settlement from the ledger or the stream, never from response timing. A command sent in the wrong state, or answering the wrong tool call or Question, is refused as an invalid transition without advancing the Session.

Checkfu support posture: alpha; hosted. Required evidence journey: session-turn. Deployment-specific readiness and the latest proven release are available from GET /v1/support/capabilities.



## OpenAPI

````yaml /openapi.json post /v1/sessions/{id}/events
openapi: 3.1.0
info:
  title: Checkfu API
  version: '2026-08-27'
  description: >-
    Authentication is declared per operation: API-key, runtime, or connector
    bearer; Automation signature; or credential-free pairing redemption. Every
    general Checkfu REST request requires the dated `Checkfu-Version` header
    (one of: 2026-08-27); the three MCP JSON-RPC transports use
    `MCP-Protocol-Version`, A2A uses `A2A-Version`, and the provider OAuth
    callback carries neither Checkfu header. API keys resolve one Workspace
    without a request selector; authenticated responses identify it with
    `Checkfu-Workspace-Id`.
servers:
  - url: https://api.checkfu.com
security:
  - bearerAuth: []
tags:
  - name: organizations
  - name: sourceRepositories
  - name: tenants
  - name: workspaces
  - name: principals
  - name: principalGroups
  - name: principalAccessCredentials
  - name: apiKeys
  - name: agents
  - name: harnesses
  - name: harnessRuntime
  - name: sandboxProfiles
  - name: computerProfiles
  - name: permissionAssignments
  - name: actionPolicies
  - name: files
  - name: memoryStores
  - name: dreams
  - name: modelCredentials
  - name: modelRoutingProfiles
  - name: blueprintInstallations
  - name: toolSources
  - name: skills
  - name: skillSources
  - name: agentSources
  - name: skillProposals
  - name: instructionProposals
  - name: catalog
  - name: concepts
  - name: support
  - name: connections
  - name: connectionVaults
  - name: connectionAssignments
  - name: connectedRuntimes
  - name: projects
  - name: collaboration
  - name: automationGraphs
  - name: automations
  - name: actionApprovals
  - name: standingApprovals
  - name: usage
  - name: models
  - name: outcomes
  - name: budgets
  - name: billing
  - name: sessionTemplates
  - name: sessions
  - name: audit
  - name: sessionExports
  - name: runs
  - name: runnerPools
  - name: transcripts
  - name: sessionSelection
  - name: sessionWatches
  - name: webhookEndpoints
  - name: sessionClient
  - name: integrationGateway
  - name: agentDeployments
  - name: workEnvironments
  - name: computers
  - name: computerScreens
  - name: computerBrowserObservations
  - name: computerBrowserActions
  - name: environments
  - name: vaults
  - name: apiMcp
  - name: a2a
paths:
  /v1/sessions/{id}/events:
    post:
      tags:
        - sessions
      summary: Drive a Session with a client event
      description: >-
        Appends one client event to the Session, which is how work is made to
        happen: `user.message` starts a turn or steers a running one,
        `user.interrupt` ends the current turn without making the Session
        terminal, `user.custom_tool_result` returns the result of a parked
        Custom tool by its `tool_use_id`, `user.question_answer` answers one
        active `agent.question`, `user.define_outcome` attaches a rubric-graded
        definition of done, and `system.message` appends privileged system
        context that applies to the accompanying turn and every later one.
        System context is governed: it is control-plane authority, so a `runner`
        credential is refused before the Session is even looked up; it is
        refused when the Session's admitted model route cannot carry a
        mid-conversation system turn (an Anthropic route takes `system` as a
        top-level parameter only, so there is no position for one); it never
        replaces the agent definition's system prompt, which stays frozen; and a
        Session carries at most 16 of them, because unlike conversation this
        context is never condensed away and something has to bound it. It
        appends without starting a turn — a Run already in flight keeps its
        frozen spec, and the next one reads the instruction. A `user.message`
        `content` is a plain string or an array of typed content blocks (the CMA
        shape, adopted as-is): text blocks, image blocks with
        `base64`/`url`/`file` sources (png/jpeg/gif/webp), and document blocks
        with `base64` (PDF)/`text`/`url`/`file` sources plus optional `title`
        and `context`. Content blocks are model-visible input, never a second
        mount system. Inline images, PDFs, and text documents render at the
        trusted model gateway in the exact provider dialect and typed user
        history survives later Runs. A message carries at most 32 blocks and
        inline sources are byte-capped per block and per message (1 MiB). `url`
        sources are fetched platform-side only where the operator has configured
        a content-fetch allowlist: https only, to an allowlisted public DNS
        host, carrying no userinfo and no explicit port, following no redirect,
        and refused with a named reason where a deployment configures none;
        `file` sources are admitted by snapshotting the referenced File's bytes
        into the message's own inline content at admission (plan 755), so the
        stored event binds to the snapshot — deleting the original File never
        affects the stored event, its later-Turn replay, or the stream — and a
        File whose inline snapshot exceeds the byte caps is refused with a named
        reason. A new idempotency receipt binds the pre-snapshot authored event
        to the first admitted snapshot: an exact `Idempotency-Key` retry returns
        that stored event before a second File read or URL fetch, including
        after the original File is deleted, while changing the authored source
        under the same key conflicts before source access. Receipts written
        before this version retain compatibility by rebuilding the admitted
        event before their legacy comparison. A ZDR Workspace refuses block
        content entirely, exactly as it refuses attachments; and a model wire
        dialect that cannot carry a block type refuses at admission as
        `runtime.harness_incompatible`, never as a provider-shaped runtime
        error. A block-carrying message sent while a Run is active always begins
        the next Run rather than being flattened into the native mid-run
        channel. Every payload carries `authored_by` and `caused_by`
        attribution; an `Idempotency-Key` retry returns the first stored event
        instead of starting a second turn. The response is the stored event
        envelope — read settlement from the ledger or the stream, never from
        response timing. A command sent in the wrong state, or answering the
        wrong tool call or Question, is refused as an invalid transition without
        advancing the Session.


        Checkfu support posture: alpha; hosted. Required evidence journey:
        session-turn. Deployment-specific readiness and the latest proven
        release are available from GET /v1/support/capabilities.
      operationId: sessions.driveSession
      parameters:
        - name: id
          in: path
          schema:
            $ref: '#/components/schemas/SessionId'
          required: true
        - name: checkfu-version
          in: header
          schema:
            type: string
            enum:
              - '2026-08-27'
          required: true
        - name: idempotency-key
          in: header
          schema:
            type: string
            allOf:
              - maxLength: 255
          required: false
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/Objects_170'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - system.message
                    payload:
                      type: object
                      properties:
                        content:
                          type: string
                          allOf:
                            - minLength: 1
                            - maxLength: 8192
                        authored_by:
                          $ref: '#/components/schemas/PrincipalId'
                        caused_by:
                          $ref: '#/components/schemas/Objects_171'
                        surface_scope_id:
                          $ref: '#/components/schemas/SurfaceScopeId'
                      required:
                        - content
                        - authored_by
                        - caused_by
                      additionalProperties: false
                  required:
                    - type
                    - payload
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - user.interrupt
                    payload:
                      type: object
                      properties:
                        target_event:
                          $ref: '#/components/schemas/EventId'
                        session_thread_id:
                          $ref: '#/components/schemas/SessionThreadId'
                        mode:
                          type: string
                          enum:
                            - cooperative
                        authored_by:
                          $ref: '#/components/schemas/PrincipalId'
                        caused_by:
                          $ref: '#/components/schemas/Objects_171'
                        surface_scope_id:
                          $ref: '#/components/schemas/SurfaceScopeId'
                      required:
                        - authored_by
                        - caused_by
                      additionalProperties: false
                  required:
                    - type
                    - payload
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - user.custom_tool_result
                    payload:
                      type: object
                      properties:
                        tool_use_id:
                          type: string
                        result:
                          $ref: '#/components/schemas/JsonValue'
                        session_thread_id:
                          $ref: '#/components/schemas/SessionThreadId'
                        authored_by:
                          $ref: '#/components/schemas/PrincipalId'
                        caused_by:
                          $ref: '#/components/schemas/Objects_171'
                        surface_scope_id:
                          $ref: '#/components/schemas/SurfaceScopeId'
                      required:
                        - tool_use_id
                        - result
                        - authored_by
                        - caused_by
                      additionalProperties: false
                  required:
                    - type
                    - payload
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - user.tool_confirmation
                    payload:
                      $ref: '#/components/schemas/ApiUserToolConfirmationPayload'
                  required:
                    - type
                    - payload
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - user.question_answer
                    payload:
                      type: object
                      properties:
                        question:
                          $ref: '#/components/schemas/QuestionId'
                        answers:
                          $ref: '#/components/schemas/ManagedQuestionAnswers'
                        prompt_integrity_disposition:
                          $ref: '#/components/schemas/Union_296'
                        authored_by:
                          $ref: '#/components/schemas/PrincipalId'
                        caused_by:
                          $ref: '#/components/schemas/Objects_171'
                        surface_scope_id:
                          $ref: '#/components/schemas/SurfaceScopeId'
                      required:
                        - question
                        - answers
                        - authored_by
                        - caused_by
                      additionalProperties: false
                  required:
                    - type
                    - payload
                  additionalProperties: false
                - $ref: '#/components/schemas/Objects_172'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Union_324'
          headers:
            checkfu-workspace-id:
              description: The Workspace resolved from the authenticated bearer credential.
              required: true
              schema:
                $ref: '#/components/schemas/WorkspaceId'
        '400':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionDriveBadRequestError'
        '401':
          description: Typed Checkfu wire error
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - auth.invalid_key
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#auth-invalid-key
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '403':
          description: >-
            The organization, tenant, or workspace backing this key is
            administratively disabled. | Deployment governance or retention
            policy denied the request.
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        properties:
                          type:
                            type: string
                            enum:
                              - auth.disabled_tenancy
                          message:
                            type: string
                          more:
                            type: string
                            enum:
                              - >-
                                https://docs.checkfu.com/reference/errors#auth-disabled-tenancy
                            description: >-
                              Stable public documentation and remedy for this
                              error type.
                        required:
                          - type
                          - message
                          - more
                        additionalProperties: false
                    additionalProperties: false
                  - $ref: '#/components/schemas/PolicyDeniedError'
        '404':
          description: >-
            The requested resource does not exist in the resolved deployment
            boundary.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationNotFoundError'
        '409':
          description: >-
            The request conflicts with the resource's current state. | The
            operation is illegal for the resource's current lifecycle state. |
            An idempotent mutation conflicts with a completed or in-progress
            request for the same key.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationConflictError'
                  - $ref: '#/components/schemas/RuntimeInvalidTransitionError'
                  - $ref: '#/components/schemas/IdempotencyConflictError'
        '422':
          description: >-
            No model candidate satisfies the deployment's routing constraints. |
            The harness does not satisfy the required protocol or capability
            set.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ModelNoEligibleModelError'
                  - $ref: '#/components/schemas/RuntimeHarnessIncompatibleError'
        '429':
          description: Typed Checkfu wire error
          headers:
            retry-after:
              description: >-
                Delay in seconds for rate limits or deployment quotas with a
                known release or UTC reset boundary
              required: false
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - type
                      - message
                      - more
                    properties:
                      type:
                        type: string
                        enum:
                          - budget.exceeded
                      message:
                        type: string
                      more:
                        type: string
                        enum:
                          - >-
                            https://docs.checkfu.com/reference/errors#budget-exceeded
                        description: >-
                          Stable public documentation and remedy for this error
                          type.
                    additionalProperties: false
                additionalProperties: false
        '500':
          description: >-
            An unexpected internal failure occurred; the message contains an
            opaque incident reference.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeInternalError'
        '503':
          description: >-
            No eligible Runner can currently claim the work. | Platform-managed
            model credentials are temporarily unavailable.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/RuntimeRunnerUnavailableError'
                  - $ref: '#/components/schemas/ModelPlatformSupplyUnavailableError'
      security:
        - bearerAuth: []
components:
  schemas:
    SessionId:
      type: string
      allOf:
        - pattern: ^sess_[0-9a-f]{32}$
    Objects_170:
      type: object
      properties:
        type:
          type: string
          enum:
            - user.message
        payload:
          type: object
          properties:
            content:
              $ref: '#/components/schemas/Union_59'
            attachments:
              type: array
              items:
                type: string
            connected_runtime:
              $ref: '#/components/schemas/ConnectedRuntimeId'
            run_delivery:
              type: string
              enum:
                - next_run
            prompt_integrity_disposition:
              $ref: '#/components/schemas/Union_296'
            host_context:
              type: object
              properties:
                source:
                  type: string
                  allOf:
                    - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
                data:
                  $ref: '#/components/schemas/HostContextData'
              required:
                - source
                - data
              additionalProperties: false
            authored_by:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Objects_171'
            surface_scope_id:
              $ref: '#/components/schemas/SurfaceScopeId'
          required:
            - content
            - authored_by
            - caused_by
          additionalProperties: false
      required:
        - type
        - payload
      additionalProperties: false
    PrincipalId:
      type: string
      allOf:
        - pattern: ^prin_[0-9a-f]{32}$
    Objects_171:
      type: object
      properties:
        kind:
          type: string
          enum:
            - api
        request_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 512
      required:
        - kind
      additionalProperties: false
    SurfaceScopeId:
      type: string
      allOf:
        - pattern: ^surf_[0-9a-f]{32}$
    EventId:
      type: string
      allOf:
        - pattern: ^evt_[0-9a-f]{32}$
    SessionThreadId:
      type: string
      allOf:
        - pattern: ^sthr_[0-9a-f]{32}$
    JsonValue:
      description: >-
        A value in the JSON data model: null, boolean, finite number, string,
        array, or object.
    ApiUserToolConfirmationPayload:
      type: object
      properties:
        tool_use_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        result:
          type: string
          enum:
            - allow
            - deny
        deny_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Objects_171'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    QuestionId:
      type: string
      allOf:
        - pattern: ^qst_[0-9a-f]{32}$
    ManagedQuestionAnswers:
      type: array
      items:
        type: object
        properties:
          id:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[A-Za-z0-9_-]+$
          values:
            type: array
            items:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            allOf:
              - minItems: 1
              - maxItems: 32
        required:
          - id
          - values
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 4
    Union_296:
      type: string
      enum:
        - accepted_normalization
        - preserved_original
    Objects_172:
      type: object
      properties:
        type:
          type: string
          enum:
            - user.define_outcome
        payload:
          type: object
          properties:
            description:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 4096
            rubric:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 65536
            max_iterations:
              type: integer
              allOf:
                - minimum: 1
                  maximum: 20
            deliverables:
              $ref: '#/components/schemas/CurrentOutcomeDeliverablesDistinctPaths'
            report:
              type: object
              properties:
                extraction:
                  type: string
                  enum:
                    - json
                    - model
                outputs:
                  $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
              required:
                - extraction
                - outputs
              additionalProperties: false
            verifier:
              type: object
              properties:
                command:
                  type: array
                  items:
                    type: string
                    allOf:
                      - minLength: 1
                  allOf:
                    - minItems: 1
                    - maxItems: 64
                reward_format:
                  type: string
                  enum:
                    - reward_text
                    - reward_json
                pass_threshold:
                  type: number
                  allOf:
                    - minimum: 0
                      maximum: 1
              required:
                - command
                - reward_format
                - pass_threshold
              additionalProperties: false
            authored_by:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Objects_171'
            surface_scope_id:
              $ref: '#/components/schemas/SurfaceScopeId'
          required:
            - description
            - rubric
            - authored_by
            - caused_by
          additionalProperties: false
      required:
        - type
        - payload
      additionalProperties: false
    Union_324:
      anyOf:
        - $ref: '#/components/schemas/Objects_179'
        - $ref: '#/components/schemas/Objects_181'
        - $ref: '#/components/schemas/Objects_183'
        - $ref: '#/components/schemas/Objects_185'
        - $ref: '#/components/schemas/Objects_187'
        - $ref: '#/components/schemas/Objects_189'
        - $ref: '#/components/schemas/Objects_191'
        - $ref: '#/components/schemas/Objects_192'
        - $ref: '#/components/schemas/Objects_193'
        - $ref: '#/components/schemas/Objects_195'
        - $ref: '#/components/schemas/Objects_197'
        - $ref: '#/components/schemas/Objects_199'
        - $ref: '#/components/schemas/Objects_201'
        - $ref: '#/components/schemas/Objects_202'
        - $ref: '#/components/schemas/Objects_205'
        - $ref: '#/components/schemas/Objects_208'
        - $ref: '#/components/schemas/Objects_210'
        - $ref: '#/components/schemas/Objects_212'
        - $ref: '#/components/schemas/Objects_214'
        - $ref: '#/components/schemas/Objects_215'
        - $ref: '#/components/schemas/Objects_217'
        - $ref: '#/components/schemas/Objects_219'
        - $ref: '#/components/schemas/Objects_221'
        - $ref: '#/components/schemas/Objects_223'
        - $ref: '#/components/schemas/Objects_225'
        - $ref: '#/components/schemas/Objects_227'
        - $ref: '#/components/schemas/Objects_229'
        - $ref: '#/components/schemas/Objects_231'
        - $ref: '#/components/schemas/Objects_233'
        - $ref: '#/components/schemas/Objects_235'
        - $ref: '#/components/schemas/Objects_237'
        - $ref: '#/components/schemas/Objects_239'
        - $ref: '#/components/schemas/Objects_241'
        - $ref: '#/components/schemas/Objects_243'
        - $ref: '#/components/schemas/Objects_245'
        - $ref: '#/components/schemas/Objects_247'
        - $ref: '#/components/schemas/Objects_249'
        - $ref: '#/components/schemas/Objects_251'
        - $ref: '#/components/schemas/Objects_253'
        - $ref: '#/components/schemas/Objects_255'
        - $ref: '#/components/schemas/Objects_257'
        - $ref: '#/components/schemas/Objects_259'
        - $ref: '#/components/schemas/Objects_264'
        - $ref: '#/components/schemas/Objects_266'
        - $ref: '#/components/schemas/Objects_268'
        - $ref: '#/components/schemas/Objects_270'
        - $ref: '#/components/schemas/Objects_272'
        - $ref: '#/components/schemas/Objects_274'
        - $ref: '#/components/schemas/Objects_276'
        - $ref: '#/components/schemas/Objects_278'
        - $ref: '#/components/schemas/Objects_280'
        - $ref: '#/components/schemas/Objects_282'
        - $ref: '#/components/schemas/Objects_284'
        - $ref: '#/components/schemas/Objects_286'
        - $ref: '#/components/schemas/Objects_288'
        - $ref: '#/components/schemas/Objects_289'
        - $ref: '#/components/schemas/Objects_291'
        - $ref: '#/components/schemas/Objects_293'
        - $ref: '#/components/schemas/Objects_295'
        - $ref: '#/components/schemas/Objects_296'
        - $ref: '#/components/schemas/Objects_298'
        - $ref: '#/components/schemas/Objects_300'
        - $ref: '#/components/schemas/Objects_303'
        - $ref: '#/components/schemas/Objects_305'
        - $ref: '#/components/schemas/Objects_307'
        - $ref: '#/components/schemas/Objects_309'
        - $ref: '#/components/schemas/Objects_310'
        - $ref: '#/components/schemas/Objects_312'
        - $ref: '#/components/schemas/Objects_314'
        - $ref: '#/components/schemas/Objects_316'
        - $ref: '#/components/schemas/Objects_317'
        - $ref: '#/components/schemas/Objects_319'
        - $ref: '#/components/schemas/Objects_321'
        - $ref: '#/components/schemas/Objects_323'
        - $ref: '#/components/schemas/Objects_325'
        - $ref: '#/components/schemas/Objects_327'
        - $ref: '#/components/schemas/Objects_329'
        - $ref: '#/components/schemas/Objects_331'
        - $ref: '#/components/schemas/Objects_333'
        - $ref: '#/components/schemas/Objects_335'
        - $ref: '#/components/schemas/Objects_337'
        - $ref: '#/components/schemas/Objects_339'
        - $ref: '#/components/schemas/Objects_341'
        - $ref: '#/components/schemas/Objects_343'
        - $ref: '#/components/schemas/Objects_345'
        - $ref: '#/components/schemas/Objects_347'
        - $ref: '#/components/schemas/Objects_349'
        - $ref: '#/components/schemas/Objects_351'
        - $ref: '#/components/schemas/Objects_353'
        - $ref: '#/components/schemas/Objects_355'
        - $ref: '#/components/schemas/Objects_357'
        - $ref: '#/components/schemas/Objects_359'
        - $ref: '#/components/schemas/Objects_361'
        - $ref: '#/components/schemas/Objects_363'
        - $ref: '#/components/schemas/Objects_365'
        - $ref: '#/components/schemas/Objects_369'
        - $ref: '#/components/schemas/Objects_371'
        - $ref: '#/components/schemas/Objects_373'
        - $ref: '#/components/schemas/Objects_375'
        - $ref: '#/components/schemas/Objects_377'
        - $ref: '#/components/schemas/Objects_379'
        - $ref: '#/components/schemas/Objects_381'
        - $ref: '#/components/schemas/Objects_383'
        - $ref: '#/components/schemas/Objects_385'
        - $ref: '#/components/schemas/Objects_387'
        - $ref: '#/components/schemas/Objects_389'
        - $ref: '#/components/schemas/Objects_391'
        - $ref: '#/components/schemas/Objects_393'
        - $ref: '#/components/schemas/Objects_395'
        - $ref: '#/components/schemas/Objects_397'
        - $ref: '#/components/schemas/Objects_399'
        - $ref: '#/components/schemas/Objects_402'
        - $ref: '#/components/schemas/Objects_404'
        - $ref: '#/components/schemas/Objects_406'
        - $ref: '#/components/schemas/Objects_408'
        - $ref: '#/components/schemas/Objects_410'
        - $ref: '#/components/schemas/Objects_412'
        - $ref: '#/components/schemas/Objects_413'
        - $ref: '#/components/schemas/Objects_414'
        - $ref: '#/components/schemas/Objects_416'
        - $ref: '#/components/schemas/Objects_418'
        - $ref: '#/components/schemas/Objects_420'
        - $ref: '#/components/schemas/Objects_422'
        - $ref: '#/components/schemas/Objects_424'
        - $ref: '#/components/schemas/Objects_426'
        - $ref: '#/components/schemas/Objects_428'
        - $ref: '#/components/schemas/Objects_430'
        - $ref: '#/components/schemas/Objects_432'
        - $ref: '#/components/schemas/Objects_434'
        - $ref: '#/components/schemas/Objects_436'
    WorkspaceId:
      type: string
      allOf:
        - pattern: ^wrkspc_[0-9a-f]{32}$
    SessionDriveBadRequestError:
      anyOf:
        - $ref: '#/components/schemas/ValidationMalformedError'
        - $ref: '#/components/schemas/ValidationPromptIntegrityReviewRequiredError'
      description: >-
        A Session drive request was malformed or requires explicit
        prompt-integrity review.
    PolicyDeniedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - policy.denied
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#policy-denied
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Deployment governance or retention policy denied the request.
    ValidationNotFoundError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.not_found
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-not-found
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The requested resource does not exist in the resolved deployment
        boundary.
    ValidationConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.conflict
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request conflicts with the resource's current state.
    RuntimeInvalidTransitionError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.invalid_transition
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-invalid-transition
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The operation is illegal for the resource's current lifecycle state.
    IdempotencyConflictError:
      anyOf:
        - $ref: '#/components/schemas/ValidationIdempotencyConflictError'
        - $ref: '#/components/schemas/ValidationIdempotencyInProgressError'
      description: >-
        An idempotent mutation conflicts with a completed or in-progress request
        for the same key.
    ModelNoEligibleModelError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - model.no_eligible_model
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#model-no-eligible-model
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: No model candidate satisfies the deployment's routing constraints.
    RuntimeHarnessIncompatibleError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.harness_incompatible
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-harness-incompatible
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The harness does not satisfy the required protocol or capability set.
    RuntimeInternalError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.internal
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#runtime-internal
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An unexpected internal failure occurred; the message contains an opaque
        incident reference.
    RuntimeRunnerUnavailableError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.runner_unavailable
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#runtime-runner-unavailable
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: No eligible Runner can currently claim the work.
    ModelPlatformSupplyUnavailableError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - model.platform_supply_unavailable
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#model-platform-supply-unavailable
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: Platform-managed model credentials are temporarily unavailable.
    Union_59:
      anyOf:
        - type: string
        - $ref: '#/components/schemas/MessageContentBlocks'
    ConnectedRuntimeId:
      type: string
      allOf:
        - pattern: ^crt_[0-9a-f]{32}$
    HostContextData:
      type: object
      additionalProperties:
        type: string
        allOf:
          - maxLength: 4096
      allOf:
        - propertyNames:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 128
    CurrentOutcomeDeliverablesDistinctPaths:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^\/\S+$
      allOf:
        - minItems: 1
        - maxItems: 32
        - uniqueItems: true
          description: Outcome deliverables with distinct paths
    OutcomeReportDistinctOutputKeys:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - string
              acceptance:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - one_of
                  values:
                    $ref: >-
                      #/components/schemas/OutcomeReportDistinctStringAcceptanceValues
                required:
                  - kind
                  - values
                additionalProperties: false
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - integer
              acceptance:
                $ref: '#/components/schemas/OutcomeReportNumericAcceptanceRange'
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - number
              acceptance:
                $ref: '#/components/schemas/OutcomeReportNumericAcceptanceRange'
            required:
              - key
              - title
              - type
            additionalProperties: false
          - type: object
            properties:
              key:
                type: string
                allOf:
                  - pattern: ^[a-z][a-z0-9_]{0,49}$
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 200
              description:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
              type:
                type: string
                enum:
                  - boolean
              acceptance:
                type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - equals
                  value:
                    type: boolean
                required:
                  - kind
                  - value
                additionalProperties: false
            required:
              - key
              - title
              - type
            additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 32
    Objects_179:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.message
        payload:
          $ref: '#/components/schemas/Objects_180'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_181:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_329'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.message
        payload:
          $ref: '#/components/schemas/Objects_182'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_183:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.interrupt
        payload:
          $ref: '#/components/schemas/Objects_184'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_185:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_330'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.interrupt
        payload:
          $ref: '#/components/schemas/Objects_186'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_187:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.custom_tool_result
        payload:
          $ref: '#/components/schemas/Objects_188'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_189:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_331'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.custom_tool_result
        payload:
          $ref: '#/components/schemas/Objects_190'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_191:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.tool_confirmation
        payload:
          $ref: '#/components/schemas/UserToolConfirmationPayload'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_192:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_332'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.tool_confirmation
        payload:
          $ref: '#/components/schemas/UserToolConfirmationPayload_1'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_193:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.question_answer
        payload:
          $ref: '#/components/schemas/Objects_194'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_195:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_333'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.question_answer
        payload:
          $ref: '#/components/schemas/Objects_196'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_197:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.define_outcome
        payload:
          $ref: '#/components/schemas/Objects_198'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_199:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_334'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.define_outcome
        payload:
          $ref: '#/components/schemas/Objects_200'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_201:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.message
        payload:
          $ref: '#/components/schemas/Union_336'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_202:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_338'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - message.screened
        payload:
          $ref: '#/components/schemas/Objects_203'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_205:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 41
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - message.screened
        payload:
          $ref: '#/components/schemas/Objects_206'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_208:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.thinking
        payload:
          $ref: '#/components/schemas/Objects_209'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_210:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_339'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.tool_use
        payload:
          $ref: '#/components/schemas/Objects_211'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_212:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 45
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.tool_use
        payload:
          $ref: '#/components/schemas/Objects_213'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_214:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.tool_result
        payload:
          $ref: '#/components/schemas/AgentToolResultPayload'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_215:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.question
        payload:
          $ref: '#/components/schemas/Objects_216'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_217:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.subagent_started
        payload:
          $ref: '#/components/schemas/Objects_218'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_219:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.subagent_completed
        payload:
          $ref: '#/components/schemas/Objects_220'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_221:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_341'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_pending
        payload:
          $ref: '#/components/schemas/Objects_222'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_223:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_342'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_provisioning
        payload:
          $ref: '#/components/schemas/Objects_224'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_225:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_343'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_running
        payload:
          $ref: '#/components/schemas/Objects_226'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_227:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_344'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_reconciling
        payload:
          $ref: '#/components/schemas/Objects_228'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_229:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_345'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_waiting
        payload:
          $ref: '#/components/schemas/Objects_230'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_231:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_346'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_idle
        payload:
          $ref: '#/components/schemas/Objects_232'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_233:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_347'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_paused
        payload:
          $ref: '#/components/schemas/Objects_234'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_235:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_348'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_completed
        payload:
          $ref: '#/components/schemas/Objects_236'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_237:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_349'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_failed
        payload:
          $ref: '#/components/schemas/Objects_238'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_239:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_350'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_canceled
        payload:
          $ref: '#/components/schemas/Objects_240'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_241:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_351'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_pending
        payload:
          $ref: '#/components/schemas/Objects_242'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_243:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_354'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_provisioning
        payload:
          $ref: '#/components/schemas/Objects_244'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_245:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_355'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_running
        payload:
          $ref: '#/components/schemas/Objects_246'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_247:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_356'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_waiting
        payload:
          $ref: '#/components/schemas/Objects_248'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_249:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_357'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_idle
        payload:
          $ref: '#/components/schemas/Objects_250'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_251:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_358'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_paused
        payload:
          $ref: '#/components/schemas/Objects_252'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_253:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_359'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_completed
        payload:
          $ref: '#/components/schemas/Objects_254'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_255:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_360'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_failed
        payload:
          $ref: '#/components/schemas/Objects_256'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_257:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_361'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.status_canceled
        payload:
          $ref: '#/components/schemas/Objects_258'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_259:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.admitted
        payload:
          $ref: '#/components/schemas/Objects_260'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_264:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_364'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.admitted
        payload:
          $ref: '#/components/schemas/Objects_265'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_266:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.forked
        payload:
          $ref: '#/components/schemas/Objects_267'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_268:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.updated
        payload:
          $ref: '#/components/schemas/Objects_269'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_270:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.title_updated
        payload:
          $ref: '#/components/schemas/Objects_271'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_272:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.metadata_updated
        payload:
          $ref: '#/components/schemas/Objects_273'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_274:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_325'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - system.message
        payload:
          $ref: '#/components/schemas/Objects_275'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_276:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_365'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - system.message
        payload:
          $ref: '#/components/schemas/Objects_277'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_278:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.archived
        payload:
          $ref: '#/components/schemas/Objects_279'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_280:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.mounts_resolved
        payload:
          $ref: '#/components/schemas/Objects_281'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_282:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.compacted
        payload:
          $ref: '#/components/schemas/Objects_283'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_284:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.context_condensed
        payload:
          $ref: '#/components/schemas/Objects_285'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_286:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.mount_resolved
        payload:
          $ref: '#/components/schemas/Objects_287'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_288:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_366'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.accessed
        payload:
          $ref: '#/components/schemas/Union_367'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_289:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_368'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.accessed
        payload:
          $ref: '#/components/schemas/Objects_290'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_291:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.change_checkpointed
        payload:
          $ref: '#/components/schemas/Objects_292'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_293:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.proposal_created
        payload:
          $ref: '#/components/schemas/Objects_294'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_295:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.proposal_resolved
        payload:
          $ref: '#/components/schemas/MemoryProposalResolvedPayload'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_296:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.curated
        payload:
          $ref: '#/components/schemas/Objects_297'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_298:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - memory.redacted
        payload:
          $ref: '#/components/schemas/Objects_299'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_300:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - wire.call
        payload:
          $ref: '#/components/schemas/Objects_301'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_303:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 44
            - 45
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - exec.tool_invocation
        payload:
          $ref: '#/components/schemas/Objects_304'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_305:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_369'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - exec.call
        payload:
          $ref: '#/components/schemas/Objects_306'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_307:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - model.routed
        payload:
          $ref: '#/components/schemas/Objects_308'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_309:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - model.usage_recorded
        payload:
          $ref: '#/components/schemas/ModelUsageRecordedEvidence'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_310:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_370'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Union_371'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_312:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_372'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Objects_313'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_314:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Objects_315'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_316:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.started
        payload:
          $ref: '#/components/schemas/Union_373'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_317:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.start_timed_out
        payload:
          $ref: '#/components/schemas/Objects_318'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_319:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.attempt_requeued
        payload:
          $ref: '#/components/schemas/Objects_320'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_321:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.requires_action
        payload:
          $ref: '#/components/schemas/Objects_322'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_323:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_374'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.requires_action
        payload:
          $ref: '#/components/schemas/Objects_324'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_325:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_375'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.action_authorized
        payload:
          $ref: '#/components/schemas/Objects_326'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_327:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.resumed
        payload:
          $ref: '#/components/schemas/Objects_328'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_329:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_376'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.completed
        payload:
          $ref: '#/components/schemas/Objects_330'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_331:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_378'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.completed
        payload:
          $ref: '#/components/schemas/Objects_332'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_333:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.failed
        payload:
          $ref: '#/components/schemas/Objects_334'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_335:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.canceled
        payload:
          $ref: '#/components/schemas/Objects_336'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_337:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.input_delivered
        payload:
          $ref: '#/components/schemas/Objects_338'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_339:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.lifecycle_hook
        payload:
          $ref: '#/components/schemas/Objects_340'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_341:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.thread_message_sent
        payload:
          $ref: '#/components/schemas/Objects_342'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_343:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.thread_message_received
        payload:
          $ref: '#/components/schemas/Objects_344'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_345:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_380'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.advisor_consulted
        payload:
          $ref: '#/components/schemas/Objects_346'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_347:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 40
            - 41
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.advisor_consulted
        payload:
          $ref: '#/components/schemas/Objects_348'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_349:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_381'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.advisor_consultation_failed
        payload:
          $ref: '#/components/schemas/Objects_350'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_351:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_383'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.advisor_consulted
        payload:
          $ref: '#/components/schemas/Objects_352'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_353:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_383'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.advisor_consultation_failed
        payload:
          $ref: '#/components/schemas/Objects_354'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_355:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.thread_created
        payload:
          $ref: '#/components/schemas/Objects_356'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_357:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.thread_status_running
        payload:
          $ref: '#/components/schemas/Objects_358'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_359:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.thread_status_idle
        payload:
          $ref: '#/components/schemas/Objects_360'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_361:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.thread_status_rescheduled
        payload:
          $ref: '#/components/schemas/Objects_362'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_363:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.thread_status_terminated
        payload:
          $ref: '#/components/schemas/Objects_364'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_365:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 43
            - 44
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - action_approval.pending
        payload:
          $ref: '#/components/schemas/Objects_366'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_369:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 45
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - action_approval.pending
        payload:
          $ref: '#/components/schemas/Objects_370'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_371:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_384'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - action_approval.resolved
        payload:
          $ref: '#/components/schemas/Objects_372'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_373:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - outcome.evaluation_started
        payload:
          $ref: '#/components/schemas/Objects_374'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_375:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_385'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - outcome.evaluation_completed
        payload:
          $ref: '#/components/schemas/Objects_376'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_377:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 41
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - outcome.evaluation_completed
        payload:
          $ref: '#/components/schemas/Objects_378'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_379:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - flow_review.requested
        payload:
          $ref: '#/components/schemas/Objects_380'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_381:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - flow_review.started
        payload:
          $ref: '#/components/schemas/Objects_382'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_383:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_387'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - flow_review.completed
        payload:
          $ref: '#/components/schemas/Objects_384'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_385:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 41
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - flow_review.completed
        payload:
          $ref: '#/components/schemas/Objects_386'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_387:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - flow_review.unavailable
        payload:
          $ref: '#/components/schemas/Objects_388'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_389:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - watch.created
        payload:
          $ref: '#/components/schemas/Objects_390'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_391:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - watch.updated
        payload:
          $ref: '#/components/schemas/Objects_392'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_393:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - watch.removed
        payload:
          $ref: '#/components/schemas/Objects_394'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_395:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - watch.woken
        payload:
          $ref: '#/components/schemas/Objects_396'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_397:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - watch.suppressed
        payload:
          $ref: '#/components/schemas/Objects_398'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_399:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_captured
        payload:
          $ref: '#/components/schemas/Objects_400'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_402:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_started
        payload:
          $ref: '#/components/schemas/Objects_403'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_404:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_no_changes
        payload:
          $ref: '#/components/schemas/Objects_405'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_406:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_388'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_succeeded
        payload:
          $ref: '#/components/schemas/Objects_407'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_408:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_389'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_succeeded
        payload:
          $ref: '#/components/schemas/Objects_409'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_410:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_conflicted
        payload:
          $ref: '#/components/schemas/Objects_411'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_412:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - project.writeback_failed
        payload:
          $ref: '#/components/schemas/Union_390'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_413:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          $ref: '#/components/schemas/SpanEventType'
        payload:
          $ref: '#/components/schemas/JsonValue'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_414:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.message
        payload:
          $ref: '#/components/schemas/Objects_415'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_416:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.interrupt
        payload:
          $ref: '#/components/schemas/Objects_417'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_418:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - user.custom_tool_result
        payload:
          $ref: '#/components/schemas/Objects_419'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_420:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_392'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Objects_421'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_422:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          type: number
          enum:
            - 1
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Objects_423'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_424:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.started
        payload:
          $ref: '#/components/schemas/Objects_425'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_426:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - agent.tool_use
        payload:
          $ref: '#/components/schemas/Objects_427'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_428:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.completed
        payload:
          $ref: '#/components/schemas/Objects_429'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_430:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.failed
        payload:
          $ref: '#/components/schemas/Objects_431'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_432:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_335'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.requires_action
        payload:
          $ref: '#/components/schemas/Objects_433'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_434:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_393'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - session.delivery_ambiguous
        payload:
          $ref: '#/components/schemas/Objects_435'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    Objects_436:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/EventId'
        seq:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        schema_version:
          $ref: '#/components/schemas/Union_394'
        created_at:
          type: string
        attested:
          type: boolean
          enum:
            - true
        type:
          type: string
          enum:
            - run.created
        payload:
          $ref: '#/components/schemas/Union_395'
      required:
        - id
        - seq
        - schema_version
        - created_at
        - type
        - payload
      additionalProperties: false
    ValidationMalformedError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.malformed
            message:
              type: string
            more:
              type: string
              enum:
                - https://docs.checkfu.com/reference/errors#validation-malformed
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        The request could not be decoded or violated a declared input
        constraint.
    ValidationPromptIntegrityReviewRequiredError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.prompt_integrity_review_required
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-prompt-integrity-review-required
              description: Stable public documentation and remedy for this error type.
            review:
              type: object
              properties:
                analyzer_version:
                  type: string
                  enum:
                    - unicode-17.0.0-uts39-r32-checkfu-1
                normalized:
                  type: string
                findings:
                  type: array
                  items:
                    $ref: '#/components/schemas/Union_196'
                  allOf:
                    - minItems: 1
                    - maxItems: 256
              required:
                - analyzer_version
                - normalized
                - findings
              additionalProperties: false
          required:
            - type
            - message
            - more
            - review
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The request contains deceptive Unicode and requires an explicit review.
    ValidationIdempotencyConflictError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_conflict
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-conflict
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: The Idempotency-Key is already bound to a different request.
    ValidationIdempotencyInProgressError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - validation.idempotency_in_progress
            message:
              type: string
            more:
              type: string
              enum:
                - >-
                  https://docs.checkfu.com/reference/errors#validation-idempotency-in-progress
              description: Stable public documentation and remedy for this error type.
          required:
            - type
            - message
            - more
          additionalProperties: false
      required:
        - error
      additionalProperties: false
      description: >-
        An identical idempotent request is still in progress and may be retried
        later.
    MessageContentBlocks:
      type: array
      items:
        anyOf:
          - type: object
            properties:
              type:
                type: string
                enum:
                  - text
              text:
                $ref: '#/components/schemas/MessageContentPlainTextData'
            required:
              - type
              - text
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - image
              source:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - base64
                      media_type:
                        type: string
                        enum:
                          - image/png
                          - image/jpeg
                          - image/gif
                          - image/webp
                      data:
                        $ref: '#/components/schemas/MessageContentBase64Data'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - url
                      url:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 2048
                    required:
                      - type
                      - url
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - file
                      file_id:
                        $ref: '#/components/schemas/FileId'
                    required:
                      - type
                      - file_id
                    additionalProperties: false
            required:
              - type
              - source
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                enum:
                  - document
              source:
                anyOf:
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - base64
                      media_type:
                        type: string
                        enum:
                          - application/pdf
                      data:
                        $ref: '#/components/schemas/MessageContentBase64Data'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - text
                      media_type:
                        type: string
                        enum:
                          - text/plain
                      data:
                        $ref: '#/components/schemas/MessageContentPlainTextData'
                    required:
                      - type
                      - media_type
                      - data
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - url
                      url:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 2048
                    required:
                      - type
                      - url
                    additionalProperties: false
                  - type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - file
                      file_id:
                        $ref: '#/components/schemas/FileId'
                    required:
                      - type
                      - file_id
                    additionalProperties: false
              title:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 1024
              context:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 4096
            required:
              - type
              - source
            additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 32
    OutcomeReportDistinctStringAcceptanceValues:
      type: array
      items:
        type: string
      allOf:
        - minItems: 1
        - maxItems: 32
    OutcomeReportNumericAcceptanceRange:
      type: object
      properties:
        kind:
          type: string
          enum:
            - range
        minimum:
          type: number
        maximum:
          type: number
      required:
        - kind
      additionalProperties: false
    Union_325:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
    Objects_180:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/Union_59'
        attachments:
          type: array
          items:
            type: string
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_296'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_196'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        connected_runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
        run_delivery:
          type: string
          enum:
            - next_run
        host_context:
          type: object
          properties:
            source:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            data:
              $ref: '#/components/schemas/HostContextData'
          required:
            - source
            - data
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Union_329:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_182:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/Union_59'
        attachments:
          type: array
          items:
            type: string
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_296'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_196'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        connected_runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
        run_delivery:
          type: string
          enum:
            - next_run
        host_context:
          type: object
          properties:
            source:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            data:
              $ref: '#/components/schemas/HostContextData'
          required:
            - source
            - data
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_184:
      type: object
      properties:
        target_event:
          $ref: '#/components/schemas/EventId'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        mode:
          type: string
          enum:
            - cooperative
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - authored_by
        - caused_by
      additionalProperties: false
    Union_330:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_186:
      type: object
      properties:
        target_event:
          $ref: '#/components/schemas/EventId'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        mode:
          type: string
          enum:
            - cooperative
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_188:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Union_331:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_190:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    UserToolConfirmationPayload:
      type: object
      properties:
        tool_use_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        result:
          type: string
          enum:
            - allow
            - deny
        deny_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Union_332:
      type: number
      enum:
        - 43
        - 44
        - 45
    UserToolConfirmationPayload_1:
      type: object
      properties:
        tool_use_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        result:
          type: string
          enum:
            - allow
            - deny
        deny_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - tool_use_id
        - result
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_194:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        answers:
          $ref: '#/components/schemas/ManagedQuestionAnswers'
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_296'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_196'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - question
        - answers
        - authored_by
        - caused_by
      additionalProperties: false
    Union_333:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_196:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        answers:
          $ref: '#/components/schemas/ManagedQuestionAnswers'
        prompt_integrity:
          type: object
          properties:
            analyzer_version:
              type: string
              enum:
                - unicode-17.0.0-uts39-r32-checkfu-1
            disposition:
              $ref: '#/components/schemas/Union_296'
            original_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            findings:
              type: array
              items:
                $ref: '#/components/schemas/Union_196'
              allOf:
                - minItems: 1
                - maxItems: 256
          required:
            - analyzer_version
            - disposition
            - original_digest
            - findings
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - question
        - answers
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_198:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        description:
          $ref: '#/components/schemas/OutcomeDescription'
        rubric:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 65536
        max_iterations:
          type: integer
          allOf:
            - minimum: 1
              maximum: 20
        deliverables:
          type: array
          items:
            type: string
            allOf:
              - pattern: ^\/\S+$
          allOf:
            - minItems: 1
            - maxItems: 32
        report:
          type: object
          properties:
            extraction:
              type: string
              enum:
                - json
                - model
            outputs:
              $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
          required:
            - extraction
            - outputs
          additionalProperties: false
        verifier:
          type: object
          properties:
            command:
              type: array
              items:
                type: string
                allOf:
                  - minLength: 1
              allOf:
                - minItems: 1
                - maxItems: 64
            reward_format:
              type: string
              enum:
                - reward_text
                - reward_json
            pass_threshold:
              type: number
              allOf:
                - minimum: 0
                  maximum: 1
          required:
            - command
            - reward_format
            - pass_threshold
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - outcome
        - description
        - rubric
        - authored_by
        - caused_by
      additionalProperties: false
    Union_334:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_200:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        description:
          $ref: '#/components/schemas/OutcomeDescription'
        rubric:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 65536
        max_iterations:
          type: integer
          allOf:
            - minimum: 1
              maximum: 20
        deliverables:
          type: array
          items:
            type: string
            allOf:
              - pattern: ^\/\S+$
          allOf:
            - minItems: 1
            - maxItems: 32
        report:
          type: object
          properties:
            extraction:
              type: string
              enum:
                - json
                - model
            outputs:
              $ref: '#/components/schemas/OutcomeReportDistinctOutputKeys'
          required:
            - extraction
            - outputs
          additionalProperties: false
        verifier:
          type: object
          properties:
            command:
              type: array
              items:
                type: string
                allOf:
                  - minLength: 1
              allOf:
                - minItems: 1
                - maxItems: 64
            reward_format:
              type: string
              enum:
                - reward_text
                - reward_json
            pass_threshold:
              type: number
              allOf:
                - minimum: 0
                  maximum: 1
          required:
            - command
            - reward_format
            - pass_threshold
          additionalProperties: false
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - outcome
        - description
        - rubric
        - authored_by
        - caused_by
      additionalProperties: false
    Union_335:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Union_336:
      anyOf:
        - type: object
          properties:
            content:
              type: string
            subagent:
              $ref: '#/components/schemas/SubagentId'
          required:
            - content
          additionalProperties: false
        - type: object
          properties:
            withheld:
              type: object
              properties:
                content_digest:
                  type: string
                  allOf:
                    - pattern: ^sha256:[0-9a-f]{64}$
                reason:
                  type: string
                  enum:
                    - screen_block
                    - screen_failed
              required:
                - content_digest
                - reason
              additionalProperties: false
            subagent:
              $ref: '#/components/schemas/SubagentId'
          required:
            - withheld
          additionalProperties: false
    Union_338:
      type: number
      enum:
        - 42
        - 44
        - 45
    Objects_203:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - pass
            - block
        reason:
          type: string
          allOf:
            - maxLength: 512
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        route:
          $ref: '#/components/schemas/Objects_204'
        usage:
          $ref: '#/components/schemas/Objects_73'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - verdict
        - content_digest
      additionalProperties: false
    Objects_206:
      type: object
      properties:
        verdict:
          type: string
          enum:
            - pass
            - block
        reason:
          type: string
          allOf:
            - maxLength: 512
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        route:
          $ref: '#/components/schemas/Objects_207'
        usage:
          $ref: '#/components/schemas/Objects_73'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - verdict
        - content_digest
      additionalProperties: false
    Objects_209:
      type: object
      properties:
        content:
          type: string
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - content
      additionalProperties: false
    Union_339:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
    Objects_211:
      type: object
      properties:
        tool_use_id:
          type: string
        tool:
          $ref: '#/components/schemas/Union_340'
        args:
          $ref: '#/components/schemas/JsonValue'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
        - tool
        - args
      additionalProperties: false
    Objects_213:
      type: object
      properties:
        tool_use_id:
          type: string
        tool:
          $ref: '#/components/schemas/Union_340'
        args:
          $ref: '#/components/schemas/JsonValue'
        provider_tool_name:
          $ref: '#/components/schemas/ProviderToolName'
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
        - tool
        - args
      additionalProperties: false
    AgentToolResultPayload:
      type: object
      properties:
        tool_use_id:
          type: string
        result:
          $ref: '#/components/schemas/JsonValue'
        error:
          $ref: '#/components/schemas/Objects_149'
        subagent:
          $ref: '#/components/schemas/SubagentId'
      required:
        - tool_use_id
      additionalProperties: false
    Objects_216:
      type: object
      properties:
        question:
          $ref: '#/components/schemas/QuestionId'
        items:
          $ref: '#/components/schemas/ManagedQuestionItems'
      required:
        - question
        - items
      additionalProperties: false
    Objects_218:
      type: object
      properties:
        subagent:
          $ref: '#/components/schemas/SubagentId'
        name:
          type: string
          allOf:
            - minLength: 1
        description:
          type: string
      required:
        - subagent
        - name
      additionalProperties: false
    Objects_220:
      type: object
      properties:
        subagent:
          $ref: '#/components/schemas/SubagentId'
        disposition:
          type: string
          enum:
            - completed
            - failed
            - canceled
      required:
        - subagent
        - disposition
      additionalProperties: false
    Union_341:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_222:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
      required:
        - status
      additionalProperties: false
    Union_342:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_224:
      type: object
      properties:
        status:
          type: string
          enum:
            - provisioning
      required:
        - status
      additionalProperties: false
    Union_343:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_226:
      type: object
      properties:
        status:
          type: string
          enum:
            - running
      required:
        - status
      additionalProperties: false
    Union_344:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_228:
      type: object
      properties:
        status:
          type: string
          enum:
            - reconciling
      required:
        - status
      additionalProperties: false
    Union_345:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_230:
      type: object
      properties:
        status:
          type: string
          enum:
            - waiting
      required:
        - status
      additionalProperties: false
    Union_346:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_232:
      type: object
      properties:
        status:
          type: string
          enum:
            - idle
        stop_reason:
          $ref: '#/components/schemas/Union_260'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_347:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_234:
      type: object
      properties:
        status:
          type: string
          enum:
            - paused
      required:
        - status
      additionalProperties: false
    Union_348:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_236:
      type: object
      properties:
        status:
          type: string
          enum:
            - completed
        stop_reason:
          $ref: '#/components/schemas/Union_260'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_349:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_238:
      type: object
      properties:
        status:
          type: string
          enum:
            - failed
        stop_reason:
          type: string
          enum:
            - error
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
        - stop_reason
        - reason
      additionalProperties: false
    Union_350:
      type: number
      enum:
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_240:
      type: object
      properties:
        status:
          type: string
          enum:
            - canceled
        stop_reason:
          $ref: '#/components/schemas/Union_260'
      required:
        - status
        - stop_reason
      additionalProperties: false
    Union_351:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_242:
      type: object
      properties:
        status:
          type: string
          enum:
            - pending
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_354:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_244:
      type: object
      properties:
        status:
          type: string
          enum:
            - provisioning
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_355:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_246:
      type: object
      properties:
        status:
          type: string
          enum:
            - running
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_356:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_248:
      type: object
      properties:
        status:
          type: string
          enum:
            - waiting
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_357:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_250:
      type: object
      properties:
        status:
          type: string
          enum:
            - idle
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_358:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_252:
      type: object
      properties:
        status:
          type: string
          enum:
            - paused
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_359:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_254:
      type: object
      properties:
        status:
          type: string
          enum:
            - completed
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_360:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_256:
      type: object
      properties:
        status:
          type: string
          enum:
            - failed
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Union_361:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
    Objects_258:
      type: object
      properties:
        status:
          type: string
          enum:
            - canceled
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        reason:
          $ref: '#/components/schemas/Union_235'
      required:
        - status
      additionalProperties: false
    Objects_260:
      type: object
      properties:
        release_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        admitted_at:
          type: string
        identity:
          type: object
          properties:
            requested_by:
              $ref: '#/components/schemas/Union_98'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_253'
            agent_installation_id:
              $ref: '#/components/schemas/Union_362'
            surface_scope_id:
              $ref: '#/components/schemas/Union_363'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
          required:
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
          additionalProperties: false
        agent:
          $ref: '#/components/schemas/Objects_261'
        harness:
          $ref: '#/components/schemas/Objects_262'
        model:
          $ref: '#/components/schemas/RecordedModelUsageEvidence'
        sandbox:
          $ref: '#/components/schemas/Objects_263'
        governance:
          $ref: '#/components/schemas/Arrays_49'
        work_environment:
          $ref: '#/components/schemas/WorkEnvironmentResolution'
      required:
        - release_hash
        - admitted_at
        - identity
        - agent
        - harness
        - model
        - sandbox
        - governance
      additionalProperties: false
    Union_364:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_265:
      type: object
      properties:
        release_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        admitted_at:
          type: string
        identity:
          $ref: '#/components/schemas/Objects_162'
        agent:
          $ref: '#/components/schemas/Objects_261'
        harness:
          $ref: '#/components/schemas/Objects_262'
        model:
          $ref: '#/components/schemas/RecordedModelUsageEvidence'
        sandbox:
          $ref: '#/components/schemas/Objects_263'
        governance:
          $ref: '#/components/schemas/Arrays_49'
        work_environment:
          $ref: '#/components/schemas/WorkEnvironmentResolution'
      required:
        - release_hash
        - admitted_at
        - identity
        - agent
        - harness
        - model
        - sandbox
        - governance
      additionalProperties: false
    Objects_267:
      type: object
      properties:
        source_session:
          $ref: '#/components/schemas/SessionId'
        through_event:
          $ref: '#/components/schemas/EventId'
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        source_status:
          type: string
          enum:
            - pending
            - provisioning
            - running
            - reconciling
            - waiting
            - idle
            - paused
            - completed
            - failed
            - canceled
        abandoned_run:
          anyOf:
            - $ref: '#/components/schemas/RunId'
            - type: 'null'
        checkpoint:
          anyOf:
            - $ref: '#/components/schemas/CheckpointId'
            - type: 'null'
        mode:
          type: string
          enum:
            - event_log_rebuild
            - checkpoint_clone
      required:
        - source_session
        - through_event
        - through_sequence
        - source_status
        - abandoned_run
        - checkpoint
        - mode
      additionalProperties: false
    Objects_269:
      type: object
      properties:
        changes:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - definition_version_changed
                  from_version:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                  to_version:
                    type: integer
                    allOf:
                      - exclusiveMinimum: 0
                required:
                  - kind
                  - from_version
                  - to_version
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - mount_attached
                  mount:
                    $ref: '#/components/schemas/Union_314'
                required:
                  - kind
                  - mount
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - mount_detached
                  mount_id:
                    $ref: '#/components/schemas/MountId'
                required:
                  - kind
                  - mount_id
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - loaded_capabilities_changed
                  loaded_capabilities:
                    type: array
                    items:
                      $ref: '#/components/schemas/Objects_175'
                required:
                  - kind
                  - loaded_capabilities
                additionalProperties: false
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - selection_changed
                  from_release_hash:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                  to_release_hash:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                required:
                  - kind
                  - from_release_hash
                  - to_release_hash
                additionalProperties: false
          allOf:
            - minItems: 1
      required:
        - changes
      additionalProperties: false
    Objects_271:
      type: object
      properties:
        present:
          type: boolean
      required:
        - present
      additionalProperties: false
    Objects_273:
      type: object
      properties:
        pairs:
          type: integer
          allOf:
            - minimum: 0
      required:
        - pairs
      additionalProperties: false
    Objects_275:
      type: object
      properties:
        content:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Union_365:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_277:
      type: object
      properties:
        content:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 8192
        authored_by:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        surface_scope_id:
          $ref: '#/components/schemas/SurfaceScopeId'
      required:
        - content
        - authored_by
        - caused_by
      additionalProperties: false
    Objects_279:
      anyOf:
        - type: object
        - type: array
    Objects_281:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        mounts:
          type: array
          items:
            anyOf:
              - anyOf:
                  - type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/MountId'
                      kind:
                        type: string
                        enum:
                          - project
                      project_id:
                        $ref: '#/components/schemas/ProjectId'
                      mount_path:
                        $ref: '#/components/schemas/MountPath'
                      revision_policy:
                        $ref: '#/components/schemas/Union_221'
                      revision:
                        type: integer
                        allOf:
                          - exclusiveMinimum: 0
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                      access:
                        $ref: '#/components/schemas/Union_222'
                      writeback:
                        type: 'null'
                      resolution:
                        $ref: '#/components/schemas/Union_187'
                    required:
                      - id
                      - kind
                      - project_id
                      - mount_path
                      - revision_policy
                      - revision
                      - content_sha256
                      - access
                      - resolution
                    additionalProperties: false
                  - type: object
                    properties:
                      id:
                        $ref: '#/components/schemas/MountId'
                      kind:
                        type: string
                        enum:
                          - project
                      project_id:
                        $ref: '#/components/schemas/ProjectId'
                      mount_path:
                        $ref: '#/components/schemas/MountPath'
                      revision_policy:
                        $ref: '#/components/schemas/Union_221'
                      revision:
                        type: integer
                        allOf:
                          - exclusiveMinimum: 0
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                      access:
                        type: string
                        enum:
                          - read_write
                      writeback:
                        $ref: '#/components/schemas/Objects_131'
                      resolution:
                        $ref: '#/components/schemas/Objects_114'
                    required:
                      - id
                      - kind
                      - project_id
                      - mount_path
                      - revision_policy
                      - revision
                      - content_sha256
                      - access
                      - writeback
                      - resolution
                    additionalProperties: false
              - type: object
                properties:
                  id:
                    $ref: '#/components/schemas/MountId'
                  kind:
                    type: string
                    enum:
                      - file
                  file_id:
                    $ref: '#/components/schemas/FileId'
                  mount_path:
                    $ref: '#/components/schemas/MountPath'
                  access:
                    type: string
                    enum:
                      - read_only
                  sha256:
                    type: string
                    allOf:
                      - pattern: ^sha256:[0-9a-f]{64}$
                  bytes:
                    type: integer
                    allOf:
                      - minimum: 0
                required:
                  - id
                  - kind
                  - file_id
                  - mount_path
                  - access
                  - sha256
                  - bytes
                additionalProperties: false
              - $ref: '#/components/schemas/Objects_173'
              - $ref: '#/components/schemas/ResolvedSkillsMountIntegrity'
      required:
        - run
        - mounts
      additionalProperties: false
    Objects_283:
      type: object
      properties:
        strategy:
          type: string
          enum:
            - native
            - platform_summarize
            - truncate
        tokens_before:
          type: integer
          allOf:
            - minimum: 0
        tokens_after:
          type: integer
          allOf:
            - minimum: 0
      required:
        - strategy
        - tokens_before
        - tokens_after
      additionalProperties: false
    Objects_285:
      type: object
      properties:
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        condensed:
          type: object
          properties:
            user_messages:
              type: integer
              allOf:
                - minimum: 0
            agent_messages:
              type: integer
              allOf:
                - minimum: 0
          required:
            - user_messages
            - agent_messages
          additionalProperties: false
        kept:
          type: object
          properties:
            user_messages:
              type: integer
              allOf:
                - minimum: 0
            agent_messages:
              type: integer
              allOf:
                - minimum: 0
            content_length:
              type: integer
              allOf:
                - minimum: 0
          required:
            - user_messages
            - agent_messages
            - content_length
          additionalProperties: false
      required:
        - through_sequence
        - condensed
        - kept
      additionalProperties: false
    Objects_287:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        requested:
          $ref: '#/components/schemas/Union_223'
        effective:
          $ref: '#/components/schemas/Union_223'
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        mount_path:
          $ref: '#/components/schemas/MountPath'
      required:
        - store
        - requested
        - effective
      additionalProperties: false
    Union_366:
      type: number
      enum:
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Union_367:
      anyOf:
        - type: object
          properties:
            store:
              $ref: '#/components/schemas/MemoryStoreId'
            revision:
              $ref: '#/components/schemas/MemoryRevisionId'
            method:
              type: string
              enum:
                - mount
                - search
                - tool
            detail:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - full
                documents:
                  type: array
                  items:
                    type: object
                    properties:
                      path:
                        $ref: '#/components/schemas/MemoryPath'
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                    required:
                      - path
                      - content_sha256
                    additionalProperties: false
                  allOf:
                    - minItems: 1
              required:
                - kind
                - documents
              additionalProperties: false
          required:
            - store
            - revision
            - method
            - detail
          additionalProperties: false
        - type: object
          properties:
            scope:
              type: string
              enum:
                - mounted_stores
            method:
              type: string
              enum:
                - mount
            store_count:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            document_count:
              type: integer
              allOf:
                - exclusiveMinimum: 0
          required:
            - scope
            - method
            - store_count
            - document_count
          additionalProperties: false
    Union_368:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
    Objects_290:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        method:
          type: string
          enum:
            - mount
            - search
            - tool
        detail:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - full
                documents:
                  type: array
                  items:
                    type: object
                    properties:
                      path:
                        $ref: '#/components/schemas/MemoryPath'
                      content_sha256:
                        type: string
                        allOf:
                          - pattern: ^sha256:[0-9a-f]{64}$
                    required:
                      - path
                      - content_sha256
                    additionalProperties: false
                  allOf:
                    - minItems: 1
              required:
                - kind
                - documents
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - aggregate
                document_count:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
              required:
                - kind
                - document_count
              additionalProperties: false
      required:
        - store
        - revision
        - method
        - detail
      additionalProperties: false
    Objects_292:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        working_ref:
          $ref: '#/components/schemas/Union_111'
        base_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        new_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        tree_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        diff_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        changed_paths:
          type: array
          items:
            $ref: '#/components/schemas/MemoryPath'
          allOf:
            - minItems: 1
      required:
        - store
        - working_ref
        - base_revision
        - new_revision
        - tree_hash
        - diff_hash
        - changed_paths
      additionalProperties: false
    Objects_294:
      type: object
      properties:
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        base_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        head_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        diff_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - proposal
        - store
        - base_revision
        - head_revision
        - diff_hash
      additionalProperties: false
    MemoryProposalResolvedPayload:
      type: object
      properties:
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
        decision:
          type: string
          enum:
            - approved
            - rejected
            - superseded
        responder:
          anyOf:
            - $ref: '#/components/schemas/Union_109'
            - type: 'null'
        canonical_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
      required:
        - proposal
        - decision
        - responder
      additionalProperties: false
    Objects_297:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/CurationRunId'
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        cursor_from:
          type: integer
          allOf:
            - minimum: 0
        cursor_to:
          type: integer
          allOf:
            - minimum: 0
        source_event_count:
          type: integer
          allOf:
            - minimum: 0
        source_artifact_count:
          type: integer
          allOf:
            - minimum: 0
        output_revision:
          $ref: '#/components/schemas/MemoryRevisionId'
        proposal:
          $ref: '#/components/schemas/MemoryProposalId'
      required:
        - run
        - store
        - cursor_from
        - cursor_to
        - source_event_count
        - source_artifact_count
      additionalProperties: false
    Objects_299:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        operation:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        revision_count:
          type: integer
          allOf:
            - minimum: 0
        path_count:
          type: integer
          allOf:
            - minimum: 0
        hash_count:
          type: integer
          allOf:
            - minimum: 0
      required:
        - store
        - operation
        - revision_count
        - path_count
        - hash_count
      additionalProperties: false
    Objects_301:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        request_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        provider_call_id:
          anyOf:
            - type: string
              allOf:
                - minLength: 1
                - maxLength: 255
            - type: 'null'
        binding:
          type: string
        provider:
          type: string
        model:
          type: string
        usage:
          anyOf:
            - $ref: '#/components/schemas/Objects_73'
            - $ref: '#/components/schemas/Objects_164'
        request:
          type: object
          properties:
            body:
              $ref: '#/components/schemas/Objects_302'
            messages:
              type: array
              items:
                $ref: '#/components/schemas/Objects_302'
              allOf:
                - maxItems: 2048
          required:
            - body
            - messages
          additionalProperties: false
        response:
          type: object
          properties:
            body:
              $ref: '#/components/schemas/Objects_302'
            frames:
              type: array
              items:
                $ref: '#/components/schemas/Objects_302'
              allOf:
                - maxItems: 2048
          required:
            - body
            - frames
          additionalProperties: false
        request_bytes:
          type: integer
          allOf:
            - minimum: 0
        response_bytes:
          type: integer
          allOf:
            - minimum: 0
      required:
        - run
        - attempt
        - request_id
        - provider_call_id
        - binding
        - provider
        - model
        - usage
        - request
        - response
        - request_bytes
        - response_bytes
      additionalProperties: false
    Objects_304:
      type: object
      properties:
        run_id:
          $ref: '#/components/schemas/RunId'
        run_attempt_id:
          $ref: '#/components/schemas/RunAttemptId'
        tool_invocation_id:
          $ref: '#/components/schemas/ToolInvocationId'
        connection_id:
          $ref: '#/components/schemas/ConnectionId'
        tool_source_id:
          $ref: '#/components/schemas/ToolSourceId'
        tool_name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        execution_backend:
          $ref: '#/components/schemas/Union_274'
        disposition:
          type: string
          enum:
            - completed
            - denied
            - indeterminate
        argument_fingerprint:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
        upgrade:
          type: boolean
          enum:
            - true
      required:
        - run_id
        - run_attempt_id
        - tool_invocation_id
        - connection_id
        - tool_source_id
        - tool_name
        - execution_backend
        - disposition
        - argument_fingerprint
        - duration_ms
      additionalProperties: false
    Union_369:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
    Objects_306:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        call_id:
          type: string
          allOf:
            - pattern: ^call_[0-9a-f]{32}$
        connection:
          $ref: '#/components/schemas/ConnectionId'
        tool_source:
          $ref: '#/components/schemas/ToolSourceId'
        tool_name:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        engine:
          type: string
          enum:
            - builtin
            - executor
            - connector
        disposition:
          type: string
          enum:
            - completed
            - denied
            - indeterminate
        argument_fingerprint:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
        upgrade:
          type: boolean
          enum:
            - true
      required:
        - run
        - attempt
        - call_id
        - connection
        - tool_source
        - tool_name
        - engine
        - disposition
        - argument_fingerprint
        - duration_ms
      additionalProperties: false
    Objects_308:
      type: object
      properties:
        binding:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
      required:
        - binding
        - model
        - tier
        - reason
      additionalProperties: false
    ModelUsageRecordedEvidence:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        request_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        binding:
          type: string
        provider:
          type: string
        model:
          type: string
        input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cached_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cache_write_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        output_tokens:
          type: integer
          allOf:
            - minimum: 0
        reasoning_output_tokens:
          type: integer
          allOf:
            - minimum: 0
        total_tokens:
          type: integer
          allOf:
            - minimum: 0
        unit:
          type: string
          enum:
            - image
            - video_second
            - compute_second
        quantity_millionths:
          type: integer
          allOf:
            - minimum: 0
      required:
        - run
        - request_id
        - binding
        - provider
        - model
      additionalProperties: false
    Union_370:
      type: number
      enum:
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Union_371:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_257'
            requested_by:
              $ref: '#/components/schemas/Union_98'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_253'
            agent_installation_id:
              $ref: '#/components/schemas/Union_362'
            surface_scope_id:
              $ref: '#/components/schemas/Union_363'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins:
              $ref: '#/components/schemas/Objects_34'
            connected_runtime: false
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - execution_pins
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_257'
            requested_by:
              $ref: '#/components/schemas/Union_98'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_253'
            agent_installation_id:
              $ref: '#/components/schemas/Union_362'
            surface_scope_id:
              $ref: '#/components/schemas/Union_363'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins: false
            connected_runtime:
              $ref: '#/components/schemas/Objects_311'
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - connected_runtime
          additionalProperties: false
    Union_372:
      type: number
      enum:
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
    Objects_313:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_257'
        requested_by:
          $ref: '#/components/schemas/Union_98'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        agent_installation_id:
          $ref: '#/components/schemas/Union_362'
        surface_scope_id:
          $ref: '#/components/schemas/Union_363'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
        execution_pins:
          type: object
          properties:
            agent_version:
              type: string
            harness_profile_version:
              type: string
            harness_release_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            harness_driver_version:
              type: string
            sandbox_profile_id:
              $ref: '#/components/schemas/SandboxProfileId'
            sandbox_profile_revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            sandbox_image_digest:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            model_binding_version:
              type: string
            plane_policy_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
            selected_skills:
              $ref: '#/components/schemas/Arrays_9'
            selected_tools:
              $ref: '#/components/schemas/Arrays_10'
            instructions_sha256:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
          required:
            - agent_version
            - harness_profile_version
            - harness_release_digest
            - harness_driver_version
            - sandbox_profile_id
            - sandbox_profile_revision_number
            - sandbox_image_digest
            - model_binding_version
            - plane_policy_hash
          additionalProperties: false
        connected_runtime: false
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
        - execution_pins
      additionalProperties: false
    Objects_315:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_257'
        requested_by:
          $ref: '#/components/schemas/Union_98'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        agent_installation_id:
          $ref: '#/components/schemas/Union_362'
        surface_scope_id:
          $ref: '#/components/schemas/Union_363'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
        execution_pins: false
        connected_runtime:
          $ref: '#/components/schemas/Objects_311'
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
        - connected_runtime
      additionalProperties: false
    Union_373:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            runner_pool:
              $ref: '#/components/schemas/RunnerPoolId'
            execution_target:
              $ref: '#/components/schemas/Objects_45'
            capability_set:
              $ref: '#/components/schemas/Objects_21'
            evidence_authority:
              type: string
              enum:
                - server_driver_envelope
          required:
            - run
            - attempt
            - runner_pool
            - execution_target
            - capability_set
            - evidence_authority
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            connected_runtime:
              type: object
              properties:
                kind:
                  type: string
                  enum:
                    - connected
                protocol:
                  type: string
                  enum:
                    - acp-v1
                runtime:
                  $ref: '#/components/schemas/ConnectedRuntimeId'
              required:
                - kind
                - protocol
              additionalProperties: false
            evidence_authority:
              type: string
              enum:
                - run_capability_admission
          required:
            - run
            - attempt
            - connected_runtime
            - evidence_authority
          additionalProperties: false
    Objects_318:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - runtime.start_timeout
            message:
              type: string
          required:
            - type
            - message
          additionalProperties: false
      required:
        - run
        - attempt
        - error
      additionalProperties: false
    Objects_320:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        recovery:
          type: number
          enum:
            - 1
        error:
          $ref: '#/components/schemas/Objects_149'
      required:
        - run
        - attempt
        - recovery
        - error
      additionalProperties: false
    Objects_322:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - question
                question:
                  $ref: '#/components/schemas/QuestionId'
                items:
                  $ref: '#/components/schemas/ManagedQuestionItems'
              required:
                - kind
                - question
                - items
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - outcome_evaluation
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                iteration:
                  type: integer
                  allOf:
                    - minimum: 0
              required:
                - kind
                - outcome
                - iteration
              additionalProperties: false
        cost:
          $ref: '#/components/schemas/Objects_148'
      required:
        - run
        - attempt
        - action
        - cost
      additionalProperties: false
    Union_374:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_324:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - action_approval
                approval:
                  $ref: '#/components/schemas/ActionApprovalId'
                tool_use_id:
                  type: string
                on_approve:
                  type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - custom_tool
                  required:
                    - kind
                  additionalProperties: false
              required:
                - kind
                - approval
                - tool_use_id
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - question
                question:
                  $ref: '#/components/schemas/QuestionId'
                items:
                  $ref: '#/components/schemas/ManagedQuestionItems'
              required:
                - kind
                - question
                - items
              additionalProperties: false
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - outcome_evaluation
                outcome:
                  $ref: '#/components/schemas/OutcomeId'
                iteration:
                  type: integer
                  allOf:
                    - minimum: 0
              required:
                - kind
                - outcome
                - iteration
              additionalProperties: false
        cost:
          $ref: '#/components/schemas/Objects_148'
      required:
        - run
        - attempt
        - action
        - cost
      additionalProperties: false
    Union_375:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_326:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        action:
          type: object
          properties:
            kind:
              type: string
              enum:
                - custom_tool
            tool_use_id:
              type: string
          required:
            - kind
            - tool_use_id
          additionalProperties: false
      required:
        - run
        - attempt
        - approval
        - action
      additionalProperties: false
    Objects_328:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
      required:
        - run
        - attempt
      additionalProperties: false
    Union_376:
      type: number
      enum:
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_330:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        cost:
          $ref: '#/components/schemas/Objects_148'
        turn:
          type: object
          properties:
            execution:
              type: string
              enum:
                - shell
                - model_only
            shell_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            filesystem_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            mcp_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            wall_time_ms:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 604800000
            model_transient_retries:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_overflow_recoveries:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
          required:
            - execution
            - shell_commands
            - filesystem_commands
            - mcp_calls
            - model_calls
            - wall_time_ms
          additionalProperties: false
      required:
        - run
        - attempt
        - stop_reason
        - cost
      additionalProperties: false
    Union_378:
      type: number
      enum:
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
    Objects_332:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        cost:
          $ref: '#/components/schemas/Objects_148'
        turn:
          type: object
          properties:
            execution:
              type: string
              enum:
                - shell
                - model_only
            shell_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            filesystem_commands:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            mcp_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            model_calls:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 1000000
            wall_time_ms:
              type: integer
              allOf:
                - minimum: 0
                - maximum: 604800000
          required:
            - execution
            - shell_commands
            - filesystem_commands
            - mcp_calls
            - model_calls
            - wall_time_ms
          additionalProperties: false
      required:
        - run
        - attempt
        - stop_reason
        - cost
      additionalProperties: false
    Objects_334:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        error:
          $ref: '#/components/schemas/Objects_149'
      required:
        - run
        - attempt
        - error
      additionalProperties: false
    Objects_336:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          anyOf:
            - $ref: '#/components/schemas/RunAttemptId'
            - type: 'null'
        reason:
          type: string
      required:
        - run
        - attempt
        - reason
      additionalProperties: false
    Objects_338:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        event:
          $ref: '#/components/schemas/EventId'
        disposition:
          type: string
          enum:
            - delivered
            - queued
            - refused
      required:
        - run
        - attempt
        - event
        - disposition
      additionalProperties: false
    Objects_340:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        phase:
          $ref: '#/components/schemas/Union_67'
        ordinal:
          type: integer
          allOf:
            - minimum: 0
            - exclusiveMaximum: 16
        outcome:
          $ref: '#/components/schemas/Union_379'
        on_failure:
          $ref: '#/components/schemas/Union_68'
        exit_code:
          anyOf:
            - type: integer
              allOf:
                - minimum: 0
                  maximum: 255
            - type: 'null'
        duration_ms:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 3600000
        output:
          $ref: '#/components/schemas/SandboxLifecycleHookOutput'
        output_truncated:
          type: boolean
      required:
        - run
        - attempt
        - phase
        - ordinal
        - outcome
        - on_failure
        - exit_code
        - duration_ms
        - output
        - output_truncated
      additionalProperties: false
    Objects_342:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/MessageContentBlocks'
        to_session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        to_agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - content
        - to_session_thread_id
      additionalProperties: false
    Objects_344:
      type: object
      properties:
        content:
          $ref: '#/components/schemas/MessageContentBlocks'
        from_session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        from_agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - content
        - from_session_thread_id
      additionalProperties: false
    Union_380:
      type: number
      enum:
        - 42
        - 44
        - 45
    Objects_346:
      type: object
      properties:
        model_routing_profile_id:
          $ref: '#/components/schemas/ModelRoutingProfileId'
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        access_source:
          $ref: '#/components/schemas/Union_66'
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_routing_profile_id
        - model_routing_profile_key
        - model_routing_profile_revision_number
        - access_source
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Objects_348:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_routing_profile_key
        - model_routing_profile_revision_number
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Union_381:
      type: number
      enum:
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_350:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        reason:
          $ref: '#/components/schemas/Union_382'
      required:
        - model_routing_profile_key
        - reason
      additionalProperties: false
    Union_383:
      type: number
      enum:
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
        - 8
        - 9
        - 10
        - 11
        - 12
        - 13
        - 14
        - 15
        - 16
        - 17
        - 18
        - 19
        - 20
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
    Objects_352:
      type: object
      properties:
        model_binding:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_binding_version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        provider:
          type: string
          allOf:
            - minLength: 1
        model:
          type: string
          allOf:
            - minLength: 1
        question:
          $ref: '#/components/schemas/MessageContentBlocks'
        advice:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 16384
      required:
        - model_binding
        - model_binding_version
        - provider
        - model
        - question
        - advice
      additionalProperties: false
    Objects_354:
      type: object
      properties:
        model_binding:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        reason:
          $ref: '#/components/schemas/Union_382'
      required:
        - model_binding
        - reason
      additionalProperties: false
    Objects_356:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_358:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_360:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        stop_reason:
          anyOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - end_turn
              required:
                - type
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - requires_action
                event_ids:
                  type: array
                  items:
                    $ref: '#/components/schemas/EventId'
              required:
                - type
                - event_ids
              additionalProperties: false
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - retries_exhausted
              required:
                - type
              additionalProperties: false
      required:
        - session_thread_id
        - agent_name
        - stop_reason
      additionalProperties: false
    Objects_362:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_364:
      type: object
      properties:
        session_thread_id:
          $ref: '#/components/schemas/SessionThreadId'
        agent_name:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
      required:
        - session_thread_id
        - agent_name
      additionalProperties: false
    Objects_366:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        frozen_context:
          anyOf:
            - $ref: '#/components/schemas/Objects_367'
            - $ref: '#/components/schemas/Objects_368'
      required:
        - approval
        - frozen_context
      additionalProperties: false
    Objects_370:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        frozen_context:
          anyOf:
            - type: object
              properties:
                action_approval_type:
                  type: string
                  enum:
                    - harness_tool
                session_id:
                  $ref: '#/components/schemas/SessionId'
                run_id:
                  $ref: '#/components/schemas/RunId'
                tool_use_id:
                  $ref: '#/components/schemas/HarnessToolUseId'
                agent_id:
                  $ref: '#/components/schemas/AgentId'
                release_number:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
                agent_placement_id:
                  anyOf:
                    - $ref: '#/components/schemas/AgentInstallationId'
                    - type: 'null'
                collaboration_space_id:
                  anyOf:
                    - $ref: '#/components/schemas/SurfaceScopeId'
                    - type: 'null'
                tool:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 256
                    - pattern: ^harness:\S+$
                provider_tool_name:
                  $ref: '#/components/schemas/ProviderToolName'
                arguments_hash:
                  type: string
                  allOf:
                    - pattern: ^sha256:[0-9a-f]{64}$
                acting_principal_id:
                  $ref: '#/components/schemas/PrincipalId'
              required:
                - action_approval_type
                - session_id
                - run_id
                - tool_use_id
                - agent_id
                - release_number
                - agent_placement_id
                - collaboration_space_id
                - tool
                - provider_tool_name
                - arguments_hash
                - acting_principal_id
              additionalProperties: false
            - $ref: '#/components/schemas/Objects_367'
            - $ref: '#/components/schemas/Objects_368'
      required:
        - approval
        - frozen_context
      additionalProperties: false
    Union_384:
      type: number
      enum:
        - 43
        - 44
        - 45
    Objects_372:
      type: object
      properties:
        approval:
          $ref: '#/components/schemas/ActionApprovalId'
        tool_use_id:
          type: string
        decision:
          type: string
          enum:
            - approve
            - deny
        resolved_by:
          $ref: '#/components/schemas/Union_85'
        instructions:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - approval
        - tool_use_id
        - decision
        - resolved_by
        - instructions
      additionalProperties: false
    Objects_374:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
      required:
        - outcome
        - iteration
      additionalProperties: false
    Union_385:
      type: number
      enum:
        - 42
        - 44
        - 45
    Objects_376:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
        result:
          $ref: '#/components/schemas/Union_150'
        explanation:
          type: string
        cost:
          $ref: '#/components/schemas/Objects_148'
        route:
          $ref: '#/components/schemas/Objects_204'
        input_digest:
          type: string
        report:
          $ref: '#/components/schemas/OutcomeReportResultStatus'
      required:
        - outcome
        - iteration
        - result
        - explanation
        - cost
      additionalProperties: false
    Objects_378:
      type: object
      properties:
        outcome:
          $ref: '#/components/schemas/OutcomeId'
        iteration:
          type: integer
          allOf:
            - minimum: 0
        result:
          $ref: '#/components/schemas/Union_150'
        explanation:
          type: string
        cost:
          $ref: '#/components/schemas/Objects_148'
        route:
          $ref: '#/components/schemas/Objects_207'
        input_digest:
          type: string
        report:
          $ref: '#/components/schemas/OutcomeReportResultStatus'
      required:
        - outcome
        - iteration
        - result
        - explanation
        - cost
      additionalProperties: false
    Objects_380:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        automation:
          $ref: '#/components/schemas/AutomationId'
        firing:
          $ref: '#/components/schemas/AutomationFiringId'
        originating_event:
          $ref: '#/components/schemas/EventId'
        spec:
          $ref: '#/components/schemas/Objects_130'
        model_release:
          type: object
          properties:
            model_routing_profile_id:
              $ref: '#/components/schemas/ModelRoutingProfileId'
            key:
              type: string
            revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            access:
              type: string
              enum:
                - harness_owned
            routing_policy:
              $ref: '#/components/schemas/Union_128'
            eligible_candidates:
              type: array
              prefixItems:
                - $ref: '#/components/schemas/Objects_163'
              minItems: 1
              items:
                $ref: '#/components/schemas/Objects_163'
            access_sources:
              type: array
              items:
                $ref: '#/components/schemas/Objects_41'
          required:
            - model_routing_profile_id
            - key
            - revision_number
            - routing_policy
            - eligible_candidates
          additionalProperties: false
      required:
        - review
        - automation
        - firing
        - originating_event
        - spec
        - model_release
      additionalProperties: false
    Objects_382:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        automation:
          $ref: '#/components/schemas/AutomationId'
        firing:
          $ref: '#/components/schemas/AutomationFiringId'
        session:
          $ref: '#/components/schemas/SessionId'
        originating_event:
          $ref: '#/components/schemas/EventId'
        source_run:
          $ref: '#/components/schemas/RunId'
        from_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        through_sequence:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        terminal_source_event:
          $ref: '#/components/schemas/EventId'
        evidence_format:
          type: string
          enum:
            - flow-review-evidence-v1
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - review
        - automation
        - firing
        - session
        - originating_event
        - source_run
        - from_sequence
        - through_sequence
        - terminal_source_event
        - evidence_format
        - evidence_digest
      additionalProperties: false
    Union_387:
      type: number
      enum:
        - 42
        - 44
        - 45
    Objects_384:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        result:
          type: string
          enum:
            - passed
            - concerns
        criteria:
          type: array
          items:
            $ref: '#/components/schemas/Objects_151'
          allOf:
            - minItems: 1
            - maxItems: 16
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        through_event_id:
          $ref: '#/components/schemas/EventId'
        route:
          $ref: '#/components/schemas/Objects_204'
        usage:
          $ref: '#/components/schemas/Objects_73'
        evaluated_at:
          type: string
      required:
        - review
        - result
        - criteria
        - evidence_digest
        - through_event_id
        - route
        - usage
        - evaluated_at
      additionalProperties: false
    Objects_386:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        result:
          type: string
          enum:
            - passed
            - concerns
        criteria:
          type: array
          items:
            $ref: '#/components/schemas/Objects_151'
          allOf:
            - minItems: 1
            - maxItems: 16
        evidence_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        through_event_id:
          $ref: '#/components/schemas/EventId'
        route:
          $ref: '#/components/schemas/Objects_207'
        usage:
          $ref: '#/components/schemas/Objects_73'
        evaluated_at:
          type: string
      required:
        - review
        - result
        - criteria
        - evidence_digest
        - through_event_id
        - route
        - usage
        - evaluated_at
      additionalProperties: false
    Objects_388:
      type: object
      properties:
        review:
          $ref: '#/components/schemas/FlowReviewId'
        reason:
          $ref: '#/components/schemas/Union_265'
      required:
        - review
        - reason
      additionalProperties: false
    Objects_390:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_392:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_394:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - watch
      additionalProperties: false
    Objects_396:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
        source_state_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - watch
        - source_state_hash
      additionalProperties: false
    Objects_398:
      type: object
      properties:
        watch:
          $ref: '#/components/schemas/WatchId'
        reason:
          type: string
          enum:
            - duplicate
            - self_authored
            - stale_hint
            - unsafe_content
        source_state_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - watch
        - reason
      additionalProperties: false
    Objects_400:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_401'
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
      additionalProperties: false
    Objects_403:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        generation:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - branch
        - connection
        - generation
      additionalProperties: false
    Objects_405:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        proved_at:
          type: string
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - proved_at
      additionalProperties: false
    Union_388:
      type: number
      enum:
        - 30
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_407:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_401'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        commit:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        pull_request_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        pull_request_url:
          type: string
          allOf:
            - pattern: ^https:\/\/\S+$
            - maxLength: 2048
        revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        watch:
          $ref: '#/components/schemas/WatchId'
        base_revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        signature:
          anyOf:
            - type: object
              properties:
                state:
                  type: string
                  enum:
                    - signed
                key_id:
                  type: string
                  allOf:
                    - minLength: 8
                    - maxLength: 64
                    - pattern: ^[0-9A-F]+$
              required:
                - state
                - key_id
              additionalProperties: false
            - type: object
              properties:
                state:
                  type: string
                  enum:
                    - skipped
                reason:
                  type: string
                  enum:
                    - signing_unconfigured
                    - signing_unavailable
                    - provider_unsupported
              required:
                - state
                - reason
              additionalProperties: false
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - commit
        - pull_request_number
        - pull_request_url
        - revision
        - base_revision
      additionalProperties: false
    Union_389:
      type: number
      enum:
        - 21
        - 22
        - 23
        - 24
        - 25
        - 26
        - 27
        - 28
        - 29
    Objects_409:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_401'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        commit:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        pull_request_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        pull_request_url:
          type: string
          allOf:
            - pattern: ^https:\/\/\S+$
            - maxLength: 2048
        revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        watch:
          $ref: '#/components/schemas/WatchId'
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - commit
        - pull_request_number
        - pull_request_url
        - revision
      additionalProperties: false
    Objects_411:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        mount:
          $ref: '#/components/schemas/MountId'
        project:
          $ref: '#/components/schemas/ProjectId'
        capture:
          $ref: '#/components/schemas/ProjectCaptureId'
        result:
          $ref: '#/components/schemas/Objects_401'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        connection:
          $ref: '#/components/schemas/ConnectionId'
        branch:
          $ref: '#/components/schemas/GitBranchName'
        reason:
          type: string
          enum:
            - destination_diverged
            - destination_unowned
            - pull_request_ambiguous
            - stale_base
      required:
        - run
        - attempt
        - mount
        - project
        - capture
        - result
        - acted_as
        - connection
        - branch
        - reason
      additionalProperties: false
    Union_390:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            mount:
              $ref: '#/components/schemas/MountId'
            project:
              $ref: '#/components/schemas/ProjectId'
            capture:
              $ref: '#/components/schemas/ProjectCaptureId'
            reason:
              $ref: '#/components/schemas/Union_391'
          required:
            - run
            - attempt
            - mount
            - project
            - capture
            - reason
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            attempt:
              $ref: '#/components/schemas/RunAttemptId'
            mount:
              $ref: '#/components/schemas/MountId'
            project:
              $ref: '#/components/schemas/ProjectId'
            capture:
              $ref: '#/components/schemas/ProjectCaptureId'
            result:
              $ref: '#/components/schemas/Objects_401'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            connection:
              $ref: '#/components/schemas/ConnectionId'
            branch:
              $ref: '#/components/schemas/GitBranchName'
            reason:
              type: string
              enum:
                - authority_lost
                - capture_invalid
                - provider_budget
                - provider_rejected
                - provider_weather_exhausted
                - session_ineligible
          required:
            - run
            - attempt
            - mount
            - project
            - capture
            - result
            - acted_as
            - connection
            - branch
            - reason
          additionalProperties: false
    SpanEventType:
      type: string
      allOf:
        - pattern: ^span\.\S+$
    Objects_415:
      type: object
      properties:
        content:
          type: string
        attachments:
          type: array
          items:
            type: string
        authored_by: false
        caused_by: false
      required:
        - content
      additionalProperties: false
    Objects_417:
      type: object
      properties:
        authored_by: false
        caused_by: false
      additionalProperties: false
    Objects_419:
      type: object
      properties:
        tool_use_id:
          type: string
        result: {}
        authored_by: false
        caused_by: false
      required:
        - tool_use_id
        - result
      additionalProperties: false
    Union_392:
      type: number
      enum:
        - 2
        - 3
        - 4
        - 5
        - 6
        - 7
    Objects_421:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_257'
        requested_by:
          $ref: '#/components/schemas/Union_98'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_253'
        agent_installation_id:
          $ref: '#/components/schemas/Union_362'
        surface_scope_id:
          $ref: '#/components/schemas/Union_363'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
      required:
        - run
        - trigger
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
      additionalProperties: false
    Objects_423:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        trigger:
          $ref: '#/components/schemas/Union_257'
        requested_by: false
        acted_as: false
        caused_by: false
      required:
        - run
        - trigger
      additionalProperties: false
    Objects_425:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
      required:
        - run
        - attempt
      additionalProperties: false
    Objects_427:
      type: object
      properties:
        tool:
          $ref: '#/components/schemas/Union_340'
        args: {}
      required:
        - tool
        - args
      additionalProperties: false
    Objects_429:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        stop_reason:
          $ref: '#/components/schemas/Union_260'
        cost:
          $ref: '#/components/schemas/Objects_148'
      required:
        - run
        - stop_reason
        - cost
      additionalProperties: false
    Objects_431:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        error:
          $ref: '#/components/schemas/Objects_149'
      required:
        - run
        - error
      additionalProperties: false
    Objects_433:
      type: object
      properties:
        run:
          $ref: '#/components/schemas/RunId'
        attempt:
          $ref: '#/components/schemas/RunAttemptId'
        action:
          anyOf:
            - type: object
              properties:
                kind:
                  type: string
                  enum:
                    - custom_tool
                tool_use_id:
                  type: string
              required:
                - kind
                - tool_use_id
              additionalProperties: false
      required:
        - run
        - attempt
        - action
      additionalProperties: false
    Union_393:
      type: number
      enum:
        - 31
        - 32
        - 33
        - 34
        - 35
        - 36
        - 37
        - 38
        - 39
        - 40
        - 41
        - 42
        - 43
        - 44
        - 45
    Objects_435:
      type: object
      properties:
        delivery:
          $ref: '#/components/schemas/WebhookDeliveryId'
        endpoint:
          $ref: '#/components/schemas/WebhookEndpointId'
        provider_coordinate:
          $ref: '#/components/schemas/EventId'
        delivery_grade:
          type: string
          enum:
            - at_most_once_on_ambiguity
        reason:
          type: string
          enum:
            - acknowledgement_lost
      required:
        - delivery
        - endpoint
        - provider_coordinate
        - delivery_grade
        - reason
      additionalProperties: false
    Union_394:
      type: number
      enum:
        - 43
        - 44
        - 45
    Union_395:
      anyOf:
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_256'
            requested_by:
              $ref: '#/components/schemas/Union_98'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_252'
            agent_installation_id:
              $ref: '#/components/schemas/Union_254'
            surface_scope_id:
              $ref: '#/components/schemas/Union_255'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins:
              $ref: '#/components/schemas/Objects_34'
            connected_runtime: false
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - execution_pins
          additionalProperties: false
        - type: object
          properties:
            run:
              $ref: '#/components/schemas/RunId'
            trigger:
              $ref: '#/components/schemas/Union_256'
            requested_by:
              $ref: '#/components/schemas/Union_98'
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            caused_by:
              $ref: '#/components/schemas/Union_252'
            agent_installation_id:
              $ref: '#/components/schemas/Union_254'
            surface_scope_id:
              $ref: '#/components/schemas/Union_255'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
            execution_pins: false
            connected_runtime:
              $ref: '#/components/schemas/Objects_311'
          required:
            - run
            - trigger
            - requested_by
            - acted_as
            - caused_by
            - agent_installation_id
            - surface_scope_id
            - connected_runtime
          additionalProperties: false
    Union_196:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - mixed_script_confusable
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            replacement:
              type: string
              allOf:
                - maxLength: 5
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
            - replacement
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - bidirectional_control
            utf16_offset:
              type: integer
              allOf:
                - minimum: 0
            code_point:
              type: string
              allOf:
                - pattern: ^U\+[0-9A-F]{4,6}$
            answer_id:
              type: string
            value_index:
              type: integer
              allOf:
                - minimum: 0
          required:
            - kind
            - utf16_offset
            - code_point
          additionalProperties: false
    MessageContentPlainTextData:
      type: string
      allOf:
        - minLength: 1
    MessageContentBase64Data:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1048576
    FileId:
      type: string
      allOf:
        - pattern: ^file_[0-9a-f]{32}$
    Union_253:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api
            request_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - external_event
            external_installation_id:
              $ref: '#/components/schemas/CollaborationInstallationId'
            surface_scope_id:
              $ref: '#/components/schemas/SurfaceScopeId'
            external_event_id:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - external_installation_id
            - surface_scope_id
            - external_event_id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - watch
            watch:
              $ref: '#/components/schemas/WatchId'
            source_state_hash:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - watch
            - source_state_hash
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session_thread
            session:
              $ref: '#/components/schemas/SessionId'
            session_thread_id:
              $ref: '#/components/schemas/SessionThreadId'
            run:
              $ref: '#/components/schemas/RunId'
          required:
            - kind
            - session
            - session_thread_id
            - run
          additionalProperties: false
    Union_252:
      anyOf:
        - $ref: '#/components/schemas/Union_253'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - action_approval
            approval:
              $ref: '#/components/schemas/ActionApprovalId'
          required:
            - kind
            - approval
          additionalProperties: false
    OutcomeId:
      type: string
      allOf:
        - pattern: ^outc_[0-9a-f]{32}$
    OutcomeDescription:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 4096
          description: >-
            A non-empty, at-most-4,096-character definition of the Outcome's
            done state.
    SubagentId:
      type: string
      allOf:
        - pattern: ^subg_[0-9a-f]{32}$
    Objects_204:
      type: object
      properties:
        model_routing_profile_key:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
        access_source:
          $ref: '#/components/schemas/Union_66'
      required:
        - model_routing_profile_key
        - model
        - tier
        - reason
        - access_source
      additionalProperties: false
    Objects_73:
      type: object
      properties:
        input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cached_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        cache_write_input_tokens:
          type: integer
          allOf:
            - minimum: 0
        output_tokens:
          type: integer
          allOf:
            - minimum: 0
        reasoning_output_tokens:
          type: integer
          allOf:
            - minimum: 0
        total_tokens:
          type: integer
          allOf:
            - minimum: 0
      required:
        - input_tokens
        - cached_input_tokens
        - cache_write_input_tokens
        - output_tokens
        - reasoning_output_tokens
        - total_tokens
      additionalProperties: false
    Objects_207:
      type: object
      properties:
        model_routing_profile_key:
          type: string
        model:
          type: string
        tier:
          type: string
        reason:
          type: string
      required:
        - model_routing_profile_key
        - model
        - tier
        - reason
      additionalProperties: false
    Union_340:
      anyOf:
        - type: string
          allOf:
            - pattern: ^conn_[0-9a-f]{32}:\S+$
        - type: string
          allOf:
            - pattern: ^harness:\S+$
    ProviderToolName:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 256
    Objects_149:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/Union_235'
        message:
          type: string
        more:
          type: string
          allOf:
            - pattern: ^https:\/\/docs\.checkfu\.com\/reference\/errors#[a-z0-9-]+$
      required:
        - type
        - message
      additionalProperties: false
    ManagedQuestionItems:
      type: array
      items:
        type: object
        properties:
          id:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[A-Za-z0-9_-]+$
          prompt:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 4096
          header:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 4096
          options:
            type: array
            items:
              type: object
              properties:
                label:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
                description:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 4096
              required:
                - label
              additionalProperties: false
            allOf:
              - maxItems: 32
          allow_multiple:
            type: boolean
        required:
          - id
          - prompt
          - options
          - allow_multiple
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 4
    Union_260:
      type: string
      enum:
        - end_turn
        - requires_action
        - interrupted
        - retries_exhausted
        - max_tokens
        - max_turn_requests
        - refusal
        - error
        - budget_reached
    Union_235:
      type: string
      enum:
        - validation.malformed
        - validation.prompt_integrity_review_required
        - validation.not_found
        - validation.conflict
        - validation.idempotency_conflict
        - validation.idempotency_in_progress
        - validation.payload_too_large
        - validation.range_too_large
        - auth.invalid_key
        - auth.disabled_tenancy
        - policy.denied
        - budget.exceeded
        - model.no_eligible_model
        - model.credential_rejected
        - model.platform_supply_unavailable
        - model.platform_capacity_reached
        - billing.entitlement_unavailable
        - billing.usage_limit_reached
        - billing.payment_required
        - billing.seat_activation_unavailable
        - memory.not_found
        - memory.conflict
        - memory.read_only
        - memory.invalid_path
        - memory.backend_unavailable
        - memory.curation_failed
        - runtime.invalid_transition
        - runtime.primary_thread
        - runtime.checkpoint_expired
        - runtime.session_history_unavailable
        - runtime.harness_unavailable
        - runtime.harness_failed
        - runtime.runner_unavailable
        - runtime.lease_lost
        - runtime.start_timeout
        - runtime.provisioning_suspended
        - runtime.turn_deadline_exceeded
        - runtime.observation_gap
        - runtime.observation_conflict
        - runtime.attestation_invalid
        - runtime.harness_incompatible
        - runtime.internal
    Union_98:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            principal:
              $ref: '#/components/schemas/PrincipalId'
          required:
            - kind
            - principal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - system
            name:
              type: string
              allOf:
                - minLength: 1
                - maxLength: 512
          required:
            - kind
            - name
          additionalProperties: false
    Union_362:
      anyOf:
        - $ref: '#/components/schemas/AgentInstallationId'
        - type: 'null'
    Union_363:
      anyOf:
        - $ref: '#/components/schemas/SurfaceScopeId'
        - type: 'null'
    Objects_261:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/AgentId'
        version:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        source_draft_revision:
          type: integer
          allOf:
            - exclusiveMinimum: 0
      required:
        - id
        - version
        - source_draft_revision
      additionalProperties: false
    Objects_262:
      type: object
      properties:
        harness_profile_id:
          $ref: '#/components/schemas/HarnessProfileId'
        harness_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        release_id:
          $ref: '#/components/schemas/HarnessReleaseId'
        release_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        driver_version:
          type: string
          allOf:
            - minLength: 1
      required:
        - harness_profile_id
        - harness_profile_revision_number
        - release_id
        - release_digest
        - driver_version
      additionalProperties: false
    RecordedModelUsageEvidence:
      anyOf:
        - type: object
          properties:
            model_routing_profile_id:
              $ref: '#/components/schemas/ModelRoutingProfileId'
            revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            eligible_candidates:
              $ref: '#/components/schemas/Arrays_48'
            access: false
            usage_evidence: false
          required:
            - model_routing_profile_id
            - revision_number
            - eligible_candidates
          additionalProperties: false
        - type: object
          properties:
            model_routing_profile_id:
              $ref: '#/components/schemas/ModelRoutingProfileId'
            revision_number:
              type: integer
              allOf:
                - exclusiveMinimum: 0
            eligible_candidates:
              $ref: '#/components/schemas/Arrays_48'
            access:
              type: string
              enum:
                - harness_owned
            usage_evidence:
              type: string
              enum:
                - absent
          required:
            - model_routing_profile_id
            - revision_number
            - eligible_candidates
            - access
            - usage_evidence
          additionalProperties: false
    Objects_263:
      type: object
      properties:
        sandbox_profile_id:
          $ref: '#/components/schemas/SandboxProfileId'
        sandbox_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        derived_image_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - sandbox_profile_id
        - sandbox_profile_revision_number
        - derived_image_digest
      additionalProperties: false
    Arrays_49:
      type: array
      items:
        type: object
        properties:
          check:
            $ref: '#/components/schemas/Objects_53'
          decision:
            $ref: '#/components/schemas/Objects_54'
        required:
          - check
          - decision
        additionalProperties: false
    WorkEnvironmentResolution:
      type: object
      properties:
        disposition:
          type: string
          enum:
            - resolved
            - refused
        resolver_version:
          type: string
          enum:
            - work-environment-resolver/v1
        preset_catalog_version:
          type: number
          enum:
            - 1
        normalized_requirements:
          $ref: '#/components/schemas/WorkEnvironmentRequirements'
        resolved_kind:
          type: string
          enum:
            - none
            - session_sandbox
            - computer
        requires_screen:
          type: boolean
        forced_by:
          type: array
          items:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 128
              - pattern: ^[a-z_]+(?:\.[a-z_]+)*$
          allOf:
            - maxItems: 16
        selected_provider:
          anyOf:
            - type: object
              properties:
                provider:
                  type: string
                  allOf:
                    - minLength: 1
                    - maxLength: 128
                    - pattern: ^[a-z0-9][a-z0-9._-]*$
                tuple_digest:
                  type: string
                  allOf:
                    - pattern: ^sha256:[0-9a-f]{64}$
                evidence_grade:
                  type: string
                  enum:
                    - double
                    - live_qualified
              required:
                - provider
                - tuple_digest
                - evidence_grade
              additionalProperties: false
            - type: 'null'
        considered:
          type: array
          items:
            type: object
            properties:
              provider:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 128
                  - pattern: ^[a-z0-9][a-z0-9._-]*$
              tuple_digest:
                type: string
                allOf:
                  - pattern: ^sha256:[0-9a-f]{64}$
              qualified:
                type: boolean
              reasons:
                type: array
                items:
                  type: object
                  properties:
                    code:
                      type: string
                      enum:
                        - live_qualification_missing
                        - execution_unsupported
                        - lifetime_unsupported
                        - presentation_unsupported
                        - human_access_unsupported
                        - observation_transport_unsafe
                        - exclusive_control_unfenced
                        - placement_unsupported
                        - recovery_unsupported
                        - retention_unsupported
                        - network_unsupported
                        - network_enforcement_unsupported
                        - region_unsupported
                        - resource_insufficient
                        - gpu_unsupported
                        - isolation_unsupported
                    requirement_path:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 128
                        - pattern: ^[a-z_]+(?:\.[a-z_]+)*$
                    expected:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 512
                    observed:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 512
                    evidence_reference:
                      anyOf:
                        - type: string
                          allOf:
                            - minLength: 1
                            - maxLength: 512
                        - type: 'null'
                  required:
                    - code
                    - requirement_path
                    - expected
                    - observed
                    - evidence_reference
                  additionalProperties: false
                allOf:
                  - maxItems: 32
            required:
              - provider
              - tuple_digest
              - qualified
              - reasons
            additionalProperties: false
          allOf:
            - maxItems: 64
        warnings:
          type: array
          items:
            type: object
            properties:
              code:
                anyOf:
                  - type: string
                    enum:
                      - shared_profile_credentials
              message:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 512
              acknowledgement_required:
                type: boolean
            required:
              - code
              - message
              - acknowledgement_required
            additionalProperties: false
          allOf:
            - maxItems: 16
        estimated_usage_dimensions:
          type: array
          items:
            type: string
            enum:
              - compute_seconds
              - screen_seconds
              - storage_mib_seconds
          allOf:
            - maxItems: 3
        refusal:
          anyOf:
            - $ref: '#/components/schemas/WorkEnvironmentRefusal'
            - type: 'null'
        portability:
          type: string
          enum:
            - not_applicable
            - unproved
            - single_live_provider
            - portable
        candidate_set_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        resolution_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - disposition
        - resolver_version
        - preset_catalog_version
        - normalized_requirements
        - resolved_kind
        - requires_screen
        - forced_by
        - selected_provider
        - considered
        - warnings
        - estimated_usage_dimensions
        - refusal
        - portability
        - candidate_set_digest
        - resolution_digest
      additionalProperties: false
      description: >-
        A deterministic allocation-free explanation of work-environment
        admission.
    Objects_162:
      type: object
      properties:
        requested_by:
          $ref: '#/components/schemas/Union_98'
        acted_as:
          $ref: '#/components/schemas/PrincipalId'
        caused_by:
          $ref: '#/components/schemas/Union_252'
        agent_installation_id:
          $ref: '#/components/schemas/Union_254'
        surface_scope_id:
          $ref: '#/components/schemas/Union_255'
        surface_scope_kind:
          type: string
          enum:
            - root
            - team
            - channel
            - personal
      required:
        - requested_by
        - acted_as
        - caused_by
        - agent_installation_id
        - surface_scope_id
      additionalProperties: false
    RunId:
      type: string
      allOf:
        - pattern: ^run_[0-9a-f]{32}$
    CheckpointId:
      type: string
      allOf:
        - pattern: ^ckpt_[0-9a-f]{32}$
    Union_314:
      anyOf:
        - anyOf:
            - type: object
              properties:
                id:
                  $ref: '#/components/schemas/MountId'
                kind:
                  type: string
                  enum:
                    - project
                project_id:
                  $ref: '#/components/schemas/ProjectId'
                mount_path:
                  $ref: '#/components/schemas/MountPath'
                revision_policy:
                  $ref: '#/components/schemas/Union_221'
                access:
                  $ref: '#/components/schemas/Union_222'
                writeback:
                  type: 'null'
              required:
                - id
                - kind
                - project_id
                - mount_path
                - revision_policy
                - access
              additionalProperties: false
            - type: object
              properties:
                id:
                  $ref: '#/components/schemas/MountId'
                kind:
                  type: string
                  enum:
                    - project
                project_id:
                  $ref: '#/components/schemas/ProjectId'
                mount_path:
                  $ref: '#/components/schemas/MountPath'
                revision_policy:
                  $ref: '#/components/schemas/Union_221'
                access:
                  type: string
                  enum:
                    - read_write
                writeback:
                  $ref: '#/components/schemas/Objects_131'
              required:
                - id
                - kind
                - project_id
                - mount_path
                - revision_policy
                - access
                - writeback
              additionalProperties: false
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/MountId'
            kind:
              type: string
              enum:
                - file
            file_id:
              $ref: '#/components/schemas/FileId'
            mount_path:
              $ref: '#/components/schemas/MountPath'
            access:
              type: string
              enum:
                - read_only
          required:
            - id
            - kind
            - file_id
            - mount_path
            - access
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_173'
    MountId:
      type: string
      allOf:
        - pattern: ^mnt_[0-9a-f]{32}$
    Objects_175:
      type: object
      properties:
        kind:
          type: string
          enum:
            - tool
            - skill
        ref:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 512
      required:
        - kind
        - ref
      additionalProperties: false
    ProjectId:
      type: string
      allOf:
        - pattern: ^prj_[0-9a-f]{32}$
    MountPath:
      type: string
      allOf:
        - minLength: 2
        - maxLength: 1024
    Union_221:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - latest
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - pinned
            revision:
              type: integer
              allOf:
                - exclusiveMinimum: 0
          required:
            - kind
            - revision
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - ref
            ref:
              $ref: '#/components/schemas/GitReference'
          required:
            - kind
            - ref
          additionalProperties: false
    Union_222:
      type: string
      enum:
        - read_only
        - read_write
    Union_187:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - upload
          required:
            - kind
          additionalProperties: false
        - $ref: '#/components/schemas/Objects_114'
    Objects_131:
      type: object
      properties:
        kind:
          type: string
          enum:
            - pull_request
        commit_message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        pull_request_title:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 256
        pull_request_body:
          type: string
          allOf:
            - maxLength: 16384
      required:
        - kind
      additionalProperties: false
    Objects_114:
      type: object
      properties:
        kind:
          type: string
          enum:
            - git
        provider:
          type: string
          enum:
            - github
        repository:
          $ref: '#/components/schemas/GitHubRepository'
        ref:
          $ref: '#/components/schemas/GitReference'
        commit_sha:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
        tree_sha:
          type: string
          allOf:
            - pattern: ^(?:[0-9a-f]{40}|[0-9a-f]{64})$
      required:
        - kind
        - provider
        - repository
        - ref
        - commit_sha
      additionalProperties: false
    Objects_173:
      type: object
      properties:
        store:
          $ref: '#/components/schemas/MemoryStoreId'
        requested:
          $ref: '#/components/schemas/Union_223'
        effective:
          $ref: '#/components/schemas/Union_223'
        instructions:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 4096
        mount_path:
          $ref: '#/components/schemas/MountPath'
      required:
        - store
        - requested
        - effective
      additionalProperties: false
    ResolvedSkillsMountIntegrity:
      type: object
      properties:
        kind:
          type: string
          enum:
            - skills
        mount_path:
          $ref: '#/components/schemas/MountPath'
        skills:
          type: array
          items:
            type: object
            properties:
              skill_id:
                $ref: '#/components/schemas/SkillId'
              name:
                type: string
                allOf:
                  - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
              skill_kind:
                $ref: '#/components/schemas/Union_138'
              version:
                type: integer
                allOf:
                  - exclusiveMinimum: 0
              content_sha256:
                type: string
                allOf:
                  - pattern: ^sha256:[0-9a-f]{64}$
            required:
              - skill_id
              - name
              - skill_kind
              - version
              - content_sha256
            additionalProperties: false
          allOf:
            - minItems: 1
      required:
        - kind
        - mount_path
        - skills
      additionalProperties: false
    MemoryStoreId:
      type: string
      allOf:
        - pattern: ^memstore_[0-9a-f]{32}$
    Union_223:
      type: string
      enum:
        - read_only
        - read_write
    MemoryRevisionId:
      type: string
      allOf:
        - pattern: ^mrev_[0-9a-f]{32}$
    MemoryPath:
      type: string
    Union_111:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - canonical
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session
            session:
              $ref: '#/components/schemas/SessionId'
          required:
            - kind
            - session
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - proposal
            proposal:
              $ref: '#/components/schemas/MemoryProposalId'
          required:
            - kind
            - proposal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - curation
            run:
              $ref: '#/components/schemas/CurationRunId'
          required:
            - kind
            - run
          additionalProperties: false
    MemoryProposalId:
      type: string
      allOf:
        - pattern: ^mprop_[0-9a-f]{32}$
    Union_109:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            principal:
              $ref: '#/components/schemas/PrincipalId'
          required:
            - kind
            - principal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api_key
            key:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - key
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session_agent
            session:
              $ref: '#/components/schemas/SessionId'
            agent:
              $ref: '#/components/schemas/AgentId'
          required:
            - kind
            - session
            - agent
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - curator
            run:
              $ref: '#/components/schemas/CurationRunId'
          required:
            - kind
            - run
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - platform
            operation:
              type: string
              enum:
                - import
                - redaction
          required:
            - kind
            - operation
          additionalProperties: false
    CurationRunId:
      type: string
      allOf:
        - pattern: ^mcur_[0-9a-f]{32}$
    RunAttemptId:
      type: string
      allOf:
        - pattern: ^ratt_[0-9a-f]{32}$
    Objects_164:
      type: object
      properties:
        unit:
          $ref: '#/components/schemas/Union_283'
        quantity_millionths:
          type: integer
          allOf:
            - minimum: 0
      required:
        - unit
        - quantity_millionths
      additionalProperties: false
    Objects_302:
      type: object
      properties:
        source:
          anyOf:
            - type: string
              enum:
                - openai
                - anthropic
                - google
                - openrouter
                - replay
            - type: string
              pattern: ^extension:[\s\S]*?$
        content_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        bytes:
          type: integer
          allOf:
            - minimum: 0
      required:
        - source
        - content_digest
        - bytes
      additionalProperties: false
    ToolInvocationId:
      type: string
      allOf:
        - pattern: ^tinv_[0-9a-f]{32}$
    ConnectionId:
      type: string
      allOf:
        - pattern: ^conn_[0-9a-f]{32}$
    ToolSourceId:
      type: string
      allOf:
        - pattern: ^ts_[0-9a-f]{32}$
    Union_274:
      type: string
      enum:
        - builtin
        - executor
        - connector
    Union_257:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - automation
            automation:
              $ref: '#/components/schemas/AutomationId'
          required:
            - kind
            - automation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - question
            question:
              $ref: '#/components/schemas/QuestionId'
          required:
            - kind
            - question
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - outcome
            outcome:
              $ref: '#/components/schemas/OutcomeId'
          required:
            - kind
            - outcome
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - watch
            watch:
              $ref: '#/components/schemas/WatchId'
            source_state_hash:
              type: string
              allOf:
                - pattern: ^sha256:[0-9a-f]{64}$
          required:
            - kind
            - watch
            - source_state_hash
          additionalProperties: false
    Objects_34:
      type: object
      properties:
        agent_id:
          $ref: '#/components/schemas/AgentId'
        agent_release_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness_profile_id:
          $ref: '#/components/schemas/HarnessProfileId'
        harness_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        harness_release_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        harness_driver_version:
          type: string
        sandbox_profile_id:
          $ref: '#/components/schemas/SandboxProfileId'
        sandbox_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        sandbox_image_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        model_routing_profile_id:
          $ref: '#/components/schemas/ModelRoutingProfileId'
        model_routing_profile_revision_number:
          type: integer
          allOf:
            - exclusiveMinimum: 0
        plane_policy_hash:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        selected_skills:
          $ref: '#/components/schemas/Arrays_9'
        selected_tools:
          $ref: '#/components/schemas/Arrays_10'
        instructions_sha256:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
      required:
        - agent_id
        - agent_release_number
        - harness_profile_id
        - harness_profile_revision_number
        - harness_release_digest
        - harness_driver_version
        - sandbox_profile_id
        - sandbox_profile_revision_number
        - sandbox_image_digest
        - model_routing_profile_id
        - model_routing_profile_revision_number
        - plane_policy_hash
      additionalProperties: false
    Objects_311:
      type: object
      properties:
        kind:
          type: string
          enum:
            - connected
        protocol:
          type: string
          enum:
            - acp-v1
        runtime:
          $ref: '#/components/schemas/ConnectedRuntimeId'
      required:
        - kind
        - protocol
      additionalProperties: false
    SandboxProfileId:
      type: string
      allOf:
        - pattern: ^sprof_[0-9a-f]{32}$
    Arrays_9:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
    Arrays_10:
      type: array
      items:
        type: string
        allOf:
          - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
    RunnerPoolId:
      type: string
      allOf:
        - pattern: ^rpool_[0-9a-f]{32}$
    Objects_45:
      type: object
      properties:
        provider_id:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        provider_revision:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        materialization_revision:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        placement:
          $ref: '#/components/schemas/Union_18'
        runtime_assurances:
          $ref: '#/components/schemas/Objects_9'
        runner_pool:
          $ref: '#/components/schemas/RunnerPoolId'
      required:
        - provider_id
        - provider_revision
        - materialization_revision
        - placement
        - runner_pool
      additionalProperties: false
    Objects_21:
      type: object
      properties:
        event_fidelity:
          type: string
          enum:
            - native
            - structured
            - text_only
            - minimal
        continuation:
          type: string
          enum:
            - in_flight
            - next_turn
            - rebuild_only
        checkpoint:
          type: string
          enum:
            - process_and_disk
            - disk_only
            - conversation_only
            - none
        approval_delivery:
          type: string
          enum:
            - park
            - snapshot_release
            - end_reinject
            - unsupported
        interrupt:
          type: string
          enum:
            - cooperative
            - kill_only
        mid_run_input:
          type: string
          enum:
            - native
            - turn_boundary_only
            - unsupported
        model_control:
          type: string
          enum:
            - platform_enforced
            - compatible
            - opaque
            - harness_owned
        usage_authority:
          type: string
          enum:
            - platform_observed
            - harness_reported
            - unknown
        multiagent_shared_environment:
          type: boolean
        subagents:
          type: string
          enum:
            - observed
            - flatten
      required:
        - event_fidelity
        - continuation
        - checkpoint
        - approval_delivery
        - interrupt
        - mid_run_input
        - model_control
        - usage_authority
        - multiagent_shared_environment
      additionalProperties: false
    Objects_148:
      type: object
      properties:
        tokens:
          type: integer
          allOf:
            - minimum: 0
        tool_calls:
          type: integer
          allOf:
            - minimum: 0
        active_ms:
          type: integer
          allOf:
            - minimum: 0
      additionalProperties: false
    ActionApprovalId:
      anyOf:
        - $ref: '#/components/schemas/NonBrowserActionApprovalId'
        - $ref: '#/components/schemas/BrowserActionApprovalId'
      description: >-
        an ActionApprovalId of the form approval_<32 hex chars> or bapproval_<32
        hex chars>
    Union_67:
      type: string
      enum:
        - post_materialize
        - pre_writeback
    Union_379:
      type: string
      enum:
        - passed
        - failed
        - timed_out
        - slot_unavailable
        - skipped
    Union_68:
      type: string
      enum:
        - abort
        - continue
    SandboxLifecycleHookOutput:
      type: string
      allOf:
        - maxLength: 8192
    ModelRoutingProfileId:
      type: string
      allOf:
        - pattern: ^mrp_[0-9a-f]{32}$
    Union_66:
      anyOf:
        - $ref: '#/components/schemas/Objects_41'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - platform_supply
            provider:
              type: string
              allOf:
                - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
            usage_entry_id:
              $ref: '#/components/schemas/UsageEntryId'
            supply_id:
              $ref: '#/components/schemas/PlatformSupplyId'
            credential_generation_id:
              $ref: '#/components/schemas/SupplyCredentialGenerationId'
            rate_card_id:
              $ref: '#/components/schemas/BillingRateCardId'
            rated_at:
              $ref: '#/components/schemas/PlatformModelRatedAt'
          required:
            - kind
            - provider
            - usage_entry_id
            - supply_id
            - credential_generation_id
            - rate_card_id
            - rated_at
          additionalProperties: false
    Union_382:
      type: string
      enum:
        - binding_unavailable
        - model_refused
        - budget
        - consultation_unrecorded
        - not_available
    Objects_367:
      type: object
      properties:
        connection:
          $ref: '#/components/schemas/ConnectionId'
        tool:
          $ref: '#/components/schemas/Union_340'
        arg_hash:
          type: string
        principal:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - connection
        - tool
        - arg_hash
        - principal
      additionalProperties: false
    Objects_368:
      type: object
      properties:
        kind:
          type: string
          enum:
            - custom_tool
        session:
          $ref: '#/components/schemas/SessionId'
        run:
          $ref: '#/components/schemas/RunId'
        tool_use_id:
          type: string
        agent_definition:
          $ref: '#/components/schemas/AgentId'
        tool:
          $ref: '#/components/schemas/Union_340'
        arg_hash:
          type: string
        principal:
          $ref: '#/components/schemas/PrincipalId'
      required:
        - kind
        - session
        - run
        - tool_use_id
        - agent_definition
        - tool
        - arg_hash
        - principal
      additionalProperties: false
    HarnessToolUseId:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 256
    AgentId:
      type: string
      allOf:
        - pattern: ^agent_[0-9a-f]{32}$
    AgentInstallationId:
      type: string
      allOf:
        - pattern: ^aini_[0-9a-f]{32}$
    Union_85:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - system
          required:
            - kind
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - api_key
            id:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            id:
              $ref: '#/components/schemas/PrincipalId'
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - console_user
            id:
              type: string
              allOf:
                - minLength: 1
            authenticated_by:
              $ref: '#/components/schemas/ApiKeyId'
          required:
            - kind
            - id
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - operator
            id:
              type: string
              allOf:
                - minLength: 1
          required:
            - kind
            - id
          additionalProperties: false
    Union_150:
      type: string
      enum:
        - satisfied
        - needs_revision
        - max_iterations_reached
        - failed
        - interrupted
    OutcomeReportResultStatus:
      type: object
      properties:
        status:
          type: string
          enum:
            - accepted
            - rejected
        extraction:
          type: string
          enum:
            - json
            - model
        outputs:
          type: array
          items:
            anyOf:
              - type: object
                properties:
                  kind:
                    type: string
                    enum:
                      - invalid
                  key:
                    type: string
                    allOf:
                      - pattern: ^[a-z][a-z0-9_]{0,49}$
                  title:
                    type: string
                    allOf:
                      - minLength: 1
                      - maxLength: 200
                  type:
                    type: string
                    enum:
                      - string
                      - integer
                      - number
                      - boolean
                  reason:
                    type: string
                    enum:
                      - source_invalid
                      - missing
                      - type_mismatch
                      - not_integer
                  accepted:
                    type: boolean
                    enum:
                      - false
                required:
                  - kind
                  - key
                  - title
                  - type
                  - reason
                  - accepted
                additionalProperties: false
              - anyOf:
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - string
                      value:
                        type: string
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - integer
                      value:
                        type: integer
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - number
                      value:
                        type: number
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
                  - type: object
                    properties:
                      kind:
                        type: string
                        enum:
                          - extracted
                      key:
                        type: string
                        allOf:
                          - pattern: ^[a-z][a-z0-9_]{0,49}$
                      title:
                        type: string
                        allOf:
                          - minLength: 1
                          - maxLength: 200
                      type:
                        type: string
                        enum:
                          - boolean
                      value:
                        type: boolean
                      accepted:
                        type: boolean
                    required:
                      - kind
                      - key
                      - title
                      - type
                      - value
                      - accepted
                    additionalProperties: false
          allOf:
            - minItems: 1
            - maxItems: 32
      required:
        - status
        - extraction
        - outputs
      additionalProperties: false
    FlowReviewId:
      type: string
      allOf:
        - pattern: ^flrev_[0-9a-f]{32}$
    AutomationId:
      type: string
      allOf:
        - pattern: ^auto_[0-9a-f]{32}$
    AutomationFiringId:
      type: string
      allOf:
        - pattern: ^afire_[0-9a-f]{32}$
    Objects_130:
      type: object
      properties:
        model_routing_profile_key:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        tier:
          $ref: '#/components/schemas/Union_129'
        criteria:
          $ref: '#/components/schemas/UniqueFlowReviewCriteria'
      required:
        - model_routing_profile_key
        - criteria
      additionalProperties: false
    Union_128:
      type: string
      enum:
        - cheapest_sufficient
        - pinned
        - fallback
    Objects_163:
      type: object
      properties:
        tier:
          $ref: '#/components/schemas/Union_129'
        provider:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 255
        effort:
          type: string
          enum:
            - minimal
            - low
            - medium
            - high
            - max
        speed:
          type: string
          enum:
            - standard
            - fast
      required:
        - tier
        - provider
        - model
      additionalProperties: false
    Objects_41:
      type: object
      properties:
        kind:
          type: string
          enum:
            - workspace_credential
        provider:
          type: string
          allOf:
            - pattern: ^[a-z0-9](?:[a-z0-9._-]{0,93})$
        model_credential_id:
          $ref: '#/components/schemas/ModelCredentialId'
        model_credential_generation_id:
          $ref: '#/components/schemas/ModelCredentialGenerationId'
      required:
        - kind
        - provider
        - model_credential_id
        - model_credential_generation_id
      additionalProperties: false
    Objects_151:
      type: object
      properties:
        key:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 64
            - pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
        result:
          type: string
          enum:
            - pass
            - concern
            - unknown
        explanation:
          type: string
          allOf:
            - maxLength: 512
        event_ids:
          type: array
          items:
            $ref: '#/components/schemas/EventId'
          allOf:
            - maxItems: 16
      required:
        - key
        - result
        - explanation
        - event_ids
      additionalProperties: false
    Union_265:
      type: string
      enum:
        - evidence_unavailable
        - evidence_unsupported
        - evidence_too_large
        - source_erased
        - reviewer_unavailable
    WatchId:
      type: string
      allOf:
        - pattern: ^wch_[0-9a-f]{32}$
    ProjectCaptureId:
      type: string
      allOf:
        - pattern: ^pcap_[0-9a-f]{32}$
    Objects_401:
      type: object
      properties:
        kind:
          type: string
          enum:
            - changes
        capture_id:
          $ref: '#/components/schemas/ProjectCaptureId'
        manifest_digest:
          type: string
          allOf:
            - pattern: ^sha256:[0-9a-f]{64}$
        operation_count:
          type: integer
          allOf:
            - exclusiveMinimum: 0
            - maximum: 2048
        put_count:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 1024
        reserved_bytes:
          type: integer
          allOf:
            - minimum: 0
            - maximum: 20971520
        sealed_at:
          $ref: '#/components/schemas/ProjectCaptureTimestamp'
      required:
        - kind
        - capture_id
        - manifest_digest
        - operation_count
        - put_count
        - reserved_bytes
        - sealed_at
      additionalProperties: false
    GitBranchName:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 255
    Union_391:
      type: string
      enum:
        - ineligible_mount
        - nested_mount
        - listing_failed
        - listing_invalid
        - incomplete_listing
        - invalid_path
        - unsupported_entry
        - duplicate_path
        - path_conflict
        - file_limit
        - file_too_large
        - tree_too_large
        - operation_limit
        - read_failed
        - missing_body
        - body_size_mismatch
        - body_digest_mismatch
        - digest_unavailable
        - manifest_invalid
        - capture_unavailable
        - capture_invalid
        - authority_lost
        - retention_refused
        - transfer_unavailable
    WebhookDeliveryId:
      type: string
      allOf:
        - pattern: ^wdel_[0-9a-f]{32}$
    WebhookEndpointId:
      type: string
      allOf:
        - pattern: ^whe_[0-9a-f]{32}$
    Union_256:
      anyOf:
        - $ref: '#/components/schemas/Union_257'
        - type: object
          properties:
            kind:
              type: string
              enum:
                - action_approval
            approval:
              $ref: '#/components/schemas/ActionApprovalId'
          required:
            - kind
            - approval
          additionalProperties: false
    Union_254:
      anyOf:
        - $ref: '#/components/schemas/AgentInstallationId'
        - type: 'null'
    Union_255:
      anyOf:
        - $ref: '#/components/schemas/SurfaceScopeId'
        - type: 'null'
    CollaborationInstallationId:
      type: string
      allOf:
        - pattern: ^exti_[0-9a-f]{32}$
    HarnessProfileId:
      type: string
      allOf:
        - pattern: ^hprof_[0-9a-f]{32}$
    HarnessReleaseId:
      type: string
      allOf:
        - pattern: ^hrel_[0-9a-f]{32}$
    Arrays_48:
      type: array
      prefixItems:
        - $ref: '#/components/schemas/Objects_163'
      minItems: 1
      items:
        $ref: '#/components/schemas/Objects_163'
    Objects_53:
      type: object
      properties:
        subject:
          $ref: '#/components/schemas/Union_92'
        resource:
          $ref: '#/components/schemas/Objects_51'
        permission:
          $ref: '#/components/schemas/Union_94'
        context:
          type: object
          properties:
            requested_by:
              anyOf:
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - principal
                    principal:
                      $ref: '#/components/schemas/PrincipalId'
                  required:
                    - kind
                    - principal
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - automation
                    automation:
                      $ref: '#/components/schemas/AutomationId'
                  required:
                    - kind
                    - automation
                  additionalProperties: false
                - type: object
                  properties:
                    kind:
                      type: string
                      enum:
                        - system
                    name:
                      type: string
                      allOf:
                        - minLength: 1
                        - maxLength: 512
                  required:
                    - kind
                    - name
                  additionalProperties: false
            acted_as:
              $ref: '#/components/schemas/PrincipalId'
            surface_scope_id:
              $ref: '#/components/schemas/SurfaceScopeId'
            surface_scope_kind:
              type: string
              enum:
                - root
                - team
                - channel
                - personal
          additionalProperties: false
      required:
        - subject
        - resource
        - permission
      additionalProperties: false
    Objects_54:
      type: object
      properties:
        disposition:
          type: string
          enum:
            - allow
            - require_approval
            - deny
        reason:
          type: string
          enum:
            - no_matching_permission_assignment
            - permission_assignment_allows
            - action_policy_allows
            - action_policy_requires_approval
            - action_policy_denies
            - permission_assignment_expired
            - permission_assignment_not_yet_active
        permission_assignment_ids:
          type: array
          items:
            $ref: '#/components/schemas/PermissionAssignmentId'
        matched_action_policy_rules:
          type: array
          items:
            type: object
            properties:
              action_policy_id:
                $ref: '#/components/schemas/ActionPolicyId'
              rule_id:
                type: string
                allOf:
                  - minLength: 1
                  - maxLength: 255
              effect:
                $ref: '#/components/schemas/Union_102'
            required:
              - action_policy_id
              - rule_id
              - effect
            additionalProperties: false
      required:
        - disposition
        - reason
        - permission_assignment_ids
        - matched_action_policy_rules
      additionalProperties: false
    WorkEnvironmentRequirements:
      type: object
      properties:
        schema_version:
          type: number
          enum:
            - 1
        execution:
          $ref: '#/components/schemas/Arrays_16'
        lifetime:
          type: string
          enum:
            - run
            - session
            - durable
        presentation:
          type: string
          enum:
            - none
            - browser
            - desktop
        human_access:
          type: string
          enum:
            - none
            - observe
            - exclusive_takeover
        placement:
          $ref: '#/components/schemas/Arrays_17'
        isolation:
          type: object
          properties:
            filesystem:
              $ref: '#/components/schemas/Union_86'
            browser_profile:
              $ref: '#/components/schemas/Union_86'
            process_namespace:
              $ref: '#/components/schemas/Union_86'
            credentials:
              type: string
              enum:
                - grant_bound
                - profile_shared
            clipboard:
              type: string
              enum:
                - disabled
                - attachment
                - scope_shared
            downloads:
              $ref: '#/components/schemas/Union_86'
          required:
            - filesystem
            - browser_profile
            - process_namespace
            - credentials
            - clipboard
            - downloads
          additionalProperties: false
        recovery:
          $ref: '#/components/schemas/Union_87'
        retention:
          $ref: '#/components/schemas/WorkEnvironmentRetention'
        network:
          $ref: '#/components/schemas/WorkEnvironmentNetwork'
        locality:
          $ref: '#/components/schemas/WorkEnvironmentLocality'
        resources:
          $ref: '#/components/schemas/WorkEnvironmentResources'
      required:
        - schema_version
        - execution
        - lifetime
        - presentation
        - human_access
        - placement
        - isolation
        - recovery
        - retention
        - network
        - locality
        - resources
      additionalProperties: false
    WorkEnvironmentRefusal:
      type: object
      properties:
        code:
          type: string
          enum:
            - human_access_requires_presentation
            - browser_presentation_requires_browser_visual
            - desktop_presentation_requires_desktop_gui
            - browser_recovery_requires_browser
            - recovery_requires_durable_lifetime
            - zdr_forbids_shared_credentials
            - zdr_forbids_export
            - bounded_retention_requires_maximum
            - unbounded_retention_forbids_maximum
            - allowlist_requires_policy_revision
            - network_policy_revision_not_applicable
            - residency_requires_region
            - compute_requires_placement
            - durable_lifetime_requires_execution
            - resources_require_execution
            - shared_isolation_requires_durable_lifetime
            - override_weakens_preset
            - provider_candidate_limit_exceeded
            - duplicate_provider_candidate
            - no_qualified_provider
            - authorization_denied
            - budget_denied
        requirement_path:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 128
            - pattern: ^[a-z_]+(?:\.[a-z_]+)*$
        message:
          type: string
          allOf:
            - minLength: 1
            - maxLength: 512
      required:
        - code
        - requirement_path
        - message
      additionalProperties: false
      description: A stable, provider-neutral reason a work environment cannot be admitted.
    GitReference:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
        - pattern: ^\S+$
    GitHubRepository:
      type: string
      allOf:
        - pattern: ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$
        - maxLength: 202
    SkillId:
      type: string
      allOf:
        - pattern: ^skl_[0-9a-f]{32}$
    Union_138:
      type: string
      enum:
        - instructional
        - executable
    ApiKeyId:
      type: string
      allOf:
        - pattern: ^akey_[0-9a-f]{32}$
    Union_283:
      type: string
      enum:
        - image
        - video_second
        - compute_second
    Union_18:
      type: string
      enum:
        - local
        - hosted
        - byoc
    Objects_9:
      type: object
      properties:
        compute_accounting:
          type: boolean
        network_isolation:
          type: boolean
        bounded_start:
          type: boolean
        bounded_cancel:
          type: boolean
        teardown:
          type: boolean
      required:
        - compute_accounting
        - network_isolation
        - bounded_start
        - bounded_cancel
        - teardown
      additionalProperties: false
    NonBrowserActionApprovalId:
      type: string
      allOf:
        - pattern: ^approval_[0-9a-f]{32}$
    BrowserActionApprovalId:
      type: string
      allOf:
        - pattern: ^bapproval_[0-9a-f]{32}$
    UsageEntryId:
      type: string
      allOf:
        - pattern: ^use_[0-9a-f]{32}$
    PlatformSupplyId:
      type: string
      allOf:
        - pattern: ^sup_[0-9a-f]{32}$
    SupplyCredentialGenerationId:
      type: string
      allOf:
        - pattern: ^sgen_[0-9a-f]{32}$
    BillingRateCardId:
      type: string
      allOf:
        - pattern: ^rate_[0-9a-f]{32}$
    PlatformModelRatedAt:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 model-rating instant with millisecond
            precision.
    Union_129:
      type: string
      enum:
        - default
        - planning
        - tool_loop
    UniqueFlowReviewCriteria:
      type: array
      items:
        type: object
        properties:
          key:
            type: string
            allOf:
              - minLength: 1
              - maxLength: 64
              - pattern: ^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$
          description:
            $ref: '#/components/schemas/FlowReviewCriterionDescription'
          severity:
            type: string
            enum:
              - low
              - medium
              - high
        required:
          - key
          - description
          - severity
        additionalProperties: false
      allOf:
        - minItems: 1
        - maxItems: 16
    ModelCredentialId:
      type: string
      allOf:
        - pattern: ^mcred_[0-9a-f]{32}$
    ModelCredentialGenerationId:
      type: string
      allOf:
        - pattern: ^mcgen_[0-9a-f]{32}$
    ProjectCaptureTimestamp:
      type: string
      allOf:
        - maxLength: 24
        - pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
          description: >-
            A canonical UTC ISO-8601 Project capture timestamp with millisecond
            precision.
    Union_92:
      anyOf:
        - type: object
          properties:
            kind:
              type: string
              enum:
                - principal
            principal:
              $ref: '#/components/schemas/PrincipalId'
          required:
            - kind
            - principal
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - group
            group:
              $ref: '#/components/schemas/PrincipalGroupId'
          required:
            - kind
            - group
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - agent_definition
            agent:
              $ref: '#/components/schemas/AgentId'
          required:
            - kind
            - agent
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - agent_installation
            installation:
              $ref: '#/components/schemas/AgentInstallationId'
          required:
            - kind
            - installation
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - surface_scope
            surface:
              $ref: '#/components/schemas/SurfaceScopeId'
          required:
            - kind
            - surface
          additionalProperties: false
        - type: object
          properties:
            kind:
              type: string
              enum:
                - session
            session:
              $ref: '#/components/schemas/SessionId'
          required:
            - kind
            - session
          additionalProperties: false
    Objects_51:
      type: object
      properties:
        kind:
          $ref: '#/components/schemas/Union_93'
        id:
          type: string
          allOf:
            - minLength: 1
      required:
        - kind
        - id
      additionalProperties: false
    Union_94:
      type: string
      enum:
        - read
        - write
        - use
        - invoke
        - steer
        - observe
        - approve
        - edit
        - view
        - act_as
        - use_agent
        - use_connection
        - use_tool
        - use_memory
        - use_model
        - use_harness
        - use_environment
        - publish_artifact
        - create_routine
        - manage_routine
    PermissionAssignmentId:
      type: string
      allOf:
        - pattern: ^perm_[0-9a-f]{32}$
    ActionPolicyId:
      type: string
      allOf:
        - pattern: ^apol_[0-9a-f]{32}$
    Union_102:
      type: string
      enum:
        - allow
        - require_approval
        - deny
    Arrays_16:
      type: array
      items:
        type: string
        enum:
          - shell
          - filesystem
          - network_server
          - browser_dom
          - browser_visual
          - desktop_gui
      allOf:
        - maxItems: 6
    Arrays_17:
      type: array
      items:
        type: string
        enum:
          - managed
          - local
          - connected
      allOf:
        - maxItems: 3
    Union_86:
      type: string
      enum:
        - attachment
        - application
        - scope_shared
    Union_87:
      type: string
      enum:
        - none
        - filesystem
        - browser_profile
        - full_instance
    WorkEnvironmentRetention:
      type: object
      properties:
        mode:
          type: string
          enum:
            - ephemeral_zdr
            - bounded
            - durable
        maximum_seconds:
          anyOf:
            - type: integer
              allOf:
                - exclusiveMinimum: 0
                - maximum: 315360000
            - type: 'null'
        export:
          type: string
          enum:
            - forbidden
            - allowed
      required:
        - mode
        - maximum_seconds
        - export
      additionalProperties: false
      description: >-
        Retention duration, durability mode, and export policy for a work
        environment.
    WorkEnvironmentNetwork:
      type: object
      properties:
        mode:
          type: string
          enum:
            - none
            - allowlist
            - unrestricted
        policy:
          anyOf:
            - type: object
              properties:
                action_policy_id:
                  $ref: '#/components/schemas/ActionPolicyId'
                action_policy_version:
                  type: integer
                  allOf:
                    - exclusiveMinimum: 0
              required:
                - action_policy_id
                - action_policy_version
              additionalProperties: false
            - type: 'null'
      required:
        - mode
        - policy
      additionalProperties: false
      description: >-
        Network access mode and optional versioned action policy for a work
        environment.
    WorkEnvironmentLocality:
      type: object
      properties:
        regions:
          $ref: '#/components/schemas/Arrays_18'
        residency_required:
          type: boolean
      required:
        - regions
        - residency_required
      additionalProperties: false
      description: >-
        Ordered eligible regions and residency requirement for a work
        environment.
    WorkEnvironmentResources:
      type: object
      properties:
        minimum_vcpu:
          anyOf:
            - type: integer
              allOf:
                - exclusiveMinimum: 0
                - maximum: 1024
            - type: 'null'
        minimum_memory_mib:
          anyOf:
            - type: integer
              allOf:
                - exclusiveMinimum: 0
                - maximum: 4194304
            - type: 'null'
        minimum_disk_mib:
          anyOf:
            - type: integer
              allOf:
                - exclusiveMinimum: 0
                - maximum: 1073741824
            - type: 'null'
        gpu:
          $ref: '#/components/schemas/Union_88'
      required:
        - minimum_vcpu
        - minimum_memory_mib
        - minimum_disk_mib
        - gpu
      additionalProperties: false
      description: >-
        Minimum compute, memory, disk, and GPU requirements for a work
        environment.
    FlowReviewCriterionDescription:
      type: string
      allOf:
        - minLength: 1
        - maxLength: 1024
    PrincipalGroupId:
      type: string
      allOf:
        - pattern: ^pgrp_[0-9a-f]{32}$
    Union_93:
      type: string
      enum:
        - agent-definition
        - connection
        - tool-source
        - skill
        - memory-store
        - model-binding
        - harness
        - sandbox-profile
        - surface
    Arrays_18:
      type: array
      items:
        type: string
        allOf:
          - minLength: 1
          - maxLength: 64
          - pattern: ^[a-z0-9][a-z0-9-]*$
      allOf:
        - maxItems: 32
    Union_88:
      type: string
      enum:
        - forbidden
        - optional
        - required
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````