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
| Layer | Repository | PyPI distribution | Python import | Responsibility |
|---|---|---|---|---|
| MIF-DQF | symbioticode/mif-dqf |
mif-dqf |
dqf |
Certify the physical and structural quality of market data. |
| MIF-DAL | symbioticode/mif-dal |
mif-dal |
dal |
Assemble reproducible streams and produce certified handoffs. |
| MIF Core | symbioticode/mif-core |
mif-foundation |
core |
Qualify metrics and strategies against explicit offline tests. |
The three packages form one directional contract: DQF certifies the data, DAL assembles and transports the certified handoff, and Core evaluates what is computed from that handoff. Each package remains installable and versioned independently.
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.
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
Metadata
Release files for mif-foundation 0.2.0
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 |
|---|---|---|---|---|
| mif_foundation-0.2.0.tar.gz | 20.2 kB | With provenance | Details for mif_foundation-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mif_foundation-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mif_foundation-0.2.0-py3-none-any.whl |
Total release size: 40.1 kB
Release files / mif_foundation-0.2.0.tar.gz
| Download URL | mif_foundation-0.2.0.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66a5b121e9719b509feaf95cd3972f5ff7ef1136fc7786e44f6564dd9bc2fb6f
|
|
BLAKE2b-256 checksum How to use checksums |
abe07deba567d21abc2413a3a75f13a334766cea366897a45e7d22b7032a1e9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logRelease files / mif_foundation-0.2.0-py3-none-any.whl
| Download URL | mif_foundation-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e9b51b9b869e5fbc56bbd4d26259e28e5f7d17432611220c387738a80a6ae46
|
|
BLAKE2b-256 checksum How to use checksums |
ec25302b9ea4e98adf945be159049ea1390268136cdba67d16bff1e86b1a3551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logSecurity for mif-foundation 0.2.0
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 mif_foundation-0.2.0.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 Aug 27, 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.