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

# Get the verified compiled World for one immutable build



## OpenAPI

````yaml /api-reference/openapi.json get /v1/projects/{projectId}/builds/{buildHash}/world
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}/builds/{buildHash}/world:
    get:
      tags:
        - builds
      summary: Get the verified compiled World for one immutable build
      operationId: builds.getWorld
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            pattern: ^prj_[0-9a-z]{12,32}$
        - name: buildHash
          in: path
          required: true
          schema:
            type: string
            pattern: ^sha256:[0-9a-f]{64}$
      responses:
        '200':
          description: Compiled World
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompiledWorld'
        default:
          description: Canonical error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    CompiledWorld:
      type: object
      properties:
        schemaVersion:
          type: number
          enum:
            - 1
        engineVersion:
          type: string
          pattern: >-
            ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$
        world:
          type: object
          properties:
            id:
              type: string
              minLength: 1
              maxLength: 96
              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
            title:
              type: string
              minLength: 1
              maxLength: 200
            seed:
              type: string
              pattern: ^(0|[1-9]\d{0,19})$
          required:
            - id
            - seed
          additionalProperties: false
        tools:
          minItems: 1
          type: array
          items:
            type: object
            properties:
              schemaVersion:
                type: number
                enum:
                  - 1
              id:
                type: string
                minLength: 1
                maxLength: 96
                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              version:
                type: string
                pattern: >-
                  ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$
              engine:
                type: string
                minLength: 1
                maxLength: 128
              capabilities:
                type: array
                items:
                  type: string
                  enum:
                    - state.read
                    - state.write
                    - clock.read
                    - clock.schedule
                    - random.draw
                    - event.emit
              state:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    namespace:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    schema:
                      type: object
                      additionalProperties:
                        $ref: '#/components/schemas/CompiledWorld___schema0'
                    description:
                      type: string
                      minLength: 1
                      maxLength: 1000
                  required:
                    - namespace
                    - schema
                  additionalProperties: false
              operations:
                minItems: 1
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 160
                      pattern: >-
                        ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                    description:
                      type: string
                      minLength: 1
                      maxLength: 1000
                    inputSchema:
                      type: object
                      additionalProperties:
                        $ref: '#/components/schemas/CompiledWorld___schema0'
                    outputSchema:
                      type: object
                      additionalProperties:
                        $ref: '#/components/schemas/CompiledWorld___schema0'
                    declaredErrors:
                      default: []
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Z][A-Z0-9_]*$
                    idempotency:
                      type: string
                      enum:
                        - none
                        - optional
                        - required
                    fidelity:
                      type: string
                      enum:
                        - contract
                        - stateful
                        - behavioral
                        - validated
                    mcp:
                      type: object
                      properties:
                        name:
                          type: string
                          minLength: 1
                          maxLength: 128
                          pattern: ^[A-Za-z0-9_.-]+$
                        description:
                          type: string
                          minLength: 1
                          maxLength: 1000
                      required:
                        - name
                      additionalProperties: false
                  required:
                    - id
                    - inputSchema
                    - outputSchema
                    - declaredErrors
                    - idempotency
                    - fidelity
                  additionalProperties: false
              events:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 160
                      pattern: >-
                        ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                    payloadSchema:
                      type: object
                      additionalProperties:
                        $ref: '#/components/schemas/CompiledWorld___schema0'
                  required:
                    - id
                    - payloadSchema
                  additionalProperties: false
              faults:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    appliesTo:
                      minItems: 1
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 160
                        pattern: >-
                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                    timing:
                      type: string
                      enum:
                        - before
                        - after_commit
                    error:
                      type: object
                      properties:
                        code:
                          type: string
                          pattern: ^[A-Z][A-Z0-9_]*$
                        message:
                          type: string
                          minLength: 1
                          maxLength: 1000
                        retryable:
                          type: boolean
                      required:
                        - code
                        - message
                        - retryable
                      additionalProperties: false
                  required:
                    - id
                    - appliesTo
                    - timing
                    - error
                  additionalProperties: false
              subscriptions:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    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
                  required:
                    - id
                    - event
                  additionalProperties: false
              http:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      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]+)*)*$
                    method:
                      type: string
                      enum:
                        - DELETE
                        - GET
                        - PATCH
                        - POST
                        - PUT
                    path:
                      type: string
                      minLength: 1
                      maxLength: 512
                    auth:
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - bearer
                            schemes:
                              default:
                                - Bearer
                              minItems: 1
                              type: array
                              items:
                                type: string
                                minLength: 1
                                maxLength: 64
                                pattern: ^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
                          required:
                            - kind
                            - schemes
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - header
                            name:
                              type: string
                              minLength: 1
                              maxLength: 128
                              pattern: ^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
                          required:
                            - kind
                            - name
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - query
                            name:
                              type: string
                              minLength: 1
                              maxLength: 128
                              pattern: ^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
                          required:
                            - kind
                            - name
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - basic
                            token:
                              type: string
                              enum:
                                - username
                                - password
                            username:
                              type: string
                              minLength: 1
                              maxLength: 128
                          required:
                            - kind
                            - token
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - none
                          required:
                            - kind
                          additionalProperties: false
                    requestBody:
                      type: string
                      enum:
                        - none
                        - json
                        - form
                        - text
                    response:
                      type: object
                      properties:
                        successStatus:
                          type: integer
                          minimum: 200
                          maximum: 299
                        errors:
                          default: []
                          type: array
                          items:
                            type: object
                            properties:
                              code:
                                type: string
                                pattern: ^[A-Z][A-Z0-9_]*$
                              status:
                                type: integer
                                minimum: 400
                                maximum: 599
                            required:
                              - code
                              - status
                            additionalProperties: false
                      required:
                        - successStatus
                        - errors
                      additionalProperties: false
                  required:
                    - id
                    - operationId
                    - method
                    - path
                    - auth
                    - requestBody
                    - response
                  additionalProperties: false
              callbacks:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      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]+)*)*$
                    receiverId:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    method:
                      type: string
                      enum:
                        - POST
                        - PUT
                    path:
                      type: string
                      minLength: 1
                      maxLength: 512
                    idempotencyHeader:
                      type: string
                      minLength: 1
                      maxLength: 128
                      pattern: ^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
                    signature:
                      default:
                        kind: none
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - none
                          required:
                            - kind
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - hmac-sha256
                            header:
                              type: string
                              minLength: 1
                              maxLength: 128
                              pattern: ^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
                            prefix:
                              default: sha256=
                              type: string
                              maxLength: 32
                          required:
                            - kind
                            - header
                            - prefix
                          additionalProperties: false
                    retry:
                      default:
                        delaysUs: []
                      type: object
                      properties:
                        delaysUs:
                          default: []
                          maxItems: 9
                          type: array
                          items:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                      required:
                        - delaysUs
                      additionalProperties: false
                    timeoutMs:
                      default: 5000
                      type: integer
                      minimum: 100
                      maximum: 30000
                  required:
                    - id
                    - eventId
                    - receiverId
                    - method
                    - path
                    - idempotencyHeader
                    - signature
                    - retry
                    - timeoutMs
                  additionalProperties: false
              compatibility:
                default: []
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    mode:
                      type: string
                      enum:
                        - translated
                    protocol:
                      type: string
                      enum:
                        - http
                    service:
                      type: string
                      minLength: 1
                      maxLength: 256
                    apiVersion:
                      type: string
                      minLength: 1
                      maxLength: 128
                    client:
                      type: object
                      properties:
                        ecosystem:
                          type: string
                          enum:
                            - npm
                            - pypi
                            - other
                        name:
                          type: string
                          minLength: 1
                          maxLength: 256
                        version:
                          type: string
                          minLength: 1
                          maxLength: 128
                      required:
                        - ecosystem
                        - name
                        - version
                      additionalProperties: false
                    configuration:
                      type: object
                      properties:
                        endpoint:
                          type: string
                          minLength: 1
                          maxLength: 128
                        credential:
                          type: string
                          minLength: 1
                          maxLength: 128
                      required:
                        - endpoint
                        - credential
                      additionalProperties: false
                    routes:
                      minItems: 1
                      type: array
                      items:
                        type: object
                        properties:
                          routeId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          clientMethod:
                            type: string
                            minLength: 1
                            maxLength: 256
                        required:
                          - routeId
                          - clientMethod
                        additionalProperties: false
                    flows:
                      minItems: 1
                      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: 1000
                          routeIds:
                            minItems: 1
                            type: array
                            items:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        required:
                          - id
                          - description
                          - routeIds
                        additionalProperties: false
                    limitations:
                      minItems: 1
                      maxItems: 100
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 1000
                  required:
                    - id
                    - mode
                    - protocol
                    - service
                    - client
                    - configuration
                    - routes
                    - flows
                    - limitations
                  additionalProperties: false
              connections:
                maxItems: 32
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                      maxLength: 96
                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                    title:
                      type: string
                      minLength: 1
                      maxLength: 200
                    protocol:
                      type: string
                      enum:
                        - http
                        - mcp
                        - cli
                    environment:
                      type: object
                      additionalProperties:
                        type: string
                        enum:
                          - FIREDRILL_HTTP_URL
                          - FIREDRILL_HTTP_TOKEN
                          - FIREDRILL_MCP_URL
                          - FIREDRILL_MCP_TOKEN
                          - FIREDRILL_CLI_URL
                          - FIREDRILL_CLI_TOKEN
                    instructions:
                      type: string
                      minLength: 1
                      maxLength: 2000
                  required:
                    - id
                    - title
                    - protocol
                    - environment
                  additionalProperties: false
            required:
              - schemaVersion
              - id
              - version
              - engine
              - capabilities
              - state
              - operations
              - events
              - faults
              - subscriptions
              - http
              - callbacks
              - compatibility
            additionalProperties: false
        baseline:
          type: object
          properties:
            title:
              type: string
              minLength: 1
              maxLength: 200
            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/CompiledWorld___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/CompiledWorld___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/CompiledWorld___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: 4000
              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/CompiledWorld___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/CompiledWorld___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
                  scope:
                    oneOf:
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - baseline
                        required:
                          - kind
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - scenario
                          scenarioId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        required:
                          - kind
                          - scenarioId
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - drill
                          drillId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        required:
                          - kind
                          - drillId
                        additionalProperties: false
                      - type: object
                        properties:
                          kind:
                            type: string
                            enum:
                              - run
                          drillId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        required:
                          - kind
                          - drillId
                        additionalProperties: false
                required:
                  - id
                  - operation
                  - outcome
                  - scope
                additionalProperties: false
          required:
            - virtualTimeUs
            - actors
            - state
            - faults
            - initialEvents
          additionalProperties: false
        scenarios:
          default: []
          type: array
          items:
            type: object
            properties:
              schemaVersion:
                type: number
                enum:
                  - 1
              id:
                type: string
                minLength: 1
                maxLength: 96
                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              title:
                type: string
                minLength: 1
                maxLength: 200
              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/CompiledWorld___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/CompiledWorld___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/CompiledWorld___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: 4000
                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/CompiledWorld___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/CompiledWorld___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
                    scope:
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - baseline
                          required:
                            - kind
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - scenario
                            scenarioId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - scenarioId
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - drill
                            drillId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - drillId
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - run
                            drillId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - drillId
                          additionalProperties: false
                  required:
                    - id
                    - operation
                    - outcome
                    - scope
                  additionalProperties: false
            required:
              - schemaVersion
              - id
              - virtualTimeUs
              - actors
              - state
              - faults
              - initialEvents
            additionalProperties: false
        drills:
          default: []
          type: array
          items:
            type: object
            properties:
              schemaVersion:
                type: number
                enum:
                  - 1
              id:
                type: string
                minLength: 1
                maxLength: 96
                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              title:
                type: string
                minLength: 1
                maxLength: 200
              tags:
                default: []
                type: array
                items:
                  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]+)*$
              scenarioId:
                type: string
                minLength: 1
                maxLength: 96
                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              inlineScenario:
                type: object
                properties:
                  title:
                    type: string
                    minLength: 1
                    maxLength: 200
                  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/CompiledWorld___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/CompiledWorld___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/CompiledWorld___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: 4000
                    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/CompiledWorld___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/CompiledWorld___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
                        scope:
                          oneOf:
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - baseline
                              required:
                                - kind
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - scenario
                                scenarioId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              required:
                                - kind
                                - scenarioId
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - drill
                                drillId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              required:
                                - kind
                                - drillId
                              additionalProperties: false
                            - type: object
                              properties:
                                kind:
                                  type: string
                                  enum:
                                    - run
                                drillId:
                                  type: string
                                  minLength: 1
                                  maxLength: 96
                                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              required:
                                - kind
                                - drillId
                              additionalProperties: false
                      required:
                        - id
                        - operation
                        - outcome
                        - scope
                      additionalProperties: false
                required:
                  - virtualTimeUs
                  - actors
                  - state
                  - faults
                  - initialEvents
                additionalProperties: false
              toolOverrides:
                maxItems: 4000
                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/CompiledWorld___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/CompiledWorld___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
                    scope:
                      oneOf:
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - baseline
                          required:
                            - kind
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - scenario
                            scenarioId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - scenarioId
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - drill
                            drillId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - drillId
                          additionalProperties: false
                        - type: object
                          properties:
                            kind:
                              type: string
                              enum:
                                - run
                            drillId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          required:
                            - kind
                            - drillId
                          additionalProperties: false
                  required:
                    - id
                    - operation
                    - outcome
                    - scope
                  additionalProperties: false
              timeline:
                type: object
                properties:
                  horizonUs:
                    default: 0
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  maxToolCalls:
                    default: 1000
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 1000000
                  maxEvents:
                    default: 10000
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 1000000
                  stopOnInvariantFailure:
                    default: true
                    type: boolean
                  stopOnTargetFailure:
                    default: true
                    type: boolean
                  interactions:
                    default: []
                    maxItems: 10000
                    type: array
                    items:
                      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/CompiledWorld___schema0'
                          required:
                            - instruction
                          additionalProperties: false
                      required:
                        - id
                        - afterStartUs
                        - actorId
                        - task
                      additionalProperties: false
                  workloads:
                    default: []
                    maxItems: 1000
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        actorIds:
                          minItems: 1
                          maxItems: 10000
                          type: array
                          items:
                            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/CompiledWorld___schema0'
                          required:
                            - instruction
                          additionalProperties: false
                        startAfterUs:
                          default: 0
                          type: integer
                          minimum: -9007199254740991
                          maximum: 9007199254740991
                        everyUs:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        occurrences:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 10000
                      required:
                        - id
                        - actorIds
                        - task
                        - startAfterUs
                        - everyUs
                        - occurrences
                      additionalProperties: false
                  invariants:
                    default: []
                    type: array
                    items:
                      oneOf:
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - state.value
                            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:
                              minItems: 1
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                    minLength: 1
                                  - type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                            comparison:
                              oneOf:
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                    value:
                                      $ref: >-
                                        #/components/schemas/CompiledWorld___schema0
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - not_equals
                                    value:
                                      $ref: >-
                                        #/components/schemas/CompiledWorld___schema0
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - greater_than_or_equal
                                    value:
                                      type: number
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - less_than_or_equal
                                    value:
                                      type: number
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - one_of
                                    value:
                                      minItems: 1
                                      type: array
                                      items:
                                        $ref: >-
                                          #/components/schemas/CompiledWorld___schema0
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - packageId
                            - namespace
                            - rowId
                            - path
                            - comparison
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - state.count
                            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]+)*$
                            where:
                              type: object
                              additionalProperties:
                                $ref: '#/components/schemas/CompiledWorld___schema0'
                            comparison:
                              oneOf:
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - not_equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - greater_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - less_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - packageId
                            - namespace
                            - comparison
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - operation.count
                            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
                            actorId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            idempotency:
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - not_requested
                                  - recorded
                                  - replayed
                                  - not_recorded
                            outcomes:
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - ok
                                  - denied
                                  - tool_error
                                  - unsupported
                                  - invalid
                            comparison:
                              oneOf:
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - not_equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - greater_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - less_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - operation
                            - comparison
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - operation.order
                            sequence:
                              minItems: 2
                              type: array
                              items:
                                type: object
                                properties:
                                  anyOf:
                                    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
                                  actorId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  idempotency:
                                    minItems: 1
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - not_requested
                                        - recorded
                                        - replayed
                                        - not_recorded
                                  outcomes:
                                    default:
                                      - ok
                                    minItems: 1
                                    type: array
                                    items:
                                      type: string
                                      enum:
                                        - ok
                                        - denied
                                        - tool_error
                                        - unsupported
                                        - invalid
                                required:
                                  - anyOf
                                  - outcomes
                                additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - sequence
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - operation.arguments
                            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
                            actorId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            idempotency:
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - not_requested
                                  - recorded
                                  - replayed
                                  - not_recorded
                            outcomes:
                              default:
                                - ok
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - ok
                                  - denied
                                  - tool_error
                                  - unsupported
                                  - invalid
                            occurrence:
                              default: 1
                              type: integer
                              minimum: 0
                              exclusiveMinimum: true
                              maximum: 9007199254740991
                            contains:
                              type: object
                              additionalProperties:
                                $ref: '#/components/schemas/CompiledWorld___schema0'
                          required:
                            - id
                            - gate
                            - kind
                            - operation
                            - outcomes
                            - occurrence
                            - contains
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - operation.denied
                            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
                            actorId:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            idempotency:
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - not_requested
                                  - recorded
                                  - replayed
                                  - not_recorded
                            outcomes:
                              minItems: 1
                              type: array
                              items:
                                type: string
                                enum:
                                  - denied
                                  - tool_error
                            errorCode:
                              type: string
                              pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                            attemptRequired:
                              default: true
                              type: boolean
                          required:
                            - id
                            - gate
                            - kind
                            - operation
                            - attemptRequired
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - event.count
                            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:
                              default: emitted
                              type: string
                              enum:
                                - emitted
                                - scheduled
                                - handled
                                - failed
                            comparison:
                              oneOf:
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - not_equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - greater_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - less_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - event
                            - phase
                            - comparison
                          additionalProperties: false
                        - type: object
                          properties:
                            id:
                              type: string
                              minLength: 1
                              maxLength: 96
                              pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                            gate:
                              default: true
                              type: boolean
                            kind:
                              type: string
                              enum:
                                - callback.count
                            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:
                              default: delivered
                              type: string
                              enum:
                                - queued
                                - attempt_started
                                - delivered
                                - retry_scheduled
                                - failed
                                - recovered
                            comparison:
                              oneOf:
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - not_equals
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - greater_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                                - type: object
                                  properties:
                                    operator:
                                      type: string
                                      enum:
                                        - less_than_or_equal
                                    value:
                                      type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                                  required:
                                    - operator
                                    - value
                                  additionalProperties: false
                          required:
                            - id
                            - gate
                            - kind
                            - callback
                            - phase
                            - comparison
                          additionalProperties: false
                required:
                  - horizonUs
                  - maxToolCalls
                  - maxEvents
                  - stopOnInvariantFailure
                  - stopOnTargetFailure
                  - interactions
                  - workloads
                  - invariants
                additionalProperties: false
              trials:
                default:
                  count: 1
                  classification: contract
                type: object
                properties:
                  count:
                    default: 1
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 10000
                  classification:
                    default: contract
                    type: string
                    enum:
                      - contract
                      - safety
                      - quality
                required:
                  - count
                  - classification
                additionalProperties: false
              assertions:
                minItems: 1
                type: array
                items:
                  oneOf:
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - state.value
                        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:
                          minItems: 1
                          type: array
                          items:
                            anyOf:
                              - type: string
                                minLength: 1
                              - type: integer
                                minimum: 0
                                maximum: 9007199254740991
                        comparison:
                          oneOf:
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - equals
                                value:
                                  $ref: '#/components/schemas/CompiledWorld___schema0'
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - not_equals
                                value:
                                  $ref: '#/components/schemas/CompiledWorld___schema0'
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - greater_than_or_equal
                                value:
                                  type: number
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - less_than_or_equal
                                value:
                                  type: number
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - one_of
                                value:
                                  minItems: 1
                                  type: array
                                  items:
                                    $ref: >-
                                      #/components/schemas/CompiledWorld___schema0
                              required:
                                - operator
                                - value
                              additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - packageId
                        - namespace
                        - rowId
                        - path
                        - comparison
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - state.count
                        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]+)*$
                        where:
                          type: object
                          additionalProperties:
                            $ref: '#/components/schemas/CompiledWorld___schema0'
                        comparison:
                          oneOf:
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - not_equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - greater_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - less_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - packageId
                        - namespace
                        - comparison
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - operation.count
                        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
                        actorId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        idempotency:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - not_requested
                              - recorded
                              - replayed
                              - not_recorded
                        outcomes:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - ok
                              - denied
                              - tool_error
                              - unsupported
                              - invalid
                        comparison:
                          oneOf:
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - not_equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - greater_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - less_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - operation
                        - comparison
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - operation.order
                        sequence:
                          minItems: 2
                          type: array
                          items:
                            type: object
                            properties:
                              anyOf:
                                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
                              actorId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              idempotency:
                                minItems: 1
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - not_requested
                                    - recorded
                                    - replayed
                                    - not_recorded
                              outcomes:
                                default:
                                  - ok
                                minItems: 1
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - ok
                                    - denied
                                    - tool_error
                                    - unsupported
                                    - invalid
                            required:
                              - anyOf
                              - outcomes
                            additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - sequence
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - operation.arguments
                        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
                        actorId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        idempotency:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - not_requested
                              - recorded
                              - replayed
                              - not_recorded
                        outcomes:
                          default:
                            - ok
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - ok
                              - denied
                              - tool_error
                              - unsupported
                              - invalid
                        occurrence:
                          default: 1
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                        contains:
                          type: object
                          additionalProperties:
                            $ref: '#/components/schemas/CompiledWorld___schema0'
                      required:
                        - id
                        - gate
                        - kind
                        - operation
                        - outcomes
                        - occurrence
                        - contains
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - operation.denied
                        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
                        actorId:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        idempotency:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - not_requested
                              - recorded
                              - replayed
                              - not_recorded
                        outcomes:
                          minItems: 1
                          type: array
                          items:
                            type: string
                            enum:
                              - denied
                              - tool_error
                        errorCode:
                          type: string
                          pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                        attemptRequired:
                          default: true
                          type: boolean
                      required:
                        - id
                        - gate
                        - kind
                        - operation
                        - attemptRequired
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - event.count
                        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:
                          default: emitted
                          type: string
                          enum:
                            - emitted
                            - scheduled
                            - handled
                            - failed
                        comparison:
                          oneOf:
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - not_equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - greater_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - less_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - event
                        - phase
                        - comparison
                      additionalProperties: false
                    - type: object
                      properties:
                        id:
                          type: string
                          minLength: 1
                          maxLength: 96
                          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                        gate:
                          default: true
                          type: boolean
                        kind:
                          type: string
                          enum:
                            - callback.count
                        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:
                          default: delivered
                          type: string
                          enum:
                            - queued
                            - attempt_started
                            - delivered
                            - retry_scheduled
                            - failed
                            - recovered
                        comparison:
                          oneOf:
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - not_equals
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - greater_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                            - type: object
                              properties:
                                operator:
                                  type: string
                                  enum:
                                    - less_than_or_equal
                                value:
                                  type: integer
                                  minimum: 0
                                  maximum: 9007199254740991
                              required:
                                - operator
                                - value
                              additionalProperties: false
                      required:
                        - id
                        - gate
                        - kind
                        - callback
                        - phase
                        - comparison
                      additionalProperties: false
            required:
              - schemaVersion
              - id
              - tags
              - targetId
              - timeline
              - trials
              - assertions
            additionalProperties: false
        suites:
          default: []
          type: array
          items:
            type: object
            properties:
              schemaVersion:
                type: number
                enum:
                  - 1
              id:
                type: string
                minLength: 1
                maxLength: 96
                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              title:
                type: string
                minLength: 1
                maxLength: 200
              drills:
                default: []
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 96
                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              tags:
                default: []
                type: array
                items:
                  type: string
                  minLength: 1
                  maxLength: 96
                  pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
              trials:
                type: integer
                minimum: 0
                exclusiveMinimum: true
                maximum: 10000
              concurrency:
                default: 1
                type: integer
                minimum: 0
                exclusiveMinimum: true
                maximum: 64
              retries:
                default: 0
                type: integer
                minimum: 0
                maximum: 10
            required:
              - schemaVersion
              - id
              - drills
              - tags
              - concurrency
              - retries
            additionalProperties: false
        targets:
          default: []
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  kind:
                    type: string
                    enum:
                      - module
                  bindings:
                    minItems: 1
                    maxItems: 4
                    type: array
                    items:
                      type: string
                      enum:
                        - direct
                        - http
                        - mcp
                        - cli
                  bindingEnvironment:
                    type: object
                    additionalProperties:
                      type: string
                      enum:
                        - FIREDRILL_HTTP_URL
                        - FIREDRILL_HTTP_TOKEN
                        - FIREDRILL_MCP_URL
                        - FIREDRILL_MCP_TOKEN
                        - FIREDRILL_CLI_URL
                        - FIREDRILL_CLI_TOKEN
                  module:
                    type: string
                    minLength: 1
                    maxLength: 1024
                  export:
                    default: default
                    type: string
                    minLength: 1
                    maxLength: 128
                  timeoutMs:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 3600000
                required:
                  - id
                  - kind
                  - bindings
                  - module
                  - export
                  - timeoutMs
                additionalProperties: false
              - type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  kind:
                    type: string
                    enum:
                      - command
                  bindings:
                    minItems: 1
                    maxItems: 3
                    type: array
                    items:
                      type: string
                      enum:
                        - http
                        - mcp
                        - cli
                  bindingEnvironment:
                    type: object
                    additionalProperties:
                      type: string
                      enum:
                        - FIREDRILL_HTTP_URL
                        - FIREDRILL_HTTP_TOKEN
                        - FIREDRILL_MCP_URL
                        - FIREDRILL_MCP_TOKEN
                        - FIREDRILL_CLI_URL
                        - FIREDRILL_CLI_TOKEN
                  executable:
                    type: string
                    minLength: 1
                    maxLength: 1024
                  arguments:
                    default: []
                    type: array
                    items:
                      type: string
                      maxLength: 4096
                  workingDirectory:
                    type: string
                    minLength: 1
                    maxLength: 1024
                  environmentFromHost:
                    default: {}
                    type: object
                    additionalProperties:
                      type: string
                      pattern: ^[A-Za-z_][A-Za-z0-9_]*$
                  timeoutMs:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 3600000
                required:
                  - id
                  - kind
                  - bindings
                  - executable
                  - arguments
                  - environmentFromHost
                  - timeoutMs
                additionalProperties: false
              - type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  kind:
                    type: string
                    enum:
                      - http
                  bindings:
                    minItems: 1
                    maxItems: 3
                    type: array
                    items:
                      type: string
                      enum:
                        - http
                        - mcp
                        - cli
                  bindingEnvironment:
                    type: object
                    additionalProperties:
                      type: string
                      enum:
                        - FIREDRILL_HTTP_URL
                        - FIREDRILL_HTTP_TOKEN
                        - FIREDRILL_MCP_URL
                        - FIREDRILL_MCP_TOKEN
                        - FIREDRILL_CLI_URL
                        - FIREDRILL_CLI_TOKEN
                  url:
                    type: string
                    format: uri
                  method:
                    type: string
                    enum:
                      - POST
                      - PUT
                  headersFromEnvironment:
                    default: {}
                    type: object
                    additionalProperties:
                      type: string
                      pattern: ^[A-Za-z_][A-Za-z0-9_]*$
                  timeoutMs:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 3600000
                required:
                  - id
                  - kind
                  - bindings
                  - url
                  - method
                  - headersFromEnvironment
                  - timeoutMs
                additionalProperties: false
              - type: object
                properties:
                  id:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  kind:
                    type: string
                    enum:
                      - external
                  bindings:
                    minItems: 1
                    maxItems: 4
                    type: array
                    items:
                      type: string
                      enum:
                        - direct
                        - http
                        - mcp
                        - cli
                  bindingEnvironment:
                    type: object
                    additionalProperties:
                      type: string
                      enum:
                        - FIREDRILL_HTTP_URL
                        - FIREDRILL_HTTP_TOKEN
                        - FIREDRILL_MCP_URL
                        - FIREDRILL_MCP_TOKEN
                        - FIREDRILL_CLI_URL
                        - FIREDRILL_CLI_TOKEN
                  timeoutMs:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 86400000
                required:
                  - id
                  - kind
                  - bindings
                  - timeoutMs
                additionalProperties: false
      required:
        - schemaVersion
        - engineVersion
        - world
        - tools
        - baseline
        - scenarios
        - drills
        - suites
        - targets
      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
    CompiledWorld___schema0:
      description: Any JSON-compatible value
  securitySchemes:
    controlCredential:
      type: http
      scheme: bearer
      description: Opaque control credential

````