Skip to main content

Mechanistic interpretability that ships: MAIR-backed evidence bundles, receipts, and comparison packets

Project description

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.json plus 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_5 runtime proof is complete through the public mechlab facade
  • the validated rerun used the real Qwen/Qwen3.5-2B checkpoint
  • the validated host-local rerun used a documented CPU override after device:auto failed 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mechlab_sdk-0.1.0a2.tar.gz (68.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mechlab_sdk-0.1.0a2-py3-none-any.whl (89.3 kB view details)

Uploaded Python 3

File details

Details for the file mechlab_sdk-0.1.0a2.tar.gz.

File metadata

  • Download URL: mechlab_sdk-0.1.0a2.tar.gz
  • Upload date:
  • Size: 68.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mechlab_sdk-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 7c15f5dee2643546d15235d9b05a59fe40aad8e9b2eb3d7e4cb048fc72289415
MD5 7d44554ca708da962dacf87176660562
BLAKE2b-256 d644e9ffaf07e6ce317c0c59f6b62c4c827e7e5f814a7e57962e2675631e001d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mechlab_sdk-0.1.0a2.tar.gz:

Publisher: release.yml on mech-lab/mech-lab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mechlab_sdk-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: mechlab_sdk-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 89.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mechlab_sdk-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc62572a6fbc74fe63ca21a28ac3384889f572c6885f4885757c82e18b743865
MD5 2a624c5dc06536ff32e70183761bc207
BLAKE2b-256 554fbac67724af39a3ce6b042e5e13649549bfba8fd42aecdc966360d3252049

See more details on using hashes here.

Provenance

The following attestation bundles were made for mechlab_sdk-0.1.0a2-py3-none-any.whl:

Publisher: release.yml on mech-lab/mech-lab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page