Contributing¶
Use Source setup and test tiers for toolchains, focused commands, component gates and local launchers.
-
Create a focused branch and keep unrelated worktree changes intact.
-
Install the local Conventional Commit hook:
-
Make the smallest coherent change, following the architecture, security boundaries and crate structure:
- keep
colossus-domaindependency-free; - keep CLI and TUI as request/render interfaces;
- keep crate roots thin;
- put policy, tool, model, workflow, and state behavior in their owning services;
- test supported behavior; remove a deleted feature's tests unless they protect an intentional rejection, migration or compatibility contract.
Map unclear ownership before adding code. Repair security or state invariants exposed by tests rather than weakening the assertions.
- keep
-
Iterate with focused package checks and directly affected tests. Once the change is finished, inspect the final diff and run the PR gate before opening or updating the pull request:
This is the final local check, not the edit loop. It includes the full Rust gate when Rust is selected; do not also run
cargo xtask check ruston unchanged source. -
Use a Conventional Commit message:
Allowed types are
build,chore,ci,docs,feat,fix,perf,refactor,revert,security,style, andtest. -
Describe the behavioral outcome, affected boundaries and validation in the PR. Resolve actionable human and automated review findings and required checks. With the final head green, conflict-free and non-draft, request hosted acceptance once through the
ci:fullprocedure.