Repository navigation
fix(skills): judge official skill updates by ownership, not snapshot matching - #27603
Conversation
…matching Orca decided whether an installed official skill was pristine by matching its bytes against a shipped list of past snapshots, falling back to the skills CLI's lock hash. Copies installed between releases, CRLF copies, and installs whose lock recorded a sha256 hash all read "doesn't match the official version" and could not be updated (#26841), and older content could be labelled newer and never offered. Now an official skill is Orca's when the skills.sh global lock says it came from stablyai/orca, and it is current only when its listed files equal the bundled manifest (line endings and sidecars ignored); anything else is outdated. Install and update are one pinned `skills add .../tree/v<appVersion>` command, used by the in-app runner, `orca skills update`, and the Settings rails. The update dialog preselects Orca-owned rows and lists same-named skills from elsewhere unchecked. Removes the snapshot registry, release mapping, git-tree identity, lock trust and convergence logic, and the release-cut provenance step.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to A stale manifest can hide an available skill update, but the impact is bounded to releases with mismatched skill files and metadata. Verify the manifest before tagging; merge risk is low. Pre-merge checks |
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/renderer/src/components/skills/skill-freshness-grouping.ts (1)
125-130: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDerive group ownership from all entries, not only
entries[0].
groupSkillFreshnessuses the first entry'slockSourceto setorcaOwned.orcaOwnedSkillNamesuses any entry. Today the inventory assigns one lock source per name, so the two results agree. They can diverge if the inventory later assigns lock sources per placement, for example with WSL/SSH roots. In that case, the row badge and sort order would disagree with the preselection. Use one rule in both places.♻️ Proposed fix
- const lockSource = entries[0]?.lockSource ?? null + const lockSource = + entries.find((entry) => isOrcaSkillLockSource(entry.lockSource))?.lockSource ?? + entries[0]?.lockSource ?? + null
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
f60ed93f-2209-44ad-9b4d-ca17bac41161
📒 Files selected for processing (93)
.github/workflows/release-cut.yml.github/workflows/skill-update-roundtrip.ymlconfig/scripts/generate-skill-bundle-manifest.mjsconfig/scripts/generate-skill-bundle-manifest.test.mjsconfig/scripts/generated-artifact-line-ending-pin.test.mjsconfig/scripts/verify-skill-update-roundtrip.mjsconfig/vitest.config.tselectron.vite.config.tsresources/skills/current-manifest.jsonresources/skills/release-mapping.jsonresources/skills/snapshot-registry.jsonsrc/cli/handlers/skills.tssrc/cli/root-help-text-primary.tssrc/cli/skills.test.tssrc/cli/specs/skills.tssrc/main/git/worktree-shared-directories.test.tssrc/main/ipc/skills.test.tssrc/main/ipc/skills.tssrc/main/skills/skill-bundle-artifacts.test.tssrc/main/skills/skill-bundle-artifacts.tssrc/main/skills/skill-freshness-eligibility.test.tssrc/main/skills/skill-freshness-eligibility.tssrc/main/skills/skill-freshness-inventory.test.tssrc/main/skills/skill-freshness-inventory.tssrc/main/skills/skill-freshness-placement-observation.tssrc/main/skills/skill-git-tree-identity.test.tssrc/main/skills/skill-git-tree-identity.tssrc/main/skills/skill-lock-sources.test.tssrc/main/skills/skill-lock-sources.tssrc/main/skills/skill-package-identity.test.tssrc/main/skills/skill-package-identity.tssrc/main/skills/skill-update-convergence.test.tssrc/main/skills/skill-update-convergence.tssrc/main/skills/skill-update-outcome.test.tssrc/main/skills/skill-update-outcome.tssrc/main/skills/skill-update-registration.test.tssrc/main/skills/skill-update-registration.tssrc/main/skills/skill-update-run.test.tssrc/main/skills/skill-update-run.tssrc/renderer/src/components/feature-wall/BrowserUseSkillSetupCard.tsxsrc/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.freshness.test.tsxsrc/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.tsxsrc/renderer/src/components/onboarding/onboarding-feature-setup.test.tssrc/renderer/src/components/settings/AgentSkillSetupPanel.freshness.test.tsxsrc/renderer/src/components/settings/BrowserUsePane.tsxsrc/renderer/src/components/settings/BrowserUseSkillStep.test.tsxsrc/renderer/src/components/settings/BrowserUseSkillStep.tsxsrc/renderer/src/components/settings/CliSection.test.tsxsrc/renderer/src/components/settings/CliSection.tsxsrc/renderer/src/components/settings/CliSkillRuntimeSetup.test.tsxsrc/renderer/src/components/settings/CliSkillRuntimeSetup.tsxsrc/renderer/src/components/settings/ComputerUseSkillSetupPanel.tsxsrc/renderer/src/components/settings/EphemeralVmsPane.tsxsrc/renderer/src/components/settings/LinearAgentSkillPane.test.tsxsrc/renderer/src/components/settings/MobileEmulatorAgentControlRow.tsxsrc/renderer/src/components/settings/OrchestrationPane.test.tsxsrc/renderer/src/components/settings/OrchestrationPane.tsxsrc/renderer/src/components/settings/OrchestrationSetupCard.tsxsrc/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsxsrc/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsxsrc/renderer/src/components/skills/SkillFreshnessNudge.test.tsxsrc/renderer/src/components/skills/SkillFreshnessNudge.tsxsrc/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsxsrc/renderer/src/components/skills/SkillUpdateRow.test.tsxsrc/renderer/src/components/skills/SkillUpdateRow.tsxsrc/renderer/src/components/skills/skill-freshness-grouping.test.tssrc/renderer/src/components/skills/skill-freshness-grouping.tssrc/renderer/src/components/skills/skill-freshness-skipped-reason.test.tssrc/renderer/src/components/skills/skill-freshness-skipped-reason.tssrc/renderer/src/components/skills/skill-freshness-summary-headline.tsxsrc/renderer/src/components/skills/skill-location-chip-copy.tssrc/renderer/src/components/skills/use-skill-update-selection.tssrc/renderer/src/env.d.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/agent-feature-install-commands.tssrc/renderer/src/lib/agent-skill-nav-install-status.test.tssrc/renderer/src/lib/linear-agent-skill-update-command.test.tssrc/renderer/src/lib/linear-agent-skill-update-command.tssrc/renderer/src/lib/orchestration-install-command.tssrc/renderer/src/lib/skill-freshness-display-status.test.tssrc/renderer/src/lib/skill-freshness-display-status.tssrc/shared/agent-feature-install-commands.test.tssrc/shared/agent-feature-install-commands.tssrc/shared/skill-freshness.tssrc/shared/skills-cli-agent-detection.tsvite.web.config.ts
💤 Files with no reviewable changes (11)
- resources/skills/release-mapping.json
- resources/skills/snapshot-registry.json
- src/main/skills/skill-update-registration.test.ts
- src/main/skills/skill-update-convergence.test.ts
- src/main/skills/skill-git-tree-identity.ts
- src/renderer/src/components/skills/skill-location-chip-copy.ts
- config/scripts/generated-artifact-line-ending-pin.test.mjs
- src/main/skills/skill-update-convergence.ts
- src/main/skills/skill-git-tree-identity.test.ts
- src/main/skills/skill-update-registration.ts
- src/renderer/src/components/settings/BrowserUseSkillStep.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
…e host Update became the same pinned add as install, so it inherited install's refusal when no agent is detected. That broke the bare-host update the old command guaranteed, and the built-CLI check (update --dry-run, no --agent) on CI runners. The in-app runner already fell back to universal; both now share one detectSkillsCliUpdateAgentKeys rule. Also brings the CLI skills docs off `npx skills update`.
The selection hook took the live and the retained inventory, re-derived Orca ownership from installations beside the grouping's own orcaOwned, and kept a separate display count. Groups already carry both eligibility and ownership, so the hook reads them once; the button's existing live-scan gate is the only authorization check. The unselected line is inlined into the headline.
- isOwnerManagedSkillScope only negated into the participation check once plugin caches stopped participating; fold it in. - Eligibility re-checked resolvedPath/physicalIdentity, which observation already turns into 'inaccessible'. - The manifest verifier probed access() before a readFile that throws anyway. - orchestration-install-command.ts only forwarded one constant from the lib module its three importers already import.
The es/ja/ko/zh cantUpdateReason and tipDuplicate strings still named `npx skills update`, which Orca no longer runs for its skills. Say 'the update command' instead.
orcaSkillsSourceUrl was exported but only called by the builder beside it.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5d5097ad-e517-4db2-8934-dfcc4a3d9cd1
📒 Files selected for processing (26)
config/scripts/generate-skill-bundle-manifest.mjsdocs/site/content/docs/cli/skills.mdxsrc/cli/handlers/skills.tssrc/cli/skills.test.tssrc/cli/specs/skills.tssrc/main/skills/skill-freshness-eligibility.tssrc/main/skills/skill-update-run.test.tssrc/main/skills/skill-update-run.tssrc/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.tsxsrc/renderer/src/components/settings/OrchestrationPane.tsxsrc/renderer/src/components/settings/OrchestrationSetupCard.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsxsrc/renderer/src/components/skills/skill-freshness-grouping.test.tssrc/renderer/src/components/skills/skill-freshness-grouping.tssrc/renderer/src/components/skills/skill-freshness-summary-headline.tsxsrc/renderer/src/components/skills/use-skill-update-selection.tssrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/orchestration-install-command.tssrc/shared/agent-feature-install-commands.test.tssrc/shared/agent-feature-install-commands.tssrc/shared/skill-freshness.tssrc/shared/skills-cli-agent-detection.ts
💤 Files with no reviewable changes (2)
- src/renderer/src/lib/orchestration-install-command.ts
- src/renderer/src/components/skills/skill-freshness-grouping.ts
🚧 Files skipped from review as they are similar to previous changes (5)
- src/renderer/src/i18n/locales/ko.json
- src/cli/specs/skills.ts
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ja.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
The selection froze every checked name, Orca's preselection included, the moment the user ticked anything. A re-check that then attributed a name to another source kept it checked, replacing it without consent. Store only the user's explicit choices, keyed by name and lock source, and default to ownership otherwise.
…te 0 skills' The button stays whenever a row is updatable, so unticking every row (or a dialog with only non-Orca copies outdated) doesn't reflow the footer. At zero selected it stays disabled and reads 'Update skills' instead of a zero count. The label lives beside the dialog's other count copy.
The source of a non-Orca copy is only in the tooltip, and its trigger was a plain span. Make it focusable like Orca's other tooltip-on-text triggers (tabIndex 0, cursor-help, the row primitive's focus ring), as in the agreed mock.
…lder The CI round trip hardcoded its skills add argv, so it could drift from what Orca runs. A .mjs script can't import the TS builder (extensionless imports), so the argv moves into an exported roundTripAddArgs and a unit test asserts it is the builder's unattended add with the tag swapped for the PR commit. The script runs under the same main guard as the manifest generator.
…reason es, ko and zh still carried English for SkillUpdateRow.oneLocation and manyLocations, and es and ko for SkillFreshnessRow.skippedReasonDuplicate.
…ls CLI `skills add .../tree/v<version>` only works for stable and RC builds: hourly, daily and adhoc builds publish elsewhere, so stablyai/orca has no tag for their version and both install and update failed there. Every build is made from a commit that exists in stablyai/orca, so the build now stamps `git rev-parse HEAD` and the one shared builder pins to `tree/<commit>`, which equals the bundled skills by construction. Main, renderer, web and vitest get it as ORCA_BUILD_COMMIT (replacing ORCA_APP_VERSION); the tsc-built CLI reads it from the compiled out/package.json boundary. A missing or malformed commit fails the build or the command with a clear error instead of building a bad URL. The builder also pins the skills CLI (`npx [email protected]`): 1.5.x cannot fetch a commit, and a bare `npx skills` can reuse a stale cache or resolve to another binary (#18687). The CI round-trip script reuses the same constant.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Fail updates that leave a broken provider alias. · skill-update-outcome.ts:15-27
src/main/skills/skill-update-outcome.ts:15-27
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winFail updates that leave a broken provider alias.
skillUpdateFailedNamesfilters outbroken-linkplacements before checking status. If the pinned add leaves a provider alias broken while the canonical copy is current, the rescan returns no failed name and the runner publishes success. This violates the update contract that every written placement must return current.Suggested fix
return names.filter((name) => { + const brokenLink = installations.some( + (entry) => entry.name === name && entry.topology === 'broken-link' + ) const convergent = installations.filter( (entry) => entry.name === name && SUPPORTED_GLOBAL_SKILL_TOPOLOGIES.has(entry.topology) ) - return convergent.length === 0 || convergent.some((entry) => entry.status !== 'current') + return ( + brokenLink || + convergent.length === 0 || + convergent.some((entry) => entry.status !== 'current') + ) })
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
50a1f20e-744c-4a89-8229-395c9420a9f6
📒 Files selected for processing (30)
.github/workflows/skill-update-roundtrip.ymlconfig/scripts/build-source-commit.mjsconfig/scripts/verify-cli-bin.mjsconfig/scripts/verify-cli-bin.test.mjsconfig/scripts/verify-skill-update-roundtrip.mjsconfig/scripts/verify-skill-update-roundtrip.test.mjsconfig/vitest.config.tsdocs/site/content/docs/cli/skills.mdxelectron.vite.config.tssrc/cli/cli-version.test.tssrc/cli/cli-version.tssrc/cli/handlers/skills.tssrc/cli/root-help-text-primary.tssrc/cli/skills.test.tssrc/cli/specs/skills.tssrc/main/ipc/skills.tssrc/main/skills/skill-update-run.test.tssrc/main/skills/skill-update-run.tssrc/renderer/src/components/onboarding/onboarding-feature-setup.test.tssrc/renderer/src/components/settings/CliSkillRuntimeSetup.tsxsrc/renderer/src/components/settings/OrchestrationPane.test.tsxsrc/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsxsrc/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsxsrc/renderer/src/env.d.tssrc/renderer/src/lib/agent-feature-install-commands.tssrc/shared/agent-feature-install-commands.test.tssrc/shared/agent-feature-install-commands.tssrc/shared/skills-cli-version.tssrc/types/build-constants.d.tsvite.web.config.ts
🚧 Files skipped from review as they are similar to previous changes (2)
- src/cli/root-help-text-primary.ts
- src/cli/specs/skills.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
…uilder skills-cli-version.ts existed only so the plain-Node round-trip script could strip-load a .ts file, which needed --disable-warning in CI. The version now lives beside the builder that uses it; the script keeps a literal, and the existing round-trip test already asserts its argv, skills@<version> included, equals the builder's.
resolveBuildSourceCommit already refuses anything but a full hash, and both the define and the CLI's stamped package.json come from it. The builder's second check could only fire as a module-load throw in the renderer's command constants. Also drops the resolver's unused cwd parameter.
… config Tests only interpolate ORCA_BUILD_COMMIT, so they need not read HEAD (or fail outside a git checkout) on every run.
Every official skill command is now the builder's skills@<version> add; no rail emits skills update any more.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Verify the skill manifest before creating the release tag. · release-cut.yml:732-759
.github/workflows/release-cut.yml:732-759
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winVerify the skill manifest before creating the release tag.
The release step stages only
package.json, and the release build does not runverify:skill-bundle-manifest. Electron Builder packages the changed skill files together with the existing manifest. If the manifest is stale, freshness compares installed files with stalefilesentries. An older installed copy can therefore reportcurrenteven though it differs from the skill shipped in the release.🐛 Suggested fix
run: | set -euo pipefail + pnpm run verify:skill-bundle-manifest # Why: use npm version --no-git-tag-version so we control the commit
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
594aba98-1d7f-4ce8-8799-e25f08a88ec8
📒 Files selected for processing (13)
.github/workflows/skill-update-roundtrip.ymlconfig/scripts/build-source-commit.mjsconfig/scripts/verify-skill-update-roundtrip.mjsconfig/vitest.config.tssrc/cli/skills.test.tssrc/main/skills/skill-update-run.test.tssrc/renderer/src/components/onboarding/onboarding-feature-setup.test.tssrc/renderer/src/components/settings/CliSkillRuntimeSetup.tsxsrc/renderer/src/components/settings/OrchestrationPane.test.tsxsrc/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsxsrc/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsxsrc/shared/agent-feature-install-commands.test.tssrc/shared/agent-feature-install-commands.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Eligibility already skips names with a broken link before the run, so one afterwards is the run's own damage; report it instead of claiming success.
The removed --release step implicitly checked the committed manifest against skills/. Keep that guarantee with a verify-only run; it writes nothing.
…H and headless hosts (#28558) * fix(orcad): stamp the build commit so orca skills install works on SSH and headless hosts #27603 pins 'orca skills install|update' to the commit the CLI was built from, read from the CLI's out/package.json. The desktop CLI build stamps it, but the server bundle (the 'orca' in SSH-host and 'orca serve' terminals) wrote that file without a commit, so the command always failed there with 'Could not read the commit this Orca CLI was built from'. Stamp it the same way. * test: verify built orcad CLI skill source in artifact preflight
ELI5
Orca used to decide "is this installed Orca skill untouched?" by comparing it against a list of old Orca versions it carries around, plus a hash written by another tool. That list was incomplete and the hash changes with network conditions, so perfectly normal copies were called "modified" and could never be updated.
Now Orca asks two simple questions per skill: did Orca install it (according to the skills.sh install record), and is it exactly the version this Orca ships? If not, it offers to replace it with this Orca's version, using one install command pinned to this release.
What Changed
Before (user-visible):
npx skills update, which follows GitHubmainand sometimes refused with "no source URL recorded, skipping" ([Bug] Can't update Orca CLI skills #21495).After (user-visible):
orca skills updatedeletes a skill dir and leaves a dangling link when ~/.claude/skills is a symlink #22897), read-only folders, broken links, project copies and plugin caches. There are no backups; ticking a row is the consent to replace it.Mechanism:
skill-lock-sources.ts,isOrcaSkillLockSource): the skills.sh global lock entry'ssource, normalized, equalsstablyai/orca. Onlysourceis read; the lock hash is ignored.matchesBundledSkillFiles): the files the bundled manifest lists, compared with the existing text-normalized identity, so line endings, OS metadata files and agent sidecar files do not matter. The only results arecurrent,outdated, andinaccessiblefor read failures.npx [email protected] add https://github.com/stablyai/orca/tree/<commit> --skill … --global.addalways re-copies, so the result equals this build's bytes.<commit>is the full commit the build was made from (git rev-parse HEADat build time). Every release, RC, hourly, daily and adhoc workflow checks out a ref in stablyai/orca, so the commit always exists there, and it equals the bundled skills by construction. Av<version>tag would not work for hourly, daily or adhoc builds: they publish to stablyai/orca-hourly, and stablyai/orca has no tag for their version.commit.SKILLS_CLI_VERSIONbeside the builder insrc/shared/agent-feature-install-commands.ts, currently 1.7.2, the version CI validates). 1.5.x cannot fetch a commit, and a barenpx skillscan reuse an old cached copy or resolve to an unrelated binary. This also covers [Bug]: orca skills install/update runsnpx skillswith a bare name, so any unrelatedskillsbinary on PATH shadows the npm package #18687 and makes open PR fix(skills): pin the skills package spec so npx cannot run a PATH collision #18867 unnecessary for official skills.orca skills install|updateadd-yand the--agenttargetsorca skills installalready detects. That detection moved toshared/skills-cli-agent-detection.tsso both reuse it.orca skills update) targets onlyuniversal, the shared.agents/skillsfolder, as the oldskills updatenever refused on a bare host.orca skills installstill refuses and asks for--agent.ORCA_BUILD_COMMIT. Main, renderer and web get it as a define; vitest stamps a fixed placeholder so tests don't read HEAD. The tsc-built CLI readscommitfromout/package.json, whichverify-cli-bin --fix-package-jsonalready writes and packaging keeps.skills addwould write through it. After a run, a broken link left on a skill fails that skill instead of being ignored.snapshot-registry.jsonandrelease-mapping.json, plus their generator history, tag-walking and--releasecode;newer-known,unrecognized, and convergence gating;skills update→addrewrite in Settings, which every platform now does;*_UPDATE_COMMANDconstants, and theorchestration-install-command.tsre-export module.current-manifest.jsonis now schema 3, with no revision and no git tree hash; the bytes it describes are unchanged.skill-update-roundtripCI job now checks the pinnedaddover a stale CRLF copy with a sha256 lock, instead ofskills updateover a historical snapshot.Roughly: product code +764/−1883, tests +967/−2291, generated artifacts −2553, locales +54/−60.
Why
The root cause was that Orca judged "pristine" by matching disk against a list of snapshots it ships, while the bytes came from somewhere else: GitHub
main, through a third-party CLI. The only bridge was that CLI's lock hash, whose algorithm depends on whether GitHub's API answered.Alternatives considered and rejected:
Linked Issue
Fixes #26841
Also addresses #19702, #19657, #22613 (pristine copies reading "modified" / not updatable) and #21495 (
skills updaterefusing with no source URL), sinceskills updateis no longer used for official skills.Supersedes #27478, which adds tests only and does not change the verdict.
Visual Proof
These come from a hidden dev build of this branch at
9fed7d7040, on Windows 11 in dark theme, attached over CDP. No window was shown.The test home folder had these skills installed:
orca-cli,orchestrationandorca-emulator: older versions whose lock source isstablyai/orca. Each had a different lock hash (a matching git tree hash, a 64-hex sha256, and a bogus value) to show the hash no longer matters.computer-use: lock sourceacme/agent-skills.linear-tickets: no lock entry..cac\skills\orca-clijunction, withCLAUDE_CONFIG_DIR=.cac, matching the [Bug]: orca upgrade that updates skills, installed official skills are flagged as "副本与官方版本不一致 / cannot auto-update", #26841 setup.1. The nudge counts only Orca's own outdated skills.
2. Update skills dialog.
orca-clias a single location.3. The tooltip opens with keyboard focus and names the source.
4. Ticking a skill that isn't Orca's adds it to the run.
5. Pressing Update runs for real. This is a fresh copy of the same test home on
c5162cb2ae, a pushed commit, so the pinnednpx --yes [email protected] add https://github.com/stablyai/orca/tree/c5162cb2ae… --skill …resolves on GitHub.6. Result. The nudge didn't come back after Done.
Checked on disk afterwards:
SKILL.mdis byte-identical toc5162cb2ae:skills/<name>/SKILL.md. That includescomputer-use, which replaced the other vendor's copy.source: stablyai/orcaandref: c5162cb2ae….linear-ticketsis untouched, still the v1.4.199 bytes..cac\skills\orca-clijunction survived. The detected agents (Claude viaCLAUDE_CONFIG_DIR, Grok and CommandCode) gained junction links to the canonical copies, the same thingorca skills installdoes.computer-usemoves to the top of the list, because it's now Orca's and sorts alphabetically with the others.Testing
Run on Windows 11 only. I have not run it on macOS or Linux.
Automated tests:
pnpm tcpasses.vitestpasses onsrc/main/skills/**,src/main/ipc/skills.test.ts,src/shared/agent-feature-install-commands.test.ts,src/cli/skills.test.ts,src/renderer/src/components/skills/**, the Settings, onboarding, feature-wall, floating-terminal and emulator panes,src/renderer/src/lib/**, andconfig/scripts/generate-skill-bundle-manifest.test.mjs/generated-artifact-line-ending-pin.test.mjs.EPERMinskill-delete/service,skill-share-preparation-serviceanddiscovery-filter-sharing;skill-freshness-inventory.test.ts:outdatedand is eligible, never "modified", for each of: bytes from no known release, a 64-hex sha256 lock hash, CRLF bytes, and a.cac\skillsjunction to.agents\skills.Checks:
pnpm run check:code-quality:changedpasses.oxlintis clean on the changed files.pnpm lintpasses up to the localization step, which needsbun(not installed here). I ran that step withnode config/scripts/verify-localization-catalogs.mjsand it passes.verify:localization-extraction,verify:localization-coverage,check:process-host-importsandcheck:compat-boundary-importsalso pass.pnpm run verify:skill-bundle-manifestpasses.Real
skills addround trip (config/scripts/verify-skill-update-roundtrip.mjs, isolated temp HOME):autocrlf=true, and skills CLIlatestwith symlink andautocrlf=false. All pass: the stale CRLF copy becomes the manifest bytes, the lock recordsstablyai/orca, and the control skill is untouched.--branch). That is why the skills CLI is now pinned to 1.7.2 everywhere. The CI script keeps that version as a literal, and a unit test asserts its argv equals the builder's.The exact builder command, by hand (fresh
USERPROFILE/HOMEunderC:\w\sk26841\; the real~/.agentsis untouched):npx --yes [email protected] add https://github.com/stablyai/orca/tree/7acf484b0ff5a8ab14881fac4d42f08997d925df --skill orca-cli --skill orchestration --global --agent universal -yexits 0.Both installed
SKILL.mdfiles are byte-identical to that commit'sskills/<name>/SKILL.md: orca-cliaa76f865…9e4a, orchestrationcd1b364b…098a.The lock records
source: stablyai/orcaandref: 7acf484b0ff5a8ab14881fac4d42f08997d925df.The same check against
9fed7d7040gave the same result for orca-cli.A locally built CLI prints
npx --yes [email protected] add https://github.com/stablyai/orca/tree/<HEAD> …fororca skills update --dry-run, andverify-skills-cli-runtimepasses on it.An
electron-vitebuild substitutes the commit intoout/mainand the renderer.I manually tested these changes locally (the full nudge → review → update → result flow in a hidden dev build on Windows; see Visual Proof)
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Edits outside the core design (one line each)
electron.vite.config.ts,vite.web.config.ts,config/vitest.config.ts,src/renderer/src/env.d.ts,src/types/build-constants.d.ts: defineORCA_BUILD_COMMIT. The Settings/onboarding commands and the in-app runner pin to it, and the renderer has no synchronous way to read it.config/scripts/build-source-commit.mjs,config/scripts/verify-cli-bin.mjs,src/cli/cli-version.ts: resolve the build commit once and stamp it where the tsc-built CLI can read it..github/workflows/release-cut.yml: drops the--releasestep and allowlist entry, which wrote the deletedrelease-mapping.json. The check that step did implicitly is kept: a verify-only run of the manifest generator now refuses to tag when the committed manifest does not matchskills/. It writes nothing..github/workflows/skill-update-roundtrip.yml,config/scripts/verify-skill-update-roundtrip.mjs: the old job read the deleted registry and testedskills update; it now tests the pinnedadd, using the sharedSKILLS_CLI_VERSION(pluslatestas a preview).config/scripts/generated-artifact-line-ending-pin.test.mjs: removes the two deleted artifact paths.src/main/git/worktree-shared-directories.test.ts: one comment referenced the deletedskill-git-tree-identityfile.src/cli/root-help-text-primary.ts,src/cli/specs/skills.ts:orca skills updatehelp text now describes the pinned add (and accepts--agent).src/renderer/src/components/settings/BrowserUseSkillStep.tsx: drops theinstalledCommandprop that no longer has a separate value.src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx: the Windows npx preflight now also matchesnpx skills@<version> add.docs/site/content/docs/cli/skills.mdx: describes the pinnedskills addinstead ofnpx skills update.cantUpdateReason/tipDuplicate: say "the update command" instead of namingnpx skills update.Notes
lockSourcewas added, and the revision and git-tree fields were removed. This only crosses local Electron IPC between a main process and renderer of the same build, and the web client stub returns an empty inventory. No RPC changed.inaccessible, which keeps it skipped;--agenttargets like install does, so a detected agent's folder may gain the skill link;Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)