This release is a pre-release and may not be stable for production use.
mech-lab
Mechanistic interpretability that ships.
Architecture-agnostic IR · Sheaf holonomy · SLSA L3 provenance
mech-lab produces Evidence Bundles, Receipts, Replay Packs, and Comparison Packets that other engineers can verify offline. The public trust anchor is concrete: the native Qwen3.5 lane runs through mechlab and emits MAIR-backed artifacts.
Install
pip install --pre mechlab-sdk
Quickstart
mechlab demo --output-dir artifacts/mechlab-demo
mechlab report artifacts/mechlab-demo/mair_manifest.v1.json --kind release-summary
import mech_lab as ml
bundle = ml.demo(output_dir="artifacts/mechlab-demo")
print(bundle.manifest_path)
print(ml.report(bundle))
What You Get
- Evidence Bundle:
mair_manifest.v1.jsonplus required MAIR-backed run artifacts - Receipt:
assurance_receipt.v1.json - Replay Pack: analyzed MAIR bundle with hook validation and intervention outputs
- Comparison Packet:
backend_comparison.v1.json
Real Model Proof
- native
qwen3_5runtime proof is complete through the publicmechlabfacade - the validated rerun used the real
Qwen/Qwen3.5-2Bcheckpoint - the validated host-local rerun used a documented CPU override after
device:autofailed before artifact emission on the recorded machine
Public Contract
- package name:
mechlab-sdk - CLI:
mechlab - Python namespace:
mech_lab - disk contract: MAIR-backed artifacts only
Metadata
Release files for mechlab-sdk 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mechlab_sdk-0.1.0a2.tar.gz | 68.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mechlab_sdk-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 157.7 kB
Release files / mechlab_sdk-0.1.0a2.tar.gz
| Download URL | mechlab_sdk-0.1.0a2.tar.gz |
|---|---|
| Size | 68.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c15f5dee2643546d15235d9b05a59fe40aad8e9b2eb3d7e4cb048fc72289415
|
|
BLAKE2b-256 checksum How to use checksums |
d644e9ffaf07e6ce317c0c59f6b62c4c827e7e5f814a7e57962e2675631e001d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 3, 2026.
Transparency logRelease files / mechlab_sdk-0.1.0a2-py3-none-any.whl
| Download URL | mechlab_sdk-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 89.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc62572a6fbc74fe63ca21a28ac3384889f572c6885f4885757c82e18b743865
|
|
BLAKE2b-256 checksum How to use checksums |
554fbac67724af39a3ce6b042e5e13649549bfba8fd42aecdc966360d3252049
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Apr 3, 2026.
Transparency log