git clone https://github.com/nearai/ironclaw.git
cd ironclaw
./scripts/dev-setup.shThis installs the Rust toolchain, WASM targets, git hooks, and runs initial checks.
cargo fmt # format
cargo clippy --all --benches --tests --examples --all-features # lint (zero warnings)
cargo test # unit tests
cargo test --features integration # + PostgreSQL tests- Zero clippy warnings policy
- No
.unwrap()or.expect()in production code (tests are fine) - Use
thiserrorfor error types, map errors with context - Prefer
crate::for cross-module imports - Comments for non-obvious logic only
See CLAUDE.md for full style guidelines.
When your change affects a tracked capability, update FEATURE_PARITY.md in the same branch.
- Review the relevant parity rows in
FEATURE_PARITY.md. - Update status/notes if behavior changed.
- Include the
FEATURE_PARITY.mddiff in your commit when applicable.
All PRs follow a risk-based review process:
| Track | Scope | Requirements |
|---|---|---|
| A | Docs, tests, chore, dependency bumps | 1 approval + CI green |
| B | Features, refactors, new tools/channels | 1 approval + CI green + test evidence |
| C | Security (src/safety/, src/secrets/), runtime (src/agent/, src/worker/), database schema, CI workflows |
2 approvals + rollback plan documented |
Select the appropriate track in the PR template based on what your changes touch.
IronClaw uses dual-backend persistence (PostgreSQL + libSQL). All new persistence features must support both backends. See src/db/CLAUDE.md.
Run cargo deny check before adding new dependencies to verify license compatibility and check for known advisories.