Skip to content

ToolBoundary v1.1.1

Latest

Choose a tag to compare

@Jaycubic Jaycubic released this 17 Nov 05:19

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 with INVALID_VALUE, because a tool's parser might read them as a different number.
  • A tool with a max_value but no min_value now raises a FutureWarning, 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). A max_value without a min_value then gets a floor of 0, and negative values are denied with MIN_VALUE_VIOLATED. An explicit min_value always 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_value takes negative values, set a negative min_value. Otherwise set min_value=0 or pass deny_negative_values=True to 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