diff --git a/README.md b/README.md index 7a332e2..d807484 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ contract-first MEDS algorithm repositories. Shared contracts and the canonical specification live in [`meds-algorithm`](https://github.com/McDermottHealthAI/meds-algorithm). Generated repositories pin its PyPI release -`meds-algorithm==0.4.0a5` for reproducible installations. +`meds-algorithm==0.4.0a6` for reproducible installations. The core owns the reusable infrastructure and conformance helpers; generated repositories import it directly. The template fixes the external contract—MEDS input, six algorithm profiles and standard arguments, typed @@ -211,13 +211,15 @@ repositories. Files under `template/` are the generated payload; root tests validate that payload without imposing a algorithm implementation. Profile selection and the distinct version 4 step names are described in [profiles](https://meds-algorithm.readthedocs.io/en/latest/profiles/). -See the [software contract](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a5/src/meds_algorithm/CONTRACT.md), [migration guide](https://meds-algorithm.readthedocs.io/en/latest/migration-v4/), +See the [software contract](https://github.com/McDermottHealthAI/meds-algorithm/blob/v0.4.0a6/src/meds_algorithm/CONTRACT.md), [migration guide](https://meds-algorithm.readthedocs.io/en/latest/migration-v4/), and [shared-package assessment](https://meds-algorithm.readthedocs.io/en/latest/shared-package-assessment/). ## Changes ### Unreleased +- Generate projects using `meds-algorithm==0.4.0a6`, the first release with the temporal-leakage conformance + (future-blind rerun and null-world chance test) that `tests/e2e.py` documents. - Move the documentation site and prompt builder to `meds-algorithm` on Read the Docs. Generated-repository guides remain template-owned. - Require confirmation for material scientific ambiguities by default; offer explicitly enabled exploratory diff --git a/RELEASING.md b/RELEASING.md index 82ca545..eb0bc77 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -19,15 +19,15 @@ and hosting are managed entirely by the core repository and Read the Docs. ## 1. Switch generated projects to the published shared package -Generator `0.4.0a2` pins the published `meds-algorithm==0.4.0a5` release. For future updates, +The generator pins the published `meds-algorithm==0.4.0a6` release (`0.4.0a2` pinned `0.4.0a5`). For future updates, release the shared package first, then keep all dependency pins and install examples aligned: | File | Change | |---|---| -| `pyproject.toml`, development dependencies | Pin the shared conformance dependency to `meds-algorithm[conformance,orchestration]==0.4.0a5` | -| `template/pyproject.toml.jinja`, project dependencies | Use `meds-algorithm[data]==0.4.0a5` | -| `template/pyproject.toml.jinja`, test extra | Use `meds-algorithm[conformance]==0.4.0a5` | -| `template/pyproject.toml.jinja`, orchestration extra | Use `meds-algorithm[orchestration]==0.4.0a5` | +| `pyproject.toml`, development dependencies | Pin the shared conformance dependency to `meds-algorithm[conformance,orchestration]==0.4.0a6` | +| `template/pyproject.toml.jinja`, project dependencies | Use `meds-algorithm[data]==0.4.0a6` | +| `template/pyproject.toml.jinja`, test extra | Use `meds-algorithm[conformance]==0.4.0a6` | +| `template/pyproject.toml.jinja`, orchestration extra | Use `meds-algorithm[orchestration]==0.4.0a6` | | `README.md` | Document the shared PyPI version and update the generator install example to `0.4.0a2` | | `uv.lock` | Regenerate with `uv lock` | | `template/pyproject.toml.jinja`, Hatch metadata | Remove `allow-direct-references` after replacing all Git requirements | diff --git a/pyproject.toml b/pyproject.toml index 0492240..0c94fcd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ Documentation = "https://meds-algorithm.readthedocs.io/en/latest/" packages = ["src/meds_algorithm_template"] [dependency-groups] -dev = ["meds-algorithm[conformance,orchestration]==0.4.0a5", "polars>=1", "pyarrow>=15", "pytest>=8", "pyyaml>=6", "ruff"] +dev = ["meds-algorithm[conformance,orchestration]==0.4.0a6", "polars>=1", "pyarrow>=15", "pytest>=8", "pyyaml>=6", "ruff"] [tool.pytest.ini_options] testpaths = ["tests"] diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index f648258..0d3fbf5 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -12,12 +12,12 @@ authors = [{name = {{ author_name | tojson }}, email = {{ author_email | tojson license-files = ["LICENSE*"] {% endif %} requires-python = ">=3.11" -dependencies = ["pyyaml>=6", "meds-algorithm[data]==0.4.0a5"] +dependencies = ["pyyaml>=6", "meds-algorithm[data]==0.4.0a6"] [project.optional-dependencies] -orchestration = ["meds-algorithm[orchestration]==0.4.0a5"] +orchestration = ["meds-algorithm[orchestration]==0.4.0a6"] # meds-evaluation is pinned to the version MEDS-DEV evaluates predictions with. -test = ["meds-algorithm[conformance]==0.4.0a5"] +test = ["meds-algorithm[conformance]==0.4.0a6"] {% if repository_url %}[project.urls] Repository = {{ repository_url | tojson }} diff --git a/tests/test_profiles.py b/tests/test_profiles.py index e78158b..c38e05e 100644 --- a/tests/test_profiles.py +++ b/tests/test_profiles.py @@ -246,7 +246,8 @@ def test_generated_shared_suite_runs_and_primary_behavior_still_fails(multi, tmp timeout=120, ) assert shared.returncode == 0, shared.stdout + shared.stderr - assert "20 passed, 18 skipped, 6 deselected" in shared.stdout + # 0.4.0a6 adds test_null_world_predictions_are_at_chance per profile, skipped while profiles are stubs. + assert "20 passed, 24 skipped, 6 deselected" in shared.stdout scientific = subprocess.run( [sys.executable, "-m", "pytest", "-q", "-k", "primary_behavior"], cwd=multi, @@ -256,7 +257,7 @@ def test_generated_shared_suite_runs_and_primary_behavior_still_fails(multi, tmp timeout=60, ) assert scientific.returncode == 1, scientific.stdout + scientific.stderr - assert "6 failed, 38 deselected" in scientific.stdout + assert "6 failed, 44 deselected" in scientific.stdout def test_recorded_upstream_inputs_become_explicit_arguments(multi, tmp_path): diff --git a/uv.lock b/uv.lock index 0f72065..1ff5d19 100644 --- a/uv.lock +++ b/uv.lock @@ -233,14 +233,14 @@ wheels = [ [[package]] name = "meds-algorithm" -version = "0.4.0a5" +version = "0.4.0a6" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pyyaml" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/69/70/4895cdb8642beef30a1417ad34917a13fc717d0e2f9278dbf0641b268bf8/meds_algorithm-0.4.0a5.tar.gz", hash = "sha256:7eaa2a58a2691d6d6907e5588cc97f4dfa5e73675cbffec4fa3aead65217a7ea", size = 150624, upload-time = "2026-11-03T13:10:21.533Z" } +sdist = { url = "https://files.pythonhosted.org/packages/30/40/1891abff0bc6c15a5790742d817e4cdc06e9e9c30452e24a8fdb5fd65b3c/meds_algorithm-0.4.0a6.tar.gz", hash = "sha256:f401aea504a725c8d5ffbf3307ce63dfe8b93be5812faaa7636814d5c0493790", size = 199122, upload-time = "2026-11-24T14:27:35.135Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d4/1d/e7871e650b6a5019ec3d72d0328980538ff65cdb17a5e0cc12e2201582e9/meds_algorithm-0.4.0a5-py3-none-any.whl", hash = "sha256:4cd83f2531aec02553794295a24c13dc2482d3a52b685b9cafc4aac3e9c3ebad", size = 100591, upload-time = "2026-11-03T13:10:20.079Z" }, + { url = "https://files.pythonhosted.org/packages/fe/60/f4b4bf074e693088c855eb350021572c8df7085a0d32821ee0a46389a179/meds_algorithm-0.4.0a6-py3-none-any.whl", hash = "sha256:541dd1437617e2ae2af67efff29483470241a986ef2438625f2338d6a5d89b61", size = 109827, upload-time = "2026-11-24T14:27:33.955Z" }, ] [package.optional-dependencies] @@ -282,7 +282,7 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ - { name = "meds-algorithm", extras = ["conformance", "orchestration"], specifier = "==0.4.0a5" }, + { name = "meds-algorithm", extras = ["conformance", "orchestration"], specifier = "==0.4.0a6" }, { name = "polars", specifier = ">=1" }, { name = "pyarrow", specifier = ">=15" }, { name = "pytest", specifier = ">=8" }, @@ -920,7 +920,7 @@ resolution-markers = [ "python_full_version < '3.12'", ] dependencies = [ - { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" } }, + { name = "numpy", version = "2.4.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/7a/97/5a3609c4f8d58b039179648e62dd220f89864f56f7357f5d4f45c29eb2cc/scipy-1.17.1.tar.gz", hash = "sha256:95d8e012d8cb8816c226aef832200b1d45109ed4464303e997c5b13122b297c0", size = 30573822, upload-time = "2026-02-23T00:26:24.851Z" } wheels = [ @@ -994,7 +994,7 @@ resolution-markers = [ "python_full_version >= '3.12'", ] dependencies = [ - { name = "numpy", version = "2.5.4", source = { registry = "https://pypi.org/simple" } }, + { name = "numpy", version = "2.5.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/7e/74/66de6258867beb2ef08f35f9f2ac017a52cacd5081714d239ff1a442d458/scipy-1.18.1.tar.gz", hash = "sha256:52c4b7422442aba924d03ad4019852b08a92e64ea187b933135687bfe2747307", size = 30781235, upload-time = "2026-08-21T23:28:50.599Z" } wheels = [