{
  "answers": {
    "c00": {
      "noul": 1.0,
      "type": "noul"
    },
    "c01": {
      "noul": 0.99,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 1.0,
      "type": "noul"
    },
    "c04": {
      "noul": 0.99,
      "type": "noul"
    },
    "c05": {
      "noul": 1.0,
      "type": "noul"
    },
    "c06": {
      "noul": 0.99,
      "type": "noul"
    },
    "c07": {
      "noul": 1.0,
      "type": "noul"
    },
    "c08": {
      "noul": 0.99,
      "type": "noul"
    },
    "c09": {
      "noul": 0.99,
      "type": "noul"
    },
    "c10": {
      "noul": 0.99,
      "type": "noul"
    },
    "c11": {
      "noul": 1.0,
      "type": "noul"
    },
    "c12": {
      "noul": 0.99,
      "type": "noul"
    },
    "c13": {
      "noul": 1.0,
      "type": "noul"
    },
    "c14": {
      "noul": 0.99,
      "type": "noul"
    },
    "c15": {
      "noul": 0.87,
      "type": "noul"
    },
    "w00": {
      "noul": 0.98,
      "type": "noul"
    },
    "w01": {
      "noul": 0.99,
      "type": "noul"
    },
    "w02": {
      "noul": 0.97,
      "type": "noul"
    },
    "w03": {
      "noul": 0.98,
      "type": "noul"
    },
    "w04": {
      "noul": 0.98,
      "type": "noul"
    },
    "w05": {
      "noul": 0.98,
      "type": "noul"
    },
    "w06": {
      "noul": 0.98,
      "type": "noul"
    },
    "w07": {
      "noul": 0.97,
      "type": "noul"
    },
    "w08": {
      "noul": 0.98,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:00:28Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 1.0,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.99,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 1.0,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.99,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 1.0,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.99,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 1.0,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.99,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.99,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.99,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 1.0,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.99,
      "question": "c12"
    },
    {
      "call": 13,
      "noul": 1.0,
      "question": "c13"
    },
    {
      "call": 14,
      "noul": 0.99,
      "question": "c14"
    },
    {
      "call": 15,
      "noul": 0.87,
      "question": "c15"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 26506,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "2 validation errors for call[create_task]\nname\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument\nworkflow_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "create_task"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "name": {},
            "workflow_id": 1
          },
          "parameter": "name",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[create_task]\nname\n  Input should be a valid string [type=string_type, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/string_type",
          "tool": "create_task"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "status": {}
          },
          "parameter": "status",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[list_tasks]\nstatus\n  Input should be a valid string [type=string_type, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/string_type",
          "tool": "list_tasks"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "1 validation error for call[start_or_continue_task]\ntask_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "start_or_continue_task"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "task_id": "not a number"
          },
          "parameter": "task_id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[start_or_continue_task]\ntask_id\n  Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='not a number', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/int_parsing",
          "tool": "start_or_continue_task"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "2 validation errors for call[update_progress_notes]\ntask_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument\nnotes\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "update_progress_notes"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "notes": "didrun",
            "task_id": "not a number"
          },
          "parameter": "task_id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[update_progress_notes]\ntask_id\n  Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='not a number', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/int_parsing",
          "tool": "update_progress_notes"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "2 validation errors for call[submit_output]\ntask_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument\noutput\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "submit_output"
        },
        "type": "noul"
      },
      "c08": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "output": {},
            "task_id": "not a number"
          },
          "parameter": "task_id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[submit_output]\ntask_id\n  Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='not a number', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/int_parsing",
          "tool": "submit_output"
        },
        "type": "noul"
      },
      "c09": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "1 validation error for call[get_playbook_authoring_prompt]\nstep_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "get_playbook_authoring_prompt"
        },
        "type": "noul"
      },
      "c10": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "step_id": "not a number"
          },
          "parameter": "step_id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[get_playbook_authoring_prompt]\nstep_id\n  Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='not a number', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/int_parsing",
          "tool": "get_playbook_authoring_prompt"
        },
        "type": "noul"
      },
      "c11": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "2 validation errors for call[save_workflow]\nskeleton\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument\nplaybooks_by_step\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "save_workflow"
        },
        "type": "noul"
      },
      "c12": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "playbooks_by_step": {},
            "skeleton": "not an object"
          },
          "parameter": "skeleton",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[save_workflow]\nskeleton\n  Input should be a valid dictionary [type=dict_type, input_value='not an object', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/dict_type",
          "tool": "save_workflow"
        },
        "type": "noul"
      },
      "c13": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "2 validation errors for call[update_playbook]\nstep_id\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument\ncontent\n  Missing required argument [type=missing_argument, input_value={}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.14/v/missing_argument",
          "tool": "update_playbook"
        },
        "type": "noul"
      },
      "c14": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "content": "didrun",
            "step_id": "not a number"
          },
          "parameter": "step_id",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "1 validation error for call[update_playbook]\nstep_id\n  Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='not a number', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.14/v/int_parsing",
          "tool": "update_playbook"
        },
        "type": "noul"
      },
      "c15": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "Unknown tool: 'didrun_unknown_tool'",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here is the system prompt returned by the tool:\n\n# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project management system. A workflow is a reusable template made of **steps** connected by **edges** that define how execution flows between them — including conditional branches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a workflow into a **structured process skeleton**: the list of steps with their input and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear branching logic), ask the user clarifying questions before producing the skeleton. Confirm the step list and branching logic with the user before finalizing — playbooks are written against these specs, so the structure must be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"",
          "done_when": "The transcript shows the workflow skeleton authoring prompt returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            }
          ],
          "task": "Show me the system prompt for turning a plain-language process into a workflow skeleton."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The tool returned the following system prompt:\n\n# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n",
          "done_when": "The transcript shows the workflow skeleton authoring prompt returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            }
          ],
          "task": "Show me the system prompt for turning a plain-language process into a workflow skeleton."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "The tool returned the following system prompt:\n\n````text\n# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n`",
          "done_when": "The transcript shows the workflow skeleton authoring prompt returned by the server.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            }
          ],
          "task": "Show me the system prompt for turning a plain-language process into a workflow skeleton."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created **Quick greeting** and listed the saved workflows. The listing shows:\n\n- **Quick greeting** (ID 1)\n  - **Write greeting** — produces an object with a `greeting` string containing a short greeting.\n\nThe step’s playbook asks for a short greeting. The server’s skeleton schema uses `text` as the output type, with the object shape specified in the output constraints.",
          "done_when": "The transcript shows the workflow saved and a workflow listing containing 'Quick greeting' with its 'Write greeting' step.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Write greeting": "Write a short greeting, using any context provided. Return an object with a `greeting` field containing the greeting as a string."
                },
                "skeleton": {
                  "description": "Create a short greeting.",
                  "edges": [],
                  "name": "Quick greeting",
                  "process": [
                    {
                      "input_spec": {
                        "description": "Any greeting context provided at task creation.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Write greeting",
                      "order": 1,
                      "output_spec": {
                        "constraints": "Output must be an object with a string field named greeting containing a short greeting.",
                        "description": "An object containing a greeting string.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"created_at\":\"2026-11-23T03:41:05\",\"steps\":[{\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context provided at task creation.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting containing a short greeting.\",\"description\":\"An object containing a greeting string.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {},
              "reply": "{\"workflows\":[{\"id\":1,\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"steps\":[{\"id\":1,\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context provided at task creation.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting containing a short greeting.\",\"description\":\"An object containing a greeting string.\",\"type\":\"text\"}}]}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows\"}",
              "tool": "list_workflows"
            }
          ],
          "task": "Create a workflow named 'Quick greeting' with one step, 'Write greeting', whose playbook asks for a short greeting and whose output is an object with a greeting string. Use the server's skeleton-authoring guidance to determine the required structure, then list workflows so I can see the saved workflow and its step."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created **Quick greeting** and listed the saved workflows. The server returned:\n\n- **Workflow ID 1:** Quick greeting\n  - **Step 1:** Write greeting\n  - **Output:** An object with a `greeting` string containing a short greeting.\n\nThe playbook asks for a short greeting and specifies that output format. The server’s skeleton guidance requires the output specification’s type to be `text`, so the object shape is specified in its constraints.",
          "done_when": "The transcript shows the workflow saved and a workflow listing containing 'Quick greeting' with its 'Write greeting' step.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Write greeting": "Write a short greeting. Return an object with a `greeting` field containing the greeting as a string."
                },
                "skeleton": {
                  "description": "Create a short greeting.",
                  "edges": [],
                  "name": "Quick greeting",
                  "process": [
                    {
                      "input_spec": {
                        "description": "Any greeting context provided at task creation.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Write greeting",
                      "order": 1,
                      "output_spec": {
                        "constraints": "Output must be an object with a string field named greeting containing a short greeting.",
                        "description": "An object containing a greeting string.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"created_at\":\"2026-11-23T03:41:19\",\"steps\":[{\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context provided at task creation.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting containing a short greeting.\",\"description\":\"An object containing a greeting string.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {},
              "reply": "{\"workflows\":[{\"id\":1,\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"steps\":[{\"id\":1,\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context provided at task creation.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting containing a short greeting.\",\"description\":\"An object containing a greeting string.\",\"type\":\"text\"}}]}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows\"}",
              "tool": "list_workflows"
            }
          ],
          "task": "Create a workflow named 'Quick greeting' with one step, 'Write greeting', whose playbook asks for a short greeting and whose output is an object with a greeting string. Use the server's skeleton-authoring guidance to determine the required structure, then list workflows so I can see the saved workflow and its step."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created **Quick greeting** and confirmed it appears in the workflow list:\n\n- **Workflow ID:** 1\n- **Step:** Write greeting\n- **Playbook:** Write a short greeting and return it in a `greeting` string field.\n- **Output:** An object such as `{\"greeting\": \"Hello!\"}`\n\nThe server’s skeleton format labels the output type as `text`, with the object structure specified in its constraints.",
          "done_when": "The transcript shows the workflow saved and a workflow listing containing 'Quick greeting' with its 'Write greeting' step.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Write greeting": "Write a short greeting. Return an object with a `greeting` field containing the greeting as a string."
                },
                "skeleton": {
                  "description": "Create a short greeting.",
                  "edges": [],
                  "name": "Quick greeting",
                  "process": [
                    {
                      "input_spec": {
                        "description": "Any greeting context supplied when the task is created.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Write greeting",
                      "order": 1,
                      "output_spec": {
                        "constraints": "Output must be an object with a string field named greeting.",
                        "description": "An object containing a short greeting.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"created_at\":\"2026-11-23T03:41:32\",\"steps\":[{\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context supplied when the task is created.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting.\",\"description\":\"An object containing a short greeting.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {},
              "reply": "{\"workflows\":[{\"id\":1,\"name\":\"Quick greeting\",\"description\":\"Create a short greeting.\",\"steps\":[{\"id\":1,\"order\":1,\"name\":\"Write greeting\",\"input_spec\":{\"description\":\"Any greeting context supplied when the task is created.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a string field named greeting.\",\"description\":\"An object containing a short greeting.\",\"type\":\"text\"}}]}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows\"}",
              "tool": "list_workflows"
            }
          ],
          "task": "Create a workflow named 'Quick greeting' with one step, 'Write greeting', whose playbook asks for a short greeting and whose output is an object with a greeting string. Use the server's skeleton-authoring guidance to determine the required structure, then list workflows so I can see the saved workflow and its step."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created the one-step **Color note** workflow and the **Record blue** task. I started the task and submitted:\n\n```json\n{\"color\": \"blue\"}\n```\n\nThe server returned status **done**.",
          "done_when": "The transcript shows the workflow and named task created, the task started, and the blue output submitted with a done status.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Record color": "Record the requested color. Return an object with a `color` field containing the color as a string."
                },
                "skeleton": {
                  "description": "Record a color as a string in an output object.",
                  "edges": [],
                  "name": "Color note",
                  "process": [
                    {
                      "input_spec": {
                        "description": "The color to record, provided with the task.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Record color",
                      "order": 1,
                      "output_spec": {
                        "constraints": "The output must be an object containing a color field whose value is a string.",
                        "description": "An object recording the color.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Color note\",\"description\":\"Record a color as a string in an output object.\",\"created_at\":\"2026-11-23T03:41:46\",\"steps\":[{\"order\":1,\"name\":\"Record color\",\"input_spec\":{\"description\":\"The color to record, provided with the task.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"The output must be an object containing a color field whose value is a string.\",\"description\":\"An object recording the color.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {
                "description": "Record the color blue.",
                "name": "Record blue",
                "workflow_id": 1
              },
              "reply": "{\"id\":1,\"workflow_id\":1,\"name\":\"Record blue\",\"description\":\"Record the color blue.\",\"status\":\"todo\",\"current_step_id\":null,\"progress_notes\":null,\"created_at\":\"2026-11-23T03:41:48\",\"first_step\":{\"name\":\"Record color\",\"order\":1,\"input_spec\":{\"description\":\"The color to record, provided with the task.\",\"from_step\":null,\"source\":\"static\"}},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "create_task"
            },
            {
              "arguments": {
                "task_id": 1
              },
              "reply": "{\"task\":{\"id\":1,\"name\":\"Record blue\",\"status\":\"in_progress\",\"description\":\"Record the color blue.\"},\"current_step\":{\"name\":\"Record color\",\"input_data\":{\"description\":\"The color to record, provided with the task.\",\"source\":\"static\"},\"output_spec\":{\"constraints\":\"The output must be an object containing a color field whose value is a string.\",\"description\":\"An object recording the color.\",\"type\":\"text\"},\"playbook\":\"Record the requested color. Return an object with a `color` field containing the color as a string.\",\"requires_approval\":false},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "start_or_continue_task"
            },
            {
              "arguments": {
                "output": {
                  "color": "blue"
                },
                "task_id": 1
              },
              "reply": "{\"status\":\"done\"}",
              "tool": "submit_output"
            }
          ],
          "task": "Create a one-step workflow named 'Color note' that produces an object with a color string, using the server's authoring guidance for the skeleton. I confirm this workflow choice: create a task named 'Record blue' under it, start the task, and submit an output with color set to 'blue', following the step's output specification."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created the one-step **Color note** workflow and the **Record blue** task. Started the task and submitted:\n\n```json\n{\"color\": \"blue\"}\n```\n\nThe server returned status **done**.",
          "done_when": "The transcript shows the workflow and named task created, the task started, and the blue output submitted with a done status.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Record color": "Record the requested color. Submit an object with a `color` field containing the color as a string."
                },
                "skeleton": {
                  "description": "Record a color in an object.",
                  "edges": [],
                  "name": "Color note",
                  "process": [
                    {
                      "input_spec": {
                        "description": "The color to record, provided with the task.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Record color",
                      "order": 1,
                      "output_spec": {
                        "constraints": "Output must be an object with a color field whose value is a string.",
                        "description": "An object recording the color.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Color note\",\"description\":\"Record a color in an object.\",\"created_at\":\"2026-11-23T03:42:03\",\"steps\":[{\"order\":1,\"name\":\"Record color\",\"input_spec\":{\"description\":\"The color to record, provided with the task.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a color field whose value is a string.\",\"description\":\"An object recording the color.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {
                "description": "Record the color blue.",
                "name": "Record blue",
                "workflow_id": 1
              },
              "reply": "{\"id\":1,\"workflow_id\":1,\"name\":\"Record blue\",\"description\":\"Record the color blue.\",\"status\":\"todo\",\"current_step_id\":null,\"progress_notes\":null,\"created_at\":\"2026-11-23T03:42:05\",\"first_step\":{\"name\":\"Record color\",\"order\":1,\"input_spec\":{\"description\":\"The color to record, provided with the task.\",\"from_step\":null,\"source\":\"static\"}},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "create_task"
            },
            {
              "arguments": {
                "task_id": 1
              },
              "reply": "{\"task\":{\"id\":1,\"name\":\"Record blue\",\"status\":\"in_progress\",\"description\":\"Record the color blue.\"},\"current_step\":{\"name\":\"Record color\",\"input_data\":{\"description\":\"The color to record, provided with the task.\",\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a color field whose value is a string.\",\"description\":\"An object recording the color.\",\"type\":\"text\"},\"playbook\":\"Record the requested color. Submit an object with a `color` field containing the color as a string.\",\"requires_approval\":false},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "start_or_continue_task"
            },
            {
              "arguments": {
                "output": {
                  "color": "blue"
                },
                "task_id": 1
              },
              "reply": "{\"status\":\"done\"}",
              "tool": "submit_output"
            }
          ],
          "task": "Create a one-step workflow named 'Color note' that produces an object with a color string, using the server's authoring guidance for the skeleton. I confirm this workflow choice: create a task named 'Record blue' under it, start the task, and submit an output with color set to 'blue', following the step's output specification."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Created the one-step **Color note** workflow and the **Record blue** task. I started the task and submitted:\n\n```json\n{\"color\": \"blue\"}\n```\n\nThe server returned status **done**.",
          "done_when": "The transcript shows the workflow and named task created, the task started, and the blue output submitted with a done status.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {},
              "reply": "# System Prompt — Pass 1: Process Skeleton Authoring\n\nYou are helping the user define a new **workflow** for an AI-native project\nmanagement system. A workflow is a reusable template made of **steps** connected\nby **edges** that define how execution flows between them — including conditional\nbranches. Each step will later get a playbook (that happens in Pass 2 — not now).\n\nYour job in this pass is to turn the user's plain-language description of a\nworkflow into a **structured process skeleton**: the list of steps with their\ninput and output specifications, plus the edges that connect them.\n\n## How to work\n\n1. Read the user's description of the workflow.\n2. If the workflow is ambiguous (unclear steps, unclear deliverables, unclear\n   branching logic), ask the user clarifying questions before producing the\n   skeleton. Confirm the step list and branching logic with the user before\n   finalizing — playbooks are written against these specs, so the structure must\n   be right first.\n3. When a step has conditional outgoing edges, consider adding helper field(s) in the `output_spec` for the condition check(s).\n3. Produce the skeleton as a single JSON object (see schema below).\n\n## Output schema\n\nReturn exactly one JSON object of this shape:\n\n```json\n{\n  \"name\": \"Blog Post\",\n  \"description\": \"Workflow for researching, writing, editing, and publishing a blog post.\",\n  \"process\": [\n    {\n      \"order\": 1,\n      \"name\": \"Research\",\n      \"input_spec\": {\n        \"description\": \"What this step needs to begin.\",\n        \"source\": \"static\",\n        \"from_step\": null\n      },\n      \"output_spec\": {\n        \"type\": \"file\",\n        \"description\": \"The deliverable that proves the step is done.\",\n        \"constraints\": \"e.g. must be a markdown file\"\n      }\n    }\n  ],\n  \"edges\": [\n    {\"from\": \"Research\", \"to\": \"Outline\", \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\nFor a branching workflow, the edges express the routing logic:\n\n```json\n{\n  \"name\": \"Content Review\",\n  \"description\": \"Write and review before publishing, with an optional fast-track.\",\n  \"process\": [\n    {\"order\": 1, \"name\": \"Draft\",         \"input_spec\": {\"description\": \"Topic.\", \"source\": \"static\", \"from_step\": null},         \"output_spec\": {\"type\": \"file\", \"description\": \"Draft + review_needed field\", \"constraints\": \"output must include review_needed boolean\"}},\n    {\"order\": 2, \"name\": \"Quick Publish\", \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}},\n    {\"order\": 3, \"name\": \"Deep Edit\",     \"input_spec\": {\"description\": \"Draft.\", \"source\": \"previous_step_output\", \"from_step\": \"Draft\"},        \"output_spec\": {\"type\": \"file\", \"description\": \"Edited doc\", \"constraints\": \"markdown\"}},\n    {\"order\": 4, \"name\": \"Publish\",       \"input_spec\": {\"description\": \"Edited doc.\", \"source\": \"previous_step_output\", \"from_step\": \"Deep Edit\"}, \"output_spec\": {\"type\": \"url\",  \"description\": \"Published URL\", \"constraints\": \"valid URL\"}}\n  ],\n  \"edges\": [\n    {\"from\": \"Draft\", \"to\": \"Quick Publish\", \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": false}, \"priority\": 0},\n    {\"from\": \"Draft\", \"to\": \"Deep Edit\",     \"condition\": {\"field\": \"review_needed\", \"operator\": \"eq\", \"value\": true},  \"priority\": 1},\n    {\"from\": \"Deep Edit\", \"to\": \"Publish\",   \"condition\": null, \"priority\": 0}\n  ]\n}\n```\n\n### Field rules\n\n- `order` — integer used only for display/layout ordering; it does **not**\n  determine execution order (edges do). Use sequential 1-based integers.\n- `input_spec.source` — either `\"static\"` (the step starts from information given\n  at task creation) or `\"previous_step_output\"` (it consumes a prior step's\n  output). When `previous_step_output`, set `from_step` to the **name** of the\n  source step (e.g. `\"Draft\"`); otherwise `from_step` is `null`.\n- `output_spec.type` — one of `\"file\"`, `\"url\"`, or `\"text\"`.\n- The **entry step** (no incoming edges) should almost always have\n  `input_spec.source = \"static\"`.\n- Keep steps coarse enough to be meaningful deliverables (3–6 steps is typical),\n  not micro-tasks.\n- `edges` — list of transitions. Each edge has:\n  - `from` — name of the source step\n  - `to` — name of the destination step\n  - `condition` — `null` for an unconditional edge, or\n    `{\"field\": \"<output-key>\", \"operator\": \"<op>\", \"value\": <v>}` for a\n    conditional edge. Operators: `eq`, `neq`, `in`, `not_in`.\n  - `priority` — integer; when a step has multiple outgoing edges, they are\n    evaluated in ascending priority order and the first matching one is taken.\n    Use 0, 1, 2 … Keep at least one unconditional (`null`) edge as a fallback\n    when using conditions, or ensure all branches are covered.\n- A **terminal step** has no outgoing edges. The task completes when it is\n  reached.\n- For a simple linear workflow, `edges` connects step[i] → step[i+1] with\n  `condition: null`. If you omit `edges` entirely, the system will auto-generate\n  linear edges from the `order` values.\n\nDo not write playbooks in this pass. Once the user approves the skeleton, it is\nsaved and Pass 2 authors each step's playbook.\n",
              "tool": "get_process_skeleton_prompt"
            },
            {
              "arguments": {
                "playbooks_by_step": {
                  "Record color": "Record the requested color. Submit an object with a `color` field containing the color as a string."
                },
                "skeleton": {
                  "description": "Record a color in an object.",
                  "edges": [],
                  "name": "Color note",
                  "process": [
                    {
                      "input_spec": {
                        "description": "The color to record, supplied when the task is created or started.",
                        "from_step": null,
                        "source": "static"
                      },
                      "name": "Record color",
                      "order": 1,
                      "output_spec": {
                        "constraints": "Output must be an object with a color field whose value is a string.",
                        "description": "An object containing the recorded color.",
                        "type": "text"
                      }
                    }
                  ]
                }
              },
              "reply": "{\"name\":\"Color note\",\"description\":\"Record a color in an object.\",\"created_at\":\"2026-11-23T03:42:19\",\"steps\":[{\"order\":1,\"name\":\"Record color\",\"input_spec\":{\"description\":\"The color to record, supplied when the task is created or started.\",\"from_step\":null,\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a color field whose value is a string.\",\"description\":\"An object containing the recorded color.\",\"type\":\"text\"},\"requires_approval\":false}],\"monitoring_url\":\"http://127.0.0.1:8000/workflows/1\"}",
              "tool": "save_workflow"
            },
            {
              "arguments": {
                "description": "Record the color blue.",
                "name": "Record blue",
                "workflow_id": 1
              },
              "reply": "{\"id\":1,\"workflow_id\":1,\"name\":\"Record blue\",\"description\":\"Record the color blue.\",\"status\":\"todo\",\"current_step_id\":null,\"progress_notes\":null,\"created_at\":\"2026-11-23T03:42:21\",\"first_step\":{\"name\":\"Record color\",\"order\":1,\"input_spec\":{\"description\":\"The color to record, supplied when the task is created or started.\",\"from_step\":null,\"source\":\"static\"}},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "create_task"
            },
            {
              "arguments": {
                "task_id": 1
              },
              "reply": "{\"task\":{\"id\":1,\"name\":\"Record blue\",\"status\":\"in_progress\",\"description\":\"Record the color blue.\"},\"current_step\":{\"name\":\"Record color\",\"input_data\":{\"description\":\"The color to record, supplied when the task is created or started.\",\"source\":\"static\"},\"output_spec\":{\"constraints\":\"Output must be an object with a color field whose value is a string.\",\"description\":\"An object containing the recorded color.\",\"type\":\"text\"},\"playbook\":\"Record the requested color. Submit an object with a `color` field containing the color as a string.\",\"requires_approval\":false},\"monitoring_url\":\"http://127.0.0.1:8000/tasks/1\"}",
              "tool": "start_or_continue_task"
            },
            {
              "arguments": {
                "output": {
                  "color": "blue"
                },
                "task_id": 1
              },
              "reply": "{\"status\":\"done\"}",
              "tool": "submit_output"
            }
          ],
          "task": "Create a one-step workflow named 'Color note' that produces an object with a color string, using the server's authoring guidance for the skeleton. I confirm this workflow choice: create a task named 'Record blue' under it, start the task, and submit an output with color set to 'blue', following the step's output specification."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M835S9YQMJ5AQ5AD68Q5GC94",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.98,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.99,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.97,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.98,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.98,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.98,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.98,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.97,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.98,
      "question": "w08"
    }
  ]
}
