{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify a supplied issue excerpt by the work it asks someone to perform.",
  "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
  "choices": [
    "Bug fix",
    "Feature",
    "Documentation",
    "Mixed work",
    "Need evidence"
  ],
  "actions": {
    "Bug fix": {
      "action": "preview_jev_github_issue_work_type",
      "payload": {
        "decision": "Bug fix"
      },
      "pending": true
    },
    "Feature": {
      "action": "preview_jev_github_issue_work_type",
      "payload": {
        "decision": "Feature"
      },
      "pending": true
    },
    "Documentation": {
      "action": "preview_jev_github_issue_work_type",
      "payload": {
        "decision": "Documentation"
      },
      "pending": true
    },
    "Mixed work": {
      "action": "preview_jev_github_issue_work_type",
      "payload": {
        "decision": "Mixed work"
      },
      "pending": true
    },
    "Need evidence": {
      "action": "preview_jev_github_issue_work_type",
      "payload": {
        "decision": "Need evidence"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Broken CSV export",
      "expected": "Bug fix",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"The documented CSV export crashes on a quoted comma. Please restore the documented behavior.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "New XML export",
      "expected": "Feature",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"CSV export works. Please add XML export; it has never been supported.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Clarify setup notes",
      "expected": "Documentation",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"The installer works. Please clarify the setup guide; no implementation change is requested.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Fix plus explain",
      "expected": "Mixed work",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"Please fix the export crash and rewrite the related setup guide. Both changes are requested equally.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Bug named in a docs request",
      "expected": "Documentation",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"Title: bug guide. Body: add a troubleshooting guide for known errors; do not change code.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Missing issue body",
      "expected": "Need evidence",
      "request": {
        "context": "{\n  \"task\": \"Classify a supplied issue excerpt by the work it asks someone to perform.\",\n  \"evidence\": \"The issue title and body were not supplied.\"\n}",
        "question": "Classify the requested issue work. Bug fix: Restore a stated behavior that fails. Feature: Add a capability not claimed to exist. Documentation: Change explanatory material only. Mixed work: Multiple work types are equally requested. Need evidence: Required text or context is absent. Use only supplied evidence.",
        "choices": [
          "Bug fix",
          "Feature",
          "Documentation",
          "Mixed work",
          "Need evidence"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
