Chapter 34 guardrail, policy, and audit index
This is the compact lookup for the nlmx 4.16.1 Maxson trust model. Chapter 35 provides the complete operational .ask and command reference.
Deterministic guardrails
| Guardrail | 4.16.1 behavior | Configurable control |
|---|---|---|
| command allowlist | only named nlmx commands; ask always refused |
[policy] commands except self-call cannot be enabled |
| compiled no-config defaults | inspect, validate, qc-data, qc-nm, eda, custom, report, nca, autoinit, screen, fit, vpc, forest, cov, posterior, sims, power, er, generate, schema | replace list to narrow/alter |
| built-in forbidden options | --overwrite, --log-file, --print-config, --run-dir, --keep-subject-ids |
[policy] forbid_options adds more, never removes built-ins |
| command validity | parsed by the real nlmx CLI; unknown/malformed options refused | not bypassable |
| numeric caps | subproblems 1000; samples 5000; study-replicates 200; replicates 1000, including settings values | [policy.max_values] may tighten/add/override |
| reads | start tree, session tree, explicit extra directories; resolved/canonical paths and nested settings/control-stream paths checked | [policy] read_dirs |
| writes | fresh numbered folders inside the session; fix-output also confined | not expanded by model text |
| shell/programs | nlmx subcommands only; no arbitrary process/shell protocol | not configurable |
| network | embedded offline; server limited to localhost by default | [policy] allow_remote_server |
| confirmation | every command by default; long or none alternatives |
confirm, allow_yes; CLI --yes subject to policy |
| settings reproducibility | real settings file for template commands; explicit full fit options | [policy] settings_files |
| loop/time bounds | 12 replies, 15 steps, 120 min/step, 480 min/request, 2 corrections | [limits] |
Important 4.16.1 default/template discrepancy
When no .ask file supplies policy.commands, the compiled default includes power. The annotated file produced by nlmx ask --print-config writes an explicit list that currently omits power. Therefore running with that generated file disallows power unless the user adds it. The source template also includes custom and report; an older prose guardrail table in docs/ASK.md does not list those two. For audit, use the resolved ask_settings.ask and installed source/template behavior rather than assuming the prose table is exact.
Instructions versus controls
| Layer | Purpose | Can model wording bypass it? |
|---|---|---|
| built-in/custom instructions | desired behavior, analysis order, honest language | yes, a model can misunderstand/ignore |
| reply grammar/parser | structural communication | malformed replies can fail; lenient server parsing normalizes some forms |
| policy engine | commands, options, caps, paths, output, network | no through the reply protocol |
| confirmation | human action approval | --yes/policy may intentionally bypass prompts |
| nlmx child command | deterministic analysis implementation | can still implement a wrong scientific specification |
Confirmation and non-execution modes
| Mode | Behavior |
|---|---|
confirm="every" |
each approved command asks |
confirm="long" |
screen, fit, cov, posterior, vpc, sims, power, er, generate, simulate-study ask |
confirm="none" |
no interactive confirmation |
--yes |
skips prompts only when allow_yes=true |
--plan-only |
checks and records plans; runs no analysis command |
| guide mode | checks/shows commands for user execution; assistant itself runs none |
Session evidence
| Artifact | Review purpose |
|---|---|
transcript.md |
human-readable requests, messages, decisions, refusals, plans and runs |
ask_log.jsonl |
raw replies and machine event stream: context, saves, confirmations, results, corrections, end status |
commands.txt |
only commands that actually ran, standalone and ordered |
ask_settings.ask |
resolved assistant, backend, policy and limits |
system_prompt.txt |
exact instructions/context scaffold supplied to the model |
templates/, generated settings, settings_history/ |
settings provenance and corrections |
NN_command/ask_console.txt and native outputs |
full child-process evidence |
root and step checksums.sha256 |
integrity verification |
Executed demonstrations
- Approved session transcript
- Plan-only session transcript
- Refused self-invocation transcript
- Approved-session machine event log
- txtStandalone command record
Return to the Chapter 34 overview or begin 34.1.