{
  "workflowId": "debate",
  "displayName": "Dialectical Debate",
  "steps": [
    {
      "id": "topic",
      "type": "agent",
      "mode": "auto",
      "agent": "analyst",
      "instruction": "The user has stated a debate topic or position in their message. Summarise it as a concise debate brief: restate the core question or thesis, identify the key tension or conflict, and name the two opposing positions that will be argued. Output only the debate brief — no questions, no commentary.",
      "timeout": 120
    },
    {
      "id": "debate",
      "type": "debate",
      "agents": [
        "researcher",
        "analyst"
      ],
      "rounds": 3,
      "instruction": "Work toward a well-founded, balanced conclusion on the topic. Thesis meets antithesis — converge on a synthesis supported by evidence.",
      "inputFrom": "topic",
      "timeout": 1800
    },
    {
      "id": "synthesis-review",
      "type": "checkpoint",
      "description": "Review the debate synthesis. Approve to proceed to the final report — or provide your input and reject to have the agents continue the debate incorporating your perspective.",
      "showArtifactsFrom": [
        "debate"
      ],
      "rejectGoTo": "debate"
    },
    {
      "id": "report",
      "type": "agent",
      "mode": "auto",
      "agent": "writer",
      "instruction": "Write a concise, well-structured report summarizing the debate: the opening positions, the key arguments exchanged, the points of convergence, and the final conclusion or decision. The report must stand alone without knowledge of the debate history.",
      "inputFrom": "debate",
      "timeout": 600
    }
  ]
}