{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.",
  "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
  "choices": [
    "Propagated",
    "Suppressed",
    "No path shown",
    "Review"
  ],
  "actions": {
    "Propagated": {
      "action": "preview_jev_cancellation_propagation",
      "payload": {
        "decision": "Propagated"
      },
      "pending": true
    },
    "Suppressed": {
      "action": "preview_jev_cancellation_propagation",
      "payload": {
        "decision": "Suppressed"
      },
      "pending": true
    },
    "No path shown": {
      "action": "preview_jev_cancellation_propagation",
      "payload": {
        "decision": "No path shown"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_cancellation_propagation",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Cleanup then rethrow",
      "expected": "Propagated",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"A documented cancellation exception.\",\n    \"handler\": \"Catch cancellation, release local resources, rethrow the same cancellation.\",\n    \"after\": \"No ordinary success return.\"\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Logged then continued",
      "expected": "Suppressed",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"The caught exception is explicitly cancellation.\",\n    \"handler\": \"Log it and continue the main work loop.\",\n    \"after\": \"No rethrow or cancellation return.\"\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Success fallback",
      "expected": "Suppressed",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"Explicit cancellation exception.\",\n    \"handler\": \"Catch it and return a normal success value.\",\n    \"after\": \"Caller receives no cancellation indication.\"\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Ordinary validation recovery",
      "expected": "No path shown",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"Only an input-validation error, explicitly not cancellation.\",\n    \"handler\": \"Complete excerpt catches that validation error and asks for corrected input.\",\n    \"after\": \"No cancellation path exists in this excerpt.\"\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unknown catch-all semantics",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"Unknown whether cancellation belongs to the caught base type in this runtime.\",\n    \"handler\": \"Catch base error and continue.\",\n    \"after\": \"No type definitions supplied.\"\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Missing branch",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Review the control flow of an explicit cancellation exception through a handler and loop without running or cancelling a task.\",\n  \"evidence\": {\n    \"signal\": \"Cancellation is explicitly caught.\",\n    \"handler\": \"Delegates to handleCancellation(), whose behavior is omitted.\",\n    \"after\": null\n  }\n}",
        "question": "Trace the supplied cancellation path. Propagated means the cancellation reaches the caller after any cleanup. Suppressed means the handler catches it and continues ordinary work or returns ordinary success without propagation. No path shown means a complete supplied excerpt has no cancellation handling path. Review takes precedence for missing/conflicting exception semantics or handler branches. Do not treat ordinary error recovery as cancellation or infer behavior from a log message.",
        "choices": [
          "Propagated",
          "Suppressed",
          "No path shown",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
