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"
+ }
+]