{
  "code": "D15-023.14",
  "title": "Cancel race and kill-switch recovery fixture",
  "status": "PASSED_FIXTURE_ONLY",
  "date": "2026-09-10",
  "tests": {"passed": 65, "total": 65, "command": "python -m unittest services.d15_pilot.test_runtime -q"},
  "scenarios": [
    {"name": "cancel_before_safe_boundary", "event": "CANCEL_REQUESTED", "result": "CANCELLED", "checkpoint_preserved": true, "partial_evidence": true},
    {"name": "cancel_wins_completion_race", "event": "COMPLETION_REJECTED", "result": "CANCEL_REQUESTED", "success_masked": false},
    {"name": "completion_before_cancel", "event": "CANCEL_TOO_LATE", "result": "SUCCEEDED", "state_rewritten": false},
    {"name": "duplicate_cancel", "event": "DUPLICATE_REQUEST", "result": "DUPLICATE_REQUEST", "conflict_blocked": true},
    {"name": "kill_switch_on", "event": "KILL_SWITCH_ON", "result": "KILL_SWITCH_ON", "new_claims_allowed": false},
    {"name": "kill_switch_recovery", "event": "RECOVERY_WAIT", "result": "MANUAL_RESUME_REQUIRED", "automatic_resume": false, "artifacts_deleted": false},
    {"name": "kill_switch_clear", "event": "KILL_SWITCH_OFF", "result": "MANUAL_RESUME_REQUIRED", "new_claims_allowed": true, "automatic_resume": false},
    {"name": "role_and_reason_gate", "event": "VALIDATION", "result": "BLOCKED_BY_CONTRACT"}
  ],
  "side_effects": {"scheduler": false, "worker": false, "registry": false, "publication": false, "network": false, "production_write": false},
  "boundary": "In-memory fixture only. No scheduler claim, worker stop, database update, registry write or publication was performed."
}
