Documentation

12.24 Output bundle, files and unified diff

A qc-nm output directory is an evidence bundle, not just a report. Depending on [output] settings, it can contain the original/after-fix checklist, findings, changes, diff, corrected control stream, parameter and variable inventories, text and JSON summaries, HTML report, checksums, and log.

The output bundle serves people, automation and audit

Core files

File Main use
qc_nm_checklist.csv One row per check, including status before and after correction.
qc_nm_findings.csv Compact actionable findings for review or triage.
qc_nm_changes.csv Structured correction log with correction name and changed content.
qc_nm_changes.diff Unified, line-oriented source comparison.
<stem>_qc<ext> Generated corrected control stream; never automatic approval.
qc_nm_parameters.csv Parsed parameter inventory for review.
qc_nm_variables.csv Parsed variable/definition inventory.
qc_nm_summary.txt Human-readable verdict and all check results.
qc_nm_summary.json Machine-readable full result for tools and archives.
report.html Navigable browser report.
checksums.sha256 Integrity hashes for output files.
log_*.txt Execution messages and provenance details.

Read the diff first, then the structured tables

The unified diff answers “what source text changed?” Lines beginning with - are removed and + are added. qc_nm_changes.csv answers “which correction claimed responsibility?” Use both: one exposes exact context; the other supports grouping, filtering, and review sign-off.

The JSON summary is suited to automation but should be treated as a versioned schema. Pin the nlmx version, validate required fields, and tolerate explicitly optional fields. The HTML report is convenient for human review, not a stable parsing API.

Common mistakes

  • Archiving only report.html and discarding the machine-readable evidence.
  • Treating checksums as proof that scientific content is correct.
  • Parsing HTML when CSV or JSON provides a clearer contract.
  • Reading the corrected file without reviewing the change log and diff.

Checklist

  • Preserve the complete output directory.
  • Review checklist, findings, changes, and diff together.
  • Verify checksums after copying or archiving.
  • Pin parsers to a documented output schema/version.
  • Keep source, executable version, and dataset available for reproduction.

Further reading

Open the txtworked evidence bundle, worked diff, and Chapter 10 output contracts.