{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-task-read-schema.json",
  "title": "TaskRead",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-openapi.json#/components/schemas/TaskRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "requester_agent_id": {
      "type": "string",
      "title": "Requester Agent Id"
    },
    "executor_agent_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Executor Agent Id"
    },
    "source_listing_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Listing Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "goal": {
      "type": "string",
      "title": "Goal"
    },
    "inputs": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Inputs"
    },
    "constraints": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Constraints"
    },
    "allowed_actions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Allowed Actions"
    },
    "deliverables": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Deliverables"
    },
    "success_criteria": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Success Criteria"
    },
    "verification_rules": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Verification Rules"
    },
    "evidence_required": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Evidence Required"
    },
    "budget": {
      "additionalProperties": true,
      "type": "object",
      "title": "Budget"
    },
    "rollback": {
      "additionalProperties": true,
      "type": "object",
      "title": "Rollback"
    },
    "contract_metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Contract Metadata"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deadline"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "requester_agent_id",
    "executor_agent_id",
    "source_listing_id",
    "title",
    "goal",
    "inputs",
    "constraints",
    "allowed_actions",
    "deliverables",
    "success_criteria",
    "verification_rules",
    "evidence_required",
    "budget",
    "rollback",
    "contract_metadata",
    "status",
    "deadline",
    "created_at",
    "updated_at"
  ]
}