Skip to content
Docs
Request access

Exit codes

Every nuramesh command ends with one of these exit codes. They are the same for every command, and a test runs real commands to prove each row. Scripts and monitors should test the code, never the message.

Code Name Meaning What to do
0 Success The command did what it was asked. Nothing.
1 Not all done The work ended, but a part failed or waits for a person. Read the message, fix the cause and run again.
2 Invalid request Nothing was started: an argument, the configuration or the plan is wrong. Fix what the message names and run again.
3 Refused A rule refused the start or the action. Read the message, then fix the model setup or the request.
4 Halted or stopped An organization halt, a role pause or a person stopped the work. Lift the halt or resume the role, then run again.
5 Unavailable The store or a target could not be reached. Wait and try again.
6 Done with warnings The command finished and found warnings. Read the warnings and act on them.
130 Interrupted You pressed Ctrl-C. Run the command again.

For a run: every task is done and the ledger verified. The stop, org halt and roles pause commands always succeed. They write only to the ledger and need no content key, so an organization whose key is destroyed or unavailable can still be stopped.

One of these happened:

  • a gate failed;
  • an otel check or export failed;
  • a task is needs_human (a blocked model call included);
  • a ledger chain is broken;
  • a connection test failed.

Bad arguments, configuration, team module, plan or run cap. Nothing was run; at most the catalog seed was written.

  • A bare run found no usable model catalog or connection. Add --fake for the demo.
  • Model governance refused the start.
  • models check found a block.
  • A models or stop action was refused.
  • Organization halt. The halt is in force at the start, or it stopped the run or the eval. A halt in force at the start wins over exit 3.
  • A person stopped the run.
  • Role pause. eval run for an agent whose role is paused stops with this code, and the message names the role (role 'dev' is paused). A run only cancels the paused role’s tasks and the other roles go on, so it ends with 1 (tasks not done), or with 4 if a halt or a person’s stop ends it.

The store is busy or locked, or an otel connection check could not reach its target. A retry may work.

minter anchor-verify found a STALE or EPOCH warning, or a shared key.

nuramesh try aborts on the second Ctrl-C, and the ledger says aborted. Every other command stops at the prompt or the step and writes nothing.

Was this page helpful?