{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.",
  "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
  "choices": [
    "One completion",
    "Missing completion",
    "Repeated or overwritten",
    "Review"
  ],
  "actions": {
    "One completion": {
      "action": "preview_jev_continuation_completion_path",
      "payload": {
        "decision": "One completion"
      },
      "pending": true
    },
    "Missing completion": {
      "action": "preview_jev_continuation_completion_path",
      "payload": {
        "decision": "Missing completion"
      },
      "pending": true
    },
    "Repeated or overwritten": {
      "action": "preview_jev_continuation_completion_path",
      "payload": {
        "decision": "Repeated or overwritten"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_continuation_completion_path",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Success and failure covered",
      "expected": "One completion",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"Exactly once per invocation, with either success or failure.\",\n    \"bridge\": \"Success resumes with the value; failure resumes by throwing; each branch returns.\",\n    \"ownership\": \"Each invocation owns a separate continuation.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Failure only logs",
      "expected": "Missing completion",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"Exactly once, success or failure.\",\n    \"bridge\": \"Success resumes; failure logs and returns without resuming.\",\n    \"ownership\": \"Separate continuation per invocation.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Unconditional second resume",
      "expected": "Repeated or overwritten",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"Exactly once.\",\n    \"bridge\": \"Success branch resumes, then falls through to another unconditional resume.\",\n    \"ownership\": \"Same continuation.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Shared pending slot",
      "expected": "Repeated or overwritten",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"May arrive later.\",\n    \"bridge\": \"A second invocation overwrites the single stored continuation before the first callback.\",\n    \"ownership\": \"No protection or per-invocation slot; the first is still pending.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unknown callback frequency",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"Frequency and terminal behavior are not supplied.\",\n    \"bridge\": \"Resumes whenever callback is invoked.\",\n    \"ownership\": \"Separate slot per invocation.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Guarded repeated notifications",
      "expected": "One completion",
      "request": {
        "context": "{\n  \"task\": \"Review a supplied callback-to-async bridge for exactly-once completion, missing paths or duplicate/overwritten completion state.\",\n  \"evidence\": {\n    \"callback\": \"May notify repeatedly, including success and later updates.\",\n    \"bridge\": \"An atomic once guard consumes the continuation on the first terminal notification; subsequent notifications cannot resume it.\",\n    \"ownership\": \"Complete per-invocation guard contract; every invocation receives a terminal notification.\"\n  }\n}",
        "question": "Review all bridge completion paths. One completion means each invocation receives exactly one resume under an explicit callback contract. Missing completion means a shown terminal path never resumes. Repeated or overwritten means a path can resume twice or replace a still-pending continuation. Review takes precedence for unknown/conflicting branches, callback count or invocation ownership. If both defects are explicit choose Repeated or overwritten. Do not execute code.",
        "choices": [
          "One completion",
          "Missing completion",
          "Repeated or overwritten",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
