Subsystem: CLI & Command Dispatch
The command dispatch subsystem (src/cli/) unifies command handling across CLI invocations and TUI user interactions.
Dispatch Architecture
src/cli/args.rs: Clap 4 declarative parser definitions.src/cli/dispatch.rs:CliDispatcherexecutingRuntimeCommandvariants.src/cli/exit_codes.rs: Stable process exit codes (0 to 7).src/cli/output.rs: Formatted text, JSON, and NDJSON streaming formatters.
Exit Code Taxonomy
Guaranteed exit code values:
0: Success1: General Error2: Configuration Error3: Verification Failed (Nyquist gate)4: Policy Violation / Unattended Approval Required5: Interrupted (SIGINT/SIGTERM)6: Resource Exhausted7: Crash Recovered