Skip to download

Controlled native-library observations / synthetic data

HDF5 checksum coverage and reader-state observations

Controlled HDF5 1.14.6 observations separate declared Fletcher32, partial-edge coverage, failure callbacks and reuse of unchecked cached values.

Download CSV57 observation rows / 8 columns

Metadata / Coverage observations / Reader observations / Interpretation

Method

One-dimensional synthetic uint32 arrays, eight-element chunks, one-bit payload mutations and intact controls. Seven coverage cases, eight fresh-reader combinations and four cache sequences, each repeated three times; three growth sequences and one fill control remain in raw JSON. Values start at 100. The coverage fixture has shape 12, maximum shape 16 and chunk length 8. Each full chunk holds 32 decoded bytes. Only the first stored payload byte of the selected chunk is mutated, by XOR with 1. Every case includes an intact-value control.

The CSV combines three explicitly labelled phases, not one homogeneous sample. Growth sequences and the fill control remain in complete JSON. returned-values describes successful I/O, not agreement with the original array. Inspect the raw returned values, callbacks and exceptions before interpreting success.

Coverage controls

First repetition shown; all three agreed. Every dataset declares Fletcher32. Edge skipping is explicitly enabled only in the named cases.

CaseMaskStored bytesAfter mutation
Default policy, full chunk036Read error
Default policy, partial edge036Read error
Skip-edge option, full chunk036Read error
Skip-edge option, partial edge032Changed values
Edge grown before mutation036Read error
Direct writer skips checksum132Changed values
Reader disables EDC036Changed values

A zero filter mask coexisted with an unfiltered partial edge on this build. When that edge grew to a full chunk after a mutation, the changed value remained in the newly protected representation. This does not demonstrate ordinary default writes omitting Fletcher32, nor does it estimate a production failure rate.

Reader-state controls

First repetition of each cache sequence. The strict read has EDC enabled and no failure callback.

Priming policyCache bytesStrict, same datasetStrict, fresh file
edc-disabled1048576Changed valuesRead error
edc-disabled0Read errorRead error
callback-continue1048576Changed valuesRead error
callback-continue0Read errorRead error

A callback that continues after failure differs from disabling detection: the full observations record Fletcher32 failure events with EDC still enabled. A later strict call may reuse decoded cached data. In these controls, the fresh-reader rejection occurs against identical stored bytes, not a different or repaired file. See the cache-state interpretation.

Variable-length payload coverage

A companion experiment changes one bit in a variable-length string's global-heap payload. The gzip chunk stays identical and the fresh reader returns the changed string. The chunk-trailer and fixed-width Fletcher32 controls reject their mutations. Ordinary Fletcher32 creation for VLEN strings is rejected on this build; it is not a protected-VLEN experiment.

Nine cases, three repeats each. First repetition shown; all three agree. This companion JSON is separate from the existing CSV's 57 rows and eight columns.

CaseRaw chunk unchanged?Decoded read
VLEN + gzip: intactYesOriginal strings
VLEN + gzip: heap bitYesChanged string
VLEN + gzip: chunk trailer bitNoRead error
VLEN, unfiltered: intactYesOriginal strings
VLEN, unfiltered: heap bitYesChanged string
Fixed + Fletcher32: intactYesOriginal strings
Fixed + Fletcher32: payload bitNoRead error
Fixed, unfiltered: intactYesOriginal strings
Fixed, unfiltered: payload bitNoChanged string

The independently specified three-record input is identical across layouts. Before/after file and chunk hashes, parsed heap addresses, exact mutation offsets, returned bytes and errors are recorded. Every mutated fixture differs by exactly one bit. All reads use fresh file opens and default policy. These are designed in-memory observations on h5py 3.15.0 / HDF5 1.14.6, not a production rate or a device experiment.

27 observations / Runner / 10 tests / Requirements / Primary sources / Method and reproduction.

A full-file digest compared with a trusted original detects the heap mutations; raw-chunk digests alone do not. See the interpretation and limits and global-heap definition. Do not discard a dataset-creation error and describe the fallback as checksummed.

Scale-offset round-trip supplement

This separate package contains 26 deterministic configurations on h5py 3.15.0 / HDF5 1.14.6. It tests float precision near fill values, integer bit counts, chunk shape, special values and checksum order. It does not change the earlier CSV's 57 rows or eight columns.

