clew — for contributors¶
What a person changing clew needs, apart from what a person using it needs (that is
OVERVIEW.md). The contributor contract — the gate, the @version rule, “absence
is not emptiness”, the seven places a new index layer touches — is AGENTS.md.
flowchart LR
edit[edit] --> red[RED test first]
red --> fix[change the code<br/>bump @version]
fix --> gate[pre-commit gate<br/>gate-hygiene · knots · clew guard · ruff · sync-metadata · pytest]
gate -- green --> commit[commit]
gate -- red --> fix
Development setup¶
python3 -m venv .venv
.venv/bin/pip install -e .[dev] # pipeline + the doxygen gate + dev tooling
sudo apt install doxygen # external binary (plantuml optional)
.venv/bin/pre-commit install # the commit-time gate — not optional
That last line is listed because this repository reached 1.1.0 without it: nothing gated a commit,
and every green in its history was a human remembering to run one. The gate-hygiene hook now
refuses to report success in a checkout where it is missing.
AGENTS.md is the contributor contract — the gate, the @version rule on doxygen
blocks, “absence is not emptiness”, and the seven places a new index layer has to touch.
Layout¶
Path |
What |
|---|---|
|
The pipeline ( |
|
The stable query API the MCP server is a view over |
|
The doxygen gate ( |
|
|
|
The schema and grading routine for the instrument being rebuilt |
|
Build and refresh cost, and judge variance — measured beside the matrix, never inside it |
Dogfooding¶
clew runs its own gate: .venv/bin/pre-commit run --all-files → ruff (lint +
format), the doxygen gate (@brief/@version/@return presence on the shipped
package, run from this tree as python -m clew guard), and the full test suite. Its own
catalog lives in requirements.yaml.