szl-invariants
Control before action. Evidence after.
Product · Proof · GitHub organization
Software kernel for SZL runtime invariants. Not a model. No weights.
The offline flywheel-lineage check requires each sample's receipt ID to identify
exactly one exported ledger row, with demo explicitly false and a non-null
servedNode. Duplicate receipt IDs and absent or non-boolean demo flags violate
the check; export order and a sample's pre-joined claims cannot resolve ambiguous
provenance. This checks the supplied export's consistency, not the authenticity
or completeness of the underlying run history.
Python lives under torch-ext/szl_invariants/ (__init__.py is the package). Hub kernel: kernels/SZLHOLDINGS/szl-invariants, published from this repository by hf-kernel-publish (card source: hf/kernel-card.md). The model repo SZLHOLDINGS/szl-invariants only points to the kernel repo; it holds no loadable build.
What this is NOT
- Not trained weights, not a LoRA
- No MEASURED CUDA benches in this repo
- Passing
selfcheck(if present) is not an eval leaderboard - Hub
model.joblibis QUARANTINED executable serialization. Do notjoblib.loadit. GitHub source is the approved path.
Load only a verified publication
A merged GitHub fix is not proof of a Hugging Face release. This repository's
hf-kernel-publish workflow is the only
writer of the kernel repo. It builds build/torch-cpu and build/torch-universal
from torch-ext/ at one reviewed commit, pushes them fast-forward to the kernel
repo's main and v1 branches, and then loads them anonymously through
get_kernel in a fresh job to check the served bytes against GitHub. Its publish
and verify receipts (workflow artifacts) name the kernel-repo commits.
The stable channel is get_kernel("SZLHOLDINGS/szl-invariants", version=1, trust_remote_code=True).
For production, pin an exact build: set SZL_INVARIANTS_HF_REVISION to the
immutable kernel-repo commit of v1 from a passing verify receipt, not a
branch name, version label, or the GitHub source commit. Use kernels>=0.17.2.
Do not substitute main when a receipt or revision is unavailable; stop instead.
import os
import re
hf_revision = os.environ.get("SZL_INVARIANTS_HF_REVISION", "")
if re.fullmatch(r"[0-9a-f]{40}", hf_revision) is None:
raise ValueError("A verified immutable Hugging Face revision is required")
from kernels import get_kernel
kernel = get_kernel(
"SZLHOLDINGS/szl-invariants",
revision=hf_revision,
trust_remote_code=True,
)
The format check above does not verify provenance, hashes, authorization, or
runtime compatibility. Those come from the release evidence. Enabling
trust_remote_code permits execution of the selected repository's Python; use
it only after reviewing that exact revision and its evidence. This example
neither unquarantines model.joblib nor establishes acceleration or model quality.
For source-only development, use a separately reviewed, immutable GitHub source revision and run its tests in an isolated environment. Keep that evidence distinct from Hub publication and installed-runtime verification.
Offline run_invariants requires a valid base64-encoded Ed25519 SPKI public
key for signature verification. Malformed keys and keys for other algorithms
make signature checks and coverage UNAVAILABLE; the other ledger checks still
run. KEY_ROTATED remains reserved for receipts that fail verification under a
usable supplied key and identify a different signing key.
Doctrine v11. Λ = Conjecture 1 (advisory, never a theorem). Apache-2.0. Owner: Stephen Lutar / SZL Holdings.
License
Apache-2.0 — see LICENSE.
Metadata
Release files for szl-invariants 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| szl_invariants-0.1.4.tar.gz | 34.0 kB | With provenance | Details for szl_invariants-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| szl_invariants-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for szl_invariants-0.1.4-py3-none-any.whl |
Total release size: 52.7 kB
Release files / szl_invariants-0.1.4.tar.gz
| Download URL | szl_invariants-0.1.4.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0dfad82ac73e676461ef887f78d15b5042d28e042791ca8ab7cd4dfb834454b
|
|
BLAKE2b-256 checksum How to use checksums |
0ef1a40c739808feec0c24a5120f99fde692016713829229b3fc7c37ba3df250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logRelease files / szl_invariants-0.1.4-py3-none-any.whl
| Download URL | szl_invariants-0.1.4-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58074f0fefd66739784d7201e5ce261c29b0e4a02a8c38324b30add886e99c94
|
|
BLAKE2b-256 checksum How to use checksums |
8c52aa9d0cd20bf3598310e1b9196b161d6ab6dcb2144b67a4a2655a842545ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 16, 2026.
Transparency logSecurity for szl-invariants 0.1.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for szl_invariants-0.1.4.tar.gz
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 Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.