Lakmus
A CLI that runs domain test suites against models, agents and MCP servers. The unit is the suite, not the model: a directory in Git, versioned and reviewable, that states what is measured and the thresholds that must hold.
Status: pre-release. The suite format is at draft version 0.1 and the engine is in development. The command set below is the v0.1 target; not all of it exists yet.
A suite
rh/equite-tri-cv-fr/
├── lakmus.yaml # what is measured, how, and the thresholds that must hold
├── cases/pairs.jsonl # the inputs, one JSON object per line
├── prompts/screener.j2 # how a case becomes a prompt
├── scorers/pair_gap.py # optional, when the domain needs its own scoring
├── README.md # what the suite claims, and what it does not
└── LICENSE
Nothing in it is specific to a provider. The manifest carries the thresholds, so a run ends with a verdict rather than a number to interpret:
lakmus: "0.1"
id: rh/equite-tri-cv-fr
version: 1.2.0
title: Équité du tri de CV en français
language: fr
risk_level: high
target:
kind: model
input: prompts/screener.j2
output:
type: json
metrics:
- id: score_gap
scorer: scorers/pair_gap.py:mean_abs_gap
group_by: [variable]
thresholds:
score_gap: {max: 0.05}
The specification — every field, the validation rules, the versioning policy — is published with release 0.1.
Running a suite
uv tool install lakmus
lakmus validate ./rh/equite-tri-cv-fr
lakmus run ./rh/equite-tri-cv-fr --target openai:gpt-x
lakmus run ./rh/equite-tri-cv-fr --target ollama:mistral-small
lakmus compare lakmus-runs/01J.../run.json lakmus-runs/01K.../run.json
A target is an adapter and an endpoint: a hosted model, a local model, an agent behind HTTP, or an
MCP server over stdio. The exit code is the verdict — 0 passed, 1 a threshold failed, 2 bad
usage or an invalid suite, 3 a runtime error — so a suite drops into CI without a wrapper script.
Reproducibility
Every run writes a run.json carrying the tool version, a hash of every file in the suite, a
fingerprint of the target, the full configuration, and the aggregates with 95% bootstrap confidence
intervals. Two results are comparable when the suite hash and the format version match, and
lakmus replay re-runs a recorded configuration. Temperature is 0 by default, the seed is
explicit, and a scorer that calls a model declares itself non-deterministic.
Runs are local. The CLI calls targets directly with your keys, read from environment variables named in the suite or on the command line, and writes results to a directory you choose. No account, no server.
Contributing
CONTRIBUTING.md covers setup and the checks; the conventions shared across the organisation are in CONVENTIONS.md. A change to a public interface starts as a change proposal issue and is settled before implementation.
Writing a suite needs domain knowledge more than Python. Open an issue describing what you want to measure.
Licence
Apache-2.0. Suites carry their own licence, declared in their manifest.
Metadata
Release files for lakmus 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lakmus-0.1.0.tar.gz | 223.7 kB | With provenance | Details for lakmus-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lakmus-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lakmus-0.1.0-py3-none-any.whl |
Total release size: 340.7 kB
Release files / lakmus-0.1.0.tar.gz
| Download URL | lakmus-0.1.0.tar.gz |
|---|---|
| Size | 223.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e97727be739517be8521b8db7d98bd9fd4e5de5778d420718f74de5a4e97e691
|
|
BLAKE2b-256 checksum How to use checksums |
569b56b178a1e234944af3cc25b96da8cf95338b342e2216afbc968b5170931f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logRelease files / lakmus-0.1.0-py3-none-any.whl
| Download URL | lakmus-0.1.0-py3-none-any.whl |
|---|---|
| Size | 117.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ea103a282abaea16dbcb5411802857632c1b152d532cb59a5124dd0e95b2f8b
|
|
BLAKE2b-256 checksum How to use checksums |
8ffecc67cc446833ebb80a6841da8115fb8a0792f7ca9a3590be9921ca714bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logSecurity for lakmus 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lakmus-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.