feat: add Tool Script Safety Guard#105
Open
dongdonglfd wants to merge 6 commits into
Open
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Rook1ex
added a commit
to trpc-group/cla-database
that referenced
this pull request
Jul 1, 2026
Author
|
I have read the CLA Document and I hereby sign the CLA |
Author
|
recheck |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #105 +/- ##
==========================================
Coverage ? 86.42628%
==========================================
Files ? 452
Lines ? 42958
Branches ? 0
==========================================
Hits ? 37127
Misses ? 5831
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
This PR adds a Tool Script Safety Guard for reviewing tool execution before execution.
The implementation includes:
SafetyReviewerwith structured decisions, reports, and audit outputToolSafetyPolicyToolSafetyFilterfor tool execution interceptionfix: #90
Key Behaviors
ToolSafetyFilter.--policy--format--output0— allow1— deny2— needs human reviewtool.safety.decisiontool.safety.risk_leveltool.safety.rule_idSafety Notes
Testing