szl-provctl
Provenance-DAG traversal, receipt-chain records shaped as in-toto Statement v1 and SLSA provenance v1, and an optional per-kernel NVML energy observation. Pure-Python (noarch) kernel, limited software maturity, no trained weights.
Published from GitHub
szl-holdings/szl-provctl by its
hf-kernel-publish workflow. GitHub is the source of truth; this repository is
written only by that workflow.
Load it
# pip install "kernels>=0.17.2" torch
from kernels import get_kernel
kernel = get_kernel("SZLHOLDINGS/szl-provctl", version=1, trust_remote_code=True)
report = kernel.selfcheck() # CPU-only, never raises
assert report["ok"], report
chain = kernel.UnifiedReceiptChain()
chain.emit("example", "inspect", {"record": "synthetic"})
dag = kernel.ProvenanceDAG()
dag.add_run("example", chain)
print(kernel.verify_dag(dag)["ok"])
version=1resolves thev1branch, the stable API channel. It is republished on every release. Thekernelslibrary refuses a call that names neither a version nor a revision.trust_remote_codeis required: SZLHOLDINGS is not a trusted kernel publisher on the Hub. Loading this kernel executes its Python. The narrowest form istrust_remote_code=["SZLHOLDINGS/szl-provctl"].- CPU hosts load
build/torch-cpu; CUDA and other hosts loadbuild/torch-universal. Both variants carry identical code, built from the same GitHub commit.
Pin an exact build (production)
from huggingface_hub import HfApi
from kernels import get_kernel
refs = HfApi().list_repo_refs("SZLHOLDINGS/szl-provctl", repo_type="kernel")
pin = next(b.target_commit for b in refs.branches if b.name == "v1")
kernel = get_kernel("SZLHOLDINGS/szl-provctl", revision=pin, trust_remote_code=["SZLHOLDINGS/szl-provctl"])
Record pin (a commit of this kernel repository) in your lockfile.
SZL_KERNEL_SOURCE.json in this repository names the GitHub commit each build came from.
Commits of the model repository
https://huggingface.co/SZLHOLDINGS/szl-provctl and GitHub commits are not kernel revisions and do
not resolve here.
Before you use it
- Hash-chain consistency does not authenticate the producer, prove truthful inputs, or establish that a provenance graph is complete.
- SLSA-shaped JSON does not establish a SLSA level. Validate exported statements with the external verifier that will consume them.
- Treat malformed dependency graphs as failure. Energy is reported only as a real NVML measurement; it is unavailable (never estimated) when no measurement backend exists. The NVML delta is device-wide (GPU index 0), not isolated to the measured kernel.
proven_trustis structurally lockedFalse. Lambda uniqueness is Conjecture 1: open and advisory, never a theorem.- A successful load or
selfcheck()exercises the programmed assertions only. It is not a product qualification. No benchmark numbers are claimed here.
Apache-2.0. © 2026 SZL Holdings.
Artwork: SZL Orbit · © 2026 SZL Holdings / Stephen Lutar · CC BY 4.0 · Trademark notice.
- Downloads last month
- -