Conventions and CI rules
The rules the continuous integration enforces on every change, and why.
The ci/ folder holds the checks that keep the workspace inside its architecture rules. They run in CI on every push and pull request, and locally from the workspace root.
Enforced on every change
| Rule | Checked by |
|---|---|
No kernel-to-plugin or plugin-to-plugin edge; pipeline crates depend only on cohortix-schema and their own family; nothing depends on cohortix-dhs. | ci/check_crate_graph.py |
| Polars only in the pipeline and presentation crates. | ci/check_crate_graph.py |
rand, fastrand and getrandom absent from the SDK, kernel, interpreter and plugins. | cargo deny |
libm only with an exact =x.y.z version; std transcendental math forbidden in the kernel, interpreter and plugins; no fast-math flag anywhere. | clippy, ci/check_crate_graph.py |
Only the binaries depend on cohortix-logging. | ci/check_crate_graph.py |
| The engine path compiles no C, C++ or assembly on the five tier-1 targets. | ci/pure_rust_check.sh |
The public API of cohortix-sdk does not break without a version bump; it compiles on Rust 1.88. | cargo-semver-checks, job msrv |
| No user-facing text is a literal in the code. | ci/check_literal_strings.py |
Messages
Every help, report and error text comes from the English message catalogue, schemas/messages/en.toml. Each diagnostic has a code, a rule and a fix there; the error pages are generated from it. A French catalogue comes in 1.2.
Documentation of the code
Every public item carries rustdoc in English, every module opens with a module comment, and cargo doc runs without warnings. Every crate has a README with its role, contents, limits, dependencies, usage and status.
Two cadences
| Cadence | When | Suites |
|---|---|---|
| Per change | Every push and pull request | Build, clippy and unit tests; licences; crate graph; pure Rust; SemVer and MSRV; conformance, reference scenarios and golden files (placeholders in 0.1) |
| Scientific | Every night, on demand, and before each release | Step convergence, comparison with stored reference distributions, cohort-component check (placeholders in 0.1) |
Suites that have no code yet run ci/placeholder_suite.sh, which says which story fills them and passes. ci/placeholder_suite.sh --list prints the table.
Adding a crate
Add it to [allowed] in ci/crate-graph.toml with the workspace crates it may depend on. A new plugin needs nothing more than [lints.clippy] disallowed_methods = "forbid" in its manifest.