{
  "slug": "witcher",
  "term": "Witcher",
  "aliases": [
    "Witcher crash-consistency testing"
  ],
  "definition": "Witcher is a persistent-memory testing framework that selects crash states using inferred dependencies and checks recovered outputs against allowed executions.",
  "note": "Dependencies guide testing, not a proof: the SOSP 2021 design infers likely ordering and atomicity requirements, generates candidate persistent-memory images, and compares a recovered execution with committed or rolled-back alternatives. A dependency violation alone is not a reported correctness bug. [witcher-paper]\n\nThe oracle observes the remaining test operations. Corruption without a visible symptom can escape detection, and deterministic output is required. Thread-interleaving coverage is limited. [witcher-paper]\n\nThe pinned artifact compares complete output suffixes, rather than choosing an allowed answer independently for each line. A bounded source-method probe rejects mixed outcomes, stale values, truncation and extra output. It also accepts an injected invalid UTF-8 byte and CRLF/LF differences after text decoding, despite unequal bytes. This is a conditional observation boundary, not evidence that the paper's workloads missed corruption. [witcher-validator] [hesela-probe]\n\nThe artifact README describes a selected application subset and substantial VM requirements. Running the isolated comparison methods does not reproduce crash-state exploration, benchmark results or hardware persistence. [witcher-readme] [hesela-probe]",
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Heuristic pruning can omit faulty states, so a successful run is not an exhaustive correctness certificate.",
      "citationIds": [
        "witcher-paper"
      ]
    },
    {
      "text": "Binary-output adapters must define an injective representation or reject malformed text if byte identity is part of their contract.",
      "citationIds": [
        "witcher-validator",
        "hesela-probe"
      ]
    }
  ],
  "related": [
    "recipe",
    "crash-test-oracle",
    "persistent-memory",
    "durable-linearizability",
    "persistence-ordering"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-05",
  "citations": [
    {
      "id": "witcher-paper",
      "title": "Fu et al. Witcher: Systematic Crash Consistency Testing for Non-Volatile Memory Key-Value Stores. SOSP 2021, sections 3-7.",
      "url": "https://cosmoss-jigu.github.io/pages/pubs/witcher-fu-sosp21.pdf",
      "accessed": "2026-12-05"
    },
    {
      "id": "witcher-validator",
      "title": "Witcher ad69038: compare_to_oracles and compare_to_oracle_from_index.",
      "url": "https://github.com/cosmoss-jigu/witcher/blob/ad69038cdcd4ac20f1bde38ebf7e6d9fd6999b36/replay/engines/witcher/witchercrashvalidator.py",
      "accessed": "2026-12-05"
    },
    {
      "id": "witcher-readme",
      "title": "Witcher SOSP 2021 artifact, pinned README and reproduction requirements.",
      "url": "https://github.com/cosmoss-jigu/witcher/blob/ad69038cdcd4ac20f1bde38ebf7e6d9fd6999b36/README.md",
      "accessed": "2026-12-05"
    },
    {
      "id": "hesela-probe",
      "title": "Hesela: Witcher comparator observation boundary, executable probe and retained results.",
      "url": "https://hesela.dev/research/witcher/README.md",
      "accessed": "2026-12-05"
    },
    {
      "id": "hesela-oracles",
      "title": "Hesela: Crash-consistency tests and oracle coverage.",
      "url": "https://hesela.com/analyses/crash-testing-oracles-and-bounds/",
      "accessed": "2026-12-05"
    }
  ],
  "provenance": [
    "Reviewed SOSP 2021 (DOI 10.1145/3477132.3483556), the pinned official artifact and its comparator source.",
    "Executed two unchanged comparator method bodies on ten synthetic output-file cases with UTF-8 decoding; source SHA-256 and Python version are retained.",
    "No full Witcher run, PMDK crash exploration, hardware experiment or reproduction of the paper's bug counts is claimed."
  ]
}
