{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.",
  "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
  "choices": [
    "Unrecorded primary failure",
    "Recorded failure",
    "Allowed fallback",
    "Need flow evidence"
  ],
  "actions": {
    "Unrecorded primary failure": {
      "action": "preview_jev_primary_failure_fallback",
      "payload": {
        "decision": "Unrecorded primary failure"
      },
      "pending": true
    },
    "Recorded failure": {
      "action": "preview_jev_primary_failure_fallback",
      "payload": {
        "decision": "Recorded failure"
      },
      "pending": true
    },
    "Allowed fallback": {
      "action": "preview_jev_primary_failure_fallback",
      "payload": {
        "decision": "Allowed fallback"
      },
      "pending": true
    },
    "Need flow evidence": {
      "action": "preview_jev_primary_failure_fallback",
      "payload": {
        "decision": "Need flow evidence"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Orders query becomes empty",
      "expected": "Unrecorded primary failure",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": \"Required database read for the order list\",\n    \"failurePath\": \"catch returns an empty array without logging, metrics, error state or propagation.\",\n    \"caller\": \"The caller displays No orders yet for that array.\",\n    \"scope\": \"Complete operation and failure channels are supplied.\"\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Failure recorded before default",
      "expected": "Recorded failure",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": \"Required database read for the order list\",\n    \"failurePath\": \"catch records an order-read-failed event, then returns an empty array.\",\n    \"caller\": \"The caller still displays the empty state.\",\n    \"scope\": \"Complete path; the event records the operation failure.\"\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Optional avatar cache",
      "expected": "Allowed fallback",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": \"Optional avatar-cache lookup; primary user data arrives independently\",\n    \"failurePath\": \"A cache-read failure returns null and falls back to the existing generic avatar.\",\n    \"caller\": \"The main user record remains available.\",\n    \"scope\": \"The optional role and fallback are explicit.\"\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Documented deny-on-failure",
      "expected": "Allowed fallback",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": \"Permission lookup\",\n    \"policy\": \"The supplied policy explicitly denies access when the service is unavailable.\",\n    \"failurePath\": \"catch returns false, and the caller denies access.\",\n    \"scope\": \"Complete path matches the stated fail-closed policy.\"\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Caller missing",
      "expected": "Need flow evidence",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": null,\n    \"failurePath\": \"catch { return []; }\",\n    \"caller\": null,\n    \"scope\": \"No outer failure handling is supplied.\"\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "No implementation",
      "expected": "Need flow evidence",
      "request": {
        "context": "{\n  \"task\": \"Inspect whether a required operation’s failure is exposed or silently converted into an ordinary empty result.\",\n  \"evidence\": {\n    \"operation\": \"Use a default if an exception happens.\",\n    \"failurePath\": null,\n    \"caller\": null\n  }\n}",
        "question": "Inspect operation role, caller and failure channels. Need flow evidence: relevant paths are missing or conflicting. Allowed fallback: an explicit optional probe, input default or documented fail-closed policy. Otherwise Recorded failure: log, metric, error state or propagation exposes failure. Unrecorded primary failure: a required operation becomes an ordinary empty result with no failure channel. Inspect supplied code only; Allowed fallback is not a safety certification.",
        "choices": [
          "Unrecorded primary failure",
          "Recorded failure",
          "Allowed fallback",
          "Need flow evidence"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
