feat(core): tool-level secure parameter binding, fast-fail and validation - #780
Open
anubhav756 wants to merge 1 commit into
Open
feat(core): tool-level secure parameter binding, fast-fail and validation#780anubhav756 wants to merge 1 commit into
anubhav756 wants to merge 1 commit into
Conversation
anubhav756
marked this pull request as ready for review
August 20, 2026 06:11
anubhav756
force-pushed
the
anubhav-secure-params-core-tool
branch
from
August 20, 2026 06:25
b911b4b to
f9ce7d7
Compare
anubhav756
force-pushed
the
anubhav-secure-params-core-tool
branch
from
August 20, 2026 10:08
f9ce7d7 to
3d928b1
Compare
twishabansal
approved these changes
Aug 20, 2026
anubhav756
force-pushed
the
anubhav-secure-params-core-tool
branch
from
August 25, 2026 07:26
3d928b1 to
2014f99
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implements immutable secure parameter binding, prompt injection defense, local fast-fail validation, and dynamic callable resolution on
ToolboxToolandToolboxSyncTool.Changes
__signature__,__doc__,__annotations__, and Pydantic validation models are constructed strictly using regular__params.__secure_paramsis completely isolated.inspect.Signature.bind()raisingTypeError: unexpected keyword argument.__call__withValueErrorbefore dispatching any network RPCs.lambda: ...), and async coroutines (async def ...) resolved per-invocation viaresolve_value().bind_secure_param(name, value)andbind_secure_params({name: value})returning new immutable copies via__copy().ValueErrorwhen attempting to bind secure parameters viabind_paramor regular parameters viabind_secure_param.bind_secure_param/bind_secure_paramstoToolboxSyncTool.