Repository navigation
Prepare meds-algorithm 0.4.0a6 - #22
Merged
Merged
Conversation
Release the temporal-leakage conformance (#21), the process-group termination fix (#15) and the raw-data access guard (#20) so downstream algorithms can depend on them from PyPI instead of a git commit (PyPI rejects direct-URL dependencies). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx
2 tasks done
On GitHub runners, test_future_blind_rerun_passes_causal_and_fails_leaky failed for the leak-free toy scorer: 1 of 400 keys moved by 5.55e-17 (one unit in the last place) with the same package versions that passed on main. Rewriting the future changes the row layout, and polars float kernels can round differently in the last bit on some CPUs. Use a relative tolerance of 1e-12 (absolute 1e-15): far below the ~1e-7 move of the smallest leak measured in #21, so leaks are still caught, while downstream algorithms are not failed for rounding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Downstream algorithms need the temporal-leakage conformance (#21) from PyPI.
curiosity-medscurrently pinsmeds-algorithmto git commitfa8cdfa, and PyPI rejects direct-URL dependencies, so it can't be released until this version is out.What
project.version→0.4.0a6, with the lockfile updated.run_e2eobligations;RELEASING.mdanddocs/core-package.mdnow reference 0.4.0a6.Fix: future-blind check compared bit for bit
CI first failed in
test_future_blind_rerun_passes_causal_and_fails_leaky(from #21): the leak-free toy scorer had 1 of 400 keys move by 5.55e-17, one unit in the last place. It failed reproducibly on the runners, with the same package versions that passed onmain(numpy 2.5.4, polars 2.0.0) and locally.Rewriting the future changes the row and chunk layout, and polars' float kernels can then round differently in the last bit on some CPUs. A bitwise check would fail leak-free downstream algorithms in the same way.
The check now uses a relative tolerance of 1e-12 (
FUTURE_BLIND_RTOL, absolute 1e-15). That is far below the ~1e-7 move of the smallest leak measured in #21. A new test checks that this tolerance absorbs a one-ulp change but rejects a 1e-9 change.CONTRACT.md,TESTING.mdand the release notes say so.Checks (WSL Ubuntu, Python 3.12)
uv run ruff check .anduv run ruff format --check .: clean.uv run pytest -q: 160 passed.uv buildandtwine check --strict dist/*: wheel and sdist pass.After merge
Tag
v0.4.0a6onmain, then dispatchpublish.yml:index=testpypifirst, thenindex=pypi, as described inRELEASING.md. After that, bump the template'smeds-algorithmpins to==0.4.0a6.🤖 Generated with Claude Code
https://claude.ai/code/session_01NJQdbHt5icm1CgFVHsHTNx