{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.",
  "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
  "choices": [
    "Associated",
    "Placeholder",
    "Absent",
    "Unclear"
  ],
  "actions": {
    "Associated": {
      "action": "preview_jev_input_label_association",
      "payload": {
        "decision": "Associated"
      },
      "pending": true
    },
    "Placeholder": {
      "action": "preview_jev_input_label_association",
      "payload": {
        "decision": "Placeholder"
      },
      "pending": true
    },
    "Absent": {
      "action": "preview_jev_input_label_association",
      "payload": {
        "decision": "Absent"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_input_label_association",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Matching label reference",
      "expected": "Associated",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"markup\": \"<label for=\\\"email\\\">Email address</label><input id=\\\"email\\\" type=\\\"text\\\">\",\n    \"complete\": true\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Enclosing label",
      "expected": "Associated",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"input inside label\",\n    \"markup\": \"<label>City<input type=\\\"text\\\" name=\\\"city\\\"></label>\",\n    \"complete\": true\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "An explicit ARIA label",
      "expected": "Associated",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"search\",\n    \"markup\": \"<input id=\\\"search\\\" type=\\\"text\\\" aria-label=\\\"Search articles\\\" placeholder=\\\"Search\\\">\",\n    \"complete\": true\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Placeholder alone",
      "expected": "Placeholder",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"markup\": \"<input id=\\\"email\\\" type=\\\"text\\\" placeholder=\\\"Email address\\\">\",\n    \"complete\": true\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Label points elsewhere",
      "expected": "Absent",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"markup\": \"<label for=\\\"phone\\\">Phone number</label><input id=\\\"email\\\" type=\\\"text\\\">\",\n    \"complete\": true\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Unknown wrapper output",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Review explicit labeling patterns for one text input from complete surrounding markup or a documented shared wrapper.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"markup\": \"<TextField name=\\\"email\\\" label=\\\"Email address\\\" />\",\n    \"wrapper\": null,\n    \"complete\": false\n  }\n}",
        "question": "For the target text input: Associated if nonempty text labels it through matching label-for/id, an enclosing label or aria-label; Placeholder if only placeholder text remains after those patterns are ruled out; Absent if complete evidence shows neither a supported label nor placeholder; Unclear if markup/wrapper behavior is missing or only another naming mechanism is supplied. An established supported label takes priority. This is a pattern review, not a full accessible-name computation.",
        "choices": [
          "Associated",
          "Placeholder",
          "Absent",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
