feat[PLT-105095]: changes for governance#1700
Conversation
018b030 to
3c512c8
Compare
There was a problem hiding this comment.
Pull request overview
Introduces the first “governance contracts” surface in uipath-core so framework-specific packages can integrate via protocols/interfaces without importing runtime/native evaluator implementations.
Changes:
- Added
uipath.core.governancepublic contracts (models, exceptions, feature-flag gate). - Added generic adapter contracts/registry (
uipath.core.adapters) with entry-point discovery for plugin packages. - Added unit tests covering governance exceptions/config and adapter registry/protocol behavior; bumped
uipath-coreversion to0.6.0.
Reviewed changes
Copilot reviewed 14 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/uipath-core/uv.lock | Updates locked version metadata for uipath-core 0.6.0. |
| packages/uipath-core/pyproject.toml | Bumps package version to 0.6.0. |
| packages/uipath-core/src/uipath/core/governance/models.py | Adds shared governance output dataclasses/enums. |
| packages/uipath-core/src/uipath/core/governance/exceptions.py | Adds governance violation + blocking exception types. |
| packages/uipath-core/src/uipath/core/governance/config.py | Adds governance feature-flag gate. |
| packages/uipath-core/src/uipath/core/governance/init.py | Exposes governance public API via __all__. |
| packages/uipath-core/src/uipath/core/adapters/base.py | Defines BaseAdapter + GovernedAgentBase proxy base. |
| packages/uipath-core/src/uipath/core/adapters/evaluator.py | Defines EvaluatorProtocol structural contract. |
| packages/uipath-core/src/uipath/core/adapters/registry.py | Adds ordered adapter registry + entry-point discovery + singleton. |
| packages/uipath-core/src/uipath/core/adapters/init.py | Exposes adapter public API via __all__. |
| packages/uipath-core/tests/governance/test_exceptions.py | Tests for governance exception constructors/messages/metadata. |
| packages/uipath-core/tests/governance/test_config.py | Tests for feature-flag gating behavior. |
| packages/uipath-core/tests/governance/init.py | Marks governance tests package. |
| packages/uipath-core/tests/adapters/test_registry.py | Tests adapter registry ordering, singleton, entry-point discovery. |
| packages/uipath-core/tests/adapters/test_evaluator.py | Tests EvaluatorProtocol runtime-checkable behavior. |
| packages/uipath-core/tests/adapters/test_base.py | Tests BaseAdapter defaults and proxy forwarding/unwrapping. |
| packages/uipath-core/tests/adapters/init.py | Marks adapters tests package. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6500639 to
4f7717f
Compare
4f7717f to
652de6b
Compare
652de6b to
f505016
Compare
f505016 to
2b7628e
Compare
🚨 Heads up:
|
|
🚨 Heads up:
|




JIRA: https://uipath.atlassian.net/browse/PLT-105095
Implemented protocols and interfaces for agentic governance.