# Reproduce the RAM calibration evidence
Evidence captured 2026-11-10; upstream revision
06e9a82f7e6575b47aeefcc005ed5a3393a79ff6. This package contains constructed-input
observations, not measured backup savings, timings or a paper benchmark replication.

The human interpretation belongs to:
https://hesela.com/analyses/content-defined-chunking-boundaries/#ram-entropy

## Contents and provenance
- results.json: the unchanged 120-observation native report, including every chunk length.
- summary.json: three publication rows derived from that report by derive.py.
- experiment.py and native.rs: Python driver and native Rust harness.
- test_experiment.py: exact replay, reconstruction, independent oracle and negative controls.
- sources.json: primary sources, locators, source hashes and rights notes.
- environment.json and validation.json: original capture/validation receipts.
- research-notes.md: the frozen research-stage synthesis, including its original status.
- README.md: these public-package instructions.

The original research packet is frozen at source commit
48e13eff54921e86b10f2a90cfff1155d036cb7c. Its results.json SHA-256 is
3237d128cb0f32096d9c0de08e57d26cb5cd895cb08e19e590ff525d1e165ed1.
The summary generator rejects any different evidence bytes.

## Native replay
Requires Python 3.12 and rustc already installed. No Cargo dependency installation
is needed. Obtain the pinned upstream source archive from:
https://codeload.github.com/mrd0ll4r/cdchunking-rs/tar.gz/06e9a82f7e6575b47aeefcc005ed5a3393a79ff6

Verify archive SHA-256:
3bdb667823eea1c4f5353f17725a888fcae5c01327a895c021ee300758252b55

Extract into a scratch directory, export RAM_SOURCE to its extracted source root,
and run from this package directory:

~~~sh
python3 experiment.py --source "$RAM_SOURCE" --scratch /tmp/hesela-ram-replay --verify results.json
python3 test_experiment.py
python3 -O test_experiment.py
python3 derive.py results.json summary.json --check
~~~

The harness checks hashes of all compiled upstream Rust files and Cargo.toml
before compiling. A successful replay matches the full report, not just the three
displayed counts. Native tests require RAM_SOURCE; without it they cannot validate
the library. The publication summary can be checked without Rust.

## Interpretation
The equal-entropy pair is related by XOR 255. This preserves substring equality
within each stream, not byte equality across the two streams. A target size,
entropy value and count of chunk occurrences are not capacity savings.
The generalized ordered-IID calculation is a separate idealized model, not a
population estimate from these finite inputs. The 2024 and 2026 arXiv sources
are separately numbered records. Exact historical benchmark invocations have
not been established. Upstream source and papers are not redistributed.

## Byte-weighted exposure supplement
The byte-exposure directory preserves six research files from commit
f4bd2219ab65ad24bf6c6c2af2b83b0224a5a9d5, including its research-stage README.
It derives six finite rows and six separate IID-model rows from the unchanged
parent results, without additional fixtures or device measurements.

Run from this package directory with Python 3.12 standard library only:

~~~sh
python3 -B byte-exposure/exposure.py --verify byte-exposure/results.json --table byte-exposure/table.md
python3 -B byte-exposure/test_exposure.py
python3 -B -O byte-exposure/test_exposure.py
~~~

The byte tail counts all logical bytes inside chunks longer than the threshold,
not only bytes beyond it. The containing-chunk mean assumes uniform selection
among logical bytes; it is not an estimate of real access or edit amplification.
Both caps are native partitions, not clipped uncapped lengths. The replay ZIP
includes the original eleven files and these six supplement files; no upstream
source or third-party paper is bundled. Frozen research notes preserve their
original capture-stage review status; see the linked article for publication context.
