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

# Update Session

> The server checks current session access and resource permissions on every request. Acceptance does not prove provider execution.

Send a new `title` or `archived` value. Archiving changes navigation only; it does not cancel operations or remove history. Only the session administrator can change this metadata.


## OpenAPI

````yaml openapi-v3.json PATCH /v3/sessions/{sessionId}
openapi: 3.1.0
info:
  title: Navigator
  version: 3.0.0
servers:
  - url: https://api.darwin.so/api
security: []
paths:
  /v3/sessions/{sessionId}:
    patch:
      tags:
        - Sessions
      summary: Update Session
      description: >-
        The server checks current session access and resource permissions on
        every request. Acceptance does not prove provider execution.
      operationId: update_session
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
            pattern: ^asst_[a-f0-9-]{36}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSessionRequest'
      responses:
        '200':
          description: Accepted state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NavigateResponse'
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Current access or resource authority denied.
        '404':
          description: Not found.
        '409':
          description: Idempotency or revision conflict.
        '429':
          description: >-
            Request rate or guest session allowance exceeded. The error code
            distinguishes message, operation, agent and concurrency limits.
        '503':
          description: Service unavailable.
      security:
        - apiKey: []
        - bearer: []
components:
  schemas:
    UpdateSessionRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 160
        archived:
          type: boolean
        brief:
          type: string
          maxLength: 4000
      additionalProperties: false
    NavigateResponse:
      type: object
      properties:
        threadId:
          description: Deprecated alias for sessionId.
          type: string
          pattern: ^asst_[a-f0-9-]{36}$
        conversationId:
          type: string
          pattern: ^asst_[a-f0-9-]{36}$
        delivery:
          type: object
          properties:
            version:
              type: string
              const: composer.delivery.v1
            audience:
              type: string
              enum:
                - human
                - agent
              description: >-
                Who consumes this response. Controls presentation only; never
                identity, permissions, or approval.
            status:
              type: string
              enum:
                - composed
                - fallback
            markdown:
              type: string
            ui:
              type: object
              properties:
                version:
                  type: string
                  const: darwinui-agent-v1
                components:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        minLength: 1
                      kind:
                        type: string
                        minLength: 1
                      title:
                        type: string
                      data: {}
                      text:
                        type: string
                      actions:
                        default: []
                        type: array
                        items:
                          type: object
                          properties:
                            label:
                              type: string
                            available:
                              type: boolean
                            requiredInputs:
                              type: array
                              items:
                                type: string
                            approval:
                              type: string
                            binding:
                              type: object
                              properties:
                                name:
                                  type: string
                                arguments:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties: {}
                              required:
                                - name
                                - arguments
                              additionalProperties: false
                            reason:
                              type: string
                          required:
                            - label
                            - available
                            - requiredInputs
                            - approval
                          additionalProperties: false
                    required:
                      - id
                      - kind
                      - title
                      - data
                      - actions
                    additionalProperties: false
                incomplete:
                  default: []
                  type: array
                  items:
                    type: string
              required:
                - version
                - components
                - incomplete
              additionalProperties: false
            presentation:
              type: object
              properties:
                version:
                  type: string
                  enum:
                    - composer.v1
                    - composer.v2
                selection:
                  type: object
                  properties:
                    version:
                      type: string
                      const: composer-selection.v1
                    catalogRevision:
                      type: integer
                      exclusiveMinimum: 0
                      maximum: 9007199254740991
                    catalogHash:
                      type: string
                    operationId:
                      anyOf:
                        - type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        - type: 'null'
                    stateId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    variantId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    model:
                      type: string
                    confidence:
                      type: number
                      minimum: 0
                      maximum: 1
                    fallback:
                      anyOf:
                        - type: string
                        - type: 'null'
                    latencyMs:
                      type: number
                      minimum: 0
                    inputTokens:
                      type: number
                      minimum: 0
                  required:
                    - version
                    - catalogRevision
                    - catalogHash
                    - operationId
                    - stateId
                    - variantId
                    - model
                    - confidence
                    - fallback
                    - latencyMs
                    - inputTokens
                  additionalProperties: false
                decision:
                  type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    model:
                      type: string
                    questionVersion:
                      type: string
                    catalogVersion:
                      type: string
                    mode:
                      type: string
                      enum:
                        - shadow
                        - active
                    eligible:
                      type: array
                      items:
                        type: string
                        enum:
                          - markdown
                          - simple
                          - react
                          - world
                          - video
                          - audio
                          - game
                          - image
                          - model3d
                    selected:
                      type: string
                      enum:
                        - markdown
                        - simple
                        - react
                        - world
                        - video
                        - audio
                        - game
                        - image
                        - model3d
                    audio:
                      type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - speech
                            - music
                        voice:
                          type: string
                          enum:
                            - Rachel
                            - Aria
                        speed:
                          type: number
                          minimum: 0.7
                          maximum: 1.2
                      required:
                        - kind
                        - voice
                        - speed
                      additionalProperties: false
                    audioSelection:
                      type: object
                      properties:
                        model:
                          type: string
                        questionVersion:
                          type: string
                        latencyMs:
                          type: number
                          minimum: 0
                        inputTokens:
                          default: 0
                          type: number
                          minimum: 0
                        answers:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              choice:
                                type: string
                              confidence:
                                type: number
                                minimum: 0
                                maximum: 1
                              probabilities:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    value:
                                      type: string
                                    probability:
                                      type: number
                                      minimum: 0
                                      maximum: 1
                                  required:
                                    - value
                                    - probability
                                  additionalProperties: false
                            required:
                              - name
                              - choice
                              - confidence
                            additionalProperties: false
                      required:
                        - model
                        - questionVersion
                        - latencyMs
                        - inputTokens
                        - answers
                      additionalProperties: false
                    supporting:
                      default: []
                      maxItems: 2
                      type: array
                      items:
                        type: string
                        enum:
                          - markdown
                          - simple
                          - react
                          - world
                          - video
                          - audio
                          - game
                          - image
                          - model3d
                    override:
                      anyOf:
                        - type: string
                          enum:
                            - markdown
                            - simple
                            - react
                            - world
                            - video
                            - audio
                            - game
                            - image
                            - model3d
                        - type: 'null'
                    confidence:
                      type: number
                      minimum: 0
                      maximum: 1
                    probabilities:
                      type: array
                      items:
                        type: object
                        properties:
                          value:
                            type: string
                            enum:
                              - markdown
                              - simple
                              - react
                              - world
                              - video
                              - audio
                              - game
                              - image
                              - model3d
                          probability:
                            type: number
                            minimum: 0
                            maximum: 1
                        required:
                          - value
                          - probability
                        additionalProperties: false
                    transition:
                      type: string
                      enum:
                        - retain
                        - update
                        - replace
                    fallback:
                      anyOf:
                        - type: string
                        - type: 'null'
                    latencyMs:
                      type: number
                      minimum: 0
                    inputTokens:
                      type: number
                      minimum: 0
                    appliedPolicies:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          version:
                            type: number
                          scope:
                            type: string
                          probability:
                            type: number
                            minimum: 0
                            maximum: 1
                        required:
                          - id
                          - version
                          - scope
                          - probability
                        additionalProperties: false
                  required:
                    - id
                    - model
                    - questionVersion
                    - catalogVersion
                    - mode
                    - eligible
                    - selected
                    - supporting
                    - override
                    - confidence
                    - probabilities
                    - transition
                    - fallback
                    - latencyMs
                    - inputTokens
                    - appliedPolicies
                  additionalProperties: false
                experience:
                  type: object
                  properties:
                    decisionId:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    surfaces:
                      minItems: 1
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          capability:
                            type: string
                            enum:
                              - markdown
                              - simple
                              - react
                              - world
                              - video
                              - audio
                              - game
                              - image
                              - model3d
                          role:
                            type: string
                            enum:
                              - primary
                              - supporting
                              - fallback
                          status:
                            type: string
                            enum:
                              - ready
                              - pending
                              - failed
                              - unavailable
                          artifactId:
                            anyOf:
                              - type: string
                                format: uuid
                                pattern: >-
                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                              - type: 'null'
                          sessionId:
                            anyOf:
                              - type: string
                              - type: 'null'
                          assetJobId:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          generated:
                            type: object
                            properties:
                              title:
                                type: string
                                minLength: 1
                                maxLength: 160
                              summary:
                                type: string
                                maxLength: 3000
                              layout:
                                type: string
                                enum:
                                  - stack
                                  - columns
                              representation:
                                type: string
                                enum:
                                  - components
                                  - react
                                  - media
                                  - agent
                              artifact:
                                anyOf:
                                  - anyOf:
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: research
                                          question:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            description: >-
                                              One focused research question in 10-18
                                              words.
                                          focus:
                                            minItems: 2
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                          sourceTypes:
                                            maxItems: 3
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                        required:
                                          - kind
                                          - question
                                          - focus
                                          - sourceTypes
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: extraction
                                          url:
                                            anyOf:
                                              - type: string
                                                maxLength: 2048
                                              - type: 'null'
                                          purpose:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                          fields:
                                            minItems: 2
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                description:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 110
                                              required:
                                                - name
                                                - description
                                              additionalProperties: false
                                        required:
                                          - kind
                                          - url
                                          - purpose
                                          - fields
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: directory
                                          audience:
                                            type: string
                                            minLength: 1
                                            maxLength: 240
                                            description: >-
                                              The target prospect audience, e.g.
                                              independent fitness studios. Never the
                                              role of the person using this interface.
                                          criteria:
                                            minItems: 2
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                value:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                              required:
                                                - label
                                                - value
                                              additionalProperties: false
                                          columns:
                                            minItems: 2
                                            maxItems: 5
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                          questions:
                                            maxItems: 3
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                        required:
                                          - kind
                                          - audience
                                          - criteria
                                          - columns
                                          - questions
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: studio
                                          headline:
                                            type: string
                                            minLength: 1
                                            maxLength: 60
                                          direction:
                                            type: string
                                            minLength: 1
                                            maxLength: 140
                                          palette:
                                            minItems: 2
                                            maxItems: 5
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                color:
                                                  type: string
                                                  pattern: ^#[0-9a-fA-F]{6}$
                                              required:
                                                - name
                                                - color
                                              additionalProperties: false
                                          imageBrief:
                                            type: string
                                            minLength: 1
                                            maxLength: 420
                                        required:
                                          - kind
                                          - headline
                                          - direction
                                          - palette
                                          - imageBrief
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: storyboard
                                          durationSeconds:
                                            type: number
                                            minimum: 1
                                            maximum: 600
                                          aspectRatio:
                                            type: string
                                            enum:
                                              - '9:16'
                                              - '16:9'
                                              - '1:1'
                                              - '4:5'
                                          scenes:
                                            minItems: 2
                                            maxItems: 5
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                start:
                                                  type: number
                                                  minimum: 0
                                                end:
                                                  type: number
                                                  exclusiveMinimum: 0
                                                visual:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 350
                                                caption:
                                                  type: string
                                                  maxLength: 150
                                              required:
                                                - title
                                                - start
                                                - end
                                                - visual
                                                - caption
                                              additionalProperties: false
                                        required:
                                          - kind
                                          - durationSeconds
                                          - aspectRatio
                                          - scenes
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: editorial
                                          script:
                                            type: string
                                            minLength: 1
                                            maxLength: 3000
                                          tone:
                                            type: string
                                            minLength: 1
                                            maxLength: 240
                                          targetSeconds:
                                            anyOf:
                                              - type: number
                                                minimum: 1
                                                maximum: 1800
                                              - type: 'null'
                                        required:
                                          - kind
                                          - script
                                          - tone
                                          - targetSeconds
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: comparison
                                          question:
                                            type: string
                                            minLength: 1
                                            maxLength: 90
                                            description: >-
                                              A concise decision question in 4-10
                                              words, not a restatement of the entire
                                              brief.
                                          criteria:
                                            minItems: 2
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 50
                                          options:
                                            minItems: 2
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 42
                                                values:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: string
                                                    maxLength: 120
                                              required:
                                                - name
                                                - values
                                              additionalProperties: false
                                          basis:
                                            type: string
                                            minLength: 1
                                            maxLength: 240
                                            description: >-
                                              State whether these are proposed
                                              approaches, supplied facts, or verified
                                              evidence. Never invent product features
                                              or scores.
                                        required:
                                          - kind
                                          - question
                                          - criteria
                                          - options
                                          - basis
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: planner
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 80
                                          steps:
                                            minItems: 2
                                            maxItems: 6
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                                detail:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                durationMinutes:
                                                  anyOf:
                                                    - type: integer
                                                      minimum: 1
                                                      maximum: 10080
                                                    - type: 'null'
                                              required:
                                                - title
                                                - detail
                                                - durationMinutes
                                              additionalProperties: false
                                        required:
                                          - kind
                                          - title
                                          - steps
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            const: estimate
                                          title:
                                            type: string
                                            minLength: 1
                                            maxLength: 80
                                          currency:
                                            type: string
                                            enum:
                                              - USD
                                              - EUR
                                              - GBP
                                              - CAD
                                              - AUD
                                              - INR
                                              - JPY
                                          items:
                                            minItems: 1
                                            maxItems: 6
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                label:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 60
                                                  description: >-
                                                    Item name only. Never duplicate
                                                    quantities, currency amounts or unit
                                                    costs in this label; the user can edit
                                                    those independently.
                                                quantity:
                                                  type: number
                                                  minimum: 0
                                                  maximum: 1000000
                                                unitCost:
                                                  type: number
                                                  minimum: 0
                                                  maximum: 100000000
                                              required:
                                                - label
                                                - quantity
                                                - unitCost
                                              additionalProperties: false
                                          contingencyPercent:
                                            type: number
                                            minimum: 0
                                            maximum: 100
                                          assumptions:
                                            type: string
                                            minLength: 1
                                            maxLength: 300
                                            description: >-
                                              Explicitly identify any assumed prices,
                                              quantities and currency. These are
                                              editable estimates, not provider quotes.
                                        required:
                                          - kind
                                          - title
                                          - currency
                                          - items
                                          - contingencyPercent
                                          - assumptions
                                        additionalProperties: false
                                  - type: 'null'
                              journey:
                                anyOf:
                                  - type: object
                                    properties:
                                      stage:
                                        type: string
                                        enum:
                                          - input
                                          - review
                                          - ready
                                          - complete
                                      instruction:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                      action:
                                        anyOf:
                                          - type: object
                                            properties:
                                              kind:
                                                default: continue
                                                type: string
                                                enum:
                                                  - continue
                                                  - execute
                                                  - copy
                                              label:
                                                type: string
                                                minLength: 1
                                                maxLength: 60
                                              intent:
                                                type: string
                                                minLength: 1
                                                maxLength: 800
                                                description: >-
                                                  A concrete next-step instruction in
                                                  plain language. Never an opaque command
                                                  token such as confirm_criteria.
                                              operationId:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                              argumentsJson:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 16000
                                                  - type: 'null'
                                            required:
                                              - kind
                                              - label
                                              - intent
                                              - operationId
                                              - argumentsJson
                                            additionalProperties: false
                                          - type: 'null'
                                    required:
                                      - stage
                                      - instruction
                                      - action
                                    additionalProperties: false
                                  - type: 'null'
                              design:
                                type: object
                                properties:
                                  character:
                                    type: string
                                    enum:
                                      - editorial
                                      - research
                                      - extraction
                                      - directory
                                      - storyboard
                                      - studio
                                      - comparison
                                      - planner
                                      - estimate
                                      - utility
                                  density:
                                    type: string
                                    enum:
                                      - relaxed
                                      - compact
                                required:
                                  - character
                                  - density
                                additionalProperties: false
                              runtimeRegions:
                                maxItems: 4
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                    sectionId:
                                      type: string
                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                    libraryDigest:
                                      type: string
                                      pattern: ^[a-f0-9]{64}$
                                    status:
                                      type: string
                                      enum:
                                        - generated
                                        - ready
                                        - unavailable
                                    artifactId:
                                      anyOf:
                                        - type: string
                                          format: uuid
                                          pattern: >-
                                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                        - type: 'null'
                                    tree:
                                      anyOf:
                                        - type: object
                                          properties:
                                            nodes:
                                              minItems: 1
                                              maxItems: 12
                                              type: array
                                              items: {}
                                          required:
                                            - nodes
                                          additionalProperties: false
                                        - type: 'null'
                                    inputFields:
                                      maxItems: 16
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 80
                                    failure:
                                      anyOf:
                                        - type: string
                                          maxLength: 120
                                        - type: 'null'
                                    model:
                                      type: string
                                      maxLength: 160
                                    inputTokens:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                    outputTokens:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - id
                                    - sectionId
                                    - libraryDigest
                                    - status
                                    - artifactId
                                    - tree
                                    - inputFields
                                    - failure
                                  additionalProperties: false
                              sections:
                                minItems: 1
                                maxItems: 12
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                    kind:
                                      type: string
                                      enum:
                                        - message
                                        - list
                                        - fields
                                        - operation
                                        - progress
                                        - results
                                        - notice
                                    title:
                                      type: string
                                      maxLength: 160
                                    text:
                                      type: string
                                      maxLength: 4000
                                    items:
                                      maxItems: 20
                                      type: array
                                      items:
                                        type: string
                                        maxLength: 800
                                    operationId:
                                      anyOf:
                                        - type: string
                                          maxLength: 200
                                        - type: 'null'
                                  required:
                                    - id
                                    - kind
                                    - title
                                    - text
                                    - items
                                    - operationId
                                  additionalProperties: false
                              next:
                                maxItems: 3
                                type: array
                                items:
                                  type: object
                                  properties:
                                    label:
                                      type: string
                                      maxLength: 100
                                    intent:
                                      type: string
                                      maxLength: 500
                                    confidence:
                                      type: number
                                      minimum: 0
                                      maximum: 1
                                  required:
                                    - label
                                    - intent
                                    - confidence
                                  additionalProperties: false
                              reactSource:
                                anyOf:
                                  - type: string
                                    maxLength: 50000
                                  - type: 'null'
                              mediaPrompt:
                                anyOf:
                                  - type: string
                                    maxLength: 4000
                                  - type: 'null'
                            required:
                              - title
                              - summary
                              - layout
                              - representation
                              - sections
                              - next
                              - reactSource
                              - mediaPrompt
                            additionalProperties: false
                          markdown:
                            type: string
                            maxLength: 20000
                          failure:
                            anyOf:
                              - type: string
                              - type: 'null'
                          actionReferences:
                            type: array
                            items:
                              type: string
                          evidenceReferences:
                            type: array
                            items:
                              type: string
                        required:
                          - id
                          - capability
                          - role
                          - status
                          - artifactId
                          - sessionId
                          - actionReferences
                          - evidenceReferences
                        additionalProperties: false
                  required:
                    - decisionId
                    - surfaces
                  additionalProperties: false
                runId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                revision:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                mode:
                  type: string
                  enum:
                    - live
                    - replay
                    - simulation
                request:
                  type: object
                  properties:
                    clientRequestId:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    agentId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    message:
                      type: string
                      minLength: 1
                      maxLength: 8000
                    interaction:
                      type: object
                      properties:
                        type:
                          type: string
                          enum:
                            - edit
                            - continue
                        modality:
                          type: string
                          enum:
                            - text
                            - voice
                            - image
                            - audio
                            - video
                            - file
                        fields:
                          type: object
                          propertyNames:
                            type: string
                            minLength: 1
                            maxLength: 120
                          additionalProperties:
                            type: string
                            maxLength: 5000
                      required:
                        - type
                        - fields
                      additionalProperties: false
                    operationId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    authoring:
                      type: object
                      properties:
                        draftId:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        revision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                      required:
                        - draftId
                        - revision
                      additionalProperties: false
                    audio:
                      type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - speech
                            - music
                        voice:
                          type: string
                          enum:
                            - Rachel
                            - Aria
                        speed:
                          type: number
                          minimum: 0.7
                          maximum: 1.2
                      additionalProperties: false
                    presentationOverride:
                      type: string
                      enum:
                        - markdown
                        - simple
                        - react
                        - world
                        - video
                        - audio
                        - game
                        - image
                        - model3d
                    threadId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    threadKind:
                      default: assist
                      type: string
                      enum:
                        - assist
                        - operation
                    turnId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    previousRunId:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    expectedRevision:
                      type: integer
                      minimum: 0
                      maximum: 9007199254740991
                    mode:
                      default: live
                      type: string
                      enum:
                        - live
                        - replay
                        - simulation
                    host:
                      default:
                        audience: human
                        capabilities:
                          - components
                          - markdown
                          - structured
                        viewport: desktop
                        theme: light
                      type: object
                      properties:
                        audience:
                          default: human
                          type: string
                          enum:
                            - human
                            - agent
                          description: >-
                            Who consumes this response. Controls presentation
                            only; never identity, permissions, or approval.
                        capabilities:
                          default:
                            - components
                            - markdown
                            - structured
                          minItems: 1
                          maxItems: 6
                          type: array
                          items:
                            type: string
                            enum:
                              - components
                              - runtime_components
                              - react
                              - media
                              - markdown
                              - structured
                        viewport:
                          default: desktop
                          type: string
                          enum:
                            - mobile
                            - desktop
                        theme:
                          default: light
                          type: string
                          enum:
                            - light
                            - dark
                      required:
                        - audience
                        - capabilities
                        - viewport
                        - theme
                      additionalProperties: false
                  required:
                    - clientRequestId
                    - agentId
                    - message
                    - threadKind
                    - mode
                    - host
                  additionalProperties: false
                generated:
                  type: object
                  properties:
                    title:
                      type: string
                      minLength: 1
                      maxLength: 160
                    summary:
                      type: string
                      maxLength: 3000
                    layout:
                      type: string
                      enum:
                        - stack
                        - columns
                    representation:
                      type: string
                      enum:
                        - components
                        - react
                        - media
                        - agent
                    artifact:
                      anyOf:
                        - anyOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: research
                                question:
                                  type: string
                                  minLength: 1
                                  maxLength: 160
                                  description: >-
                                    One focused research question in 10-18
                                    words.
                                focus:
                                  minItems: 2
                                  maxItems: 4
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                                sourceTypes:
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                              required:
                                - kind
                                - question
                                - focus
                                - sourceTypes
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: extraction
                                url:
                                  anyOf:
                                    - type: string
                                      maxLength: 2048
                                    - type: 'null'
                                purpose:
                                  type: string
                                  minLength: 1
                                  maxLength: 160
                                fields:
                                  minItems: 2
                                  maxItems: 4
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 110
                                    required:
                                      - name
                                      - description
                                    additionalProperties: false
                              required:
                                - kind
                                - url
                                - purpose
                                - fields
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: directory
                                audience:
                                  type: string
                                  minLength: 1
                                  maxLength: 240
                                  description: >-
                                    The target prospect audience, e.g.
                                    independent fitness studios. Never the role
                                    of the person using this interface.
                                criteria:
                                  minItems: 2
                                  maxItems: 4
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      label:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      value:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                    required:
                                      - label
                                      - value
                                    additionalProperties: false
                                columns:
                                  minItems: 2
                                  maxItems: 5
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                                questions:
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 240
                              required:
                                - kind
                                - audience
                                - criteria
                                - columns
                                - questions
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: studio
                                headline:
                                  type: string
                                  minLength: 1
                                  maxLength: 60
                                direction:
                                  type: string
                                  minLength: 1
                                  maxLength: 140
                                palette:
                                  minItems: 2
                                  maxItems: 5
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      color:
                                        type: string
                                        pattern: ^#[0-9a-fA-F]{6}$
                                    required:
                                      - name
                                      - color
                                    additionalProperties: false
                                imageBrief:
                                  type: string
                                  minLength: 1
                                  maxLength: 420
                              required:
                                - kind
                                - headline
                                - direction
                                - palette
                                - imageBrief
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: storyboard
                                durationSeconds:
                                  type: number
                                  minimum: 1
                                  maximum: 600
                                aspectRatio:
                                  type: string
                                  enum:
                                    - '9:16'
                                    - '16:9'
                                    - '1:1'
                                    - '4:5'
                                scenes:
                                  minItems: 2
                                  maxItems: 5
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      start:
                                        type: number
                                        minimum: 0
                                      end:
                                        type: number
                                        exclusiveMinimum: 0
                                      visual:
                                        type: string
                                        minLength: 1
                                        maxLength: 350
                                      caption:
                                        type: string
                                        maxLength: 150
                                    required:
                                      - title
                                      - start
                                      - end
                                      - visual
                                      - caption
                                    additionalProperties: false
                              required:
                                - kind
                                - durationSeconds
                                - aspectRatio
                                - scenes
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: editorial
                                script:
                                  type: string
                                  minLength: 1
                                  maxLength: 3000
                                tone:
                                  type: string
                                  minLength: 1
                                  maxLength: 240
                                targetSeconds:
                                  anyOf:
                                    - type: number
                                      minimum: 1
                                      maximum: 1800
                                    - type: 'null'
                              required:
                                - kind
                                - script
                                - tone
                                - targetSeconds
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: comparison
                                question:
                                  type: string
                                  minLength: 1
                                  maxLength: 90
                                  description: >-
                                    A concise decision question in 4-10 words,
                                    not a restatement of the entire brief.
                                criteria:
                                  minItems: 2
                                  maxItems: 4
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 50
                                options:
                                  minItems: 2
                                  maxItems: 4
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 42
                                      values:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: string
                                          maxLength: 120
                                    required:
                                      - name
                                      - values
                                    additionalProperties: false
                                basis:
                                  type: string
                                  minLength: 1
                                  maxLength: 240
                                  description: >-
                                    State whether these are proposed approaches,
                                    supplied facts, or verified evidence. Never
                                    invent product features or scores.
                              required:
                                - kind
                                - question
                                - criteria
                                - options
                                - basis
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: planner
                                title:
                                  type: string
                                  minLength: 1
                                  maxLength: 80
                                steps:
                                  minItems: 2
                                  maxItems: 6
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                        minLength: 1
                                        maxLength: 80
                                      detail:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      durationMinutes:
                                        anyOf:
                                          - type: integer
                                            minimum: 1
                                            maximum: 10080
                                          - type: 'null'
                                    required:
                                      - title
                                      - detail
                                      - durationMinutes
                                    additionalProperties: false
                              required:
                                - kind
                                - title
                                - steps
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  const: estimate
                                title:
                                  type: string
                                  minLength: 1
                                  maxLength: 80
                                currency:
                                  type: string
                                  enum:
                                    - USD
                                    - EUR
                                    - GBP
                                    - CAD
                                    - AUD
                                    - INR
                                    - JPY
                                items:
                                  minItems: 1
                                  maxItems: 6
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      label:
                                        type: string
                                        minLength: 1
                                        maxLength: 60
                                        description: >-
                                          Item name only. Never duplicate
                                          quantities, currency amounts or unit
                                          costs in this label; the user can edit
                                          those independently.
                                      quantity:
                                        type: number
                                        minimum: 0
                                        maximum: 1000000
                                      unitCost:
                                        type: number
                                        minimum: 0
                                        maximum: 100000000
                                    required:
                                      - label
                                      - quantity
                                      - unitCost
                                    additionalProperties: false
                                contingencyPercent:
                                  type: number
                                  minimum: 0
                                  maximum: 100
                                assumptions:
                                  type: string
                                  minLength: 1
                                  maxLength: 300
                                  description: >-
                                    Explicitly identify any assumed prices,
                                    quantities and currency. These are editable
                                    estimates, not provider quotes.
                              required:
                                - kind
                                - title
                                - currency
                                - items
                                - contingencyPercent
                                - assumptions
                              additionalProperties: false
                        - type: 'null'
                    journey:
                      anyOf:
                        - type: object
                          properties:
                            stage:
                              type: string
                              enum:
                                - input
                                - review
                                - ready
                                - complete
                            instruction:
                              type: string
                              minLength: 1
                              maxLength: 160
                            action:
                              anyOf:
                                - type: object
                                  properties:
                                    kind:
                                      default: continue
                                      type: string
                                      enum:
                                        - continue
                                        - execute
                                        - copy
                                    label:
                                      type: string
                                      minLength: 1
                                      maxLength: 60
                                    intent:
                                      type: string
                                      minLength: 1
                                      maxLength: 800
                                      description: >-
                                        A concrete next-step instruction in
                                        plain language. Never an opaque command
                                        token such as confirm_criteria.
                                    operationId:
                                      anyOf:
                                        - type: string
                                          maxLength: 200
                                        - type: 'null'
                                    argumentsJson:
                                      anyOf:
                                        - type: string
                                          maxLength: 16000
                                        - type: 'null'
                                  required:
                                    - kind
                                    - label
                                    - intent
                                    - operationId
                                    - argumentsJson
                                  additionalProperties: false
                                - type: 'null'
                          required:
                            - stage
                            - instruction
                            - action
                          additionalProperties: false
                        - type: 'null'
                    design:
                      type: object
                      properties:
                        character:
                          type: string
                          enum:
                            - editorial
                            - research
                            - extraction
                            - directory
                            - storyboard
                            - studio
                            - comparison
                            - planner
                            - estimate
                            - utility
                        density:
                          type: string
                          enum:
                            - relaxed
                            - compact
                      required:
                        - character
                        - density
                      additionalProperties: false
                    runtimeRegions:
                      maxItems: 4
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                          sectionId:
                            type: string
                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                          libraryDigest:
                            type: string
                            pattern: ^[a-f0-9]{64}$
                          status:
                            type: string
                            enum:
                              - generated
                              - ready
                              - unavailable
                          artifactId:
                            anyOf:
                              - type: string
                                format: uuid
                                pattern: >-
                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                              - type: 'null'
                          tree:
                            anyOf:
                              - type: object
                                properties:
                                  nodes:
                                    minItems: 1
                                    maxItems: 12
                                    type: array
                                    items: {}
                                required:
                                  - nodes
                                additionalProperties: false
                              - type: 'null'
                          inputFields:
                            maxItems: 16
                            type: array
                            items:
                              type: string
                              maxLength: 80
                          failure:
                            anyOf:
                              - type: string
                                maxLength: 120
                              - type: 'null'
                          model:
                            type: string
                            maxLength: 160
                          inputTokens:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          outputTokens:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - id
                          - sectionId
                          - libraryDigest
                          - status
                          - artifactId
                          - tree
                          - inputFields
                          - failure
                        additionalProperties: false
                    sections:
                      minItems: 1
                      maxItems: 12
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                          kind:
                            type: string
                            enum:
                              - message
                              - list
                              - fields
                              - operation
                              - progress
                              - results
                              - notice
                          title:
                            type: string
                            maxLength: 160
                          text:
                            type: string
                            maxLength: 4000
                          items:
                            maxItems: 20
                            type: array
                            items:
                              type: string
                              maxLength: 800
                          operationId:
                            anyOf:
                              - type: string
                                maxLength: 200
                              - type: 'null'
                        required:
                          - id
                          - kind
                          - title
                          - text
                          - items
                          - operationId
                        additionalProperties: false
                    next:
                      maxItems: 3
                      type: array
                      items:
                        type: object
                        properties:
                          label:
                            type: string
                            maxLength: 100
                          intent:
                            type: string
                            maxLength: 500
                          confidence:
                            type: number
                            minimum: 0
                            maximum: 1
                        required:
                          - label
                          - intent
                          - confidence
                        additionalProperties: false
                    reactSource:
                      anyOf:
                        - type: string
                          maxLength: 50000
                        - type: 'null'
                    mediaPrompt:
                      anyOf:
                        - type: string
                          maxLength: 4000
                        - type: 'null'
                  required:
                    - title
                    - summary
                    - layout
                    - representation
                    - sections
                    - next
                    - reactSource
                    - mediaPrompt
                  additionalProperties: false
                facts:
                  type: object
                  properties:
                    agent:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        name:
                          type: string
                        description:
                          type: string
                        brand:
                          type: object
                          properties:
                            primary:
                              default: '#0071E3'
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            secondary:
                              default: '#AF52DE'
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            background:
                              default: '#FFFFFF'
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            foreground:
                              default: '#171717'
                              type: string
                              pattern: ^#[0-9a-fA-F]{6}$
                            font:
                              default: system
                              type: string
                              enum:
                                - system
                                - serif
                                - mono
                          required:
                            - primary
                            - secondary
                            - background
                            - foreground
                            - font
                          additionalProperties: false
                        loading:
                          type: object
                          properties:
                            kind:
                              default: darwin
                              type: string
                              enum:
                                - darwin
                                - pulse
                                - media
                            asset:
                              type: string
                              maxLength: 1400000
                              pattern: >-
                                ^data:(image\/(gif|webp)|video\/(mp4|webm));base64,[A-Za-z0-9+/]+=*$
                            poster:
                              type: string
                              maxLength: 700000
                              pattern: ^data:image\/(png|jpeg);base64,[A-Za-z0-9+/]+=*$
                          required:
                            - kind
                          additionalProperties: false
                        appearance:
                          type: object
                          properties:
                            instructions:
                              type: string
                              maxLength: 4000
                            libraryName:
                              type: string
                              maxLength: 100
                            source:
                              type: string
                              enum:
                                - darwin_ui
                                - uploaded
                                - generated
                            library:
                              type: object
                              properties:
                                schemaVersion:
                                  type: number
                                  const: 1
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 100
                                version:
                                  type: string
                                  pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                importName:
                                  type: string
                                  pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                entry:
                                  type: string
                                  minLength: 1
                                files:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties:
                                    type: string
                                    maxLength: 500000
                                components:
                                  minItems: 1
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      export:
                                        type: string
                                        pattern: ^[A-Z][A-Za-z0-9]*$
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 2000
                                      props:
                                        type: string
                                        minLength: 1
                                        maxLength: 10000
                                      example:
                                        type: string
                                        minLength: 1
                                        maxLength: 20000
                                      human:
                                        type: object
                                        properties:
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          states:
                                            minItems: 1
                                            type: array
                                            items:
                                              type: string
                                              enum:
                                                - input
                                                - running
                                                - needs_input
                                                - approval
                                                - success
                                                - empty
                                                - error
                                        required:
                                          - description
                                          - states
                                        additionalProperties: false
                                      agent:
                                        type: object
                                        properties:
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 2000
                                          outputSchema:
                                            type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties: {}
                                          example:
                                            type: object
                                            propertyNames:
                                              type: string
                                            additionalProperties: {}
                                          instructions:
                                            default: ''
                                            type: string
                                            maxLength: 10000
                                        required:
                                          - description
                                          - outputSchema
                                          - example
                                          - instructions
                                        additionalProperties: false
                                    required:
                                      - export
                                      - description
                                      - props
                                      - example
                                    additionalProperties: false
                              required:
                                - schemaVersion
                                - name
                                - version
                                - importName
                                - entry
                                - files
                                - components
                              additionalProperties: false
                            componentContracts:
                              maxItems: 20
                              type: array
                              items:
                                type: object
                                properties:
                                  name:
                                    type: string
                                  description:
                                    type: string
                                    maxLength: 2000
                                required:
                                  - name
                                  - description
                                additionalProperties: false
                          required:
                            - instructions
                            - componentContracts
                          additionalProperties: false
                      required:
                        - id
                        - name
                        - description
                      additionalProperties: false
                    sessionContext:
                      type: object
                      properties:
                        goal:
                          type: string
                          maxLength: 4000
                        brief:
                          type: string
                          maxLength: 8000
                        messages:
                          maxItems: 12
                          type: array
                          items:
                            type: object
                            properties:
                              role:
                                type: string
                                enum:
                                  - user
                                  - assistant
                              text:
                                type: string
                                maxLength: 2000
                            required:
                              - role
                              - text
                            additionalProperties: false
                      required:
                        - goal
                        - brief
                        - messages
                      additionalProperties: false
                    operations:
                      maxItems: 500
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          name:
                            type: string
                          description:
                            type: string
                          guidance:
                            type: object
                            properties:
                              openingQuestion:
                                default: ''
                                type: string
                                maxLength: 1200
                              primaryAction:
                                default: ''
                                type: string
                                maxLength: 80
                              context:
                                default: ''
                                type: string
                                maxLength: 1200
                              afterInput:
                                default: ''
                                type: string
                                maxLength: 1200
                              success:
                                default: ''
                                type: string
                                maxLength: 1200
                              recovery:
                                default: ''
                                type: string
                                maxLength: 1200
                            required:
                              - openingQuestion
                              - primaryAction
                              - context
                              - afterInput
                              - success
                              - recovery
                            additionalProperties: false
                          experience:
                            type: object
                            properties:
                              version:
                                type: number
                                const: 1
                              revision:
                                type: integer
                                exclusiveMinimum: 0
                                maximum: 9007199254740991
                              initialState:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              instructions:
                                default: ''
                                type: string
                                maxLength: 4000
                              states:
                                minItems: 1
                                maxItems: 64
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                    description:
                                      type: string
                                      maxLength: 1000
                                    instructions:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    executionStatuses:
                                      minItems: 1
                                      type: array
                                      items:
                                        type: string
                                        enum:
                                          - not_started
                                          - queued
                                          - running
                                          - waiting
                                          - completed
                                          - failed
                                          - cancelled
                                          - unavailable
                                    transitions:
                                      maxItems: 64
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                    variants:
                                      minItems: 1
                                      maxItems: 1000
                                      type: array
                                      items:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  required:
                                    - id
                                    - description
                                    - instructions
                                    - executionStatuses
                                    - transitions
                                    - variants
                                  additionalProperties: false
                              variants:
                                minItems: 1
                                maxItems: 1000
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                    description:
                                      type: string
                                      maxLength: 1000
                                    instructions:
                                      default: ''
                                      type: string
                                      maxLength: 2000
                                    modalities:
                                      default:
                                        - text
                                        - voice
                                      minItems: 1
                                      type: array
                                      items:
                                        type: string
                                        enum:
                                          - text
                                          - voice
                                          - image
                                          - audio
                                          - video
                                          - file
                                    presentation:
                                      type: object
                                      properties:
                                        title:
                                          type: string
                                          minLength: 1
                                          maxLength: 160
                                        summary:
                                          type: string
                                          maxLength: 3000
                                        layout:
                                          type: string
                                          enum:
                                            - stack
                                            - columns
                                        representation:
                                          type: string
                                          enum:
                                            - components
                                            - react
                                            - media
                                            - agent
                                        artifact:
                                          anyOf:
                                            - anyOf:
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: research
                                                    question:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 160
                                                      description: >-
                                                        One focused research question in 10-18
                                                        words.
                                                    focus:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                    sourceTypes:
                                                      maxItems: 3
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                  required:
                                                    - kind
                                                    - question
                                                    - focus
                                                    - sourceTypes
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: extraction
                                                    url:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 2048
                                                        - type: 'null'
                                                    purpose:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 160
                                                    fields:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          name:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          description:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 110
                                                        required:
                                                          - name
                                                          - description
                                                        additionalProperties: false
                                                  required:
                                                    - kind
                                                    - url
                                                    - purpose
                                                    - fields
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: directory
                                                    audience:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                      description: >-
                                                        The target prospect audience, e.g.
                                                        independent fitness studios. Never the
                                                        role of the person using this interface.
                                                    criteria:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          label:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          value:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                        required:
                                                          - label
                                                          - value
                                                        additionalProperties: false
                                                    columns:
                                                      minItems: 2
                                                      maxItems: 5
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                    questions:
                                                      maxItems: 3
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                  required:
                                                    - kind
                                                    - audience
                                                    - criteria
                                                    - columns
                                                    - questions
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: studio
                                                    headline:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 60
                                                    direction:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 140
                                                    palette:
                                                      minItems: 2
                                                      maxItems: 5
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          name:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          color:
                                                            type: string
                                                            pattern: ^#[0-9a-fA-F]{6}$
                                                        required:
                                                          - name
                                                          - color
                                                        additionalProperties: false
                                                    imageBrief:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 420
                                                  required:
                                                    - kind
                                                    - headline
                                                    - direction
                                                    - palette
                                                    - imageBrief
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: storyboard
                                                    durationSeconds:
                                                      type: number
                                                      minimum: 1
                                                      maximum: 600
                                                    aspectRatio:
                                                      type: string
                                                      enum:
                                                        - '9:16'
                                                        - '16:9'
                                                        - '1:1'
                                                        - '4:5'
                                                    scenes:
                                                      minItems: 2
                                                      maxItems: 5
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          title:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          start:
                                                            type: number
                                                            minimum: 0
                                                          end:
                                                            type: number
                                                            exclusiveMinimum: 0
                                                          visual:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 350
                                                          caption:
                                                            type: string
                                                            maxLength: 150
                                                        required:
                                                          - title
                                                          - start
                                                          - end
                                                          - visual
                                                          - caption
                                                        additionalProperties: false
                                                  required:
                                                    - kind
                                                    - durationSeconds
                                                    - aspectRatio
                                                    - scenes
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: editorial
                                                    script:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 3000
                                                    tone:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    targetSeconds:
                                                      anyOf:
                                                        - type: number
                                                          minimum: 1
                                                          maximum: 1800
                                                        - type: 'null'
                                                  required:
                                                    - kind
                                                    - script
                                                    - tone
                                                    - targetSeconds
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: comparison
                                                    question:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 90
                                                      description: >-
                                                        A concise decision question in 4-10
                                                        words, not a restatement of the entire
                                                        brief.
                                                    criteria:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 50
                                                    options:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          name:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 42
                                                          values:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: string
                                                              maxLength: 120
                                                        required:
                                                          - name
                                                          - values
                                                        additionalProperties: false
                                                    basis:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                      description: >-
                                                        State whether these are proposed
                                                        approaches, supplied facts, or verified
                                                        evidence. Never invent product features
                                                        or scores.
                                                  required:
                                                    - kind
                                                    - question
                                                    - criteria
                                                    - options
                                                    - basis
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: planner
                                                    title:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 80
                                                    steps:
                                                      minItems: 2
                                                      maxItems: 6
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          title:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 80
                                                          detail:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          durationMinutes:
                                                            anyOf:
                                                              - type: integer
                                                                minimum: 1
                                                                maximum: 10080
                                                              - type: 'null'
                                                        required:
                                                          - title
                                                          - detail
                                                          - durationMinutes
                                                        additionalProperties: false
                                                  required:
                                                    - kind
                                                    - title
                                                    - steps
                                                  additionalProperties: false
                                                - type: object
                                                  properties:
                                                    kind:
                                                      type: string
                                                      const: estimate
                                                    title:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 80
                                                    currency:
                                                      type: string
                                                      enum:
                                                        - USD
                                                        - EUR
                                                        - GBP
                                                        - CAD
                                                        - AUD
                                                        - INR
                                                        - JPY
                                                    items:
                                                      minItems: 1
                                                      maxItems: 6
                                                      type: array
                                                      items:
                                                        type: object
                                                        properties:
                                                          label:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 60
                                                            description: >-
                                                              Item name only. Never duplicate
                                                              quantities, currency amounts or unit
                                                              costs in this label; the user can edit
                                                              those independently.
                                                          quantity:
                                                            type: number
                                                            minimum: 0
                                                            maximum: 1000000
                                                          unitCost:
                                                            type: number
                                                            minimum: 0
                                                            maximum: 100000000
                                                        required:
                                                          - label
                                                          - quantity
                                                          - unitCost
                                                        additionalProperties: false
                                                    contingencyPercent:
                                                      type: number
                                                      minimum: 0
                                                      maximum: 100
                                                    assumptions:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 300
                                                      description: >-
                                                        Explicitly identify any assumed prices,
                                                        quantities and currency. These are
                                                        editable estimates, not provider quotes.
                                                  required:
                                                    - kind
                                                    - title
                                                    - currency
                                                    - items
                                                    - contingencyPercent
                                                    - assumptions
                                                  additionalProperties: false
                                            - type: 'null'
                                        journey:
                                          anyOf:
                                            - type: object
                                              properties:
                                                stage:
                                                  type: string
                                                  enum:
                                                    - input
                                                    - review
                                                    - ready
                                                    - complete
                                                instruction:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 160
                                                action:
                                                  anyOf:
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          default: continue
                                                          type: string
                                                          enum:
                                                            - continue
                                                            - execute
                                                            - copy
                                                        label:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 60
                                                        intent:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 800
                                                          description: >-
                                                            A concrete next-step instruction in
                                                            plain language. Never an opaque command
                                                            token such as confirm_criteria.
                                                        operationId:
                                                          anyOf:
                                                            - type: string
                                                              maxLength: 200
                                                            - type: 'null'
                                                        argumentsJson:
                                                          anyOf:
                                                            - type: string
                                                              maxLength: 16000
                                                            - type: 'null'
                                                      required:
                                                        - kind
                                                        - label
                                                        - intent
                                                        - operationId
                                                        - argumentsJson
                                                      additionalProperties: false
                                                    - type: 'null'
                                              required:
                                                - stage
                                                - instruction
                                                - action
                                              additionalProperties: false
                                            - type: 'null'
                                        design:
                                          type: object
                                          properties:
                                            character:
                                              type: string
                                              enum:
                                                - editorial
                                                - research
                                                - extraction
                                                - directory
                                                - storyboard
                                                - studio
                                                - comparison
                                                - planner
                                                - estimate
                                                - utility
                                            density:
                                              type: string
                                              enum:
                                                - relaxed
                                                - compact
                                          required:
                                            - character
                                            - density
                                          additionalProperties: false
                                        runtimeRegions:
                                          maxItems: 4
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              id:
                                                type: string
                                                pattern: ^[a-z][a-z0-9_-]{0,63}$
                                              sectionId:
                                                type: string
                                                pattern: ^[a-z][a-z0-9_-]{0,63}$
                                              libraryDigest:
                                                type: string
                                                pattern: ^[a-f0-9]{64}$
                                              status:
                                                type: string
                                                enum:
                                                  - generated
                                                  - ready
                                                  - unavailable
                                              artifactId:
                                                anyOf:
                                                  - type: string
                                                    format: uuid
                                                    pattern: >-
                                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                  - type: 'null'
                                              tree:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      nodes:
                                                        minItems: 1
                                                        maxItems: 12
                                                        type: array
                                                        items: {}
                                                    required:
                                                      - nodes
                                                    additionalProperties: false
                                                  - type: 'null'
                                              inputFields:
                                                maxItems: 16
                                                type: array
                                                items:
                                                  type: string
                                                  maxLength: 80
                                              failure:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 120
                                                  - type: 'null'
                                              model:
                                                type: string
                                                maxLength: 160
                                              inputTokens:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                              outputTokens:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                            required:
                                              - id
                                              - sectionId
                                              - libraryDigest
                                              - status
                                              - artifactId
                                              - tree
                                              - inputFields
                                              - failure
                                            additionalProperties: false
                                        sections:
                                          minItems: 1
                                          maxItems: 12
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              id:
                                                type: string
                                                pattern: ^[a-z][a-z0-9_-]{0,63}$
                                              kind:
                                                type: string
                                                enum:
                                                  - message
                                                  - list
                                                  - fields
                                                  - operation
                                                  - progress
                                                  - results
                                                  - notice
                                              title:
                                                type: string
                                                maxLength: 160
                                              text:
                                                type: string
                                                maxLength: 4000
                                              items:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: string
                                                  maxLength: 800
                                              operationId:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                            required:
                                              - id
                                              - kind
                                              - title
                                              - text
                                              - items
                                              - operationId
                                            additionalProperties: false
                                        next:
                                          maxItems: 3
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              label:
                                                type: string
                                                maxLength: 100
                                              intent:
                                                type: string
                                                maxLength: 500
                                              confidence:
                                                type: number
                                                minimum: 0
                                                maximum: 1
                                            required:
                                              - label
                                              - intent
                                              - confidence
                                            additionalProperties: false
                                        reactSource:
                                          anyOf:
                                            - type: string
                                              maxLength: 50000
                                            - type: 'null'
                                        mediaPrompt:
                                          anyOf:
                                            - type: string
                                              maxLength: 4000
                                            - type: 'null'
                                      required:
                                        - title
                                        - summary
                                        - layout
                                        - representation
                                        - sections
                                        - next
                                        - reactSource
                                        - mediaPrompt
                                      additionalProperties: false
                                    runtimeComponents:
                                      maxItems: 4
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                                          sectionId:
                                            type: string
                                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                                          instructions:
                                            type: string
                                            minLength: 1
                                            maxLength: 4000
                                          components:
                                            default: []
                                            maxItems: 30
                                            type: array
                                            items:
                                              type: string
                                              pattern: ^[A-Z][A-Za-z0-9]*$
                                          inputFields:
                                            default: []
                                            maxItems: 16
                                            type: array
                                            items:
                                              type: string
                                              pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                        required:
                                          - id
                                          - sectionId
                                          - instructions
                                          - components
                                          - inputFields
                                        additionalProperties: false
                                    argumentBindings:
                                      maxItems: 50
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          field:
                                            type: string
                                            minLength: 1
                                            maxLength: 120
                                          target:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                        required:
                                          - field
                                          - target
                                        additionalProperties: false
                                    bindings:
                                      default: []
                                      maxItems: 64
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          path:
                                            minItems: 2
                                            maxItems: 8
                                            type: array
                                            items:
                                              type: string
                                              pattern: ^[A-Za-z0-9_-]+$
                                          source:
                                            type: string
                                            enum:
                                              - message
                                              - field
                                          field:
                                            type: string
                                            maxLength: 120
                                        required:
                                          - path
                                          - source
                                        additionalProperties: false
                                  required:
                                    - id
                                    - description
                                    - instructions
                                    - modalities
                                    - presentation
                                    - bindings
                                  additionalProperties: false
                            required:
                              - version
                              - revision
                              - initialState
                              - instructions
                              - states
                              - variants
                            additionalProperties: false
                          revision:
                            type: integer
                            exclusiveMinimum: 0
                            maximum: 9007199254740991
                          available:
                            type: boolean
                          reason:
                            anyOf:
                              - type: string
                              - type: 'null'
                          fields:
                            maxItems: 50
                            type: array
                            items:
                              type: object
                              properties:
                                name:
                                  type: string
                                label:
                                  type: string
                                type:
                                  type: string
                                  enum:
                                    - text
                                    - number
                                    - select
                                required:
                                  type: boolean
                                primary:
                                  type: boolean
                                encoding:
                                  type: string
                                  const: json
                                options:
                                  type: array
                                  items:
                                    type: string
                                multiple:
                                  type: boolean
                                description:
                                  type: string
                                minimum:
                                  type: number
                                maximum:
                                  type: number
                                minLength:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                maxLength:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - name
                                - label
                                - type
                                - required
                              additionalProperties: false
                          inputSchema:
                            type: object
                            propertyNames:
                              type: string
                            additionalProperties: {}
                        required:
                          - id
                          - name
                          - description
                          - available
                          - reason
                          - fields
                        additionalProperties: false
                    execution:
                      type: object
                      properties:
                        threadId:
                          anyOf:
                            - type: string
                            - type: 'null'
                        turnId:
                          anyOf:
                            - type: string
                            - type: 'null'
                        status:
                          type: string
                          enum:
                            - not_started
                            - queued
                            - running
                            - waiting
                            - completed
                            - failed
                            - cancelled
                            - unavailable
                        evidence:
                          maxItems: 30
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              text:
                                type: string
                              verification:
                                type: string
                                enum:
                                  - provider_reported
                                  - criteria_checked
                                  - observed
                            required:
                              - id
                              - text
                              - verification
                            additionalProperties: false
                      required:
                        - threadId
                        - turnId
                        - status
                        - evidence
                      additionalProperties: false
                  required:
                    - agent
                    - operations
                    - execution
                  additionalProperties: false
                markdown:
                  type: string
                  maxLength: 20000
                artifactId:
                  anyOf:
                    - type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                    - type: 'null'
                policy:
                  type: object
                  properties:
                    id:
                      type: string
                    version:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    probability:
                      type: number
                      minimum: 0
                      maximum: 1
                    applied:
                      maxItems: 3
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                          version:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          scope:
                            type: string
                            enum:
                              - global
                              - agent
                              - user
                          probability:
                            type: number
                            minimum: 0
                            maximum: 1
                        required:
                          - id
                          - version
                          - scope
                          - probability
                        additionalProperties: false
                  required:
                    - id
                    - version
                    - probability
                  additionalProperties: false
                diagnostics:
                  type: object
                  properties:
                    model:
                      type: string
                    generationMs:
                      type: number
                    inputTokens:
                      type: number
                    outputTokens:
                      type: number
                    repairs:
                      type: number
                    fallback:
                      anyOf:
                        - type: string
                        - type: 'null'
                  required:
                    - model
                    - generationMs
                    - inputTokens
                    - outputTokens
                    - repairs
                    - fallback
                  additionalProperties: false
                createdAt:
                  type: string
              required:
                - version
                - runId
                - revision
                - mode
                - request
                - generated
                - facts
                - markdown
                - artifactId
                - policy
                - diagnostics
                - createdAt
              additionalProperties: false
            runId:
              type: string
          required:
            - version
            - audience
            - status
            - markdown
          additionalProperties: false
        sessionId:
          type: string
          pattern: ^asst_[a-f0-9-]{36}$
        status:
          type: string
          enum:
            - planning
            - ready
            - running
            - paused
            - completed
            - cancelled
        goal:
          type: string
        threadBrief:
          type: string
          maxLength: 4000
        threadTitle:
          type: string
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                  - user
                  - assist
              text:
                type: string
              at:
                type: string
                format: date-time
                pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
            required:
              - role
              - text
              - at
            additionalProperties: false
        revisions:
          maxItems: 32
          type: array
          items:
            type: object
            properties:
              revisionId:
                type: string
                pattern: ^arev_[a-f0-9-]{36}$
              createdAt:
                type: string
                format: date-time
                pattern: >-
                  ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
              searchId:
                anyOf:
                  - type: string
                  - type: 'null'
              summary:
                type: string
              plan:
                anyOf:
                  - type: object
                    properties:
                      goal:
                        type: string
                        minLength: 1
                        maxLength: 20000
                      successCriteria:
                        minItems: 1
                        maxItems: 8
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 500
                      steps:
                        minItems: 1
                        maxItems: 8
                        type: array
                        items:
                          type: object
                          properties:
                            stepId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            objective:
                              type: string
                              minLength: 1
                              maxLength: 500
                            agentId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            operationId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            operationRevision:
                              type: integer
                              exclusiveMinimum: 0
                              maximum: 9007199254740991
                            alternativeAgentIds:
                              default: []
                              maxItems: 3
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            dependsOn:
                              default: []
                              maxItems: 8
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            evidenceRequired:
                              type: string
                              minLength: 1
                              maxLength: 500
                            accessRequired:
                              default: []
                              maxItems: 8
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                            approvalRequired:
                              default: true
                              type: boolean
                              const: true
                          required:
                            - stepId
                            - objective
                            - agentId
                            - operationId
                            - operationRevision
                            - alternativeAgentIds
                            - dependsOn
                            - evidenceRequired
                            - accessRequired
                            - approvalRequired
                          additionalProperties: false
                      stoppingPoints:
                        default: []
                        maxItems: 8
                        type: array
                        items:
                          type: string
                          minLength: 1
                          maxLength: 500
                    required:
                      - goal
                      - successCriteria
                      - steps
                      - stoppingPoints
                    additionalProperties: false
                  - type: 'null'
              agents:
                maxItems: 10
                type: array
                items:
                  type: object
                  properties:
                    agentId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    operationId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    operationRevision:
                      type: integer
                      exclusiveMinimum: 0
                      maximum: 9007199254740991
                    name:
                      type: string
                    description:
                      anyOf:
                        - type: string
                        - type: 'null'
                    canStartThread:
                      type: boolean
                    canAttemptThread:
                      type: boolean
                    readiness:
                      type: string
                      enum:
                        - ready
                        - authentication_required
                        - recheck_required
                        - unavailable
                  required:
                    - agentId
                    - operationId
                    - operationRevision
                    - name
                    - description
                    - canStartThread
                    - readiness
                  additionalProperties: false
            required:
              - revisionId
              - createdAt
              - searchId
              - summary
              - plan
              - agents
            additionalProperties: false
        latestRevisionId:
          anyOf:
            - type: string
              pattern: ^arev_[a-f0-9-]{36}$
            - type: 'null'
        quote:
          default: null
          anyOf:
            - type: object
              properties:
                quoteId:
                  type: string
                  pattern: ^aqt_[a-f0-9-]{36}$
                revisionId:
                  type: string
                  pattern: ^arev_[a-f0-9-]{36}$
                currency:
                  type: string
                  const: USD
                totalBudgetMinor:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                rateBps:
                  type: integer
                  minimum: 0
                  maximum: 1800
                rateBasis:
                  type: string
                  minLength: 1
                maximumExecutionMinor:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                maximumFeeMinor:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                unallocatedMinor:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                createdAt:
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                expiresAt:
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                fundingStatus:
                  type: string
                  enum:
                    - not_authorized
                    - authorized
                cancellationTerms:
                  type: string
                  minLength: 1
              required:
                - quoteId
                - revisionId
                - currency
                - totalBudgetMinor
                - rateBps
                - rateBasis
                - maximumExecutionMinor
                - maximumFeeMinor
                - unallocatedMinor
                - createdAt
                - expiresAt
                - fundingStatus
                - cancellationTerms
              additionalProperties: false
            - type: 'null'
        funding:
          default: null
          anyOf:
            - type: object
              properties:
                fundingAuthorizationId:
                  type: string
                  pattern: ^afund_[a-f0-9-]{36}$
                quoteId:
                  type: string
                  pattern: ^aqt_[a-f0-9-]{36}$
                revisionId:
                  type: string
                  pattern: ^arev_[a-f0-9-]{36}$
                totalBudgetMinor:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                currency:
                  type: string
                  const: USD
                status:
                  type: string
                  enum:
                    - reserving
                    - reserved
                    - releasing
                    - released
                createdAt:
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
              required:
                - fundingAuthorizationId
                - quoteId
                - revisionId
                - totalBudgetMinor
                - currency
                - status
                - createdAt
              additionalProperties: false
            - type: 'null'
        run:
          default: null
          anyOf:
            - type: object
              properties:
                runId:
                  type: string
                  pattern: ^arun_[a-f0-9-]{36}$
                revisionId:
                  type: string
                  pattern: ^arev_[a-f0-9-]{36}$
                quoteId:
                  type: string
                  pattern: ^aqt_[a-f0-9-]{36}$
                actingAiId:
                  default: null
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    - type: 'null'
                status:
                  type: string
                  enum:
                    - starting
                    - running
                    - paused
                    - completed
                    - cancelled
                startedAt:
                  type: string
                  format: date-time
                  pattern: >-
                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                settlement:
                  default: null
                  anyOf:
                    - type: object
                      properties:
                        currency:
                          type: string
                          const: USD
                        executionSpendMinor:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        outcomeFeeMinor:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                        returnedMinor:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                      required:
                        - currency
                        - executionSpendMinor
                        - outcomeFeeMinor
                        - returnedMinor
                      additionalProperties: false
                    - type: 'null'
                steps:
                  minItems: 1
                  maxItems: 8
                  type: array
                  items:
                    type: object
                    properties:
                      stepId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      agentId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      operationId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      operationRevision:
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 9007199254740991
                      status:
                        type: string
                        enum:
                          - pending
                          - starting
                          - thread_open
                          - waiting
                          - completed
                          - failed
                      threadId:
                        anyOf:
                          - type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          - type: 'null'
                      actRequestId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      errorCode:
                        anyOf:
                          - type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          - type: 'null'
                      acceptedMessageId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      observation:
                        type: object
                        properties:
                          readStatus:
                            type: string
                            enum:
                              - available
                              - unavailable
                          needsAttention:
                            type: boolean
                          pendingRequestIds:
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          confirmedResultIds:
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        required:
                          - readStatus
                          - needsAttention
                          - pendingRequestIds
                          - confirmedResultIds
                        additionalProperties: false
                    required:
                      - stepId
                      - agentId
                      - operationId
                      - operationRevision
                      - status
                      - threadId
                      - errorCode
                    additionalProperties: false
              required:
                - runId
                - revisionId
                - quoteId
                - actingAiId
                - status
                - startedAt
                - settlement
                - steps
              additionalProperties: false
            - type: 'null'
        previousRuns:
          default: []
          maxItems: 32
          type: array
          items:
            type: object
            properties:
              run:
                type: object
                properties:
                  runId:
                    type: string
                    pattern: ^arun_[a-f0-9-]{36}$
                  revisionId:
                    type: string
                    pattern: ^arev_[a-f0-9-]{36}$
                  quoteId:
                    type: string
                    pattern: ^aqt_[a-f0-9-]{36}$
                  actingAiId:
                    default: null
                    anyOf:
                      - type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      - type: 'null'
                  status:
                    type: string
                    enum:
                      - starting
                      - running
                      - paused
                      - completed
                      - cancelled
                  startedAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                  settlement:
                    default: null
                    anyOf:
                      - type: object
                        properties:
                          currency:
                            type: string
                            const: USD
                          executionSpendMinor:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          outcomeFeeMinor:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          returnedMinor:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                        required:
                          - currency
                          - executionSpendMinor
                          - outcomeFeeMinor
                          - returnedMinor
                        additionalProperties: false
                      - type: 'null'
                  steps:
                    minItems: 1
                    maxItems: 8
                    type: array
                    items:
                      type: object
                      properties:
                        stepId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        operationRevision:
                          type: integer
                          exclusiveMinimum: 0
                          maximum: 9007199254740991
                        status:
                          type: string
                          enum:
                            - pending
                            - starting
                            - thread_open
                            - waiting
                            - completed
                            - failed
                        threadId:
                          anyOf:
                            - type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            - type: 'null'
                        actRequestId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        errorCode:
                          anyOf:
                            - type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            - type: 'null'
                        acceptedMessageId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        observation:
                          type: object
                          properties:
                            readStatus:
                              type: string
                              enum:
                                - available
                                - unavailable
                            needsAttention:
                              type: boolean
                            pendingRequestIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            confirmedResultIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          required:
                            - readStatus
                            - needsAttention
                            - pendingRequestIds
                            - confirmedResultIds
                          additionalProperties: false
                      required:
                        - stepId
                        - agentId
                        - operationId
                        - operationRevision
                        - status
                        - threadId
                        - errorCode
                      additionalProperties: false
                required:
                  - runId
                  - revisionId
                  - quoteId
                  - actingAiId
                  - status
                  - startedAt
                  - settlement
                  - steps
                additionalProperties: false
              quote:
                type: object
                properties:
                  quoteId:
                    type: string
                    pattern: ^aqt_[a-f0-9-]{36}$
                  revisionId:
                    type: string
                    pattern: ^arev_[a-f0-9-]{36}$
                  currency:
                    type: string
                    const: USD
                  totalBudgetMinor:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 9007199254740991
                  rateBps:
                    type: integer
                    minimum: 0
                    maximum: 1800
                  rateBasis:
                    type: string
                    minLength: 1
                  maximumExecutionMinor:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  maximumFeeMinor:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  unallocatedMinor:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  createdAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                  expiresAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                  fundingStatus:
                    type: string
                    enum:
                      - not_authorized
                      - authorized
                  cancellationTerms:
                    type: string
                    minLength: 1
                required:
                  - quoteId
                  - revisionId
                  - currency
                  - totalBudgetMinor
                  - rateBps
                  - rateBasis
                  - maximumExecutionMinor
                  - maximumFeeMinor
                  - unallocatedMinor
                  - createdAt
                  - expiresAt
                  - fundingStatus
                  - cancellationTerms
                additionalProperties: false
            required:
              - run
              - quote
            additionalProperties: false
        createdAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: >-
            ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        conversation:
          type: object
          properties:
            turns:
              maxItems: 50
              type: array
              items:
                type: object
                properties:
                  turnId:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  presentation:
                    type: string
                    enum:
                      - chat
                      - operation
                  composer:
                    type: object
                    properties:
                      version:
                        type: string
                        enum:
                          - composer.v1
                          - composer.v2
                      selection:
                        type: object
                        properties:
                          version:
                            type: string
                            const: composer-selection.v1
                          catalogRevision:
                            type: integer
                            exclusiveMinimum: 0
                            maximum: 9007199254740991
                          catalogHash:
                            type: string
                          operationId:
                            anyOf:
                              - type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              - type: 'null'
                          stateId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          variantId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          model:
                            type: string
                          confidence:
                            type: number
                            minimum: 0
                            maximum: 1
                          fallback:
                            anyOf:
                              - type: string
                              - type: 'null'
                          latencyMs:
                            type: number
                            minimum: 0
                          inputTokens:
                            type: number
                            minimum: 0
                        required:
                          - version
                          - catalogRevision
                          - catalogHash
                          - operationId
                          - stateId
                          - variantId
                          - model
                          - confidence
                          - fallback
                          - latencyMs
                          - inputTokens
                        additionalProperties: false
                      decision:
                        type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          model:
                            type: string
                          questionVersion:
                            type: string
                          catalogVersion:
                            type: string
                          mode:
                            type: string
                            enum:
                              - shadow
                              - active
                          eligible:
                            type: array
                            items:
                              type: string
                              enum:
                                - markdown
                                - simple
                                - react
                                - world
                                - video
                                - audio
                                - game
                                - image
                                - model3d
                          selected:
                            type: string
                            enum:
                              - markdown
                              - simple
                              - react
                              - world
                              - video
                              - audio
                              - game
                              - image
                              - model3d
                          audio:
                            type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - speech
                                  - music
                              voice:
                                type: string
                                enum:
                                  - Rachel
                                  - Aria
                              speed:
                                type: number
                                minimum: 0.7
                                maximum: 1.2
                            required:
                              - kind
                              - voice
                              - speed
                            additionalProperties: false
                          audioSelection:
                            type: object
                            properties:
                              model:
                                type: string
                              questionVersion:
                                type: string
                              latencyMs:
                                type: number
                                minimum: 0
                              inputTokens:
                                default: 0
                                type: number
                                minimum: 0
                              answers:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                    choice:
                                      type: string
                                    confidence:
                                      type: number
                                      minimum: 0
                                      maximum: 1
                                    probabilities:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          value:
                                            type: string
                                          probability:
                                            type: number
                                            minimum: 0
                                            maximum: 1
                                        required:
                                          - value
                                          - probability
                                        additionalProperties: false
                                  required:
                                    - name
                                    - choice
                                    - confidence
                                  additionalProperties: false
                            required:
                              - model
                              - questionVersion
                              - latencyMs
                              - inputTokens
                              - answers
                            additionalProperties: false
                          supporting:
                            default: []
                            maxItems: 2
                            type: array
                            items:
                              type: string
                              enum:
                                - markdown
                                - simple
                                - react
                                - world
                                - video
                                - audio
                                - game
                                - image
                                - model3d
                          override:
                            anyOf:
                              - type: string
                                enum:
                                  - markdown
                                  - simple
                                  - react
                                  - world
                                  - video
                                  - audio
                                  - game
                                  - image
                                  - model3d
                              - type: 'null'
                          confidence:
                            type: number
                            minimum: 0
                            maximum: 1
                          probabilities:
                            type: array
                            items:
                              type: object
                              properties:
                                value:
                                  type: string
                                  enum:
                                    - markdown
                                    - simple
                                    - react
                                    - world
                                    - video
                                    - audio
                                    - game
                                    - image
                                    - model3d
                                probability:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                              required:
                                - value
                                - probability
                              additionalProperties: false
                          transition:
                            type: string
                            enum:
                              - retain
                              - update
                              - replace
                          fallback:
                            anyOf:
                              - type: string
                              - type: 'null'
                          latencyMs:
                            type: number
                            minimum: 0
                          inputTokens:
                            type: number
                            minimum: 0
                          appliedPolicies:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                version:
                                  type: number
                                scope:
                                  type: string
                                probability:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                              required:
                                - id
                                - version
                                - scope
                                - probability
                              additionalProperties: false
                        required:
                          - id
                          - model
                          - questionVersion
                          - catalogVersion
                          - mode
                          - eligible
                          - selected
                          - supporting
                          - override
                          - confidence
                          - probabilities
                          - transition
                          - fallback
                          - latencyMs
                          - inputTokens
                          - appliedPolicies
                        additionalProperties: false
                      experience:
                        type: object
                        properties:
                          decisionId:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          surfaces:
                            minItems: 1
                            maxItems: 12
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                capability:
                                  type: string
                                  enum:
                                    - markdown
                                    - simple
                                    - react
                                    - world
                                    - video
                                    - audio
                                    - game
                                    - image
                                    - model3d
                                role:
                                  type: string
                                  enum:
                                    - primary
                                    - supporting
                                    - fallback
                                status:
                                  type: string
                                  enum:
                                    - ready
                                    - pending
                                    - failed
                                    - unavailable
                                artifactId:
                                  anyOf:
                                    - type: string
                                      format: uuid
                                      pattern: >-
                                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                    - type: 'null'
                                sessionId:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                assetJobId:
                                  type: string
                                  format: uuid
                                  pattern: >-
                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                generated:
                                  type: object
                                  properties:
                                    title:
                                      type: string
                                      minLength: 1
                                      maxLength: 160
                                    summary:
                                      type: string
                                      maxLength: 3000
                                    layout:
                                      type: string
                                      enum:
                                        - stack
                                        - columns
                                    representation:
                                      type: string
                                      enum:
                                        - components
                                        - react
                                        - media
                                        - agent
                                    artifact:
                                      anyOf:
                                        - anyOf:
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: research
                                                question:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 160
                                                  description: >-
                                                    One focused research question in 10-18
                                                    words.
                                                focus:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 240
                                                sourceTypes:
                                                  maxItems: 3
                                                  type: array
                                                  items:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 240
                                              required:
                                                - kind
                                                - question
                                                - focus
                                                - sourceTypes
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: extraction
                                                url:
                                                  anyOf:
                                                    - type: string
                                                      maxLength: 2048
                                                    - type: 'null'
                                                purpose:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 160
                                                fields:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      name:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                      description:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 110
                                                    required:
                                                      - name
                                                      - description
                                                    additionalProperties: false
                                              required:
                                                - kind
                                                - url
                                                - purpose
                                                - fields
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: directory
                                                audience:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                  description: >-
                                                    The target prospect audience, e.g.
                                                    independent fitness studios. Never the
                                                    role of the person using this interface.
                                                criteria:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      label:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                      value:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                    required:
                                                      - label
                                                      - value
                                                    additionalProperties: false
                                                columns:
                                                  minItems: 2
                                                  maxItems: 5
                                                  type: array
                                                  items:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 240
                                                questions:
                                                  maxItems: 3
                                                  type: array
                                                  items:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 240
                                              required:
                                                - kind
                                                - audience
                                                - criteria
                                                - columns
                                                - questions
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: studio
                                                headline:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 60
                                                direction:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 140
                                                palette:
                                                  minItems: 2
                                                  maxItems: 5
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      name:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                      color:
                                                        type: string
                                                        pattern: ^#[0-9a-fA-F]{6}$
                                                    required:
                                                      - name
                                                      - color
                                                    additionalProperties: false
                                                imageBrief:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 420
                                              required:
                                                - kind
                                                - headline
                                                - direction
                                                - palette
                                                - imageBrief
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: storyboard
                                                durationSeconds:
                                                  type: number
                                                  minimum: 1
                                                  maximum: 600
                                                aspectRatio:
                                                  type: string
                                                  enum:
                                                    - '9:16'
                                                    - '16:9'
                                                    - '1:1'
                                                    - '4:5'
                                                scenes:
                                                  minItems: 2
                                                  maxItems: 5
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      title:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                      start:
                                                        type: number
                                                        minimum: 0
                                                      end:
                                                        type: number
                                                        exclusiveMinimum: 0
                                                      visual:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 350
                                                      caption:
                                                        type: string
                                                        maxLength: 150
                                                    required:
                                                      - title
                                                      - start
                                                      - end
                                                      - visual
                                                      - caption
                                                    additionalProperties: false
                                              required:
                                                - kind
                                                - durationSeconds
                                                - aspectRatio
                                                - scenes
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: editorial
                                                script:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 3000
                                                tone:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                targetSeconds:
                                                  anyOf:
                                                    - type: number
                                                      minimum: 1
                                                      maximum: 1800
                                                    - type: 'null'
                                              required:
                                                - kind
                                                - script
                                                - tone
                                                - targetSeconds
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: comparison
                                                question:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 90
                                                  description: >-
                                                    A concise decision question in 4-10
                                                    words, not a restatement of the entire
                                                    brief.
                                                criteria:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 50
                                                options:
                                                  minItems: 2
                                                  maxItems: 4
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      name:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 42
                                                      values:
                                                        minItems: 2
                                                        maxItems: 4
                                                        type: array
                                                        items:
                                                          type: string
                                                          maxLength: 120
                                                    required:
                                                      - name
                                                      - values
                                                    additionalProperties: false
                                                basis:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                                  description: >-
                                                    State whether these are proposed
                                                    approaches, supplied facts, or verified
                                                    evidence. Never invent product features
                                                    or scores.
                                              required:
                                                - kind
                                                - question
                                                - criteria
                                                - options
                                                - basis
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: planner
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                                steps:
                                                  minItems: 2
                                                  maxItems: 6
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      title:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 80
                                                      detail:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 240
                                                      durationMinutes:
                                                        anyOf:
                                                          - type: integer
                                                            minimum: 1
                                                            maximum: 10080
                                                          - type: 'null'
                                                    required:
                                                      - title
                                                      - detail
                                                      - durationMinutes
                                                    additionalProperties: false
                                              required:
                                                - kind
                                                - title
                                                - steps
                                              additionalProperties: false
                                            - type: object
                                              properties:
                                                kind:
                                                  type: string
                                                  const: estimate
                                                title:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 80
                                                currency:
                                                  type: string
                                                  enum:
                                                    - USD
                                                    - EUR
                                                    - GBP
                                                    - CAD
                                                    - AUD
                                                    - INR
                                                    - JPY
                                                items:
                                                  minItems: 1
                                                  maxItems: 6
                                                  type: array
                                                  items:
                                                    type: object
                                                    properties:
                                                      label:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 60
                                                        description: >-
                                                          Item name only. Never duplicate
                                                          quantities, currency amounts or unit
                                                          costs in this label; the user can edit
                                                          those independently.
                                                      quantity:
                                                        type: number
                                                        minimum: 0
                                                        maximum: 1000000
                                                      unitCost:
                                                        type: number
                                                        minimum: 0
                                                        maximum: 100000000
                                                    required:
                                                      - label
                                                      - quantity
                                                      - unitCost
                                                    additionalProperties: false
                                                contingencyPercent:
                                                  type: number
                                                  minimum: 0
                                                  maximum: 100
                                                assumptions:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 300
                                                  description: >-
                                                    Explicitly identify any assumed prices,
                                                    quantities and currency. These are
                                                    editable estimates, not provider quotes.
                                              required:
                                                - kind
                                                - title
                                                - currency
                                                - items
                                                - contingencyPercent
                                                - assumptions
                                              additionalProperties: false
                                        - type: 'null'
                                    journey:
                                      anyOf:
                                        - type: object
                                          properties:
                                            stage:
                                              type: string
                                              enum:
                                                - input
                                                - review
                                                - ready
                                                - complete
                                            instruction:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                            action:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    kind:
                                                      default: continue
                                                      type: string
                                                      enum:
                                                        - continue
                                                        - execute
                                                        - copy
                                                    label:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 60
                                                    intent:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 800
                                                      description: >-
                                                        A concrete next-step instruction in
                                                        plain language. Never an opaque command
                                                        token such as confirm_criteria.
                                                    operationId:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 200
                                                        - type: 'null'
                                                    argumentsJson:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 16000
                                                        - type: 'null'
                                                  required:
                                                    - kind
                                                    - label
                                                    - intent
                                                    - operationId
                                                    - argumentsJson
                                                  additionalProperties: false
                                                - type: 'null'
                                          required:
                                            - stage
                                            - instruction
                                            - action
                                          additionalProperties: false
                                        - type: 'null'
                                    design:
                                      type: object
                                      properties:
                                        character:
                                          type: string
                                          enum:
                                            - editorial
                                            - research
                                            - extraction
                                            - directory
                                            - storyboard
                                            - studio
                                            - comparison
                                            - planner
                                            - estimate
                                            - utility
                                        density:
                                          type: string
                                          enum:
                                            - relaxed
                                            - compact
                                      required:
                                        - character
                                        - density
                                      additionalProperties: false
                                    runtimeRegions:
                                      maxItems: 4
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                                          sectionId:
                                            type: string
                                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                                          libraryDigest:
                                            type: string
                                            pattern: ^[a-f0-9]{64}$
                                          status:
                                            type: string
                                            enum:
                                              - generated
                                              - ready
                                              - unavailable
                                          artifactId:
                                            anyOf:
                                              - type: string
                                                format: uuid
                                                pattern: >-
                                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                              - type: 'null'
                                          tree:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  nodes:
                                                    minItems: 1
                                                    maxItems: 12
                                                    type: array
                                                    items: {}
                                                required:
                                                  - nodes
                                                additionalProperties: false
                                              - type: 'null'
                                          inputFields:
                                            maxItems: 16
                                            type: array
                                            items:
                                              type: string
                                              maxLength: 80
                                          failure:
                                            anyOf:
                                              - type: string
                                                maxLength: 120
                                              - type: 'null'
                                          model:
                                            type: string
                                            maxLength: 160
                                          inputTokens:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                          outputTokens:
                                            type: integer
                                            minimum: 0
                                            maximum: 9007199254740991
                                        required:
                                          - id
                                          - sectionId
                                          - libraryDigest
                                          - status
                                          - artifactId
                                          - tree
                                          - inputFields
                                          - failure
                                        additionalProperties: false
                                    sections:
                                      minItems: 1
                                      maxItems: 12
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            pattern: ^[a-z][a-z0-9_-]{0,63}$
                                          kind:
                                            type: string
                                            enum:
                                              - message
                                              - list
                                              - fields
                                              - operation
                                              - progress
                                              - results
                                              - notice
                                          title:
                                            type: string
                                            maxLength: 160
                                          text:
                                            type: string
                                            maxLength: 4000
                                          items:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: string
                                              maxLength: 800
                                          operationId:
                                            anyOf:
                                              - type: string
                                                maxLength: 200
                                              - type: 'null'
                                        required:
                                          - id
                                          - kind
                                          - title
                                          - text
                                          - items
                                          - operationId
                                        additionalProperties: false
                                    next:
                                      maxItems: 3
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          label:
                                            type: string
                                            maxLength: 100
                                          intent:
                                            type: string
                                            maxLength: 500
                                          confidence:
                                            type: number
                                            minimum: 0
                                            maximum: 1
                                        required:
                                          - label
                                          - intent
                                          - confidence
                                        additionalProperties: false
                                    reactSource:
                                      anyOf:
                                        - type: string
                                          maxLength: 50000
                                        - type: 'null'
                                    mediaPrompt:
                                      anyOf:
                                        - type: string
                                          maxLength: 4000
                                        - type: 'null'
                                  required:
                                    - title
                                    - summary
                                    - layout
                                    - representation
                                    - sections
                                    - next
                                    - reactSource
                                    - mediaPrompt
                                  additionalProperties: false
                                markdown:
                                  type: string
                                  maxLength: 20000
                                failure:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                actionReferences:
                                  type: array
                                  items:
                                    type: string
                                evidenceReferences:
                                  type: array
                                  items:
                                    type: string
                              required:
                                - id
                                - capability
                                - role
                                - status
                                - artifactId
                                - sessionId
                                - actionReferences
                                - evidenceReferences
                              additionalProperties: false
                        required:
                          - decisionId
                          - surfaces
                        additionalProperties: false
                      runId:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      revision:
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 9007199254740991
                      mode:
                        type: string
                        enum:
                          - live
                          - replay
                          - simulation
                      request:
                        type: object
                        properties:
                          clientRequestId:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          agentId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          message:
                            type: string
                            minLength: 1
                            maxLength: 8000
                          interaction:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - edit
                                  - continue
                              modality:
                                type: string
                                enum:
                                  - text
                                  - voice
                                  - image
                                  - audio
                                  - video
                                  - file
                              fields:
                                type: object
                                propertyNames:
                                  type: string
                                  minLength: 1
                                  maxLength: 120
                                additionalProperties:
                                  type: string
                                  maxLength: 5000
                            required:
                              - type
                              - fields
                            additionalProperties: false
                          operationId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          authoring:
                            type: object
                            properties:
                              draftId:
                                type: string
                                format: uuid
                                pattern: >-
                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                              revision:
                                type: integer
                                exclusiveMinimum: 0
                                maximum: 9007199254740991
                            required:
                              - draftId
                              - revision
                            additionalProperties: false
                          audio:
                            type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - speech
                                  - music
                              voice:
                                type: string
                                enum:
                                  - Rachel
                                  - Aria
                              speed:
                                type: number
                                minimum: 0.7
                                maximum: 1.2
                            additionalProperties: false
                          presentationOverride:
                            type: string
                            enum:
                              - markdown
                              - simple
                              - react
                              - world
                              - video
                              - audio
                              - game
                              - image
                              - model3d
                          threadId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          threadKind:
                            default: assist
                            type: string
                            enum:
                              - assist
                              - operation
                          turnId:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          previousRunId:
                            type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          expectedRevision:
                            type: integer
                            minimum: 0
                            maximum: 9007199254740991
                          mode:
                            default: live
                            type: string
                            enum:
                              - live
                              - replay
                              - simulation
                          host:
                            default:
                              audience: human
                              capabilities:
                                - components
                                - markdown
                                - structured
                              viewport: desktop
                              theme: light
                            type: object
                            properties:
                              audience:
                                default: human
                                type: string
                                enum:
                                  - human
                                  - agent
                                description: >-
                                  Who consumes this response. Controls
                                  presentation only; never identity,
                                  permissions, or approval.
                              capabilities:
                                default:
                                  - components
                                  - markdown
                                  - structured
                                minItems: 1
                                maxItems: 6
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - components
                                    - runtime_components
                                    - react
                                    - media
                                    - markdown
                                    - structured
                              viewport:
                                default: desktop
                                type: string
                                enum:
                                  - mobile
                                  - desktop
                              theme:
                                default: light
                                type: string
                                enum:
                                  - light
                                  - dark
                            required:
                              - audience
                              - capabilities
                              - viewport
                              - theme
                            additionalProperties: false
                        required:
                          - clientRequestId
                          - agentId
                          - message
                          - threadKind
                          - mode
                          - host
                        additionalProperties: false
                      generated:
                        type: object
                        properties:
                          title:
                            type: string
                            minLength: 1
                            maxLength: 160
                          summary:
                            type: string
                            maxLength: 3000
                          layout:
                            type: string
                            enum:
                              - stack
                              - columns
                          representation:
                            type: string
                            enum:
                              - components
                              - react
                              - media
                              - agent
                          artifact:
                            anyOf:
                              - anyOf:
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: research
                                      question:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                        description: >-
                                          One focused research question in 10-18
                                          words.
                                      focus:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 240
                                      sourceTypes:
                                        maxItems: 3
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 240
                                    required:
                                      - kind
                                      - question
                                      - focus
                                      - sourceTypes
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: extraction
                                      url:
                                        anyOf:
                                          - type: string
                                            maxLength: 2048
                                          - type: 'null'
                                      purpose:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                      fields:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            description:
                                              type: string
                                              minLength: 1
                                              maxLength: 110
                                          required:
                                            - name
                                            - description
                                          additionalProperties: false
                                    required:
                                      - kind
                                      - url
                                      - purpose
                                      - fields
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: directory
                                      audience:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                        description: >-
                                          The target prospect audience, e.g.
                                          independent fitness studios. Never the
                                          role of the person using this interface.
                                      criteria:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            label:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            value:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                          required:
                                            - label
                                            - value
                                          additionalProperties: false
                                      columns:
                                        minItems: 2
                                        maxItems: 5
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 240
                                      questions:
                                        maxItems: 3
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 240
                                    required:
                                      - kind
                                      - audience
                                      - criteria
                                      - columns
                                      - questions
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: studio
                                      headline:
                                        type: string
                                        minLength: 1
                                        maxLength: 60
                                      direction:
                                        type: string
                                        minLength: 1
                                        maxLength: 140
                                      palette:
                                        minItems: 2
                                        maxItems: 5
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            color:
                                              type: string
                                              pattern: ^#[0-9a-fA-F]{6}$
                                          required:
                                            - name
                                            - color
                                          additionalProperties: false
                                      imageBrief:
                                        type: string
                                        minLength: 1
                                        maxLength: 420
                                    required:
                                      - kind
                                      - headline
                                      - direction
                                      - palette
                                      - imageBrief
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: storyboard
                                      durationSeconds:
                                        type: number
                                        minimum: 1
                                        maximum: 600
                                      aspectRatio:
                                        type: string
                                        enum:
                                          - '9:16'
                                          - '16:9'
                                          - '1:1'
                                          - '4:5'
                                      scenes:
                                        minItems: 2
                                        maxItems: 5
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            title:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            start:
                                              type: number
                                              minimum: 0
                                            end:
                                              type: number
                                              exclusiveMinimum: 0
                                            visual:
                                              type: string
                                              minLength: 1
                                              maxLength: 350
                                            caption:
                                              type: string
                                              maxLength: 150
                                          required:
                                            - title
                                            - start
                                            - end
                                            - visual
                                            - caption
                                          additionalProperties: false
                                    required:
                                      - kind
                                      - durationSeconds
                                      - aspectRatio
                                      - scenes
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: editorial
                                      script:
                                        type: string
                                        minLength: 1
                                        maxLength: 3000
                                      tone:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                      targetSeconds:
                                        anyOf:
                                          - type: number
                                            minimum: 1
                                            maximum: 1800
                                          - type: 'null'
                                    required:
                                      - kind
                                      - script
                                      - tone
                                      - targetSeconds
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: comparison
                                      question:
                                        type: string
                                        minLength: 1
                                        maxLength: 90
                                        description: >-
                                          A concise decision question in 4-10
                                          words, not a restatement of the entire
                                          brief.
                                      criteria:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 50
                                      options:
                                        minItems: 2
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                              minLength: 1
                                              maxLength: 42
                                            values:
                                              minItems: 2
                                              maxItems: 4
                                              type: array
                                              items:
                                                type: string
                                                maxLength: 120
                                          required:
                                            - name
                                            - values
                                          additionalProperties: false
                                      basis:
                                        type: string
                                        minLength: 1
                                        maxLength: 240
                                        description: >-
                                          State whether these are proposed
                                          approaches, supplied facts, or verified
                                          evidence. Never invent product features
                                          or scores.
                                    required:
                                      - kind
                                      - question
                                      - criteria
                                      - options
                                      - basis
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: planner
                                      title:
                                        type: string
                                        minLength: 1
                                        maxLength: 80
                                      steps:
                                        minItems: 2
                                        maxItems: 6
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            title:
                                              type: string
                                              minLength: 1
                                              maxLength: 80
                                            detail:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            durationMinutes:
                                              anyOf:
                                                - type: integer
                                                  minimum: 1
                                                  maximum: 10080
                                                - type: 'null'
                                          required:
                                            - title
                                            - detail
                                            - durationMinutes
                                          additionalProperties: false
                                    required:
                                      - kind
                                      - title
                                      - steps
                                    additionalProperties: false
                                  - type: object
                                    properties:
                                      kind:
                                        type: string
                                        const: estimate
                                      title:
                                        type: string
                                        minLength: 1
                                        maxLength: 80
                                      currency:
                                        type: string
                                        enum:
                                          - USD
                                          - EUR
                                          - GBP
                                          - CAD
                                          - AUD
                                          - INR
                                          - JPY
                                      items:
                                        minItems: 1
                                        maxItems: 6
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            label:
                                              type: string
                                              minLength: 1
                                              maxLength: 60
                                              description: >-
                                                Item name only. Never duplicate
                                                quantities, currency amounts or unit
                                                costs in this label; the user can edit
                                                those independently.
                                            quantity:
                                              type: number
                                              minimum: 0
                                              maximum: 1000000
                                            unitCost:
                                              type: number
                                              minimum: 0
                                              maximum: 100000000
                                          required:
                                            - label
                                            - quantity
                                            - unitCost
                                          additionalProperties: false
                                      contingencyPercent:
                                        type: number
                                        minimum: 0
                                        maximum: 100
                                      assumptions:
                                        type: string
                                        minLength: 1
                                        maxLength: 300
                                        description: >-
                                          Explicitly identify any assumed prices,
                                          quantities and currency. These are
                                          editable estimates, not provider quotes.
                                    required:
                                      - kind
                                      - title
                                      - currency
                                      - items
                                      - contingencyPercent
                                      - assumptions
                                    additionalProperties: false
                              - type: 'null'
                          journey:
                            anyOf:
                              - type: object
                                properties:
                                  stage:
                                    type: string
                                    enum:
                                      - input
                                      - review
                                      - ready
                                      - complete
                                  instruction:
                                    type: string
                                    minLength: 1
                                    maxLength: 160
                                  action:
                                    anyOf:
                                      - type: object
                                        properties:
                                          kind:
                                            default: continue
                                            type: string
                                            enum:
                                              - continue
                                              - execute
                                              - copy
                                          label:
                                            type: string
                                            minLength: 1
                                            maxLength: 60
                                          intent:
                                            type: string
                                            minLength: 1
                                            maxLength: 800
                                            description: >-
                                              A concrete next-step instruction in
                                              plain language. Never an opaque command
                                              token such as confirm_criteria.
                                          operationId:
                                            anyOf:
                                              - type: string
                                                maxLength: 200
                                              - type: 'null'
                                          argumentsJson:
                                            anyOf:
                                              - type: string
                                                maxLength: 16000
                                              - type: 'null'
                                        required:
                                          - kind
                                          - label
                                          - intent
                                          - operationId
                                          - argumentsJson
                                        additionalProperties: false
                                      - type: 'null'
                                required:
                                  - stage
                                  - instruction
                                  - action
                                additionalProperties: false
                              - type: 'null'
                          design:
                            type: object
                            properties:
                              character:
                                type: string
                                enum:
                                  - editorial
                                  - research
                                  - extraction
                                  - directory
                                  - storyboard
                                  - studio
                                  - comparison
                                  - planner
                                  - estimate
                                  - utility
                              density:
                                type: string
                                enum:
                                  - relaxed
                                  - compact
                            required:
                              - character
                              - density
                            additionalProperties: false
                          runtimeRegions:
                            maxItems: 4
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                sectionId:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                libraryDigest:
                                  type: string
                                  pattern: ^[a-f0-9]{64}$
                                status:
                                  type: string
                                  enum:
                                    - generated
                                    - ready
                                    - unavailable
                                artifactId:
                                  anyOf:
                                    - type: string
                                      format: uuid
                                      pattern: >-
                                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                    - type: 'null'
                                tree:
                                  anyOf:
                                    - type: object
                                      properties:
                                        nodes:
                                          minItems: 1
                                          maxItems: 12
                                          type: array
                                          items: {}
                                      required:
                                        - nodes
                                      additionalProperties: false
                                    - type: 'null'
                                inputFields:
                                  maxItems: 16
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 80
                                failure:
                                  anyOf:
                                    - type: string
                                      maxLength: 120
                                    - type: 'null'
                                model:
                                  type: string
                                  maxLength: 160
                                inputTokens:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                outputTokens:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - id
                                - sectionId
                                - libraryDigest
                                - status
                                - artifactId
                                - tree
                                - inputFields
                                - failure
                              additionalProperties: false
                          sections:
                            minItems: 1
                            maxItems: 12
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                kind:
                                  type: string
                                  enum:
                                    - message
                                    - list
                                    - fields
                                    - operation
                                    - progress
                                    - results
                                    - notice
                                title:
                                  type: string
                                  maxLength: 160
                                text:
                                  type: string
                                  maxLength: 4000
                                items:
                                  maxItems: 20
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 800
                                operationId:
                                  anyOf:
                                    - type: string
                                      maxLength: 200
                                    - type: 'null'
                              required:
                                - id
                                - kind
                                - title
                                - text
                                - items
                                - operationId
                              additionalProperties: false
                          next:
                            maxItems: 3
                            type: array
                            items:
                              type: object
                              properties:
                                label:
                                  type: string
                                  maxLength: 100
                                intent:
                                  type: string
                                  maxLength: 500
                                confidence:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                              required:
                                - label
                                - intent
                                - confidence
                              additionalProperties: false
                          reactSource:
                            anyOf:
                              - type: string
                                maxLength: 50000
                              - type: 'null'
                          mediaPrompt:
                            anyOf:
                              - type: string
                                maxLength: 4000
                              - type: 'null'
                        required:
                          - title
                          - summary
                          - layout
                          - representation
                          - sections
                          - next
                          - reactSource
                          - mediaPrompt
                        additionalProperties: false
                      facts:
                        type: object
                        properties:
                          agent:
                            type: object
                            properties:
                              id:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              name:
                                type: string
                              description:
                                type: string
                              brand:
                                type: object
                                properties:
                                  primary:
                                    default: '#0071E3'
                                    type: string
                                    pattern: ^#[0-9a-fA-F]{6}$
                                  secondary:
                                    default: '#AF52DE'
                                    type: string
                                    pattern: ^#[0-9a-fA-F]{6}$
                                  background:
                                    default: '#FFFFFF'
                                    type: string
                                    pattern: ^#[0-9a-fA-F]{6}$
                                  foreground:
                                    default: '#171717'
                                    type: string
                                    pattern: ^#[0-9a-fA-F]{6}$
                                  font:
                                    default: system
                                    type: string
                                    enum:
                                      - system
                                      - serif
                                      - mono
                                required:
                                  - primary
                                  - secondary
                                  - background
                                  - foreground
                                  - font
                                additionalProperties: false
                              loading:
                                type: object
                                properties:
                                  kind:
                                    default: darwin
                                    type: string
                                    enum:
                                      - darwin
                                      - pulse
                                      - media
                                  asset:
                                    type: string
                                    maxLength: 1400000
                                    pattern: >-
                                      ^data:(image\/(gif|webp)|video\/(mp4|webm));base64,[A-Za-z0-9+/]+=*$
                                  poster:
                                    type: string
                                    maxLength: 700000
                                    pattern: >-
                                      ^data:image\/(png|jpeg);base64,[A-Za-z0-9+/]+=*$
                                required:
                                  - kind
                                additionalProperties: false
                              appearance:
                                type: object
                                properties:
                                  instructions:
                                    type: string
                                    maxLength: 4000
                                  libraryName:
                                    type: string
                                    maxLength: 100
                                  source:
                                    type: string
                                    enum:
                                      - darwin_ui
                                      - uploaded
                                      - generated
                                  library:
                                    type: object
                                    properties:
                                      schemaVersion:
                                        type: number
                                        const: 1
                                      name:
                                        type: string
                                        minLength: 1
                                        maxLength: 100
                                      version:
                                        type: string
                                        pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                      importName:
                                        type: string
                                        pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                      entry:
                                        type: string
                                        minLength: 1
                                      files:
                                        type: object
                                        propertyNames:
                                          type: string
                                        additionalProperties:
                                          type: string
                                          maxLength: 500000
                                      components:
                                        minItems: 1
                                        maxItems: 100
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            export:
                                              type: string
                                              pattern: ^[A-Z][A-Za-z0-9]*$
                                            description:
                                              type: string
                                              minLength: 1
                                              maxLength: 2000
                                            props:
                                              type: string
                                              minLength: 1
                                              maxLength: 10000
                                            example:
                                              type: string
                                              minLength: 1
                                              maxLength: 20000
                                            human:
                                              type: object
                                              properties:
                                                description:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 2000
                                                states:
                                                  minItems: 1
                                                  type: array
                                                  items:
                                                    type: string
                                                    enum:
                                                      - input
                                                      - running
                                                      - needs_input
                                                      - approval
                                                      - success
                                                      - empty
                                                      - error
                                              required:
                                                - description
                                                - states
                                              additionalProperties: false
                                            agent:
                                              type: object
                                              properties:
                                                description:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 2000
                                                outputSchema:
                                                  type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                                example:
                                                  type: object
                                                  propertyNames:
                                                    type: string
                                                  additionalProperties: {}
                                                instructions:
                                                  default: ''
                                                  type: string
                                                  maxLength: 10000
                                              required:
                                                - description
                                                - outputSchema
                                                - example
                                                - instructions
                                              additionalProperties: false
                                          required:
                                            - export
                                            - description
                                            - props
                                            - example
                                          additionalProperties: false
                                    required:
                                      - schemaVersion
                                      - name
                                      - version
                                      - importName
                                      - entry
                                      - files
                                      - components
                                    additionalProperties: false
                                  componentContracts:
                                    maxItems: 20
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        name:
                                          type: string
                                        description:
                                          type: string
                                          maxLength: 2000
                                      required:
                                        - name
                                        - description
                                      additionalProperties: false
                                required:
                                  - instructions
                                  - componentContracts
                                additionalProperties: false
                            required:
                              - id
                              - name
                              - description
                            additionalProperties: false
                          sessionContext:
                            type: object
                            properties:
                              goal:
                                type: string
                                maxLength: 4000
                              brief:
                                type: string
                                maxLength: 8000
                              messages:
                                maxItems: 12
                                type: array
                                items:
                                  type: object
                                  properties:
                                    role:
                                      type: string
                                      enum:
                                        - user
                                        - assistant
                                    text:
                                      type: string
                                      maxLength: 2000
                                  required:
                                    - role
                                    - text
                                  additionalProperties: false
                            required:
                              - goal
                              - brief
                              - messages
                            additionalProperties: false
                          operations:
                            maxItems: 500
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                name:
                                  type: string
                                description:
                                  type: string
                                guidance:
                                  type: object
                                  properties:
                                    openingQuestion:
                                      default: ''
                                      type: string
                                      maxLength: 1200
                                    primaryAction:
                                      default: ''
                                      type: string
                                      maxLength: 80
                                    context:
                                      default: ''
                                      type: string
                                      maxLength: 1200
                                    afterInput:
                                      default: ''
                                      type: string
                                      maxLength: 1200
                                    success:
                                      default: ''
                                      type: string
                                      maxLength: 1200
                                    recovery:
                                      default: ''
                                      type: string
                                      maxLength: 1200
                                  required:
                                    - openingQuestion
                                    - primaryAction
                                    - context
                                    - afterInput
                                    - success
                                    - recovery
                                  additionalProperties: false
                                experience:
                                  type: object
                                  properties:
                                    version:
                                      type: number
                                      const: 1
                                    revision:
                                      type: integer
                                      exclusiveMinimum: 0
                                      maximum: 9007199254740991
                                    initialState:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                    instructions:
                                      default: ''
                                      type: string
                                      maxLength: 4000
                                    states:
                                      minItems: 1
                                      maxItems: 64
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                          description:
                                            type: string
                                            maxLength: 1000
                                          instructions:
                                            default: ''
                                            type: string
                                            maxLength: 2000
                                          executionStatuses:
                                            minItems: 1
                                            type: array
                                            items:
                                              type: string
                                              enum:
                                                - not_started
                                                - queued
                                                - running
                                                - waiting
                                                - completed
                                                - failed
                                                - cancelled
                                                - unavailable
                                          transitions:
                                            maxItems: 64
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                          variants:
                                            minItems: 1
                                            maxItems: 1000
                                            type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - id
                                          - description
                                          - instructions
                                          - executionStatuses
                                          - transitions
                                          - variants
                                        additionalProperties: false
                                    variants:
                                      minItems: 1
                                      maxItems: 1000
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                          description:
                                            type: string
                                            maxLength: 1000
                                          instructions:
                                            default: ''
                                            type: string
                                            maxLength: 2000
                                          modalities:
                                            default:
                                              - text
                                              - voice
                                            minItems: 1
                                            type: array
                                            items:
                                              type: string
                                              enum:
                                                - text
                                                - voice
                                                - image
                                                - audio
                                                - video
                                                - file
                                          presentation:
                                            type: object
                                            properties:
                                              title:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                              summary:
                                                type: string
                                                maxLength: 3000
                                              layout:
                                                type: string
                                                enum:
                                                  - stack
                                                  - columns
                                              representation:
                                                type: string
                                                enum:
                                                  - components
                                                  - react
                                                  - media
                                                  - agent
                                              artifact:
                                                anyOf:
                                                  - anyOf:
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: research
                                                          question:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 160
                                                            description: >-
                                                              One focused research question in 10-18
                                                              words.
                                                          focus:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                          sourceTypes:
                                                            maxItems: 3
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                        required:
                                                          - kind
                                                          - question
                                                          - focus
                                                          - sourceTypes
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: extraction
                                                          url:
                                                            anyOf:
                                                              - type: string
                                                                maxLength: 2048
                                                              - type: 'null'
                                                          purpose:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 160
                                                          fields:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                name:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                                description:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 110
                                                              required:
                                                                - name
                                                                - description
                                                              additionalProperties: false
                                                        required:
                                                          - kind
                                                          - url
                                                          - purpose
                                                          - fields
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: directory
                                                          audience:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                            description: >-
                                                              The target prospect audience, e.g.
                                                              independent fitness studios. Never the
                                                              role of the person using this interface.
                                                          criteria:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                label:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                                value:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                              required:
                                                                - label
                                                                - value
                                                              additionalProperties: false
                                                          columns:
                                                            minItems: 2
                                                            maxItems: 5
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                          questions:
                                                            maxItems: 3
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 240
                                                        required:
                                                          - kind
                                                          - audience
                                                          - criteria
                                                          - columns
                                                          - questions
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: studio
                                                          headline:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 60
                                                          direction:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 140
                                                          palette:
                                                            minItems: 2
                                                            maxItems: 5
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                name:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                                color:
                                                                  type: string
                                                                  pattern: ^#[0-9a-fA-F]{6}$
                                                              required:
                                                                - name
                                                                - color
                                                              additionalProperties: false
                                                          imageBrief:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 420
                                                        required:
                                                          - kind
                                                          - headline
                                                          - direction
                                                          - palette
                                                          - imageBrief
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: storyboard
                                                          durationSeconds:
                                                            type: number
                                                            minimum: 1
                                                            maximum: 600
                                                          aspectRatio:
                                                            type: string
                                                            enum:
                                                              - '9:16'
                                                              - '16:9'
                                                              - '1:1'
                                                              - '4:5'
                                                          scenes:
                                                            minItems: 2
                                                            maxItems: 5
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                title:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                                start:
                                                                  type: number
                                                                  minimum: 0
                                                                end:
                                                                  type: number
                                                                  exclusiveMinimum: 0
                                                                visual:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 350
                                                                caption:
                                                                  type: string
                                                                  maxLength: 150
                                                              required:
                                                                - title
                                                                - start
                                                                - end
                                                                - visual
                                                                - caption
                                                              additionalProperties: false
                                                        required:
                                                          - kind
                                                          - durationSeconds
                                                          - aspectRatio
                                                          - scenes
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: editorial
                                                          script:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 3000
                                                          tone:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                          targetSeconds:
                                                            anyOf:
                                                              - type: number
                                                                minimum: 1
                                                                maximum: 1800
                                                              - type: 'null'
                                                        required:
                                                          - kind
                                                          - script
                                                          - tone
                                                          - targetSeconds
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: comparison
                                                          question:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 90
                                                            description: >-
                                                              A concise decision question in 4-10
                                                              words, not a restatement of the entire
                                                              brief.
                                                          criteria:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 50
                                                          options:
                                                            minItems: 2
                                                            maxItems: 4
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                name:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 42
                                                                values:
                                                                  minItems: 2
                                                                  maxItems: 4
                                                                  type: array
                                                                  items:
                                                                    type: string
                                                                    maxLength: 120
                                                              required:
                                                                - name
                                                                - values
                                                              additionalProperties: false
                                                          basis:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                            description: >-
                                                              State whether these are proposed
                                                              approaches, supplied facts, or verified
                                                              evidence. Never invent product features
                                                              or scores.
                                                        required:
                                                          - kind
                                                          - question
                                                          - criteria
                                                          - options
                                                          - basis
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: planner
                                                          title:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 80
                                                          steps:
                                                            minItems: 2
                                                            maxItems: 6
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                title:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 80
                                                                detail:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 240
                                                                durationMinutes:
                                                                  anyOf:
                                                                    - type: {}
                                                                      minimum: {}
                                                                      maximum: {}
                                                                    - type: {}
                                                              required:
                                                                - title
                                                                - detail
                                                                - durationMinutes
                                                              additionalProperties: false
                                                        required:
                                                          - kind
                                                          - title
                                                          - steps
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: estimate
                                                          title:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 80
                                                          currency:
                                                            type: string
                                                            enum:
                                                              - USD
                                                              - EUR
                                                              - GBP
                                                              - CAD
                                                              - AUD
                                                              - INR
                                                              - JPY
                                                          items:
                                                            minItems: 1
                                                            maxItems: 6
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                label:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 60
                                                                  description: >-
                                                                    Item name only. Never duplicate
                                                                    quantities, currency amounts or unit
                                                                    costs in this label; the user can edit
                                                                    those independently.
                                                                quantity:
                                                                  type: number
                                                                  minimum: 0
                                                                  maximum: 1000000
                                                                unitCost:
                                                                  type: number
                                                                  minimum: 0
                                                                  maximum: 100000000
                                                              required:
                                                                - label
                                                                - quantity
                                                                - unitCost
                                                              additionalProperties: false
                                                          contingencyPercent:
                                                            type: number
                                                            minimum: 0
                                                            maximum: 100
                                                          assumptions:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 300
                                                            description: >-
                                                              Explicitly identify any assumed prices,
                                                              quantities and currency. These are
                                                              editable estimates, not provider quotes.
                                                        required:
                                                          - kind
                                                          - title
                                                          - currency
                                                          - items
                                                          - contingencyPercent
                                                          - assumptions
                                                        additionalProperties: false
                                                  - type: 'null'
                                              journey:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      stage:
                                                        type: string
                                                        enum:
                                                          - input
                                                          - review
                                                          - ready
                                                          - complete
                                                      instruction:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 160
                                                      action:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              kind:
                                                                default: continue
                                                                type: string
                                                                enum:
                                                                  - continue
                                                                  - execute
                                                                  - copy
                                                              label:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 60
                                                              intent:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 800
                                                                description: >-
                                                                  A concrete next-step instruction in
                                                                  plain language. Never an opaque command
                                                                  token such as confirm_criteria.
                                                              operationId:
                                                                anyOf:
                                                                  - type: string
                                                                    maxLength: 200
                                                                  - type: 'null'
                                                              argumentsJson:
                                                                anyOf:
                                                                  - type: string
                                                                    maxLength: 16000
                                                                  - type: 'null'
                                                            required:
                                                              - kind
                                                              - label
                                                              - intent
                                                              - operationId
                                                              - argumentsJson
                                                            additionalProperties: false
                                                          - type: 'null'
                                                    required:
                                                      - stage
                                                      - instruction
                                                      - action
                                                    additionalProperties: false
                                                  - type: 'null'
                                              design:
                                                type: object
                                                properties:
                                                  character:
                                                    type: string
                                                    enum:
                                                      - editorial
                                                      - research
                                                      - extraction
                                                      - directory
                                                      - storyboard
                                                      - studio
                                                      - comparison
                                                      - planner
                                                      - estimate
                                                      - utility
                                                  density:
                                                    type: string
                                                    enum:
                                                      - relaxed
                                                      - compact
                                                required:
                                                  - character
                                                  - density
                                                additionalProperties: false
                                              runtimeRegions:
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    sectionId:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    libraryDigest:
                                                      type: string
                                                      pattern: ^[a-f0-9]{64}$
                                                    status:
                                                      type: string
                                                      enum:
                                                        - generated
                                                        - ready
                                                        - unavailable
                                                    artifactId:
                                                      anyOf:
                                                        - type: string
                                                          format: uuid
                                                          pattern: >-
                                                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                        - type: 'null'
                                                    tree:
                                                      anyOf:
                                                        - type: object
                                                          properties:
                                                            nodes:
                                                              minItems: 1
                                                              maxItems: 12
                                                              type: array
                                                              items: {}
                                                          required:
                                                            - nodes
                                                          additionalProperties: false
                                                        - type: 'null'
                                                    inputFields:
                                                      maxItems: 16
                                                      type: array
                                                      items:
                                                        type: string
                                                        maxLength: 80
                                                    failure:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 120
                                                        - type: 'null'
                                                    model:
                                                      type: string
                                                      maxLength: 160
                                                    inputTokens:
                                                      type: integer
                                                      minimum: 0
                                                      maximum: 9007199254740991
                                                    outputTokens:
                                                      type: integer
                                                      minimum: 0
                                                      maximum: 9007199254740991
                                                  required:
                                                    - id
                                                    - sectionId
                                                    - libraryDigest
                                                    - status
                                                    - artifactId
                                                    - tree
                                                    - inputFields
                                                    - failure
                                                  additionalProperties: false
                                              sections:
                                                minItems: 1
                                                maxItems: 12
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    kind:
                                                      type: string
                                                      enum:
                                                        - message
                                                        - list
                                                        - fields
                                                        - operation
                                                        - progress
                                                        - results
                                                        - notice
                                                    title:
                                                      type: string
                                                      maxLength: 160
                                                    text:
                                                      type: string
                                                      maxLength: 4000
                                                    items:
                                                      maxItems: 20
                                                      type: array
                                                      items:
                                                        type: string
                                                        maxLength: 800
                                                    operationId:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 200
                                                        - type: 'null'
                                                  required:
                                                    - id
                                                    - kind
                                                    - title
                                                    - text
                                                    - items
                                                    - operationId
                                                  additionalProperties: false
                                              next:
                                                maxItems: 3
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    label:
                                                      type: string
                                                      maxLength: 100
                                                    intent:
                                                      type: string
                                                      maxLength: 500
                                                    confidence:
                                                      type: number
                                                      minimum: 0
                                                      maximum: 1
                                                  required:
                                                    - label
                                                    - intent
                                                    - confidence
                                                  additionalProperties: false
                                              reactSource:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 50000
                                                  - type: 'null'
                                              mediaPrompt:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 4000
                                                  - type: 'null'
                                            required:
                                              - title
                                              - summary
                                              - layout
                                              - representation
                                              - sections
                                              - next
                                              - reactSource
                                              - mediaPrompt
                                            additionalProperties: false
                                          runtimeComponents:
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                id:
                                                  type: string
                                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                sectionId:
                                                  type: string
                                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                instructions:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 4000
                                                components:
                                                  default: []
                                                  maxItems: 30
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Z][A-Za-z0-9]*$
                                                inputFields:
                                                  default: []
                                                  maxItems: 16
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                              required:
                                                - id
                                                - sectionId
                                                - instructions
                                                - components
                                                - inputFields
                                              additionalProperties: false
                                          argumentBindings:
                                            maxItems: 50
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                field:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                target:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                              required:
                                                - field
                                                - target
                                              additionalProperties: false
                                          bindings:
                                            default: []
                                            maxItems: 64
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                path:
                                                  minItems: 2
                                                  maxItems: 8
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Za-z0-9_-]+$
                                                source:
                                                  type: string
                                                  enum:
                                                    - message
                                                    - field
                                                field:
                                                  type: string
                                                  maxLength: 120
                                              required:
                                                - path
                                                - source
                                              additionalProperties: false
                                        required:
                                          - id
                                          - description
                                          - instructions
                                          - modalities
                                          - presentation
                                          - bindings
                                        additionalProperties: false
                                  required:
                                    - version
                                    - revision
                                    - initialState
                                    - instructions
                                    - states
                                    - variants
                                  additionalProperties: false
                                revision:
                                  type: integer
                                  exclusiveMinimum: 0
                                  maximum: 9007199254740991
                                available:
                                  type: boolean
                                reason:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                fields:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      label:
                                        type: string
                                      type:
                                        type: string
                                        enum:
                                          - text
                                          - number
                                          - select
                                      required:
                                        type: boolean
                                      primary:
                                        type: boolean
                                      encoding:
                                        type: string
                                        const: json
                                      options:
                                        type: array
                                        items:
                                          type: string
                                      multiple:
                                        type: boolean
                                      description:
                                        type: string
                                      minimum:
                                        type: number
                                      maximum:
                                        type: number
                                      minLength:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                      maxLength:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                    required:
                                      - name
                                      - label
                                      - type
                                      - required
                                    additionalProperties: false
                                inputSchema:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties: {}
                              required:
                                - id
                                - name
                                - description
                                - available
                                - reason
                                - fields
                              additionalProperties: false
                          execution:
                            type: object
                            properties:
                              threadId:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              turnId:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              status:
                                type: string
                                enum:
                                  - not_started
                                  - queued
                                  - running
                                  - waiting
                                  - completed
                                  - failed
                                  - cancelled
                                  - unavailable
                              evidence:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    text:
                                      type: string
                                    verification:
                                      type: string
                                      enum:
                                        - provider_reported
                                        - criteria_checked
                                        - observed
                                  required:
                                    - id
                                    - text
                                    - verification
                                  additionalProperties: false
                            required:
                              - threadId
                              - turnId
                              - status
                              - evidence
                            additionalProperties: false
                        required:
                          - agent
                          - operations
                          - execution
                        additionalProperties: false
                      markdown:
                        type: string
                        maxLength: 20000
                      artifactId:
                        anyOf:
                          - type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          - type: 'null'
                      policy:
                        type: object
                        properties:
                          id:
                            type: string
                          version:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          probability:
                            type: number
                            minimum: 0
                            maximum: 1
                          applied:
                            maxItems: 3
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                version:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                scope:
                                  type: string
                                  enum:
                                    - global
                                    - agent
                                    - user
                                probability:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                              required:
                                - id
                                - version
                                - scope
                                - probability
                              additionalProperties: false
                        required:
                          - id
                          - version
                          - probability
                        additionalProperties: false
                      diagnostics:
                        type: object
                        properties:
                          model:
                            type: string
                          generationMs:
                            type: number
                          inputTokens:
                            type: number
                          outputTokens:
                            type: number
                          repairs:
                            type: number
                          fallback:
                            anyOf:
                              - type: string
                              - type: 'null'
                        required:
                          - model
                          - generationMs
                          - inputTokens
                          - outputTokens
                          - repairs
                          - fallback
                        additionalProperties: false
                      createdAt:
                        type: string
                    required:
                      - version
                      - runId
                      - revision
                      - mode
                      - request
                      - generated
                      - facts
                      - markdown
                      - artifactId
                      - policy
                      - diagnostics
                      - createdAt
                    additionalProperties: false
                  target:
                    type: object
                    properties:
                      agentId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      operationId:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    required:
                      - agentId
                    additionalProperties: false
                  clientMessageId:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  message:
                    type: string
                  author:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - human
                          - agent
                          - application
                      id:
                        type: string
                      name:
                        type: string
                        maxLength: 120
                      via:
                        type: string
                        const: darwin
                      viaAgent:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          handle:
                            anyOf:
                              - type: string
                              - type: 'null'
                        required:
                          - id
                          - name
                        additionalProperties: false
                    required:
                      - type
                      - id
                    additionalProperties: false
                  attachments:
                    maxItems: 10
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          minLength: 1
                          maxLength: 200
                        mimeType:
                          type: string
                          maxLength: 100
                      required:
                        - name
                        - mimeType
                      additionalProperties: false
                  contextSummary:
                    maxItems: 10
                    type: array
                    items:
                      type: string
                      maxLength: 8000
                  status:
                    type: string
                    enum:
                      - queued
                      - running
                      - waiting
                      - completed
                      - failed
                      - cancelled
                  blocks:
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            type:
                              type: string
                              const: live_consent
                            text:
                              type: string
                          required:
                            - type
                            - text
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: live_search
                            sourceTurnId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            snapshot:
                              type: object
                              properties:
                                contractVersion:
                                  type: string
                                  const: live-search/0.1.0
                                sessionId:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                taskRevision:
                                  type: integer
                                  exclusiveMinimum: 0
                                  maximum: 9007199254740991
                                sequence:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                rankRevision:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                status:
                                  type: string
                                  enum:
                                    - prepared
                                    - running
                                    - completed
                                    - cancelled
                                    - requires_input
                                deadlineAt:
                                  type: string
                                  format: date-time
                                  pattern: >-
                                    ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                uniqueAgentsUsed:
                                  type: integer
                                  minimum: 0
                                  maximum: 50
                                candidates:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      agentId:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                      operationId:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                      operationRevision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      taskRevision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      evidenceVersion:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                      progress:
                                        type: string
                                        enum:
                                          - retrieved
                                          - queued
                                          - contacting
                                          - waiting
                                          - replied
                                          - finished
                                      verdict:
                                        type: string
                                        enum:
                                          - fit_confirmed
                                          - conditional
                                          - not_fit
                                          - unknown
                                          - no_response
                                          - requires_input
                                          - requires_identity
                                          - requires_auth
                                          - requires_payment
                                          - unsupported_route
                                          - rate_limited
                                          - transport_error
                                          - cancelled
                                          - budget_exhausted
                                      sends:
                                        type: integer
                                        minimum: 0
                                        maximum: 3
                                      score:
                                        type: integer
                                        minimum: 0
                                        maximum: 10000
                                      evidence:
                                        maxItems: 20
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            requirementId:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                            truth:
                                              type: string
                                              enum:
                                                - PASS
                                                - FAIL
                                                - UNKNOWN
                                                - STALE
                                            kind:
                                              type: string
                                              enum:
                                                - provider_claim
                                                - observed
                                                - completed_work
                                            replyDigest:
                                              type: string
                                              pattern: ^sha256:[a-f0-9]{64}$
                                            quote:
                                              type: string
                                              minLength: 1
                                              maxLength: 500
                                            observedAt:
                                              type: string
                                              format: date-time
                                              pattern: >-
                                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                            validUntil:
                                              type: string
                                              format: date-time
                                              pattern: >-
                                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                          required:
                                            - requirementId
                                            - truth
                                            - kind
                                            - replyDigest
                                            - quote
                                            - observedAt
                                            - validUntil
                                          additionalProperties: false
                                      reason:
                                        type: string
                                        minLength: 1
                                        maxLength: 80
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                    required:
                                      - agentId
                                      - operationId
                                      - operationRevision
                                      - taskRevision
                                      - evidenceVersion
                                      - progress
                                      - verdict
                                      - sends
                                      - score
                                      - evidence
                                      - reason
                                    additionalProperties: false
                                orderedAgentIds:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                events:
                                  maxItems: 100
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      sequence:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      taskRevision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                      rankRevision:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                      kind:
                                        type: string
                                        enum:
                                          - started
                                          - candidate_upsert
                                          - candidate_removed
                                          - ranking
                                          - revised
                                          - completed
                                          - cancelled
                                          - requires_input
                                      occurredAt:
                                        type: string
                                        format: date-time
                                        pattern: >-
                                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                      candidate:
                                        anyOf:
                                          - type: object
                                            properties:
                                              agentId:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                              operationId:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                              operationRevision:
                                                type: integer
                                                exclusiveMinimum: 0
                                                maximum: 9007199254740991
                                              taskRevision:
                                                type: integer
                                                exclusiveMinimum: 0
                                                maximum: 9007199254740991
                                              evidenceVersion:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                              progress:
                                                type: string
                                                enum:
                                                  - retrieved
                                                  - queued
                                                  - contacting
                                                  - waiting
                                                  - replied
                                                  - finished
                                              verdict:
                                                type: string
                                                enum:
                                                  - fit_confirmed
                                                  - conditional
                                                  - not_fit
                                                  - unknown
                                                  - no_response
                                                  - requires_input
                                                  - requires_identity
                                                  - requires_auth
                                                  - requires_payment
                                                  - unsupported_route
                                                  - rate_limited
                                                  - transport_error
                                                  - cancelled
                                                  - budget_exhausted
                                              sends:
                                                type: integer
                                                minimum: 0
                                                maximum: 3
                                              score:
                                                type: integer
                                                minimum: 0
                                                maximum: 10000
                                              evidence:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    requirementId:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 200
                                                      pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                                    truth:
                                                      type: string
                                                      enum:
                                                        - PASS
                                                        - FAIL
                                                        - UNKNOWN
                                                        - STALE
                                                    kind:
                                                      type: string
                                                      enum:
                                                        - provider_claim
                                                        - observed
                                                        - completed_work
                                                    replyDigest:
                                                      type: string
                                                      pattern: ^sha256:[a-f0-9]{64}$
                                                    quote:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 500
                                                    observedAt:
                                                      type: string
                                                      format: date-time
                                                      pattern: >-
                                                        ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                                    validUntil:
                                                      type: string
                                                      format: date-time
                                                      pattern: >-
                                                        ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
                                                  required:
                                                    - requirementId
                                                    - truth
                                                    - kind
                                                    - replyDigest
                                                    - quote
                                                    - observedAt
                                                    - validUntil
                                                  additionalProperties: false
                                              reason:
                                                type: string
                                                minLength: 1
                                                maxLength: 80
                                                pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                            required:
                                              - agentId
                                              - operationId
                                              - operationRevision
                                              - taskRevision
                                              - evidenceVersion
                                              - progress
                                              - verdict
                                              - sends
                                              - score
                                              - evidence
                                              - reason
                                            additionalProperties: false
                                          - type: 'null'
                                      orderedAgentIds:
                                        maxItems: 50
                                        type: array
                                        items:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                          pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                      reason:
                                        type: string
                                        minLength: 1
                                        maxLength: 80
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                    required:
                                      - sequence
                                      - taskRevision
                                      - rankRevision
                                      - kind
                                      - occurredAt
                                      - candidate
                                      - orderedAgentIds
                                      - reason
                                    additionalProperties: false
                                hasMore:
                                  type: boolean
                                nextEventCursor:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                                completionReason:
                                  anyOf:
                                    - type: string
                                      minLength: 1
                                      maxLength: 80
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9:._-]*$
                                    - type: 'null'
                              required:
                                - contractVersion
                                - sessionId
                                - taskRevision
                                - sequence
                                - rankRevision
                                - status
                                - deadlineAt
                                - uniqueAgentsUsed
                                - candidates
                                - orderedAgentIds
                                - events
                                - hasMore
                                - nextEventCursor
                                - completionReason
                              additionalProperties: false
                            agents:
                              maxItems: 20
                              type: array
                              items:
                                type: object
                                properties:
                                  agentId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  agentSlug:
                                    anyOf:
                                      - type: string
                                        minLength: 1
                                        maxLength: 200
                                      - type: 'null'
                                  operationId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  operationRevision:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  providerFamilyRef:
                                    default: null
                                    anyOf:
                                      - type: string
                                        pattern: ^provider-family:sha256:[a-f0-9]{64}$
                                      - type: 'null'
                                  rank:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  selected:
                                    type: boolean
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 500
                                  description:
                                    anyOf:
                                      - type: string
                                        maxLength: 8000
                                      - type: 'null'
                                  imageUrl:
                                    anyOf:
                                      - type: string
                                        format: uri
                                      - type: 'null'
                                  avatarUrl:
                                    anyOf:
                                      - type: string
                                        format: uri
                                      - type: 'null'
                                  requiredSetup:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            enum:
                                              - credential
                                              - installation
                                              - provider_configuration
                                          suppliedBy:
                                            type: string
                                            enum:
                                              - user
                                              - provider
                                              - runtime
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 500
                                        required:
                                          - kind
                                          - suppliedBy
                                          - description
                                        additionalProperties: false
                                      - type: 'null'
                                  executionRequirements:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          contractVersion:
                                            type: string
                                            const: 1.0.0
                                          providerAuthentication:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              mechanisms:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - BEARER
                                                    - API_KEY
                                                    - OAUTH2
                                                    - HTTP_BASIC
                                                    - MUTUAL_TLS
                                                    - SIGNED_REQUEST
                                                    - SESSION_COOKIE
                                                    - OPERATION_SECRET_INPUT
                                                    - UNSPECIFIED
                                              placements:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - HEADER
                                                    - QUERY
                                                    - COOKIE
                                                    - BODY
                                                    - TOOL_ARGUMENT
                                                    - ENVIRONMENT
                                                    - AUTH_CONTINUATION
                                              scopes:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                              evidence:
                                                type: string
                                                enum:
                                                  - PROVIDER_DECLARED
                                                  - PROVIDER_OBSERVED
                                                  - DERIVED_FROM_VERIFIED_RECEIPT
                                                  - UNKNOWN
                                            required:
                                              - state
                                              - mechanisms
                                              - placements
                                              - scopes
                                              - evidence
                                            additionalProperties: false
                                          operationCredentials:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              sensitiveInputNames:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                            required:
                                              - state
                                              - sensitiveInputNames
                                            additionalProperties: false
                                          runtime:
                                            type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - REMOTE_MCP
                                                  - LOCAL_STDIO
                                                  - A2A_JSONRPC
                                                  - HTTP_JSON
                                                  - OPENAPI_HTTP
                                                  - BOUNDED_FETCH
                                                  - BROWSER
                                                  - X402_PAYMENT
                                                  - COMMERCE
                                                  - UNSUPPORTED
                                              package:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      ecosystem:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 40
                                                      identifier:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 500
                                                      version:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 200
                                                      runtimeProfile:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 120
                                                    required:
                                                      - ecosystem
                                                      - identifier
                                                      - version
                                                      - runtimeProfile
                                                    additionalProperties: false
                                                  - type: 'null'
                                              requiredEnvironmentNames:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                            required:
                                              - kind
                                              - package
                                              - requiredEnvironmentNames
                                            additionalProperties: false
                                          payment:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              termsDigest:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                            required:
                                              - state
                                              - termsDigest
                                            additionalProperties: false
                                          browser:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              sessionKind:
                                                anyOf:
                                                  - type: string
                                                    enum:
                                                      - ANONYMOUS
                                                      - PROVIDER_SESSION
                                                      - UNKNOWN
                                                  - type: 'null'
                                            required:
                                              - state
                                              - sessionKind
                                            additionalProperties: false
                                          providerContract:
                                            type: object
                                            properties:
                                              route:
                                                type: string
                                                enum:
                                                  - RESOLVED
                                                  - MISSING
                                                  - AMBIGUOUS
                                                  - UNSAFE
                                                  - UNSUPPORTED
                                                  - UNKNOWN
                                              inputSchema:
                                                type: string
                                                enum:
                                                  - CONCRETE
                                                  - DIGEST_ONLY
                                                  - MISSING
                                                  - UNKNOWN
                                              outputSchema:
                                                type: string
                                                enum:
                                                  - CONCRETE
                                                  - DIGEST_ONLY
                                                  - MISSING
                                                  - UNKNOWN
                                            required:
                                              - route
                                              - inputSchema
                                              - outputSchema
                                            additionalProperties: false
                                          providerBlockers:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                code:
                                                  type: string
                                                  enum:
                                                    - PROVIDER_ROUTE_UNSUPPORTED
                                                    - PROVIDER_SCHEMA_MISSING
                                                    - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                    - PROVIDER_METADATA_INCOMPLETE
                                                    - DARWIN_ADAPTER_UNAVAILABLE
                                                    - DARWIN_ROUTE_NOT_APPROVED
                                                    - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                    - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                    - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                                owner:
                                                  type: string
                                                  enum:
                                                    - PROVIDER
                                                    - DARWIN
                                              required:
                                                - code
                                                - owner
                                              additionalProperties: false
                                          derivation:
                                            type: object
                                            properties:
                                              normalizerVersion:
                                                type: string
                                                const: execution-requirements-v1
                                              sourceRevision:
                                                type: string
                                                minLength: 1
                                                maxLength: 240
                                              sourceReceiptDigest:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                              completeness:
                                                type: string
                                                enum:
                                                  - COMPLETE
                                                  - PARTIAL
                                              derivationKey:
                                                type: string
                                                pattern: ^sha256:[a-f0-9]{64}$
                                            required:
                                              - normalizerVersion
                                              - sourceRevision
                                              - sourceReceiptDigest
                                              - completeness
                                              - derivationKey
                                            additionalProperties: false
                                        required:
                                          - contractVersion
                                          - providerAuthentication
                                          - operationCredentials
                                          - runtime
                                          - payment
                                          - browser
                                          - providerContract
                                          - providerBlockers
                                          - derivation
                                        additionalProperties: false
                                      - type: 'null'
                                  executionGuidance:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          credentialSummaryCode:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                          credentialSummary:
                                            type: string
                                            minLength: 1
                                            maxLength: 1000
                                          setupSummaryCode:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                          setupSummary:
                                            type: string
                                            minLength: 1
                                            maxLength: 1000
                                          recordBlockers:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                code:
                                                  type: string
                                                  enum:
                                                    - PROVIDER_ROUTE_UNSUPPORTED
                                                    - PROVIDER_SCHEMA_MISSING
                                                    - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                    - PROVIDER_METADATA_INCOMPLETE
                                                    - DARWIN_ADAPTER_UNAVAILABLE
                                                    - DARWIN_ROUTE_NOT_APPROVED
                                                    - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                    - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                    - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                                owner:
                                                  type: string
                                                  enum:
                                                    - PROVIDER
                                                    - DARWIN
                                              required:
                                                - code
                                                - owner
                                              additionalProperties: false
                                          primaryBlockerCode:
                                            anyOf:
                                              - type: string
                                                enum:
                                                  - PROVIDER_ROUTE_UNSUPPORTED
                                                  - PROVIDER_SCHEMA_MISSING
                                                  - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                  - PROVIDER_METADATA_INCOMPLETE
                                                  - DARWIN_ADAPTER_UNAVAILABLE
                                                  - DARWIN_ROUTE_NOT_APPROVED
                                                  - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                  - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                  - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                              - type: 'null'
                                          rendererVersion:
                                            type: string
                                            const: execution-guidance-v1
                                        required:
                                          - credentialSummaryCode
                                          - credentialSummary
                                          - setupSummaryCode
                                          - setupSummary
                                          - recordBlockers
                                          - primaryBlockerCode
                                          - rendererVersion
                                        additionalProperties: false
                                      - type: 'null'
                                  readiness:
                                    type: string
                                    enum:
                                      - ready
                                      - authentication_required
                                      - recheck_required
                                      - unavailable
                                  canStartThread:
                                    type: boolean
                                  canAttemptThread:
                                    type: boolean
                                  reasons:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 250
                                  uncertainties:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 250
                                  inquiry:
                                    type: object
                                    properties:
                                      status:
                                        type: string
                                        enum:
                                          - contacting
                                          - waiting
                                          - following_up
                                          - replied
                                          - needs_input
                                          - no_reply
                                          - not_contacted
                                          - outcome_unknown
                                      fit:
                                        type: string
                                        enum:
                                          - matches
                                          - partial
                                          - not_fit
                                          - unknown
                                      expiresAt:
                                        type: string
                                        format: date-time
                                        pattern: >-
                                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                      threadId:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                      question:
                                        type: string
                                        minLength: 1
                                        maxLength: 2000
                                      replies:
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            messageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                            text:
                                              type: string
                                              minLength: 1
                                              maxLength: 8000
                                            at:
                                              type: string
                                              format: date-time
                                              pattern: >-
                                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                          required:
                                            - messageId
                                            - text
                                            - at
                                          additionalProperties: false
                                      description:
                                        type: string
                                        maxLength: 1200
                                      reason:
                                        type: string
                                        maxLength: 250
                                    required:
                                      - status
                                      - question
                                      - replies
                                    additionalProperties: false
                                  providerCheck:
                                    type: string
                                    enum:
                                      - not_attempted
                                      - confirmed
                                      - unconfirmed
                                      - unavailable
                                  connectionMethods:
                                    default: []
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        protocol:
                                          type: string
                                          enum:
                                            - MCP
                                            - A2A
                                            - WEBMCP
                                        environment:
                                          type: string
                                          enum:
                                            - remote_client
                                            - browser_session
                                        endpointUrl:
                                          anyOf:
                                            - type: string
                                              format: uri
                                            - type: 'null'
                                        endpointStatus:
                                          type: string
                                          enum:
                                            - not_published
                                            - verified
                                        documentationUrl:
                                          type: string
                                          format: uri
                                      required:
                                        - protocol
                                        - environment
                                        - endpointUrl
                                        - endpointStatus
                                        - documentationUrl
                                      additionalProperties: false
                                  connectionPrompt:
                                    type: string
                                    minLength: 1
                                    maxLength: 60000
                                required:
                                  - agentId
                                  - agentSlug
                                  - operationId
                                  - operationRevision
                                  - providerFamilyRef
                                  - rank
                                  - selected
                                  - name
                                  - description
                                  - requiredSetup
                                  - executionRequirements
                                  - executionGuidance
                                  - readiness
                                  - canStartThread
                                  - reasons
                                  - uncertainties
                                  - providerCheck
                                  - connectionMethods
                                  - connectionPrompt
                                additionalProperties: false
                          required:
                            - type
                            - sourceTurnId
                            - snapshot
                            - agents
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: text
                            text:
                              type: string
                          required:
                            - type
                            - text
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: agents
                            searchId:
                              type: string
                            agents:
                              maxItems: 20
                              type: array
                              items:
                                type: object
                                properties:
                                  agentId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  agentSlug:
                                    anyOf:
                                      - type: string
                                        minLength: 1
                                        maxLength: 200
                                      - type: 'null'
                                  operationId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  operationRevision:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  providerFamilyRef:
                                    default: null
                                    anyOf:
                                      - type: string
                                        pattern: ^provider-family:sha256:[a-f0-9]{64}$
                                      - type: 'null'
                                  rank:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  selected:
                                    type: boolean
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 500
                                  description:
                                    anyOf:
                                      - type: string
                                        maxLength: 8000
                                      - type: 'null'
                                  imageUrl:
                                    anyOf:
                                      - type: string
                                        format: uri
                                      - type: 'null'
                                  avatarUrl:
                                    anyOf:
                                      - type: string
                                        format: uri
                                      - type: 'null'
                                  requiredSetup:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          kind:
                                            type: string
                                            enum:
                                              - credential
                                              - installation
                                              - provider_configuration
                                          suppliedBy:
                                            type: string
                                            enum:
                                              - user
                                              - provider
                                              - runtime
                                          description:
                                            type: string
                                            minLength: 1
                                            maxLength: 500
                                        required:
                                          - kind
                                          - suppliedBy
                                          - description
                                        additionalProperties: false
                                      - type: 'null'
                                  executionRequirements:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          contractVersion:
                                            type: string
                                            const: 1.0.0
                                          providerAuthentication:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              mechanisms:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - BEARER
                                                    - API_KEY
                                                    - OAUTH2
                                                    - HTTP_BASIC
                                                    - MUTUAL_TLS
                                                    - SIGNED_REQUEST
                                                    - SESSION_COOKIE
                                                    - OPERATION_SECRET_INPUT
                                                    - UNSPECIFIED
                                              placements:
                                                maxItems: 20
                                                type: array
                                                items:
                                                  type: string
                                                  enum:
                                                    - HEADER
                                                    - QUERY
                                                    - COOKIE
                                                    - BODY
                                                    - TOOL_ARGUMENT
                                                    - ENVIRONMENT
                                                    - AUTH_CONTINUATION
                                              scopes:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                              evidence:
                                                type: string
                                                enum:
                                                  - PROVIDER_DECLARED
                                                  - PROVIDER_OBSERVED
                                                  - DERIVED_FROM_VERIFIED_RECEIPT
                                                  - UNKNOWN
                                            required:
                                              - state
                                              - mechanisms
                                              - placements
                                              - scopes
                                              - evidence
                                            additionalProperties: false
                                          operationCredentials:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              sensitiveInputNames:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                            required:
                                              - state
                                              - sensitiveInputNames
                                            additionalProperties: false
                                          runtime:
                                            type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - REMOTE_MCP
                                                  - LOCAL_STDIO
                                                  - A2A_JSONRPC
                                                  - HTTP_JSON
                                                  - OPENAPI_HTTP
                                                  - BOUNDED_FETCH
                                                  - BROWSER
                                                  - X402_PAYMENT
                                                  - COMMERCE
                                                  - UNSUPPORTED
                                              package:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      ecosystem:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 40
                                                      identifier:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 500
                                                      version:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 200
                                                      runtimeProfile:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 120
                                                    required:
                                                      - ecosystem
                                                      - identifier
                                                      - version
                                                      - runtimeProfile
                                                    additionalProperties: false
                                                  - type: 'null'
                                              requiredEnvironmentNames:
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                            required:
                                              - kind
                                              - package
                                              - requiredEnvironmentNames
                                            additionalProperties: false
                                          payment:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              termsDigest:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                            required:
                                              - state
                                              - termsDigest
                                            additionalProperties: false
                                          browser:
                                            type: object
                                            properties:
                                              state:
                                                type: string
                                                enum:
                                                  - REQUIRED
                                                  - NOT_REQUIRED
                                                  - UNKNOWN
                                                  - NOT_APPLICABLE
                                              sessionKind:
                                                anyOf:
                                                  - type: string
                                                    enum:
                                                      - ANONYMOUS
                                                      - PROVIDER_SESSION
                                                      - UNKNOWN
                                                  - type: 'null'
                                            required:
                                              - state
                                              - sessionKind
                                            additionalProperties: false
                                          providerContract:
                                            type: object
                                            properties:
                                              route:
                                                type: string
                                                enum:
                                                  - RESOLVED
                                                  - MISSING
                                                  - AMBIGUOUS
                                                  - UNSAFE
                                                  - UNSUPPORTED
                                                  - UNKNOWN
                                              inputSchema:
                                                type: string
                                                enum:
                                                  - CONCRETE
                                                  - DIGEST_ONLY
                                                  - MISSING
                                                  - UNKNOWN
                                              outputSchema:
                                                type: string
                                                enum:
                                                  - CONCRETE
                                                  - DIGEST_ONLY
                                                  - MISSING
                                                  - UNKNOWN
                                            required:
                                              - route
                                              - inputSchema
                                              - outputSchema
                                            additionalProperties: false
                                          providerBlockers:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                code:
                                                  type: string
                                                  enum:
                                                    - PROVIDER_ROUTE_UNSUPPORTED
                                                    - PROVIDER_SCHEMA_MISSING
                                                    - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                    - PROVIDER_METADATA_INCOMPLETE
                                                    - DARWIN_ADAPTER_UNAVAILABLE
                                                    - DARWIN_ROUTE_NOT_APPROVED
                                                    - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                    - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                    - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                                owner:
                                                  type: string
                                                  enum:
                                                    - PROVIDER
                                                    - DARWIN
                                              required:
                                                - code
                                                - owner
                                              additionalProperties: false
                                          derivation:
                                            type: object
                                            properties:
                                              normalizerVersion:
                                                type: string
                                                const: execution-requirements-v1
                                              sourceRevision:
                                                type: string
                                                minLength: 1
                                                maxLength: 240
                                              sourceReceiptDigest:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 200
                                                  - type: 'null'
                                              completeness:
                                                type: string
                                                enum:
                                                  - COMPLETE
                                                  - PARTIAL
                                              derivationKey:
                                                type: string
                                                pattern: ^sha256:[a-f0-9]{64}$
                                            required:
                                              - normalizerVersion
                                              - sourceRevision
                                              - sourceReceiptDigest
                                              - completeness
                                              - derivationKey
                                            additionalProperties: false
                                        required:
                                          - contractVersion
                                          - providerAuthentication
                                          - operationCredentials
                                          - runtime
                                          - payment
                                          - browser
                                          - providerContract
                                          - providerBlockers
                                          - derivation
                                        additionalProperties: false
                                      - type: 'null'
                                  executionGuidance:
                                    default: null
                                    anyOf:
                                      - type: object
                                        properties:
                                          credentialSummaryCode:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                          credentialSummary:
                                            type: string
                                            minLength: 1
                                            maxLength: 1000
                                          setupSummaryCode:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                          setupSummary:
                                            type: string
                                            minLength: 1
                                            maxLength: 1000
                                          recordBlockers:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                code:
                                                  type: string
                                                  enum:
                                                    - PROVIDER_ROUTE_UNSUPPORTED
                                                    - PROVIDER_SCHEMA_MISSING
                                                    - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                    - PROVIDER_METADATA_INCOMPLETE
                                                    - DARWIN_ADAPTER_UNAVAILABLE
                                                    - DARWIN_ROUTE_NOT_APPROVED
                                                    - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                    - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                    - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                                owner:
                                                  type: string
                                                  enum:
                                                    - PROVIDER
                                                    - DARWIN
                                              required:
                                                - code
                                                - owner
                                              additionalProperties: false
                                          primaryBlockerCode:
                                            anyOf:
                                              - type: string
                                                enum:
                                                  - PROVIDER_ROUTE_UNSUPPORTED
                                                  - PROVIDER_SCHEMA_MISSING
                                                  - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                  - PROVIDER_METADATA_INCOMPLETE
                                                  - DARWIN_ADAPTER_UNAVAILABLE
                                                  - DARWIN_ROUTE_NOT_APPROVED
                                                  - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                  - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                  - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                              - type: 'null'
                                          rendererVersion:
                                            type: string
                                            const: execution-guidance-v1
                                        required:
                                          - credentialSummaryCode
                                          - credentialSummary
                                          - setupSummaryCode
                                          - setupSummary
                                          - recordBlockers
                                          - primaryBlockerCode
                                          - rendererVersion
                                        additionalProperties: false
                                      - type: 'null'
                                  readiness:
                                    type: string
                                    enum:
                                      - ready
                                      - authentication_required
                                      - recheck_required
                                      - unavailable
                                  canStartThread:
                                    type: boolean
                                  canAttemptThread:
                                    type: boolean
                                  reasons:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 250
                                  uncertainties:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: string
                                      maxLength: 250
                                  inquiry:
                                    type: object
                                    properties:
                                      status:
                                        type: string
                                        enum:
                                          - contacting
                                          - waiting
                                          - following_up
                                          - replied
                                          - needs_input
                                          - no_reply
                                          - not_contacted
                                          - outcome_unknown
                                      fit:
                                        type: string
                                        enum:
                                          - matches
                                          - partial
                                          - not_fit
                                          - unknown
                                      expiresAt:
                                        type: string
                                        format: date-time
                                        pattern: >-
                                          ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                      threadId:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                      question:
                                        type: string
                                        minLength: 1
                                        maxLength: 2000
                                      replies:
                                        maxItems: 4
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            messageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                            text:
                                              type: string
                                              minLength: 1
                                              maxLength: 8000
                                            at:
                                              type: string
                                              format: date-time
                                              pattern: >-
                                                ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                          required:
                                            - messageId
                                            - text
                                            - at
                                          additionalProperties: false
                                      description:
                                        type: string
                                        maxLength: 1200
                                      reason:
                                        type: string
                                        maxLength: 250
                                    required:
                                      - status
                                      - question
                                      - replies
                                    additionalProperties: false
                                  providerCheck:
                                    type: string
                                    enum:
                                      - not_attempted
                                      - confirmed
                                      - unconfirmed
                                      - unavailable
                                  connectionMethods:
                                    default: []
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        protocol:
                                          type: string
                                          enum:
                                            - MCP
                                            - A2A
                                            - WEBMCP
                                        environment:
                                          type: string
                                          enum:
                                            - remote_client
                                            - browser_session
                                        endpointUrl:
                                          anyOf:
                                            - type: string
                                              format: uri
                                            - type: 'null'
                                        endpointStatus:
                                          type: string
                                          enum:
                                            - not_published
                                            - verified
                                        documentationUrl:
                                          type: string
                                          format: uri
                                      required:
                                        - protocol
                                        - environment
                                        - endpointUrl
                                        - endpointStatus
                                        - documentationUrl
                                      additionalProperties: false
                                  connectionPrompt:
                                    type: string
                                    minLength: 1
                                    maxLength: 60000
                                required:
                                  - agentId
                                  - agentSlug
                                  - operationId
                                  - operationRevision
                                  - providerFamilyRef
                                  - rank
                                  - selected
                                  - name
                                  - description
                                  - requiredSetup
                                  - executionRequirements
                                  - executionGuidance
                                  - readiness
                                  - canStartThread
                                  - reasons
                                  - uncertainties
                                  - providerCheck
                                  - connectionMethods
                                  - connectionPrompt
                                additionalProperties: false
                            role:
                              type: string
                              enum:
                                - suggested
                                - used
                          required:
                            - type
                            - searchId
                            - agents
                            - role
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: checkpoint
                            reason:
                              type: string
                              enum:
                                - approval
                                - connection
                                - unavailable
                                - limit
                                - user_control
                                - input
                            text:
                              type: string
                            threadId:
                              type: string
                          required:
                            - type
                            - reason
                            - text
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: plan
                            presentation:
                              type: object
                              properties:
                                outcome:
                                  type: string
                                  minLength: 1
                                  maxLength: 1200
                                timeline:
                                  anyOf:
                                    - type: string
                                      maxLength: 500
                                    - type: 'null'
                                budget:
                                  anyOf:
                                    - type: string
                                      maxLength: 500
                                    - type: 'null'
                                steps:
                                  minItems: 1
                                  maxItems: 8
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      title:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 1200
                                      operationIds:
                                        maxItems: 5
                                        type: array
                                        items:
                                          type: string
                                      alternativeOperationIds:
                                        maxItems: 5
                                        type: array
                                        items:
                                          type: string
                                    required:
                                      - title
                                      - description
                                      - operationIds
                                    additionalProperties: false
                              required:
                                - outcome
                                - timeline
                                - budget
                                - steps
                              additionalProperties: false
                            steps:
                              maxItems: 8
                              type: array
                              items:
                                type: object
                                properties:
                                  stepId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  objective:
                                    type: string
                                  agentId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  dependsOn:
                                    type: array
                                    items:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                required:
                                  - stepId
                                  - objective
                                  - agentId
                                  - dependsOn
                                additionalProperties: false
                          required:
                            - type
                            - steps
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: handoff
                            agentId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            threadId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            actingAiId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            actRequestId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            url:
                              type: string
                            control:
                              type: string
                              enum:
                                - user
                                - coordinator
                            presentation:
                              type: string
                              enum:
                                - chat
                                - operation
                            sourceTurnId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            status:
                              type: string
                              const: thread_created
                            operationId:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                          required:
                            - type
                            - agentId
                            - threadId
                          additionalProperties: false
                        - type: object
                          properties:
                            type:
                              type: string
                              const: outcome
                            text:
                              type: string
                            messageIds:
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 200
                                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            verification:
                              type: string
                              enum:
                                - provider_reported
                                - criteria_checked
                            partial:
                              type: boolean
                          required:
                            - type
                            - text
                            - messageIds
                            - verification
                            - partial
                          additionalProperties: false
                  searchResult:
                    type: object
                    properties:
                      delivery:
                        type: object
                        properties:
                          version:
                            type: string
                            const: composer.delivery.v1
                          audience:
                            type: string
                            enum:
                              - human
                              - agent
                            description: >-
                              Who consumes this response. Controls presentation
                              only; never identity, permissions, or approval.
                          status:
                            type: string
                            enum:
                              - composed
                              - fallback
                          markdown:
                            type: string
                          ui:
                            type: object
                            properties:
                              version:
                                type: string
                                const: darwinui-agent-v1
                              components:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      minLength: 1
                                    kind:
                                      type: string
                                      minLength: 1
                                    title:
                                      type: string
                                    data: {}
                                    text:
                                      type: string
                                    actions:
                                      default: []
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          label:
                                            type: string
                                          available:
                                            type: boolean
                                          requiredInputs:
                                            type: array
                                            items:
                                              type: string
                                          approval:
                                            type: string
                                          binding:
                                            type: object
                                            properties:
                                              name:
                                                type: string
                                              arguments:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties: {}
                                            required:
                                              - name
                                              - arguments
                                            additionalProperties: false
                                          reason:
                                            type: string
                                        required:
                                          - label
                                          - available
                                          - requiredInputs
                                          - approval
                                        additionalProperties: false
                                  required:
                                    - id
                                    - kind
                                    - title
                                    - data
                                    - actions
                                  additionalProperties: false
                              incomplete:
                                default: []
                                type: array
                                items:
                                  type: string
                            required:
                              - version
                              - components
                              - incomplete
                            additionalProperties: false
                          presentation:
                            type: object
                            properties:
                              version:
                                type: string
                                enum:
                                  - composer.v1
                                  - composer.v2
                              selection:
                                type: object
                                properties:
                                  version:
                                    type: string
                                    const: composer-selection.v1
                                  catalogRevision:
                                    type: integer
                                    exclusiveMinimum: 0
                                    maximum: 9007199254740991
                                  catalogHash:
                                    type: string
                                  operationId:
                                    anyOf:
                                      - type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                      - type: 'null'
                                  stateId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  variantId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  model:
                                    type: string
                                  confidence:
                                    type: number
                                    minimum: 0
                                    maximum: 1
                                  fallback:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                  latencyMs:
                                    type: number
                                    minimum: 0
                                  inputTokens:
                                    type: number
                                    minimum: 0
                                required:
                                  - version
                                  - catalogRevision
                                  - catalogHash
                                  - operationId
                                  - stateId
                                  - variantId
                                  - model
                                  - confidence
                                  - fallback
                                  - latencyMs
                                  - inputTokens
                                additionalProperties: false
                              decision:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                    pattern: >-
                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  model:
                                    type: string
                                  questionVersion:
                                    type: string
                                  catalogVersion:
                                    type: string
                                  mode:
                                    type: string
                                    enum:
                                      - shadow
                                      - active
                                  eligible:
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - markdown
                                        - simple
                                        - react
                                        - world
                                        - video
                                        - audio
                                        - game
                                        - image
                                        - model3d
                                  selected:
                                    type: string
                                    enum:
                                      - markdown
                                      - simple
                                      - react
                                      - world
                                      - video
                                      - audio
                                      - game
                                      - image
                                      - model3d
                                  audio:
                                    type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - speech
                                          - music
                                      voice:
                                        type: string
                                        enum:
                                          - Rachel
                                          - Aria
                                      speed:
                                        type: number
                                        minimum: 0.7
                                        maximum: 1.2
                                    required:
                                      - kind
                                      - voice
                                      - speed
                                    additionalProperties: false
                                  audioSelection:
                                    type: object
                                    properties:
                                      model:
                                        type: string
                                      questionVersion:
                                        type: string
                                      latencyMs:
                                        type: number
                                        minimum: 0
                                      inputTokens:
                                        default: 0
                                        type: number
                                        minimum: 0
                                      answers:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            name:
                                              type: string
                                            choice:
                                              type: string
                                            confidence:
                                              type: number
                                              minimum: 0
                                              maximum: 1
                                            probabilities:
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  value:
                                                    type: string
                                                  probability:
                                                    type: number
                                                    minimum: 0
                                                    maximum: 1
                                                required:
                                                  - value
                                                  - probability
                                                additionalProperties: false
                                          required:
                                            - name
                                            - choice
                                            - confidence
                                          additionalProperties: false
                                    required:
                                      - model
                                      - questionVersion
                                      - latencyMs
                                      - inputTokens
                                      - answers
                                    additionalProperties: false
                                  supporting:
                                    default: []
                                    maxItems: 2
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - markdown
                                        - simple
                                        - react
                                        - world
                                        - video
                                        - audio
                                        - game
                                        - image
                                        - model3d
                                  override:
                                    anyOf:
                                      - type: string
                                        enum:
                                          - markdown
                                          - simple
                                          - react
                                          - world
                                          - video
                                          - audio
                                          - game
                                          - image
                                          - model3d
                                      - type: 'null'
                                  confidence:
                                    type: number
                                    minimum: 0
                                    maximum: 1
                                  probabilities:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        value:
                                          type: string
                                          enum:
                                            - markdown
                                            - simple
                                            - react
                                            - world
                                            - video
                                            - audio
                                            - game
                                            - image
                                            - model3d
                                        probability:
                                          type: number
                                          minimum: 0
                                          maximum: 1
                                      required:
                                        - value
                                        - probability
                                      additionalProperties: false
                                  transition:
                                    type: string
                                    enum:
                                      - retain
                                      - update
                                      - replace
                                  fallback:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                  latencyMs:
                                    type: number
                                    minimum: 0
                                  inputTokens:
                                    type: number
                                    minimum: 0
                                  appliedPolicies:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                        version:
                                          type: number
                                        scope:
                                          type: string
                                        probability:
                                          type: number
                                          minimum: 0
                                          maximum: 1
                                      required:
                                        - id
                                        - version
                                        - scope
                                        - probability
                                      additionalProperties: false
                                required:
                                  - id
                                  - model
                                  - questionVersion
                                  - catalogVersion
                                  - mode
                                  - eligible
                                  - selected
                                  - supporting
                                  - override
                                  - confidence
                                  - probabilities
                                  - transition
                                  - fallback
                                  - latencyMs
                                  - inputTokens
                                  - appliedPolicies
                                additionalProperties: false
                              experience:
                                type: object
                                properties:
                                  decisionId:
                                    type: string
                                    format: uuid
                                    pattern: >-
                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  surfaces:
                                    minItems: 1
                                    maxItems: 12
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        capability:
                                          type: string
                                          enum:
                                            - markdown
                                            - simple
                                            - react
                                            - world
                                            - video
                                            - audio
                                            - game
                                            - image
                                            - model3d
                                        role:
                                          type: string
                                          enum:
                                            - primary
                                            - supporting
                                            - fallback
                                        status:
                                          type: string
                                          enum:
                                            - ready
                                            - pending
                                            - failed
                                            - unavailable
                                        artifactId:
                                          anyOf:
                                            - type: string
                                              format: uuid
                                              pattern: >-
                                                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                            - type: 'null'
                                        sessionId:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                        assetJobId:
                                          type: string
                                          format: uuid
                                          pattern: >-
                                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                        generated:
                                          type: object
                                          properties:
                                            title:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                            summary:
                                              type: string
                                              maxLength: 3000
                                            layout:
                                              type: string
                                              enum:
                                                - stack
                                                - columns
                                            representation:
                                              type: string
                                              enum:
                                                - components
                                                - react
                                                - media
                                                - agent
                                            artifact:
                                              anyOf:
                                                - anyOf:
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: research
                                                        question:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 160
                                                          description: >-
                                                            One focused research question in 10-18
                                                            words.
                                                        focus:
                                                          minItems: 2
                                                          maxItems: 4
                                                          type: array
                                                          items:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                        sourceTypes:
                                                          maxItems: 3
                                                          type: array
                                                          items:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                      required:
                                                        - kind
                                                        - question
                                                        - focus
                                                        - sourceTypes
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: extraction
                                                        url:
                                                          anyOf:
                                                            - type: string
                                                              maxLength: 2048
                                                            - type: 'null'
                                                        purpose:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 160
                                                        fields:
                                                          minItems: 2
                                                          maxItems: 4
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              name:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                              description:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 110
                                                            required:
                                                              - name
                                                              - description
                                                            additionalProperties: false
                                                      required:
                                                        - kind
                                                        - url
                                                        - purpose
                                                        - fields
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: directory
                                                        audience:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 240
                                                          description: >-
                                                            The target prospect audience, e.g.
                                                            independent fitness studios. Never the
                                                            role of the person using this interface.
                                                        criteria:
                                                          minItems: 2
                                                          maxItems: 4
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              label:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                              value:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                            required:
                                                              - label
                                                              - value
                                                            additionalProperties: false
                                                        columns:
                                                          minItems: 2
                                                          maxItems: 5
                                                          type: array
                                                          items:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                        questions:
                                                          maxItems: 3
                                                          type: array
                                                          items:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 240
                                                      required:
                                                        - kind
                                                        - audience
                                                        - criteria
                                                        - columns
                                                        - questions
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: studio
                                                        headline:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 60
                                                        direction:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 140
                                                        palette:
                                                          minItems: 2
                                                          maxItems: 5
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              name:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                              color:
                                                                type: string
                                                                pattern: ^#[0-9a-fA-F]{6}$
                                                            required:
                                                              - name
                                                              - color
                                                            additionalProperties: false
                                                        imageBrief:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 420
                                                      required:
                                                        - kind
                                                        - headline
                                                        - direction
                                                        - palette
                                                        - imageBrief
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: storyboard
                                                        durationSeconds:
                                                          type: number
                                                          minimum: 1
                                                          maximum: 600
                                                        aspectRatio:
                                                          type: string
                                                          enum:
                                                            - '9:16'
                                                            - '16:9'
                                                            - '1:1'
                                                            - '4:5'
                                                        scenes:
                                                          minItems: 2
                                                          maxItems: 5
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              title:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                              start:
                                                                type: number
                                                                minimum: 0
                                                              end:
                                                                type: number
                                                                exclusiveMinimum: 0
                                                              visual:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 350
                                                              caption:
                                                                type: string
                                                                maxLength: 150
                                                            required:
                                                              - title
                                                              - start
                                                              - end
                                                              - visual
                                                              - caption
                                                            additionalProperties: false
                                                      required:
                                                        - kind
                                                        - durationSeconds
                                                        - aspectRatio
                                                        - scenes
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: editorial
                                                        script:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 3000
                                                        tone:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 240
                                                        targetSeconds:
                                                          anyOf:
                                                            - type: number
                                                              minimum: 1
                                                              maximum: 1800
                                                            - type: 'null'
                                                      required:
                                                        - kind
                                                        - script
                                                        - tone
                                                        - targetSeconds
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: comparison
                                                        question:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 90
                                                          description: >-
                                                            A concise decision question in 4-10
                                                            words, not a restatement of the entire
                                                            brief.
                                                        criteria:
                                                          minItems: 2
                                                          maxItems: 4
                                                          type: array
                                                          items:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 50
                                                        options:
                                                          minItems: 2
                                                          maxItems: 4
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              name:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 42
                                                              values:
                                                                minItems: 2
                                                                maxItems: 4
                                                                type: array
                                                                items:
                                                                  type: string
                                                                  maxLength: 120
                                                            required:
                                                              - name
                                                              - values
                                                            additionalProperties: false
                                                        basis:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 240
                                                          description: >-
                                                            State whether these are proposed
                                                            approaches, supplied facts, or verified
                                                            evidence. Never invent product features
                                                            or scores.
                                                      required:
                                                        - kind
                                                        - question
                                                        - criteria
                                                        - options
                                                        - basis
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: planner
                                                        title:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 80
                                                        steps:
                                                          minItems: 2
                                                          maxItems: 6
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              title:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 80
                                                              detail:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 240
                                                              durationMinutes:
                                                                anyOf:
                                                                  - type: integer
                                                                    minimum: 1
                                                                    maximum: 10080
                                                                  - type: 'null'
                                                            required:
                                                              - title
                                                              - detail
                                                              - durationMinutes
                                                            additionalProperties: false
                                                      required:
                                                        - kind
                                                        - title
                                                        - steps
                                                      additionalProperties: false
                                                    - type: object
                                                      properties:
                                                        kind:
                                                          type: string
                                                          const: estimate
                                                        title:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 80
                                                        currency:
                                                          type: string
                                                          enum:
                                                            - USD
                                                            - EUR
                                                            - GBP
                                                            - CAD
                                                            - AUD
                                                            - INR
                                                            - JPY
                                                        items:
                                                          minItems: 1
                                                          maxItems: 6
                                                          type: array
                                                          items:
                                                            type: object
                                                            properties:
                                                              label:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 60
                                                                description: >-
                                                                  Item name only. Never duplicate
                                                                  quantities, currency amounts or unit
                                                                  costs in this label; the user can edit
                                                                  those independently.
                                                              quantity:
                                                                type: number
                                                                minimum: 0
                                                                maximum: 1000000
                                                              unitCost:
                                                                type: number
                                                                minimum: 0
                                                                maximum: 100000000
                                                            required:
                                                              - label
                                                              - quantity
                                                              - unitCost
                                                            additionalProperties: false
                                                        contingencyPercent:
                                                          type: number
                                                          minimum: 0
                                                          maximum: 100
                                                        assumptions:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 300
                                                          description: >-
                                                            Explicitly identify any assumed prices,
                                                            quantities and currency. These are
                                                            editable estimates, not provider quotes.
                                                      required:
                                                        - kind
                                                        - title
                                                        - currency
                                                        - items
                                                        - contingencyPercent
                                                        - assumptions
                                                      additionalProperties: false
                                                - type: 'null'
                                            journey:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    stage:
                                                      type: string
                                                      enum:
                                                        - input
                                                        - review
                                                        - ready
                                                        - complete
                                                    instruction:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 160
                                                    action:
                                                      anyOf:
                                                        - type: object
                                                          properties:
                                                            kind:
                                                              default: continue
                                                              type: string
                                                              enum:
                                                                - continue
                                                                - execute
                                                                - copy
                                                            label:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 60
                                                            intent:
                                                              type: string
                                                              minLength: 1
                                                              maxLength: 800
                                                              description: >-
                                                                A concrete next-step instruction in
                                                                plain language. Never an opaque command
                                                                token such as confirm_criteria.
                                                            operationId:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 200
                                                                - type: 'null'
                                                            argumentsJson:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 16000
                                                                - type: 'null'
                                                          required:
                                                            - kind
                                                            - label
                                                            - intent
                                                            - operationId
                                                            - argumentsJson
                                                          additionalProperties: false
                                                        - type: 'null'
                                                  required:
                                                    - stage
                                                    - instruction
                                                    - action
                                                  additionalProperties: false
                                                - type: 'null'
                                            design:
                                              type: object
                                              properties:
                                                character:
                                                  type: string
                                                  enum:
                                                    - editorial
                                                    - research
                                                    - extraction
                                                    - directory
                                                    - storyboard
                                                    - studio
                                                    - comparison
                                                    - planner
                                                    - estimate
                                                    - utility
                                                density:
                                                  type: string
                                                  enum:
                                                    - relaxed
                                                    - compact
                                              required:
                                                - character
                                                - density
                                              additionalProperties: false
                                            runtimeRegions:
                                              maxItems: 4
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  sectionId:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  libraryDigest:
                                                    type: string
                                                    pattern: ^[a-f0-9]{64}$
                                                  status:
                                                    type: string
                                                    enum:
                                                      - generated
                                                      - ready
                                                      - unavailable
                                                  artifactId:
                                                    anyOf:
                                                      - type: string
                                                        format: uuid
                                                        pattern: >-
                                                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                      - type: 'null'
                                                  tree:
                                                    anyOf:
                                                      - type: object
                                                        properties:
                                                          nodes:
                                                            minItems: 1
                                                            maxItems: 12
                                                            type: array
                                                            items: {}
                                                        required:
                                                          - nodes
                                                        additionalProperties: false
                                                      - type: 'null'
                                                  inputFields:
                                                    maxItems: 16
                                                    type: array
                                                    items:
                                                      type: string
                                                      maxLength: 80
                                                  failure:
                                                    anyOf:
                                                      - type: string
                                                        maxLength: 120
                                                      - type: 'null'
                                                  model:
                                                    type: string
                                                    maxLength: 160
                                                  inputTokens:
                                                    type: integer
                                                    minimum: 0
                                                    maximum: 9007199254740991
                                                  outputTokens:
                                                    type: integer
                                                    minimum: 0
                                                    maximum: 9007199254740991
                                                required:
                                                  - id
                                                  - sectionId
                                                  - libraryDigest
                                                  - status
                                                  - artifactId
                                                  - tree
                                                  - inputFields
                                                  - failure
                                                additionalProperties: false
                                            sections:
                                              minItems: 1
                                              maxItems: 12
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                  kind:
                                                    type: string
                                                    enum:
                                                      - message
                                                      - list
                                                      - fields
                                                      - operation
                                                      - progress
                                                      - results
                                                      - notice
                                                  title:
                                                    type: string
                                                    maxLength: 160
                                                  text:
                                                    type: string
                                                    maxLength: 4000
                                                  items:
                                                    maxItems: 20
                                                    type: array
                                                    items:
                                                      type: string
                                                      maxLength: 800
                                                  operationId:
                                                    anyOf:
                                                      - type: string
                                                        maxLength: 200
                                                      - type: 'null'
                                                required:
                                                  - id
                                                  - kind
                                                  - title
                                                  - text
                                                  - items
                                                  - operationId
                                                additionalProperties: false
                                            next:
                                              maxItems: 3
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  label:
                                                    type: string
                                                    maxLength: 100
                                                  intent:
                                                    type: string
                                                    maxLength: 500
                                                  confidence:
                                                    type: number
                                                    minimum: 0
                                                    maximum: 1
                                                required:
                                                  - label
                                                  - intent
                                                  - confidence
                                                additionalProperties: false
                                            reactSource:
                                              anyOf:
                                                - type: string
                                                  maxLength: 50000
                                                - type: 'null'
                                            mediaPrompt:
                                              anyOf:
                                                - type: string
                                                  maxLength: 4000
                                                - type: 'null'
                                          required:
                                            - title
                                            - summary
                                            - layout
                                            - representation
                                            - sections
                                            - next
                                            - reactSource
                                            - mediaPrompt
                                          additionalProperties: false
                                        markdown:
                                          type: string
                                          maxLength: 20000
                                        failure:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                        actionReferences:
                                          type: array
                                          items:
                                            type: string
                                        evidenceReferences:
                                          type: array
                                          items:
                                            type: string
                                      required:
                                        - id
                                        - capability
                                        - role
                                        - status
                                        - artifactId
                                        - sessionId
                                        - actionReferences
                                        - evidenceReferences
                                      additionalProperties: false
                                required:
                                  - decisionId
                                  - surfaces
                                additionalProperties: false
                              runId:
                                type: string
                                format: uuid
                                pattern: >-
                                  ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                              revision:
                                type: integer
                                exclusiveMinimum: 0
                                maximum: 9007199254740991
                              mode:
                                type: string
                                enum:
                                  - live
                                  - replay
                                  - simulation
                              request:
                                type: object
                                properties:
                                  clientRequestId:
                                    type: string
                                    format: uuid
                                    pattern: >-
                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  agentId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  message:
                                    type: string
                                    minLength: 1
                                    maxLength: 8000
                                  interaction:
                                    type: object
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                          - edit
                                          - continue
                                      modality:
                                        type: string
                                        enum:
                                          - text
                                          - voice
                                          - image
                                          - audio
                                          - video
                                          - file
                                      fields:
                                        type: object
                                        propertyNames:
                                          type: string
                                          minLength: 1
                                          maxLength: 120
                                        additionalProperties:
                                          type: string
                                          maxLength: 5000
                                    required:
                                      - type
                                      - fields
                                    additionalProperties: false
                                  operationId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  authoring:
                                    type: object
                                    properties:
                                      draftId:
                                        type: string
                                        format: uuid
                                        pattern: >-
                                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                      revision:
                                        type: integer
                                        exclusiveMinimum: 0
                                        maximum: 9007199254740991
                                    required:
                                      - draftId
                                      - revision
                                    additionalProperties: false
                                  audio:
                                    type: object
                                    properties:
                                      kind:
                                        type: string
                                        enum:
                                          - speech
                                          - music
                                      voice:
                                        type: string
                                        enum:
                                          - Rachel
                                          - Aria
                                      speed:
                                        type: number
                                        minimum: 0.7
                                        maximum: 1.2
                                    additionalProperties: false
                                  presentationOverride:
                                    type: string
                                    enum:
                                      - markdown
                                      - simple
                                      - react
                                      - world
                                      - video
                                      - audio
                                      - game
                                      - image
                                      - model3d
                                  threadId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  threadKind:
                                    default: assist
                                    type: string
                                    enum:
                                      - assist
                                      - operation
                                  turnId:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                  previousRunId:
                                    type: string
                                    format: uuid
                                    pattern: >-
                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  expectedRevision:
                                    type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                                  mode:
                                    default: live
                                    type: string
                                    enum:
                                      - live
                                      - replay
                                      - simulation
                                  host:
                                    default:
                                      audience: human
                                      capabilities:
                                        - components
                                        - markdown
                                        - structured
                                      viewport: desktop
                                      theme: light
                                    type: object
                                    properties:
                                      audience:
                                        default: human
                                        type: string
                                        enum:
                                          - human
                                          - agent
                                        description: >-
                                          Who consumes this response. Controls
                                          presentation only; never identity,
                                          permissions, or approval.
                                      capabilities:
                                        default:
                                          - components
                                          - markdown
                                          - structured
                                        minItems: 1
                                        maxItems: 6
                                        type: array
                                        items:
                                          type: string
                                          enum:
                                            - components
                                            - runtime_components
                                            - react
                                            - media
                                            - markdown
                                            - structured
                                      viewport:
                                        default: desktop
                                        type: string
                                        enum:
                                          - mobile
                                          - desktop
                                      theme:
                                        default: light
                                        type: string
                                        enum:
                                          - light
                                          - dark
                                    required:
                                      - audience
                                      - capabilities
                                      - viewport
                                      - theme
                                    additionalProperties: false
                                required:
                                  - clientRequestId
                                  - agentId
                                  - message
                                  - threadKind
                                  - mode
                                  - host
                                additionalProperties: false
                              generated:
                                type: object
                                properties:
                                  title:
                                    type: string
                                    minLength: 1
                                    maxLength: 160
                                  summary:
                                    type: string
                                    maxLength: 3000
                                  layout:
                                    type: string
                                    enum:
                                      - stack
                                      - columns
                                  representation:
                                    type: string
                                    enum:
                                      - components
                                      - react
                                      - media
                                      - agent
                                  artifact:
                                    anyOf:
                                      - anyOf:
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: research
                                              question:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                                description: >-
                                                  One focused research question in 10-18
                                                  words.
                                              focus:
                                                minItems: 2
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                              sourceTypes:
                                                maxItems: 3
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                            required:
                                              - kind
                                              - question
                                              - focus
                                              - sourceTypes
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: extraction
                                              url:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 2048
                                                  - type: 'null'
                                              purpose:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                              fields:
                                                minItems: 2
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    name:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    description:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 110
                                                  required:
                                                    - name
                                                    - description
                                                  additionalProperties: false
                                            required:
                                              - kind
                                              - url
                                              - purpose
                                              - fields
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: directory
                                              audience:
                                                type: string
                                                minLength: 1
                                                maxLength: 240
                                                description: >-
                                                  The target prospect audience, e.g.
                                                  independent fitness studios. Never the
                                                  role of the person using this interface.
                                              criteria:
                                                minItems: 2
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    label:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    value:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                  required:
                                                    - label
                                                    - value
                                                  additionalProperties: false
                                              columns:
                                                minItems: 2
                                                maxItems: 5
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                              questions:
                                                maxItems: 3
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 240
                                            required:
                                              - kind
                                              - audience
                                              - criteria
                                              - columns
                                              - questions
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: studio
                                              headline:
                                                type: string
                                                minLength: 1
                                                maxLength: 60
                                              direction:
                                                type: string
                                                minLength: 1
                                                maxLength: 140
                                              palette:
                                                minItems: 2
                                                maxItems: 5
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    name:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    color:
                                                      type: string
                                                      pattern: ^#[0-9a-fA-F]{6}$
                                                  required:
                                                    - name
                                                    - color
                                                  additionalProperties: false
                                              imageBrief:
                                                type: string
                                                minLength: 1
                                                maxLength: 420
                                            required:
                                              - kind
                                              - headline
                                              - direction
                                              - palette
                                              - imageBrief
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: storyboard
                                              durationSeconds:
                                                type: number
                                                minimum: 1
                                                maximum: 600
                                              aspectRatio:
                                                type: string
                                                enum:
                                                  - '9:16'
                                                  - '16:9'
                                                  - '1:1'
                                                  - '4:5'
                                              scenes:
                                                minItems: 2
                                                maxItems: 5
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    title:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    start:
                                                      type: number
                                                      minimum: 0
                                                    end:
                                                      type: number
                                                      exclusiveMinimum: 0
                                                    visual:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 350
                                                    caption:
                                                      type: string
                                                      maxLength: 150
                                                  required:
                                                    - title
                                                    - start
                                                    - end
                                                    - visual
                                                    - caption
                                                  additionalProperties: false
                                            required:
                                              - kind
                                              - durationSeconds
                                              - aspectRatio
                                              - scenes
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: editorial
                                              script:
                                                type: string
                                                minLength: 1
                                                maxLength: 3000
                                              tone:
                                                type: string
                                                minLength: 1
                                                maxLength: 240
                                              targetSeconds:
                                                anyOf:
                                                  - type: number
                                                    minimum: 1
                                                    maximum: 1800
                                                  - type: 'null'
                                            required:
                                              - kind
                                              - script
                                              - tone
                                              - targetSeconds
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: comparison
                                              question:
                                                type: string
                                                minLength: 1
                                                maxLength: 90
                                                description: >-
                                                  A concise decision question in 4-10
                                                  words, not a restatement of the entire
                                                  brief.
                                              criteria:
                                                minItems: 2
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 50
                                              options:
                                                minItems: 2
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    name:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 42
                                                    values:
                                                      minItems: 2
                                                      maxItems: 4
                                                      type: array
                                                      items:
                                                        type: string
                                                        maxLength: 120
                                                  required:
                                                    - name
                                                    - values
                                                  additionalProperties: false
                                              basis:
                                                type: string
                                                minLength: 1
                                                maxLength: 240
                                                description: >-
                                                  State whether these are proposed
                                                  approaches, supplied facts, or verified
                                                  evidence. Never invent product features
                                                  or scores.
                                            required:
                                              - kind
                                              - question
                                              - criteria
                                              - options
                                              - basis
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: planner
                                              title:
                                                type: string
                                                minLength: 1
                                                maxLength: 80
                                              steps:
                                                minItems: 2
                                                maxItems: 6
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    title:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 80
                                                    detail:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 240
                                                    durationMinutes:
                                                      anyOf:
                                                        - type: integer
                                                          minimum: 1
                                                          maximum: 10080
                                                        - type: 'null'
                                                  required:
                                                    - title
                                                    - detail
                                                    - durationMinutes
                                                  additionalProperties: false
                                            required:
                                              - kind
                                              - title
                                              - steps
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                const: estimate
                                              title:
                                                type: string
                                                minLength: 1
                                                maxLength: 80
                                              currency:
                                                type: string
                                                enum:
                                                  - USD
                                                  - EUR
                                                  - GBP
                                                  - CAD
                                                  - AUD
                                                  - INR
                                                  - JPY
                                              items:
                                                minItems: 1
                                                maxItems: 6
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    label:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 60
                                                      description: >-
                                                        Item name only. Never duplicate
                                                        quantities, currency amounts or unit
                                                        costs in this label; the user can edit
                                                        those independently.
                                                    quantity:
                                                      type: number
                                                      minimum: 0
                                                      maximum: 1000000
                                                    unitCost:
                                                      type: number
                                                      minimum: 0
                                                      maximum: 100000000
                                                  required:
                                                    - label
                                                    - quantity
                                                    - unitCost
                                                  additionalProperties: false
                                              contingencyPercent:
                                                type: number
                                                minimum: 0
                                                maximum: 100
                                              assumptions:
                                                type: string
                                                minLength: 1
                                                maxLength: 300
                                                description: >-
                                                  Explicitly identify any assumed prices,
                                                  quantities and currency. These are
                                                  editable estimates, not provider quotes.
                                            required:
                                              - kind
                                              - title
                                              - currency
                                              - items
                                              - contingencyPercent
                                              - assumptions
                                            additionalProperties: false
                                      - type: 'null'
                                  journey:
                                    anyOf:
                                      - type: object
                                        properties:
                                          stage:
                                            type: string
                                            enum:
                                              - input
                                              - review
                                              - ready
                                              - complete
                                          instruction:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                          action:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  kind:
                                                    default: continue
                                                    type: string
                                                    enum:
                                                      - continue
                                                      - execute
                                                      - copy
                                                  label:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 60
                                                  intent:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 800
                                                    description: >-
                                                      A concrete next-step instruction in
                                                      plain language. Never an opaque command
                                                      token such as confirm_criteria.
                                                  operationId:
                                                    anyOf:
                                                      - type: string
                                                        maxLength: 200
                                                      - type: 'null'
                                                  argumentsJson:
                                                    anyOf:
                                                      - type: string
                                                        maxLength: 16000
                                                      - type: 'null'
                                                required:
                                                  - kind
                                                  - label
                                                  - intent
                                                  - operationId
                                                  - argumentsJson
                                                additionalProperties: false
                                              - type: 'null'
                                        required:
                                          - stage
                                          - instruction
                                          - action
                                        additionalProperties: false
                                      - type: 'null'
                                  design:
                                    type: object
                                    properties:
                                      character:
                                        type: string
                                        enum:
                                          - editorial
                                          - research
                                          - extraction
                                          - directory
                                          - storyboard
                                          - studio
                                          - comparison
                                          - planner
                                          - estimate
                                          - utility
                                      density:
                                        type: string
                                        enum:
                                          - relaxed
                                          - compact
                                    required:
                                      - character
                                      - density
                                    additionalProperties: false
                                  runtimeRegions:
                                    maxItems: 4
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          pattern: ^[a-z][a-z0-9_-]{0,63}$
                                        sectionId:
                                          type: string
                                          pattern: ^[a-z][a-z0-9_-]{0,63}$
                                        libraryDigest:
                                          type: string
                                          pattern: ^[a-f0-9]{64}$
                                        status:
                                          type: string
                                          enum:
                                            - generated
                                            - ready
                                            - unavailable
                                        artifactId:
                                          anyOf:
                                            - type: string
                                              format: uuid
                                              pattern: >-
                                                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                            - type: 'null'
                                        tree:
                                          anyOf:
                                            - type: object
                                              properties:
                                                nodes:
                                                  minItems: 1
                                                  maxItems: 12
                                                  type: array
                                                  items: {}
                                              required:
                                                - nodes
                                              additionalProperties: false
                                            - type: 'null'
                                        inputFields:
                                          maxItems: 16
                                          type: array
                                          items:
                                            type: string
                                            maxLength: 80
                                        failure:
                                          anyOf:
                                            - type: string
                                              maxLength: 120
                                            - type: 'null'
                                        model:
                                          type: string
                                          maxLength: 160
                                        inputTokens:
                                          type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                        outputTokens:
                                          type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                      required:
                                        - id
                                        - sectionId
                                        - libraryDigest
                                        - status
                                        - artifactId
                                        - tree
                                        - inputFields
                                        - failure
                                      additionalProperties: false
                                  sections:
                                    minItems: 1
                                    maxItems: 12
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          pattern: ^[a-z][a-z0-9_-]{0,63}$
                                        kind:
                                          type: string
                                          enum:
                                            - message
                                            - list
                                            - fields
                                            - operation
                                            - progress
                                            - results
                                            - notice
                                        title:
                                          type: string
                                          maxLength: 160
                                        text:
                                          type: string
                                          maxLength: 4000
                                        items:
                                          maxItems: 20
                                          type: array
                                          items:
                                            type: string
                                            maxLength: 800
                                        operationId:
                                          anyOf:
                                            - type: string
                                              maxLength: 200
                                            - type: 'null'
                                      required:
                                        - id
                                        - kind
                                        - title
                                        - text
                                        - items
                                        - operationId
                                      additionalProperties: false
                                  next:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        label:
                                          type: string
                                          maxLength: 100
                                        intent:
                                          type: string
                                          maxLength: 500
                                        confidence:
                                          type: number
                                          minimum: 0
                                          maximum: 1
                                      required:
                                        - label
                                        - intent
                                        - confidence
                                      additionalProperties: false
                                  reactSource:
                                    anyOf:
                                      - type: string
                                        maxLength: 50000
                                      - type: 'null'
                                  mediaPrompt:
                                    anyOf:
                                      - type: string
                                        maxLength: 4000
                                      - type: 'null'
                                required:
                                  - title
                                  - summary
                                  - layout
                                  - representation
                                  - sections
                                  - next
                                  - reactSource
                                  - mediaPrompt
                                additionalProperties: false
                              facts:
                                type: object
                                properties:
                                  agent:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 200
                                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                      name:
                                        type: string
                                      description:
                                        type: string
                                      brand:
                                        type: object
                                        properties:
                                          primary:
                                            default: '#0071E3'
                                            type: string
                                            pattern: ^#[0-9a-fA-F]{6}$
                                          secondary:
                                            default: '#AF52DE'
                                            type: string
                                            pattern: ^#[0-9a-fA-F]{6}$
                                          background:
                                            default: '#FFFFFF'
                                            type: string
                                            pattern: ^#[0-9a-fA-F]{6}$
                                          foreground:
                                            default: '#171717'
                                            type: string
                                            pattern: ^#[0-9a-fA-F]{6}$
                                          font:
                                            default: system
                                            type: string
                                            enum:
                                              - system
                                              - serif
                                              - mono
                                        required:
                                          - primary
                                          - secondary
                                          - background
                                          - foreground
                                          - font
                                        additionalProperties: false
                                      loading:
                                        type: object
                                        properties:
                                          kind:
                                            default: darwin
                                            type: string
                                            enum:
                                              - darwin
                                              - pulse
                                              - media
                                          asset:
                                            type: string
                                            maxLength: 1400000
                                            pattern: >-
                                              ^data:(image\/(gif|webp)|video\/(mp4|webm));base64,[A-Za-z0-9+/]+=*$
                                          poster:
                                            type: string
                                            maxLength: 700000
                                            pattern: >-
                                              ^data:image\/(png|jpeg);base64,[A-Za-z0-9+/]+=*$
                                        required:
                                          - kind
                                        additionalProperties: false
                                      appearance:
                                        type: object
                                        properties:
                                          instructions:
                                            type: string
                                            maxLength: 4000
                                          libraryName:
                                            type: string
                                            maxLength: 100
                                          source:
                                            type: string
                                            enum:
                                              - darwin_ui
                                              - uploaded
                                              - generated
                                          library:
                                            type: object
                                            properties:
                                              schemaVersion:
                                                type: number
                                                const: 1
                                              name:
                                                type: string
                                                minLength: 1
                                                maxLength: 100
                                              version:
                                                type: string
                                                pattern: ^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$
                                              importName:
                                                type: string
                                                pattern: ^@[a-z0-9-]+\/[a-z0-9-]+$
                                              entry:
                                                type: string
                                                minLength: 1
                                              files:
                                                type: object
                                                propertyNames:
                                                  type: string
                                                additionalProperties:
                                                  type: string
                                                  maxLength: 500000
                                              components:
                                                minItems: 1
                                                maxItems: 100
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    export:
                                                      type: string
                                                      pattern: ^[A-Z][A-Za-z0-9]*$
                                                    description:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 2000
                                                    props:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 10000
                                                    example:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 20000
                                                    human:
                                                      type: object
                                                      properties:
                                                        description:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 2000
                                                        states:
                                                          minItems: 1
                                                          type: array
                                                          items:
                                                            type: string
                                                            enum:
                                                              - input
                                                              - running
                                                              - needs_input
                                                              - approval
                                                              - success
                                                              - empty
                                                              - error
                                                      required:
                                                        - description
                                                        - states
                                                      additionalProperties: false
                                                    agent:
                                                      type: object
                                                      properties:
                                                        description:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 2000
                                                        outputSchema:
                                                          type: object
                                                          propertyNames:
                                                            type: string
                                                          additionalProperties: {}
                                                        example:
                                                          type: object
                                                          propertyNames:
                                                            type: string
                                                          additionalProperties: {}
                                                        instructions:
                                                          default: ''
                                                          type: string
                                                          maxLength: 10000
                                                      required:
                                                        - description
                                                        - outputSchema
                                                        - example
                                                        - instructions
                                                      additionalProperties: false
                                                  required:
                                                    - export
                                                    - description
                                                    - props
                                                    - example
                                                  additionalProperties: false
                                            required:
                                              - schemaVersion
                                              - name
                                              - version
                                              - importName
                                              - entry
                                              - files
                                              - components
                                            additionalProperties: false
                                          componentContracts:
                                            maxItems: 20
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                name:
                                                  type: string
                                                description:
                                                  type: string
                                                  maxLength: 2000
                                              required:
                                                - name
                                                - description
                                              additionalProperties: false
                                        required:
                                          - instructions
                                          - componentContracts
                                        additionalProperties: false
                                    required:
                                      - id
                                      - name
                                      - description
                                    additionalProperties: false
                                  sessionContext:
                                    type: object
                                    properties:
                                      goal:
                                        type: string
                                        maxLength: 4000
                                      brief:
                                        type: string
                                        maxLength: 8000
                                      messages:
                                        maxItems: 12
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            role:
                                              type: string
                                              enum:
                                                - user
                                                - assistant
                                            text:
                                              type: string
                                              maxLength: 2000
                                          required:
                                            - role
                                            - text
                                          additionalProperties: false
                                    required:
                                      - goal
                                      - brief
                                      - messages
                                    additionalProperties: false
                                  operations:
                                    maxItems: 500
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        name:
                                          type: string
                                        description:
                                          type: string
                                        guidance:
                                          type: object
                                          properties:
                                            openingQuestion:
                                              default: ''
                                              type: string
                                              maxLength: 1200
                                            primaryAction:
                                              default: ''
                                              type: string
                                              maxLength: 80
                                            context:
                                              default: ''
                                              type: string
                                              maxLength: 1200
                                            afterInput:
                                              default: ''
                                              type: string
                                              maxLength: 1200
                                            success:
                                              default: ''
                                              type: string
                                              maxLength: 1200
                                            recovery:
                                              default: ''
                                              type: string
                                              maxLength: 1200
                                          required:
                                            - openingQuestion
                                            - primaryAction
                                            - context
                                            - afterInput
                                            - success
                                            - recovery
                                          additionalProperties: false
                                        experience:
                                          type: object
                                          properties:
                                            version:
                                              type: number
                                              const: 1
                                            revision:
                                              type: integer
                                              exclusiveMinimum: 0
                                              maximum: 9007199254740991
                                            initialState:
                                              type: string
                                              minLength: 1
                                              maxLength: 200
                                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                            instructions:
                                              default: ''
                                              type: string
                                              maxLength: 4000
                                            states:
                                              minItems: 1
                                              maxItems: 64
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 200
                                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                                  description:
                                                    type: string
                                                    maxLength: 1000
                                                  instructions:
                                                    default: ''
                                                    type: string
                                                    maxLength: 2000
                                                  executionStatuses:
                                                    minItems: 1
                                                    type: array
                                                    items:
                                                      type: string
                                                      enum:
                                                        - not_started
                                                        - queued
                                                        - running
                                                        - waiting
                                                        - completed
                                                        - failed
                                                        - cancelled
                                                        - unavailable
                                                  transitions:
                                                    maxItems: 64
                                                    type: array
                                                    items:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 200
                                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                                  variants:
                                                    minItems: 1
                                                    maxItems: 1000
                                                    type: array
                                                    items:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 200
                                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                                required:
                                                  - id
                                                  - description
                                                  - instructions
                                                  - executionStatuses
                                                  - transitions
                                                  - variants
                                                additionalProperties: false
                                            variants:
                                              minItems: 1
                                              maxItems: 1000
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  id:
                                                    type: string
                                                    minLength: 1
                                                    maxLength: 200
                                                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                                  description:
                                                    type: string
                                                    maxLength: 1000
                                                  instructions:
                                                    default: ''
                                                    type: string
                                                    maxLength: 2000
                                                  modalities:
                                                    default:
                                                      - text
                                                      - voice
                                                    minItems: 1
                                                    type: array
                                                    items:
                                                      type: string
                                                      enum:
                                                        - text
                                                        - voice
                                                        - image
                                                        - audio
                                                        - video
                                                        - file
                                                  presentation:
                                                    type: object
                                                    properties:
                                                      title:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 160
                                                      summary:
                                                        type: string
                                                        maxLength: 3000
                                                      layout:
                                                        type: string
                                                        enum:
                                                          - stack
                                                          - columns
                                                      representation:
                                                        type: string
                                                        enum:
                                                          - components
                                                          - react
                                                          - media
                                                          - agent
                                                      artifact:
                                                        anyOf:
                                                          - anyOf:
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: research
                                                                  question:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 160
                                                                    description: >-
                                                                      One focused research question in 10-18
                                                                      words.
                                                                  focus:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                  sourceTypes:
                                                                    maxItems: 3
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                required:
                                                                  - kind
                                                                  - question
                                                                  - focus
                                                                  - sourceTypes
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: extraction
                                                                  url:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                  purpose:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 160
                                                                  fields:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                required:
                                                                  - kind
                                                                  - url
                                                                  - purpose
                                                                  - fields
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: directory
                                                                  audience:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                    description: >-
                                                                      The target prospect audience, e.g.
                                                                      independent fitness studios. Never the
                                                                      role of the person using this interface.
                                                                  criteria:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                  columns:
                                                                    minItems: 2
                                                                    maxItems: 5
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                  questions:
                                                                    maxItems: 3
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                required:
                                                                  - kind
                                                                  - audience
                                                                  - criteria
                                                                  - columns
                                                                  - questions
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: studio
                                                                  headline:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 60
                                                                  direction:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 140
                                                                  palette:
                                                                    minItems: 2
                                                                    maxItems: 5
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                  imageBrief:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 420
                                                                required:
                                                                  - kind
                                                                  - headline
                                                                  - direction
                                                                  - palette
                                                                  - imageBrief
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: storyboard
                                                                  durationSeconds:
                                                                    type: number
                                                                    minimum: 1
                                                                    maximum: 600
                                                                  aspectRatio:
                                                                    type: string
                                                                    enum:
                                                                      - '9:16'
                                                                      - '16:9'
                                                                      - '1:1'
                                                                      - '4:5'
                                                                  scenes:
                                                                    minItems: 2
                                                                    maxItems: 5
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                required:
                                                                  - kind
                                                                  - durationSeconds
                                                                  - aspectRatio
                                                                  - scenes
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: editorial
                                                                  script:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 3000
                                                                  tone:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                  targetSeconds:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                required:
                                                                  - kind
                                                                  - script
                                                                  - tone
                                                                  - targetSeconds
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: comparison
                                                                  question:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 90
                                                                    description: >-
                                                                      A concise decision question in 4-10
                                                                      words, not a restatement of the entire
                                                                      brief.
                                                                  criteria:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                  options:
                                                                    minItems: 2
                                                                    maxItems: 4
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                  basis:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 240
                                                                    description: >-
                                                                      State whether these are proposed
                                                                      approaches, supplied facts, or verified
                                                                      evidence. Never invent product features
                                                                      or scores.
                                                                required:
                                                                  - kind
                                                                  - question
                                                                  - criteria
                                                                  - options
                                                                  - basis
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: planner
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 80
                                                                  steps:
                                                                    minItems: 2
                                                                    maxItems: 6
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                required:
                                                                  - kind
                                                                  - title
                                                                  - steps
                                                                additionalProperties: false
                                                              - type: object
                                                                properties:
                                                                  kind:
                                                                    type: string
                                                                    const: estimate
                                                                  title:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 80
                                                                  currency:
                                                                    type: string
                                                                    enum:
                                                                      - USD
                                                                      - EUR
                                                                      - GBP
                                                                      - CAD
                                                                      - AUD
                                                                      - INR
                                                                      - JPY
                                                                  items:
                                                                    minItems: 1
                                                                    maxItems: 6
                                                                    type: array
                                                                    items:
                                                                      type: {}
                                                                      properties: {}
                                                                      required: {}
                                                                      additionalProperties: {}
                                                                  contingencyPercent:
                                                                    type: number
                                                                    minimum: 0
                                                                    maximum: 100
                                                                  assumptions:
                                                                    type: string
                                                                    minLength: 1
                                                                    maxLength: 300
                                                                    description: >-
                                                                      Explicitly identify any assumed prices,
                                                                      quantities and currency. These are
                                                                      editable estimates, not provider quotes.
                                                                required:
                                                                  - kind
                                                                  - title
                                                                  - currency
                                                                  - items
                                                                  - contingencyPercent
                                                                  - assumptions
                                                                additionalProperties: false
                                                          - type: 'null'
                                                      journey:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              stage:
                                                                type: string
                                                                enum:
                                                                  - input
                                                                  - review
                                                                  - ready
                                                                  - complete
                                                              instruction:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 160
                                                              action:
                                                                anyOf:
                                                                  - type: object
                                                                    properties:
                                                                      kind: {}
                                                                      label: {}
                                                                      intent: {}
                                                                      operationId: {}
                                                                      argumentsJson: {}
                                                                    required:
                                                                      - kind
                                                                      - label
                                                                      - intent
                                                                      - operationId
                                                                      - argumentsJson
                                                                    additionalProperties: false
                                                                  - type: 'null'
                                                            required:
                                                              - stage
                                                              - instruction
                                                              - action
                                                            additionalProperties: false
                                                          - type: 'null'
                                                      design:
                                                        type: object
                                                        properties:
                                                          character:
                                                            type: string
                                                            enum:
                                                              - editorial
                                                              - research
                                                              - extraction
                                                              - directory
                                                              - storyboard
                                                              - studio
                                                              - comparison
                                                              - planner
                                                              - estimate
                                                              - utility
                                                          density:
                                                            type: string
                                                            enum:
                                                              - relaxed
                                                              - compact
                                                        required:
                                                          - character
                                                          - density
                                                        additionalProperties: false
                                                      runtimeRegions:
                                                        maxItems: 4
                                                        type: array
                                                        items:
                                                          type: object
                                                          properties:
                                                            id:
                                                              type: string
                                                              pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                            sectionId:
                                                              type: string
                                                              pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                            libraryDigest:
                                                              type: string
                                                              pattern: ^[a-f0-9]{64}$
                                                            status:
                                                              type: string
                                                              enum:
                                                                - generated
                                                                - ready
                                                                - unavailable
                                                            artifactId:
                                                              anyOf:
                                                                - type: string
                                                                  format: uuid
                                                                  pattern: >-
                                                                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                                - type: 'null'
                                                            tree:
                                                              anyOf:
                                                                - type: object
                                                                  properties:
                                                                    nodes:
                                                                      minItems: {}
                                                                      maxItems: {}
                                                                      type: {}
                                                                      items: {}
                                                                  required:
                                                                    - nodes
                                                                  additionalProperties: false
                                                                - type: 'null'
                                                            inputFields:
                                                              maxItems: 16
                                                              type: array
                                                              items:
                                                                type: string
                                                                maxLength: 80
                                                            failure:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 120
                                                                - type: 'null'
                                                            model:
                                                              type: string
                                                              maxLength: 160
                                                            inputTokens:
                                                              type: integer
                                                              minimum: 0
                                                              maximum: 9007199254740991
                                                            outputTokens:
                                                              type: integer
                                                              minimum: 0
                                                              maximum: 9007199254740991
                                                          required:
                                                            - id
                                                            - sectionId
                                                            - libraryDigest
                                                            - status
                                                            - artifactId
                                                            - tree
                                                            - inputFields
                                                            - failure
                                                          additionalProperties: false
                                                      sections:
                                                        minItems: 1
                                                        maxItems: 12
                                                        type: array
                                                        items:
                                                          type: object
                                                          properties:
                                                            id:
                                                              type: string
                                                              pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                            kind:
                                                              type: string
                                                              enum:
                                                                - message
                                                                - list
                                                                - fields
                                                                - operation
                                                                - progress
                                                                - results
                                                                - notice
                                                            title:
                                                              type: string
                                                              maxLength: 160
                                                            text:
                                                              type: string
                                                              maxLength: 4000
                                                            items:
                                                              maxItems: 20
                                                              type: array
                                                              items:
                                                                type: string
                                                                maxLength: 800
                                                            operationId:
                                                              anyOf:
                                                                - type: string
                                                                  maxLength: 200
                                                                - type: 'null'
                                                          required:
                                                            - id
                                                            - kind
                                                            - title
                                                            - text
                                                            - items
                                                            - operationId
                                                          additionalProperties: false
                                                      next:
                                                        maxItems: 3
                                                        type: array
                                                        items:
                                                          type: object
                                                          properties:
                                                            label:
                                                              type: string
                                                              maxLength: 100
                                                            intent:
                                                              type: string
                                                              maxLength: 500
                                                            confidence:
                                                              type: number
                                                              minimum: 0
                                                              maximum: 1
                                                          required:
                                                            - label
                                                            - intent
                                                            - confidence
                                                          additionalProperties: false
                                                      reactSource:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 50000
                                                          - type: 'null'
                                                      mediaPrompt:
                                                        anyOf:
                                                          - type: string
                                                            maxLength: 4000
                                                          - type: 'null'
                                                    required:
                                                      - title
                                                      - summary
                                                      - layout
                                                      - representation
                                                      - sections
                                                      - next
                                                      - reactSource
                                                      - mediaPrompt
                                                    additionalProperties: false
                                                  runtimeComponents:
                                                    maxItems: 4
                                                    type: array
                                                    items:
                                                      type: object
                                                      properties:
                                                        id:
                                                          type: string
                                                          pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                        sectionId:
                                                          type: string
                                                          pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                        instructions:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 4000
                                                        components:
                                                          default: []
                                                          maxItems: 30
                                                          type: array
                                                          items:
                                                            type: string
                                                            pattern: ^[A-Z][A-Za-z0-9]*$
                                                        inputFields:
                                                          default: []
                                                          maxItems: 16
                                                          type: array
                                                          items:
                                                            type: string
                                                            pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                                      required:
                                                        - id
                                                        - sectionId
                                                        - instructions
                                                        - components
                                                        - inputFields
                                                      additionalProperties: false
                                                  argumentBindings:
                                                    maxItems: 50
                                                    type: array
                                                    items:
                                                      type: object
                                                      properties:
                                                        field:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 120
                                                        target:
                                                          type: string
                                                          minLength: 1
                                                          maxLength: 200
                                                      required:
                                                        - field
                                                        - target
                                                      additionalProperties: false
                                                  bindings:
                                                    default: []
                                                    maxItems: 64
                                                    type: array
                                                    items:
                                                      type: object
                                                      properties:
                                                        path:
                                                          minItems: 2
                                                          maxItems: 8
                                                          type: array
                                                          items:
                                                            type: string
                                                            pattern: ^[A-Za-z0-9_-]+$
                                                        source:
                                                          type: string
                                                          enum:
                                                            - message
                                                            - field
                                                        field:
                                                          type: string
                                                          maxLength: 120
                                                      required:
                                                        - path
                                                        - source
                                                      additionalProperties: false
                                                required:
                                                  - id
                                                  - description
                                                  - instructions
                                                  - modalities
                                                  - presentation
                                                  - bindings
                                                additionalProperties: false
                                          required:
                                            - version
                                            - revision
                                            - initialState
                                            - instructions
                                            - states
                                            - variants
                                          additionalProperties: false
                                        revision:
                                          type: integer
                                          exclusiveMinimum: 0
                                          maximum: 9007199254740991
                                        available:
                                          type: boolean
                                        reason:
                                          anyOf:
                                            - type: string
                                            - type: 'null'
                                        fields:
                                          maxItems: 50
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              name:
                                                type: string
                                              label:
                                                type: string
                                              type:
                                                type: string
                                                enum:
                                                  - text
                                                  - number
                                                  - select
                                              required:
                                                type: boolean
                                              primary:
                                                type: boolean
                                              encoding:
                                                type: string
                                                const: json
                                              options:
                                                type: array
                                                items:
                                                  type: string
                                              multiple:
                                                type: boolean
                                              description:
                                                type: string
                                              minimum:
                                                type: number
                                              maximum:
                                                type: number
                                              minLength:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                              maxLength:
                                                type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                            required:
                                              - name
                                              - label
                                              - type
                                              - required
                                            additionalProperties: false
                                        inputSchema:
                                          type: object
                                          propertyNames:
                                            type: string
                                          additionalProperties: {}
                                      required:
                                        - id
                                        - name
                                        - description
                                        - available
                                        - reason
                                        - fields
                                      additionalProperties: false
                                  execution:
                                    type: object
                                    properties:
                                      threadId:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                      turnId:
                                        anyOf:
                                          - type: string
                                          - type: 'null'
                                      status:
                                        type: string
                                        enum:
                                          - not_started
                                          - queued
                                          - running
                                          - waiting
                                          - completed
                                          - failed
                                          - cancelled
                                          - unavailable
                                      evidence:
                                        maxItems: 30
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                            text:
                                              type: string
                                            verification:
                                              type: string
                                              enum:
                                                - provider_reported
                                                - criteria_checked
                                                - observed
                                          required:
                                            - id
                                            - text
                                            - verification
                                          additionalProperties: false
                                    required:
                                      - threadId
                                      - turnId
                                      - status
                                      - evidence
                                    additionalProperties: false
                                required:
                                  - agent
                                  - operations
                                  - execution
                                additionalProperties: false
                              markdown:
                                type: string
                                maxLength: 20000
                              artifactId:
                                anyOf:
                                  - type: string
                                    format: uuid
                                    pattern: >-
                                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                  - type: 'null'
                              policy:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  version:
                                    type: integer
                                    minimum: -9007199254740991
                                    maximum: 9007199254740991
                                  probability:
                                    type: number
                                    minimum: 0
                                    maximum: 1
                                  applied:
                                    maxItems: 3
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                        version:
                                          type: integer
                                          minimum: -9007199254740991
                                          maximum: 9007199254740991
                                        scope:
                                          type: string
                                          enum:
                                            - global
                                            - agent
                                            - user
                                        probability:
                                          type: number
                                          minimum: 0
                                          maximum: 1
                                      required:
                                        - id
                                        - version
                                        - scope
                                        - probability
                                      additionalProperties: false
                                required:
                                  - id
                                  - version
                                  - probability
                                additionalProperties: false
                              diagnostics:
                                type: object
                                properties:
                                  model:
                                    type: string
                                  generationMs:
                                    type: number
                                  inputTokens:
                                    type: number
                                  outputTokens:
                                    type: number
                                  repairs:
                                    type: number
                                  fallback:
                                    anyOf:
                                      - type: string
                                      - type: 'null'
                                required:
                                  - model
                                  - generationMs
                                  - inputTokens
                                  - outputTokens
                                  - repairs
                                  - fallback
                                additionalProperties: false
                              createdAt:
                                type: string
                            required:
                              - version
                              - runId
                              - revision
                              - mode
                              - request
                              - generated
                              - facts
                              - markdown
                              - artifactId
                              - policy
                              - diagnostics
                              - createdAt
                            additionalProperties: false
                          runId:
                            type: string
                        required:
                          - version
                          - audience
                          - status
                          - markdown
                        additionalProperties: false
                      searchId:
                        type: string
                        pattern: ^srch_[a-f0-9-]{36}$
                      responseId:
                        type: string
                        pattern: ^sresp_[a-f0-9-]{36}$
                      previousResponseId:
                        anyOf:
                          - type: string
                            pattern: ^sresp_[a-f0-9-]{36}$
                          - type: 'null'
                      contractVersion:
                        type: string
                        const: search-v3.0
                      status:
                        type: string
                        enum:
                          - completed
                          - needs_input
                          - no_match
                      response:
                        type: object
                        properties:
                          agents:
                            maxItems: 20
                            type: array
                            items:
                              type: object
                              properties:
                                agentId:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                agentSlug:
                                  anyOf:
                                    - type: string
                                      minLength: 1
                                      maxLength: 200
                                    - type: 'null'
                                operationId:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                operationRevision:
                                  type: integer
                                  exclusiveMinimum: 0
                                  maximum: 9007199254740991
                                providerFamilyRef:
                                  default: null
                                  anyOf:
                                    - type: string
                                      pattern: ^provider-family:sha256:[a-f0-9]{64}$
                                    - type: 'null'
                                rank:
                                  type: integer
                                  exclusiveMinimum: 0
                                  maximum: 9007199254740991
                                selected:
                                  type: boolean
                                name:
                                  type: string
                                  minLength: 1
                                  maxLength: 500
                                description:
                                  anyOf:
                                    - type: string
                                      maxLength: 8000
                                    - type: 'null'
                                imageUrl:
                                  anyOf:
                                    - type: string
                                      format: uri
                                    - type: 'null'
                                avatarUrl:
                                  anyOf:
                                    - type: string
                                      format: uri
                                    - type: 'null'
                                requiredSetup:
                                  default: null
                                  anyOf:
                                    - type: object
                                      properties:
                                        kind:
                                          type: string
                                          enum:
                                            - credential
                                            - installation
                                            - provider_configuration
                                        suppliedBy:
                                          type: string
                                          enum:
                                            - user
                                            - provider
                                            - runtime
                                        description:
                                          type: string
                                          minLength: 1
                                          maxLength: 500
                                      required:
                                        - kind
                                        - suppliedBy
                                        - description
                                      additionalProperties: false
                                    - type: 'null'
                                executionRequirements:
                                  default: null
                                  anyOf:
                                    - type: object
                                      properties:
                                        contractVersion:
                                          type: string
                                          const: 1.0.0
                                        providerAuthentication:
                                          type: object
                                          properties:
                                            state:
                                              type: string
                                              enum:
                                                - REQUIRED
                                                - NOT_REQUIRED
                                                - UNKNOWN
                                                - NOT_APPLICABLE
                                            mechanisms:
                                              maxItems: 20
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - BEARER
                                                  - API_KEY
                                                  - OAUTH2
                                                  - HTTP_BASIC
                                                  - MUTUAL_TLS
                                                  - SIGNED_REQUEST
                                                  - SESSION_COOKIE
                                                  - OPERATION_SECRET_INPUT
                                                  - UNSPECIFIED
                                            placements:
                                              maxItems: 20
                                              type: array
                                              items:
                                                type: string
                                                enum:
                                                  - HEADER
                                                  - QUERY
                                                  - COOKIE
                                                  - BODY
                                                  - TOOL_ARGUMENT
                                                  - ENVIRONMENT
                                                  - AUTH_CONTINUATION
                                            scopes:
                                              maxItems: 100
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                            evidence:
                                              type: string
                                              enum:
                                                - PROVIDER_DECLARED
                                                - PROVIDER_OBSERVED
                                                - DERIVED_FROM_VERIFIED_RECEIPT
                                                - UNKNOWN
                                          required:
                                            - state
                                            - mechanisms
                                            - placements
                                            - scopes
                                            - evidence
                                          additionalProperties: false
                                        operationCredentials:
                                          type: object
                                          properties:
                                            state:
                                              type: string
                                              enum:
                                                - REQUIRED
                                                - NOT_REQUIRED
                                                - UNKNOWN
                                                - NOT_APPLICABLE
                                            sensitiveInputNames:
                                              maxItems: 100
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                          required:
                                            - state
                                            - sensitiveInputNames
                                          additionalProperties: false
                                        runtime:
                                          type: object
                                          properties:
                                            kind:
                                              type: string
                                              enum:
                                                - REMOTE_MCP
                                                - LOCAL_STDIO
                                                - A2A_JSONRPC
                                                - HTTP_JSON
                                                - OPENAPI_HTTP
                                                - BOUNDED_FETCH
                                                - BROWSER
                                                - X402_PAYMENT
                                                - COMMERCE
                                                - UNSUPPORTED
                                            package:
                                              anyOf:
                                                - type: object
                                                  properties:
                                                    ecosystem:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 40
                                                    identifier:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 500
                                                    version:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 200
                                                    runtimeProfile:
                                                      type: string
                                                      minLength: 1
                                                      maxLength: 120
                                                  required:
                                                    - ecosystem
                                                    - identifier
                                                    - version
                                                    - runtimeProfile
                                                  additionalProperties: false
                                                - type: 'null'
                                            requiredEnvironmentNames:
                                              maxItems: 100
                                              type: array
                                              items:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                          required:
                                            - kind
                                            - package
                                            - requiredEnvironmentNames
                                          additionalProperties: false
                                        payment:
                                          type: object
                                          properties:
                                            state:
                                              type: string
                                              enum:
                                                - REQUIRED
                                                - NOT_REQUIRED
                                                - UNKNOWN
                                                - NOT_APPLICABLE
                                            termsDigest:
                                              anyOf:
                                                - type: string
                                                  maxLength: 200
                                                - type: 'null'
                                          required:
                                            - state
                                            - termsDigest
                                          additionalProperties: false
                                        browser:
                                          type: object
                                          properties:
                                            state:
                                              type: string
                                              enum:
                                                - REQUIRED
                                                - NOT_REQUIRED
                                                - UNKNOWN
                                                - NOT_APPLICABLE
                                            sessionKind:
                                              anyOf:
                                                - type: string
                                                  enum:
                                                    - ANONYMOUS
                                                    - PROVIDER_SESSION
                                                    - UNKNOWN
                                                - type: 'null'
                                          required:
                                            - state
                                            - sessionKind
                                          additionalProperties: false
                                        providerContract:
                                          type: object
                                          properties:
                                            route:
                                              type: string
                                              enum:
                                                - RESOLVED
                                                - MISSING
                                                - AMBIGUOUS
                                                - UNSAFE
                                                - UNSUPPORTED
                                                - UNKNOWN
                                            inputSchema:
                                              type: string
                                              enum:
                                                - CONCRETE
                                                - DIGEST_ONLY
                                                - MISSING
                                                - UNKNOWN
                                            outputSchema:
                                              type: string
                                              enum:
                                                - CONCRETE
                                                - DIGEST_ONLY
                                                - MISSING
                                                - UNKNOWN
                                          required:
                                            - route
                                            - inputSchema
                                            - outputSchema
                                          additionalProperties: false
                                        providerBlockers:
                                          maxItems: 20
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              code:
                                                type: string
                                                enum:
                                                  - PROVIDER_ROUTE_UNSUPPORTED
                                                  - PROVIDER_SCHEMA_MISSING
                                                  - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                  - PROVIDER_METADATA_INCOMPLETE
                                                  - DARWIN_ADAPTER_UNAVAILABLE
                                                  - DARWIN_ROUTE_NOT_APPROVED
                                                  - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                  - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                  - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                              owner:
                                                type: string
                                                enum:
                                                  - PROVIDER
                                                  - DARWIN
                                            required:
                                              - code
                                              - owner
                                            additionalProperties: false
                                        derivation:
                                          type: object
                                          properties:
                                            normalizerVersion:
                                              type: string
                                              const: execution-requirements-v1
                                            sourceRevision:
                                              type: string
                                              minLength: 1
                                              maxLength: 240
                                            sourceReceiptDigest:
                                              anyOf:
                                                - type: string
                                                  maxLength: 200
                                                - type: 'null'
                                            completeness:
                                              type: string
                                              enum:
                                                - COMPLETE
                                                - PARTIAL
                                            derivationKey:
                                              type: string
                                              pattern: ^sha256:[a-f0-9]{64}$
                                          required:
                                            - normalizerVersion
                                            - sourceRevision
                                            - sourceReceiptDigest
                                            - completeness
                                            - derivationKey
                                          additionalProperties: false
                                      required:
                                        - contractVersion
                                        - providerAuthentication
                                        - operationCredentials
                                        - runtime
                                        - payment
                                        - browser
                                        - providerContract
                                        - providerBlockers
                                        - derivation
                                      additionalProperties: false
                                    - type: 'null'
                                executionGuidance:
                                  default: null
                                  anyOf:
                                    - type: object
                                      properties:
                                        credentialSummaryCode:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        credentialSummary:
                                          type: string
                                          minLength: 1
                                          maxLength: 1000
                                        setupSummaryCode:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        setupSummary:
                                          type: string
                                          minLength: 1
                                          maxLength: 1000
                                        recordBlockers:
                                          maxItems: 20
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              code:
                                                type: string
                                                enum:
                                                  - PROVIDER_ROUTE_UNSUPPORTED
                                                  - PROVIDER_SCHEMA_MISSING
                                                  - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                  - PROVIDER_METADATA_INCOMPLETE
                                                  - DARWIN_ADAPTER_UNAVAILABLE
                                                  - DARWIN_ROUTE_NOT_APPROVED
                                                  - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                  - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                  - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                              owner:
                                                type: string
                                                enum:
                                                  - PROVIDER
                                                  - DARWIN
                                            required:
                                              - code
                                              - owner
                                            additionalProperties: false
                                        primaryBlockerCode:
                                          anyOf:
                                            - type: string
                                              enum:
                                                - PROVIDER_ROUTE_UNSUPPORTED
                                                - PROVIDER_SCHEMA_MISSING
                                                - PROVIDER_AUTH_SCHEME_UNSPECIFIED
                                                - PROVIDER_METADATA_INCOMPLETE
                                                - DARWIN_ADAPTER_UNAVAILABLE
                                                - DARWIN_ROUTE_NOT_APPROVED
                                                - DARWIN_LOCAL_RUNTIME_UNAVAILABLE
                                                - DARWIN_BROWSER_RUNTIME_UNAVAILABLE
                                                - DARWIN_PAYMENT_RUNTIME_UNAVAILABLE
                                            - type: 'null'
                                        rendererVersion:
                                          type: string
                                          const: execution-guidance-v1
                                      required:
                                        - credentialSummaryCode
                                        - credentialSummary
                                        - setupSummaryCode
                                        - setupSummary
                                        - recordBlockers
                                        - primaryBlockerCode
                                        - rendererVersion
                                      additionalProperties: false
                                    - type: 'null'
                                readiness:
                                  type: string
                                  enum:
                                    - ready
                                    - authentication_required
                                    - recheck_required
                                    - unavailable
                                canStartThread:
                                  type: boolean
                                canAttemptThread:
                                  type: boolean
                                reasons:
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 250
                                uncertainties:
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: string
                                    maxLength: 250
                                inquiry:
                                  type: object
                                  properties:
                                    status:
                                      type: string
                                      enum:
                                        - contacting
                                        - waiting
                                        - following_up
                                        - replied
                                        - needs_input
                                        - no_reply
                                        - not_contacted
                                        - outcome_unknown
                                    fit:
                                      type: string
                                      enum:
                                        - matches
                                        - partial
                                        - not_fit
                                        - unknown
                                    expiresAt:
                                      type: string
                                      format: date-time
                                      pattern: >-
                                        ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                    threadId:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                    question:
                                      type: string
                                      minLength: 1
                                      maxLength: 2000
                                    replies:
                                      maxItems: 4
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          messageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                          text:
                                            type: string
                                            minLength: 1
                                            maxLength: 8000
                                          at:
                                            type: string
                                            format: date-time
                                            pattern: >-
                                              ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                                        required:
                                          - messageId
                                          - text
                                          - at
                                        additionalProperties: false
                                    description:
                                      type: string
                                      maxLength: 1200
                                    reason:
                                      type: string
                                      maxLength: 250
                                  required:
                                    - status
                                    - question
                                    - replies
                                  additionalProperties: false
                                providerCheck:
                                  type: string
                                  enum:
                                    - not_attempted
                                    - confirmed
                                    - unconfirmed
                                    - unavailable
                                connectionMethods:
                                  default: []
                                  maxItems: 3
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      protocol:
                                        type: string
                                        enum:
                                          - MCP
                                          - A2A
                                          - WEBMCP
                                      environment:
                                        type: string
                                        enum:
                                          - remote_client
                                          - browser_session
                                      endpointUrl:
                                        anyOf:
                                          - type: string
                                            format: uri
                                          - type: 'null'
                                      endpointStatus:
                                        type: string
                                        enum:
                                          - not_published
                                          - verified
                                      documentationUrl:
                                        type: string
                                        format: uri
                                    required:
                                      - protocol
                                      - environment
                                      - endpointUrl
                                      - endpointStatus
                                      - documentationUrl
                                    additionalProperties: false
                                connectionPrompt:
                                  type: string
                                  minLength: 1
                                  maxLength: 60000
                              required:
                                - agentId
                                - agentSlug
                                - operationId
                                - operationRevision
                                - providerFamilyRef
                                - rank
                                - selected
                                - name
                                - description
                                - requiredSetup
                                - executionRequirements
                                - executionGuidance
                                - readiness
                                - canStartThread
                                - reasons
                                - uncertainties
                                - providerCheck
                                - connectionMethods
                                - connectionPrompt
                              additionalProperties: false
                          assessment:
                            type: object
                            properties:
                              outcome:
                                type: string
                                enum:
                                  - strong
                                  - partial
                                  - clarify
                                  - no_match
                                  - unverified
                              explanation:
                                type: string
                                minLength: 1
                                maxLength: 2000
                            required:
                              - outcome
                              - explanation
                            additionalProperties: false
                          relatedSearches:
                            default: []
                            maxItems: 3
                            type: array
                            items:
                              type: object
                              properties:
                                query:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                reason:
                                  type: string
                                  minLength: 1
                                  maxLength: 250
                              required:
                                - query
                                - reason
                              additionalProperties: false
                          plan:
                            anyOf:
                              - type: object
                                properties:
                                  steps:
                                    minItems: 1
                                    maxItems: 8
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        stepId:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        agentId:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        operationId:
                                          type: string
                                          minLength: 1
                                          maxLength: 200
                                        objective:
                                          type: string
                                          minLength: 1
                                          maxLength: 250
                                        dependsOn:
                                          maxItems: 8
                                          type: array
                                          items:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                        alternatives:
                                          maxItems: 3
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              agentId:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                              operationId:
                                                type: string
                                                minLength: 1
                                                maxLength: 200
                                            required:
                                              - agentId
                                              - operationId
                                            additionalProperties: false
                                      required:
                                        - stepId
                                        - agentId
                                        - operationId
                                        - objective
                                        - dependsOn
                                      additionalProperties: false
                                required:
                                  - steps
                                additionalProperties: false
                              - type: 'null'
                          question:
                            anyOf:
                              - type: string
                                minLength: 1
                                maxLength: 500
                              - type: 'null'
                          noMatchReason:
                            anyOf:
                              - type: string
                                minLength: 1
                                maxLength: 500
                              - type: 'null'
                          overview:
                            anyOf:
                              - type: string
                                maxLength: 32000
                              - type: 'null'
                        required:
                          - agents
                          - relatedSearches
                          - question
                          - noMatchReason
                        additionalProperties: false
                      searchToken:
                        type: string
                    required:
                      - searchId
                      - responseId
                      - previousResponseId
                      - contractVersion
                      - status
                      - response
                    additionalProperties: false
                  agentCalls:
                    maxItems: 16
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        name:
                          type: string
                          minLength: 1
                          maxLength: 200
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          enum:
                            - ready
                            - running
                            - waiting
                            - completed
                            - failed
                            - cancelled
                        stepId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        threadId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        dependsOn:
                          maxItems: 8
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        searchId:
                          type: string
                        matchCount:
                          type: integer
                          minimum: 0
                          maximum: 9007199254740991
                      required:
                        - id
                        - agentId
                        - name
                        - operationId
                        - status
                      additionalProperties: false
                  dataTransfers:
                    maxItems: 32
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        stepId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        digest:
                          type: string
                          pattern: ^[a-f0-9]{64}$
                        agentId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        operationId:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        name:
                          type: string
                          maxLength: 200
                        reason:
                          type: string
                          enum:
                            - private_context
                            - new_recipient
                        status:
                          type: string
                          enum:
                            - pending
                            - approved
                            - denied
                            - superseded
                        sourceStepIds:
                          maxItems: 8
                          type: array
                          items:
                            type: string
                            minLength: 1
                            maxLength: 200
                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      required:
                        - id
                        - stepId
                        - digest
                        - agentId
                        - operationId
                        - name
                        - reason
                        - status
                        - sourceStepIds
                      additionalProperties: false
                  createdAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                  updatedAt:
                    type: string
                    format: date-time
                    pattern: >-
                      ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
                required:
                  - turnId
                  - clientMessageId
                  - message
                  - status
                  - blocks
                  - createdAt
                  - updatedAt
                additionalProperties: false
            nextBefore:
              anyOf:
                - type: string
                - type: 'null'
            eventCursor:
              type: string
          required:
            - turns
            - nextBefore
            - eventCursor
          additionalProperties: false
        agents:
          type: array
          items:
            type: object
            properties:
              agentId:
                type: string
                minLength: 1
                maxLength: 200
                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
              name:
                type: string
              imageUrl:
                anyOf:
                  - type: string
                  - type: 'null'
              status:
                type: string
                enum:
                  - working
                  - queued
                  - waiting
                  - idle
                  - failed
                  - cancelled
                  - connected
                  - unknown
              operationThreadIds:
                type: array
                items:
                  type: string
            required:
              - agentId
              - name
              - status
              - operationThreadIds
            additionalProperties: false
        conversationToken:
          description: Private guest token. Send as X-Assist-Token for subsequent requests.
          type: string
      required:
        - conversationId
        - status
        - goal
        - messages
        - revisions
        - latestRevisionId
        - quote
        - funding
        - run
        - previousRuns
        - createdAt
        - updatedAt
      additionalProperties: false
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearer:
      type: http
      scheme: bearer

````

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