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
44 changes: 44 additions & 0 deletions .github/workflows/catalogue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Catalogue updates

on:
schedule:
- cron: '23 9 * * 1'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: catalogue-updates
cancel-in-progress: false

jobs:
observe:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: astral-sh/setup-uv@v6
- run: uv sync --locked --group docs
- run: uv run --group docs pytest -q docs/tests/test_catalogue.py
- run: uv run python docs/catalogue.py --check-remote
- run: uv run --group docs mkdocs build --strict
- uses: actions/upload-artifact@v4
with:
name: catalogue-observations
path: catalogue/updates.json
- uses: peter-evans/create-pull-request@v8
with:
branch: codex/catalogue-release-observations
add-paths: catalogue/updates.json
commit-message: Refresh catalogue release observations
title: Review algorithm catalogue release observations
body: |
Public release metadata changed. Review catalogue/updates.json, then update
catalogue/algorithms.yaml separately after checking the relevant revision and evidence.
This PR does not promote implementation or validation status and does not change install pins.
Private repositories were not queried. Registry tests and strict docs ran in the update workflow.
43 changes: 43 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Docs

# Builds the documentation site on every pull request (strict: warnings fail the build) and publishes it to
# GitHub Pages on pushes to main. Publishing requires Pages to be enabled with "GitHub Actions" as source.

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv sync --locked --group docs
- run: uv run --group docs pytest -q docs/tests
- run: uv run --group docs python docs/catalogue.py
- run: uv run ruff check docs
- run: uv run ruff format --check docs
- run: uv run --group docs mkdocs build --strict
- if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: site

