feat(samples): add SidClaw governance middleware sample#5081
Open
VladUZH wants to merge 2 commits intogoogle:mainfrom
Open
feat(samples): add SidClaw governance middleware sample#5081VladUZH wants to merge 2 commits intogoogle:mainfrom
VladUZH wants to merge 2 commits intogoogle:mainfrom
Conversation
Adds a contributing sample showing how to use SidClaw's governance middleware with Google ADK tools. Demonstrates govern_google_adk_tools() wrapping on a customer support agent, with policy evaluation, human approval workflow, and hash-chain audit trail before tool execution. Files added: - contributing/samples/sidclaw_governance_agent/agent.py - contributing/samples/sidclaw_governance_agent/__init__.py - contributing/samples/sidclaw_governance_agent/requirements.txt - contributing/samples/sidclaw_governance_agent/README.md
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Collaborator
|
Response from ADK Triaging Agent Hello @VladUZH, thank you for your contribution! Before we can review your pull request, you'll need to sign the Contributor License Agreement (CLA). It looks like the CLA check has failed. You can view the details and sign the CLA here: https://cla.developers.google.com/ Thanks! |
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
contributing/samples/sidclaw_governance_agent/— a sample showing how to wrap ADK tools with SidClaw governance middleware.Closes #5080
What this adds:
The integration uses
govern_google_adk_tools()from the SidClaw Python SDK (pip install sidclaw). It follows the same duck-typing pattern as the existing LangChain and CrewAI samples — wraps the callable without modifying the ADK agent.Files changed
How it follows existing sample patterns
langchain_structured_tool_agentandcrewai_tool_kwargsboth demonstrate third-party tool ecosystem integrations. This sample does the same: uses a third-party library to add a capability (governance) to ADK tool execution.Testing plan
Manual test:
pip install sidclaw google-adkSIDCLAW_API_KEY(free tier at app.sidclaw.com — no credit card)adk run contributing/samples/sidclaw_governance_agentlookup_orderexecutes immediately (classifiedinternal)send_emailis held for approval (classifiedconfidential) until reviewed at app.sidclaw.comActionDeniedErrorUnit test approach (happy to add if maintainers prefer):
SidClaw.evaluate()to return anallowdecisiongovern_google_adk_tools()returns a list of the same length.nameand.descriptionpreservedActionDeniedErroris raised on a mockeddenyresponseI'll add
tests/unittests/coverage if the maintainers confirm this sample is in scope.