{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.",
  "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
  "choices": [
    "Failure",
    "Path listing",
    "Source text",
    "Run log",
    "Lookup data",
    "Need result"
  ],
  "actions": {
    "Failure": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Failure"
      },
      "pending": true
    },
    "Path listing": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Path listing"
      },
      "pending": true
    },
    "Source text": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Source text"
      },
      "pending": true
    },
    "Run log": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Run log"
      },
      "pending": true
    },
    "Lookup data": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Lookup data"
      },
      "pending": true
    },
    "Need result": {
      "action": "preview_jev_tool_result_kind",
      "payload": {
        "decision": "Need result"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Failure inside a build log",
      "expected": "Failure",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": \"Bundling started.\\nERROR: Cannot resolve ./invoice-format.\\nBuild terminated.\",\n    \"role\": \"Captured output from the attempted build\"\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Search hits",
      "expected": "Path listing",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": \"src/payments/service.ts:31: capturePayment(order)\\ntests/payments.spec.ts:18: capturePayment(sample)\",\n    \"role\": \"File search matches\"\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Source with a quoted error",
      "expected": "Source text",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": \"export const sampleMessage = \\\"ERROR: sample only\\\";\\nexport function label() { return sampleMessage; }\",\n    \"role\": \"Source file excerpt; no command was executed\"\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Execution progress",
      "expected": "Run log",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": \"Preparing assets...\\nPacked 8 assets.\\nPackaging complete.\",\n    \"role\": \"Captured packaging progress\"\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Returned lookup values",
      "expected": "Lookup data",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": {\n      \"warehouse\": \"North depot\",\n      \"availableUnits\": 18\n    },\n    \"role\": \"Inventory lookup response for the requested warehouse; not a source-file excerpt\"\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Result missing",
      "expected": "Need result",
      "request": {
        "context": "{\n  \"task\": \"Classify the content type of a supplied tool result without deciding whether to retain it or executing the tool.\",\n  \"evidence\": {\n    \"result\": null,\n    \"role\": null\n  }\n}",
        "question": "Classify the result, not the command name. Failure: reports an actual error; wins over log format. Path listing: file names or search hits. Source text: code or document text outside a hit list. Run log: execution progress without an error. Lookup data: returned task facts or values outside those formats. Need result: absent, ambiguous or inseparably mixed content. Quoted error text is not an actual failure. Do not execute or discard anything.",
        "choices": [
          "Failure",
          "Path listing",
          "Source text",
          "Run log",
          "Lookup data",
          "Need result"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
