Skip to content

ToolBoundary v1.0.1

Choose a tag to compare

@Jaycubic Jaycubic released this 04 Oct 07:02
· 45 commits to main since this release

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 EvidenceProvider protocol.
  • ProviderMode.OBSERVE for non-blocking provider evaluation.
  • ProviderMode.ENFORCE for fail-closed external authorization.
  • Structured LocalDecision and AuthorizationContext.
  • 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:

  1. Local allow followed by external provider allow.
  2. Provider denial blocking execution in enforce mode.
  3. Consumed-grant replay prevention.
  4. Post-dispatch execution reporting.
  5. Local-deny-is-final behavior.
  6. Exact argument preservation between authorization and evidence.
  7. Session and authorization correlation.
  8. 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.md
  • docs/API.md
  • examples/agentkey_integration.py
  • tests/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