Repository navigation
ToolBoundary v1.0.1
ToolBoundary v1.0.1 extends the local runtime security boundary with a provider-neutral authorization and evidence workflow, plus the first ToolBoundary-side AgentKey integration example and end-to-end coverage.
The core principle remains unchanged:
ToolBoundary remains the local enforcement authority.
External providers can add authorization and evidence, but they cannot override a local deny.
Highlights
Provider-aware authorization and evidence
- Provider-neutral
EvidenceProviderprotocol. ProviderMode.OBSERVEfor non-blocking provider evaluation.ProviderMode.ENFORCEfor fail-closed external authorization.- Structured
LocalDecisionandAuthorizationContext. - Centralized
authorize_call()/record_execution()lifecycle. - Exact tool-call freezing before provider authorization.
- SHA-256 call and result digests for the current ToolBoundary binding model.
- Single-use authorization consumption and replay prevention.
- Post-dispatch provider failure isolation so local execution evidence is preserved.
AgentKey reference integration
ToolBoundary now includes the ToolBoundary-side reference integration for AgentKey:
toolboundary.integrations.agentkey.AgentKeyProvider- Runnable example:
examples/agentkey_integration.py - End-to-end integration suite:
tests/test_agentkey_integration.py
The integration demonstrates:
- Local allow followed by external provider allow.
- Provider denial blocking execution in enforce mode.
- Consumed-grant replay prevention.
- Post-dispatch execution reporting.
- Local-deny-is-final behavior.
- Exact argument preservation between authorization and evidence.
- Session and authorization correlation.
- Observe versus enforce behavior.
AgentKey remains optional. The core ToolBoundary package does not require an external service.
Documentation
Updated documentation covers:
- External authorization providers.
- Provider configuration and execution flow.
- AgentKey interoperability.
- Provider-aware audit metadata.
- Current evidence and call-binding behavior.
See:
README.mddocs/API.mdexamples/agentkey_integration.pytests/test_agentkey_integration.py
Important Evidence Note
The current v1.0.x Python implementation uses deterministic JSON key ordering for its local SHA-256 call binding.
This should not be interpreted as a cross-language canonicalization standard.
Cross-language native signed evidence is being designed separately around RFC 8785 (JCS) so that independently implemented verifiers can reproduce the same canonical representation.
Existing v1.0.x call-digest behavior is intentionally not changed in this patch release.
Compatibility
Local-only ToolBoundary usage remains supported without any external provider:
boundary.check(...)Existing policy enforcement remains local and provider-free by default.
External providers are opt-in.
Test Coverage
The release includes dedicated provider and AgentKey integration coverage for:
- authorization success and denial;
- observe/enforce semantics;
- replay prevention;
- execution success and failure reporting;
- provider recording failures;
- local deny isolation;
- exact-call binding;
- field mapping;
- session correlation;
- approval-required responses;
- provider receipt semantics.
What's Next
Follow-up work is tracked in GitHub issues, including:
- RFC 8785/JCS canonical evidence;
- native tamper-evident evidence records;
- offline evidence verification and optional Ed25519 signatures;
- additional framework integrations;
- OpenTelemetry observability;
- stronger property/fuzz testing for evidence formats.
Contributors
Thanks to the contributors and reviewers helping extend ToolBoundary, including the ongoing Redis shared-rate-limit work in PR #9 and the AgentKey technical collaboration.
Links
- GitHub: https://github.com/Jaycubic/toolboundary
- PyPI: https://pypi.org/project/toolboundary/
- AgentKey: https://agentkey.us/