Documentation

7.10 Input manifests and SHA-256

An input manifest answers “which bytes did this run depend on?” nlmx's manifest records engine/run identity, input mode, the configuration path and SHA-256 digest, and input artifacts with roles, paths and digests.

SHA-256 maps file content to a 256-bit digest. It is useful for detecting accidental or unauthorised content changes and for matching copies stored under different names. It does not establish that the file was scientifically correct, who approved it, or whether two semantically equivalent text files should be considered the same.

Reading a manifest

Review each entry as a tuple:

role + path + SHA-256

The role explains why the artifact mattered. The path locates the observed copy. The hash identifies its bytes. A manifest that lists only filenames is vulnerable to replacement; a list of hashes without roles is difficult to interpret.

The configuration digest should correspond to the source configuration supplied to the run. CLI overrides are additional invocation evidence, so retain the command and effective-settings file. Do not assume that hashing the source settings alone captures overrides.

Hash limitations

Line-ending changes, regenerated comments or reordered TOML keys change the file hash even when effective settings are unchanged. Conversely, an unchanged settings file can produce different results after an executable upgrade or changed external input. Preserve executable version/hash and all relevant artifacts.

If an artifact is unreadable, nlmx may record an unreadable marker instead of a digest. Treat that as incomplete provenance requiring investigation, not as a valid hash.

Verification

At archive or rerun time, recompute digests and compare them before analysis. Verify the manifest itself is retained immutably. For regulated or high-assurance workflows, add signatures and access-control records at the surrounding system level; a plain checksum is not a digital signature.

Common mistakes

  • Calling a checksum proof of scientific validity.
  • Hashing settings but omitting datasets or model artifacts.
  • Ignoring an unreadable marker.
  • Forgetting CLI overrides and executable identity.

Checklist

  • Confirm every input has the correct role and digest.
  • Recompute hashes before reproducing a run.
  • Pair source hashes with effective settings and invocation evidence.

Further reading

See checksums and analysis hashes, rerun records and Chapter 42's planned validation framework.