Skip to content

intercept tool calls while preserving execution evidence - #444

Merged
xandreeddev merged 1 commit into
mainfrom
tool-interceptor
Oct 31, 2026
Merged

xandreeddev merged 1 commit into
mainfrom
tool-interceptor

Conversation

@xandreeddev

Copy link
Copy Markdown
Owner

What

  • Add optional ToolInterceptor after original authorization: Allow, Deny, Rewrite or Respond before calls; Keep or Replace afterward. Validate detached encoded evidence, reauthorize rewrites and preserve authored codecs, admission, actual handler events and breaker accounting.
  • Journal validated decisions with loop/direct ownership. Record one effective raw answer with exact invocation and rewritten input before views or digests. Interrupted callbacks retain honest unanswered-call state; recovery does not automatically repeat handlers or hooks.
  • Advance stored format to 14, extend the shipped registry kit, and add isolated invocation receipts through the existing loop/registry/memory boundaries. Grant discovery the internal protocol dependency without adding external dependencies or erasure exemptions.

Checks

  • Frozen install, typecheck, foundry checks/demo, package build, packed Node/Bun verification, clean regenerated docs, website and Bun 1.3.6 proxy rerun: pass.
  • Full source suite: 3,471 pass, 4 environment skips, 0 fail.
  • Packed registry kit plus all 17 directory recovery flags pass on both runtimes, including rewritten typed views, held ACKs, cancellation, SIGKILL and cold replay without automatic handler/hook execution.
  • Released journals and all existing goldens remain exact. Five prior development conversations and stored history through 13 are unchanged; a sixth records two interception phases and one effective result.

Let hosts allow, deny, rewrite or respond to authorized calls and keep or replace actual handler outcomes. Validate detached encoded evidence with the authored codecs, reauthorize rewritten parameters and preserve admission limits, handler lifecycle and breaker accounting.

Journal accepted decisions with loop ownership and retain the exact invocation and rewritten input in one effective raw result before views or digests. Advance stored format to 14 and verify interrupted after callbacks, isolated receipts, typed reopened views and process recovery without replaying handlers.
@xandreeddev
xandreeddev merged commit 566dc48 into main Oct 31, 2026
1 check 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