Contributing#
The manifesto behind How we build:
Bloat is future technical debt.
Excessive abstraction hides reality.
Focus and clear boundaries promote flexibility and seamless integration.
Efficiency safeguards portability and scale.
Performance unlocks capabilities.
Rigor earns trust.
Simplicity enables discovery.
Read How we build first: the twelve rules every pull request in the family is read against, plus the style, release and license terms.
This repo: the dependency-free protocol spine. The manifest schema, the engine and provider contracts, and the interop certification matrix. Every other repo declares raptor; raptor declares nothing.
Build and run the gate#
pip install -e . pytest
python -m pytest -q -rs -m "not cross_repo" # the suite gate (.github/workflows/ci.yml)
cross_repo selects the eagle conformance battery. It needs an eagle checkout next to this one and fails, not skips, without it.
The free-threading rows run with python -m pytest -m ft -W error::RuntimeWarning on a free-threaded build.
Docs (cd docs; install pip install -r requirements.txt, or pip install ./site from a checkout of the landing site for the shared raptor-docs tooling):
make strict # zero warnings
make linkcheck
make nbexec # run the tutorial notebooks in place; outputs are committed
make nbcheck # fail on an unexecuted notebook
python -m raptor_docs.fresh --check --site ../site # generated numbers and the capability map are current; --write re-mints
make nbcheck-hosted runs the notebooks the way a Colab user does; the rules are in eagle’s
Documentation guide.
Where things live#
raptor/schema/: the manifest contract (manifest.py,blocks.py,dtypes.py);validate_manifestis the entry point.raptor/protocols/:Backend,KernelLauncher,ManifestProvideras structural protocols.raptor/conformance/: the row declaration (interop.py) and the pytest plugin that records which rows ran.tests/: the suite;goldens/: manifests every golden test validates.docs/content/: the pages.A new interop row: Contributing a certification row. What each contract pins: Concepts, for contributors.
What a PR here must show#
dependencies = []inpyproject.tomlstays empty. A new import is function-local and optional, or it does not land.A new framework or crossing is a certification row, declared here first and registered by the owning repo second: Contributing a certification row.
tests/test_packaging.pyandtests/test_docs_interop_protocols_sync.pystay green: they keep package metadata and the published matrix in step with the code.The family checklist from How we build, nothing more.
Release#
Every pull request to main carries one label: release:patch, release:minor, release:major, release:rc, or release:none for a docs-only change. The version is the latest vX.Y.Z git tag plus that label; nothing in the tree holds it. The pull request body is the release note. The whole flow is in RELEASING.md.