Skip to main content
This page is for the operator whose run stopped or whose row was quarantined. After reading it you will know what each code means and whether the fix is in the input, the config or the environment. You will also know which exit code to gate on in a pipeline. Failure messages name the field, the subject and the fix, and never echo the subject’s value. npm start -- --dry-run reports every problem in a batch at once, so most of these are found before anything is proved.

Prover error codes

Every failure inside trusset-prover maps to one stable code. Codes reach you in the subject_failed and leaf_failed events, in failures.csv, in audit.log, and in the CLI’s progress lines. In a real run the prover stops at the first failing leaf of a subject and reports it; the other subjects continue. In a dry run every failing leaf of every subject is reported.

Refusals before the prover runs

The TypeScript layer stops with exit code 1 and a message ending in Fix: when something is wrong before there is a batch to prove. The code column shows what the message is keyed on. Rows quarantined by validation carry E_INPUT in failures.csv. The causes:
  • a malformed wallet,
  • an unrecognised investorType,
  • an expiry out of range or in the wrong order,
  • a malformed evidenceDate,
  • an object where a scalar was expected,
  • a missing hashed field.

Registry, archive and verifier errors

The native binaries print trusset-<name>: <message> on stderr and exit 1 for a refused operation or 64 for a usage error. The messages say what was refused and why. The refusals are:
  • a list version with unchanged values,
  • a lapse without --effective-date, or a voidance with one,
  • a different root at an already anchored block,
  • a leaf name the bundle does not contain,
  • an archive whose bundles name different issuers,
  • a batch that depends on a list with no registry.
The verifier exits 66 when a bundle or archive cannot be read, including archive integrity check failed, and 2 when a check fails, with the failing leaf’s reason in the report. Verification lists its codes.

Exit codes by command

Troubleshooting

In the repository