refactor(tools): execute internal operations in process

Merged
IC
2mo ago
+135813-130712

Summary

  • execute same-process tool operations through typed in-process handlers instead of internal HTTP routes
  • preserve trusted execution scope, cancellation, variable and secret resolution, large-value references, private provenance, file authorization, and hosted-key billing
  • remove dead tool-only routes, request-shaped operation metadata, compatibility helpers, and stale contracts while retaining real selector and capability boundaries
  • add registry completeness, boundary, operation parity, cancellation, size-limit, and provider cleanup coverage

Type of Change

  • Refactor

Testing

  • full Sim suite: 36,095 tests passed; three contention-only timeouts passed in isolated reruns
  • full monorepo type-check passed
  • lint passed
  • all 36 repository audits passed
  • critical Function, Agent, custom-tool, transport, and operation-registry suite: 380 tests passed after the final rebase

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)