{
  "cases": [
    {
      "id": "baseline_chrome_qr",
      "scan_session_id": "S1",
      "operator_id": "OP1",
      "expected_context_id": "ORD1",
      "evidence_ref": "EV1",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code",
        "code_128"
      ],
      "expected_symbology_set": [
        "qr_code"
      ],
      "decoded_format": "qr_code",
      "raw_scan_value": "PKG-A",
      "normalized_identifier": "PKG-A",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S1|ORD1|PKG-A",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "ACCEPTED_VERIFIED"
    },
    {
      "id": "unsupported_format",
      "scan_session_id": "S2",
      "operator_id": "OP1",
      "expected_context_id": "ORD1",
      "evidence_ref": "EV2",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code"
      ],
      "expected_symbology_set": [
        "data_matrix"
      ],
      "decoded_format": "data_matrix",
      "raw_scan_value": "PKG-B",
      "normalized_identifier": "PKG-B",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S2|ORD1|PKG-B",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "FALLBACK_REQUIRED"
    },
    {
      "id": "wrong_order_context",
      "scan_session_id": "S3",
      "operator_id": "OP1",
      "expected_context_id": "ORD1",
      "evidence_ref": "EV3",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code"
      ],
      "expected_symbology_set": [
        "qr_code"
      ],
      "decoded_format": "qr_code",
      "raw_scan_value": "PKG-C",
      "normalized_identifier": "PKG-C",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": false,
      "duplicate_key": "S3|ORD1|PKG-C",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "REJECTED_CONTEXT_MISMATCH"
    },
    {
      "id": "duplicate_correct_code",
      "scan_session_id": "S4",
      "operator_id": "OP1",
      "expected_context_id": "ORD1",
      "evidence_ref": "EV4",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code"
      ],
      "expected_symbology_set": [
        "qr_code"
      ],
      "decoded_format": "qr_code",
      "raw_scan_value": "PKG-A",
      "normalized_identifier": "PKG-A",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S4|ORD1|PKG-A",
      "duplicate_status": "DUPLICATE",
      "manual_entry_used": false,
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "DUPLICATE_SUPPRESSED"
    },
    {
      "id": "missing_evidence",
      "scan_session_id": "S5",
      "operator_id": "OP1",
      "expected_context_id": "ORD1",
      "evidence_ref": "",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code"
      ],
      "expected_symbology_set": [
        "qr_code"
      ],
      "decoded_format": "qr_code",
      "raw_scan_value": "PKG-D",
      "normalized_identifier": "PKG-D",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S5|ORD1|PKG-D",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "HOLD"
    },
    {
      "id": "manual_fallback_verified",
      "scan_session_id": "S6",
      "operator_id": "OP2",
      "expected_context_id": "ORD1",
      "evidence_ref": "EV6",
      "capture_adapter": "manual_entry",
      "secure_context": false,
      "detector_available": false,
      "supported_formats": [],
      "expected_symbology_set": [
        "code_128"
      ],
      "decoded_format": "code_128",
      "raw_scan_value": "PKG-E",
      "normalized_identifier": "PKG-E",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S6|ORD1|PKG-E",
      "duplicate_status": "NEW",
      "manual_entry_used": true,
      "fallback_reason": "CAMERA_PERMISSION_DENIED",
      "transfer_changed": false,
      "adapter_recomputed": true,
      "expected": "ACCEPTED_VERIFIED"
    },
    {
      "id": "transfer_usb_recomputed",
      "scan_session_id": "S7",
      "operator_id": "OP3",
      "expected_context_id": "ORD2",
      "evidence_ref": "EV7",
      "capture_adapter": "usb_hid",
      "secure_context": false,
      "detector_available": false,
      "supported_formats": [],
      "expected_symbology_set": [
        "code_128"
      ],
      "decoded_format": "code_128",
      "raw_scan_value": "PKG-F",
      "normalized_identifier": "PKG-F",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S7|ORD2|PKG-F",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "fallback_reason": "",
      "transfer_changed": true,
      "adapter_recomputed": true,
      "expected": "ACCEPTED_VERIFIED"
    },
    {
      "id": "transfer_baseline_reused",
      "scan_session_id": "S8",
      "operator_id": "OP4",
      "expected_context_id": "ORD2",
      "evidence_ref": "EV8",
      "capture_adapter": "barcode_detector",
      "secure_context": true,
      "detector_available": true,
      "supported_formats": [
        "qr_code"
      ],
      "expected_symbology_set": [
        "qr_code"
      ],
      "decoded_format": "qr_code",
      "raw_scan_value": "PKG-G",
      "normalized_identifier": "PKG-G",
      "parse_ok": true,
      "structure_ok": true,
      "context_match": true,
      "duplicate_key": "S8|ORD2|PKG-G",
      "duplicate_status": "NEW",
      "manual_entry_used": false,
      "fallback_reason": "",
      "transfer_changed": true,
      "adapter_recomputed": false,
      "expected": "UNKNOWN"
    }
  ]
}
