mif-core
The metric and strategy qualification layer of the Metric Integrity Framework.
mif-core sits above the two canonical infrastructure projects:
mif-dqf → certifies data quality
mif-dal → assembles and hands off certified data
mif-core → qualifies metrics and strategies
This first increment defines explicit contracts and a deterministic offline catalogue. Tests are selected explicitly; no hidden one-size-fits-all protocol is applied.
Included test catalogue
The package currently ships six offline checks: DAL handoff readiness, signal shape, adaptive positive-return stability, return integrity, configurable rolling out-of-sample consistency, and prefix causality (look-ahead detection). They are deliberately small building blocks, not a complete profitability guarantee.
Development
python -m pip install -e '.[dev]'
python -m pytest
python -m build
The published distribution is named mif-foundation on PyPI. The
import package and command remain core and mif-core respectively; the
longer distribution name makes the PyPI project unambiguous.
Supported Python versions
The current release supports Python 3.11 and 3.12. Python 3.13 support is
deferred because the canonical mif-dal dependency currently requires a
NumPy version without a compatible Python 3.13 distribution.
mif-core catalog
mif-core --version
mif-core demo
mif-core metric-demo
mif-core demo --format text
mif-core metric-demo --format text
mif-core demo --tests T_HANDOFF_001,T_LOOKAHEAD_001
An external strategy can implement StrategyAdapter and be certified against
an explicit list of tests. See examples/certify_strategy.py for an offline
example; production callers should supply the real DALHandoff from
mif-dal-en.
examples/certify_metric.py shows the corresponding metric contract.
See docs/API.md for the supported public surface.
See docs/ROADMAP.md for current limits and next phases.
See docs/PUBLISHING.md for the PyPI release path.
Status
Development implementation based on the documented MIF v5 architecture. The
architecture file contains a historical brainstorming version marker; the
provenance decision is recorded in docs/PROVENANCE.md.
Test
python3 -m unittest discover -s tests -v
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 mif_foundation-0.1.0.tar.gz.
File metadata
- Download URL: mif_foundation-0.1.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c77d00ac52ae4559f37e44fb534f1453213947acfdd938d2ab931dbfd122a43f
|
|
| MD5 |
9c00c17aa4cb163a2ca9577dd6ccbfc3
|
|
| BLAKE2b-256 |
6253811d252e345d2dcdc3146bf2fbeef254af92037ad950e8bd5aa7ad8b06c9
|
Provenance
The following attestation bundles were made for mif_foundation-0.1.0.tar.gz:
Publisher:
publish.yml on symbioticode/mif-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mif_foundation-0.1.0.tar.gz -
Subject digest:
c77d00ac52ae4559f37e44fb534f1453213947acfdd938d2ab931dbfd122a43f - Sigstore transparency entry: 2566153451
- Sigstore integration time:
-
Permalink:
symbioticode/mif-core@dfb1ab9943d78f60101cb1f903def82b17edc36d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/symbioticode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfb1ab9943d78f60101cb1f903def82b17edc36d -
Trigger Event:
release
-
Statement type:
File details
Details for the file mif_foundation-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mif_foundation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.1 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 |
27736c3034e1a5716e51cfaa4e58c80502e5f5953b016e94e7a8d770b67e8458
|
|
| MD5 |
2245c2b0fad97cf5f904c013750c23cc
|
|
| BLAKE2b-256 |
6f37e54d21040569dcdb714d385167b03114abea6ed4a7c7bc9f7f7e484760e2
|
Provenance
The following attestation bundles were made for mif_foundation-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on symbioticode/mif-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mif_foundation-0.1.0-py3-none-any.whl -
Subject digest:
27736c3034e1a5716e51cfaa4e58c80502e5f5953b016e94e7a8d770b67e8458 - Sigstore transparency entry: 2566153531
- Sigstore integration time:
-
Permalink:
symbioticode/mif-core@dfb1ab9943d78f60101cb1f903def82b17edc36d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/symbioticode
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dfb1ab9943d78f60101cb1f903def82b17edc36d -
Trigger Event:
release
-
Statement type: