{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.",
  "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
  "choices": [
    "Linked",
    "Unlinked",
    "Noerror",
    "Unclear"
  ],
  "actions": {
    "Linked": {
      "action": "preview_jev_form_error_association",
      "payload": {
        "decision": "Linked"
      },
      "pending": true
    },
    "Unlinked": {
      "action": "preview_jev_form_error_association",
      "payload": {
        "decision": "Unlinked"
      },
      "pending": true
    },
    "Noerror": {
      "action": "preview_jev_form_error_association",
      "payload": {
        "decision": "Noerror"
      },
      "pending": true
    },
    "Unclear": {
      "action": "preview_jev_form_error_association",
      "payload": {
        "decision": "Unclear"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "An explicit error link",
      "expected": "Linked",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": \"Enter a valid email.\",\n    \"markup\": \"<input id=\\\"email\\\" aria-invalid=\\\"true\\\" aria-describedby=\\\"email-error\\\"><p id=\\\"email-error\\\">Enter a valid email.</p>\",\n    \"complete\": true\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Visually adjacent only",
      "expected": "Unlinked",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": \"Enter a valid email.\",\n    \"markup\": \"<input id=\\\"email\\\" aria-invalid=\\\"true\\\"><p id=\\\"email-error\\\">Enter a valid email.</p>\",\n    \"complete\": true\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "A missing target ID",
      "expected": "Unlinked",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": \"Enter a valid email.\",\n    \"markup\": \"<input id=\\\"email\\\" aria-describedby=\\\"email-error\\\"><p id=\\\"email-message\\\">Enter a valid email.</p>\",\n    \"complete\": true\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "An opaque field wrapper",
      "expected": "Unclear",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": \"Enter a valid email.\",\n    \"markup\": \"<Field name=\\\"email\\\" error=\\\"Enter a valid email.\\\" />\",\n    \"wrapper\": null,\n    \"complete\": false\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "No error after validation",
      "expected": "Noerror",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": null,\n    \"markup\": \"<input id=\\\"email\\\" value=\\\"a@example.test\\\" aria-invalid=\\\"false\\\">\",\n    \"complete\": true\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Hint and error references",
      "expected": "Linked",
      "request": {
        "context": "{\n  \"task\": \"Review the aria-describedby association between one field and its current validation error, using supplied markup and wrapper contracts.\",\n  \"evidence\": {\n    \"target\": \"email\",\n    \"error\": \"Enter a valid email.\",\n    \"markup\": \"<input id=\\\"email\\\" aria-describedby=\\\"email-hint email-error\\\"><p id=\\\"email-hint\\\">Work address.</p><p id=\\\"email-error\\\">Enter a valid email.</p>\",\n    \"complete\": true\n  }\n}",
        "question": "For the target field: Noerror if no current validation error exists. Otherwise Linked means its aria-describedby IDs include an existing element containing that field's error; Unlinked means the complete supplied markup confirms no such reference, a missing ID or another field's message. Use Unclear when markup or wrapper behavior is missing, or only another association mechanism is supplied. Multiple description IDs are allowed. Judge association only, not live announcements or compliance.",
        "choices": [
          "Linked",
          "Unlinked",
          "Noerror",
          "Unclear"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
