feat(guardrails): consume uipath-platform 0.2.9 for BYOG evaluation#986
Merged
valentinabojan merged 1 commit intoJul 13, 2026
Merged
Conversation
Bump the uipath-platform floor to 0.2.9 so BYOG guardrails forward their byoValidatorName reference during evaluation. Adds regression tests confirming a "byo" built-in validator guardrail maps through the factory unchanged (preserving byo_validator_name) and runs in every stage its scope runs. Bumps uipath-langchain to 0.14.7. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
99324b4 to
d6f27e6
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates uipath-langchain to require uipath-platform>=0.2.9 so Bring-Your-Own-Guardrail (BYOG) built-in validator guardrails retain and forward byo_validator_name during evaluation, and adds regression tests to ensure BYOG guardrails are not altered or stage-filtered incorrectly.
Changes:
- Bumped dependency floor:
uipath-platform>=0.2.5→>=0.2.9and package version0.14.6→0.14.7. - Regenerated
uv.lockto reflectuipath-platform==0.2.9. - Added tests validating BYOG guardrails preserve
byo_validator_name, have actions mapped correctly, and are not dropped by stage filtering.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
pyproject.toml |
Raises uipath-platform minimum version to ensure BYOG forwarding support; bumps package version. |
uv.lock |
Updates locked dependencies to include uipath-platform 0.2.9. |
tests/agent/guardrails/test_guardrails_factory.py |
Adds regression tests ensuring BYOG built-in validator guardrails pass through the factory and preserve byo_validator_name. |
tests/agent/guardrails/test_guardrail_stage_filtering.py |
Adds tests ensuring BYOG validators (sentinel validator_type="byo") are not filtered out in any execution stage. |
|
apetraru-uipath
approved these changes
Jul 13, 2026
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.



What changed?
Bumps the
uipath-platformfloor to 0.2.9 so Bring-Your-Own-Guardrail (BYOG) guardrails are evaluated correctly at runtime.A BYOG guardrail is persisted as a
BuiltInValidatorGuardrailwith the"byo"sentinelvalidatorTypeand abyoValidatorNamereferencing the connector-backed configuration.uipath-platform0.2.9 exposesbyo_validator_nameas a typed field and forwards it in the guardrail validation request; earlier versions dropped it, so the service could not resolve the configuration.pyproject.toml—uipath-platform>=0.2.5→>=0.2.9; version0.14.6→0.14.7.uv.lock— regenerated (uipath-platform0.2.9)."byo"built-in validator guardrail:build_guardrails_with_actionsunchanged, preservingbyo_validator_nameWhy
The runtime already passes the guardrail object straight through to
evaluate_guardrail, so no source change is needed here — only the dependency floor so the forwarding is guaranteed present. With this bump, BYOG guardrails execute end-to-end.Notes
Requires the platform change in UiPath/uipath-python#1810 (merged, released as
uipath-platform0.2.9).All guardrail tests pass (279); ruff clean.
🤖 Generated with Claude Code