Skip to content

fix(skills): judge official skill updates by ownership, not snapshot matching - #27603

Merged
OrcaWin merged 21 commits into
mainfrom
fix/skills-update-ownership-26841
Oct 12, 2026
Merged

OrcaWin merged 21 commits into
mainfrom
fix/skills-update-ownership-26841

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1066 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2293 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1227
Prod 63 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​979 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4614 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3635

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):

After (user-visible):

  • An Orca skill that is not exactly this release's version reads Update available, whatever it came from: an older release, a commit between releases, CRLF line endings, a local edit, or a lock file with a sha256 hash.
  • The Update skills dialog has a checkbox per row:
    • Orca-installed skills are ticked and sort first.
    • Same-named skills that Orca did not install are unticked, with a quiet "Not from Orca" label. Its tooltip names the source, or says there is no Orca install record.
    • The headline counts Orca's updates. A second line says how many skills not installed by Orca are unselected. The button reads "Update K skills" for the K rows that are ticked; with none ticked it stays, disabled, as "Update skills". A tick lapses if a re-check finds a different install source for that skill.
  • The nudge toast counts only Orca-installed outdated skills. Settings badges likewise advertise updates only for Orca-installed copies.
  • Skipped rows stay skipped for the same layout reasons as today: links to folders Orca does not own (orca skills update deletes 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:

  • Ownership (skill-lock-sources.ts, isOrcaSkillLockSource): the skills.sh global lock entry's source, normalized, equals stablyai/orca. Only source is read; the lock hash is ignored.
  • Freshness (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 are current, outdated, and inaccessible for read failures.
  • Install and update are one pinned command: npx [email protected] add https://github.com/stablyai/orca/tree/<commit> --skill … --global. add always re-copies, so the result equals this build's bytes.
    • <commit> is the full commit the build was made from (git rev-parse HEAD at 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. A v<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.
    • A build that cannot read its commit, or reads anything but a full 40-character hash, fails with a clear error. That one check guards both the define and the CLI's stamped commit.
    • The skills CLI is pinned too (SKILLS_CLI_VERSION beside the builder in src/shared/agent-feature-install-commands.ts, currently 1.7.2, the version CI validates). 1.5.x cannot fetch a commit, and a bare npx skills can reuse an old cached copy or resolve to an unrelated binary. This also covers [Bug]: orca skills install/update runs npx skills with a bare name, so any unrelated skills binary 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.
    • The in-app runner and orca skills install|update add -y and the --agent targets orca skills install already detects. That detection moved to shared/skills-cli-agent-detection.ts so both reuse it.
    • When no agent is detected, an update (in-app or orca skills update) targets only universal, the shared .agents/skills folder, as the old skills update never refused on a bare host. orca skills install still refuses and asks for --agent.
    • The Settings and onboarding rails keep their interactive prompts.
    • One build constant carries the commit, 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 reads commit from out/package.json, which verify-cli-bin --fix-package-json already writes and packaging keeps.
  • Eligibility no longer requires a lock entry. It now also skips a name when any home placement is an external link, broken link or read-only, because skills add would write through it. After a run, a broken link left on a skill fails that skill instead of being ignored.
  • Deleted:
    • snapshot-registry.json and release-mapping.json, plus their generator history, tag-walking and --release code;
    • the release-cut provenance step and its allowlist entry;
    • git-tree identity, lock trust, newer-known, unrecognized, and convergence gating;
    • the Windows skills update → add rewrite in Settings, which every platform now does;
    • all *_UPDATE_COMMAND constants, and the orchestration-install-command.ts re-export module.
  • current-manifest.json is now schema 3, with no revision and no git tree hash; the bytes it describes are unchanged.
  • The skill-update-roundtrip CI job now checks the pinned add over a stale CRLF copy with a sha256 lock, instead of skills update over 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:

  • Fix the snapshot registry by adding more releases or every commit. It grows without bound and still can't tell "older release" from "edited". 16 of 40 skill versions shipped since v1.4.150 were already missing.
  • More hash fallbacks, such as accepting sha256 locks or normalizing CRLF in the lock check. Each fixes one failure mode and keeps the rest, including the stuck "Newer" state and [Bug] Can't update Orca CLI skills #21495.
  • Install receipts and backups. This is the dpkg-style design in the investigation. It is correct but much larger, needing new packaging, a new installer path and new state. The agreed scope is the smaller model: provenance from the existing lock, content against this build only, and one pinned reinstall. Ticking a row is the consent, so no backup is kept.

Linked Issue

Fixes #26841

Also addresses #19702, #19657, #22613 (pristine copies reading "modified" / not updatable) and #21495 (skills update refusing with no source URL), since skills update is 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:

1. The nudge counts only Orca's own outdated skills.

Nudge toast: 3 installed Orca skills are out of date

2. Update skills dialog.

  • Orca's skills are ticked and listed first.
  • Skills Orca didn't install are unticked, with a quiet "Not from Orca" label.
  • The junction shows up under orca-cli as a single location.

Update skills dialog with three pre-checked Orca skills and two unchecked Not from Orca rows

3. The tooltip opens with keyboard focus and names the source.

Tooltip: Installed from acme/agent-skills. Selecting it replaces it with Orca's version.

4. Ticking a skill that isn't Orca's adds it to the run.

computer-use ticked; button reads Update 4 skills

5. Pressing Update runs for real. This is a fresh copy of the same test home on c5162cb2ae, a pushed commit, so the pinned npx --yes [email protected] add https://github.com/stablyai/orca/tree/c5162cb2ae… --skill … resolves on GitHub.

Updating 4 skills with progress, Stop and Close

6. Result. The nudge didn't come back after Done.

Updated 4 skills; linear-tickets left as Not from Orca

Checked on disk afterwards:

  • The four updated skills: each SKILL.md is byte-identical to c5162cb2ae:skills/<name>/SKILL.md. That includes computer-use, which replaced the other vendor's copy.
  • Lock entries: all four now read source: stablyai/orca and ref: c5162cb2ae….
  • The unticked skill: linear-tickets is untouched, still the v1.4.199 bytes.
  • Links: the .cac\skills\orca-cli junction survived. The detected agents (Claude via CLAUDE_CONFIG_DIR, Grok and CommandCode) gained junction links to the canonical copies, the same thing orca skills install does.
  • Minor: when the run finishes, computer-use moves 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 tc passes.
  • vitest passes on src/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/**, and config/scripts/generate-skill-bundle-manifest.test.mjs / generated-artifact-line-ending-pin.test.mjs.
  • Failures that remain on this box are in files this PR does not touch:
    • Windows symlink EPERM in skill-delete/service, skill-share-preparation-service and discovery-filter-sharing;
    • the orchestration CLI recovery tests;
    • the electron-builder arch guard.
  • New regression tests for [Bug]: orca upgrade that updates skills, installed official skills are flagged as "副本与官方版本不一致 / cannot auto-update", #26841, in skill-freshness-inventory.test.ts:
    • An Orca-owned copy reads outdated and is eligible, never "modified", for each of: bytes from no known release, a 64-hex sha256 lock hash, CRLF bytes, and a .cac\skills junction to .agents\skills.
    • A foreign or missing lock source is not attributed to Orca, so it is not preselected.
    • An external link stays skipped.

Checks:

  • pnpm run check:code-quality:changed passes.
  • oxlint is clean on the changed files.
  • pnpm lint passes up to the localization step, which needs bun (not installed here). I ran that step with node config/scripts/verify-localization-catalogs.mjs and it passes. verify:localization-extraction, verify:localization-coverage, check:process-host-imports and check:compat-boundary-imports also pass.
  • pnpm run verify:skill-bundle-manifest passes.

Real skills add round trip (config/scripts/verify-skill-update-roundtrip.mjs, isolated temp HOME):

  • Against this branch's commit: skills CLI 1.7.2 with symlink and copy shapes and autocrlf=true, and skills CLI latest with symlink and autocrlf=false. All pass: the stale CRLF copy becomes the manifest bytes, the lock records stablyai/orca, and the control skill is untouched.
  • Skills CLI 1.5.17 cannot clone a commit (--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/HOME under C:\w\sk26841\; the real ~/.agents is untouched):

  • npx --yes [email protected] add https://github.com/stablyai/orca/tree/7acf484b0ff5a8ab14881fac4d42f08997d925df --skill orca-cli --skill orchestration --global --agent universal -y exits 0.

  • Both installed SKILL.md files are byte-identical to that commit's skills/<name>/SKILL.md: orca-cli aa76f865…9e4a, orchestration cd1b364b…098a.

  • The lock records source: stablyai/orca and ref: 7acf484b0ff5a8ab14881fac4d42f08997d925df.

  • The same check against 9fed7d7040 gave the same result for orca-cli.

  • A locally built CLI prints npx --yes [email protected] add https://github.com/stablyai/orca/tree/<HEAD> … for orca skills update --dry-run, and verify-skills-cli-runtime passes on it.

  • An electron-vite build substitutes the commit into out/main and 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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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: define ORCA_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 --release step and allowlist entry, which wrote the deleted release-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 match skills/. It writes nothing.
  • .github/workflows/skill-update-roundtrip.yml, config/scripts/verify-skill-update-roundtrip.mjs: the old job read the deleted registry and tested skills update; it now tests the pinned add, using the shared SKILLS_CLI_VERSION (plus latest as 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 deleted skill-git-tree-identity file.
  • src/cli/root-help-text-primary.ts, src/cli/specs/skills.ts: orca skills update help text now describes the pinned add (and accepts --agent).
  • src/renderer/src/components/settings/BrowserUseSkillStep.tsx: drops the installedCommand prop that no longer has a separate value.
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx: the Windows npx preflight now also matches npx skills@<version> add.
  • docs/site/content/docs/cli/skills.mdx: describes the pinned skills add instead of npx skills update.
  • es/ja/ko/zh cantUpdateReason / tipDuplicate: say "the update command" instead of naming npx skills update.

Notes

  • SSH / WSL: the freshness inventory stays local-only, as before. The Settings rails still wrap the pinned command for the selected runtime, and the pinned commit is this app's build commit.
  • Wire compatibility: the inventory shape changed: lockSource was 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.
  • Behaviour changes worth a look:
    • plugin-cache copies no longer raise attention, since Orca can't tell an old release from another vendor's same-named skill;
    • an unreadable package reads inaccessible, which keeps it skipped;
    • update now passes --agent targets like install does, so a detected agent's folder may gain the skill link;
    • nudge dismissal keys now use the bundled digest instead of the old revision number, so a previously dismissed nudge can show once more.
  • Dev builds pin to the local checkout's HEAD, which exists on GitHub only once it is pushed. They are otherwise out of scope.
  • Follow-ups not done here:
    • remote (WSL/SSH) inventory;
    • receipts and atomic replace.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Orca Worker added 2 commits October 11, 2026 14:40
…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.
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 11, 2026 21:46
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough
📝 Walkthrough

Walkthrough

Skill installation and update commands now use the Skills CLI pinned to the Orca build commit. Freshness checks compare installed files with a schema-3 current manifest and use lock-source data to identify Orca-managed skills. The update dialog supports selecting eligible skills, with Orca-managed skills selected by default. Release-history snapshots and mappings are removed, and the release-cut workflow now stages and permits only package.json.












Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: 🔵 Low · up to c5162

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 | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.69% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 109 functions across 73 files. (1 skipped… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed The PR meets the coding requirements for [#26841]. inventorySkillFreshness reads the schema-3 bundled manifest and compares installed package files with the files shipped by this build. `readSkillLo…
Out of Scope Changes check Passed The changes stay within [#26841]. Manifest schema changes, removal of snapshot and release-mapping data, build-commit stamping, CLI and renderer changes, agent detection, localization, documentation, …
Title check Passed The title clearly and concisely describes the main change: skill updates are judged by ownership instead of snapshot matching.
Description check Passed The description follows the repository template and provides a clear user-facing summary, detailed changes, rationale, linked issues, visual proof, testing results, limitations, and checklist status. …

Full details: Docstring Coverage

Explanation

Docstring coverage is 25.69% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 109 functions across 73 files. (1 skipped: 1 unsupported.)


  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR















  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🧹 Nitpick comments (1)
src/renderer/src/components/skills/skill-freshness-grouping.ts (1)

125-130: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Derive group ownership from all entries, not only entries[0].

groupSkillFreshness uses the first entry's lockSource to set orcaOwned. orcaOwnedSkillNames uses 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
📥 Commits

Reviewing files that changed from the base of the PR and between c180ba6 and 6522a6c.

📒 Files selected for processing (93)
  • .github/workflows/release-cut.yml
  • .github/workflows/skill-update-roundtrip.yml
  • config/scripts/generate-skill-bundle-manifest.mjs
  • config/scripts/generate-skill-bundle-manifest.test.mjs
  • config/scripts/generated-artifact-line-ending-pin.test.mjs
  • config/scripts/verify-skill-update-roundtrip.mjs
  • config/vitest.config.ts
  • electron.vite.config.ts
  • resources/skills/current-manifest.json
  • resources/skills/release-mapping.json
  • resources/skills/snapshot-registry.json
  • src/cli/handlers/skills.ts
  • src/cli/root-help-text-primary.ts
  • src/cli/skills.test.ts
  • src/cli/specs/skills.ts
  • src/main/git/worktree-shared-directories.test.ts
  • src/main/ipc/skills.test.ts
  • src/main/ipc/skills.ts
  • src/main/skills/skill-bundle-artifacts.test.ts
  • src/main/skills/skill-bundle-artifacts.ts
  • src/main/skills/skill-freshness-eligibility.test.ts
  • src/main/skills/skill-freshness-eligibility.ts
  • src/main/skills/skill-freshness-inventory.test.ts
  • src/main/skills/skill-freshness-inventory.ts
  • src/main/skills/skill-freshness-placement-observation.ts
  • src/main/skills/skill-git-tree-identity.test.ts
  • src/main/skills/skill-git-tree-identity.ts
  • src/main/skills/skill-lock-sources.test.ts
  • src/main/skills/skill-lock-sources.ts
  • src/main/skills/skill-package-identity.test.ts
  • src/main/skills/skill-package-identity.ts
  • src/main/skills/skill-update-convergence.test.ts
  • src/main/skills/skill-update-convergence.ts
  • src/main/skills/skill-update-outcome.test.ts
  • src/main/skills/skill-update-outcome.ts
  • src/main/skills/skill-update-registration.test.ts
  • src/main/skills/skill-update-registration.ts
  • src/main/skills/skill-update-run.test.ts
  • src/main/skills/skill-update-run.ts
  • src/renderer/src/components/feature-wall/BrowserUseSkillSetupCard.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.freshness.test.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.tsx
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/settings/AgentSkillSetupPanel.freshness.test.tsx
  • src/renderer/src/components/settings/BrowserUsePane.tsx
  • src/renderer/src/components/settings/BrowserUseSkillStep.test.tsx
  • src/renderer/src/components/settings/BrowserUseSkillStep.tsx
  • src/renderer/src/components/settings/CliSection.test.tsx
  • src/renderer/src/components/settings/CliSection.tsx
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.test.tsx
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx
  • src/renderer/src/components/settings/ComputerUseSkillSetupPanel.tsx
  • src/renderer/src/components/settings/EphemeralVmsPane.tsx
  • src/renderer/src/components/settings/LinearAgentSkillPane.test.tsx
  • src/renderer/src/components/settings/MobileEmulatorAgentControlRow.tsx
  • src/renderer/src/components/settings/OrchestrationPane.test.tsx
  • src/renderer/src/components/settings/OrchestrationPane.tsx
  • src/renderer/src/components/settings/OrchestrationSetupCard.tsx
  • src/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessNudge.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessNudge.tsx
  • src/renderer/src/components/skills/SkillFreshnessStatusPill.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
  • src/renderer/src/components/skills/SkillUpdateRow.test.tsx
  • src/renderer/src/components/skills/SkillUpdateRow.tsx
  • src/renderer/src/components/skills/skill-freshness-grouping.test.ts
  • src/renderer/src/components/skills/skill-freshness-grouping.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.test.ts
  • src/renderer/src/components/skills/skill-freshness-skipped-reason.ts
  • src/renderer/src/components/skills/skill-freshness-summary-headline.tsx
  • src/renderer/src/components/skills/skill-location-chip-copy.ts
  • src/renderer/src/components/skills/use-skill-update-selection.ts
  • src/renderer/src/env.d.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/agent-feature-install-commands.ts
  • src/renderer/src/lib/agent-skill-nav-install-status.test.ts
  • src/renderer/src/lib/linear-agent-skill-update-command.test.ts
  • src/renderer/src/lib/linear-agent-skill-update-command.ts
  • src/renderer/src/lib/orchestration-install-command.ts
  • src/renderer/src/lib/skill-freshness-display-status.test.ts
  • src/renderer/src/lib/skill-freshness-display-status.ts
  • src/shared/agent-feature-install-commands.test.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/skill-freshness.ts
  • src/shared/skills-cli-agent-detection.ts
  • vite.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.

Comment thread src/renderer/src/i18n/locales/es.json Resolved
Orca Worker added 5 commits October 11, 2026 15:07
…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.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5d5097ad-e517-4db2-8934-dfcc4a3d9cd1
📥 Commits

Reviewing files that changed from the base of the PR and between 6522a6c and 44db22f.

📒 Files selected for processing (26)
  • config/scripts/generate-skill-bundle-manifest.mjs
  • docs/site/content/docs/cli/skills.mdx
  • src/cli/handlers/skills.ts
  • src/cli/skills.test.ts
  • src/cli/specs/skills.ts
  • src/main/skills/skill-freshness-eligibility.ts
  • src/main/skills/skill-update-run.test.ts
  • src/main/skills/skill-update-run.ts
  • src/renderer/src/components/floating-terminal/FloatingTerminalOrchestrationDialog.tsx
  • src/renderer/src/components/settings/OrchestrationPane.tsx
  • src/renderer/src/components/settings/OrchestrationSetupCard.tsx
  • src/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsx
  • src/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsx
  • src/renderer/src/components/skills/skill-freshness-grouping.test.ts
  • src/renderer/src/components/skills/skill-freshness-grouping.ts
  • src/renderer/src/components/skills/skill-freshness-summary-headline.tsx
  • src/renderer/src/components/skills/use-skill-update-selection.ts
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/orchestration-install-command.ts
  • src/shared/agent-feature-install-commands.test.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/skill-freshness.ts
  • src/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.

Orca Worker added 5 commits October 11, 2026 15:27
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.
@OrcaWin
OrcaWin removed the request for review from brennanb2025 October 11, 2026 23:05
Orca Worker added 3 commits October 11, 2026 16:41
…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.

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 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 win

Fail updates that leave a broken provider alias.

skillUpdateFailedNames filters out broken-link placements 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
📥 Commits

Reviewing files that changed from the base of the PR and between 9fed7d7 and 7acf484.

📒 Files selected for processing (30)
  • .github/workflows/skill-update-roundtrip.yml
  • config/scripts/build-source-commit.mjs
  • config/scripts/verify-cli-bin.mjs
  • config/scripts/verify-cli-bin.test.mjs
  • config/scripts/verify-skill-update-roundtrip.mjs
  • config/scripts/verify-skill-update-roundtrip.test.mjs
  • config/vitest.config.ts
  • docs/site/content/docs/cli/skills.mdx
  • electron.vite.config.ts
  • src/cli/cli-version.test.ts
  • src/cli/cli-version.ts
  • src/cli/handlers/skills.ts
  • src/cli/root-help-text-primary.ts
  • src/cli/skills.test.ts
  • src/cli/specs/skills.ts
  • src/main/ipc/skills.ts
  • src/main/skills/skill-update-run.test.ts
  • src/main/skills/skill-update-run.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx
  • src/renderer/src/components/settings/OrchestrationPane.test.tsx
  • src/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsx
  • src/renderer/src/env.d.ts
  • src/renderer/src/lib/agent-feature-install-commands.ts
  • src/shared/agent-feature-install-commands.test.ts
  • src/shared/agent-feature-install-commands.ts
  • src/shared/skills-cli-version.ts
  • src/types/build-constants.d.ts
  • vite.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.

Orca Worker added 4 commits October 11, 2026 17:01
…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.

@coderabbitai coderabbitai Bot 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.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

🟡 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 win

Verify the skill manifest before creating the release tag.

The release step stages only package.json, and the release build does not run verify: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 stale files entries. An older installed copy can therefore report current even 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
📥 Commits

Reviewing files that changed from the base of the PR and between 7acf484 and c5162cb.

📒 Files selected for processing (13)
  • .github/workflows/skill-update-roundtrip.yml
  • config/scripts/build-source-commit.mjs
  • config/scripts/verify-skill-update-roundtrip.mjs
  • config/vitest.config.ts
  • src/cli/skills.test.ts
  • src/main/skills/skill-update-run.test.ts
  • src/renderer/src/components/onboarding/onboarding-feature-setup.test.ts
  • src/renderer/src/components/settings/CliSkillRuntimeSetup.tsx
  • src/renderer/src/components/settings/OrchestrationPane.test.tsx
  • src/renderer/src/components/settings/linear-agent-skill-install-cta.test.tsx
  • src/renderer/src/components/sidebar/LinearAgentSkillSetupPrompt.test.tsx
  • src/shared/agent-feature-install-commands.test.ts
  • src/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.

OrcaWin pushed a commit that referenced this pull request Oct 12, 2026
Orca Worker added 2 commits October 11, 2026 18:00
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.
@OrcaWin
OrcaWin merged commit 83056e5 into main Oct 12, 2026
60 checks passed
brennanb2025 added a commit that referenced this pull request Oct 14, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: orca upgrade that updates skills, installed official skills are flagged as "副本与官方版本不一致 / cannot auto-update",

1 participant