feat: harden GreenRisk packaging and reproducibility - #4
Merged
Merged
Conversation
Owner
Author
|
Remote verification is green: CI run #2 passed dependency sync, Ruff, the 13-test fast suite, artifact-integrity verification, and |
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.
Summary
Hardens GreenRisk into an installable, testable, provenance-verifiable research package while preserving the frozen
rulebase-locked-v1numerical instrument.What changed
src/greenriskpackage and adds thegreenriskCLI;[0,1]signal validation so scikit-fuzzy cannot silently clip invalid inputs;Instrument boundary
No numerical instrument change or ablation:
A canonical numerical-payload hash test now guards all four coordinates.
Verification
ruff check .— passedpytest -m "not model"— 13 passed, 2 heavyweight tests deselectedpython scripts/verify_artifact_integrity.py— corpus and contrast artifacts verifiedpython -m build --no-isolation— wheel and sdist builtuv lock --check, andgit diff --check— passedThe model tests are intentionally available through the manually triggered workflow because they download and execute five large pinned checkpoints.
Release follow-up
After merge, mint the v0.2.0 release/tag and its version-specific Zenodo DOI; the citation file intentionally retains only the stable concept DOI until then.