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

# Submit the caller-owned agent result for the pending interaction



## OpenAPI

````yaml /api-reference/openapi.json post /v1/projects/{projectId}/runs/{hostedRunId}/interactions/complete
openapi: 3.1.0
info:
  title: Firedrill Control API
  version: 1.0.0
  description: >-
    The control plane for drills, drill runs, and the worlds they run in. Errors
    always carry the canonical envelope; unsafe operations require an
    Idempotency-Key; long work returns an operation resource.
servers:
  - url: https://api.firedrill.run
security:
  - controlCredential: []
tags:
  - name: authentication
    description: Sessions, CLI exchange, credentials, and verification keys.
    x-group: Authentication
  - name: organizations
    description: Organization members, billing, usage, retention, audit, and exports.
    x-group: Organizations
  - name: projects
    description: Project lifecycle, access, grants, and repository bindings.
    x-group: Projects
  - name: builds
    description: Immutable builds, uploads, source drafts, and world definitions.
    x-group: Builds and source
  - name: tools
    description: Project Tool discovery, approval, source, and revocation.
    x-group: Tool library
  - name: worlds
    description: >-
      Managed environments, world sessions, state, time, reset, faults, forks,
      and snapshots.
    x-group: Environments and sessions
  - name: runs
    description: >-
      Hosted runs, comparisons, attachments, reports, evidence bundles, sharing,
      and exports.
    x-group: Runs and evidence
  - name: browser
    description: Managed browser tests, runs, messages, streams, frames, and artifacts.
    x-group: Browser testing
  - name: callbacks
    description: Callback receiver approval, revocation, and signing material.
    x-group: Callbacks
  - name: github-ci
    description: >-
      GitHub installations, repository automation, CI suites, cases, evidence,
      and checks.
    x-group: GitHub and CI
  - name: authoring
    description: Authoring sessions, proposals, turns, and scenario proposals.
    x-group: Cloud authoring
