The workspace
The Rust crates of cohortix, what each one owns, and which ones exist in 0.1.
The engine is one Cargo workspace. Each crate has its own README with its role, contents, limits and dependencies; this page is the map.
cargo build --workspace --locked
cargo test --workspace --locked
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo doc --workspace --no-depsEngine
| Crate | Role | In 0.1 |
|---|---|---|
cohortix-schema | Shared schemas, data manifest, units, Parquet reader and diagnostics | In use |
cohortix-kernel | Agents, links, territory, scheduler, keyed randomness, journal and provenance | In use |
cohortix-sdk | Public plugin SDK: manifest types, host traits, the emit transaction | In use |
cohortix-contracts | Loader and embedded official contract definitions | In use |
cohortix-cli | Command-line library behind the cohortix and chx binaries | In use |
cohortix-logging | The logging subscriber of the binaries: JSON lines with --log-dir | In use |
cohortix-indicators | Indicators computed from the journal, never from engine memory | Started |
cohortix-declarative | Interpreter for the declarative plugin tier | Placeholder |
cohortix-conformance | Conformance suites for plugins and contracts (test only) | Placeholder |
cohortix-ensemble | Ensembles, scenario comparison and cost reporting | Placeholder |
cohortix-observation | Observation operators | Release 1.1 |
cohortix-calibration | History matching, ABC and recovery tests | Release 1.1 |
cohortix-bench | Benchmark harness, external-engine runner and FPsim adapter | Placeholder |
Data pipeline
| Crate | Role | In 0.1 |
|---|---|---|
cohortix-data | The cohortix-data binary: run, status, manifest and register | In use |
cohortix-pipeline | Pipeline step engine: configure stage, fingerprints and cache | In use |
cohortix-adapters | Source adapters: DHS first, HDSS, PMA and census later | Placeholder |
cohortix-steps | Generation steps: initial population and FPsim import | Started |
cohortix-dhs | Standalone DHS acquisition tool, kept outside the pipeline graph | Placeholder |
Presentation
| Crate | Role | In 0.1 |
|---|---|---|
cohortix-report | Self-contained HTML report | Release 1.1 |
cohortix-dashboard | Local read-only dashboard | Release 1.2 |
cohortix-present | Presentation binary for the report and the dashboard | Release 1.1 |
Other folders
| Folder | What it holds |
|---|---|
plugins/official/ | The official plugins: contraception, mortality, reproduction, union-exogenous (reserved, not written yet). |
contracts/official/ | The official contracts: Core v1 in 0.1. |
distributions/ | Distributions, each a binary plus a plugin set. distributions/tracer is the test-only one that cohortix run links in 0.1. |
plugins/test/ticker, contracts/test/ | The test-only plugin and contract. |
registry/index.toml | The local plugin catalogue. |
schemas/ | Normalized table schemas, the unit vocabulary, the indicator registry, the output schemas and the message catalogue. |
clients/python, clients/r | Read-only client libraries over the output files (reserved). |
Dependency direction
The kernel never depends on a plugin, a plugin never depends on another plugin, the pipeline crates depend only on cohortix-schema and their own family, and nothing depends on cohortix-dhs. CI fails any other edge: see conventions.