# HDF5 scale-offset evidence

Publication supplement: HDF5 scale-offset round trips.

Interpretation: https://hesela.com/analyses/checksums-identity-and-lost-writes/#hdf5-scale-offset
Data guide: https://hesela.dev/datasets/hdf5-checksum-coverage/#scale-offset

## Reproduce
Use Python 3.12 with requirements.txt. The recorded run used the existing
h5py 3.15.0 Linux wheel linked to HDF5 1.14.6 and NumPy 2.3.3. Pins on Python
packages alone do not guarantee an identical HDF5 build on every platform.
No packages were installed or changed during the recorded run.

```sh
python -B observe.py --output replay.json
python -B -m unittest -v test_observe.py
python -B -O -m unittest -v test_observe.py
python -B independent_probe.py
```

Each output is exclusive-create. Do not overwrite original observations.
Run independent_probe.py in a directory without independent-replay.json.
The runner uses disposable files, never supplied scientific data, and cleans
its own temporary directory. It reads the entire dataset only after the writer
has closed. The deliberately damaged fixture changes one stored checksum byte.

## Files and interpretation
- observe.py and test_observe.py: 26 configurations and 13 tests.
- results.json: original observed rows with actual generation time.
- independent_probe.py and independent-replay.json: a second implementation on
  the same stack, not independent peer review or a cross-version replication.
- sources.json: versioned primary-source receipts, without upstream text.
- publication.mjs: validated tables derived from exact recorded input/output bytes.

All numerical examples are synthetic inputs passed through the real library.
No confidence interval is appropriate for these deterministic examples. They
do not measure frequency, throughput, hardware reliability or power-loss safety.
The small sample is chosen to separate mechanisms, not represent workloads.

In results.json, changedValues counts unequal decoded values while considering
NaN equal to NaN for that count. bytesEqual separately compares exact bytes.
unexpectedFillValues counts inputs different from fill that decode as fill.
maxFiniteAbsoluteError only covers pairs that are finite on both sides; it is
not a complete integrity verdict when nonfinite values occur.
inputHex/outputHex preserve exact IEEE/integer encodings; integer values are
little-endian int32, ordinary floats little-endian float64, one control float32.
The two IDs starting high-level-reject describe intentionally rejected requests.
The low-* cases use a low-level API to study filter order, not bypass advice.

## Reuse
New Hesela experiment code in this folder is provided under the MIT license
in LICENSE. The article and measured results follow the repository's existing
content reuse policy; this packet does not change third-party rights.
Sources retain their own licenses. No original upstream code or paper figure
is included in this packet.

## Publication review
The HDF Group dataset guide explicitly warns about near-zero data and the default
fill value. This is documented behavior, not a newly identified vulnerability:
https://hdfgroup.github.io/hdf5/develop/_h5_d__u_g.html
Delaunay, Courtois and Gouillon (2019), DOI 10.5194/gmd-12-4099-2019, is cited
for distinguishing error criteria, not for verifying these scale-offset cases.
The package is separate from the earlier checksum dataset's CC0 release; that
license does not relicense this package. Preserve the MIT code license and the
existing Hesela content terms for the article and observations.