paths:
  /v1/projects/{projectId}/runs/{hostedRunId}/interactions/complete:
    post:
      tags:
        - runs
      summary: Submit the caller-owned agent result for the pending interaction
      operationId: runs.completeInteraction
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            pattern: ^prj_[0-9a-z]{12,32}$
        - name: hostedRunId
          in: path
          required: true
          schema:
            type: string
            pattern: ^hrun_[0-9a-z]{12,32}$
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 128
            pattern: ^[A-Za-z0-9._:-]+$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompleteHostedRunInteractionRequest'
      responses:
        '200':
          description: Existing interaction completion
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostedRunOperationResponse'
        '202':
          description: Interaction completion accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HostedRunOperationResponse'
        default:
          description: Canonical error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    CompleteHostedRunInteractionRequest:
      type: object
      properties:
        interactionId:
          type: string
          minLength: 1
          maxLength: 96
          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
        expectedRevision:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 9007199254740991
        targetResult:
          type: object
          properties:
            schemaVersion:
              type: number
              enum:
                - 1
            status:
              type: string
              enum:
                - completed
                - failed
                - timed_out
                - cancelled
            output:
              allOf:
                - $ref: >-
                    #/components/schemas/CompleteHostedRunInteractionRequest___schema0
            attachments:
              default: []
              type: array
              items:
                type: object
                additionalProperties:
                  $ref: >-
                    #/components/schemas/CompleteHostedRunInteractionRequest___schema0
            error:
              type: object
              properties:
                schemaVersion:
                  type: number
                  enum:
                    - 1
                code:
                  type: string
                  pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                source:
                  type: string
                  enum:
                    - framework
                    - world
                    - tool
                    - target
                    - assertion
                    - reporter
                    - control
                message:
                  type: string
                  minLength: 1
                  maxLength: 4000
                retryable:
                  type: boolean
                correlationId:
                  type: string
                  pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                issues:
                  default: []
                  type: array
                  items:
                    type: object
                    properties:
                      code:
                        type: string
                        minLength: 1
                        maxLength: 128
                      message:
                        type: string
                        minLength: 1
                        maxLength: 2000
                      path:
                        type: array
                        items:
                          anyOf:
                            - type: string
                            - type: integer
                              minimum: 0
                              maximum: 9007199254740991
                      suggestion:
                        type: string
                        minLength: 1
                        maxLength: 4000
                    required:
                      - code
                      - message
                    additionalProperties: {}
                details:
                  type: object
                  additionalProperties:
                    $ref: >-
                      #/components/schemas/CompleteHostedRunInteractionRequest___schema0
                evidence:
                  type: object
                  properties:
                    runId:
                      type: string
                      pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                    sequence:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      maximum: 9007199254740991
                  additionalProperties: {}
              required:
                - schemaVersion
                - code
                - source
                - message
                - retryable
                - issues
              additionalProperties: {}
          required:
            - schemaVersion
            - status
            - attachments
          additionalProperties: {}
        attachmentIds:
          maxItems: 32
          type: array
          items:
            type: string
            pattern: ^ratt_[a-f0-9]{32}$
        capture:
          type: object
          properties:
            policies:
              type: object
              properties:
                logs:
                  type: string
                  enum:
                    - 'off'
                    - always
                    - retain-on-failure
                screenshots:
                  type: string
                  enum:
                    - 'off'
                    - always
                    - retain-on-failure
                video:
                  type: string
                  enum:
                    - 'off'
                    - always
                    - retain-on-failure
                files:
                  type: string
                  enum:
                    - 'off'
                    - always
                    - retain-on-failure
              required:
                - logs
                - screenshots
                - video
                - files
              additionalProperties: false
            errors:
              maxItems: 256
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    maxLength: 100
                    pattern: ^capture\.[A-Z_]+$
                  message:
                    type: string
                    minLength: 1
                    maxLength: 500
                  kind:
                    type: string
                    enum:
                      - log
                      - screenshot
                      - video
                      - file
                  interactionId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                required:
                  - code
                  - message
                additionalProperties: false
            discarded:
              type: object
              properties:
                logs:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                screenshots:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                video:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                files:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
              required:
                - logs
                - screenshots
                - video
                - files
              additionalProperties: false
          required:
            - policies
            - errors
            - discarded
          additionalProperties: false
      required:
        - interactionId
        - expectedRevision
        - targetResult
      additionalProperties: false
    HostedRunOperationResponse:
      type: object
      properties:
        run:
          type: object
          properties:
            schemaVersion:
              type: number
              enum:
                - 1
            hostedRunId:
              type: string
              pattern: ^hrun_[0-9a-z]{12,32}$
            evidenceBundleId:
              type: string
              pattern: ^evidence_[0-9a-z]{12,32}$
            organizationId:
              type: string
              pattern: ^org_[0-9a-z]{12,32}$
            projectId:
              type: string
              pattern: ^prj_[0-9a-z]{12,32}$
            environmentId:
              type: string
              pattern: ^env_[0-9a-z]{12,32}$
            sessionId:
              type: string
              pattern: ^ses_[0-9a-z]{12,32}$
            rerunOfHostedRunId:
              type: string
              pattern: ^hrun_[0-9a-z]{12,32}$
            buildHash:
              type: string
              pattern: ^sha256:[0-9a-f]{64}$
            request:
              type: object
              properties:
                runId:
                  type: string
                  pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                drillId:
                  type: string
                  minLength: 1
                  maxLength: 96
                seed:
                  type: string
                  minLength: 1
                  maxLength: 20
                trial:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                trialCount:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                attempt:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                attemptLimit:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
              required:
                - runId
                - drillId
                - seed
                - trial
                - trialCount
                - attempt
                - attemptLimit
              additionalProperties: false
            identity:
              type: object
              properties:
                runId:
                  type: string
                  pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                worldInstanceId:
                  type: string
                  pattern: ^world_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                drillId:
                  type: string
                  minLength: 1
                  maxLength: 96
                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                scenarioId:
                  type: string
                  minLength: 1
                  maxLength: 96
                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                targetId:
                  type: string
                  minLength: 1
                  maxLength: 96
                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                buildHash:
                  type: string
                  pattern: ^sha256:[0-9a-f]{64}$
                packageLockHash:
                  type: string
                  pattern: ^sha256:[0-9a-f]{64}$
                setupHash:
                  type: string
                  pattern: ^sha256:[0-9a-f]{64}$
                seed:
                  type: string
                  pattern: ^(0|[1-9]\d{0,19})$
                trial:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                trialCount:
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                attempt:
                  default: 1
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
                attemptLimit:
                  default: 1
                  type: integer
                  minimum: 0
                  exclusiveMinimum: true
                  maximum: 9007199254740991
              required:
                - runId
                - worldInstanceId
                - drillId
                - targetId
                - buildHash
                - packageLockHash
                - seed
                - trial
                - trialCount
                - attempt
                - attemptLimit
              additionalProperties: false
            leaseGeneration:
              type: integer
              minimum: 0
              exclusiveMinimum: true
              maximum: 9007199254740991
            revision:
              type: integer
              minimum: 0
              exclusiveMinimum: true
              maximum: 9007199254740991
            state:
              type: string
              enum:
                - created
                - awaiting_agent
                - ready_to_seal
                - sealed
                - runner_failed
                - cancelled
                - aborted_before_start
                - orchestration_failed
            termination:
              type: object
              properties:
                schemaVersion:
                  type: number
                  enum:
                    - 1
                outcome:
                  type: string
                  enum:
                    - runner_failed
                    - cancelled
                reason:
                  type: string
                  minLength: 1
                  maxLength: 1000
                requestedAtMs:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
              required:
                - schemaVersion
                - outcome
                - reason
                - requestedAtMs
              additionalProperties: false
            pendingInteraction:
              type: object
              properties:
                schemaVersion:
                  type: number
                  enum:
                    - 1
                interaction:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    afterStartUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    actorId:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    task:
                      type: object
                      properties:
                        instruction:
                          type: string
                          minLength: 1
                          maxLength: 20000
                        input:
                          allOf:
                            - $ref: >-
                                #/components/schemas/HostedRunOperationResponse___schema0
                      required:
                        - instruction
                      additionalProperties: false
                  required:
                    - id
                    - afterStartUs
                    - actorId
                    - task
                  additionalProperties: false
                scheduledAtVirtualUs:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                startedAtVirtualUs:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                toolCallsAtStart:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
              required:
                - schemaVersion
                - interaction
                - scheduledAtVirtualUs
                - startedAtVirtualUs
                - toolCallsAtStart
              additionalProperties: false
            result:
              oneOf:
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      enum:
                        - 1
                    identity:
                      type: object
                      properties:
                        runId:
                          type: string
                          pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        worldInstanceId:
                          type: string
                          pattern: ^world_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        scenarioId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        targetId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        buildHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        packageLockHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        seed:
                          type: string
                          pattern: ^(0|[1-9]\d{0,19})$
                        trial:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        trialCount:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attempt:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attemptLimit:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - runId
                        - worldInstanceId
                        - drillId
                        - targetId
                        - buildHash
                        - packageLockHash
                        - seed
                        - trial
                        - trialCount
                        - attempt
                        - attemptLimit
                      additionalProperties: false
                    setup:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        setup:
                          type: object
                          properties:
                            scenario:
                              type: object
                              properties:
                                virtualTimeUs:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                actors:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                        pattern: \S
                                        description: >-
                                          Plain-text actor description for
                                          authoring and inspection; not a prompt
                                          or permission.
                                      attributes:
                                        default: {}
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      grants:
                                        default: []
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            operationId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - operationId
                                          additionalProperties: false
                                    required:
                                      - id
                                      - attributes
                                      - grants
                                    additionalProperties: false
                                state:
                                  default: []
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - upsert
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                          value:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                          - value
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - delete
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                        additionalProperties: false
                                faults:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      faultId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - faultId
                                    additionalProperties: false
                                initialEvents:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      event:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          eventId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - eventId
                                        additionalProperties: false
                                      payload:
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      atUs:
                                        type: integer
                                        minimum: -9007199254740991
                                        maximum: 9007199254740991
                                      actorId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - event
                                      - payload
                                      - atUs
                                      - actorId
                                    additionalProperties: false
                                toolOverrides:
                                  maxItems: 1000
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      operation:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          operationId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - operationId
                                        additionalProperties: false
                                      when:
                                        type: object
                                        properties:
                                          arguments:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                          actorId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        additionalProperties: false
                                      outcome:
                                        oneOf:
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - return
                                              value:
                                                $ref: >-
                                                  #/components/schemas/HostedRunOperationResponse___schema0
                                            required:
                                              - kind
                                              - value
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - error
                                              code:
                                                type: string
                                                pattern: ^[A-Z][A-Z0-9_]*$
                                              message:
                                                type: string
                                                minLength: 1
                                                maxLength: 1000
                                              retryable:
                                                type: boolean
                                            required:
                                              - kind
                                              - code
                                              - message
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - original
                                            required:
                                              - kind
                                            additionalProperties: false
                                      times:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    required:
                                      - id
                                      - operation
                                      - outcome
                                    additionalProperties: false
                              required:
                                - actors
                                - state
                                - faults
                                - initialEvents
                              additionalProperties: false
                            tools:
                              default:
                                packages: []
                                behaviorOverrides: []
                              type: object
                              properties:
                                packages:
                                  default: []
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 214
                                    pattern: >-
                                      ^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$
                                behaviorOverrides:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      module:
                                        type: string
                                        minLength: 1
                                        maxLength: 1024
                                      exportName:
                                        default: default
                                        type: string
                                        pattern: ^(?:default|[$A-Z_a-z][$\w]*)$
                                    required:
                                      - packageId
                                      - module
                                      - exportName
                                    additionalProperties: false
                              required:
                                - packages
                                - behaviorOverrides
                              additionalProperties: false
                            bindings:
                              default:
                                environment: {}
                              type: object
                              properties:
                                environment:
                                  default: {}
                                  type: object
                                  additionalProperties:
                                    type: string
                                    enum:
                                      - FIREDRILL_HTTP_URL
                                      - FIREDRILL_HTTP_TOKEN
                                      - FIREDRILL_MCP_URL
                                      - FIREDRILL_MCP_TOKEN
                                      - FIREDRILL_CLI_URL
                                      - FIREDRILL_CLI_TOKEN
                              required:
                                - environment
                              additionalProperties: false
                          required:
                            - tools
                            - bindings
                          additionalProperties: false
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                      required:
                        - schemaVersion
                        - drillId
                        - setup
                        - setupHash
                      additionalProperties: false
                    capture:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        policies:
                          type: object
                          properties:
                            logs:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            screenshots:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            video:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            files:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                        attachments:
                          maxItems: 32
                          type: array
                          items:
                            type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              policy:
                                type: string
                                enum:
                                  - always
                                  - retain-on-failure
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              attachment:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  kind:
                                    type: string
                                    enum:
                                      - file
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 128
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
                                  mediaType:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  bytes:
                                    type: integer
                                    minimum: 0
                                    maximum: 67108864
                                  hash:
                                    type: string
                                    pattern: ^sha256:[0-9a-f]{64}$
                                  redaction:
                                    type: object
                                    properties:
                                      status:
                                        type: string
                                        enum:
                                          - not_applied
                                          - applied_by_caller
                                      note:
                                        default: null
                                        nullable: true
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                    required:
                                      - status
                                      - note
                                    additionalProperties: false
                                required:
                                  - schemaVersion
                                  - kind
                                  - id
                                  - name
                                  - mediaType
                                  - bytes
                                  - hash
                                  - redaction
                                additionalProperties: false
                            required:
                              - kind
                              - policy
                              - attachment
                            additionalProperties: false
                        errors:
                          maxItems: 256
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                maxLength: 100
                                pattern: ^capture\.[A-Z_]+$
                              message:
                                type: string
                                minLength: 1
                                maxLength: 500
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            required:
                              - code
                              - message
                            additionalProperties: false
                        discarded:
                          type: object
                          properties:
                            logs:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            screenshots:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            video:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            files:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                      required:
                        - schemaVersion
                        - policies
                        - attachments
                        - errors
                        - discarded
                      additionalProperties: false
                    startedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    finishedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    bindingEvidence:
                      type: string
                      enum:
                        - not_checked
                        - issued
                        - route_verified
                        - observed
                        - enforced
                    worldConsistency:
                      type: string
                      enum:
                        - atomic
                        - degraded
                        - unknown
                    interactions:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          actorId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          task:
                            type: object
                            properties:
                              instruction:
                                type: string
                                minLength: 1
                                maxLength: 20000
                              input:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - instruction
                            additionalProperties: false
                          scheduledAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          startedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          finishedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          bindingEvidence:
                            type: string
                            enum:
                              - not_checked
                              - issued
                              - route_verified
                              - observed
                              - enforced
                          targetResult:
                            type: object
                            properties:
                              schemaVersion:
                                type: number
                                enum:
                                  - 1
                              status:
                                type: string
                                enum:
                                  - completed
                                  - failed
                                  - timed_out
                                  - cancelled
                              output:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              attachments:
                                default: []
                                type: array
                                items:
                                  type: object
                                  additionalProperties:
                                    $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              error:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  code:
                                    type: string
                                    pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                                  source:
                                    type: string
                                    enum:
                                      - framework
                                      - world
                                      - tool
                                      - target
                                      - assertion
                                      - reporter
                                      - control
                                  message:
                                    type: string
                                    minLength: 1
                                    maxLength: 4000
                                  retryable:
                                    type: boolean
                                  correlationId:
                                    type: string
                                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                  issues:
                                    default: []
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          minLength: 1
                                          maxLength: 128
                                        message:
                                          type: string
                                          minLength: 1
                                          maxLength: 2000
                                        path:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                        suggestion:
                                          type: string
                                          minLength: 1
                                          maxLength: 4000
                                      required:
                                        - code
                                        - message
                                      additionalProperties: {}
                                  details:
                                    type: object
                                    additionalProperties:
                                      $ref: >-
                                        #/components/schemas/HostedRunOperationResponse___schema0
                                  evidence:
                                    type: object
                                    properties:
                                      runId:
                                        type: string
                                        pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                      sequence:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    additionalProperties: {}
                                required:
                                  - schemaVersion
                                  - code
                                  - source
                                  - message
                                  - retryable
                                  - issues
                                additionalProperties: {}
                            required:
                              - schemaVersion
                              - status
                              - attachments
                            additionalProperties: {}
                        required:
                          - schemaVersion
                          - interactionId
                          - actorId
                          - task
                          - scheduledAtVirtualUs
                          - startedAtVirtualUs
                          - finishedAtVirtualUs
                          - bindingEvidence
                          - targetResult
                        additionalProperties: false
                    checkpoints:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          checkpointId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - after_interaction
                              - after_event
                              - horizon
                              - final
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          virtualTimeUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          verdict:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                          assertionResults:
                            minItems: 1
                            type: array
                            items:
                              type: object
                              properties:
                                schemaVersion:
                                  type: number
                                  enum:
                                    - 1
                                assertionId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                kind:
                                  type: string
                                  enum:
                                    - state.value
                                    - state.count
                                    - operation.count
                                    - operation.order
                                    - operation.arguments
                                    - operation.denied
                                    - event.count
                                    - callback.count
                                status:
                                  type: string
                                  enum:
                                    - passed
                                    - failed
                                    - inconclusive
                                    - invalid
                                gate:
                                  type: boolean
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 4000
                                expected:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                actual:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                location:
                                  oneOf:
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - state
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        namespace:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        rowId:
                                          type: string
                                          minLength: 1
                                          maxLength: 512
                                        path:
                                          default: []
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                                minLength: 1
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                      required:
                                        - subject
                                        - packageId
                                        - namespace
                                        - path
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - operation
                                        operations:
                                          minItems: 1
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              packageId:
                                                type: string
                                                minLength: 1
                                                maxLength: 96
                                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                              operationId:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                                pattern: >-
                                                  ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                            required:
                                              - packageId
                                              - operationId
                                            additionalProperties: false
                                        occurrence:
                                          type: integer
                                          minimum: 0
                                          exclusiveMinimum: true
                                          maximum: 9007199254740991
                                      required:
                                        - subject
                                        - operations
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - event
                                        event:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            eventId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - eventId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - emitted
                                            - scheduled
                                            - handled
                                            - failed
                                      required:
                                        - subject
                                        - event
                                        - phase
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - callback
                                        callback:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            callbackId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          required:
                                            - packageId
                                            - callbackId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - queued
                                            - attempt_started
                                            - delivered
                                            - retry_scheduled
                                            - failed
                                            - recovered
                                      required:
                                        - subject
                                        - callback
                                        - phase
                                      additionalProperties: false
                                diff:
                                  type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                        - not_equals
                                        - greater_than_or_equal
                                        - less_than_or_equal
                                        - one_of
                                        - contains
                                        - contains_in_order
                                        - all_denied
                                    matched:
                                      type: boolean
                                    details:
                                      default: {}
                                      type: object
                                      additionalProperties:
                                        $ref: >-
                                          #/components/schemas/HostedRunOperationResponse___schema0
                                  required:
                                    - operator
                                    - matched
                                    - details
                                  additionalProperties: false
                                evidenceSequences:
                                  default: []
                                  type: array
                                  items:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                              required:
                                - schemaVersion
                                - assertionId
                                - kind
                                - status
                                - gate
                                - message
                                - expected
                                - actual
                                - location
                                - diff
                                - evidenceSequences
                              additionalProperties: {}
                        required:
                          - schemaVersion
                          - checkpointId
                          - kind
                          - virtualTimeUs
                          - verdict
                          - assertionResults
                        additionalProperties: false
                    budgetUsage:
                      type: object
                      properties:
                        toolCalls:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            attempted:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            rejected:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - limit
                            - attempted
                            - rejected
                          additionalProperties: false
                        scheduledEvents:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            processed:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            exhausted:
                              type: boolean
                          required:
                            - limit
                            - processed
                            - exhausted
                          additionalProperties: false
                      required:
                        - toolCalls
                        - scheduledEvents
                      additionalProperties: false
                    status:
                      type: string
                      enum:
                        - sealed
                    verdict:
                      type: string
                      enum:
                        - passed
                        - failed
                        - inconclusive
                    assertionResults:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          assertionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - state.value
                              - state.count
                              - operation.count
                              - operation.order
                              - operation.arguments
                              - operation.denied
                              - event.count
                              - callback.count
                          status:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                              - invalid
                          gate:
                            type: boolean
                          message:
                            type: string
                            minLength: 1
                            maxLength: 4000
                          expected:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          actual:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          location:
                            oneOf:
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - state
                                  packageId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  namespace:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  rowId:
                                    type: string
                                    minLength: 1
                                    maxLength: 512
                                  path:
                                    default: []
                                    type: array
                                    items:
                                      anyOf:
                                        - type: string
                                          minLength: 1
                                        - type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                required:
                                  - subject
                                  - packageId
                                  - namespace
                                  - path
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - operation
                                  operations:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        operationId:
                                          type: string
                                          minLength: 1
                                          maxLength: 160
                                          pattern: >-
                                            ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                      required:
                                        - packageId
                                        - operationId
                                      additionalProperties: false
                                  occurrence:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                                required:
                                  - subject
                                  - operations
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - event
                                  event:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      eventId:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                        pattern: >-
                                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                    required:
                                      - packageId
                                      - eventId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - emitted
                                      - scheduled
                                      - handled
                                      - failed
                                required:
                                  - subject
                                  - event
                                  - phase
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - callback
                                  callback:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      callbackId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - callbackId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - queued
                                      - attempt_started
                                      - delivered
                                      - retry_scheduled
                                      - failed
                                      - recovered
                                required:
                                  - subject
                                  - callback
                                  - phase
                                additionalProperties: false
                          diff:
                            type: object
                            properties:
                              operator:
                                type: string
                                enum:
                                  - equals
                                  - not_equals
                                  - greater_than_or_equal
                                  - less_than_or_equal
                                  - one_of
                                  - contains
                                  - contains_in_order
                                  - all_denied
                              matched:
                                type: boolean
                              details:
                                default: {}
                                type: object
                                additionalProperties:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - operator
                              - matched
                              - details
                            additionalProperties: false
                          evidenceSequences:
                            default: []
                            type: array
                            items:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                        required:
                          - schemaVersion
                          - assertionId
                          - kind
                          - status
                          - gate
                          - message
                          - expected
                          - actual
                          - location
                          - diff
                          - evidenceSequences
                        additionalProperties: {}
                    evidenceRange:
                      type: object
                      properties:
                        fromSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        toSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - fromSequence
                        - toSequence
                      additionalProperties: false
                    stateHash:
                      type: string
                      pattern: ^sha256:[0-9a-f]{64}$
                    evidenceHash:
                      type: string
                      pattern: ^sha256:[0-9a-f]{64}$
                    trajectoryHash:
                      type: string
                      pattern: ^sha256:[0-9a-f]{64}$
                  required:
                    - schemaVersion
                    - identity
                    - startedAtVirtualUs
                    - finishedAtVirtualUs
                    - bindingEvidence
                    - worldConsistency
                    - interactions
                    - checkpoints
                    - budgetUsage
                    - status
                    - verdict
                    - assertionResults
                    - evidenceRange
                    - stateHash
                    - evidenceHash
                    - trajectoryHash
                  additionalProperties: {}
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      enum:
                        - 1
                    identity:
                      type: object
                      properties:
                        runId:
                          type: string
                          pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        worldInstanceId:
                          type: string
                          pattern: ^world_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        scenarioId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        targetId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        buildHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        packageLockHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        seed:
                          type: string
                          pattern: ^(0|[1-9]\d{0,19})$
                        trial:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        trialCount:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attempt:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attemptLimit:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - runId
                        - worldInstanceId
                        - drillId
                        - targetId
                        - buildHash
                        - packageLockHash
                        - seed
                        - trial
                        - trialCount
                        - attempt
                        - attemptLimit
                      additionalProperties: false
                    setup:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        setup:
                          type: object
                          properties:
                            scenario:
                              type: object
                              properties:
                                virtualTimeUs:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                actors:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                        pattern: \S
                                        description: >-
                                          Plain-text actor description for
                                          authoring and inspection; not a prompt
                                          or permission.
                                      attributes:
                                        default: {}
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      grants:
                                        default: []
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            operationId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - operationId
                                          additionalProperties: false
                                    required:
                                      - id
                                      - attributes
                                      - grants
                                    additionalProperties: false
                                state:
                                  default: []
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - upsert
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                          value:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                          - value
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - delete
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                        additionalProperties: false
                                faults:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      faultId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - faultId
                                    additionalProperties: false
                                initialEvents:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      event:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          eventId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - eventId
                                        additionalProperties: false
                                      payload:
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      atUs:
                                        type: integer
                                        minimum: -9007199254740991
                                        maximum: 9007199254740991
                                      actorId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - event
                                      - payload
                                      - atUs
                                      - actorId
                                    additionalProperties: false
                                toolOverrides:
                                  maxItems: 1000
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      operation:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          operationId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - operationId
                                        additionalProperties: false
                                      when:
                                        type: object
                                        properties:
                                          arguments:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                          actorId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        additionalProperties: false
                                      outcome:
                                        oneOf:
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - return
                                              value:
                                                $ref: >-
                                                  #/components/schemas/HostedRunOperationResponse___schema0
                                            required:
                                              - kind
                                              - value
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - error
                                              code:
                                                type: string
                                                pattern: ^[A-Z][A-Z0-9_]*$
                                              message:
                                                type: string
                                                minLength: 1
                                                maxLength: 1000
                                              retryable:
                                                type: boolean
                                            required:
                                              - kind
                                              - code
                                              - message
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - original
                                            required:
                                              - kind
                                            additionalProperties: false
                                      times:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    required:
                                      - id
                                      - operation
                                      - outcome
                                    additionalProperties: false
                              required:
                                - actors
                                - state
                                - faults
                                - initialEvents
                              additionalProperties: false
                            tools:
                              default:
                                packages: []
                                behaviorOverrides: []
                              type: object
                              properties:
                                packages:
                                  default: []
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 214
                                    pattern: >-
                                      ^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$
                                behaviorOverrides:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      module:
                                        type: string
                                        minLength: 1
                                        maxLength: 1024
                                      exportName:
                                        default: default
                                        type: string
                                        pattern: ^(?:default|[$A-Z_a-z][$\w]*)$
                                    required:
                                      - packageId
                                      - module
                                      - exportName
                                    additionalProperties: false
                              required:
                                - packages
                                - behaviorOverrides
                              additionalProperties: false
                            bindings:
                              default:
                                environment: {}
                              type: object
                              properties:
                                environment:
                                  default: {}
                                  type: object
                                  additionalProperties:
                                    type: string
                                    enum:
                                      - FIREDRILL_HTTP_URL
                                      - FIREDRILL_HTTP_TOKEN
                                      - FIREDRILL_MCP_URL
                                      - FIREDRILL_MCP_TOKEN
                                      - FIREDRILL_CLI_URL
                                      - FIREDRILL_CLI_TOKEN
                              required:
                                - environment
                              additionalProperties: false
                          required:
                            - tools
                            - bindings
                          additionalProperties: false
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                      required:
                        - schemaVersion
                        - drillId
                        - setup
                        - setupHash
                      additionalProperties: false
                    capture:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        policies:
                          type: object
                          properties:
                            logs:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            screenshots:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            video:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            files:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                        attachments:
                          maxItems: 32
                          type: array
                          items:
                            type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              policy:
                                type: string
                                enum:
                                  - always
                                  - retain-on-failure
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              attachment:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  kind:
                                    type: string
                                    enum:
                                      - file
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 128
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
                                  mediaType:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  bytes:
                                    type: integer
                                    minimum: 0
                                    maximum: 67108864
                                  hash:
                                    type: string
                                    pattern: ^sha256:[0-9a-f]{64}$
                                  redaction:
                                    type: object
                                    properties:
                                      status:
                                        type: string
                                        enum:
                                          - not_applied
                                          - applied_by_caller
                                      note:
                                        default: null
                                        nullable: true
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                    required:
                                      - status
                                      - note
                                    additionalProperties: false
                                required:
                                  - schemaVersion
                                  - kind
                                  - id
                                  - name
                                  - mediaType
                                  - bytes
                                  - hash
                                  - redaction
                                additionalProperties: false
                            required:
                              - kind
                              - policy
                              - attachment
                            additionalProperties: false
                        errors:
                          maxItems: 256
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                maxLength: 100
                                pattern: ^capture\.[A-Z_]+$
                              message:
                                type: string
                                minLength: 1
                                maxLength: 500
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            required:
                              - code
                              - message
                            additionalProperties: false
                        discarded:
                          type: object
                          properties:
                            logs:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            screenshots:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            video:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            files:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                      required:
                        - schemaVersion
                        - policies
                        - attachments
                        - errors
                        - discarded
                      additionalProperties: false
                    startedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    finishedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    bindingEvidence:
                      type: string
                      enum:
                        - not_checked
                        - issued
                        - route_verified
                        - observed
                        - enforced
                    worldConsistency:
                      type: string
                      enum:
                        - atomic
                        - degraded
                        - unknown
                    interactions:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          actorId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          task:
                            type: object
                            properties:
                              instruction:
                                type: string
                                minLength: 1
                                maxLength: 20000
                              input:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - instruction
                            additionalProperties: false
                          scheduledAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          startedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          finishedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          bindingEvidence:
                            type: string
                            enum:
                              - not_checked
                              - issued
                              - route_verified
                              - observed
                              - enforced
                          targetResult:
                            type: object
                            properties:
                              schemaVersion:
                                type: number
                                enum:
                                  - 1
                              status:
                                type: string
                                enum:
                                  - completed
                                  - failed
                                  - timed_out
                                  - cancelled
                              output:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              attachments:
                                default: []
                                type: array
                                items:
                                  type: object
                                  additionalProperties:
                                    $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              error:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  code:
                                    type: string
                                    pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                                  source:
                                    type: string
                                    enum:
                                      - framework
                                      - world
                                      - tool
                                      - target
                                      - assertion
                                      - reporter
                                      - control
                                  message:
                                    type: string
                                    minLength: 1
                                    maxLength: 4000
                                  retryable:
                                    type: boolean
                                  correlationId:
                                    type: string
                                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                  issues:
                                    default: []
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          minLength: 1
                                          maxLength: 128
                                        message:
                                          type: string
                                          minLength: 1
                                          maxLength: 2000
                                        path:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                        suggestion:
                                          type: string
                                          minLength: 1
                                          maxLength: 4000
                                      required:
                                        - code
                                        - message
                                      additionalProperties: {}
                                  details:
                                    type: object
                                    additionalProperties:
                                      $ref: >-
                                        #/components/schemas/HostedRunOperationResponse___schema0
                                  evidence:
                                    type: object
                                    properties:
                                      runId:
                                        type: string
                                        pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                      sequence:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    additionalProperties: {}
                                required:
                                  - schemaVersion
                                  - code
                                  - source
                                  - message
                                  - retryable
                                  - issues
                                additionalProperties: {}
                            required:
                              - schemaVersion
                              - status
                              - attachments
                            additionalProperties: {}
                        required:
                          - schemaVersion
                          - interactionId
                          - actorId
                          - task
                          - scheduledAtVirtualUs
                          - startedAtVirtualUs
                          - finishedAtVirtualUs
                          - bindingEvidence
                          - targetResult
                        additionalProperties: false
                    checkpoints:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          checkpointId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - after_interaction
                              - after_event
                              - horizon
                              - final
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          virtualTimeUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          verdict:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                          assertionResults:
                            minItems: 1
                            type: array
                            items:
                              type: object
                              properties:
                                schemaVersion:
                                  type: number
                                  enum:
                                    - 1
                                assertionId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                kind:
                                  type: string
                                  enum:
                                    - state.value
                                    - state.count
                                    - operation.count
                                    - operation.order
                                    - operation.arguments
                                    - operation.denied
                                    - event.count
                                    - callback.count
                                status:
                                  type: string
                                  enum:
                                    - passed
                                    - failed
                                    - inconclusive
                                    - invalid
                                gate:
                                  type: boolean
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 4000
                                expected:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                actual:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                location:
                                  oneOf:
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - state
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        namespace:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        rowId:
                                          type: string
                                          minLength: 1
                                          maxLength: 512
                                        path:
                                          default: []
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                                minLength: 1
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                      required:
                                        - subject
                                        - packageId
                                        - namespace
                                        - path
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - operation
                                        operations:
                                          minItems: 1
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              packageId:
                                                type: string
                                                minLength: 1
                                                maxLength: 96
                                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                              operationId:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                                pattern: >-
                                                  ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                            required:
                                              - packageId
                                              - operationId
                                            additionalProperties: false
                                        occurrence:
                                          type: integer
                                          minimum: 0
                                          exclusiveMinimum: true
                                          maximum: 9007199254740991
                                      required:
                                        - subject
                                        - operations
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - event
                                        event:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            eventId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - eventId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - emitted
                                            - scheduled
                                            - handled
                                            - failed
                                      required:
                                        - subject
                                        - event
                                        - phase
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - callback
                                        callback:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            callbackId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          required:
                                            - packageId
                                            - callbackId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - queued
                                            - attempt_started
                                            - delivered
                                            - retry_scheduled
                                            - failed
                                            - recovered
                                      required:
                                        - subject
                                        - callback
                                        - phase
                                      additionalProperties: false
                                diff:
                                  type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                        - not_equals
                                        - greater_than_or_equal
                                        - less_than_or_equal
                                        - one_of
                                        - contains
                                        - contains_in_order
                                        - all_denied
                                    matched:
                                      type: boolean
                                    details:
                                      default: {}
                                      type: object
                                      additionalProperties:
                                        $ref: >-
                                          #/components/schemas/HostedRunOperationResponse___schema0
                                  required:
                                    - operator
                                    - matched
                                    - details
                                  additionalProperties: false
                                evidenceSequences:
                                  default: []
                                  type: array
                                  items:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                              required:
                                - schemaVersion
                                - assertionId
                                - kind
                                - status
                                - gate
                                - message
                                - expected
                                - actual
                                - location
                                - diff
                                - evidenceSequences
                              additionalProperties: {}
                        required:
                          - schemaVersion
                          - checkpointId
                          - kind
                          - virtualTimeUs
                          - verdict
                          - assertionResults
                        additionalProperties: false
                    budgetUsage:
                      type: object
                      properties:
                        toolCalls:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            attempted:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            rejected:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - limit
                            - attempted
                            - rejected
                          additionalProperties: false
                        scheduledEvents:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            processed:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            exhausted:
                              type: boolean
                          required:
                            - limit
                            - processed
                            - exhausted
                          additionalProperties: false
                      required:
                        - toolCalls
                        - scheduledEvents
                      additionalProperties: false
                    status:
                      type: string
                      enum:
                        - runner_failed
                    error:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        code:
                          type: string
                          pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                        source:
                          type: string
                          enum:
                            - framework
                            - world
                            - tool
                            - target
                            - assertion
                            - reporter
                            - control
                        message:
                          type: string
                          minLength: 1
                          maxLength: 4000
                        retryable:
                          type: boolean
                        correlationId:
                          type: string
                          pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        issues:
                          default: []
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                minLength: 1
                                maxLength: 128
                              message:
                                type: string
                                minLength: 1
                                maxLength: 2000
                              path:
                                type: array
                                items:
                                  anyOf:
                                    - type: string
                                    - type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                              suggestion:
                                type: string
                                minLength: 1
                                maxLength: 4000
                            required:
                              - code
                              - message
                            additionalProperties: {}
                        details:
                          type: object
                          additionalProperties:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                        evidence:
                          type: object
                          properties:
                            runId:
                              type: string
                              pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                            sequence:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                          additionalProperties: {}
                      required:
                        - schemaVersion
                        - code
                        - source
                        - message
                        - retryable
                        - issues
                      additionalProperties: {}
                    assertionResults:
                      default: []
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          assertionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - state.value
                              - state.count
                              - operation.count
                              - operation.order
                              - operation.arguments
                              - operation.denied
                              - event.count
                              - callback.count
                          status:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                              - invalid
                          gate:
                            type: boolean
                          message:
                            type: string
                            minLength: 1
                            maxLength: 4000
                          expected:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          actual:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          location:
                            oneOf:
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - state
                                  packageId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  namespace:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  rowId:
                                    type: string
                                    minLength: 1
                                    maxLength: 512
                                  path:
                                    default: []
                                    type: array
                                    items:
                                      anyOf:
                                        - type: string
                                          minLength: 1
                                        - type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                required:
                                  - subject
                                  - packageId
                                  - namespace
                                  - path
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - operation
                                  operations:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        operationId:
                                          type: string
                                          minLength: 1
                                          maxLength: 160
                                          pattern: >-
                                            ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                      required:
                                        - packageId
                                        - operationId
                                      additionalProperties: false
                                  occurrence:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                                required:
                                  - subject
                                  - operations
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - event
                                  event:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      eventId:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                        pattern: >-
                                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                    required:
                                      - packageId
                                      - eventId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - emitted
                                      - scheduled
                                      - handled
                                      - failed
                                required:
                                  - subject
                                  - event
                                  - phase
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - callback
                                  callback:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      callbackId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - callbackId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - queued
                                      - attempt_started
                                      - delivered
                                      - retry_scheduled
                                      - failed
                                      - recovered
                                required:
                                  - subject
                                  - callback
                                  - phase
                                additionalProperties: false
                          diff:
                            type: object
                            properties:
                              operator:
                                type: string
                                enum:
                                  - equals
                                  - not_equals
                                  - greater_than_or_equal
                                  - less_than_or_equal
                                  - one_of
                                  - contains
                                  - contains_in_order
                                  - all_denied
                              matched:
                                type: boolean
                              details:
                                default: {}
                                type: object
                                additionalProperties:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - operator
                              - matched
                              - details
                            additionalProperties: false
                          evidenceSequences:
                            default: []
                            type: array
                            items:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                        required:
                          - schemaVersion
                          - assertionId
                          - kind
                          - status
                          - gate
                          - message
                          - expected
                          - actual
                          - location
                          - diff
                          - evidenceSequences
                        additionalProperties: {}
                    evidenceRange:
                      type: object
                      properties:
                        fromSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        toSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - fromSequence
                        - toSequence
                      additionalProperties: false
                  required:
                    - schemaVersion
                    - identity
                    - startedAtVirtualUs
                    - finishedAtVirtualUs
                    - bindingEvidence
                    - worldConsistency
                    - interactions
                    - checkpoints
                    - budgetUsage
                    - status
                    - error
                    - assertionResults
                  additionalProperties: {}
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      enum:
                        - 1
                    identity:
                      type: object
                      properties:
                        runId:
                          type: string
                          pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        worldInstanceId:
                          type: string
                          pattern: ^world_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        scenarioId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        targetId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        buildHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        packageLockHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                        seed:
                          type: string
                          pattern: ^(0|[1-9]\d{0,19})$
                        trial:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        trialCount:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attempt:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        attemptLimit:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - runId
                        - worldInstanceId
                        - drillId
                        - targetId
                        - buildHash
                        - packageLockHash
                        - seed
                        - trial
                        - trialCount
                        - attempt
                        - attemptLimit
                      additionalProperties: false
                    setup:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        drillId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        setup:
                          type: object
                          properties:
                            scenario:
                              type: object
                              properties:
                                virtualTimeUs:
                                  type: integer
                                  minimum: -9007199254740991
                                  maximum: 9007199254740991
                                actors:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      description:
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                        pattern: \S
                                        description: >-
                                          Plain-text actor description for
                                          authoring and inspection; not a prompt
                                          or permission.
                                      attributes:
                                        default: {}
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      grants:
                                        default: []
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            operationId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - operationId
                                          additionalProperties: false
                                    required:
                                      - id
                                      - attributes
                                      - grants
                                    additionalProperties: false
                                state:
                                  default: []
                                  type: array
                                  items:
                                    oneOf:
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - upsert
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                          value:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                          - value
                                        additionalProperties: false
                                      - type: object
                                        properties:
                                          action:
                                            type: string
                                            enum:
                                              - delete
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          namespace:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          rowId:
                                            type: string
                                            minLength: 1
                                            maxLength: 512
                                        required:
                                          - action
                                          - packageId
                                          - namespace
                                          - rowId
                                        additionalProperties: false
                                faults:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      faultId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - faultId
                                    additionalProperties: false
                                initialEvents:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      event:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          eventId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - eventId
                                        additionalProperties: false
                                      payload:
                                        type: object
                                        additionalProperties:
                                          $ref: >-
                                            #/components/schemas/HostedRunOperationResponse___schema0
                                      atUs:
                                        type: integer
                                        minimum: -9007199254740991
                                        maximum: 9007199254740991
                                      actorId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - event
                                      - payload
                                      - atUs
                                      - actorId
                                    additionalProperties: false
                                toolOverrides:
                                  maxItems: 1000
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      operation:
                                        type: object
                                        properties:
                                          packageId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          operationId:
                                            type: string
                                            minLength: 1
                                            maxLength: 160
                                            pattern: >-
                                              ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                        required:
                                          - packageId
                                          - operationId
                                        additionalProperties: false
                                      when:
                                        type: object
                                        properties:
                                          arguments:
                                            type: object
                                            additionalProperties:
                                              $ref: >-
                                                #/components/schemas/HostedRunOperationResponse___schema0
                                          actorId:
                                            type: string
                                            minLength: 1
                                            maxLength: 96
                                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        additionalProperties: false
                                      outcome:
                                        oneOf:
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - return
                                              value:
                                                $ref: >-
                                                  #/components/schemas/HostedRunOperationResponse___schema0
                                            required:
                                              - kind
                                              - value
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - error
                                              code:
                                                type: string
                                                pattern: ^[A-Z][A-Z0-9_]*$
                                              message:
                                                type: string
                                                minLength: 1
                                                maxLength: 1000
                                              retryable:
                                                type: boolean
                                            required:
                                              - kind
                                              - code
                                              - message
                                            additionalProperties: false
                                          - type: object
                                            properties:
                                              kind:
                                                type: string
                                                enum:
                                                  - original
                                            required:
                                              - kind
                                            additionalProperties: false
                                      times:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    required:
                                      - id
                                      - operation
                                      - outcome
                                    additionalProperties: false
                              required:
                                - actors
                                - state
                                - faults
                                - initialEvents
                              additionalProperties: false
                            tools:
                              default:
                                packages: []
                                behaviorOverrides: []
                              type: object
                              properties:
                                packages:
                                  default: []
                                  type: array
                                  items:
                                    type: string
                                    minLength: 1
                                    maxLength: 214
                                    pattern: >-
                                      ^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$
                                behaviorOverrides:
                                  default: []
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      module:
                                        type: string
                                        minLength: 1
                                        maxLength: 1024
                                      exportName:
                                        default: default
                                        type: string
                                        pattern: ^(?:default|[$A-Z_a-z][$\w]*)$
                                    required:
                                      - packageId
                                      - module
                                      - exportName
                                    additionalProperties: false
                              required:
                                - packages
                                - behaviorOverrides
                              additionalProperties: false
                            bindings:
                              default:
                                environment: {}
                              type: object
                              properties:
                                environment:
                                  default: {}
                                  type: object
                                  additionalProperties:
                                    type: string
                                    enum:
                                      - FIREDRILL_HTTP_URL
                                      - FIREDRILL_HTTP_TOKEN
                                      - FIREDRILL_MCP_URL
                                      - FIREDRILL_MCP_TOKEN
                                      - FIREDRILL_CLI_URL
                                      - FIREDRILL_CLI_TOKEN
                              required:
                                - environment
                              additionalProperties: false
                          required:
                            - tools
                            - bindings
                          additionalProperties: false
                        setupHash:
                          type: string
                          pattern: ^sha256:[0-9a-f]{64}$
                      required:
                        - schemaVersion
                        - drillId
                        - setup
                        - setupHash
                      additionalProperties: false
                    capture:
                      type: object
                      properties:
                        schemaVersion:
                          type: number
                          enum:
                            - 1
                        policies:
                          type: object
                          properties:
                            logs:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            screenshots:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            video:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                            files:
                              type: string
                              enum:
                                - 'off'
                                - always
                                - retain-on-failure
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                        attachments:
                          maxItems: 32
                          type: array
                          items:
                            type: object
                            properties:
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              policy:
                                type: string
                                enum:
                                  - always
                                  - retain-on-failure
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              attachment:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  kind:
                                    type: string
                                    enum:
                                      - file
                                  id:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  name:
                                    type: string
                                    minLength: 1
                                    maxLength: 128
                                    pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
                                  mediaType:
                                    type: string
                                    minLength: 1
                                    maxLength: 200
                                  bytes:
                                    type: integer
                                    minimum: 0
                                    maximum: 67108864
                                  hash:
                                    type: string
                                    pattern: ^sha256:[0-9a-f]{64}$
                                  redaction:
                                    type: object
                                    properties:
                                      status:
                                        type: string
                                        enum:
                                          - not_applied
                                          - applied_by_caller
                                      note:
                                        default: null
                                        nullable: true
                                        type: string
                                        minLength: 1
                                        maxLength: 500
                                    required:
                                      - status
                                      - note
                                    additionalProperties: false
                                required:
                                  - schemaVersion
                                  - kind
                                  - id
                                  - name
                                  - mediaType
                                  - bytes
                                  - hash
                                  - redaction
                                additionalProperties: false
                            required:
                              - kind
                              - policy
                              - attachment
                            additionalProperties: false
                        errors:
                          maxItems: 256
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                maxLength: 100
                                pattern: ^capture\.[A-Z_]+$
                              message:
                                type: string
                                minLength: 1
                                maxLength: 500
                              kind:
                                type: string
                                enum:
                                  - log
                                  - screenshot
                                  - video
                                  - file
                              interactionId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            required:
                              - code
                              - message
                            additionalProperties: false
                        discarded:
                          type: object
                          properties:
                            logs:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            screenshots:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            video:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            files:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - logs
                            - screenshots
                            - video
                            - files
                          additionalProperties: false
                      required:
                        - schemaVersion
                        - policies
                        - attachments
                        - errors
                        - discarded
                      additionalProperties: false
                    startedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    finishedAtVirtualUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    bindingEvidence:
                      type: string
                      enum:
                        - not_checked
                        - issued
                        - route_verified
                        - observed
                        - enforced
                    worldConsistency:
                      type: string
                      enum:
                        - atomic
                        - degraded
                        - unknown
                    interactions:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          actorId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          task:
                            type: object
                            properties:
                              instruction:
                                type: string
                                minLength: 1
                                maxLength: 20000
                              input:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - instruction
                            additionalProperties: false
                          scheduledAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          startedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          finishedAtVirtualUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          bindingEvidence:
                            type: string
                            enum:
                              - not_checked
                              - issued
                              - route_verified
                              - observed
                              - enforced
                          targetResult:
                            type: object
                            properties:
                              schemaVersion:
                                type: number
                                enum:
                                  - 1
                              status:
                                type: string
                                enum:
                                  - completed
                                  - failed
                                  - timed_out
                                  - cancelled
                              output:
                                allOf:
                                  - $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              attachments:
                                default: []
                                type: array
                                items:
                                  type: object
                                  additionalProperties:
                                    $ref: >-
                                      #/components/schemas/HostedRunOperationResponse___schema0
                              error:
                                type: object
                                properties:
                                  schemaVersion:
                                    type: number
                                    enum:
                                      - 1
                                  code:
                                    type: string
                                    pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                                  source:
                                    type: string
                                    enum:
                                      - framework
                                      - world
                                      - tool
                                      - target
                                      - assertion
                                      - reporter
                                      - control
                                  message:
                                    type: string
                                    minLength: 1
                                    maxLength: 4000
                                  retryable:
                                    type: boolean
                                  correlationId:
                                    type: string
                                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                  issues:
                                    default: []
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          minLength: 1
                                          maxLength: 128
                                        message:
                                          type: string
                                          minLength: 1
                                          maxLength: 2000
                                        path:
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                        suggestion:
                                          type: string
                                          minLength: 1
                                          maxLength: 4000
                                      required:
                                        - code
                                        - message
                                      additionalProperties: {}
                                  details:
                                    type: object
                                    additionalProperties:
                                      $ref: >-
                                        #/components/schemas/HostedRunOperationResponse___schema0
                                  evidence:
                                    type: object
                                    properties:
                                      runId:
                                        type: string
                                        pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                                      sequence:
                                        type: integer
                                        minimum: 0
                                        exclusiveMinimum: true
                                        maximum: 9007199254740991
                                    additionalProperties: {}
                                required:
                                  - schemaVersion
                                  - code
                                  - source
                                  - message
                                  - retryable
                                  - issues
                                additionalProperties: {}
                            required:
                              - schemaVersion
                              - status
                              - attachments
                            additionalProperties: {}
                        required:
                          - schemaVersion
                          - interactionId
                          - actorId
                          - task
                          - scheduledAtVirtualUs
                          - startedAtVirtualUs
                          - finishedAtVirtualUs
                          - bindingEvidence
                          - targetResult
                        additionalProperties: false
                    checkpoints:
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          checkpointId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - after_interaction
                              - after_event
                              - horizon
                              - final
                          interactionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          virtualTimeUs:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          verdict:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                          assertionResults:
                            minItems: 1
                            type: array
                            items:
                              type: object
                              properties:
                                schemaVersion:
                                  type: number
                                  enum:
                                    - 1
                                assertionId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                kind:
                                  type: string
                                  enum:
                                    - state.value
                                    - state.count
                                    - operation.count
                                    - operation.order
                                    - operation.arguments
                                    - operation.denied
                                    - event.count
                                    - callback.count
                                status:
                                  type: string
                                  enum:
                                    - passed
                                    - failed
                                    - inconclusive
                                    - invalid
                                gate:
                                  type: boolean
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 4000
                                expected:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                actual:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                                location:
                                  oneOf:
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - state
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        namespace:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        rowId:
                                          type: string
                                          minLength: 1
                                          maxLength: 512
                                        path:
                                          default: []
                                          type: array
                                          items:
                                            anyOf:
                                              - type: string
                                                minLength: 1
                                              - type: integer
                                                minimum: 0
                                                maximum: 9007199254740991
                                      required:
                                        - subject
                                        - packageId
                                        - namespace
                                        - path
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - operation
                                        operations:
                                          minItems: 1
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              packageId:
                                                type: string
                                                minLength: 1
                                                maxLength: 96
                                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                              operationId:
                                                type: string
                                                minLength: 1
                                                maxLength: 160
                                                pattern: >-
                                                  ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                            required:
                                              - packageId
                                              - operationId
                                            additionalProperties: false
                                        occurrence:
                                          type: integer
                                          minimum: 0
                                          exclusiveMinimum: true
                                          maximum: 9007199254740991
                                      required:
                                        - subject
                                        - operations
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - event
                                        event:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            eventId:
                                              type: string
                                              minLength: 1
                                              maxLength: 160
                                              pattern: >-
                                                ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                          required:
                                            - packageId
                                            - eventId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - emitted
                                            - scheduled
                                            - handled
                                            - failed
                                      required:
                                        - subject
                                        - event
                                        - phase
                                      additionalProperties: false
                                    - type: object
                                      properties:
                                        subject:
                                          type: string
                                          enum:
                                            - callback
                                        callback:
                                          type: object
                                          properties:
                                            packageId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                            callbackId:
                                              type: string
                                              minLength: 1
                                              maxLength: 96
                                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                          required:
                                            - packageId
                                            - callbackId
                                          additionalProperties: false
                                        phase:
                                          type: string
                                          enum:
                                            - queued
                                            - attempt_started
                                            - delivered
                                            - retry_scheduled
                                            - failed
                                            - recovered
                                      required:
                                        - subject
                                        - callback
                                        - phase
                                      additionalProperties: false
                                diff:
                                  type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                        - not_equals
                                        - greater_than_or_equal
                                        - less_than_or_equal
                                        - one_of
                                        - contains
                                        - contains_in_order
                                        - all_denied
                                    matched:
                                      type: boolean
                                    details:
                                      default: {}
                                      type: object
                                      additionalProperties:
                                        $ref: >-
                                          #/components/schemas/HostedRunOperationResponse___schema0
                                  required:
                                    - operator
                                    - matched
                                    - details
                                  additionalProperties: false
                                evidenceSequences:
                                  default: []
                                  type: array
                                  items:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                              required:
                                - schemaVersion
                                - assertionId
                                - kind
                                - status
                                - gate
                                - message
                                - expected
                                - actual
                                - location
                                - diff
                                - evidenceSequences
                              additionalProperties: {}
                        required:
                          - schemaVersion
                          - checkpointId
                          - kind
                          - virtualTimeUs
                          - verdict
                          - assertionResults
                        additionalProperties: false
                    budgetUsage:
                      type: object
                      properties:
                        toolCalls:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            attempted:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            rejected:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                          required:
                            - limit
                            - attempted
                            - rejected
                          additionalProperties: false
                        scheduledEvents:
                          type: object
                          properties:
                            limit:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            processed:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            exhausted:
                              type: boolean
                          required:
                            - limit
                            - processed
                            - exhausted
                          additionalProperties: false
                      required:
                        - toolCalls
                        - scheduledEvents
                      additionalProperties: false
                    status:
                      type: string
                      enum:
                        - cancelled
                    reason:
                      type: string
                      minLength: 1
                      maxLength: 1000
                    assertionResults:
                      default: []
                      type: array
                      items:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          assertionId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          kind:
                            type: string
                            enum:
                              - state.value
                              - state.count
                              - operation.count
                              - operation.order
                              - operation.arguments
                              - operation.denied
                              - event.count
                              - callback.count
                          status:
                            type: string
                            enum:
                              - passed
                              - failed
                              - inconclusive
                              - invalid
                          gate:
                            type: boolean
                          message:
                            type: string
                            minLength: 1
                            maxLength: 4000
                          expected:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          actual:
                            $ref: >-
                              #/components/schemas/HostedRunOperationResponse___schema0
                          location:
                            oneOf:
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - state
                                  packageId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  namespace:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  rowId:
                                    type: string
                                    minLength: 1
                                    maxLength: 512
                                  path:
                                    default: []
                                    type: array
                                    items:
                                      anyOf:
                                        - type: string
                                          minLength: 1
                                        - type: integer
                                          minimum: 0
                                          maximum: 9007199254740991
                                required:
                                  - subject
                                  - packageId
                                  - namespace
                                  - path
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - operation
                                  operations:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        packageId:
                                          type: string
                                          minLength: 1
                                          maxLength: 96
                                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                        operationId:
                                          type: string
                                          minLength: 1
                                          maxLength: 160
                                          pattern: >-
                                            ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                      required:
                                        - packageId
                                        - operationId
                                      additionalProperties: false
                                  occurrence:
                                    type: integer
                                    minimum: 0
                                    exclusiveMinimum: true
                                    maximum: 9007199254740991
                                required:
                                  - subject
                                  - operations
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - event
                                  event:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      eventId:
                                        type: string
                                        minLength: 1
                                        maxLength: 160
                                        pattern: >-
                                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                    required:
                                      - packageId
                                      - eventId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - emitted
                                      - scheduled
                                      - handled
                                      - failed
                                required:
                                  - subject
                                  - event
                                  - phase
                                additionalProperties: false
                              - type: object
                                properties:
                                  subject:
                                    type: string
                                    enum:
                                      - callback
                                  callback:
                                    type: object
                                    properties:
                                      packageId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                      callbackId:
                                        type: string
                                        minLength: 1
                                        maxLength: 96
                                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    required:
                                      - packageId
                                      - callbackId
                                    additionalProperties: false
                                  phase:
                                    type: string
                                    enum:
                                      - queued
                                      - attempt_started
                                      - delivered
                                      - retry_scheduled
                                      - failed
                                      - recovered
                                required:
                                  - subject
                                  - callback
                                  - phase
                                additionalProperties: false
                          diff:
                            type: object
                            properties:
                              operator:
                                type: string
                                enum:
                                  - equals
                                  - not_equals
                                  - greater_than_or_equal
                                  - less_than_or_equal
                                  - one_of
                                  - contains
                                  - contains_in_order
                                  - all_denied
                              matched:
                                type: boolean
                              details:
                                default: {}
                                type: object
                                additionalProperties:
                                  $ref: >-
                                    #/components/schemas/HostedRunOperationResponse___schema0
                            required:
                              - operator
                              - matched
                              - details
                            additionalProperties: false
                          evidenceSequences:
                            default: []
                            type: array
                            items:
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                        required:
                          - schemaVersion
                          - assertionId
                          - kind
                          - status
                          - gate
                          - message
                          - expected
                          - actual
                          - location
                          - diff
                          - evidenceSequences
                        additionalProperties: {}
                    evidenceRange:
                      type: object
                      properties:
                        fromSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        toSequence:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                      required:
                        - fromSequence
                        - toSequence
                      additionalProperties: false
                  required:
                    - schemaVersion
                    - identity
                    - startedAtVirtualUs
                    - finishedAtVirtualUs
                    - bindingEvidence
                    - worldConsistency
                    - interactions
                    - checkpoints
                    - budgetUsage
                    - status
                    - reason
                    - assertionResults
                  additionalProperties: {}
            failure:
              type: object
              properties:
                schemaVersion:
                  type: number
                  enum:
                    - 1
                code:
                  type: string
                  pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                source:
                  type: string
                  enum:
                    - framework
                    - world
                    - tool
                    - target
                    - assertion
                    - reporter
                    - control
                message:
                  type: string
                  minLength: 1
                  maxLength: 4000
                retryable:
                  type: boolean
                correlationId:
                  type: string
                  pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                issues:
                  default: []
                  type: array
                  items:
                    type: object
                    properties:
                      code:
                        type: string
                        minLength: 1
                        maxLength: 128
                      message:
                        type: string
                        minLength: 1
                        maxLength: 2000
                      path:
                        type: array
                        items:
                          anyOf:
                            - type: string
                            - type: integer
                              minimum: 0
                              maximum: 9007199254740991
                      suggestion:
                        type: string
                        minLength: 1
                        maxLength: 4000
                    required:
                      - code
                      - message
                    additionalProperties: {}
                details:
                  type: object
                  additionalProperties:
                    $ref: '#/components/schemas/HostedRunOperationResponse___schema0'
                evidence:
                  type: object
                  properties:
                    runId:
                      type: string
                      pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                    sequence:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      maximum: 9007199254740991
                  additionalProperties: {}
              required:
                - schemaVersion
                - code
                - source
                - message
                - retryable
                - issues
              additionalProperties: {}
            deadlineAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            evidenceRetentionMs:
              type: integer
              minimum: 0
              exclusiveMinimum: true
              maximum: 9007199254740991
            createdAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            updatedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            finishedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
            - schemaVersion
            - hostedRunId
            - evidenceBundleId
            - organizationId
            - projectId
            - environmentId
            - sessionId
            - buildHash
            - request
            - leaseGeneration
            - revision
            - state
            - deadlineAtMs
            - evidenceRetentionMs
            - createdAtMs
            - updatedAtMs
          additionalProperties: false
        operation:
          type: object
          properties:
            schemaVersion:
              type: number
              enum:
                - 1
            operationId:
              type: string
              pattern: ^op_[0-9a-z]{12,32}$
            organizationId:
              type: string
              pattern: ^org_[0-9a-z]{12,32}$
            projectId:
              type: string
              pattern: ^prj_[0-9a-z]{12,32}$
            kind:
              type: string
              pattern: ^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_-]*)+$
            state:
              type: string
              enum:
                - pending
                - running
                - succeeded
                - failed
                - cancelled
            resourceType:
              type: string
              minLength: 1
              maxLength: 80
            resourceId:
              type: string
              minLength: 1
              maxLength: 128
            error:
              type: object
              properties:
                schemaVersion:
                  type: number
                  enum:
                    - 1
                code:
                  type: string
                  pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                source:
                  type: string
                  enum:
                    - framework
                    - world
                    - tool
                    - target
                    - assertion
                    - reporter
                    - control
                message:
                  type: string
                  minLength: 1
                  maxLength: 4000
                retryable:
                  type: boolean
                correlationId:
                  type: string
                  pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                issues:
                  default: []
                  type: array
                  items:
                    type: object
                    properties:
                      code:
                        type: string
                        minLength: 1
                        maxLength: 128
                      message:
                        type: string
                        minLength: 1
                        maxLength: 2000
                      path:
                        type: array
                        items:
                          anyOf:
                            - type: string
                            - type: integer
                              minimum: 0
                              maximum: 9007199254740991
                      suggestion:
                        type: string
                        minLength: 1
                        maxLength: 4000
                    required:
                      - code
                      - message
                    additionalProperties: {}
                details:
                  type: object
                  additionalProperties:
                    $ref: '#/components/schemas/HostedRunOperationResponse___schema0'
                evidence:
                  type: object
                  properties:
                    runId:
                      type: string
                      pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                    sequence:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      maximum: 9007199254740991
                  additionalProperties: {}
              required:
                - schemaVersion
                - code
                - source
                - message
                - retryable
                - issues
              additionalProperties: {}
            result:
              oneOf:
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      enum:
                        - 1
                    kind:
                      type: string
                      enum:
                        - world.time.advance
                    operationId:
                      type: string
                      pattern: ^op_[0-9a-z]{12,32}$
                    sessionId:
                      type: string
                      pattern: ^ses_[0-9a-z]{12,32}$
                    leaseGeneration:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      maximum: 9007199254740991
                    buildHash:
                      type: string
                      pattern: ^sha256:[0-9a-f]{64}$
                    correlationId:
                      type: string
                      pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                    requestedUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    startedUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    reachedUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    maxEvents:
                      type: integer
                      minimum: 0
                      maximum: 1000000
                    scheduledEventsProcessed:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    evidenceBeforeSequence:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    evidenceAfterSequence:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    status:
                      type: string
                      enum:
                        - completed
                        - failed
                        - interrupted
                    eventBudgetExhausted:
                      type: boolean
                    failure:
                      type: object
                      properties:
                        code:
                          type: string
                          minLength: 1
                          maxLength: 128
                          pattern: ^(control|framework|world)\.[A-Z][A-Z0-9_]*$
                        message:
                          type: string
                          minLength: 1
                          maxLength: 1000
                        scheduledEventId:
                          type: string
                          pattern: ^pending_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                      required:
                        - code
                        - message
                      additionalProperties: false
                  required:
                    - schemaVersion
                    - kind
                    - operationId
                    - sessionId
                    - leaseGeneration
                    - buildHash
                    - correlationId
                    - requestedUs
                    - startedUs
                    - reachedUs
                    - maxEvents
                    - scheduledEventsProcessed
                    - evidenceBeforeSequence
                    - evidenceAfterSequence
                    - status
                    - eventBudgetExhausted
                  additionalProperties: false
                - type: object
                  properties:
                    schemaVersion:
                      type: number
                      enum:
                        - 1
                    kind:
                      type: string
                      enum:
                        - world.fault.set
                    operationId:
                      type: string
                      pattern: ^op_[0-9a-z]{12,32}$
                    sessionId:
                      type: string
                      pattern: ^ses_[0-9a-z]{12,32}$
                    leaseGeneration:
                      type: integer
                      minimum: 0
                      exclusiveMinimum: true
                      maximum: 9007199254740991
                    buildHash:
                      type: string
                      pattern: ^sha256:[0-9a-f]{64}$
                    correlationId:
                      type: string
                      pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                    packageId:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    faultId:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    requestedActive:
                      type: boolean
                    virtualTimeUs:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    evidenceBeforeSequence:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    evidenceAfterSequence:
                      type: integer
                      minimum: -9007199254740991
                      maximum: 9007199254740991
                    status:
                      type: string
                      enum:
                        - completed
                        - interrupted
                    previouslyActive:
                      type: boolean
                    active:
                      type: boolean
                    changed:
                      type: boolean
                    failure:
                      type: object
                      properties:
                        code:
                          type: string
                          enum:
                            - control.FAULT_CONTROL_INTERRUPTED
                        message:
                          type: string
                          minLength: 1
                          maxLength: 1000
                      required:
                        - code
                        - message
                      additionalProperties: false
                  required:
                    - schemaVersion
                    - kind
                    - operationId
                    - sessionId
                    - leaseGeneration
                    - buildHash
                    - correlationId
                    - packageId
                    - faultId
                    - requestedActive
                    - virtualTimeUs
                    - evidenceBeforeSequence
                    - evidenceAfterSequence
                    - status
                    - previouslyActive
                    - active
                    - changed
                  additionalProperties: false
            idempotencyKey:
              type: string
              minLength: 8
              maxLength: 128
              pattern: ^[A-Za-z0-9._:-]+$
            requestHash:
              type: string
              pattern: ^sha256:[0-9a-f]{64}$
            cancelRequestedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            createdAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            updatedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            startedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
            finishedAtMs:
              type: integer
              minimum: -9007199254740991
              maximum: 9007199254740991
          required:
            - schemaVersion
            - operationId
            - organizationId
            - kind
            - state
            - idempotencyKey
            - requestHash
            - createdAtMs
            - updatedAtMs
          additionalProperties: false
      required:
        - run
        - operation
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        code:
          type: string
          pattern: ^(control|world)\.[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$
        message:
          type: string
          minLength: 1
        correlationId:
          type: string
          minLength: 1
        retryable:
          type: boolean
        retryAfterMs:
          type: integer
          exclusiveMinimum: 0
          maximum: 9007199254740991
        operationId:
          type: string
        source:
          type: string
          enum:
            - platform
            - simulated_provider
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              code:
                type: string
              message:
                type: string
            required:
              - path
              - code
              - message
            additionalProperties: false
        details:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        evidence:
          type: object
          properties:
            sessionId:
              type: string
            runId:
              type: string
            journalSeq:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            buildHash:
              type: string
          additionalProperties: false
      required:
        - code
        - message
        - correlationId
        - retryable
        - source
      additionalProperties: true
    CompleteHostedRunInteractionRequest___schema0:
      description: Any JSON-compatible value
    HostedRunOperationResponse___schema0:
      description: Any JSON-compatible value
  securitySchemes:
    controlCredential:
      type: http
      scheme: bearer
      description: Opaque control credential

````