Skip to main content

mif-core

CI

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

mif_foundation-0.1.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mif_foundation-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

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

Hashes for mif_foundation-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c77d00ac52ae4559f37e44fb534f1453213947acfdd938d2ab931dbfd122a43f
MD5 9c00c17aa4cb163a2ca9577dd6ccbfc3
BLAKE2b-256 6253811d252e345d2dcdc3146bf2fbeef254af92037ad950e8bd5aa7ad8b06c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mif_foundation-0.1.0.tar.gz:

Publisher: publish.yml on symbioticode/mif-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for mif_foundation-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27736c3034e1a5716e51cfaa4e58c80502e5f5953b016e94e7a8d770b67e8458
MD5 2245c2b0fad97cf5f904c013750c23cc
BLAKE2b-256 6f37e54d21040569dcdb714d385167b03114abea6ed4a7c7bc9f7f7e484760e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mif_foundation-0.1.0-py3-none-any.whl:

Publisher: publish.yml on symbioticode/mif-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page