Skip to content

feat[PLT-105095]: changes for governance#1700

Merged
viswa-uipath merged 1 commit into
mainfrom
feat/governance
Jun 8, 2026
Merged

feat[PLT-105095]: changes for governance#1700
viswa-uipath merged 1 commit into
mainfrom
feat/governance

Conversation

@viswa-uipath
Copy link
Copy Markdown
Contributor

JIRA: https://uipath.atlassian.net/browse/PLT-105095

Implemented protocols and interfaces for agentic governance.

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime test:uipath-integrations labels Jun 4, 2026
@viswa-uipath viswa-uipath force-pushed the feat/governance branch 4 times, most recently from 018b030 to 3c512c8 Compare June 4, 2026 15:08
@viswa-uipath viswa-uipath requested a review from radu-mocanu June 5, 2026 04:30
@viswa-uipath viswa-uipath marked this pull request as ready for review June 6, 2026 15:33
Copilot AI review requested due to automatic review settings June 6, 2026 15:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.governance public 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-core version to 0.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.

Comment thread packages/uipath-core/src/uipath/core/governance/config.py
Comment thread packages/uipath-core/src/uipath/core/governance/config.py Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 17 changed files in this pull request and generated 3 comments.

Comment thread packages/uipath-core/src/uipath/core/governance/config.py Outdated
Comment thread packages/uipath-core/pyproject.toml
Comment thread packages/uipath-core/src/uipath/core/adapters/registry.py
@ionmincu
Copy link
Copy Markdown
Collaborator

ionmincu commented Jun 8, 2026

Some comments from claude . You might want to implement the second one.
image

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 19 changed files in this pull request and generated 3 comments.

Comment thread packages/uipath-core/src/uipath/core/adapters/registry.py
Comment thread packages/uipath-core/src/uipath/core/governance/models.py
Comment thread packages/uipath-core/src/uipath/core/adapters/evaluator.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2026

🚨 Heads up: uipath-integrations cross-tests are FAILING 🚨

Your changes may break one or more integrations in uipath-integrations-python:

  • uipath-openai-agents
  • uipath-google-adk
  • uipath-agent-framework
  • uipath-llamaindex
  • uipath-pydantic-ai

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 19 changed files in this pull request and generated 2 comments.

Comment thread packages/uipath-core/tests/governance/test_config.py
Comment thread packages/uipath-core/tests/adapters/test_registry.py
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2026

🚨 Heads up: uipath-langchain cross-tests are FAILING 🚨

Your changes may break the uipath-langchain-python integration.

⚠️ These checks are NOT enforced by branch protection rules. Please review the failures before merging.

🔍 Inspect the failed run →

@viswa-uipath viswa-uipath merged commit 4a1489b into main Jun 8, 2026
137 of 169 checks passed
@viswa-uipath viswa-uipath deleted the feat/governance branch June 8, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants