{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify the function of a supplied podcast script segment as an episode introduction, topic explanation, transition, sponsor message or unresolved role. Use the actual script and local context. No audio is transcribed, speaker identified, story approved or episode published.",
  "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
  "choices": [
    "Introduction",
    "Explanation",
    "Transition",
    "Sponsor",
    "Need context"
  ],
  "actions": {
    "Introduction": {
      "action": "preview_podcast_segment_role",
      "payload": {
        "decision": "Introduction"
      },
      "pending": true
    },
    "Explanation": {
      "action": "preview_podcast_segment_role",
      "payload": {
        "decision": "Explanation"
      },
      "pending": true
    },
    "Transition": {
      "action": "preview_podcast_segment_role",
      "payload": {
        "decision": "Transition"
      },
      "pending": true
    },
    "Sponsor": {
      "action": "preview_podcast_segment_role",
      "payload": {
        "decision": "Sponsor"
      },
      "pending": true
    },
    "Need context": {
      "action": "preview_podcast_segment_role",
      "payload": {
        "decision": "Need context"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "intro",
      "label": "Welcome and episode preview",
      "expected": "Introduction",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"Welcome to File Notes. In this episode, we will compare local and off-site copies and explain what each can protect.\",\n  \"segmentContext\": \"No other script or timeline is supplied.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    },
    {
      "id": "explain",
      "label": "Substantive topic explanation",
      "expected": "Explanation",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"A second copy can help after accidental deletion because the original and the retained copy are separate files. Recovery depends on that copy still being available.\",\n  \"segmentContext\": \"The current topic is the role of a retained local copy.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    },
    {
      "id": "bridge",
      "label": "Bridge to the next topic",
      "expected": "Transition",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"We have covered local copies. Now we will turn to off-site storage and the situations it addresses.\",\n  \"segmentContext\": \"The prior topic is local copies; the next topic is off-site storage.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    },
    {
      "id": "sponsor",
      "label": "Explicit sponsor message",
      "expected": "Sponsor",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"This is a paid message from our fictional sponsor, Archive Lantern. The sponsor offers a trial storage plan at its own website.\",\n  \"segmentContext\": \"This is original fictional sponsor text, not an actual paid relationship.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    },
    {
      "id": "ambiguous",
      "label": "A line without a clear role",
      "expected": "Need context",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"That makes sense.\",\n  \"segmentContext\": \"No surrounding conversation, topic or placement is supplied.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    },
    {
      "id": "empty",
      "label": "No supplied script",
      "expected": "Need context",
      "request": {
        "context": "{\n  \"task\": \"Classify the role of the supplied script segment.\",\n  \"scriptText\": \"\",\n  \"segmentContext\": \"An episode about file recovery is planned, but this segment text is absent.\"\n}",
        "question": "Classify scriptText using segmentContext. Introduction: welcomes listeners and previews this episode. Explanation: develops the current topic with substantive information. Transition: explicitly bridges from one named topic to another. Sponsor: explicit paid promotion or sponsor offer. Need context: text is missing or its function is unresolved. Classify script function only; do not infer placement from a filename or approve publication.",
        "choices": [
          "Introduction",
          "Explanation",
          "Transition",
          "Sponsor",
          "Need context"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
