Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
5 changes: 3 additions & 2 deletions tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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):
Expand Down
12 changes: 6 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading