{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify a requested music edit using an explicit operation catalog and supplied lock state.",
  "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
  "choices": [
    "Parameter edit",
    "Regenerate notes",
    "Other supported edit",
    "Locked-scope conflict",
    "Unsupported request",
    "Need edit context"
  ],
  "actions": {
    "Parameter edit": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Parameter edit"
      },
      "pending": true
    },
    "Regenerate notes": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Regenerate notes"
      },
      "pending": true
    },
    "Other supported edit": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Other supported edit"
      },
      "pending": true
    },
    "Locked-scope conflict": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Locked-scope conflict"
      },
      "pending": true
    },
    "Unsupported request": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Unsupported request"
      },
      "pending": true
    },
    "Need edit context": {
      "action": "preview_jev_music_edit_operation",
      "payload": {
        "decision": "Need edit context"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Tempo parameter",
      "expected": "Parameter edit",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Set the project tempo to 108 BPM.\",\n    \"target\": \"Current project\",\n    \"locks\": \"No note changes requested.\"\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Regenerate a range",
      "expected": "Regenerate notes",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Regenerate the melody in bars 5 through 8.\",\n    \"target\": \"Melody track, bars 5 through 8\",\n    \"locks\": \"The supplied range is unlocked.\"\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Transpose a phrase",
      "expected": "Other supported edit",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Transpose this phrase up two semitones.\",\n    \"target\": \"Bass track, bars 1 through 4\",\n    \"locks\": \"The supplied phrase is unlocked.\"\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Locked note rewrite",
      "expected": "Locked-scope conflict",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Regenerate bars 1 through 4 without changing any lock settings.\",\n    \"target\": \"Melody track, bars 1 through 4\",\n    \"locks\": \"This range is locked.\"\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Generated vocals",
      "expected": "Unsupported request",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Generate and record a sung lead vocal for the project.\",\n    \"target\": \"Current project\",\n    \"locks\": \"No existing note changes requested.\"\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Selection absent",
      "expected": "Need edit context",
      "request": {
        "context": "{\n  \"task\": \"Classify a requested music edit using an explicit operation catalog and supplied lock state.\",\n  \"evidence\": {\n    \"request\": \"Regenerate the selected phrase.\",\n    \"target\": null,\n    \"locks\": null\n  }\n}",
        "question": "Classify one edit. Need edit context: target, operation or required lock state is missing, or edits are mixed. Locked-scope conflict: rewriting locked notes without explicit unlocking. Parameter edit: tempo, instrument, gain or mute. Regenerate notes: regenerate unlocked notes. Other supported edit: transpose, duplicate or change locks. Unsupported request: outside that catalog, including generated vocals. Use only supplied state; do not create or change music.",
        "choices": [
          "Parameter edit",
          "Regenerate notes",
          "Other supported edit",
          "Locked-scope conflict",
          "Unsupported request",
          "Need edit context"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
