Documentation

7.17 Reviewing and versioning settings

Settings are scientific source code. Review them with the same discipline as model code: small diffs, named reviewers, frozen inputs, automated checks and an explanation for each result-affecting change.

A review order

  1. Confirm the nlmx version and command-specific extension.
  2. Validate TOML structure, key names and types.
  3. Resolve every input and output path from its correct base.
  4. Review method, approximation and statistical targets.
  5. Review dataset policies, censoring, missingness and transformations.
  6. Fix seed, threads, tolerances and other numerical controls for comparisons.
  7. Inspect effective settings after a small run.
  8. Verify manifests, logs and checksums.

This order moves from identity and parseability to scientific meaning and finally execution evidence. A file that parses cleanly can still encode the wrong method.

Version-control practice

Commit reviewed source settings and concise comments explaining non-obvious choices. Do not routinely commit bulky generated runs into the same history; archive immutable evidence in a system suited to its size and governance, linked by digest and run identifier.

When upgrading nlmx, regenerate command templates to a temporary location and diff them. New keys, removed keys, changed defaults or new extensions require a deliberate migration. Validate old configurations against the new executable; strict parsing makes obsolete fields visible.

Avoid editing a settings-used artifact into a new source file without review. It may contain machine-specific output paths and inactive default sections. Instead, copy only understood effective values into a clean, generated template.

Accuracy and speed claims

Performance changes must not silently change accuracy settings. Benchmark configurations should make approximation, stopping criteria, step sizes, draws/replicates, seeds, threads and data policies explicit. Report speed and agreement together, with tolerances chosen before results are inspected.

The configuration system supplies traceability; it does not prove an estimator reproduces NONMEM, PsN, PopED or Monolix. That requires reference problems, matched semantics and acceptance criteria, as planned for Chapter 42.

Common mistakes

  • Accepting a large regenerated settings diff without classifying changes.
  • Mixing machine-specific paths into the scientific baseline.
  • Reporting a speedup after weakening accuracy controls.

Checklist

  • Review settings as code and require rationale for scientific changes.
  • Re-diff templates and defaults on every upgrade.
  • Predefine cross-software metrics and tolerances.
  • Archive intent, effective configuration and execution evidence together.

Further reading

Continue to the planned Chapter 8, the model engine. Chapter 9 will cover numerical reproducibility, Chapter 40 compatibility boundaries and Chapter 42 validation/testing.