# FastCDC framing experiment

This is a deterministic synthetic correctness experiment, not a throughput benchmark.
It calls the unmodified pure-Python API in fastcdc-py 1.7.0 (MIT); it does not
reimplement FastCDC or reproduce the original paper's performance results.

## Reproduce
Use CPython 3.12 on Linux and download experiment.py, test_experiment.py,
requirements.txt and results.json into one directory.

```sh
python3 -m venv .venv
.venv/bin/python -m pip install --no-deps --only-binary=:all: -r requirements.txt
.venv/bin/python -B -m unittest -v test_experiment.py
.venv/bin/python -B experiment.py --check results.json
```

Only click is required by the imported API; CLI and optional hashing dependencies
are deliberately not installed. The script checks package version and SHA-256
of both imported Python source modules before executing the experiment.
The original run used CPython 3.12.3 on Linux x86_64; no timing result is reported.

## Design
Four synthetic files have 1000, 10000, 10000 and 131072 bytes. File label and
counter encoding are in the result. Controls add tiny, empty and all-zero inputs.
Rows are predefined examples, not a sampled workload or an estimate of typical reuse.

Each row builds a baseline chunk set using the same framing and algorithm as its
candidate. Reused logical bytes count every candidate occurrence whose entire byte
string equals a baseline chunk. Matching uses Python byte equality, not hash-only
equality. A duplicate occurring only within the candidate is not counted as reuse.
All terminal chunks remain in numerator and denominator. An empty denominator is null.

The report includes all input hashes, chunk offsets, lengths, terminal flags and
content digests. Source code hashes and exact package revision identify the variant.
The maximum-length counter reports size, not proven forced cuts: a natural cut
can coincide with the maximum, so no cause is inferred from length.

No wall-clock timing, confidence interval, real-data claim, compressed size,
physical stored capacity, restore latency or adversarial security claim is made.
The deterministic fixture bytes and experiment code are original Hesela material.
The upstream library retains its MIT license; it is installed, not redistributed.
