{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Check whether the requested output requires original prose, an exact lookup, unchanged approved text, no text or additional requirements. This original demonstration selects an output type; it does not select a provider, generate prose, retrieve an account value or send a message.",
  "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
  "choices": [
    "Generate text",
    "Use lookup",
    "Reuse text",
    "No text",
    "Need requirements"
  ],
  "actions": {
    "Generate text": {
      "action": "preview_decision_report",
      "payload": {
        "outputType": "new-prose",
        "nextStep": "review-draft-requirements"
      },
      "pending": true
    },
    "Use lookup": {
      "action": "preview_decision_report",
      "payload": {
        "outputType": "known-value",
        "nextStep": "application-lookup"
      },
      "pending": false
    },
    "Reuse text": {
      "action": "preview_decision_report",
      "payload": {
        "outputType": "approved-prose",
        "nextStep": "application-text-retrieval"
      },
      "pending": false
    },
    "No text": {
      "action": "preview_decision_report",
      "payload": {
        "outputType": "none",
        "nextStep": "no-textual-output"
      },
      "pending": false
    },
    "Need requirements": {
      "action": "preview_decision_report",
      "payload": {
        "outputType": "unresolved",
        "nextStep": "clarify-output-requirements"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "summary",
      "label": "A fresh incident summary",
      "expected": "Generate text",
      "request": {
        "context": "{\n  \"task\": \"Write an original 80-word summary of a supplied incident timeline for account managers. No existing summary or fixed template satisfies this output.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    },
    {
      "id": "lookup",
      "label": "An exact known status",
      "expected": "Use lookup",
      "request": {
        "context": "{\n  \"task\": \"Return the exact knownValues.orderStatus value for display. Do not add explanatory prose.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    },
    {
      "id": "reuse",
      "label": "An unchanged approved paragraph",
      "expected": "Reuse text",
      "request": {
        "context": "{\n  \"task\": \"Display the approvedText.supportHours paragraph exactly as stored. The wording and audience are already approved; no edits are requested.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    },
    {
      "id": "missing",
      "label": "An unspecified output",
      "expected": "Need requirements",
      "request": {
        "context": "{\n  \"task\": \"Make something appropriate for that person. No subject, audience, format or requested output is supplied.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    },
    {
      "id": "none",
      "label": "A completed heartbeat",
      "expected": "No text",
      "request": {
        "context": "{\n  \"task\": \"This duplicate heartbeat is already acknowledged. The output policy for this work item explicitly requires no text response.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    },
    {
      "id": "rewrite",
      "label": "A new version for another audience",
      "expected": "Generate text",
      "request": {
        "context": "{\n  \"task\": \"Rewrite an existing technical incident paragraph into a short explanation for nontechnical customers. Copying the approved paragraph unchanged will not satisfy the requested audience.\",\n  \"knownValues\": {\n    \"orderStatus\": \"Dispatched\"\n  },\n  \"approvedText\": {\n    \"supportHours\": \"Our support desk is open Monday to Friday, 09:00 to 17:00 UTC.\"\n  },\n  \"outputPolicy\": \"This decision creates only a local report. Generation, lookup, approved-text retrieval and delivery belong to separate application code.\"\n}",
        "question": "Use task, knownValues, approvedText and outputPolicy. Generate text: fresh prose or a rewrite is needed. Use lookup: an exact existing value is requested. Reuse text: approved wording satisfies the output unchanged. No text: the task explicitly requires no textual response. Need requirements: necessary output details are missing. Select the type only; do not generate, select a provider, run a lookup or send anything.",
        "choices": [
          "Generate text",
          "Use lookup",
          "Reuse text",
          "No text",
          "Need requirements"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
