Repository navigation
A hardening release. Every user should upgrade.
Changed
- A value or record count given as a string must now be a plain ASCII decimal, such as
"25"or"-25.50". Strings with whitespace, underscores, exponents, a leading+or zero, or non-ASCII digits are denied withINVALID_VALUE, because a tool's parser might read them as a different number. - A tool with a
max_valuebut nomin_valuenow raises aFutureWarning, because negative values pass such a limit. Behaviour is unchanged until ToolBoundary 2.0, which will imply a floor of 0.
Added
- Add
Boundary(deny_negative_values=True). Amax_valuewithout amin_valuethen gets a floor of 0, and negative values are denied withMIN_VALUE_VIOLATED. An explicitmin_valuealways wins. - Add Overview, Safety approach, Supporting evidence and Limitations sections to the README.
- Add CI checks for ruff formatting and mypy, and test on Python 3.13, Windows and macOS.
- Add a Security workflow (CodeQL,
pip-audit, ruff bandit rules, dependency review), OpenSSF Scorecard and Dependabot. - Add performance benchmarks in
benchmarks/, and a workflow that fails a pull request if any decision path gets more than 25% slower than the base branch. - Check that a release tag matches the package version, and publish signed build attestations to PyPI.
Fixed
- Give the gateway's ambiguous-body tests short ids, so the suite runs on Windows.
Upgrade notes
- If a tool with a
max_valuetakes negative values, set a negativemin_value. Otherwise setmin_value=0or passdeny_negative_values=Trueto silence the new warning. - If you pass numbers as strings with spaces or other formatting, convert them to numbers or plain decimal strings first.
Full changelog: v1.1.0...v1.1.1