DOCS
  • Getting Started
  • Custom token vaults
  • Running a check
  • Output and exit codes
  • Preflight errors
  • Conformance checks
  • Security checks
  • Check API
  • Limits and queue
  • Function coverage
  • Result types
  • Test vaults
CLI

Output and exit codes

The four result statuses, the text, JSON and Markdown formats, reason codes, exit codes and the status file.

Result statuses

StatusMeaning
PASSThe check's assertions held.
FAILAt least one assertion did not hold. This is a finding about the vault.
INCONCLUSIVEThe tool could not reach a verdict, for example because a test account holds none of the vault's token. Not a finding about the vault.
NOT_APPLICABLEThe check does not fit this vault's design, for example a constructor the security checks cannot use to deploy their copy. Not a finding about the vault.

Text output

11 result lines, then one summary line:

summary line
Summary: N checks, X passed, Y failed

, K inconclusive and , L not applicable are appended only when above zero, for example Summary: 11 checks, 7 passed, 0 failed, 4 inconclusive.

JSON output

--output json prints an array with one object per check, in the fixed check order.

FIELDS

namestring
Check id, for example deposit.
categorystring
Positive Conformance or Security/Adversarial.
statusstring
PASS, FAIL, INCONCLUSIVE or NOT_APPLICABLE.
detailstring
Human-readable explanation with the measured values.
reason_codestringoptional
Present only for INCONCLUSIVE and NOT_APPLICABLE.

ABBREVIATED EXAMPLE

json
[
  { "name": "deposit", "category": "Positive Conformance", "status": "PASS", "detail": "…" },
  { "name": "donation_attack", "category": "Security/Adversarial", "status": "INCONCLUSIVE",
    "detail": "…", "reason_code": "insufficient_token_balance" }
]
Verified

Field names and order are taken from the CLI's unit tests. The detail text is shortened here; a real run prints the measured values.

Markdown output

--output markdown (since v0.5.0) prints a report you can save as a .md file. The report is built from the same results as the text and JSON formats.

PartContent
Title# Aegis Vault — Conformance Verification Report
Header listVault, network, spec reference, checker version, start and end time, duration, and the result line.
SummaryThe result headline, then Core function checks: X of N passed and Basic security checks: X of N passed. Inconclusive and not-applicable counts are listed only when above zero.
TablesOne table per group, Conformance checks and Security checks, with the columns #, Check, Status and Detail. Rows are numbered 01 to 11 in the fixed check order.
Error sectionOnly when a prerequisite is missing (exit code 2): the error, the code, a Problem paragraph and a Fix paragraph, and the line No checks were run.

Real reports from Testnet runs with CLI 0.5.0 are in docs/sample-reports/ in the GitHub repository: the Positive Control Vault (11 PASS), the Reference Vault (10 PASS, 1 FAIL) and a prerequisite error.

Verified

The format is covered by 12 unit tests (markdown::tests in cli/src/markdown.rs), and the sample reports come from three Testnet runs of CLI 0.5.0.

Not verified yet

Not verified: that the Markdown from the CLI is identical in content to the Markdown exported by the web app for the same run. Also not verified: how the report looks once rendered, and the Linux and macOS v0.5.0 archives, which have not been run.

Reason codes

CodeStatusMeaning
insufficient_token_balanceINCONCLUSIVEA token transfer a check needed was rejected, most likely a short balance on a test account.
network_errorINCONCLUSIVEA network problem stopped the check.
unclassified_errorINCONCLUSIVEAn error the tool could not classify. The raw error is in detail.
constructor_mismatchNOT_APPLICABLEThe vault's constructor does not accept (name, symbol, asset, decimals_offset), so the security checks cannot deploy their copy.
not_a_standard_vaultNOT_APPLICABLEThe vault has no query_asset, or its underlying asset has no decimals().

Exit codes

CodeMeaning
0No check failed and none was inconclusive. Not-applicable checks do not count either way.
1At least one check failed. A failure always wins over an inconclusive result.
2A prerequisite is missing. No check ran. See Preflight errors.
3No check failed, but at least one was inconclusive. The vault was not fully checked.
Verified

NOT_APPLICABLE does not change the exit code. A run in which no check applied exits 0, the same as a run in which all passed. Read the summary line or the JSON, not only the exit code.

Status file

With --status-file <PATH>, the CLI rewrites a JSON snapshot each time a check starts or finishes. The web backend uses it to show live progress.

ABBREVIATED EXAMPLE

status.json
{
  "vault": "C…",
  "updated_at_ms": 1760000000000,
  "checks": [
    { "id": "total_assets", "group": "conformance", "status": "pass", "detail": "…" },
    { "id": "deposit", "group": "conformance", "status": "running", "detail": null }
  ]
}
checks[].idstring
One of the 11 check ids, always in the fixed order.
checks[].groupstring
conformance or security.
checks[].statusstring
pending, running, pass, fail, inconclusive or not_applicable (lowercase here, unlike the JSON output).
checks[].detailstring | null
Set when the check finishes.
checks[].reason_codestringoptional
Present only when there is one.
Verified

Field names are taken from cli/src/status.rs. The values in the example are placeholders, not output of a real run.