Documentation

36.35 Exit codes and machine-readable completion

Exit codes and machine-readable completion
Structural reference diagram

This chapter is a lookup reference for nlmx 4.16.1. Option tables are generated from the installed release executable. Read an option in the context of the command page: nlmx uses a global parser, but an accepted option can be irrelevant to a command unless its help text names that command or the command's method chapter defines the behavior.

The safe sequence is: identify the installed version, open that command's help, freeze input/settings/output paths, run into a new or empty output directory, inspect both the process status and the command-native verdict, and retain the log/resolved settings/checksums. A command line is reproducible only when its referenced files and software version are also frozen.

Exit-code taxonomy

Code Class Operational meaning
0 completed The process completed; still inspect the native PASS/WARN/FAIL, convergence, child-step, or model-selection status.
2 usage Unknown/missing option, invalid spelling/value, or invalid invocation/backend combination.
3 I/O/discovery Required file/server/output could not be found, read, contacted, or written.
4 configuration Settings syntax, unknown key/table, extension, or validated configuration value failed.
5 unsupported Requested model feature/backend capability is unsupported by the build/model.
6 artifacts Model artifacts are inconsistent; also command-specific strict QC behavior where documented.
7 data Dataset validation failed or strict data QC threshold was reached.
8 posterior Subject posterior reconstruction/ingestion failed.
9 numerical/learner Estimation, covariance, validation strictness, or learner numerical work failed.
10 empty No evaluable relationships/candidates/results remained.
11 checkpoint Resume/checkpoint identity or compatibility failed.
12 internal Invariant/panic was converted to a logged nlmx internal error; report it with evidence.

The same code can arise from several stages. Always retain the one-line reason, hint, log, and any partial output. Do not remap nonzero codes to zero in wrappers. Conversely, do not assume zero means a scientific PASS: validate without strict mode, QC without --fail-on, and Maxson child requests illustrate semantic outcomes that require native evidence.

Novice review checklist

  • Can you identify the exact installed nlmx version and canonical command?
  • Are positional inputs, named options, settings, and output paths unambiguous?
  • Did you distinguish parser acceptance from command-specific meaning?
  • Will the run preserve enough native evidence to determine semantic success?
  • Is a qualified human decision required after the software completes?

See the previous page, next page, and complete command index.