{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.",
  "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
  "choices": [
    "Exact policy",
    "Broad trust",
    "Public noncredentialed",
    "Review"
  ],
  "actions": {
    "Exact policy": {
      "action": "preview_jev_credentialed_cors_boundary",
      "payload": {
        "decision": "Exact policy"
      },
      "pending": true
    },
    "Broad trust": {
      "action": "preview_jev_credentialed_cors_boundary",
      "payload": {
        "decision": "Broad trust"
      },
      "pending": true
    },
    "Public noncredentialed": {
      "action": "preview_jev_credentialed_cors_boundary",
      "payload": {
        "decision": "Public noncredentialed"
      },
      "pending": true
    },
    "Review": {
      "action": "preview_jev_credentialed_cors_boundary",
      "payload": {
        "decision": "Review"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "case-1",
      "label": "Exact allowlist",
      "expected": "Exact policy",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Private account API.\",\n    \"credentials\": \"Allowed.\",\n    \"origin\": \"Only exact https://app.example:443 is allowed after parsed scheme, host and port comparison.\",\n    \"contract\": \"All other origins are rejected; complete production policy supplied.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    },
    {
      "id": "case-2",
      "label": "Reflect any origin",
      "expected": "Broad trust",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Private account API.\",\n    \"credentials\": \"Allowed.\",\n    \"origin\": \"Reflects any request Origin without checking it.\",\n    \"contract\": \"No additional origin policy exists.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    },
    {
      "id": "case-3",
      "label": "Weak substring matcher",
      "expected": "Broad trust",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Private account API.\",\n    \"credentials\": \"Allowed.\",\n    \"origin\": \"Reflects any origin string containing the text app.example.\",\n    \"contract\": \"No parsed host boundary or exact match is performed.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    },
    {
      "id": "case-4",
      "label": "Public data endpoint",
      "expected": "Public noncredentialed",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Public static catalog with no user-specific data.\",\n    \"credentials\": \"Not allowed or used.\",\n    \"origin\": \"Public cross-origin reads are allowed.\",\n    \"contract\": \"No sensitive credentialed response exists.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    },
    {
      "id": "case-5",
      "label": "Unknown origin callback",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Private account API.\",\n    \"credentials\": \"Allowed.\",\n    \"origin\": \"allowOrigin(origin) decides.\",\n    \"contract\": \"Callback behavior is not supplied.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    },
    {
      "id": "case-6",
      "label": "Literal wildcard with credentials",
      "expected": "Review",
      "request": {
        "context": "{\n  \"task\": \"Defensively classify a supplied credentialed CORS origin policy without making cross-origin requests or certifying authentication.\",\n  \"evidence\": {\n    \"endpoint\": \"Private account API.\",\n    \"credentials\": \"Allowed.\",\n    \"origin\": \"Response sends literal Access-Control-Allow-Origin: *.\",\n    \"contract\": \"No concrete-origin response is supplied.\"\n  }\n}",
        "question": "Review CORS response policy. Exact policy means credentialed responses are allowed only for an explicit exact-origin allowlist. Broad trust means arbitrary or weakly matched origins are reflected with credentials enabled. Public noncredentialed means an explicitly public endpoint with no sensitive credentialed data or credential allowance. Review takes precedence for missing/conflicting config, matcher or endpoint facts, including literal wildcard plus credentials. Do not probe a live site.",
        "choices": [
          "Exact policy",
          "Broad trust",
          "Public noncredentialed",
          "Review"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow.py"
}
