Skip to main content

MLflow plugin: automatic PRML manifest hash tagging for runs. Pre-registered ML evaluation claims.

Project description

mlflow-falsify — automatic PRML manifest hash tagging for MLflow runs

PyPI version Python versions License: MIT DOI Spec: PRML v0.1

Drop a PRML manifest in your repo. Every MLflow run gets cryptographically bound to it. No workflow changes.

Install

pip install mlflow-falsify

The plugin is discovered automatically through MLflow's mlflow.run_context_provider entry point.

Usage

import mlflow

# .prml.yaml exists in CWD or any parent directory — that's all you need.
with mlflow.start_run():
    mlflow.log_metric("accuracy", 0.873)
    # The run now carries prml.manifest_hash and friends as tags.

What gets tagged

When a .prml.yaml or prml.yaml is found in the current directory or any ancestor, every run is tagged with:

  • prml.manifest_hash — SHA-256 of the canonical manifest bytes (PRML v0.1 §3)
  • prml.manifest_path — relative path to the discovered manifest
  • prml.version — manifest schema version (e.g. prml/0.1)
  • prml.metric — the pre-registered metric (e.g. accuracy)
  • prml.comparator — one of >=, >, ==, <=, <
  • prml.threshold — the numeric threshold, as a string
  • prml.dataset_id — the pre-registered dataset identifier

Missing or malformed fields are silently skipped. The provider never raises into your run.

Why this matters

  • EU AI Act Article 12 evidence layer. Every logged run carries a tamper-evident pointer to the claim it was meant to test.
  • Eval reproducibility by default. The hash freezes metric, threshold, dataset, and seed before the experiment runs.
  • Audit trails for free. Reviewers can recompute the manifest hash from the YAML and compare it against your tracked runs.
  • No workflow change. Existing MLflow code is untouched — the plugin attaches via entry points.

Links

License

MIT. Copyright 2026 Studio 11 / Cüneyt Öztürk.

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

mlflow_falsify-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

mlflow_falsify-0.1.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mlflow_falsify-0.1.2.tar.gz.

File metadata

  • Download URL: mlflow_falsify-0.1.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlflow_falsify-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d2e8f61885c93ccb8a28f79f43533fa0146a8eb59a7087d00b539c1aa9ea2d1b
MD5 b2b9b7b6c437970d8c30c591903df618
BLAKE2b-256 636e908eb86ad5d8b0f20ec3c4064da834bd804763367c01056e1d91042c4616

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_falsify-0.1.2.tar.gz:

Publisher: publish.yml on studio-11-co/mlflow-falsify

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

File details

Details for the file mlflow_falsify-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mlflow_falsify-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlflow_falsify-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99e5b6a50eb98bdd408702fea86ff1e0be160f1a00e3f608bac9256163477216
MD5 e10b01b0d0d14a7517c2293586224635
BLAKE2b-256 0561eca930e447a95b55147f64e618be2eee3814566420f1ae965f7391eeee53

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlflow_falsify-0.1.2-py3-none-any.whl:

Publisher: publish.yml on studio-11-co/mlflow-falsify

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