{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify how an incoming user message relates to an agent action that is still in progress.",
  "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
  "choices": [
    "Correction",
    "Added work",
    "Side question",
    "Other",
    "Need context"
  ],
  "actions": {
    "Correction": {
      "action": "preview_jev_midrun_message_kind",
      "payload": {
        "decision": "Correction"
      },
      "pending": true
    },
    "Added work": {
      "action": "preview_jev_midrun_message_kind",
      "payload": {
        "decision": "Added work"
      },
      "pending": true
    },
    "Side question": {
      "action": "preview_jev_midrun_message_kind",
      "payload": {
        "decision": "Side question"
      },
      "pending": true
    },
    "Other": {
      "action": "preview_jev_midrun_message_kind",
      "payload": {
        "decision": "Other"
      },
      "pending": true
    },
    "Need context": {
      "action": "preview_jev_midrun_message_kind",
      "payload": {
        "decision": "Need context"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Correct the target",
      "expected": "Correction",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": \"Edit staging settings.\",\n    \"currentAction\": \"Opening production settings for an edit.\",\n    \"userMessage\": \"Stop: staging is the target, not production.\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Add a later report",
      "expected": "Added work",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": \"Run the unit tests.\",\n    \"currentAction\": \"Executing the requested test suite.\",\n    \"userMessage\": \"After these tests, write a short report of the failed cases.\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Unrelated question",
      "expected": "Side question",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": \"Fix a CSS spacing bug.\",\n    \"currentAction\": \"Inspecting the stylesheet.\",\n    \"userMessage\": \"While you work, what does HTTP stand for?\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Simple acknowledgment",
      "expected": "Other",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": \"Fix a CSS spacing bug.\",\n    \"currentAction\": \"Editing the requested spacing rule.\",\n    \"userMessage\": \"Thanks, I will wait.\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Correct and add",
      "expected": "Correction",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": \"Update staging settings.\",\n    \"currentAction\": \"Editing production settings.\",\n    \"userMessage\": \"Stop that edit. Use staging, then include a diff summary.\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Missing action",
      "expected": "Need context",
      "request": {
        "context": "{\n  \"task\": \"Classify how an incoming user message relates to an agent action that is still in progress.\",\n  \"evidence\": {\n    \"goal\": null,\n    \"currentAction\": null,\n    \"userMessage\": \"Do the other one instead.\"\n  }\n}",
        "question": "Compare userMessage with the currentAction and goal. Correction: says the current action is wrong or should stop; takes priority. Added work: asks for further work after the current task. Side question: asks something unrelated to current work. Other: none of those, including thanks or a related informational question. Need context: the current work or message is missing or ambiguous. Classify the message only; do not interrupt, queue or execute work.",
        "choices": [
          "Correction",
          "Added work",
          "Side question",
          "Other",
          "Need context"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
