Skip to content
Skip to Content

cohortix documentation

How to run cohortix, what every scenario key means, what every error code asks you to change, and how to write a plugin.

cohortix is an agent-based demographic simulation engine written in Rust, for the ex ante evaluation of population policies: simulating what a policy would change in a population before it is applied, with uncertainty reported alongside the results.

Early development

Version 0.1 runs the tracer subset of the scenario format with one test-only plugin, test/ticker. The official demographic plugins come later. Nothing here is ready for use in a study yet, and interfaces will change.

  • Get started

    Build from source, run the example scenario and read what it writes.

  • Concepts

    Kernel and plugins, the scenario file, the journal, common random numbers.

  • Scenario reference

    One page per key: type, unit, default, valid range and a runnable example.

  • Errors

    One page per code: what was refused, why, and the exact fix.

  • Developer guide

    The workspace, the plugin SDK, contracts and the rules CI enforces.

  • Changelog

    What changed in each release.

How the docs are built

The scenario reference, the error pages, the plugin list and the official/Core contract page are generated at every build from the engine sources: the typed config groups of the kernel, the message catalogue schemas/messages/en.toml and the contract files. A key or a code that exists in the engine has a page here, and a page here describes something that exists. Each generated page says so at its foot.

The version is part of every address: /0.1/ is the documentation of cohortix 0.1. Use the version that cohortix --version prints.

On this page

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