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. |
Exit 0: success
Section titled “Exit 0: success”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.
Exit 1: not all done
Section titled “Exit 1: not all done”One of these happened:
- a gate failed;
- an
otelcheck or export failed; - a task is
needs_human(a blocked model call included); - a ledger chain is broken;
- a connection test failed.
Exit 2: invalid request
Section titled “Exit 2: invalid request”Bad arguments, configuration, team module, plan or run cap. Nothing was run; at most the catalog seed was written.
Exit 3: refused
Section titled “Exit 3: refused”- A bare
runfound no usable model catalog or connection. Add--fakefor the demo. - Model governance refused the start.
models checkfound a block.- A
modelsorstopaction was refused.
Exit 4: halted or stopped
Section titled “Exit 4: halted or stopped”- 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 runfor an agent whose role is paused stops with this code, and the message names the role (role 'dev' is paused). Arunonly 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.
Exit 5: unavailable
Section titled “Exit 5: unavailable”The store is busy or locked, or an otel connection check could not reach its target. A retry may
work.
Exit 6: done with warnings
Section titled “Exit 6: done with warnings”minter anchor-verify found a STALE or EPOCH warning, or a shared key.
Exit 130: interrupted
Section titled “Exit 130: interrupted”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.
Related pages
Section titled “Related pages”- Stopping a run: how a stop and an abort end a run.
- CLI reference: every command and option.
- Upgrade notes: what changed for installs made before the first public release.
Was this page helpful?