{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.",
  "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
  "choices": [
    "Continue existing",
    "Correction",
    "Question",
    "New task",
    "Acknowledgment",
    "Need exchange"
  ],
  "actions": {
    "Continue existing": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "Continue existing"
      },
      "pending": true
    },
    "Correction": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "Correction"
      },
      "pending": true
    },
    "Question": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "Question"
      },
      "pending": true
    },
    "New task": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "New task"
      },
      "pending": true
    },
    "Acknowledgment": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "Acknowledgment"
      },
      "pending": true
    },
    "Need exchange": {
      "action": "preview_jev_stop_reply_reaction",
      "payload": {
        "decision": "Need exchange"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Stopped at an offer",
      "expected": "Continue existing",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"requested\": \"Fix the typo in the selected file.\",\n    \"agentFinal\": \"I found the typo. I can fix it if you want.\",\n    \"userReply\": \"Please do the fix I requested.\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Wrong destination",
      "expected": "Correction",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"requested\": \"Update staging only.\",\n    \"agentFinal\": \"I updated production.\",\n    \"userReply\": \"That is the wrong environment. Correct it.\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Ask about evidence",
      "expected": "Question",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"requested\": \"Run the tests.\",\n    \"agentFinal\": \"The test run passed.\",\n    \"userReply\": \"Which test command did you run?\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Move to another task",
      "expected": "New task",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"requested\": \"Fix the typo.\",\n    \"agentFinal\": \"The typo is fixed.\",\n    \"userReply\": \"That is done, thanks. Now add a table of contents.\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Simple thanks",
      "expected": "Acknowledgment",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"requested\": \"Fix the typo.\",\n    \"agentFinal\": \"The typo is fixed.\",\n    \"userReply\": \"Thanks, that is what I needed.\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Missing prior message",
      "expected": "Need exchange",
      "request": {
        "context": "{\n  \"task\": \"Classify a user’s reply to an agent stop as a request to continue, a correction, a question or a new task.\",\n  \"evidence\": {\n    \"agentFinal\": null,\n    \"userReply\": \"Do that next.\"\n  }\n}",
        "question": "Classify the reply to the agent stop. Continue existing: finish already requested work. Correction: points out an error or rejects the result; takes priority. Question: asks about the work without alleging error. New task: requests different work after accepting completion. Acknowledgment: thanks or confirms without new work. Need exchange: context is missing or intent unresolved. Use the supplied request and exchange; do not act on the reply.",
        "choices": [
          "Continue existing",
          "Correction",
          "Question",
          "New task",
          "Acknowledgment",
          "Need exchange"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
