feat(tools): add ToolPolicy for governance and compliance controls#191
feat(tools): add ToolPolicy for governance and compliance controls#191imran-siddique wants to merge 2 commits into
Conversation
|
cc @dhilloulinoracle @cesarebernardis - this implements the Tool Usage Policies proposal you both approved in #174. Fresh implementation PR as discussed. Let me know if you'd like any changes. |
98a4679 to
85d2ff6
Compare
|
Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application. When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated. If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public. |
2db22ce to
3729d90
Compare
Implement the Tool Usage Policies proposal (PR oracle#174) as accepted by Oracle maintainers. This adds: - ToolPolicy model with data_classification, requires_justification, allowed_callers, and guards fields - ExecutionGuard discriminated union: RateLimitGuard, ApprovalGuard, JustificationGuard - PolicyViolation tracing event for audit trails - tool_policy field on both Tool and ToolBox base classes - Version gating to agentspec_version >= 26.2.0 - Composition semantics documented (stricter classification wins, guards union, allowed_callers intersection) Signed-off-by: Imran Siddique <imran.siddique@microsoft.com>
3729d90 to
5964ac2
Compare
|
@sonleoracle I signed the OCA about 24 hours ago at oca.opensource.oracle.com with GitHub username \imran-siddique. The check is still showing as not approved. Could you help verify the OCA status or point me to someone who can expedite the approval? Happy to re-sign if something went wrong on my end. |
Summary
Implements the Tool Usage Policies proposal (formerly PR #174) as accepted by @dhilloulinoracle and @cesarebernardis.
This adds governance and compliance controls to the Agent Spec tool model, enabling declarative policy enforcement for tool invocations.
Changes
Design Decisions
Testing
All 16 new tests pass. Existing tool serialization tests unaffected (13/14 pass; 1 pre-existing crewai sandbox failure unrelated to this change).