Thanks for your interest in improving omc. omc is a deny-by-default supply-chain security tool, so contributions are held to a high bar for correctness and for never weakening an existing defense.
omc is a Rust workspace. Build and test the whole workspace:
cargo build --workspace
cargo test --workspaceIf you only touched a single crate you may scope the commands to that crate
(e.g. cargo test -p omc-registry), but run the full workspace tests before
opening a PR if your change spans multiple crates.
Before committing, your change must pass:
cargo fmt --all
cargo clippy --workspace --all-targetscargo fmt --all must leave no diff, and clippy must be free of warnings on the
code you touched.
- Tests must use canary hosts and placeholder values only (e.g.
evil.invalid,canary.invalid). Never commit real secrets, credentials, or live exploit payloads. - When you change detection or verification behavior, add a test that fails before your change and passes after it.
- Branch off
main. - Make your change, keeping it focused.
- Ensure
cargo fmt --all,cargo build --workspace, andcargo test --workspaceall succeed locally. - Open a PR. CI runs build, format, clippy, and tests; all checks must be green before merge.
- Address review feedback and keep the branch up to date with
main.
The tree is always kept green. If you cannot get cargo fmt, cargo build, and
cargo test passing for the crates you touched, revert your changes rather
than committing a broken state. Never commit a red tree.
omc is deny-by-default. A change to the profiler, verifier, or verdict gate may only ever catch more, never less. If you believe a defense should be relaxed, open an issue to discuss it first — do not weaken a check in a PR.
For reporting vulnerabilities, see SECURITY.md. Do not file security issues as public PRs or issues.