Repository navigation
ToolBoundary v1.0.2 #22
Jaycubic
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ToolBoundary v1.0.2 brings shared Redis-backed rate limiting and token storage to multi-process deployments, building on the provider-neutral authorization and evidence architecture introduced in v1.0.0 and the AgentKey reference integration included in v1.0.1.
ToolBoundary remains a local runtime enforcement library: external providers can add authorization checks and execution evidence, but they cannot override a local denial.
What's New
1. Shared Redis Backends
This release introduces optional Redis-backed implementations for deployments running multiple processes or replicas.
RedisSlidingWindowRateLimiter— shares rate-limit counters across processes using Redis sorted sets and an atomic Lua script.RedisTokenStore— tracks single-use token consumption across processes using RedisSET NXwith expiration.Boundary(rate_limiter=...)and a shared token store throughNetworkEnforcer(token_store=...).fail_closed=Falseoption is available for deployments that deliberately choose fail-open behavior.Redis is an optional dependency. The default in-memory implementations remain available, and installing the core package does not require Redis.
Install the Redis extra:
pip install "toolboundary[redis]"2. AgentKey Reference Integration
The release includes the ToolBoundary-side reference integration for AgentKey, built against the provider-neutral
EvidenceProviderinterface.The integration demonstrates:
AgentKey remains optional. ToolBoundary continues to enforce local policy independently of external provider availability.
3. Provider-Aware Authorization and Evidence
ToolBoundary provides a provider-neutral architecture for integrating external authorization and evidence systems.
ProviderMode.OBSERVE— records provider decisions without blocking locally permitted actions.ProviderMode.ENFORCE— requires external authorization and fails closed on provider denial or unavailability.authorize_call()andrecord_execution()— support the provider-aware execution lifecycle.Local policy remains authoritative. A provider cannot turn a locally denied action into an allowed action.
4. Tests and Documentation
This release adds Redis backend tests covering:
BoundaryandNetworkEnforcer.The Redis tests use
fakerediswith Lua support, so the test suite does not require a live Redis server.Documentation has also been updated with Redis installation instructions, multi-process deployment examples, backend injection points, and the AgentKey reference integration.
Installation and Upgrade
Standard installation:
Installation with Redis support:
pip install --upgrade "toolboundary[redis]"Redis backend example:
Configure the Redis connection for your environment before using the shared backends in production.
Compatibility
toolboundary[redis].Evidence and Canonicalization Note
The current Python call-binding implementation uses deterministic JSON key ordering to calculate SHA-256 digests. This is not, by itself, a cross-language canonicalization standard. RFC 8785 (JSON Canonicalization Scheme, JCS) remains the target for separately specified cross-language canonical evidence.
Release Summary
ToolBoundary v1.0.2 combines the AgentKey reference integration and provider-aware authorization architecture with optional Redis-backed shared rate limiting and token storage, while preserving the dependency-free, in-memory default.
Full documentation: GitHub Repository
API Reference: docs/API.md
PyPI: toolboundary
This discussion was created from the release ToolBoundary v1.0.2.
All reactions