Documentation

10.2 Output-bundle layers and consumers

An output file should be judged by the job it performs. Four layers recur across nlmx workflows, and a defensible hand-off usually needs all four.

Human review

HTML, text listings and figures answer rapid interpretive questions: Did the run converge? Which model or scenario was used? Are distributions, residuals and warnings plausible? These artifacts are intentionally formatted and selective. They can round values, hide detail behind a collapsible section or present only a diagnostic subset.

Human-facing output is the review surface, not the canonical machine interface. Copying a rounded estimate from a rendered table into a downstream calculation discards precision and provenance.

Machine reuse

CSV and JSON files preserve values for plotting, comparison, regression tests and derived analyses. CSV is naturally rectangular and broadly interoperable. JSON preserves nested structures and types. Consumers should select fields by documented names, validate required columns or keys, and tolerate explicitly documented additions. Selecting “column 7” or depending on display order is fragile.

Provenance

An input manifest records the engine version, run stem, input mode, configuration path and hash, and the role, path and hash of discovered artifacts. Settings-used output, when a command supplies it, captures the effective analysis choices after precedence. The complete command line shown by reports supplies another reviewable record.

These records answer related but different questions. A configuration hash proves which configuration file was read; it does not prove that a CLI override was absent. A command line records invocation; it does not prove that a referenced input still has the same bytes. Keep both.

Integrity

checksums.sha256 detects changes in recorded output bytes after the run. It does not judge scientific validity, prove authorship or authenticate the manifest against malicious replacement. For higher-assurance transfer, protect the checksum manifest with an external signed archive or trusted repository record.

Consumer Preferred artifact Do not substitute
Reviewer HTML + text + figures A directory listing with no interpretation
Script CSV or JSON Scraped HTML table cells
Reproducer inputs + settings + command + version Screenshot of the terminal
Archivist complete bundle + checksums + inventory A zip containing only figures
Publisher final-size SVG/PNG + source values Rescaled screenshot

Cross-layer consistency

The layers should agree. A summary count must be traceable to a machine table; a plotted point or interval must be reconstructable from retained values or documented transformations; a report command line must match the archived settings; every expected output should appear in the integrity inventory. Cross-layer disagreement is a release blocker even when each artifact looks reasonable alone.

Common mistakes

  • Treating the HTML report as a database.
  • Archiving machine tables without the settings that define them.
  • Believing a checksum certifies scientific correctness.
  • Publishing a figure whose plotted source values were not retained.

Checklist

  • Identify the human, machine, provenance and integrity artifact for the run.
  • Compare at least one displayed value with its machine-readable source.
  • Preserve full precision in machine files and deliberate rounding in reports.
  • Document any expected layer that a command does not emit.

Further reading

See input manifests, output checksums and archiving and sharing.