{
  "schemaVersion": 1,
  "id": "rocksdb-ribbon-construction-v9.7.3",
  "reviewed": "2026-10-17",
  "evidenceType": "version-pinned-source-review",
  "software": {
    "name": "RocksDB",
    "version": "9.7.3"
  },
  "scope": "Selection and construction are separate stages; no RocksDB runtime or performance experiment was run.",
  "sources": [
    {
      "id": "ribbon-implementation",
      "title": "RocksDB v9.7.3: Ribbon builder selection and construction fallbacks.",
      "url": "https://github.com/facebook/rocksdb/blob/v9.7.3/table/block_based/filter_policy.cc",
      "accessed": "2026-10-17"
    },
    {
      "id": "ribbon-accounting",
      "title": "RocksDB v9.7.3: filter-construction cache charging and its default.",
      "url": "https://github.com/facebook/rocksdb/blob/v9.7.3/include/rocksdb/table.h",
      "accessed": "2026-10-17"
    }
  ],
  "cases": [
    {
      "id": "hybrid-flush",
      "stage": "selection",
      "condition": "Level or Universal compaction; memtable flush; bloom_before_level=0.",
      "outcome": "Bloom builder",
      "sourceId": "ribbon-implementation",
      "symbol": "RibbonFilterPolicy::GetBuilderWithContext"
    },
    {
      "id": "hybrid-l0-compaction",
      "stage": "selection",
      "condition": "Level or Universal compaction; intra-L0 compaction; bloom_before_level=0.",
      "outcome": "Ribbon builder, subject to fallback",
      "sourceId": "ribbon-implementation",
      "symbol": "RibbonFilterPolicy::GetBuilderWithContext"
    },
    {
      "id": "hybrid-l0-one",
      "stage": "selection",
      "condition": "Level or Universal compaction; intra-L0 compaction; bloom_before_level=1.",
      "outcome": "Bloom builder",
      "sourceId": "ribbon-implementation",
      "symbol": "RibbonFilterPolicy::GetBuilderWithContext"
    },
    {
      "id": "cache-reservation",
      "stage": "construction",
      "condition": "Configured cache charging; banding reservation returns MemoryLimit.",
      "outcome": "Bloom fallback",
      "sourceId": "ribbon-implementation",
      "symbol": "Standard128RibbonBitsBuilder::Finish"
    },
    {
      "id": "small-filter",
      "stage": "construction",
      "condition": "Fewer than 1024 calculated slots and the calculated Bloom representation is smaller.",
      "outcome": "Bloom fallback",
      "sourceId": "ribbon-implementation",
      "symbol": "Standard128RibbonBitsBuilder::CalculateSpaceAndSlots"
    },
    {
      "id": "seed-exhaustion",
      "stage": "construction",
      "condition": "The bounded 256-seed search does not solve the banded system.",
      "outcome": "Bloom fallback",
      "sourceId": "ribbon-implementation",
      "symbol": "Standard128RibbonBitsBuilder::Finish"
    }
  ],
  "limitations": [
    "Cases are not exhaustive: empty input, entry-count limits and corruption checks have separate paths.",
    "A Ribbon builder selection is not evidence of a Ribbon-encoded output.",
    "Cache charging is not a process-RSS cap; a fallback is not evidence of a data-loss event.",
    "No failure frequency, measured memory saving, throughput or false-positive-rate estimate is supplied."
  ],
  "license": "CC0-1.0 for this original evidence map; linked source code retains its own license."
}
