{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.",
  "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
  "choices": [
    "Style only",
    "Other warning present",
    "Need warnings"
  ],
  "actions": {
    "Style only": {
      "action": "preview_jev_diagnostic_warning_kind",
      "payload": {
        "decision": "Style only"
      },
      "pending": true
    },
    "Other warning present": {
      "action": "preview_jev_diagnostic_warning_kind",
      "payload": {
        "decision": "Other warning present"
      },
      "pending": true
    },
    "Need warnings": {
      "action": "preview_jev_diagnostic_warning_kind",
      "payload": {
        "decision": "Need warnings"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Formatting conventions",
      "expected": "Style only",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": true,\n    \"warnings\": [\n      \"Use two spaces for indentation.\",\n      \"Remove trailing whitespace.\"\n    ],\n    \"role\": \"Formatter warnings only\"\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Unused declarations",
      "expected": "Style only",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": true,\n    \"warnings\": [\n      \"Import LegacyBadge is never used.\",\n      \"Local variable debugLabel is assigned but never read.\"\n    ],\n    \"role\": \"Unused-code warnings\"\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Possible null dereference",
      "expected": "Other warning present",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": true,\n    \"warnings\": [\n      \"customer may be null when customer.name is read.\"\n    ],\n    \"role\": \"The warning concerns possible runtime access failure.\"\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Formatting and behavior",
      "expected": "Other warning present",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": true,\n    \"warnings\": [\n      \"Remove trailing whitespace.\",\n      \"Promise rejection from saveDraft is not handled.\"\n    ],\n    \"role\": \"The second warning concerns failed saves.\"\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unresolved diagnostic meaning",
      "expected": "Need warnings",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": true,\n    \"warnings\": [\n      \"Policy check W42 failed.\"\n    ],\n    \"role\": \"The supplied catalog gives two conflicting meanings for W42: naming style and unsafe integer truncation.\"\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Warnings absent",
      "expected": "Need warnings",
      "request": {
        "context": "{\n  \"task\": \"Classify whether supplied warnings concern only formatting or unused code, include behavior or correctness concerns, or remain unresolved.\",\n  \"evidence\": {\n    \"complete\": false,\n    \"warnings\": null,\n    \"role\": null\n  }\n}",
        "question": "First choose Need warnings for a missing, conflicting, empty or incomplete list, unresolved roles or a category outside this rule. Otherwise Style only: all warnings concern formatting conventions or unused code. Other warning present: at least one concerns behavior or correctness, even alongside style warnings. Classify supplied warning content only; do not suppress warnings, run code or determine severity.",
        "choices": [
          "Style only",
          "Other warning present",
          "Need warnings"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