In the two-bit integer diagnostic, 13 of 16 values change and four become fill, yet the checksum-protected read succeeds. Deliberately changing the checksum then rejects the read. The high-level API rejects this filter combination: low-level controls are not deployment advice. Interpretation, tables and primary sources.

Complete observations / Runner / 13 native-library tests / Requirements / Pinned source receipts / Reproduction and reuse terms.

cases[].inputHex / outputHex
Exact little-endian array bytes; dtype selects float64, float32 or int32. Input and output arrays provide JSON-readable values, with strings for nonfinite numbers.
changedValues / bytesEqual
Element inequality count, treating NaN as equal to NaN, versus exact byte equality. These answer different questions.
unexpectedFillValues
Elements unequal to the declared fill on input but equal to it after decoding. This is not an automatic scientific missingness classification.
maxFiniteAbsoluteError
Maximum error only where both sides are finite; it is not an integrity verdict when nonfinite values change.
status / filters / chunks
Creation or read outcome; stored filter order; per-chunk masks, lengths, offsets and hashes. A read error has no returned array, not zero changed elements.
environment / runnerSha256
Actual linked HDF5 version, Python packages and extension hash, plus the generating source hash. Original generation time is retained.

The second implementation and its receipt run on the same stack, not a second platform or independent peer review. No timing, corruption prevalence or hardware conclusion is measured. The supplement retains its own reuse terms; the CC0 license below covers the earlier coverage, reader-state and heap experiments.

Partial-update requantization

Eight fixed configurations start from the dimensionless float64 array [1.001, 2.001, 3.001, 4.001]. The partial-write cases select only index 0. The changing schedule repeats 1.004, 1.007, 1.001 ten times, with a fresh read after writer close. In the shared four-element scale-offset chunk, the other three values drift by approximately +0.1. This supplement preserves the original coverage CSV and 26-configuration first-write study unchanged.

Final delta against the first decoded baseline, rounded to three decimals. Eight configurations, 240 post-operation reads and eight baselines per client. The full-write control selects all values from the authoritative input; the read-only control performs no writes. No population uncertainty interval applies to these deliberately constructed cases.

Final change from first decode, indices 1 to 3
ConfigurationIndex 1Index 2Index 3
Scale-offset, partial write, chunk 4+0.100+0.100+0.100
Scale-offset, partial write, chunk 2+0.10000
Scale-offset, partial write, chunk 1000
Gzip + Fletcher32, partial write000
Unfiltered, partial write000
Scale-offset, same minimum000
Scale-offset, read-only reopen000
Scale-offset, full original-value write000

Python/core-image and separately implemented C/sec2 clients agreed bit for bit on all 992 decoded values using the same HDF5 1.14.2 binary. The C client closes both dataset and file before reading. This is client/driver replication, not another library version, independent peer review or device-durability evidence. A fresh replay on 2026-11-02 retained the original observations.

Reproduction and scope / Complete code and evidence ZIP / Original JSON / Final-state CSV / Every update CSV / Primary-source receipts.

rows[].case
Filter, chunk length and update policy; case order is fixed, not sampled.
rows[].baseline / observations[].decoded
First decoded values and every post-operation read. Delta uses this baseline, not the original pre-encoding input.
observations[].decoded_hex
Exact little-endian binary64 bytes; JSON numbers and CSV values support inspection.
environment.library_sha256
Exact native build required by the C replay, not just a version label.
c-replay/retained/observations.csv (inside ZIP)
Eight baselines plus 240 readbacks, with all four values in hexadecimal floating-point notation.

The precision parameter is per encoding; it is not an end-to-end bound against original values after an arbitrary edit history. The stable full-write control supplies original values, not previously quantized reads. Lossy cases do not enable Fletcher32; the gzip/Fletcher32 row is only a preservation control. One-element chunks are not a general tuning recommendation. Original code and constructed outputs are CC0-1.0; upstream sources retain their own rights. Mechanism and engineering interpretation.

Integer-conversion supplement

Moving a cast from NumPy into HDF5 changed out-of-range integers on two tested stacks. Both write paths produced readable Fletcher32-protected files. This supplement has no lossy filter and does not change the original CSV's 57 rows or eight columns. Interpretation and the seven-value comparison.

