# Integer-conversion review, 20 October 2026

This extends the original observations in PR #2018. The original README/HANDOFF
are historical; this review supersedes their one-build status.

## Reproduction and review
All 13 original tests passed again on h5py 3.15.0 / HDF5 1.14.6 / NumPy 2.3.3.
An isolated binary-wheel environment with h5py 3.10.0 / NumPy 1.26.4 links HDF5
1.14.2. It ran 12 file sequences: 36 intact reads and 36 rejected damaged controls,
plus 72 fileless cases. Outputs are review-1.14.2.json and native-review-1.14.2.json.
Original evidence remains unchanged. No shared environment was modified.

Every array record agrees across builds. Error messages and whole-file hashes
may differ; the comparison does not require those to agree. summarize.mjs checks
the exact decimals, bytes, active filters and rejection controls; native results
also face an independent BigInt clamp/modular arithmetic oracle. Negative tests
reject changed values, duplicate sequences and disabled/successful damage checks.

ctypes review: pinned H5Ipublic.h defines hid_t as int64_t. H5Tconvert uses size_t
element counts and caller-owned buffers. The same-width cases fit their allocated
buffers; type IDs stay open during both calls. Serial Linux x86_64 only.
The wrapper and direct entry point use the same loaded HDF5 implementation.
This is not a separate implementation, platform validation or peer review.

## Sources
The h5py 3.15 dataset guide explains astype, read_direct and Fletcher32; NumPy 2.3
documents casting policy. HDF5's pinned integer macros corroborate range clamping.
See sources.json for exact links and versions.
ABI: https://github.com/HDFGroup/hdf5/blob/7bf340440909d468dbb3cf41f0ea0d87f5050cea/src/H5Ipublic.h
API: https://hdfgroup.github.io/hdf5/v1_14_4/group___c_o_n_v.html

Bairavasundaram et al., FAST 2008, An Analysis of Data Corruption in the Storage
Stack, sections 2.2-2.3 and 5, separates checksum checks from identity context.
It does not study these casts. This library experiment is not a replication or
an extension of its measured fleet rate.
https://www.usenix.org/legacy/events/fast08/tech/full_papers/bairavasundaram/bairavasundaram.pdf

## Publication scope and reproduction
Extend the existing checksum article and HDF5 dataset, preserving the earlier
CSV, routes and IDs. No new paper, failure frequency, speedup, upstream-confirmed
defect or all-version guarantee is asserted.

For the second build use a new Python 3.12 environment:
```sh
python -m pip install --only-binary=:all: h5py==3.10.0 numpy==1.26.4
python probe.py --output second-files.json --repetitions 1
python native_probe.py --output second-native.json
node --test summarize.test.mjs
node summarize.mjs
```
The original Python tests intentionally require the original stack and baseline.
Keep new observations separate. All fixtures are disposable; no device or
production archive is tested. Conversions, not performance, are being measured.
