Skip to content

fix(skills): take a skill bundle overwrite's mode from its version - #2027

Merged
dianagrecu-uipath merged 2 commits into
mainfrom
fix/skill-bundle-overwrite-version
Nov 26, 2026
Merged

dianagrecu-uipath merged 2 commits into
mainfrom
fix/skill-bundle-overwrite-version

Conversation

@dianagrecu-uipath

@dianagrecu-uipath dianagrecu-uipath commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What

A skillBundle resource overwrite now carries name, folderPath and an optional version, the shape Orchestrator and Solutions send. versionMode is no longer read from an overwrite.

  • version is latest (any case, ASCII only) or the pinned version: a version number, a tag or a sha256: digest. latest selects the newest version; any other value pins that version.
  • An overwrite without version keeps the version the agent declared. A debug run inside a solution receives this shape: name and folder only.
  • SkillBundleRef keeps version_mode, so agents still declare pinned or latest in code.

Why

Orchestrator's skillBundle binding has no versionMode field; the mode is part of version. Up to 0.3.20, the latest release, every overwrite Orchestrator or Solutions sends fails validation (versionMode: Field required), so the bundle is reported invalid and the agent runs without it.

Skill bundles are not enabled anywhere yet, so no deployed binding uses the old shape.

Changes

  • SkillBundleResourceOverwrite: version_mode removed. A versionMode key in an entry is ignored.
  • apply_skill_bundle_overwrite: takes the mode from version, and keeps the declared mode and version when the overwrite has no version.
  • docs/core/skills.md: the bindings example and the override rules.
  • uipath-platform 0.3.21.

Tests

  • New cases: the version is kept as sent (latest, number, tag, digest); an entry without a version is valid; a versionMode key is ignored; the version selects the mode for both a pinned and a latest declared reference; a missing or empty version keeps the declared one. They fail on the previous code.
  • A non-ASCII spelling such as lateſt (U+017F) is pinned, not latest; this case fails without the ASCII check. The pinned version check then refuses it as invalid before any request.
  • uipath-platform: 2732 passed, 8 skipped. uipath: 2910 passed. ruff check, ruff format --check and mypy are clean.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:22
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the skill-bundle overwrite changes.

No open issues 🎉

What changed in this PR

Aligns skill-bundle overwrites in the UiPath Platform SDK with the payloads sent by Orchestrator and Solutions, avoiding validation failures caused by requiring versionMode.

Changes:

  • Derives overwrite mode from optional version: case-insensitive latest selects the newest version; other values pin it. Missing or blank versions preserve the agent’s declared settings.
  • Updates documentation and tests for the overwrite format, ignored versionMode, and validation behavior.
  • Bumps uipath-platform to 0.3.17 and synchronizes lockfiles.
File Description
packages/​uipath/​uv.lock Updates the platform package version to 0.3.17.
packages/​uipath/​docs/​core/​skills.md Documents version-based bindings and overwrite rules.
packages/​uipath-platform/​uv.lock Synchronizes the platform package version.
packages/​uipath-platform/​tests/​services/​skills/​test_skills_service.py Updates service tests to use the new overwrite format.
packages/​uipath-platform/​tests/​services/​skills/​test_overwrites.py Tests mode selection and preservation of declared versions.
packages/​uipath-platform/​tests/​common/​test_bindings_skill_bundle.py Tests optional versions, ignored versionMode, and validation.
packages/​uipath-platform/​src/​uipath/​platform/​skills/​_overwrites.py Derives mode from overwrite version or preserves declared settings.
packages/​uipath-platform/​src/​uipath/​platform/​common/​_bindings.py Removes the overwrite’s version_mode field and associated validation.
packages/​uipath-platform/​pyproject.toml Bumps the package version to 0.3.17.

Review effort: Balanced

@dianagrecu-uipath
dianagrecu-uipath force-pushed the fix/skill-bundle-overwrite-version branch from 2ee9738 to 9d0e80f Compare November 26, 2026 15:35
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

🚨 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 →

@dianagrecu-uipath
dianagrecu-uipath merged commit 946e0e9 into main Nov 26, 2026
184 of 190 checks passed
@dianagrecu-uipath
dianagrecu-uipath deleted the fix/skill-bundle-overwrite-version branch November 26, 2026 15:45
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants