{
  "fixtureId": "fixture-attendance-eligibility",
  "contractName": "checkAttendance(attended, totalSessions)",
  "lessonIds": [
    "build-attendance-eligibility-checker",
    "port-capstone-project-to-second-language"
  ],
  "invalidInputPolicy": "attended and totalSessions must be integers with totalSessions >= 1 and 0 <= attended <= totalSessions; else INVALID_ATTENDANCE.",
  "cases": [
    {
      "caseId": "att-80-exact",
      "kind": "boundary",
      "input": {
        "attended": 4,
        "totalSessions": 5
      },
      "expected": "ELIGIBLE",
      "reason": "Exact 80% attendance meets ELIGIBLE cutoff.",
      "catchesBug": "Catches strict > 80% bug."
    },
    {
      "caseId": "att-79-below",
      "kind": "boundary",
      "input": {
        "attended": 79,
        "totalSessions": 100
      },
      "expected": "WARNING",
      "reason": "79% falls just under ELIGIBLE into WARNING."
    },
    {
      "caseId": "att-60-exact",
      "kind": "boundary",
      "input": {
        "attended": 3,
        "totalSessions": 5
      },
      "expected": "WARNING",
      "reason": "Exact 60% meets WARNING cutoff.",
      "catchesBug": "Catches strict > 60% bug."
    },
    {
      "caseId": "att-59-below",
      "kind": "boundary",
      "input": {
        "attended": 59,
        "totalSessions": 100
      },
      "expected": "INELIGIBLE",
      "reason": "59% is below 60% and therefore INELIGIBLE."
    },
    {
      "caseId": "att-invalid-zero-total",
      "kind": "invalid",
      "input": {
        "attended": 0,
        "totalSessions": 0
      },
      "expectedError": "INVALID_ATTENDANCE",
      "reason": "Zero total sessions prevents divide-by-zero.",
      "catchesBug": "Catches missing totalSessions >= 1 guard."
    },
    {
      "caseId": "att-invalid-over-total",
      "kind": "invalid",
      "input": {
        "attended": 11,
        "totalSessions": 10
      },
      "expectedError": "INVALID_ATTENDANCE",
      "reason": "Attended sessions cannot exceed total sessions."
    }
  ]
}
