{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-tool-execution-side-effects-task-schema.json",
  "title": "ToolExecutionSideEffectsTask",
  "description": "Cloud Tasks payload for post-tool execution side effects.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-internal-tasks-api-openapi.yml#/components/schemas/ToolExecutionSideEffectsTask",
  "properties": {
    "task_version": {
      "type": "integer",
      "const": 1,
      "title": "Task Version",
      "default": 1
    },
    "idempotency_key": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Idempotency Key"
    },
    "request_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Id"
    },
    "execution_source": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Execution Source"
    },
    "enqueued_at": {
      "type": "string",
      "title": "Enqueued At"
    },
    "activity_log": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Activity Log"
    },
    "workflow_attribution": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Workflow Attribution"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "idempotency_key",
    "enqueued_at"
  ]
}