{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Identify the remedy explicitly preferred in a supplied customer message, preserving symptom-only and unresolved alternatives before any separate support policy or execution.",
  "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
  "choices": [
    "Refund requested",
    "Replacement requested",
    "Troubleshooting requested",
    "No chosen resolution",
    "Need preference"
  ],
  "actions": {
    "Refund requested": {
      "action": "confirm_refund_preference",
      "payload": {
        "expressedPreference": "Refund requested",
        "proposedConfirmationQuestion": "You requested money back. May the agent review the order and applicable refund policy?",
        "messageSent": false,
        "ticketChanged": false
      },
      "pending": true
    },
    "Replacement requested": {
      "action": "confirm_replacement_preference",
      "payload": {
        "expressedPreference": "Replacement requested",
        "proposedConfirmationQuestion": "You requested another item. May the agent review the order and replacement options?",
        "messageSent": false,
        "ticketChanged": false
      },
      "pending": true
    },
    "Troubleshooting requested": {
      "action": "confirm_troubleshooting_preference",
      "payload": {
        "expressedPreference": "Troubleshooting requested",
        "proposedConfirmationQuestion": "You asked for help with this item. Which observed symptom should the agent investigate?",
        "messageSent": false,
        "ticketChanged": false
      },
      "pending": true
    },
    "No chosen resolution": {
      "action": "ask_for_resolution_preference",
      "payload": {
        "expressedPreference": "No chosen resolution",
        "proposedConfirmationQuestion": "Would you prefer troubleshooting, a replacement review or a refund review?",
        "messageSent": false,
        "ticketChanged": false
      },
      "pending": true
    },
    "Need preference": {
      "action": "clarify_unresolved_preference",
      "payload": {
        "expressedPreference": "Need preference",
        "proposedConfirmationQuestion": "Which single resolution would you like the agent to review first?",
        "messageSent": false,
        "ticketChanged": false
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "1",
      "label": "Money back, explicitly requested",
      "expected": "Refund requested",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"The lamp arrived cracked. I want my payment returned rather than another lamp.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    },
    {
      "id": "2",
      "label": "Another item, explicitly requested",
      "expected": "Replacement requested",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"The lamp arrived cracked. Please send another lamp; I am not asking for money back.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    },
    {
      "id": "3",
      "label": "Help with the current item",
      "expected": "Troubleshooting requested",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"The lamp flickers. Please help me diagnose and fix this lamp; I want to keep it.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    },
    {
      "id": "4",
      "label": "A symptom without a preferred remedy",
      "expected": "No chosen resolution",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"The lamp flickers every few minutes after I turn it on.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    },
    {
      "id": "5",
      "label": "Alternatives without a choice",
      "expected": "Need preference",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"Could you refund it or replace it? I have not decided which I want.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    },
    {
      "id": "6",
      "label": "A paraphrased refund request",
      "expected": "Refund requested",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied evidence under the explicit rule, preserving any missing or unresolved facts.\",\n  \"customerMessage\": \"I no longer want this lamp. Please return the money I paid.\"\n}",
        "question": "Read customerMessage. Refund requested: customer explicitly chooses money back. Replacement requested: explicitly chooses another item. Troubleshooting requested: explicitly asks to repair or diagnose the current item. No chosen resolution: describes a problem but chooses none. Need preference: message absent, conflicting preferences or unresolved alternatives. Do not infer entitlement, team, urgency or policy; never issue refunds, send replacements or update a ticket.",
        "choices": [
          "Refund requested",
          "Replacement requested",
          "Troubleshooting requested",
          "No chosen resolution",
          "Need preference"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
