Full rename of all identifiers, filenames, and references: ironclaw → optimclaw IronClaw → OptimClaw IRONCLAW → OPTIMCLAW ironclaw_common → optimclaw_common ironclaw_safety → optimclaw_safety Upstream: nearai/ironclaw
1.2 KiB
description, allowed-tools
| description | allowed-tools |
|---|---|
| Run the full Rust quality gate (fmt, clippy, tests) before shipping changes | Bash(cargo fmt:*), Bash(cargo clippy:*), Bash(cargo test:*) |
Run the OptimClaw shipping checklist. This is the mandatory quality gate before any change is considered done.
Steps
-
Format: Run
cargo fmtto normalize formatting. -
Lint: Run
cargo clippy --all --benches --tests --examples --all-featuresand report any warnings or errors. ALL clippy warnings must be resolved before proceeding. -
Test: Run
cargo test --libto execute the full library test suite. Report the total pass/fail count. -
Summary: Report results for all three steps. If any step failed, list the specific errors and suggest fixes. Do NOT proceed past a failing step.
If $ARGUMENTS is provided, treat it as a specific test filter and run cargo test --lib -- $ARGUMENTS instead of the full suite in step 3.
The expected outcome for a clean ship is:
cargo fmtproduces no changescargo clippyhas zero warnings- All tests pass
Note: Integration tests (--test workspace_integration) require a PostgreSQL database and are expected to fail locally. Only report --lib test failures as blocking.