Skip to main content
Glama

workflow_write

DestructiveIdempotent

Access the workflow write operations listed below. Compatibility dispatcher; prefer the individually named tool when available. Select operation and its matching payload. Supported operations: queue_report_bug, queue_report, complete_inbox_task, acknowledge_instruction_control, queue_instruction_tasks, control_instruction_task, cancel_queue_item, cancel_queue_type, create_chat_handoff, delete_queue_history_items, inbox_claim, inbox_start, record_chat_handoff_delivery, relay_accept, relay_dismiss, relay_mark_sent, relay_release, relay_sync_completion, submit_node_instruction, submit_project_task, start_agent_session, finish_agent_session, queue_implementation_meter_request, apply_implementation_meter_change, begin_agent_execution, record_agent_execution_activity, finalize_agent_execution, update_queue_item. Effects and required fields depend on that operation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesArguments for the selected operation. Follow its matching oneOf branch; fields and side effects differ by operation.
operationYesExact operation to dispatch; prefer its individually named tool when available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_report_bug",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "findingId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "findingId"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_report",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "reportId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "reportId"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "complete_inbox_task",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "acknowledge_instruction_control",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "controlId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "summary": {
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "taskId",
      -          "expectedVersion",
      -          "controlId",
      -          "summary",
      -          "sessionId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_instruction_tasks",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "parentTaskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "parentVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "tasks": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "acceptance": {
      -                  "maxLength": 2000,
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "dependsOn": {
      -                  "items": {
      -                    "maxLength": 200,
      -                    "minLength": 1,
      -                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                    "type": "string"
      -                  },
      -                  "maxItems": 20,
      -                  "type": "array",
      -                  "uniqueItems": true
      -                },
      -                "existingTask": {
      -                  "type": "boolean"
      -                },
      -                "instructions": {
      -                  "maxLength": 10000,
      -                  "type": "string"
      -                },
      -                "sourceReferences": {
      -                  "items": {
      -                    "maxLength": 200,
      -                    "minLength": 1,
      -                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                    "type": "string"
      -                  },
      -                  "maxItems": 100,
      -                  "type": "array",
      -                  "uniqueItems": true
      -                },
      -                "taskId": {
      -                  "maxLength": 200,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "whyNeeded": {
      -                  "maxLength": 2000,
      -                  "minLength": 1,
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "taskId",
      -                "whyNeeded",
      -                "acceptance"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 20,
      -            "minItems": 1,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "parentTaskId",
      -          "parentVersion",
      -          "tasks",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "control_instruction_task",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "action": {
      -            "enum": [
      -              "pause",
      -              "cancel",
      -              "resume",
      -              "clarify",
      -              "retry"
      -            ],
      -            "type": "string"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "text": {
      -            "maxLength": 10000,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "taskId",
      -          "expectedVersion",
      -          "action",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "cancel_queue_item",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "queueItemId": {
      -            "maxLength": 512,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "queueItemId",
      -          "expectedVersion",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "cancel_queue_type",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "previewDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestType": {
      -            "maxLength": 100,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "snapshotVersion": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "requestType",
      -          "snapshotVersion",
      -          "previewDigest",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "create_chat_handoff",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "delete_queue_history_items",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "items": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "expectedVersion": {
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "queueItemId": {
      -                  "maxLength": 512,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "queueItemId",
      -                "expectedVersion"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "minItems": 1,
      -            "type": "array",
      -            "uniqueItems": true
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "items",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "inbox_claim",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "inbox_start",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "record_chat_handoff_delivery",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_accept",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_dismiss",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_mark_sent",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_release",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_sync_completion",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "submit_node_instruction",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "nodeId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "nodeId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "submit_project_task",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "start_agent_session",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "expectedVersion": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestText": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "requestText",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "finish_agent_session",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "blockers": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          },
      -          "codeChanges": {
      -            "description": "Required completion declaration. Submit every code file changed during this session with its actual unified diff. Use [] only when no code changed. Do not include secrets or unrelated pre-existing edits.",
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "changeType": {
      -                  "enum": [
      -                    "added",
      -                    "modified",
      -                    "deleted"
      -                  ],
      -                  "type": "string"
      -                },
      -                "diff": {
      -                  "maxLength": 100000,
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "path": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "path",
      -                "changeType",
      -                "diff"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "decisions": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "outcome": {
      -            "maxLength": 1000,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "summary": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "validations": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "summary",
      -          "codeChanges",
      -          "expectedVersion",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_implementation_meter_request",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "description": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "graphDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "graphVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "meterKey": {
      -            "maxLength": 160,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "moveRelevantGoals": {
      -            "type": "boolean"
      -          },
      -          "name": {
      -            "maxLength": 120,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projection": {
      -            "enum": [
      -              "detailed",
      -              "simplified"
      -            ],
      -            "type": "string"
      -          },
      -          "replacementContext": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "canonicalWorkId": {
      -                "maxLength": 256,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                "type": "string"
      -              },
      -              "expectedVersion": {
      -                "minimum": 1,
      -                "type": "integer"
      -              },
      -              "originalQueueItemId": {
      -                "maxLength": 512,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                "type": "string"
      -              },
      -              "replacementToken": {
      -                "maxLength": 128,
      -                "minLength": 16,
      -                "pattern": "^[A-Za-z0-9_-]+$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "originalQueueItemId",
      -              "expectedVersion",
      -              "canonicalWorkId",
      -              "replacementToken"
      -            ],
      -            "type": "object"
      -          },
      -          "requestType": {
      -            "enum": [
      -              "suggest_meter_change",
      -              "create_meter"
      -            ],
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "suggestion": {
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "requestType",
      -          "projection",
      -          "sourceFingerprint",
      -          "graphVersion",
      -          "graphDigest",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "apply_implementation_meter_change",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "baseSourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "expectedProjectVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "graphDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "resultSummary": {
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "resultingMeterKey": {
      -            "maxLength": 160,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "resultingSourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "requestId",
      -          "expectedVersion",
      -          "baseSourceFingerprint",
      -          "resultingSourceFingerprint",
      -          "expectedProjectVersion",
      -          "graphDigest",
      -          "resultingMeterKey",
      -          "resultSummary",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "begin_agent_execution",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "agentId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "parentExecutionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectIds": {
      -            "items": {
      -              "maxLength": 200,
      -              "minLength": 1,
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -              "type": "string"
      -            },
      -            "maxItems": 20,
      -            "minItems": 1,
      -            "type": "array",
      -            "uniqueItems": true
      -          },
      -          "requestMetadata": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "promptDigest": {
      -                "pattern": "^[0-9a-f]{64}$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 1000,
      -                "minLength": 1,
      -                "type": "string"
      -              }
      -            },
      -            "required": [],
      -            "type": "object"
      -          },
      -          "threadId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "trigger": {
      -            "enum": [
      -              "user",
      -              "agent"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "threadId",
      -          "trigger",
      -          "occurredAt",
      -          "projectIds",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "record_agent_execution_activity",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "activityId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "category": {
      -            "enum": [
      -              "filesystem",
      -              "git",
      -              "build",
      -              "deployment",
      -              "other"
      -            ],
      -            "type": "string"
      -          },
      -          "changeMetadata": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "changedFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "createdFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "deletedFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "stateDigest": {
      -                "pattern": "^[0-9a-f]{64}$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [],
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "projectIds": {
      -            "items": {
      -              "maxLength": 200,
      -              "minLength": 1,
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -              "type": "string"
      -            },
      -            "maxItems": 20,
      -            "type": "array",
      -            "uniqueItems": true
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "activityId",
      -          "occurredAt",
      -          "projectIds",
      -          "category",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "finalize_agent_execution",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "changedProjects": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "graphDigest": {
      -                  "pattern": "^[0-9a-f]{64}$",
      -                  "type": "string"
      -                },
      -                "graphVersion": {
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "projectId": {
      -                  "maxLength": 200,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "stateDigest": {
      -                  "pattern": "^[0-9a-f]{64}$",
      -                  "type": "string"
      -                },
      -                "syncId": {
      -                  "maxLength": 200,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "projectId",
      -                "changed",
      -                "stateDigest"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 20,
      -            "type": "array"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "summary": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "terminalStatus": {
      -            "enum": [
      -              "completed",
      -              "failed",
      -              "cancelled",
      -              "interrupted"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "terminalStatus",
      -          "occurredAt",
      -          "changedProjects",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "update_queue_item",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "instructions": {
      -            "maxLength": 10000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "queueItemId": {
      -            "maxLength": 512,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "queueItemId",
      -          "expectedVersion",
      -          "instructions",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_report_bug",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "findingId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "findingId"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_report",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "reportId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "reportId"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "complete_inbox_task",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "acknowledge_instruction_control",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "controlId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "summary": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "taskId",
      +          "expectedVersion",
      +          "controlId",
      +          "summary",
      +          "sessionId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_instruction_tasks",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "parentTaskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "parentVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "tasks": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "acceptance": {
      +                  "maxLength": 2000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "dependsOn": {
      +                  "items": {
      +                    "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                    "maxLength": 200,
      +                    "minLength": 1,
      +                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                    "type": "string"
      +                  },
      +                  "maxItems": 20,
      +                  "type": "array",
      +                  "uniqueItems": true
      +                },
      +                "existingTask": {
      +                  "type": "boolean"
      +                },
      +                "instructions": {
      +                  "maxLength": 10000,
      +                  "type": "string"
      +                },
      +                "sourceReferences": {
      +                  "items": {
      +                    "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                    "maxLength": 200,
      +                    "minLength": 1,
      +                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                    "type": "string"
      +                  },
      +                  "maxItems": 100,
      +                  "type": "array",
      +                  "uniqueItems": true
      +                },
      +                "taskId": {
      +                  "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "whyNeeded": {
      +                  "maxLength": 2000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "taskId",
      +                "whyNeeded",
      +                "acceptance"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 20,
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "parentTaskId",
      +          "parentVersion",
      +          "tasks",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "control_instruction_task",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "enum": [
      +              "pause",
      +              "cancel",
      +              "resume",
      +              "clarify",
      +              "retry"
      +            ],
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "text": {
      +            "maxLength": 10000,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "taskId",
      +          "expectedVersion",
      +          "action",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "cancel_queue_item",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "queueItemId": {
      +            "description": "Exact queue item ID from list_queue_items, including its type prefix; do not substitute the underlying record ID.",
      +            "maxLength": 512,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "queueItemId",
      +          "expectedVersion",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "cancel_queue_type",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "previewDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestType": {
      +            "maxLength": 100,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "snapshotVersion": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "requestType",
      +          "snapshotVersion",
      +          "previewDigest",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "create_chat_handoff",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "delete_queue_history_items",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "items": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "expectedVersion": {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "queueItemId": {
      +                  "maxLength": 512,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "queueItemId",
      +                "expectedVersion"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "items",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "inbox_claim",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "inbox_start",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "record_chat_handoff_delivery",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_accept",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_dismiss",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_mark_sent",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_release",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_sync_completion",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "submit_node_instruction",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "description": "Target node ID from this project's published graph; use get_roots and get_graph_scope to discover nodes. Not a file path.",
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "nodeId": {
      +            "description": "Target node ID from this project's published graph; use get_roots and get_graph_scope to discover nodes. Not a file path.",
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "nodeId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "submit_project_task",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "description": "Optional bounded metadata using only the listed fields, such as summary, status and referenceIds. Not arbitrary command arguments or source content.",
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "start_agent_session",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestText": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "requestText",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "finish_agent_session",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "blockers": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          },
      +          "codeChanges": {
      +            "description": "Required completion declaration. Submit every code file changed during this session with its actual unified diff. Use [] only when no code changed. Do not include secrets or unrelated pre-existing edits.",
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "changeType": {
      +                  "enum": [
      +                    "added",
      +                    "modified",
      +                    "deleted"
      +                  ],
      +                  "type": "string"
      +                },
      +                "diff": {
      +                  "maxLength": 100000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "path": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "path",
      +                "changeType",
      +                "diff"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "decisions": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "outcome": {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "summary": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "validations": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "summary",
      +          "codeChanges",
      +          "expectedVersion",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_implementation_meter_request",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "description": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "graphDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "graphVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "meterKey": {
      +            "maxLength": 160,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "moveRelevantGoals": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "maxLength": 120,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projection": {
      +            "enum": [
      +              "detailed",
      +              "simplified"
      +            ],
      +            "type": "string"
      +          },
      +          "replacementContext": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "canonicalWorkId": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                "type": "string"
      +              },
      +              "expectedVersion": {
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "originalQueueItemId": {
      +                "maxLength": 512,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                "type": "string"
      +              },
      +              "replacementToken": {
      +                "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +                "maxLength": 128,
      +                "minLength": 16,
      +                "pattern": "^[A-Za-z0-9_-]+$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "originalQueueItemId",
      +              "expectedVersion",
      +              "canonicalWorkId",
      +              "replacementToken"
      +            ],
      +            "type": "object"
      +          },
      +          "requestType": {
      +            "enum": [
      +              "suggest_meter_change",
      +              "create_meter"
      +            ],
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "suggestion": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "requestType",
      +          "projection",
      +          "sourceFingerprint",
      +          "graphVersion",
      +          "graphDigest",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "apply_implementation_meter_change",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "baseSourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "expectedProjectVersion": {
      +            "description": "Current hosted project version from get_project_status; guards against overwriting a newer graph publication.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "graphDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "resultSummary": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "resultingMeterKey": {
      +            "maxLength": 160,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "resultingSourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "requestId",
      +          "expectedVersion",
      +          "baseSourceFingerprint",
      +          "resultingSourceFingerprint",
      +          "expectedProjectVersion",
      +          "graphDigest",
      +          "resultingMeterKey",
      +          "resultSummary",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "begin_agent_execution",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "agentId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "parentExecutionId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectIds": {
      +            "items": {
      +              "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +              "maxLength": 200,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +              "type": "string"
      +            },
      +            "maxItems": 20,
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "requestMetadata": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "promptDigest": {
      +                "pattern": "^[0-9a-f]{64}$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 1000,
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [],
      +            "type": "object"
      +          },
      +          "threadId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "trigger": {
      +            "enum": [
      +              "user",
      +              "agent"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "threadId",
      +          "trigger",
      +          "occurredAt",
      +          "projectIds",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "record_agent_execution_activity",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "activityId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "category": {
      +            "enum": [
      +              "filesystem",
      +              "git",
      +              "build",
      +              "deployment",
      +              "other"
      +            ],
      +            "type": "string"
      +          },
      +          "changeMetadata": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "changedFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "createdFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "deletedFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "stateDigest": {
      +                "pattern": "^[0-9a-f]{64}$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [],
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "projectIds": {
      +            "items": {
      +              "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +              "maxLength": 200,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +              "type": "string"
      +            },
      +            "maxItems": 20,
      +            "type": "array",
      +            "uniqueItems": true
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "activityId",
      +          "occurredAt",
      +          "projectIds",
      +          "category",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "finalize_agent_execution",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "changedProjects": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "graphDigest": {
      +                  "pattern": "^[0-9a-f]{64}$",
      +                  "type": "string"
      +                },
      +                "graphVersion": {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "projectId": {
      +                  "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "stateDigest": {
      +                  "pattern": "^[0-9a-f]{64}$",
      +                  "type": "string"
      +                },
      +                "syncId": {
      +                  "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "projectId",
      +                "changed",
      +                "stateDigest"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 20,
      +            "type": "array"
      +          },
      +          "executionId": {
      +            "description": "Execution record.id from begin_agent_execution when associating this call with an existing execution; not a session or project ID.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "summary": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "terminalStatus": {
      +            "enum": [
      +              "completed",
      +              "failed",
      +              "cancelled",
      +              "interrupted"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "terminalStatus",
      +          "occurredAt",
      +          "changedProjects",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "update_queue_item",
      +        "description": "Select this exact operation; payload must match this branch.",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "description": "Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "description": "Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action.",
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "instructions": {
      +            "maxLength": 10000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "queueItemId": {
      +            "description": "Exact queue item ID from list_queue_items, including its type prefix; do not substitute the underlying record ID.",
      +            "maxLength": 512,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "description": "Owned project ID returned by list_linked_projects or map_project; do not use a local path or repository URL.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "queueItemId",
      +          "expectedVersion",
      +          "instructions",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / operation / description
      Added value: +"Exact operation to dispatch; prefer its individually named tool when available."
    • addedInput schema / properties / payload / description
      Added value: +"Arguments for the selected operation. Follow its matching oneOf branch; fields and side effects differ by operation."
  2. Changed2 schema fields changed
    • changedInput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_report_bug",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "findingId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "findingId"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_report",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "reportId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey",
      -          "reportId"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "complete_inbox_task",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "cancel_queue_item",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "queueItemId": {
      -            "maxLength": 512,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "queueItemId",
      -          "expectedVersion",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "cancel_queue_type",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "previewDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestType": {
      -            "maxLength": 100,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "snapshotVersion": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "requestType",
      -          "snapshotVersion",
      -          "previewDigest",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "create_chat_handoff",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "delete_queue_history_items",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "items": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "expectedVersion": {
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "queueItemId": {
      -                  "maxLength": 512,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "queueItemId",
      -                "expectedVersion"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "minItems": 1,
      -            "type": "array",
      -            "uniqueItems": true
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "items",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "inbox_claim",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "inbox_start",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "taskId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "taskId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "record_chat_handoff_delivery",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_accept",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_dismiss",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_mark_sent",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_release",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "relay_sync_completion",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "handoffId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "handoffId",
      -          "idempotencyKey",
      -          "expectedVersion"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "submit_node_instruction",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "nodeId": {
      -            "maxLength": 500,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "nodeId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "submit_project_task",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "details": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "referenceIds": {
      -                "items": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "maxItems": 100,
      -                "type": "array",
      -                "uniqueItems": true
      -              },
      -              "status": {
      -                "maxLength": 200,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 240,
      -                "type": "string"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "start_agent_session",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "expectedVersion": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestText": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "requestText",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "finish_agent_session",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "blockers": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          },
      -          "codeChanges": {
      -            "description": "Required completion declaration. Submit every code file changed during this session with its actual unified diff. Use [] only when no code changed. Do not include secrets or unrelated pre-existing edits.",
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "changeType": {
      -                  "enum": [
      -                    "added",
      -                    "modified",
      -                    "deleted"
      -                  ],
      -                  "type": "string"
      -                },
      -                "diff": {
      -                  "maxLength": 100000,
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "path": {
      -                  "maxLength": 500,
      -                  "minLength": 1,
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "path",
      -                "changeType",
      -                "diff"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 100,
      -            "type": "array"
      -          },
      -          "decisions": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "outcome": {
      -            "maxLength": 1000,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "summary": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "validations": {
      -            "items": {
      -              "maxLength": 500,
      -              "type": "string"
      -            },
      -            "maxItems": 8,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "summary",
      -          "codeChanges",
      -          "expectedVersion",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "queue_implementation_meter_request",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "description": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "graphDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "graphVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "meterKey": {
      -            "maxLength": 160,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "moveRelevantGoals": {
      -            "type": "boolean"
      -          },
      -          "name": {
      -            "maxLength": 120,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projection": {
      -            "enum": [
      -              "detailed",
      -              "simplified"
      -            ],
      -            "type": "string"
      -          },
      -          "replacementContext": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "canonicalWorkId": {
      -                "maxLength": 256,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                "type": "string"
      -              },
      -              "expectedVersion": {
      -                "minimum": 1,
      -                "type": "integer"
      -              },
      -              "originalQueueItemId": {
      -                "maxLength": 512,
      -                "minLength": 1,
      -                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -                "type": "string"
      -              },
      -              "replacementToken": {
      -                "maxLength": 128,
      -                "minLength": 16,
      -                "pattern": "^[A-Za-z0-9_-]+$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "originalQueueItemId",
      -              "expectedVersion",
      -              "canonicalWorkId",
      -              "replacementToken"
      -            ],
      -            "type": "object"
      -          },
      -          "requestType": {
      -            "enum": [
      -              "suggest_meter_change",
      -              "create_meter"
      -            ],
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "sourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "suggestion": {
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "requestType",
      -          "projection",
      -          "sourceFingerprint",
      -          "graphVersion",
      -          "graphDigest",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "apply_implementation_meter_change",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "baseSourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "expectedProjectVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "graphDigest": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "requestId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "resultSummary": {
      -            "maxLength": 2000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "resultingMeterKey": {
      -            "maxLength": 160,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "resultingSourceFingerprint": {
      -            "pattern": "^[0-9a-f]{64}$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "sessionId",
      -          "requestId",
      -          "expectedVersion",
      -          "baseSourceFingerprint",
      -          "resultingSourceFingerprint",
      -          "expectedProjectVersion",
      -          "graphDigest",
      -          "resultingMeterKey",
      -          "resultSummary",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "begin_agent_execution",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "agentId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "parentExecutionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "projectIds": {
      -            "items": {
      -              "maxLength": 200,
      -              "minLength": 1,
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -              "type": "string"
      -            },
      -            "maxItems": 20,
      -            "minItems": 1,
      -            "type": "array",
      -            "uniqueItems": true
      -          },
      -          "requestMetadata": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "promptDigest": {
      -                "pattern": "^[0-9a-f]{64}$",
      -                "type": "string"
      -              },
      -              "summary": {
      -                "maxLength": 1000,
      -                "minLength": 1,
      -                "type": "string"
      -              }
      -            },
      -            "required": [],
      -            "type": "object"
      -          },
      -          "threadId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "trigger": {
      -            "enum": [
      -              "user",
      -              "agent"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "threadId",
      -          "trigger",
      -          "occurredAt",
      -          "projectIds",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "record_agent_execution_activity",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "activityId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "category": {
      -            "enum": [
      -              "filesystem",
      -              "git",
      -              "build",
      -              "deployment",
      -              "other"
      -            ],
      -            "type": "string"
      -          },
      -          "changeMetadata": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "changedFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "createdFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "deletedFileCount": {
      -                "maximum": 1000000,
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "stateDigest": {
      -                "pattern": "^[0-9a-f]{64}$",
      -                "type": "string"
      -              }
      -            },
      -            "required": [],
      -            "type": "object"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "projectIds": {
      -            "items": {
      -              "maxLength": 200,
      -              "minLength": 1,
      -              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -              "type": "string"
      -            },
      -            "maxItems": 20,
      -            "type": "array",
      -            "uniqueItems": true
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "activityId",
      -          "occurredAt",
      -          "projectIds",
      -          "category",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "finalize_agent_execution",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "changedProjects": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "graphDigest": {
      -                  "pattern": "^[0-9a-f]{64}$",
      -                  "type": "string"
      -                },
      -                "graphVersion": {
      -                  "minimum": 1,
      -                  "type": "integer"
      -                },
      -                "projectId": {
      -                  "maxLength": 200,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                },
      -                "stateDigest": {
      -                  "pattern": "^[0-9a-f]{64}$",
      -                  "type": "string"
      -                },
      -                "syncId": {
      -                  "maxLength": 200,
      -                  "minLength": 1,
      -                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "projectId",
      -                "changed",
      -                "stateDigest"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 20,
      -            "type": "array"
      -          },
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "occurredAt": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "summary": {
      -            "maxLength": 1000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "terminalStatus": {
      -            "enum": [
      -              "completed",
      -              "failed",
      -              "cancelled",
      -              "interrupted"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "executionId",
      -          "terminalStatus",
      -          "occurredAt",
      -          "changedProjects",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "operation": {
      -        "const": "update_queue_item",
      -        "type": "string"
      -      },
      -      "payload": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "executionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "expectedVersion": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "idempotencyKey": {
      -            "maxLength": 128,
      -            "minLength": 16,
      -            "pattern": "^[A-Za-z0-9_-]+$",
      -            "type": "string"
      -          },
      -          "instructions": {
      -            "maxLength": 10000,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "projectId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          },
      -          "queueItemId": {
      -            "maxLength": 512,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      -            "type": "string"
      -          },
      -          "sessionId": {
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "projectId",
      -          "queueItemId",
      -          "expectedVersion",
      -          "instructions",
      -          "idempotencyKey"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "operation",
      -      "payload"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_report_bug",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "findingId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "findingId"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_report",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "reportId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "reportId"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "complete_inbox_task",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "acknowledge_instruction_control",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "controlId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "summary": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "taskId",
      +          "expectedVersion",
      +          "controlId",
      +          "summary",
      +          "sessionId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_instruction_tasks",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "parentTaskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "parentVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "tasks": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "acceptance": {
      +                  "maxLength": 2000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "dependsOn": {
      +                  "items": {
      +                    "maxLength": 200,
      +                    "minLength": 1,
      +                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                    "type": "string"
      +                  },
      +                  "maxItems": 20,
      +                  "type": "array",
      +                  "uniqueItems": true
      +                },
      +                "existingTask": {
      +                  "type": "boolean"
      +                },
      +                "instructions": {
      +                  "maxLength": 10000,
      +                  "type": "string"
      +                },
      +                "sourceReferences": {
      +                  "items": {
      +                    "maxLength": 200,
      +                    "minLength": 1,
      +                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                    "type": "string"
      +                  },
      +                  "maxItems": 100,
      +                  "type": "array",
      +                  "uniqueItems": true
      +                },
      +                "taskId": {
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "whyNeeded": {
      +                  "maxLength": 2000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "taskId",
      +                "whyNeeded",
      +                "acceptance"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 20,
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "parentTaskId",
      +          "parentVersion",
      +          "tasks",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "control_instruction_task",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "action": {
      +            "enum": [
      +              "pause",
      +              "cancel",
      +              "resume",
      +              "clarify",
      +              "retry"
      +            ],
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "text": {
      +            "maxLength": 10000,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey",
      +          "taskId",
      +          "expectedVersion",
      +          "action",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "cancel_queue_item",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "queueItemId": {
      +            "maxLength": 512,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "queueItemId",
      +          "expectedVersion",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "cancel_queue_type",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "previewDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestType": {
      +            "maxLength": 100,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "snapshotVersion": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "requestType",
      +          "snapshotVersion",
      +          "previewDigest",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "create_chat_handoff",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "delete_queue_history_items",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "items": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "expectedVersion": {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "queueItemId": {
      +                  "maxLength": 512,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "queueItemId",
      +                "expectedVersion"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "items",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "inbox_claim",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "inbox_start",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "taskId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "taskId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "record_chat_handoff_delivery",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_accept",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_dismiss",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_mark_sent",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_release",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "relay_sync_completion",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "handoffId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "handoffId",
      +          "idempotencyKey",
      +          "expectedVersion"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "submit_node_instruction",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "nodeId": {
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "nodeId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "submit_project_task",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "details": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "referenceIds": {
      +                "items": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "maxItems": 100,
      +                "type": "array",
      +                "uniqueItems": true
      +              },
      +              "status": {
      +                "maxLength": 200,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 240,
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "start_agent_session",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "expectedVersion": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestText": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "requestText",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "finish_agent_session",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "blockers": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          },
      +          "codeChanges": {
      +            "description": "Required completion declaration. Submit every code file changed during this session with its actual unified diff. Use [] only when no code changed. Do not include secrets or unrelated pre-existing edits.",
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "changeType": {
      +                  "enum": [
      +                    "added",
      +                    "modified",
      +                    "deleted"
      +                  ],
      +                  "type": "string"
      +                },
      +                "diff": {
      +                  "maxLength": 100000,
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "path": {
      +                  "maxLength": 500,
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "path",
      +                "changeType",
      +                "diff"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 100,
      +            "type": "array"
      +          },
      +          "decisions": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "outcome": {
      +            "maxLength": 1000,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "summary": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "validations": {
      +            "items": {
      +              "maxLength": 500,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "summary",
      +          "codeChanges",
      +          "expectedVersion",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "queue_implementation_meter_request",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "description": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "graphDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "graphVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "meterKey": {
      +            "maxLength": 160,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "moveRelevantGoals": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "maxLength": 120,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projection": {
      +            "enum": [
      +              "detailed",
      +              "simplified"
      +            ],
      +            "type": "string"
      +          },
      +          "replacementContext": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "canonicalWorkId": {
      +                "maxLength": 256,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                "type": "string"
      +              },
      +              "expectedVersion": {
      +                "minimum": 1,
      +                "type": "integer"
      +              },
      +              "originalQueueItemId": {
      +                "maxLength": 512,
      +                "minLength": 1,
      +                "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +                "type": "string"
      +              },
      +              "replacementToken": {
      +                "maxLength": 128,
      +                "minLength": 16,
      +                "pattern": "^[A-Za-z0-9_-]+$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "originalQueueItemId",
      +              "expectedVersion",
      +              "canonicalWorkId",
      +              "replacementToken"
      +            ],
      +            "type": "object"
      +          },
      +          "requestType": {
      +            "enum": [
      +              "suggest_meter_change",
      +              "create_meter"
      +            ],
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "sourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "suggestion": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "requestType",
      +          "projection",
      +          "sourceFingerprint",
      +          "graphVersion",
      +          "graphDigest",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "apply_implementation_meter_change",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "baseSourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "expectedProjectVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "graphDigest": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "requestId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "resultSummary": {
      +            "maxLength": 2000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "resultingMeterKey": {
      +            "maxLength": 160,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "resultingSourceFingerprint": {
      +            "pattern": "^[0-9a-f]{64}$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "sessionId",
      +          "requestId",
      +          "expectedVersion",
      +          "baseSourceFingerprint",
      +          "resultingSourceFingerprint",
      +          "expectedProjectVersion",
      +          "graphDigest",
      +          "resultingMeterKey",
      +          "resultSummary",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "begin_agent_execution",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "agentId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "parentExecutionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "projectIds": {
      +            "items": {
      +              "maxLength": 200,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +              "type": "string"
      +            },
      +            "maxItems": 20,
      +            "minItems": 1,
      +            "type": "array",
      +            "uniqueItems": true
      +          },
      +          "requestMetadata": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "promptDigest": {
      +                "pattern": "^[0-9a-f]{64}$",
      +                "type": "string"
      +              },
      +              "summary": {
      +                "maxLength": 1000,
      +                "minLength": 1,
      +                "type": "string"
      +              }
      +            },
      +            "required": [],
      +            "type": "object"
      +          },
      +          "threadId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "trigger": {
      +            "enum": [
      +              "user",
      +              "agent"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "threadId",
      +          "trigger",
      +          "occurredAt",
      +          "projectIds",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "record_agent_execution_activity",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "activityId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "category": {
      +            "enum": [
      +              "filesystem",
      +              "git",
      +              "build",
      +              "deployment",
      +              "other"
      +            ],
      +            "type": "string"
      +          },
      +          "changeMetadata": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "changedFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "createdFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "deletedFileCount": {
      +                "maximum": 1000000,
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "stateDigest": {
      +                "pattern": "^[0-9a-f]{64}$",
      +                "type": "string"
      +              }
      +            },
      +            "required": [],
      +            "type": "object"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "projectIds": {
      +            "items": {
      +              "maxLength": 200,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +              "type": "string"
      +            },
      +            "maxItems": 20,
      +            "type": "array",
      +            "uniqueItems": true
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "activityId",
      +          "occurredAt",
      +          "projectIds",
      +          "category",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "finalize_agent_execution",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "changedProjects": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "graphDigest": {
      +                  "pattern": "^[0-9a-f]{64}$",
      +                  "type": "string"
      +                },
      +                "graphVersion": {
      +                  "minimum": 1,
      +                  "type": "integer"
      +                },
      +                "projectId": {
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                },
      +                "stateDigest": {
      +                  "pattern": "^[0-9a-f]{64}$",
      +                  "type": "string"
      +                },
      +                "syncId": {
      +                  "maxLength": 200,
      +                  "minLength": 1,
      +                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "projectId",
      +                "changed",
      +                "stateDigest"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 20,
      +            "type": "array"
      +          },
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "occurredAt": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "summary": {
      +            "maxLength": 1000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "terminalStatus": {
      +            "enum": [
      +              "completed",
      +              "failed",
      +              "cancelled",
      +              "interrupted"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "executionId",
      +          "terminalStatus",
      +          "occurredAt",
      +          "changedProjects",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "const": "update_queue_item",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "executionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "expectedVersion": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "idempotencyKey": {
      +            "maxLength": 128,
      +            "minLength": 16,
      +            "pattern": "^[A-Za-z0-9_-]+$",
      +            "type": "string"
      +          },
      +          "instructions": {
      +            "maxLength": 10000,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "projectId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          },
      +          "queueItemId": {
      +            "maxLength": 512,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~/-]*$",
      +            "type": "string"
      +          },
      +          "sessionId": {
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+~-]*$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "projectId",
      +          "queueItemId",
      +          "expectedVersion",
      +          "instructions",
      +          "idempotencyKey"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "payload"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "queue_report_bug",
      -  "queue_report",
      -  "complete_inbox_task",
      -  "cancel_queue_item",
      -  "cancel_queue_type",
      -  "create_chat_handoff",
      -  "delete_queue_history_items",
      -  "inbox_claim",
      -  "inbox_start",
      -  "record_chat_handoff_delivery",
      -  "relay_accept",
      -  "relay_dismiss",
      -  "relay_mark_sent",
      -  "relay_release",
      -  "relay_sync_completion",
      -  "submit_node_instruction",
      -  "submit_project_task",
      -  "start_agent_session",
      -  "finish_agent_session",
      -  "queue_implementation_meter_request",
      -  "apply_implementation_meter_change",
      -  "begin_agent_execution",
      -  "record_agent_execution_activity",
      -  "finalize_agent_execution",
      -  "update_queue_item"
      -]New value: +[
      +  "queue_report_bug",
      +  "queue_report",
      +  "complete_inbox_task",
      +  "acknowledge_instruction_control",
      +  "queue_instruction_tasks",
      +  "control_instruction_task",
      +  "cancel_queue_item",
      +  "cancel_queue_type",
      +  "create_chat_handoff",
      +  "delete_queue_history_items",
      +  "inbox_claim",
      +  "inbox_start",
      +  "record_chat_handoff_delivery",
      +  "relay_accept",
      +  "relay_dismiss",
      +  "relay_mark_sent",
      +  "relay_release",
      +  "relay_sync_completion",
      +  "submit_node_instruction",
      +  "submit_project_task",
      +  "start_agent_session",
      +  "finish_agent_session",
      +  "queue_implementation_meter_request",
      +  "apply_implementation_meter_change",
      +  "begin_agent_execution",
      +  "record_agent_execution_activity",
      +  "finalize_agent_execution",
      +  "update_queue_item"
      +]
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered structurally. The description adds 'Effects and required fields depend on that operation,' honestly flagging per-operation variance, but never indicates which of the 28 operations are destructive versus benign — a notable gap given destructiveHint=true over such a wide surface.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The compatibility warning and the 'prefer the named tool' routing are front-loaded before the operation list. The long operation enumeration is necessary reference for a dispatcher of this size and every sentence carries weight, though the list itself dominates the description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 28-operation dispatcher with no output schema but a deeply detailed oneOf schema and full annotation coverage, the description supplies what the schema cannot: the dispatcher's compatibility role and the total operation inventory. It defers per-operation effects to the schema, which is reasonable, so nothing critical is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each oneOf branch already documents its own fields and states 'Select this exact operation; payload must match this branch.' The description's 'Select operation and its matching payload' merely restates that branch-matching rule and adds no new syntax or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (workflow write operations) and its nature ('compatibility dispatcher'), then enumerates all 28 supported operations so the agent knows exactly what surface it covers. It distinguishes itself from siblings by stating the individually named versions exist and should be preferred. It's clear, though the core verb is 'dispatch' rather than a single concrete action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly guides usage with 'prefer the individually named tool when available,' which tells the agent when to reach for a sibling instead. It implies this tool is the fallback for compatibility, but doesn't state the fallback condition as directly as a when/when-not statement would.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources