{
  "cases": [
    {
      "case_id": "missing_source_message_id_cancel",
      "message_class": "Cancel",
      "input": {
        "source_message": {},
        "body_current": "Please cancel group HD260710A"
      },
      "expected_error": {
        "result_type": "infrastructure_input_error",
        "error_code": "missing_source_message_id",
        "retryable": true,
        "missing_fields": [
          "source_message.source_message_id"
        ]
      },
      "expected_processing": {
        "material_reads": 0,
        "skill_calls": 0
      }
    },
    {
      "case_id": "null_source_message_id_cancel",
      "message_class": "Cancel",
      "input": {
        "source_message": {
          "source_message_id": null
        },
        "body_current": "Please cancel group HD260710A"
      },
      "expected_error": {
        "result_type": "infrastructure_input_error",
        "error_code": "missing_source_message_id",
        "retryable": true,
        "missing_fields": [
          "source_message.source_message_id"
        ]
      },
      "expected_processing": {
        "material_reads": 0,
        "skill_calls": 0
      }
    },
    {
      "case_id": "empty_source_message_id_thanks",
      "message_class": "Thanks",
      "input": {
        "source_message": {
          "source_message_id": ""
        },
        "body_current": "Thanks"
      },
      "expected_error": {
        "result_type": "infrastructure_input_error",
        "error_code": "missing_source_message_id",
        "retryable": true,
        "missing_fields": [
          "source_message.source_message_id"
        ]
      },
      "expected_processing": {
        "material_reads": 0,
        "skill_calls": 0
      }
    },
    {
      "case_id": "whitespace_source_message_id_see_attached",
      "message_class": "See Attached",
      "input": {
        "source_message": {
          "source_message_id": "   "
        },
        "body_current": "Please see attached",
        "current_attachments": [
          {
            "filename": "unknown.pdf"
          }
        ]
      },
      "expected_error": {
        "result_type": "infrastructure_input_error",
        "error_code": "missing_source_message_id",
        "retryable": true,
        "missing_fields": [
          "source_message.source_message_id"
        ]
      },
      "expected_processing": {
        "material_reads": 0,
        "skill_calls": 0
      }
    },
    {
      "case_id": "nonblank_source_message_id_passes_guard",
      "message_class": "Cancel",
      "input": {
        "source_message": {
          "source_message_id": "MSG-VALID-001"
        },
        "body_current": "Please cancel group HD260710A"
      },
      "expected_error": null
    }
  ]
}
