# Tombstone conversion: a read-equivalence model

Hesela, 23 October 2026. This original example is an educational state model,
not an implementation, experiment, defect report or benchmark of RocksDB.
All keys and histories are invented. Sequence labels have no time unit.

Run with Node.js (built-ins only):
```sh
node model.mjs
node --test model.test.mjs
```
The first command prints the complete reproducible JSON; it does not overwrite
the retained results. The second checks exact results, independent replay,
invalid inputs and bounded read equivalence.

## Question and method

Can a range summary change reads even when its endpoints look deleted?
Five fixed cases separate partial visibility, a later summary sequence,
premature removal of point history, a valid redundant summary and end exclusion.

The bounded check enumerates every four-event history over three ordered keys
and Put/Delete (6^4 histories), and four summary snapshots per history.
It permits [a,c) only if both a and b are absent at that snapshot, retains
every point event, and uses that same snapshot sequence. It compares all three
keys at six read views (0..5). This is a finite deterministic enumeration,
not sampling: no confidence interval or measured failure probability applies.
An independent chronological replay checks the read evaluator.

This intentionally does not simulate tables, flushes, compaction, merge
operands, transactions, timestamp rules, iterator guards, locking or failures.
It neither verifies RocksDB nor recommends a replacement implementation.
The partial-view and wrong-sequence algorithms are deliberately unsafe controls.

## Source context

- Josh Kang, RocksDB, 22 June 2026:
  https://rocksdb.org/blog/2026/06/22/range-tombstone-conversion.html
- Sarkar, Papon, Staratzis and Athanassoulis, Lethe, SIGMOD 2020,
  updated manuscript v4, sections 3-5; DOI 10.1145/3318464.3389757:
  https://arxiv.org/pdf/2006.04777v4

These motivate different endpoints: scan work versus physical cleanup.
The illustrative inputs, code and JSON are authored by Hesela. No source
figures, datasets or performance results are redistributed. Upstream works
retain their own rights. See the linked article for the source review.
