feat(governance): Add GovernancePlugin for runtime agent governance#102
Open
sunilp wants to merge 2 commits intogoogle:mainfrom
Open
feat(governance): Add GovernancePlugin for runtime agent governance#102sunilp wants to merge 2 commits intogoogle:mainfrom
sunilp wants to merge 2 commits intogoogle:mainfrom
Conversation
Adds policy-based tool filtering, delegation scope enforcement, and structured audit trails for ADK agents. Moved from google/adk-python#4897 per maintainer guidance.
This was referenced Mar 20, 2026
aeoess
pushed a commit
to aeoess/agent-passport-python
that referenced
this pull request
Mar 20, 2026
Maps sunilp's PolicyEvaluator protocol (google/adk-python-community#102) to APS 3-signature policy chain (intent → decision → receipt). - APSPolicyEvaluator: evaluate_tool_call + evaluate_agent_delegation - APSPolicyDecision: duck-typed compatible with ADK's PolicyDecision - Wildcard scope expansion (tool:* → specific tool) - Monotonic narrowing enforcement for delegation - Full cryptographic proof chain in metadata - 16 tests, 3 suites, 102 total passing 102 tests, 0 failures.
Author
|
Friendly bump — anything needed from my side to move this forward? Happy to address feedback or adjust the scope. |
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
Adds a
GovernancePluginthat provides runtime governance for ADK agents — policy-based tool filtering, delegation scope enforcement, and structured audit trails — without modifying agent logic.Moved here from google/adk-python#4897 per maintainer guidance (community plugins belong in this repo).
What it does
SELECT)PolicyEvaluatorprotocol for organization-specific rules; customAuditHandlerfor integration with logging/SIEM systemsUsage
Files
src/google/adk_community/governance/governance_plugin.py— plugin implementation (692 lines)src/google/adk_community/governance/__init__.py— public API exportstests/unittests/governance/test_governance_plugin.py— unit tests (577 lines)Testing plan
Related