> ## 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.

# Start Operation

> Guest session access requires no account or API key. Retain the returned conversationToken and send X-Assist-Token on follow-ups. Guest limits and sign-in gates apply. The server checks current session access and resource permissions on every request. Acceptance does not prove provider execution.

Supply the originating `turnId`, exact agent/operation target and a stable `clientRequestId`. Retrying the identical invocation uses the same execution key. Starting another invocation requires a new key. Current permissions and provider readiness remain mandatory.


## OpenAPI

````yaml openapi-v3.json POST /v3/sessions/{sessionId}/operations
openapi: 3.1.0
info:
  title: Navigator
  version: 3.0.0
servers:
  - url: https://api.darwin.so/api
security: []
paths:
  /v3/sessions/{sessionId}/operations:
    post:
      tags:
        - Sessions
      summary: Start Operation
      description: >-
        Guest session access requires no account or API key. Retain the returned
        conversationToken and send X-Assist-Token on follow-ups. Guest limits
        and sign-in gates apply. The server checks current session access and
        resource permissions on every request. Acceptance does not prove
        provider execution.
      operationId: start_session_operation
      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/SessionOperationStart'
      responses:
        '200':
          description: Accepted state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActV3Response'
        '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: []
        - assistToken: []
components:
  schemas:
    SessionOperationStart:
      type: object
      properties:
        clientRequestId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
        turnId:
          type: string
          minLength: 1
          maxLength: 200
          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
        target:
          type: object
          properties:
            agentId:
              type: string
              minLength: 1
              maxLength: 200
            operationId:
              type: string
              minLength: 1
              maxLength: 200
            operationRevision:
              type: integer
              exclusiveMinimum: 0
              maximum: 9007199254740991
            arguments:
              type: object
              propertyNames:
                type: string
              additionalProperties: {}
          required:
            - agentId
          additionalProperties: false
        message:
          type: string
          minLength: 1
          maxLength: 20000
      required:
        - clientRequestId
        - turnId
        - target
        - message
      additionalProperties: false
    ActV3Response:
      oneOf:
        - type: object
          properties:
            type:
              type: string
              const: request
            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
            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: 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
            actRequestId:
              type: string
              minLength: 1
              maxLength: 200
              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
            threadId:
              description: >-
                The one created thread. Omitted for historical failed or batch
                receipts.
              type: string
              minLength: 1
              maxLength: 200
              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
            searchId:
              anyOf:
                - type: string
                  minLength: 1
                  maxLength: 200
                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                - type: 'null'
            status:
              type: string
              enum:
                - pending
                - completed
                - partial
                - failed
              description: >-
                Act Request handoff status only. Completed means thread receipts
                were created; read each thread for action confirmation and
                provider result.
            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))$
            threads:
              minItems: 1
              maxItems: 8
              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
                  threadId:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  messageId:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  errorCode:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  state:
                    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
                      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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    description:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    value:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    color:
                                                                      type: {}
                                                                      pattern: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    start:
                                                                      type: {}
                                                                      minimum: {}
                                                                    end:
                                                                      type: {}
                                                                      exclusiveMinimum: {}
                                                                    visual:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    caption:
                                                                      type: {}
                                                                      maxLength: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    values:
                                                                      minItems: {}
                                                                      maxItems: {}
                                                                      type: {}
                                                                      items: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    detail:
                                                                      type: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                    durationMinutes:
                                                                      anyOf: {}
                                                                  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: {}
                                                                      minLength: {}
                                                                      maxLength: {}
                                                                      description: {}
                                                                    quantity:
                                                                      type: {}
                                                                      minimum: {}
                                                                      maximum: {}
                                                                    unitCost:
                                                                      type: {}
                                                                      minimum: {}
                                                                      maximum: {}
                                                                  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:
                                                                      - {}
                                                                      - {}
                                                                  argumentsJson:
                                                                    anyOf:
                                                                      - {}
                                                                      - {}
                                                                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
                      thread:
                        type: string
                        minLength: 1
                        maxLength: 200
                        pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      messages:
                        maxItems: 100
                        type: array
                        items:
                          oneOf:
                            - type: object
                              properties:
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                from:
                                  type: string
                                  enum:
                                    - you
                                    - agent
                                    - darwin
                                content:
                                  maxItems: 20
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: text
                                          text:
                                            type: string
                                            minLength: 1
                                            maxLength: 32000
                                        required:
                                          - type
                                          - text
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: image
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: audio
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: video
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: file
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                status:
                                  type: string
                                  enum:
                                    - accepted
                                    - delivered
                                    - failed
                                    - unknown
                                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))$
                                type:
                                  type: string
                                  const: input_response
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                arguments:
                                  type: object
                                  propertyNames:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  additionalProperties: {}
                              required:
                                - message
                                - from
                                - content
                                - status
                                - createdAt
                                - type
                                - request
                                - arguments
                              additionalProperties: false
                            - type: object
                              properties:
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                from:
                                  type: string
                                  enum:
                                    - you
                                    - agent
                                    - darwin
                                content:
                                  maxItems: 20
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: text
                                          text:
                                            type: string
                                            minLength: 1
                                            maxLength: 32000
                                        required:
                                          - type
                                          - text
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: image
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: audio
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: video
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: file
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: owner_file
                                          inputRef:
                                            type: string
                                            maxLength: 8192
                                            pattern: ^ofi_[A-Za-z0-9_-]+$
                                        required:
                                          - type
                                          - inputRef
                                        additionalProperties: false
                                status:
                                  type: string
                                  enum:
                                    - accepted
                                    - delivered
                                    - failed
                                    - unknown
                                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))$
                                type:
                                  type: string
                                  const: message
                              required:
                                - message
                                - from
                                - content
                                - status
                                - createdAt
                                - type
                              additionalProperties: false
                            - type: object
                              properties:
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                from:
                                  type: string
                                  enum:
                                    - you
                                    - agent
                                    - darwin
                                content:
                                  maxItems: 20
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: text
                                          text:
                                            type: string
                                            minLength: 1
                                            maxLength: 32000
                                        required:
                                          - type
                                          - text
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: image
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: audio
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: video
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          type:
                                            type: string
                                            const: file
                                          assetId:
                                            type: string
                                            minLength: 1
                                            maxLength: 200
                                            pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                        required:
                                          - type
                                          - assetId
                                        additionalProperties: false
                                status:
                                  type: string
                                  enum:
                                    - accepted
                                    - delivered
                                    - failed
                                    - unknown
                                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))$
                                type:
                                  type: string
                                  const: result
                                data: {}
                              required:
                                - message
                                - from
                                - content
                                - status
                                - createdAt
                                - type
                              additionalProperties: false
                      errors:
                        description: >-
                          Error events in this page. Retryable does not
                          authorize replaying an accepted effect or payment.
                        maxItems: 100
                        type: array
                        items:
                          type: object
                          properties:
                            event:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            code:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            retryable:
                              type: boolean
                            action:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            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:
                            - event
                            - code
                            - retryable
                            - createdAt
                          additionalProperties: false
                      actions:
                        type: array
                        items:
                          type: object
                          properties:
                            action:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            capability:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            request:
                              type: string
                              minLength: 1
                              maxLength: 200
                              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                            status:
                              type: string
                              enum:
                                - awaiting_confirmation
                                - queued
                                - running
                                - waiting
                                - reconciling
                                - succeeded
                                - failed
                                - cancelled
                                - withdrawn
                            cancellationRequested:
                              type: boolean
                            accepted:
                              type: boolean
                          required:
                            - action
                            - capability
                            - request
                            - status
                            - cancellationRequested
                          additionalProperties: false
                      requests:
                        type: array
                        items:
                          oneOf:
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: input_request
                                capability:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                inputSchema:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties: {}
                                inputSchemaResources:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties:
                                    type: object
                                    propertyNames:
                                      type: string
                                    additionalProperties: {}
                                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))$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - capability
                                - inputSchema
                                - expiresAt
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: action_request
                                capability:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                arguments:
                                  type: object
                                  propertyNames:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  additionalProperties: {}
                                account:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - capability
                                - arguments
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: approval_request
                                reason:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                                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))$
                                capability:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                arguments:
                                  type: object
                                  propertyNames:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  additionalProperties: {}
                                account:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - reason
                                - expiresAt
                                - capability
                                - arguments
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: authentication_request
                                targetAgent:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                authenticationType:
                                  type: string
                                  minLength: 1
                                  maxLength: 100
                                  pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                                resource:
                                  type: string
                                  maxLength: 2000
                                  format: uri
                                scopes:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                account:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - targetAgent
                                - authenticationType
                                - resource
                                - scopes
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: authentication_required
                                targetAgent:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                scopes:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                account:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                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))$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - targetAgent
                                - scopes
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: payment_request
                                amountMinor:
                                  type: string
                                  pattern: ^[1-9][0-9]{0,17}$
                                currency:
                                  type: string
                                  pattern: ^[A-Z]{3}$
                                payee:
                                  type: object
                                  properties:
                                    agent:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                    name:
                                      type: string
                                      minLength: 1
                                      maxLength: 200
                                  required:
                                    - agent
                                    - name
                                  additionalProperties: false
                                acceptedMethods:
                                  minItems: 1
                                  maxItems: 8
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - card
                                      - bank
                                      - hosted_checkout
                                      - darwin_wallet
                                      - mpp
                                      - x402
                                      - ucp
                                      - acp
                                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))$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - amountMinor
                                - currency
                                - payee
                                - acceptedMethods
                                - expiresAt
                              additionalProperties: false
                            - type: object
                              properties:
                                request:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                action:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                                status:
                                  type: string
                                  enum:
                                    - pending
                                    - resolved
                                    - expired
                                    - cancelled
                                    - settled
                                    - failed
                                    - voided
                                    - partially_refunded
                                    - reversal_pending
                                    - reversal_failed
                                    - disputed
                                    - refunded
                                type:
                                  type: string
                                  const: completion_request
                                result:
                                  type: string
                                  minLength: 1
                                  maxLength: 200
                                  pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                              required:
                                - request
                                - action
                                - status
                                - type
                                - result
                              additionalProperties: false
                      cursor:
                        type: string
                        minLength: 3
                        maxLength: 200
                        pattern: ^.+:(0|[1-9][0-9]*)$
                      hasMore:
                        type: boolean
                      archived:
                        type: boolean
                      needsAttention:
                        type: boolean
                    required:
                      - thread
                      - messages
                      - actions
                      - requests
                      - cursor
                      - hasMore
                      - archived
                      - needsAttention
                    additionalProperties: false
                required:
                  - agentId
                additionalProperties: false
          required:
            - type
            - actRequestId
            - searchId
            - status
            - createdAt
            - threads
          additionalProperties: false
        - 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: 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
            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: 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
            type:
              type: string
              const: continuation
            threadId:
              type: string
              minLength: 1
              maxLength: 200
              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
            result:
              anyOf:
                - type: object
                  properties:
                    thread:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    message:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    status:
                      type: string
                      const: accepted
                    cursor:
                      type: string
                      minLength: 3
                      maxLength: 200
                      pattern: ^.+:(0|[1-9][0-9]*)$
                    idempotencyKey:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - thread
                    - message
                    - status
                    - cursor
                    - idempotencyKey
                  additionalProperties: false
                - oneOf:
                    - type: object
                      properties:
                        authentication:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          const: awaiting_consent
                        url:
                          type: string
                          maxLength: 2048
                          format: uri
                      required:
                        - authentication
                        - expiresAt
                        - status
                      additionalProperties: false
                    - type: object
                      properties:
                        authentication:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          enum:
                            - authorizing
                            - exchanging
                            - expired
                            - denied
                            - failed
                      required:
                        - authentication
                        - expiresAt
                        - status
                      additionalProperties: false
                    - type: object
                      properties:
                        authentication:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          const: connected
                        account:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      required:
                        - authentication
                        - expiresAt
                        - status
                        - account
                      additionalProperties: false
                - oneOf:
                    - type: object
                      properties:
                        request:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          const: selection_required
                        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))$
                        url:
                          type: string
                          maxLength: 2048
                          format: uri
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      required:
                        - request
                        - status
                        - expiresAt
                        - url
                        - idempotencyKey
                      additionalProperties: false
                    - type: object
                      properties:
                        payment:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          enum:
                            - prepared
                            - dispatching
                            - uncertain
                            - pending
                        url:
                          type: string
                          maxLength: 2048
                          format: uri
                      required:
                        - payment
                        - expiresAt
                        - idempotencyKey
                        - status
                        - url
                      additionalProperties: false
                    - type: object
                      properties:
                        payment:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          enum:
                            - settled
                            - partially_refunded
                            - reversal_pending
                            - reversal_failed
                            - disputed
                            - refunded
                        receipt:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                      required:
                        - payment
                        - expiresAt
                        - idempotencyKey
                        - status
                        - receipt
                      additionalProperties: false
                    - type: object
                      properties:
                        payment:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        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))$
                        idempotencyKey:
                          type: string
                          minLength: 1
                          maxLength: 200
                          pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                        status:
                          type: string
                          enum:
                            - failed
                            - voided
                      required:
                        - payment
                        - expiresAt
                        - idempotencyKey
                        - status
                      additionalProperties: false
          required:
            - type
            - threadId
            - result
          additionalProperties: false
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearer:
      type: http
      scheme: bearer
    assistToken:
      type: apiKey
      in: header
      name: X-Assist-Token

````

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