Skip to content
Skip to Content

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.

Terminal
cargo build --workspace --locked
cargo test --workspace --locked
cargo fmt --all --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo doc --workspace --no-deps

Engine

CrateRoleIn 0.1
cohortix-schemaShared schemas, data manifest, units, Parquet reader and diagnosticsIn use
cohortix-kernelAgents, links, territory, scheduler, keyed randomness, journal and provenanceIn use
cohortix-sdkPublic plugin SDK: manifest types, host traits, the emit transactionIn use
cohortix-contractsLoader and embedded official contract definitionsIn use
cohortix-cliCommand-line library behind the cohortix and chx binariesIn use
cohortix-loggingThe logging subscriber of the binaries: JSON lines with --log-dirIn use
cohortix-indicatorsIndicators computed from the journal, never from engine memoryStarted
cohortix-declarativeInterpreter for the declarative plugin tierPlaceholder
cohortix-conformanceConformance suites for plugins and contracts (test only)Placeholder
cohortix-ensembleEnsembles, scenario comparison and cost reportingPlaceholder
cohortix-observationObservation operatorsRelease 1.1
cohortix-calibrationHistory matching, ABC and recovery testsRelease 1.1
cohortix-benchBenchmark harness, external-engine runner and FPsim adapterPlaceholder

Data pipeline

CrateRoleIn 0.1
cohortix-dataThe cohortix-data binary: run, status, manifest and registerIn use
cohortix-pipelinePipeline step engine: configure stage, fingerprints and cacheIn use
cohortix-adaptersSource adapters: DHS first, HDSS, PMA and census laterPlaceholder
cohortix-stepsGeneration steps: initial population and FPsim importStarted
cohortix-dhsStandalone DHS acquisition tool, kept outside the pipeline graphPlaceholder

Presentation

CrateRoleIn 0.1
cohortix-reportSelf-contained HTML reportRelease 1.1
cohortix-dashboardLocal read-only dashboardRelease 1.2
cohortix-presentPresentation binary for the report and the dashboardRelease 1.1

Other folders

FolderWhat 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.tomlThe local plugin catalogue.
schemas/Normalized table schemas, the unit vocabulary, the indicator registry, the output schemas and the message catalogue.
clients/python, clients/rRead-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.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.