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

# Run

> Start a thread, continue work, and handle authentication or payment requests.

`POST /api/v3/run` starts one agent thread or continues it with a typed reply. Read current messages, pending requests, and progress with [Get thread](https://darwin.so/docs/reference/get-thread.md), using the returned `threadId`. Reading a thread does not start work.

Your credential identifies the caller. You do not send an identity selector. An account-owner API key needs `agent:write`; an assistant acting for a person needs a live `human:actions` OAuth grant. Application-only keys cannot act as their owner or an end user.

## Anonymous public Run

When guest access is enabled for Run, you can start reviewed, free public work before signing in. Live route, read-only operation and provider readiness checks still apply. A first REST start without credentials returns an `X-Act-Token` response header. Keep it in private client storage and send it on every subsequent read, continuation and retry. The credential expires after 24 hours; a thread ID alone never grants access. Invalid API keys or bearer tokens are rejected rather than treated as anonymous requests.

For sign-in, send your verified account credential together with the same `X-Act-Token`. Darwin transfers the existing thread and preserves its messages and retry identities. Continue that thread; signing in does not approve an action, pay, or repeat completed work. Application-bound guests require the same application. Private accounts, provider authentication, payment and private media still require sign-in and their normal approvals.

The web keeps guest proof in an HttpOnly cookie. MCP returns proof only in host-only result `_meta["darwin/actToken"]`; hosts opt in with `X-Darwin-Guest-Act: true`, store it per user, and forward it as an `X-Act-Token` HTTP header. Never put it in model arguments, messages, logs or URLs. MCP session IDs and unverified user metadata are not ownership proof. Hosts without per-user credential custody must use OAuth to continue. A short-lived browser claim link keeps an existing guest thread across an OAuth reconnect; it does not authorize payment or execution.

## Start and continue

Send exactly one of `searchId`, `targets`, or `threadId`. Choose exactly one agent for a new thread. For a Search handoff, set `agentIds` to the chosen agent ID; use the same owner credential and, when handing off a first-party guest Search, its `X-Search-Token` as additional proof. Direct starts use one entry in `targets`; continuations use a `threadId` and a typed `message`.

```json theme={null}
{
  "targets": [{ "agentId": "returned-agent-id", "operationId": "returned-capability-id" }],
  "message": "Help me with this task."
}
```

The response returns a `threadId` and an `actRequestId` receipt. Read [Get act request](https://darwin.so/docs/reference/act-request) using `actRequestId`, then continue through this same Run endpoint:

```json theme={null}
{
  "threadId": "returned-thread-id",
  "message": { "type": "text", "text": "Here is more information." }
}
```

Use an `Idempotency-Key` header and reuse it for retries of the same request. A new message uses a new key. A created thread is not a completed provider outcome. The legacy [Get act request](https://darwin.so/docs/reference/act-request) reader remains available for historical batch receipts.

## Authentication

Read the thread’s pending requests with Get thread for entries with `type: "authentication_request"` or `"authentication_required"`. Review the target, resource and scopes, then submit the exact request ID:

```json theme={null}
{
  "threadId": "returned-thread-id",
  "message": { "type": "authentication_response", "requestId": "returned-auth-request-id" }
}
```

A user API key also needs `connections:write`. The response's typed `result` contains an `authentication` ID, status, expiry and a hosted `url` when consent is required. The person opens that URL and chooses or connects the account. Run never accepts passwords, API keys or OAuth tokens. Only a verified `connected` status means authentication succeeded. Read the same thread after consent; do not create another attempt to poll it.

Use this Run message for request-bound authentication. Read the same thread after hosted consent to verify its current state. Saved access can be managed through [List auth credentials](https://darwin.so/docs/reference/target-accounts/list-account-auth-credentials.md) and [Revoke auth credential](https://darwin.so/docs/reference/target-accounts/revoke-account-auth-credential.md).

## Payment

The selected child’s `state.requests` includes a `payment_request` with immutable amount, currency, payee, accepted methods and expiry. Review those terms, then submit its exact request ID:

```json theme={null}
{
  "threadId": "returned-thread-id",
  "message": { "type": "payment_response", "requestId": "returned-payment-request-id" }
}
```

The typed `result` returns `status: "selection_required"`, `request`, `url`, `expiresAt` and the effective idempotency key. The person opens the hosted URL to review the terms, choose an eligible method and authorize checkout. Calling Run opens selection; it does not charge or report settlement. No card data, bank details, method selector or provider credential belongs in this message.

Read the same thread for verified payment state. Do not replay an uncertain payment with a new key. A hosted URL, saved method or accepted message is not a payment receipt.

Use this Run message for request-bound payment selection. Manage saved methods through [List payment methods](https://darwin.so/docs/reference/target-accounts/list-account-payment-methods.md) and [Revoke payment method](https://darwin.so/docs/reference/target-accounts/revoke-account-payment-method.md). Saving a method requires explicit permission and never proves a charge.

## Approvals and other replies

Use `action_request` to propose a capability invocation, `action_confirmation` to confirm its exact request, `approval_confirmation` with `allow` or `deny` for a reviewed permission, `completion_confirmation` to acknowledge delivery, and `cancellation_request` to request cancellation of an operation. Use IDs returned by Get act request. Plain text never substitutes for authentication, payment or approval.

Every start checks current route availability and authorization. A Search listing alone does not prove a provider can execute the request. Authentication and payment request IDs must belong to the supplied thread; Run rejects a request from another thread.


## OpenAPI

````yaml openapi-v3.json POST /v3/run
openapi: 3.1.0
info:
  title: Navigator
  version: 3.0.0
servers:
  - url: https://api.darwin.so/api
security: []
paths:
  /v3/run:
    post:
      summary: Run
      description: >-
        Optional context.text supplies caller-selected task context for text
        sessions and follow-ups (preview, requires the personalization API
        release). Operation calls use schema-declared arguments instead. Context
        is retained as message data, never authority; account memory is not
        automatically forwarded. Account keys and OAuth are supported. Anonymous
        public Act is enabled separately: the first start may omit credentials
        and returns X-Act-Token; keep it in private client custody and send it
        on every read, continuation and retry. It expires after 24 hours. Sign
        in with the same token to claim the existing session before
        authentication, payment or private account access. Invalid supplied
        credentials never fall back to guest access. Exactly one of searchId,
        targets, or threadId. For a Search handoff, arguments is an object keyed
        by agentId (not operationId); each value is that agent’s capability
        arguments. Omit arguments to open a text-only session, not execute a
        tool. Search handoff requires the same owner credential; an anonymous
        Search also requires X-Search-Token. Caller identity comes from the
        credential. A user API key requires agent:write; OAuth requires a live
        human:actions grant. Authentication and payment messages open hosted
        consent or selection for a request in that exact session; they do not
        submit secrets or charge a payment.
      operationId: run
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
        - name: X-Search-Token
          in: header
          required: false
          schema:
            type: string
        - name: X-Act-Token
          in: header
          required: false
          schema:
            type: string
          description: Private guest credential; never place it in messages or URLs.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActV3Request'
      responses:
        '200':
          headers:
            X-Act-Token:
              description: >-
                Returned only when a guest session is first created. Keep it for
                subsequent calls.
              schema:
                type: string
          description: >-
            Typed continuation receipt. This acknowledges the message, not
            terminal provider completion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActV3Response'
        '202':
          description: >-
            Act request accepted for session handoff. The receipt status
            completed means handoff only. Read the owner-bound session for
            terminal provider outcome and output; no completed work is asserted
            by this response.
          headers:
            Location:
              description: >-
                Owner-authorized request observation endpoint; reading does not
                retry execution.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActV3RequestResponse'
        '400':
          description: Invalid request or stale Search handoff
        '401':
          description: Missing or invalid credential
        '403':
          description: Required scope missing, or agent or session access denied
        '409':
          description: >-
            All session starts failed. ACT_ADMISSION_BLOCKED identifies a known
            admission refusal; ACT_HANDOFF_UNCONFIRMED requires reconciliation
            before further action. Both include the durable receipt, blocking
            codes and GET-only next actions; retryable is false.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActPostFailure'
        '429':
          description: Account request limit exceeded; follow Retry-After
        '503':
          description: Act or session runtime unavailable
      security:
        - apiKey: []
        - bearer: []
        - actGuest: []
        - {}
components:
  schemas:
    ActV3Request:
      anyOf:
        - type: object
          properties:
            searchId:
              type: string
              pattern: ^srch_[a-f0-9-]{36}$
            agentIds:
              minItems: 1
              maxItems: 8
              type: array
              items:
                type: string
                minLength: 1
                maxLength: 200
                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
            arguments:
              description: >-
                Capability arguments keyed by agentId from the selected Search
                result. Omit for a text-only thread; operationId keys are
                invalid.
              type: object
              propertyNames:
                type: string
                minLength: 1
                maxLength: 200
                pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
              additionalProperties:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
            audience:
              type: string
              enum:
                - human
                - agent
              description: >-
                Who consumes this response. Controls presentation only; never
                identity, permissions, or approval.
            message:
              type: string
              minLength: 1
              maxLength: 32000
            context:
              description: >-
                Relevant task context explicitly shared with this agent. For
                operation calls, put personalized values in declared arguments
                instead. Never send a complete account profile.
              type: object
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 4000
              required:
                - text
              additionalProperties: false
          required:
            - searchId
            - message
          additionalProperties: false
        - type: object
          properties:
            targets:
              minItems: 1
              maxItems: 1
              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
                  arguments:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties: {}
                required:
                  - agentId
                additionalProperties: false
            audience:
              type: string
              enum:
                - human
                - agent
              description: >-
                Who consumes this response. Controls presentation only; never
                identity, permissions, or approval.
            message:
              type: string
              minLength: 1
              maxLength: 32000
            context:
              description: >-
                Relevant task context explicitly shared with this agent. For
                operation calls, put personalized values in declared arguments
                instead. Never send a complete account profile.
              type: object
              properties:
                text:
                  type: string
                  minLength: 1
                  maxLength: 4000
              required:
                - text
              additionalProperties: false
          required:
            - targets
            - message
          additionalProperties: false
        - type: object
          properties:
            audience:
              type: string
              enum:
                - human
                - agent
              description: >-
                Who consumes this response. Controls presentation only; never
                identity, permissions, or approval.
            threadId:
              type: string
              minLength: 1
              maxLength: 200
              pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
            message:
              oneOf:
                - type: object
                  properties:
                    type:
                      type: string
                      const: text
                    text:
                      type: string
                      minLength: 1
                      maxLength: 32000
                    context:
                      description: >-
                        Relevant task context explicitly shared with this agent.
                        For operation calls, put personalized values in declared
                        arguments instead. Never send a complete account
                        profile.
                      type: object
                      properties:
                        text:
                          type: string
                          minLength: 1
                          maxLength: 4000
                      required:
                        - text
                      additionalProperties: false
                  required:
                    - type
                    - text
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: action_request
                    operationId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    arguments:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  required:
                    - type
                    - operationId
                    - arguments
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: action_confirmation
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - type
                    - requestId
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: input_response
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    arguments:
                      type: object
                      propertyNames:
                        type: string
                      additionalProperties: {}
                  required:
                    - type
                    - requestId
                    - arguments
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: approval_confirmation
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                    decision:
                      type: string
                      enum:
                        - allow
                        - deny
                  required:
                    - type
                    - requestId
                    - decision
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: completion_confirmation
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - type
                    - requestId
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: cancellation_request
                    actionId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - type
                    - actionId
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: authentication_response
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - type
                    - requestId
                  additionalProperties: false
                - type: object
                  properties:
                    type:
                      type: string
                      const: payment_response
                    requestId:
                      type: string
                      minLength: 1
                      maxLength: 200
                      pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$
                  required:
                    - type
                    - requestId
                  additionalProperties: false
          required:
            - threadId
            - 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
    ActV3RequestResponse:
      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: 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
                      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: {}
                                                                      minimum: {}
                                                                      maximum: {}
                                                                    - type: {}
                                                              required:
                                                                - title
                                                                - detail
                                                                - durationMinutes
                                                              additionalProperties: false
                                                        required:
                                                          - kind
                                                          - title
                                                          - steps
                                                        additionalProperties: false
                                                      - type: object
                                                        properties:
                                                          kind:
                                                            type: string
                                                            const: estimate
                                                          title:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 80
                                                          currency:
                                                            type: string
                                                            enum:
                                                              - USD
                                                              - EUR
                                                              - GBP
                                                              - CAD
                                                              - AUD
                                                              - INR
                                                              - JPY
                                                          items:
                                                            minItems: 1
                                                            maxItems: 6
                                                            type: array
                                                            items:
                                                              type: object
                                                              properties:
                                                                label:
                                                                  type: string
                                                                  minLength: 1
                                                                  maxLength: 60
                                                                  description: >-
                                                                    Item name only. Never duplicate
                                                                    quantities, currency amounts or unit
                                                                    costs in this label; the user can edit
                                                                    those independently.
                                                                quantity:
                                                                  type: number
                                                                  minimum: 0
                                                                  maximum: 1000000
                                                                unitCost:
                                                                  type: number
                                                                  minimum: 0
                                                                  maximum: 100000000
                                                              required:
                                                                - label
                                                                - quantity
                                                                - unitCost
                                                              additionalProperties: false
                                                          contingencyPercent:
                                                            type: number
                                                            minimum: 0
                                                            maximum: 100
                                                          assumptions:
                                                            type: string
                                                            minLength: 1
                                                            maxLength: 300
                                                            description: >-
                                                              Explicitly identify any assumed prices,
                                                              quantities and currency. These are
                                                              editable estimates, not provider quotes.
                                                        required:
                                                          - kind
                                                          - title
                                                          - currency
                                                          - items
                                                          - contingencyPercent
                                                          - assumptions
                                                        additionalProperties: false
                                                  - type: 'null'
                                              journey:
                                                anyOf:
                                                  - type: object
                                                    properties:
                                                      stage:
                                                        type: string
                                                        enum:
                                                          - input
                                                          - review
                                                          - ready
                                                          - complete
                                                      instruction:
                                                        type: string
                                                        minLength: 1
                                                        maxLength: 160
                                                      action:
                                                        anyOf:
                                                          - type: object
                                                            properties:
                                                              kind:
                                                                default: continue
                                                                type: string
                                                                enum:
                                                                  - continue
                                                                  - execute
                                                                  - copy
                                                              label:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 60
                                                              intent:
                                                                type: string
                                                                minLength: 1
                                                                maxLength: 800
                                                                description: >-
                                                                  A concrete next-step instruction in
                                                                  plain language. Never an opaque command
                                                                  token such as confirm_criteria.
                                                              operationId:
                                                                anyOf:
                                                                  - type: string
                                                                    maxLength: 200
                                                                  - type: 'null'
                                                              argumentsJson:
                                                                anyOf:
                                                                  - type: string
                                                                    maxLength: 16000
                                                                  - type: 'null'
                                                            required:
                                                              - kind
                                                              - label
                                                              - intent
                                                              - operationId
                                                              - argumentsJson
                                                            additionalProperties: false
                                                          - type: 'null'
                                                    required:
                                                      - stage
                                                      - instruction
                                                      - action
                                                    additionalProperties: false
                                                  - type: 'null'
                                              design:
                                                type: object
                                                properties:
                                                  character:
                                                    type: string
                                                    enum:
                                                      - editorial
                                                      - research
                                                      - extraction
                                                      - directory
                                                      - storyboard
                                                      - studio
                                                      - comparison
                                                      - planner
                                                      - estimate
                                                      - utility
                                                  density:
                                                    type: string
                                                    enum:
                                                      - relaxed
                                                      - compact
                                                required:
                                                  - character
                                                  - density
                                                additionalProperties: false
                                              runtimeRegions:
                                                maxItems: 4
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    sectionId:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    libraryDigest:
                                                      type: string
                                                      pattern: ^[a-f0-9]{64}$
                                                    status:
                                                      type: string
                                                      enum:
                                                        - generated
                                                        - ready
                                                        - unavailable
                                                    artifactId:
                                                      anyOf:
                                                        - type: string
                                                          format: uuid
                                                          pattern: >-
                                                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                                                        - type: 'null'
                                                    tree:
                                                      anyOf:
                                                        - type: object
                                                          properties:
                                                            nodes:
                                                              minItems: 1
                                                              maxItems: 12
                                                              type: array
                                                              items: {}
                                                          required:
                                                            - nodes
                                                          additionalProperties: false
                                                        - type: 'null'
                                                    inputFields:
                                                      maxItems: 16
                                                      type: array
                                                      items:
                                                        type: string
                                                        maxLength: 80
                                                    failure:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 120
                                                        - type: 'null'
                                                    model:
                                                      type: string
                                                      maxLength: 160
                                                    inputTokens:
                                                      type: integer
                                                      minimum: 0
                                                      maximum: 9007199254740991
                                                    outputTokens:
                                                      type: integer
                                                      minimum: 0
                                                      maximum: 9007199254740991
                                                  required:
                                                    - id
                                                    - sectionId
                                                    - libraryDigest
                                                    - status
                                                    - artifactId
                                                    - tree
                                                    - inputFields
                                                    - failure
                                                  additionalProperties: false
                                              sections:
                                                minItems: 1
                                                maxItems: 12
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    id:
                                                      type: string
                                                      pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                    kind:
                                                      type: string
                                                      enum:
                                                        - message
                                                        - list
                                                        - fields
                                                        - operation
                                                        - progress
                                                        - results
                                                        - notice
                                                    title:
                                                      type: string
                                                      maxLength: 160
                                                    text:
                                                      type: string
                                                      maxLength: 4000
                                                    items:
                                                      maxItems: 20
                                                      type: array
                                                      items:
                                                        type: string
                                                        maxLength: 800
                                                    operationId:
                                                      anyOf:
                                                        - type: string
                                                          maxLength: 200
                                                        - type: 'null'
                                                  required:
                                                    - id
                                                    - kind
                                                    - title
                                                    - text
                                                    - items
                                                    - operationId
                                                  additionalProperties: false
                                              next:
                                                maxItems: 3
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    label:
                                                      type: string
                                                      maxLength: 100
                                                    intent:
                                                      type: string
                                                      maxLength: 500
                                                    confidence:
                                                      type: number
                                                      minimum: 0
                                                      maximum: 1
                                                  required:
                                                    - label
                                                    - intent
                                                    - confidence
                                                  additionalProperties: false
                                              reactSource:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 50000
                                                  - type: 'null'
                                              mediaPrompt:
                                                anyOf:
                                                  - type: string
                                                    maxLength: 4000
                                                  - type: 'null'
                                            required:
                                              - title
                                              - summary
                                              - layout
                                              - representation
                                              - sections
                                              - next
                                              - reactSource
                                              - mediaPrompt
                                            additionalProperties: false
                                          runtimeComponents:
                                            maxItems: 4
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                id:
                                                  type: string
                                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                sectionId:
                                                  type: string
                                                  pattern: ^[a-z][a-z0-9_-]{0,63}$
                                                instructions:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 4000
                                                components:
                                                  default: []
                                                  maxItems: 30
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Z][A-Za-z0-9]*$
                                                inputFields:
                                                  default: []
                                                  maxItems: 16
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Za-z][A-Za-z0-9_.-]{0,79}$
                                              required:
                                                - id
                                                - sectionId
                                                - instructions
                                                - components
                                                - inputFields
                                              additionalProperties: false
                                          argumentBindings:
                                            maxItems: 50
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                field:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 120
                                                target:
                                                  type: string
                                                  minLength: 1
                                                  maxLength: 200
                                              required:
                                                - field
                                                - target
                                              additionalProperties: false
                                          bindings:
                                            default: []
                                            maxItems: 64
                                            type: array
                                            items:
                                              type: object
                                              properties:
                                                path:
                                                  minItems: 2
                                                  maxItems: 8
                                                  type: array
                                                  items:
                                                    type: string
                                                    pattern: ^[A-Za-z0-9_-]+$
                                                source:
                                                  type: string
                                                  enum:
                                                    - message
                                                    - field
                                                field:
                                                  type: string
                                                  maxLength: 120
                                              required:
                                                - path
                                                - source
                                              additionalProperties: false
                                        required:
                                          - id
                                          - description
                                          - instructions
                                          - modalities
                                          - presentation
                                          - bindings
                                        additionalProperties: false
                                  required:
                                    - version
                                    - revision
                                    - initialState
                                    - instructions
                                    - states
                                    - variants
                                  additionalProperties: false
                                revision:
                                  type: integer
                                  exclusiveMinimum: 0
                                  maximum: 9007199254740991
                                available:
                                  type: boolean
                                reason:
                                  anyOf:
                                    - type: string
                                    - type: 'null'
                                fields:
                                  maxItems: 50
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      name:
                                        type: string
                                      label:
                                        type: string
                                      type:
                                        type: string
                                        enum:
                                          - text
                                          - number
                                          - select
                                      required:
                                        type: boolean
                                      primary:
                                        type: boolean
                                      encoding:
                                        type: string
                                        const: json
                                      options:
                                        type: array
                                        items:
                                          type: string
                                      multiple:
                                        type: boolean
                                      description:
                                        type: string
                                      minimum:
                                        type: number
                                      maximum:
                                        type: number
                                      minLength:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                      maxLength:
                                        type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                    required:
                                      - name
                                      - label
                                      - type
                                      - required
                                    additionalProperties: false
                                inputSchema:
                                  type: object
                                  propertyNames:
                                    type: string
                                  additionalProperties: {}
                              required:
                                - id
                                - name
                                - description
                                - available
                                - reason
                                - fields
                              additionalProperties: false
                          execution:
                            type: object
                            properties:
                              threadId:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              turnId:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              status:
                                type: string
                                enum:
                                  - not_started
                                  - queued
                                  - running
                                  - waiting
                                  - completed
                                  - failed
                                  - cancelled
                                  - unavailable
                              evidence:
                                maxItems: 30
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                    text:
                                      type: string
                                    verification:
                                      type: string
                                      enum:
                                        - provider_reported
                                        - criteria_checked
                                        - observed
                                  required:
                                    - id
                                    - text
                                    - verification
                                  additionalProperties: false
                            required:
                              - threadId
                              - turnId
                              - status
                              - evidence
                            additionalProperties: false
                        required:
                          - agent
                          - operations
                          - execution
                        additionalProperties: false
                      markdown:
                        type: string
                        maxLength: 20000
                      artifactId:
                        anyOf:
                          - type: string
                            format: uuid
                            pattern: >-
                              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                          - type: 'null'
                      policy:
                        type: object
                        properties:
                          id:
                            type: string
                          version:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          probability:
                            type: number
                            minimum: 0
                            maximum: 1
                          applied:
                            maxItems: 3
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                version:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                scope:
                                  type: string
                                  enum:
                                    - global
                                    - agent
                                    - user
                                probability:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                              required:
                                - id
                                - version
                                - scope
                                - probability
                              additionalProperties: false
                        required:
                          - id
                          - version
                          - probability
                        additionalProperties: false
                      diagnostics:
                        type: object
                        properties:
                          model:
                            type: string
                          generationMs:
                            type: number
                          inputTokens:
                            type: number
                          outputTokens:
                            type: number
                          repairs:
                            type: number
                          fallback:
                            anyOf:
                              - type: string
                              - type: 'null'
                        required:
                          - model
                          - generationMs
                          - inputTokens
                          - outputTokens
                          - repairs
                          - fallback
                        additionalProperties: false
                      createdAt:
                        type: string
                    required:
                      - version
                      - runId
                      - revision
                      - mode
                      - request
                      - generated
                      - facts
                      - markdown
                      - artifactId
                      - policy
                      - diagnostics
                      - createdAt
                    additionalProperties: false
                  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
    ActPostFailure:
      type: object
      required:
        - code
        - stage
        - retryable
        - message
        - blockers
        - receipt
      additionalProperties: false
      properties:
        code:
          type: string
          enum:
            - ACT_ADMISSION_BLOCKED
            - ACT_HANDOFF_UNCONFIRMED
        stage:
          type: string
          enum:
            - admission
            - handoff
        retryable:
          type: boolean
          const: false
        message:
          type: string
        receipt:
          $ref: '#/components/schemas/ActV3RequestResponse'
        blockers:
          type: array
          minItems: 1
          maxItems: 8
          items:
            type: object
            required:
              - agentId
              - code
              - nextAction
            additionalProperties: false
            properties:
              agentId:
                type: string
              operationId:
                type: string
              operationRevision:
                type: integer
                minimum: 1
              code:
                type: string
              nextAction:
                type: object
                required:
                  - type
                  - method
                  - path
                additionalProperties: false
                properties:
                  type:
                    type: string
                    enum:
                      - inspect_operation
                      - reconcile_request
                  method:
                    type: string
                    const: GET
                  path:
                    type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    bearer:
      type: http
      scheme: bearer
    actGuest:
      type: apiKey
      in: header
      name: X-Act-Token
      description: >-
        Anonymous public Act when guest access is enabled. A session ID alone
        never grants access.

````

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