Skip to content

feat(v0.2): ToolExecutor with validation, safety, and parallel execution#41

Merged
chocks merged 1 commit into
mainfrom
feat/v02-tool-executor
Mar 12, 2026
Merged

feat(v0.2): ToolExecutor with validation, safety, and parallel execution#41
chocks merged 1 commit into
mainfrom
feat/v02-tool-executor

Conversation

@chocks
Copy link
Copy Markdown
Owner

@chocks chocks commented Mar 12, 2026

Summary

  • PR 4 of 6 for v0.2 Tool Foundation (progress tracker)
  • ToolExecutor ties ToolRegistry + SafetyGate into a single dispatch pipeline
  • execute(): validate args → check write path safety → run handler → return result
  • executeParallel(): runs multiple tool calls concurrently (for v0.3 coding agent)
  • Handler errors caught and returned as ToolResult failures (never throws)
  • Pure addition — nothing uses ToolExecutor yet (wired in PR 5)

Test plan

  • 7 new unit tests (dispatch, unknown tool, missing args, safety block, handler error, parallel success, parallel partial failure)
  • Full test suite passes (222 tests)
  • Build succeeds

🤖 Generated with Claude Code

…llel execution

PR 4 of v0.2 Tool Foundation. ToolExecutor ties ToolRegistry and
SafetyGate together: validates args, checks write paths for write-
category tools, dispatches to handler, and catches errors. Includes
executeParallel() for concurrent tool calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chocks chocks merged commit da46bd0 into main Mar 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant