Contributing¶
The most useful contributions are new components to compare: a reranker, chunker, query enhancer or agentic pipeline. Changes to the core are welcome too.
Set up¶
git clone https://github.com/dolev31/lasagna && cd lasagna
uv pip install -e ".[all]" --group dev
pre-commit install
pytest tests/ --ignore=tests/live --ignore=tests/stress
The suite keeps the Hugging Face hub offline and downloads nothing. A test that needs weights you have not cached skips and names them.
Add a component¶
Read write a component for the short path, and contributing components for the full contract, the conformance checks and the pull request checklist.
Build these docs¶
The docs use MkDocs. Install the pinned toolchain and build in strict mode, which fails on any broken link:
pip install --group docs
mkdocs build --strict
mkdocs serve
Three pages are generated from the code: the CLI reference,
the catalog and the settings reference.
Do not edit them by hand. Each has a script in scripts/ and a test that fails
when the page is stale. Every lasagna ... command in a docs code block is
checked against the real command line.
Find something to work on¶
First, star the repository and watch its releases (Watch > Custom > Releases): stars help other researchers find Lasagna, and a release can change what your pull request depends on.
Wanted lists the components, benchmarks and studies the project
would like to have, each with what "done" means. Every issue open for
contribution is labeled size: feature or size: research. Lasagna does not take tiny pull requests: a
typo, a broken link or a one-line pin on its own is an issue, and a maintainer
folds it into the next change.
To claim an issue, read its comments first: the first claim with a plan wins.
Then comment "I'm taking this" with your plan: the files you will change, the
test that will fail on main, and the docker compose commands you will run
(for a study: the question, the arms, what is held fixed, and what would prove
it wrong). Claim one issue
at a time, and deliver every item of its "Done when".
The bar for a pull request¶
Every pull request is read in full by a person who will maintain it, so the bar is the same whoever or whatever wrote the code. A check runs on every pull request and fails until:
- the description fills in the template: why, what changed, how it was tested, the evidence, and which agent was used, if any;
- a person names themselves, by GitHub handle, as having read every line of the diff;
- every suppression in the lines added names its code and gives a reason, and every TODO links its issue;
- a change to
src/lasagna/comes with a test and a changelog line.
Every change is also run in the production environment, the Docker Compose
stack in src/lasagna/deploy built from the branch, and the description shows
the docker compose commands and what came out. Docker is free through
Rancher Desktop, Docker Engine on Linux, Docker
Desktop for personal use, or a GitHub Codespace. The steps are in
CONTRIBUTING.md.
Run it before you open the pull request:
python scripts/check_pr_body.py --file body.md --diff origin/main
AI coding agents are welcome under the same bar. A pull request below it is closed with a link to the quality bar, and can be opened again once it meets it.
The rest¶
The contributing guide covers the definition of done for each kind of change, bug reports and how to disagree about a number. The code of conduct applies to every space.