deploy:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ __pycache__/
*.egg-info/
build/
dist/
site/
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-blue?logo=python&logoColor=white)](https://www.python.org/downloads/)
[![PyPI](https://img.shields.io/pypi/v/meds-algorithm)](https://pypi.org/project/meds-algorithm/)
[![Tests and code quality](https://github.com/McDermottHealthAI/meds-algorithm/actions/workflows/ci.yml/badge.svg)](https://github.com/McDermottHealthAI/meds-algorithm/actions/workflows/ci.yml)
[![Documentation](https://img.shields.io/badge/docs-architecture-blue)](https://github.com/McDermottHealthAI/meds-algorithm/blob/main/ARCHITECTURE.md)
[![Documentation](https://img.shields.io/badge/docs-MEDS_algorithms-blue)](https://mcdermotthealthai.github.io/meds-algorithm/)
[![Contributors](https://img.shields.io/github/contributors/McDermottHealthAI/meds-algorithm)](https://github.com/McDermottHealthAI/meds-algorithm/graphs/contributors)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)](https://github.com/McDermottHealthAI/meds-algorithm/pulls)
[![License: MIT](https://img.shields.io/badge/License-MIT-green)](https://github.com/McDermottHealthAI/meds-algorithm/blob/main/LICENSE)
Expand All @@ -18,6 +18,12 @@ Algorithm architectures, tokenizers, training objectives and task-specific logic
See the [architecture and UML diagrams](https://github.com/McDermottHealthAI/meds-algorithm/blob/main/ARCHITECTURE.md) for the profile hierarchy, typed requests,
algorithm-owned configuration, artifact references and shared execution path.

Browse the [algorithm catalogue](https://mcdermotthealthai.github.io/meds-algorithm/implemented-algorithms/)
for implementations, reviewed installation commands and validation evidence. Register or update an
entry through `catalogue/algorithms.yaml`; documentation builds and release observations are independent
of the runtime package and never query private source repositories. See
[site maintenance](https://github.com/McDermottHealthAI/meds-algorithm/blob/main/docs/index.md).

## Package layout

```text
Expand Down Expand Up @@ -134,6 +140,11 @@ training. Keep each algorithm's data-access and cluster approval rules in its ow

## Changes

### Unreleased

- Host the algorithm catalogue and its release-observation workflow in this ecosystem repository.
- Add independently built documentation; catalogue metadata and tooling are excluded from Python distributions.

### 0.4.0a5 (2026-11-03)

- Add an optional profile-runner prototype: shared Hydra schema, resolved dry-run plans, local
Expand Down
28 changes: 28 additions & 0 deletions catalogue/algorithms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
schema_version: 1
algorithms:
- id: genhpf-upstream
name: GenHPF (upstream package)
description: MEDS adapter using the original GenHPF implementation.
repository: https://github.com/florian6973/meds-model-genhpf-upstream
access: private
public_listing: true
paper: https://arxiv.org/abs/2207.09858
profiles: [supervised]
implementation_status: in_review
implementation_pr: 1
revision: f749d61fbbec92b1cd05d57fdeaa428c365cc266
reviewed_on: '2026-11-03'
package:
name: genhpf-meds
pypi_version: null
evidence:
report: IMPLEMENTATION_REPORT.md
synthetic: reported_pass
meds_dev: reported_pass
clinical_demo: pending
full_dataset: pending
notes: >-
Implementation is on open PR #1; main still contains stubs. Validation statuses summarize
the pinned implementation report, not a new independent execution. No PyPI distribution
was available at review; current dependencies include Git references. Repository and
evidence links require access. This is the first catalogue entry used to exercise registration.
13 changes: 13 additions & 0 deletions catalogue/updates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"observations": {
"genhpf-upstream": {
"latest_github_release": null,
"latest_pypi_release": null,
"pypi": "not_found",
"repository": "private_manual_review",
"reviewed_pypi_release": null,
"reviewed_release_available": null
}
},
"schema_version": 1
}
21 changes: 21 additions & 0 deletions docs/catalogue-testing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Catalogue tests

These repository-level tests validate documentation and release discovery. They are separate from the runtime package tests and are not shipped in its distributions.

`uv run --group docs pytest docs/tests -q`

### test_catalogue.py

| Test | What it checks | Why it exists |
|---|---|---|
| `test_private_unpublished_entry_renders_without_network` | Renders the pinned GenHPF entry with access/status labels, without fetching metadata or inventing an install command. | Keep public docs builds independent of private access and distinguish declared names from published distributions. |
| `test_published_entry_generates_escaped_pinned_install_command` | Generates a version-pinned PyPI link/command and escapes names/notes as HTML. | Make installation reproducible and keep registry content inert. |
| `test_registry_rejects_ambiguous_or_unsafe_entries` | Rejects moving revisions, unknown profiles/states, duplicate profiles, unapproved listings, invalid URLs and review dates. | Require an auditable registration record. |
| `test_registry_rejects_invalid_install_or_evidence_fields` | Rejects malformed package names/versions, traversing report paths and unknown evidence statuses. | Prevent unsafe commands and ambiguous evidence links. |
| `test_registry_rejects_duplicates_and_unknown_fields` | Rejects duplicate IDs and unrecognized schema fields. | Catch copy/paste errors and misspelled metadata. |
| `test_release_observer_skips_private_source_and_never_changes_evidence` | Detects public PyPI candidates, ignores yanked/empty releases, skips private GitHub access, and produces stable observations without mutating entries. | Keep release discovery separate from scientific review and avoid timestamp-only PRs. |
| `test_missing_public_repository_and_yanked_reviewed_release_are_observed` | Records unavailable repositories and yanked reviewed releases. | Surface broken availability without silently choosing a replacement. |
| `test_public_github_release_and_absent_pypi_are_observed` | Observes a public GitHub release independently of PyPI availability. | A GitHub tag/release is not proof of an installable PyPI distribution. |
| `test_network_errors_are_not_missing_release_evidence` | Propagates server/rate-limit errors and verifies requests omit credentials. | Avoid false disappearance reports and private-source access. |
| `test_observation_snapshot_contains_only_metadata` | Checks the committed observation snapshot corresponds to registered entries. | Keep the example snapshot valid and separate from implementation reports. |

Loading
Loading