Skip to content

Harden Compass CLI help and export contracts - #258

Merged
forhappy merged 1 commit into
mainfrom
agent/cli-audit
Aug 17, 2026
Merged

Harden Compass CLI help and export contracts#258
forhappy merged 1 commit into
mainfrom
agent/cli-audit

Conversation

@forhappy

Copy link
Copy Markdown
Contributor

Summary

  • add dedicated, accurate help pages for nested store, program, history-cache, and export commands
  • return a nonzero exit status when benchmark execution reports an error
  • support atomic --output writes for export callflow-json
  • add regression coverage for nested help, benchmark failures, and call-flow JSON file output

Why

Several supported CLI paths either fell through to generic or unknown help, reported benchmark failures as success, or documented a call-flow JSON output path that the parser rejected. These changes make the public CLI contract and exit behavior consistent.

Validation

  • RUSTUP_TOOLCHAIN=1.97.1 CARGO_TARGET_DIR=/Volumes/Workspace/crabbuild-target/compass-cli-pr cargo test -p compass-cli --tests --locked
  • RUSTUP_TOOLCHAIN=1.97.1 CARGO_TARGET_DIR=/Volumes/Workspace/crabbuild-target/compass-cli-pr cargo clippy -p compass-cli --all-targets --all-features --locked -- -D warnings
  • RUSTUP_TOOLCHAIN=1.97.1 cargo fmt --all -- --check
  • git diff --check
  • sh scripts/check_product_boundary.sh

@forhappy
forhappy marked this pull request as ready for review August 17, 2026 03:04
@forhappy
forhappy merged commit cecb0b9 into main Aug 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant