{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Inspect what an explicit failure path does to user-entered form values.",
  "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
  "choices": [
    "Values cleared",
    "Values preserved",
    "Not a failure path",
    "Need source"
  ],
  "actions": {
    "Values cleared": {
      "action": "preview_jev_form_values_on_failure",
      "payload": {
        "decision": "Values cleared"
      },
      "pending": true
    },
    "Values preserved": {
      "action": "preview_jev_form_values_on_failure",
      "payload": {
        "decision": "Values preserved"
      },
      "pending": true
    },
    "Not a failure path": {
      "action": "preview_jev_form_values_on_failure",
      "payload": {
        "decision": "Not a failure path"
      },
      "pending": true
    },
    "Need source": {
      "action": "preview_jev_form_values_on_failure",
      "payload": {
        "decision": "Need source"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Reset after rejection",
      "expected": "Values cleared",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"if (result.error) { clearFields(); showError(result.error); return; }\",\n    \"helpers\": \"clearFields sets all editable values to empty strings.\",\n    \"scope\": \"Complete failure branch; user values are stored in these fields.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Return before reset",
      "expected": "Values preserved",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"if (result.error) { showError(result.error); return; } clearFields();\",\n    \"helpers\": \"showError changes only the error message; clearFields empties editable values.\",\n    \"scope\": \"Complete handler; values remain in controlled form state until clearFields.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Restore saved values",
      "expected": "Values preserved",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"const saved = readFields(); clearFields(); try { await submit(saved); } catch (error) { writeFields(saved); showError(error); }\",\n    \"helpers\": \"writeFields restores every editable value from saved.\",\n    \"scope\": \"Complete rejection path; no further reset occurs.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Successful reset only",
      "expected": "Not a failure path",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"if (result.ok) { clearFields(); }\",\n    \"helpers\": \"clearFields empties the form.\",\n    \"scope\": \"Target shown is the confirmed-success branch only, not an error handler.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unknown reset helper",
      "expected": "Need source",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"if (result.error) reset();\",\n    \"helpers\": null,\n    \"scope\": \"The reset implementation and value ownership are not supplied.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Form tag only",
      "expected": "Need source",
      "request": {
        "context": "{\n  \"task\": \"Inspect what an explicit failure path does to user-entered form values.\",\n  \"evidence\": {\n    \"code\": \"<form><input name=\\\"note\\\" /></form>\",\n    \"helpers\": null,\n    \"scope\": \"No submission handler or failure path is supplied.\"\n  }\n}",
        "question": "Inspect the supplied failure path and final value ownership. Values cleared: failure leaves entered values reset or discarded. Values preserved: the complete path retains or restores them. Not a failure path: the target shows only a confirmed-success branch, or no form submission is involved. Need source: failure handling, reset meaning or value ownership is missing or conflicting. A form tag or helper name proves nothing. Classify supplied behavior only; do not execute the form.",
        "choices": [
          "Values cleared",
          "Values preserved",
          "Not a failure path",
          "Need source"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
