Recipes#
Each recipe answers “I want to add X: where does it go and what contract must I honor?”. It lists the files to create or edit, the contract (a Pydantic model, a Protocol, a registry), the registration, the test to add and the pitfalls the layer matrix or the linter would flag. For a deeper read of the code, follow the link to the matching entry of Packages.
New here? Start with the Quick start.
Extend the code#
Every port with what a plugin declares, how it registers and the tests that cover it, read from the registries. Start here for a solver, a mesh or terrain engine, a data source, an evaluator, an optimizer, an export format or a figure.
A field with a unit, a profile and a description. The generated reference documents it from that declaration.
Bind a <process_type>_<name> key to an adapter class that declares its
thirteen attributes, and to an output extractor.
A new process type next to flow and transport, on the worked example of transport.
A new family next to hydrometry, geology or dem, with its
manager.
A public API or a local-file source for an existing data variable.
A variable, a preset or a panel for Run.figure and the [[display.figure]] tables.
A static HTML report composed of reusable blocks.
Stream catalog rows or per-run payloads into a new file format.
A new hmp verb under cli/commands/.
A new optimizer in the ask/tell engine.
The JSON Schema and the partial validator, for any UI.
The thin HTTP layer of the repository: one space per organisation, one process per run.
Check and ship#
The tier, the marker, the fixtures, and the rules for running tests in parallel.
What each rule of tests/unit/architecture means and how to satisfy it.
Version, changelog, tag, and what the tag starts.