Documentation

7.11 Output checksums, logs and analysis hashes

nlmx uses several hash-bearing artifacts for different purposes. Do not collapse them into one concept.

Artifact Purpose
Input manifest Identifies configuration and input artifacts
checksums.sha256 Digests output files registered through the output writer
Analysis hash Binds resumable/checkpoint state to analysis inputs
Executable SHA-256 Identifies the exact binary used in a validation bundle

checksums.sha256 is written when an OutputSet is finished. It covers files managed through that output set; do not claim it automatically inventories every file any subprocess or later manual step placed in the directory. Compare the file list to the documented output contract.

Logs

The run log supplies chronology and context that hashes cannot: version, invocation, stages, warnings, timings and failure descriptions. A log may contain absolute paths or environment details; preserve it securely and redact only in a derived sharing copy, never by modifying the original evidence.

Early startup failures may precede output-directory preparation and therefore have no attached run log. External capture is required for those cases.

Analysis hashes and resume

Resume/checkpoint mechanisms use an analysis hash derived from configuration and artifact hashes. If relevant inputs changed, resume should refuse rather than combining incompatible state. This is a safety boundary: bypassing it would undermine numerical and scientific comparability.

An analysis hash is not a universal result fingerprint. Two executions may have the same scientific configuration but differ in nondeterministic scheduling, platform math or untracked environment. Conversely, a comment-only file edit may alter a source hash without changing effective values.

Archival order

After successful completion, ensure writers have finished, then verify output checksums, copy the entire output directory atomically where practical, and verify again at the destination. Keep the original settings, effective settings, input manifest and binary identity adjacent to the results.

Common mistakes

  • Assuming checksums.sha256 covers arbitrary later files.
  • Treating an analysis hash as a scientific validation result.
  • Resuming after input changes by defeating the guard.

Checklist

  • Match each hash to its documented purpose.
  • Preserve complete logs, including warnings.
  • Verify checksums before and after transfer.

Further reading

See input manifests, effective-settings records and Chapter 9's planned numerical reproducibility discussion.