Documentation

9.1 The reproducibility contract

A result is reproducible only within a stated envelope. At minimum, record:

  • nlmx version and executable hash;
  • source/settings and effective configuration;
  • every input artifact hash;
  • master seed and RNG derivation version;
  • algorithm, approximation, tolerances and stopping rules;
  • thread count, although results are designed not to depend on it;
  • operating system, architecture and relevant library/build identity;
  • output hashes and comparison tolerances.
Nested levels of reproducibility

Figure 9.4. Tolerance agreement, identical scientific-file bytes and identical complete directories are progressively stronger—and materially different—claims.

This separates three useful promises.

Repeatability

The same executable, inputs and settings produce the same retained numerical outputs. Nondeterministic metadata—timestamps, random log filenames and elapsed time—may differ and should not be included in a byte-identity claim.

Thread-count invariance

Changing --threads does not reassign random streams or alter ordered result assembly. nlmx explicitly claims identical results across thread counts. Validate this for stable scientific files, not entire output directories.

Cross-platform agreement

Different compilers, CPUs or math libraries may produce last-bit differences even when algorithms are equivalent. Cross-platform validation therefore uses prespecified absolute/relative tolerances and discrete-decision checks. Bit identity is a stronger claim that must be tested and version-scoped.

Scientific reproducibility

Matching bytes does not establish correctness. A deterministic misinterpreted model repeats perfectly. Scientific reproducibility additionally requires matched model/event semantics, data processing and reference-software acceptance tests.

A practical contract statement

For fixed executable hash, inputs, effective settings, seed and RNG version,
stable numeric outputs are identical across 1/2/4 threads. Across supported
platform builds, continuous values must meet declared abs/rel tolerances and
all categorical decisions must agree.

Adjust this statement only after evidence supports it.

Common mistakes

  • Calling a fixed seed a complete reproducibility record.
  • Hashing directories containing timestamps and expecting identity.
  • Treating deterministic output as validated output.

Checklist

  • State the promised envelope before testing.
  • Separate stable scientific files from volatile metadata.
  • Define bitwise and tolerance-based comparisons independently.

Further reading

See stream derivation, thread determinism and floating-point differences.