metrik-core
The vocabulary every other Metrik package agrees on: the artifact envelope, canonical serialization, and content addressing.
This package defines vocabulary, not behaviour (plan.md §4). It has no ML dependencies —
no torch, no transformers — which is enforced in CI by import-linter, not by convention. That
constraint is what lets the artifact layer be installed and reasoned about without a multi-gigabyte
ML stack.
Not published yet. Phase 2 of the roadmap.
What is here so far
| Module | Purpose |
|---|---|
metrik.core.hashing |
Canonical JSON, Digest, content_hash, derivation_hash |
metrik.core.errors |
The error taxonomy plugins raise from |
metrik.core.artifacts |
The envelope every artifact carries |
The two hashes
The subtlest part of the design, and getting it wrong makes both caching and reproducibility silently unreliable. There are two questions, so there are two hashes:
| Question | Answered by |
|---|---|
| Is this the same result as that? | content_hash — over the payload only |
| Have I already computed this, so can I skip the work? | derivation_hash — over how it was asked for |
A single hash cannot do both. Caching needs a key computable before running, so it must cover inputs and parameters rather than results. Dedup and citation need a key covering only the value, so two runs producing identical numbers are recognised as identical even if asked for differently.
Because both are recorded, the store can check a producer's determinism claim rather than
believe it: same derivation_hash, different content_hash, and a declared class of
deterministic means the declaration is false.
Specification
The full contract is docs/planning/artifacts.md. This
package implements §2 (envelope), §3 (hashing and canonicalization), and §4 (blobs).
Canonicalization rules are normative and tested as properties, not examples — see
tests/test_canonical_properties.py.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metrik_core-0.1.0.tar.gz.
File metadata
- Download URL: metrik_core-0.1.0.tar.gz
- Upload date:
- Size: 75.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72c8fc0dbbce4f06de593a46a543137f2f7fe836fc0535489cea17776b5300db
|
|
| MD5 |
af21429f238df075948aa99433203a2e
|
|
| BLAKE2b-256 |
00e076674b5364bf06e20899c44577b32cb166688fe152c858f9bd046a3b9641
|
Provenance
The following attestation bundles were made for metrik_core-0.1.0.tar.gz:
Publisher:
release.yml on Asmodeus14/Metrik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrik_core-0.1.0.tar.gz -
Subject digest:
72c8fc0dbbce4f06de593a46a543137f2f7fe836fc0535489cea17776b5300db - Sigstore transparency entry: 2303088483
- Sigstore integration time:
-
Permalink:
Asmodeus14/Metrik@313a81ac0f5125640aa6e50ad581f8742714c787 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Asmodeus14
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@313a81ac0f5125640aa6e50ad581f8742714c787 -
Trigger Event:
push
-
Statement type:
File details
Details for the file metrik_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metrik_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
687fb46081472af61ebf935a43f249d432d2c82ee45c3082da6fc1b55c4656df
|
|
| MD5 |
df7035b38565faa7406b61ab3d4879fa
|
|
| BLAKE2b-256 |
d0cef6555c02e1d02be6a84c18766a803e827265d20ed77606a078d198b75e73
|
Provenance
The following attestation bundles were made for metrik_core-0.1.0-py3-none-any.whl:
Publisher:
release.yml on Asmodeus14/Metrik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metrik_core-0.1.0-py3-none-any.whl -
Subject digest:
687fb46081472af61ebf935a43f249d432d2c82ee45c3082da6fc1b55c4656df - Sigstore transparency entry: 2303088591
- Sigstore integration time:
-
Permalink:
Asmodeus14/Metrik@313a81ac0f5125640aa6e50ad581f8742714c787 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Asmodeus14
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@313a81ac0f5125640aa6e50ad581f8742714c787 -
Trigger Event:
push
-
Statement type: