CLI Reference & Exit Codes
Complete CLI subcommand catalog, arguments, flags, and exit codes.
Complete command-line interface reference for the m31a binary, built with clap 4.5.
Standardized UNIX Exit Codes
| Code | Meaning | Description |
|---|---|---|
| 0 | Success | Command completed successfully; all verification gates passed. |
| 1 | Verification Failure | Work completed but failed automated quality checks (tests, linter). |
| 2 | Policy Violation | Action was blocked fail-closed by security policy engine. |
| 3 | Budget Exhaustion | Mission exceeded one or more 10-dimensional hard resource bounds. |
| 4 | Crash / Infrastructure | Unexpected runtime crash, storage corruption, or system failure. |
| 5 | Configuration Error | Invalid configuration schema or monotonic violation. |
Subcommands Catalog
m31a / m31a tuiCoreLaunch the interactive Ratatui cockpit interface.
m31a mission runMission & TaskStart an autonomous software engineering mission.
m31a mission listMission & TaskList all recorded missions in the current workspace.
m31a mission showMission & TaskDisplay detailed mission status, task DAG, and budget consumption.
m31a mission pause / resume / cancelMission & TaskControl the lifecycle state of an active mission.
m31a task list / showMission & TaskInspect individual tasks in the mission DAG and their verification evidence.
m31a agent listInspectionInspect active and idle agents across the 8 canonical roles.
m31a capability listInspectionList all 15 core capability families and operational availability.
m31a policy checkInspectionDry-run evaluate an action or tool against active policy layers.
m31a checkpoint list / restoreInspectionManage atomic two-phase mission checkpoints and rollback.
m31a artifact list / showInspectionInspect content-addressed immutable execution artifacts and SHA-256 digests.
m31a doctorDiagnosticsRun comprehensive environmental diagnostic probes.
m31a telemetry inspectDiagnosticsInspect execution traces, hierarchical spans, metrics, and token usage.
m31a config validate / get / set / sourcesConfigurationInspect, validate, and manage hierarchical configuration across 7 tiers.
m31a eval runDiagnosticsExecute autonomous evaluation harness benchmark scenarios.
m31a initCoreInitialize workspace onboarding state (idempotent; use --force to re-enter setup).
m31a version / deploymentDeploymentDisplay deployment channel, build identity, commit hash, and artifact details.
m31a update / rollbackDeploymentTransactional binary update from manifest and atomic rollback to previous binary.
Machine-Readable JSON Output
For CI/CD scripts and orchestration tools, specify --output json or --output stream-json:
m31a --output json doctor
m31a --output json mission list
m31a --output stream-json mission run "Refactor logging"