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

# Read exact Tool-instance activity, including retained history after compute release



## OpenAPI

````yaml /api-reference/openapi.json get /v1/projects/{projectId}/sessions/{sessionId}/tool-instances/{instanceId}/activity
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: []
paths:
  /v1/projects/{projectId}/sessions/{sessionId}/tool-instances/{instanceId}/activity:
    get:
      summary: >-
        Read exact Tool-instance activity, including retained history after
        compute release
      operationId: sessions.toolInstanceActivity
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            pattern: ^prj_[0-9a-z]{12,32}$
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
            pattern: ^ses_[0-9a-z]{12,32}$
        - name: instanceId
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
        - name: packageId
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 96
            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
        - name: fromSequence
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 9007199254740991
            default: 1
        - name: limit
          in: query
          required: false
          schema:
            default: 50
            type: integer
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Tool-instance activity page
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolInstanceActivityPage'
        default:
          description: Canonical error envelope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ToolInstanceActivityPage:
      type: object
      properties:
        schemaVersion:
          type: number
          enum:
            - 1
        organizationId:
          type: string
          pattern: ^org_[0-9a-z]{12,32}$
        projectId:
          type: string
          pattern: ^prj_[0-9a-z]{12,32}$
        environmentId:
          type: string
          pattern: ^env_[0-9a-z]{12,32}$
        sessionId:
          type: string
          pattern: ^ses_[0-9a-z]{12,32}$
        buildHash:
          type: string
          pattern: ^sha256:[0-9a-f]{64}$
        packageId:
          type: string
          minLength: 1
          maxLength: 96
          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
        instanceId:
          type: string
          minLength: 1
          maxLength: 96
          pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
        leaseGeneration:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 9007199254740991
        source:
          type: string
          enum:
            - live
            - retained
            - unavailable
        items:
          maxItems: 100
          type: array
          items:
            oneOf:
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - operation
                  invocation:
                    type: object
                    properties:
                      schemaVersion:
                        type: number
                        enum:
                          - 1
                      callId:
                        type: string
                        pattern: ^call_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                      correlationId:
                        type: string
                        pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                      operation:
                        type: object
                        properties:
                          packageId:
                            type: string
                            minLength: 1
                            maxLength: 96
                            pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                          instanceId:
                            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
                      actorBindingId:
                        type: string
                        pattern: ^actor_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                      arguments:
                        type: object
                        additionalProperties:
                          $ref: >-
                            #/components/schemas/ToolInstanceActivityPage___schema0
                      idempotencyKey:
                        type: string
                        minLength: 1
                        maxLength: 255
                    required:
                      - schemaVersion
                      - callId
                      - correlationId
                      - operation
                      - actorBindingId
                      - arguments
                    additionalProperties: false
                  actorId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  actorInstanceId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  outcome:
                    type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - ok
                          - denied
                          - tool_error
                          - unsupported
                          - invalid
                      value:
                        allOf:
                          - $ref: >-
                              #/components/schemas/ToolInstanceActivityPage___schema0
                      error:
                        type: object
                        properties:
                          schemaVersion:
                            type: number
                            enum:
                              - 1
                          code:
                            type: string
                            pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                          source:
                            type: string
                            enum:
                              - framework
                              - world
                              - tool
                              - target
                              - assertion
                              - reporter
                              - control
                          message:
                            type: string
                            minLength: 1
                            maxLength: 4000
                          retryable:
                            type: boolean
                          correlationId:
                            type: string
                            pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                          issues:
                            default: []
                            type: array
                            items:
                              type: object
                              properties:
                                code:
                                  type: string
                                  minLength: 1
                                  maxLength: 128
                                message:
                                  type: string
                                  minLength: 1
                                  maxLength: 2000
                                path:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: integer
                                        minimum: 0
                                        maximum: 9007199254740991
                                suggestion:
                                  type: string
                                  minLength: 1
                                  maxLength: 4000
                              required:
                                - code
                                - message
                              additionalProperties: {}
                          details:
                            type: object
                            additionalProperties:
                              $ref: >-
                                #/components/schemas/ToolInstanceActivityPage___schema0
                          evidence:
                            type: object
                            properties:
                              runId:
                                type: string
                                pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                              sequence:
                                type: integer
                                minimum: 0
                                exclusiveMinimum: true
                                maximum: 9007199254740991
                            additionalProperties: {}
                        required:
                          - schemaVersion
                          - code
                          - source
                          - message
                          - retryable
                          - issues
                        additionalProperties: {}
                    required:
                      - status
                    additionalProperties: false
                  idempotency:
                    type: string
                    enum:
                      - not_requested
                      - recorded
                      - replayed
                      - not_recorded
                  replayedFromSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  toolOverride:
                    type: object
                    properties:
                      id:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      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
                      outcome:
                        type: string
                        enum:
                          - return
                          - error
                          - original
                      matchIndex:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                        maximum: 9007199254740991
                    required:
                      - id
                      - scope
                      - outcome
                      - matchIndex
                    additionalProperties: false
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - invocation
                  - outcome
                  - idempotency
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - state_change
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    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
                  change:
                    type: string
                    enum:
                      - insert
                      - update
                      - delete
                  before:
                    nullable: true
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/ToolInstanceActivityPage___schema0'
                  after:
                    nullable: true
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/ToolInstanceActivityPage___schema0'
                  deltaHash:
                    type: string
                    pattern: ^sha256:[0-9a-f]{64}$
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - packageId
                  - namespace
                  - rowId
                  - change
                  - before
                  - after
                  - deltaHash
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - event
                  event:
                    type: object
                    properties:
                      packageId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      instanceId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      eventId:
                        type: string
                        minLength: 1
                        maxLength: 160
                        pattern: >-
                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                    required:
                      - packageId
                      - eventId
                    additionalProperties: false
                  phase:
                    type: string
                    enum:
                      - emitted
                      - scheduled
                      - handled
                      - failed
                  payload:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/ToolInstanceActivityPage___schema0'
                  scheduledEventId:
                    type: string
                    pattern: ^pending_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  scheduledForUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  handlerPackageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  handlerInstanceId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  subscriptionId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  error:
                    type: object
                    properties:
                      schemaVersion:
                        type: number
                        enum:
                          - 1
                      code:
                        type: string
                        pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
                      source:
                        type: string
                        enum:
                          - framework
                          - world
                          - tool
                          - target
                          - assertion
                          - reporter
                          - control
                      message:
                        type: string
                        minLength: 1
                        maxLength: 4000
                      retryable:
                        type: boolean
                      correlationId:
                        type: string
                        pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                      issues:
                        default: []
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              minLength: 1
                              maxLength: 128
                            message:
                              type: string
                              minLength: 1
                              maxLength: 2000
                            path:
                              type: array
                              items:
                                anyOf:
                                  - type: string
                                  - type: integer
                                    minimum: 0
                                    maximum: 9007199254740991
                            suggestion:
                              type: string
                              minLength: 1
                              maxLength: 4000
                          required:
                            - code
                            - message
                          additionalProperties: {}
                      details:
                        type: object
                        additionalProperties:
                          $ref: >-
                            #/components/schemas/ToolInstanceActivityPage___schema0
                      evidence:
                        type: object
                        properties:
                          runId:
                            type: string
                            pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                          sequence:
                            type: integer
                            minimum: 0
                            exclusiveMinimum: true
                            maximum: 9007199254740991
                        additionalProperties: {}
                    required:
                      - schemaVersion
                      - code
                      - source
                      - message
                      - retryable
                      - issues
                    additionalProperties: {}
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - event
                  - phase
                  - payload
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - callback
                  callback:
                    type: object
                    properties:
                      packageId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      instanceId:
                        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
                  deliveryId:
                    type: string
                    pattern: ^delivery_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  receiverId:
                    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]+)*$
                      instanceId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      eventId:
                        type: string
                        minLength: 1
                        maxLength: 160
                        pattern: >-
                          ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                    required:
                      - packageId
                      - eventId
                    additionalProperties: false
                  phase:
                    type: string
                    enum:
                      - queued
                      - attempt_started
                      - delivered
                      - retry_scheduled
                      - failed
                      - recovered
                  attempt:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 10
                  idempotencyKey:
                    type: string
                    minLength: 1
                    maxLength: 128
                  scheduledForUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  request:
                    type: object
                    properties:
                      method:
                        type: string
                        enum:
                          - POST
                          - PUT
                      path:
                        type: string
                        minLength: 1
                        maxLength: 512
                      bodyHash:
                        type: string
                        pattern: ^sha256:[0-9a-f]{64}$
                      bodyBytes:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      idempotencyKey:
                        type: string
                        minLength: 1
                        maxLength: 128
                      signature:
                        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
                            required:
                              - kind
                              - header
                            additionalProperties: false
                    required:
                      - method
                      - path
                      - bodyHash
                      - bodyBytes
                      - signature
                    additionalProperties: false
                  response:
                    type: object
                    properties:
                      status:
                        type: integer
                        minimum: 100
                        maximum: 599
                      body:
                        type: string
                        maxLength: 65536
                      bodyHash:
                        type: string
                        pattern: ^sha256:[0-9a-f]{64}$
                      bodyBytes:
                        type: integer
                        minimum: 0
                        maximum: 65536
                    required:
                      - status
                      - body
                      - bodyHash
                      - bodyBytes
                    additionalProperties: false
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        pattern: ^framework\.[A-Z][A-Z0-9_]*$
                      message:
                        type: string
                        minLength: 1
                        maxLength: 1000
                      retryable:
                        type: boolean
                    required:
                      - code
                      - message
                      - retryable
                    additionalProperties: false
                  durationMs:
                    type: number
                    minimum: 0
                    maximum: 60000
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - callback
                  - deliveryId
                  - receiverId
                  - event
                  - phase
                  - idempotencyKey
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - fault
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    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]+)*$
                  operation:
                    type: object
                    properties:
                      packageId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      instanceId:
                        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
                  timing:
                    type: string
                    enum:
                      - before
                      - after_commit
                  errorCode:
                    type: string
                    pattern: ^[A-Z][A-Z0-9_]*$
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - packageId
                  - faultId
                  - operation
                  - timing
                  - errorCode
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - fault_control
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    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]+)*$
                  previouslyActive:
                    type: boolean
                  active:
                    type: boolean
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - packageId
                  - faultId
                  - previouslyActive
                  - active
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - random
                  packageId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  instanceId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  draw:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  value:
                    type: string
                    pattern: ^(0|[1-9]\d{0,19})$
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - packageId
                  - draw
                  - value
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - clock
                  fromUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  toUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  reason:
                    type: string
                    enum:
                      - scenario
                      - explicit
                      - scheduled_work
                      - reset
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - fromUs
                  - toUs
                  - reason
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - lifecycle
                  action:
                    type: string
                    enum:
                      - world_created
                      - snapshot_created
                      - world_reset
                      - world_forked
                      - world_closed
                  worldInstanceId:
                    type: string
                    pattern: ^world_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  snapshotId:
                    type: string
                    pattern: ^snap_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  actorBindingId:
                    type: string
                    pattern: ^actor_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  details:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/ToolInstanceActivityPage___schema0'
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - action
                  - worldInstanceId
                additionalProperties: {}
              - type: object
                properties:
                  schemaVersion:
                    type: number
                    enum:
                      - 1
                  sequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  transactionId:
                    type: string
                    pattern: ^txn_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  transactionIndex:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  transactionSize:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  virtualTimeUs:
                    type: integer
                    minimum: -9007199254740991
                    maximum: 9007199254740991
                  causeSequence:
                    type: integer
                    minimum: 0
                    exclusiveMinimum: true
                    maximum: 9007199254740991
                  correlationId:
                    type: string
                    pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
                  kind:
                    type: string
                    enum:
                      - verification
                  checkpointId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  checkpointKind:
                    type: string
                    enum:
                      - after_interaction
                      - after_event
                      - horizon
                      - final
                  interactionId:
                    type: string
                    minLength: 1
                    maxLength: 96
                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                  result:
                    type: object
                    properties:
                      schemaVersion:
                        type: number
                        enum:
                          - 1
                      assertionId:
                        type: string
                        minLength: 1
                        maxLength: 96
                        pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                      kind:
                        type: string
                        enum:
                          - state.value
                          - state.count
                          - operation.count
                          - operation.order
                          - operation.arguments
                          - operation.denied
                          - event.count
                          - callback.count
                      status:
                        type: string
                        enum:
                          - passed
                          - failed
                          - inconclusive
                          - invalid
                      gate:
                        type: boolean
                      message:
                        type: string
                        minLength: 1
                        maxLength: 4000
                      expected:
                        $ref: >-
                          #/components/schemas/ToolInstanceActivityPage___schema0
                      actual:
                        $ref: >-
                          #/components/schemas/ToolInstanceActivityPage___schema0
                      location:
                        oneOf:
                          - type: object
                            properties:
                              subject:
                                type: string
                                enum:
                                  - state
                              packageId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              instanceId:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              namespace:
                                type: string
                                minLength: 1
                                maxLength: 96
                                pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                              rowId:
                                type: string
                                minLength: 1
                                maxLength: 512
                              path:
                                default: []
                                type: array
                                items:
                                  anyOf:
                                    - type: string
                                      minLength: 1
                                    - type: integer
                                      minimum: 0
                                      maximum: 9007199254740991
                            required:
                              - subject
                              - packageId
                              - namespace
                              - path
                            additionalProperties: false
                          - type: object
                            properties:
                              subject:
                                type: string
                                enum:
                                  - operation
                              operations:
                                minItems: 1
                                type: array
                                items:
                                  type: object
                                  properties:
                                    packageId:
                                      type: string
                                      minLength: 1
                                      maxLength: 96
                                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    instanceId:
                                      type: string
                                      minLength: 1
                                      maxLength: 96
                                      pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                    operationId:
                                      type: string
                                      minLength: 1
                                      maxLength: 160
                                      pattern: >-
                                        ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                  required:
                                    - packageId
                                    - operationId
                                  additionalProperties: false
                              occurrence:
                                type: integer
                                minimum: 0
                                exclusiveMinimum: true
                                maximum: 9007199254740991
                            required:
                              - subject
                              - operations
                            additionalProperties: false
                          - type: object
                            properties:
                              subject:
                                type: string
                                enum:
                                  - event
                              event:
                                type: object
                                properties:
                                  packageId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  instanceId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  eventId:
                                    type: string
                                    minLength: 1
                                    maxLength: 160
                                    pattern: >-
                                      ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*(?:\.[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*)*$
                                required:
                                  - packageId
                                  - eventId
                                additionalProperties: false
                              phase:
                                type: string
                                enum:
                                  - emitted
                                  - scheduled
                                  - handled
                                  - failed
                            required:
                              - subject
                              - event
                              - phase
                            additionalProperties: false
                          - type: object
                            properties:
                              subject:
                                type: string
                                enum:
                                  - callback
                              callback:
                                type: object
                                properties:
                                  packageId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  instanceId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                  callbackId:
                                    type: string
                                    minLength: 1
                                    maxLength: 96
                                    pattern: ^[a-z][a-z0-9]*(?:[-_][a-z0-9]+)*$
                                required:
                                  - packageId
                                  - callbackId
                                additionalProperties: false
                              phase:
                                type: string
                                enum:
                                  - queued
                                  - attempt_started
                                  - delivered
                                  - retry_scheduled
                                  - failed
                                  - recovered
                            required:
                              - subject
                              - callback
                              - phase
                            additionalProperties: false
                      diff:
                        type: object
                        properties:
                          operator:
                            type: string
                            enum:
                              - equals
                              - not_equals
                              - greater_than_or_equal
                              - less_than_or_equal
                              - one_of
                              - contains
                              - contains_in_order
                              - all_denied
                          matched:
                            type: boolean
                          details:
                            default: {}
                            type: object
                            additionalProperties:
                              $ref: >-
                                #/components/schemas/ToolInstanceActivityPage___schema0
                        required:
                          - operator
                          - matched
                          - details
                        additionalProperties: false
                      evidenceSequences:
                        default: []
                        type: array
                        items:
                          type: integer
                          minimum: 0
                          exclusiveMinimum: true
                          maximum: 9007199254740991
                    required:
                      - schemaVersion
                      - assertionId
                      - kind
                      - status
                      - gate
                      - message
                      - expected
                      - actual
                      - location
                      - diff
                      - evidenceSequences
                    additionalProperties: {}
                required:
                  - schemaVersion
                  - sequence
                  - transactionId
                  - transactionIndex
                  - transactionSize
                  - virtualTimeUs
                  - correlationId
                  - kind
                  - checkpointId
                  - checkpointKind
                  - result
                additionalProperties: {}
        nextSequence:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 9007199254740991
      required:
        - schemaVersion
        - organizationId
        - projectId
        - environmentId
        - sessionId
        - buildHash
        - packageId
        - instanceId
        - leaseGeneration
        - source
        - items
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        schemaVersion:
          type: number
          enum:
            - 1
        code:
          type: string
          pattern: ^[a-z][a-z0-9-]*\.[A-Z][A-Z0-9_]*$
        source:
          type: string
          enum:
            - framework
            - world
            - tool
            - target
            - assertion
            - reporter
            - control
        message:
          type: string
          minLength: 1
          maxLength: 4000
        retryable:
          type: boolean
        correlationId:
          type: string
          pattern: ^corr_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
        issues:
          default: []
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                minLength: 1
                maxLength: 128
              message:
                type: string
                minLength: 1
                maxLength: 2000
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: integer
                      minimum: 0
                      maximum: 9007199254740991
              suggestion:
                type: string
                minLength: 1
                maxLength: 4000
            required:
              - code
              - message
            additionalProperties: {}
        details:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ErrorEnvelope___schema0'
        evidence:
          type: object
          properties:
            runId:
              type: string
              pattern: ^run_[A-Za-z0-9][A-Za-z0-9_-]{5,95}$
            sequence:
              type: integer
              minimum: 0
              exclusiveMinimum: true
              maximum: 9007199254740991
          additionalProperties: {}
      required:
        - schemaVersion
        - code
        - source
        - message
        - retryable
        - issues
      additionalProperties: {}
    ToolInstanceActivityPage___schema0:
      description: Any JSON-compatible value
    ErrorEnvelope___schema0:
      description: Any JSON-compatible value
  securitySchemes:
    controlCredential:
      type: http
      scheme: bearer
      description: Opaque control credential

````

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