Designed file cases, not population samples
Library stackSequencesIntact filesRejected damage controls
HDF5 1.14.6
h5py 3.15.0
NumPy 2.3.3
36108108
HDF5 1.14.2
h5py 3.10.0
NumPy 1.26.4
123636

All intact reads occur in a new process after the writers close, with a zero-byte chunk cache. Later one-bit controls reopen fresh file handles. Exact input/output array records agree across builds; whole-file hashes and error messages may differ. Both stacks ran on one Linux x86_64 host. The separate fileless matrix contains 72 cases per build and agrees between the low-level wrapper and direct C calls into the same library.

Package manifest and reproduction / Derived table and source hashes / HDF5 1.14.6 file observations / HDF5 1.14.2 file observations / Runner and pre-cast range guard / Review and limits.

observations[].input / freshProcessReads
Exact source values and native, HDF5 astype, read_direct and NumPy astype outputs for the original, HDF5-converted and NumPy-preconverted files.
decimal / hexBytes / dtype
Decimal strings avoid rounding uint64 in JSON consumers; hex bytes and explicit dtype retain representation and byte order.
damageControls
One payload-bit mutation per disposable file after intact reads, with hashes and the actual exception. Rejection is not a collision-rate estimate.
native-observations.json / native-review-1.14.2.json
Same-width sign/order cases and runtime converter names; no file I/O. Two builds do not establish all-version behavior or upstream confirmation.

Validate source ranges and missing-value meaning before conversion. A later checksum or native-type read cannot recover integers already changed by the writer. The included guard only supports integer arrays and does not address concurrent mutation, floats, units or null masks. No performance gain, hardware reliability or independent peer review is claimed. This supplement's original code and observations are CC0-1.0.

Reproduce

The file manifest and instructions list both runners, both test files, replay tools, requirements and source matrices. Keep those files together. The programs create synthetic images in memory; they do not accept production input paths. Use an isolated Python environment.

python -m unittest -v test_hdf5_filter_coverage.py test_hdf5_reader_policy.py
python verify_evidence.py
python verify_reader_policy.py

Runtime: Python 3.12.3, h5py 3.15.0, HDF5 1.14.6, NumPy 2.3.3, Linux x86_64. Exact replay also checks environment and source identity; a mismatch on another build is evidence to investigate, not a reason to overwrite the recorded result.

The CSV/metadata generator verifies runner hashes before deriving rows from the two saved traces. Neither CSV nor displayed numeric results are manually transcribed.

Column definitions

phase
Coverage mutation, fresh-reader policy, or strict read after permissive cache priming.
case
Designed case identifier; reader-policy cases include clean/damaged fixture.
repetition
Repeat on one build, not an independent population sample.
mask
Stored chunk filter mask; zero alone does not establish checksum coverage.
storedBytes
Stored target-chunk bytes, including checksum when present.
edcEnabled
Requested checking policy, not proof that checking ran.
cacheBytes
Explicit budget in reader cases; null in coverage cases, whose cache budget was not recorded.
outcome
returned-values or read-error; success does not establish agreement with the clean fixture.

Limits

Sources and reuse

CC0-1.0 for the original coverage, reader-state and heap code and observations; the separate scale-offset supplement retains its own README terms. Upstream materials retain their licenses.

  1. HDF Group: H5Pset_chunk_opts, Dataset Creation Properties
  2. HDF5 1.14.6 H5Dchunk.c: chunk flush and partial-edge read paths
  3. HDF Group: H5Dwrite_chunk and H5Dread_chunk
  4. h5py DatasetID API: chunk information and direct chunk methods
  5. HDF Group: H5Pset_edc_check and H5Pget_edc_check
  6. HDF5 1.14.6 H5Zfletcher32.c
  7. h5py 3.15.1: Datasets and filter pipeline
  8. HDF5 1.14.6 H5Dpublic.h
  9. HDF5 1.14.6: H5Z_pipeline filter-failure callback

Related definitions: chunked layout, raw-data chunk cache and checksum.

Published by Hesela team

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. HDF5 checksum coverage and reader-state observations. Hesela. https://hesela.dev/datasets/hdf5-checksum-coverage/