{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.",
  "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
  "choices": [
    "Verified first",
    "Decode-only trust",
    "Display-only",
    "Review"
  ],
  "actions": {
    "Verified first": {
      "action": "preview_jev_jwt_verification_boundary",
      "payload": {
        "decision": "Verified first"
      },
      "pending": true
    },
    "Decode-only trust": {
      "action": "preview_jev_jwt_verification_boundary",
      "payload": {
        "decision": "Decode-only trust"
      },
      "pending": true
    },
    "Display-only": {
      "action": "preview_jev_jwt_verification_boundary",
      "payload": {
        "decision": "Display-only"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_jwt_verification_boundary",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Verified server role",
      "expected": "Verified first",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"Fictional external JWT description; no token value.\",\n    \"helper\": \"verifyToken checks signature and throws on failure.\",\n    \"use\": \"Server reads role only after successful verification to continue its separate authorization policy.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Decoded role accepted",
      "expected": "Decode-only trust",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"External client-supplied JWT description.\",\n    \"helper\": \"decodeToken only parses claims and does not verify a signature.\",\n    \"use\": \"Server grants a protected route based on its role field.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "UI label only",
      "expected": "Display-only",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"Fictional JWT description.\",\n    \"helper\": \"Browser decodes the payload without verification.\",\n    \"use\": \"Shows a nonauthoritative username label; all protected operations use a separate verified server session.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Unknown auth helper",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"Client-supplied token description.\",\n    \"helper\": \"parseSession() behavior is not supplied.\",\n    \"use\": \"Its tenant field selects a protected server resource.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Verification after use",
      "expected": "Decode-only trust",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"External token description.\",\n    \"helper\": \"Signature verification is called only after a protected operation.\",\n    \"use\": \"The operation first uses decode-only claims to authorize access.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Verifier result ignored",
      "expected": "Decode-only trust",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify the signature-verification boundary before JWT claims influence protected server behavior, without handling a real token.\",\n  \"evidence\": {\n    \"token\": \"External token description.\",\n    \"helper\": \"verify returns false on invalid signatures; code ignores that result.\",\n    \"use\": \"Server continues with decode-only claims even when verification fails.\"\n  }\n}",
        "question": "Review JWT claims use. Verified first means the helper verifies the signature and rejects failure before protected server use. Decode-only trust means unverified decoded claims drive identity, role or tenant authorization. Display-only means decoding only supplies nonauthoritative UI text with no protected decision. Review takes precedence for missing/conflicting helper or use facts. Decoding is not verification. Do not create tokens or claim issuer, expiry and all authorization checks passed.",
        "choices": [
          "Verified first",
          "Decode-only trust",
          "Display-only",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
