Repository navigation
Add safe skill freshness detection and update rail - #8637
Conversation
…tent The rebase onto main picked up the reviewed guide fixes (#8624), so the current manifest hashes and a new appended snapshot generation must match those bytes; the registry keeps all prior snapshots so existing installs classify as outdated rather than unrecognized.
dfa77d3 to
6c8726a
Compare
|
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:
📝 WalkthroughWalkthroughAdds deterministic skill bundle manifests and release mappings, packages them as runtime resources, and validates skill updates through CI round-trip checks. Introduces local freshness inventory scanning, package identity and topology classification, IPC/preload access, cached renderer state, update status pills, nudges, dialogs, localization, and related tests. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 7
🧹 Nitpick comments (2)
src/renderer/src/hooks/useSkillFreshness.test.tsx (1)
37-74: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider adding coverage for the error and custom-event paths.
This file covers the invalidation race well, but the hook also has an error path (
freshnessInventory()rejecting), theINSTALLED_SKILLS_CHANGED_EVENTlistener, and unmount-during-fetch safety (mountedRefguard) — none of which are exercised here. The existingdeferred()/Probescaffolding makes these cheap to add.src/renderer/src/hooks/useSkillFreshness.ts (1)
20-36: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winWrap
freshnessInventory()with a timeout. A stalled main-process scan leaves every consumer of the shared request stuck inloading; reuse the existingwithTimeouthelper already used insrc/renderer/src/components/sidebar/useCreateProjectDefaults.ts.Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: bfda838e-5c83-42b5-89fc-485c8dc84d22
📒 Files selected for processing (47)
.github/workflows/pr.yml.github/workflows/skill-update-roundtrip.ymlconfig/electron-builder.config.cjsconfig/scripts/electron-builder-config.test.mjsconfig/scripts/generate-skill-bundle-manifest.mjsconfig/scripts/generate-skill-bundle-manifest.test.mjsconfig/scripts/verify-skill-update-roundtrip.mjsnotes/skill-freshness-design.mdpackage.jsonresources/skills/current-manifest.jsonresources/skills/release-mapping.jsonresources/skills/snapshot-registry.jsonsrc/main/ipc/skills.test.tssrc/main/ipc/skills.tssrc/main/skills/discovery.test.tssrc/main/skills/discovery.tssrc/main/skills/skill-bundle-artifacts.tssrc/main/skills/skill-candidate-concurrency.tssrc/main/skills/skill-discovery-sources.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-installation-topology.tssrc/main/skills/skill-package-identity.test.tssrc/main/skills/skill-package-identity.tssrc/main/skills/skill-plugin-cache-scan.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/App.tsxsrc/renderer/src/components/skills/SkillFreshnessNudge.test.tsxsrc/renderer/src/components/skills/SkillFreshnessNudge.tsxsrc/renderer/src/components/skills/SkillFreshnessPanel.test.tsxsrc/renderer/src/components/skills/SkillFreshnessPanel.tsxsrc/renderer/src/components/skills/SkillsPage.tsxsrc/renderer/src/components/skills/skill-freshness-update-terminal.tssrc/renderer/src/hooks/useSkillFreshness.test.tsxsrc/renderer/src/hooks/useSkillFreshness.tssrc/renderer/src/i18n/locales/en.jsonsrc/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/web/web-preload-api.tssrc/shared/skill-freshness.tssrc/shared/types.ts
👮 Files not reviewed due to content moderation or server errors (7)
- src/renderer/src/components/skills/SkillFreshnessNudge.tsx
- src/renderer/src/components/skills/SkillFreshnessNudge.test.tsx
- src/renderer/src/components/skills/skill-freshness-update-terminal.ts
- src/renderer/src/App.tsx
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ja.json
Historical snapshots kept git ls-tree byte-order while the working-tree walk and runtime observation use the sorted depth-first order, so any future multi-file skill would misclassify older installs as unrecognized and churn spurious registry revisions; all producers now share one canonical order (no digest changes for today's single-file packages). Also rejects executable files from shipped skills (Windows observation cannot see execute bits, which would misclassify pristine Windows installs) and adds an explicit append-only invariant for released snapshots so a generation-logic change cannot rewrite them silently.
…t copy Every window focus re-read and re-hashed all installed packages, and the nudge and panel each forced their own trailing rescan for one event; a 15s cooldown plus a shared invalidation latch keep one bounded scan per event while install-change events stay immediate. Bundle artifacts are now loaded once per run instead of re-parsed on every scan. A read-only or otherwise unsupported outdated placement now explains that it blocks itself instead of blaming a phantom sibling placement; the supported topology set moved to shared so eligibility and copy cannot drift.
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: de3831c6-f358-4423-873f-285098e2e699
📒 Files selected for processing (14)
config/scripts/generate-skill-bundle-manifest.mjsconfig/scripts/generate-skill-bundle-manifest.test.mjssrc/main/skills/skill-bundle-artifacts.tssrc/main/skills/skill-freshness-eligibility.tssrc/renderer/src/components/skills/SkillFreshnessPanel.test.tsxsrc/renderer/src/components/skills/SkillFreshnessPanel.tsxsrc/renderer/src/hooks/useSkillFreshness.test.tsxsrc/renderer/src/hooks/useSkillFreshness.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/skill-freshness.ts
🚧 Files skipped from review as they are similar to previous changes (11)
- src/main/skills/skill-freshness-eligibility.ts
- src/shared/skill-freshness.ts
- src/renderer/src/components/skills/SkillFreshnessPanel.test.tsx
- src/renderer/src/i18n/locales/en.json
- src/main/skills/skill-bundle-artifacts.ts
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/hooks/useSkillFreshness.ts
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/components/skills/SkillFreshnessPanel.tsx
…e modal The Skills page has been unreachable since its toolbox menu entry was removed (#4535), so surfacing freshness there buried the feature behind its own nudge. The nudge now lingers until acted on (ignoring it records nothing; only the explicit close persists dismissal keys) and opens an update modal hosting the pre-filled editable terminal, an honest current/blocked summary, and the per-placement rows in a collapsed Details section. A compact 'Check for skill updates' row in CLI settings is the manual re-entry point. Skills page restored to main; design-doc surfacing section records the venue decision.
… fold freshness into the setup rails The dialog hosts a live terminal pane that requires the link-routing preference context; mounted outside the provider it crashed the renderer the moment an eligible update existed (caught by live QA — unit tests mock the terminal). It now mounts inside the provider behind its own recoverable boundary. The separate 'Check for skill updates' settings button is gone: the setup rails' own pill now carries freshness (Update available / Up to date, falling back to Installed for blocked or unrecognized copies and for non-local runtimes the local-only scan cannot vouch for), and Re-check refreshes both installation detection and the freshness inventory. Wired for the CLI, Orchestration, Computer Use, and Per-Workspace Environments rails.
…2025/skill-freshness-detection
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
src/renderer/src/components/skills/SkillFreshnessNudge.tsx (1)
61-108: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winLingering toast never retracts after the flagged skill(s) are resolved.
toast.infohere usesduration: Number.POSITIVE_INFINITYand nothing callstoast.dismiss()when a later inventory refresh shows the same candidates are no longer outdated (e.g., after the user updates via the dialog's terminal draft,notifyInstalledAgentSkillsChanged()fires andunseenbecomes empty on the next effect run — but the earlier toast, if already shown, stays on screen indefinitely).Consider capturing the returned toast id from
toast.info(...)in a ref and dismissing it if a later effect run finds the previously-shown candidate set fully resolved.src/renderer/src/components/skills/SkillFreshnessStatusPill.tsx (1)
11-39: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueUse hash-based locale keys.
Based on learnings for localizing user-facing strings inside components, consider using a 10-char hash for the locale keys (e.g.,
auto.components.skills.SkillFreshnessStatusPill.<hash>) instead of descriptive suffixes likeupdateAvailable. This ensures maximum consistency with the pre-generated keys in theen.jsonlocale catalog.Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: fc2c5f10-9c75-4dec-ac7d-064885b744e5
📒 Files selected for processing (20)
notes/skill-freshness-design.mdsrc/renderer/src/App.tsxsrc/renderer/src/components/settings/AgentSkillSetupPanel.tsxsrc/renderer/src/components/settings/CliSection.tsxsrc/renderer/src/components/settings/ComputerUseSkillSetupPanel.tsxsrc/renderer/src/components/settings/EphemeralVmsPane.tsxsrc/renderer/src/components/settings/OrchestrationSetupCard.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/SkillFreshnessStatusPill.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.test.tsxsrc/renderer/src/components/skills/SkillFreshnessUpdateDialog.tsxsrc/renderer/src/components/skills/skill-freshness-row.tsxsrc/renderer/src/components/skills/skill-freshness-update-dialog.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes (4)
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/en.json
- notes/skill-freshness-design.md
👮 Files not reviewed due to content moderation or server errors (2)
- src/renderer/src/i18n/locales/ja.json
- src/renderer/src/i18n/locales/ko.json
Main advanced to 1.4.142-rc.1 with a v1.4.141 release, so the embedded appVersion and release mapping were stale on the PR's merged tree. Only appVersion and the new release entry change; no snapshot digests move (released history preserved).
…eshness-detection
…eshness-detection
…eshness-detection
The Update skills modal now lists only skills that will update or that can't (with why), grouped by skill with their install locations nested underneath — no more one row per placement. - Statuses collapse to "Update available" / "Can't update" at the skill level. - A location's problem is a chip (Duplicate, Unrecognized, Inaccessible, Read only, In a repo, External/Broken link, Plugin cache) with a hover tooltip that explains what it means for the user and what to do. - Up-to-date, unrecognized-only, and unreadable-only skills are hidden; a current/unrecognized/etc. location only appears when it explains a shown skill. - Copy is de-jargoned (drops "copy"/"placement"/"snapshot"/"official copy") and names the mechanism as the npx skills update command, not "Orca's update". - Rename the section to "Update details"; drop the unreachable newer-known state. Renderer-only: derivation is a pure module (groupSkillFreshness) with unit tests; no IPC or main-process change. Locales updated for all five languages.
…eshness-detection
… copy - Eligibility: a clean standalone duplicate no longer poisons the whole name — the canonical copy still updates and the duplicate is flagged; a duplicate-only skill stays unoffered. - Update modal: "Can't update" -> "Skipped" with a reason-specific sentence (edited/read-only/in-a-repo/plugin/link); chips describe only the location state; footer "Check now" -> "Re-check". - Settings sidebar nav pills go amber "Update available" when a skill is updatable, matching the setup cards. - Localized new strings across en/es/ja/ko/zh.
…2025/skill-freshness-detection
* fix(skills): source released history from the committed ledger, not a tag walk verify:skill-bundle-manifest rebuilt the entire released-skill history by walking every local refs/tags/v* on each run and demanded byte-equality with the committed artifacts. Output was therefore a function of (skill bytes x local tag set x release timing), so any clone holding stray, deleted, or fork tags the committed artifacts predate rebuilt a divergent registry and failed lint. This was the 4th instance of one failure class (#8637 -> #9119 version bumps -> #9778 new tags -> local tag drift), each patched with a new tolerance rather than removing the tag coupling. Fix: the committed snapshot-registry + release-mapping ARE the released history; trust them instead of re-deriving from tags. - releasedHistoryFromCommitted() seeds generation from the committed ledger, dropping the floating unreleased tail (entries beyond what the mapping names). verify and --write are now pure functions of working-tree bytes with zero tag access. The tag walk survives only behind --rebuild-from-tags (disaster recovery), off the everyday path. - --release <version> + appendReleaseRow() perform the O(1) append of one mapping row at release cut (dedupes vs the last row, strips the v-prefix) -- the single authoritative point where working-tree bytes become an immutable released revision. - release-cut.yml runs generate --release "$VERSION" before the release commit (Node built-ins only, no install needed); pr.yml drops fetch-depth: 0 from the lint job since verify no longer needs tag history. Recognition is unaffected: the runtime uses knownSnapshots = registry.skills (all entries, incl. the tail committed at PR-merge time), so a missing mapping row only loses a version label, never recognition or the update nudge. Trade-off: lint no longer cross-checks committed historical snapshots against tags. A hand-edit to an old released entry is still caught by the runtime manifest<->registry consistency check when the current manifest points at it, and can be audited anytime with --rebuild-from-tags. Verified: verify passes committed-sourced; --write is zero-diff (byte parity); a planted stray v-tag no longer changes output; edit-stub -> --write -> --release appends the correct single row; double --release is idempotent; --rebuild-from-tags reproduces the committed artifacts. Generator tests 14 pass/ 1 skip; runtime skill-bundle-artifacts + freshness-inventory 14 pass; bundled skill guides verify passes. * fix(skills): keep one release-mapping row per version on a re-cut A cut that pushed the version bump to main but died before pushing the tag is re-cut at the same version. If skills changed in between, the second --release appended a duplicate row, and the stale one named revisions that tag never ships — which verify-skill-update-roundtrip then pairs with the tag's real bytes. Overwrite the trailing row instead (the tag is absent, so that version was never published). Refuse only when an earlier row claims the version, which the cut workflow already rejects upstream, so this cannot wedge a recovering cut.
* Add safe skill freshness detection * Accept observed copy-mode rail outcomes * chore(skills): regenerate snapshot artifacts for the merged guide content The rebase onto main picked up the reviewed guide fixes (stablyai#8624), so the current manifest hashes and a new appended snapshot generation must match those bytes; the registry keeps all prior snapshots so existing installs classify as outdated rather than unrecognized. * fix(skills): canonicalize snapshot file order and guard released history Historical snapshots kept git ls-tree byte-order while the working-tree walk and runtime observation use the sorted depth-first order, so any future multi-file skill would misclassify older installs as unrecognized and churn spurious registry revisions; all producers now share one canonical order (no digest changes for today's single-file packages). Also rejects executable files from shipped skills (Windows observation cannot see execute bits, which would misclassify pristine Windows installs) and adds an explicit append-only invariant for released snapshots so a generation-logic change cannot rewrite them silently. * fix(skills): throttle focus rescans and correct self-blocked placement copy Every window focus re-read and re-hashed all installed packages, and the nudge and panel each forced their own trailing rescan for one event; a 15s cooldown plus a shared invalidation latch keep one bounded scan per event while install-change events stay immediate. Bundle artifacts are now loaded once per run instead of re-parsed on every scan. A read-only or otherwise unsupported outdated placement now explains that it blocks itself instead of blaming a phantom sibling placement; the supported topology set moved to shared so eligibility and copy cannot drift. * feat(skills): move freshness surfacing to a lingering toast and update modal The Skills page has been unreachable since its toolbox menu entry was removed (stablyai#4535), so surfacing freshness there buried the feature behind its own nudge. The nudge now lingers until acted on (ignoring it records nothing; only the explicit close persists dismissal keys) and opens an update modal hosting the pre-filled editable terminal, an honest current/blocked summary, and the per-placement rows in a collapsed Details section. A compact 'Check for skill updates' row in CLI settings is the manual re-entry point. Skills page restored to main; design-doc surfacing section records the venue decision. * fix(skills): mount update dialog inside the link-routing provider and fold freshness into the setup rails The dialog hosts a live terminal pane that requires the link-routing preference context; mounted outside the provider it crashed the renderer the moment an eligible update existed (caught by live QA — unit tests mock the terminal). It now mounts inside the provider behind its own recoverable boundary. The separate 'Check for skill updates' settings button is gone: the setup rails' own pill now carries freshness (Update available / Up to date, falling back to Installed for blocked or unrecognized copies and for non-local runtimes the local-only scan cannot vouch for), and Re-check refreshes both installation detection and the freshness inventory. Wired for the CLI, Orchestration, Computer Use, and Per-Workspace Environments rails. * fix(skills): use the sleek scrollbar style in the update dialog * chore(skills): regenerate manifest for merged main (v1.4.142-rc.1) Main advanced to 1.4.142-rc.1 with a v1.4.141 release, so the embedded appVersion and release mapping were stale on the PR's merged tree. Only appVersion and the new release entry change; no snapshot digests move (released history preserved). * fix(skills): bound and batch freshness work * fix(skills): harden freshness integrity checks * fix(skills): accept observed copy topology outcomes * chore(skills): regenerate manifest for current main * fix(skills): preserve update terminal lifecycle * chore(skills): regenerate manifest for current main * fix(skills): fail closed on stale freshness scans * chore(skills): regenerate manifest for current main * fix(skills): preserve freshness safety under focus churn * feat(skills): group the update modal by skill with plain-language status The Update skills modal now lists only skills that will update or that can't (with why), grouped by skill with their install locations nested underneath — no more one row per placement. - Statuses collapse to "Update available" / "Can't update" at the skill level. - A location's problem is a chip (Duplicate, Unrecognized, Inaccessible, Read only, In a repo, External/Broken link, Plugin cache) with a hover tooltip that explains what it means for the user and what to do. - Up-to-date, unrecognized-only, and unreadable-only skills are hidden; a current/unrecognized/etc. location only appears when it explains a shown skill. - Copy is de-jargoned (drops "copy"/"placement"/"snapshot"/"official copy") and names the mechanism as the npx skills update command, not "Orca's update". - Rename the section to "Update details"; drop the unreachable newer-known state. Renderer-only: derivation is a pure module (groupSkillFreshness) with unit tests; no IPC or main-process change. Locales updated for all five languages. * chore(skills): regenerate manifest for current main (v1.4.143-rc.0) * feat(skills): don't let a duplicate block the update; clearer skipped copy - Eligibility: a clean standalone duplicate no longer poisons the whole name — the canonical copy still updates and the duplicate is flagged; a duplicate-only skill stays unoffered. - Update modal: "Can't update" -> "Skipped" with a reason-specific sentence (edited/read-only/in-a-repo/plugin/link); chips describe only the location state; footer "Check now" -> "Re-check". - Settings sidebar nav pills go amber "Update available" when a skill is updatable, matching the setup cards. - Localized new strings across en/es/ja/ko/zh. * chore(skills): regenerate manifest for merged main (v1.4.144-rc.1)
…lyai#10340) * fix(skills): source released history from the committed ledger, not a tag walk verify:skill-bundle-manifest rebuilt the entire released-skill history by walking every local refs/tags/v* on each run and demanded byte-equality with the committed artifacts. Output was therefore a function of (skill bytes x local tag set x release timing), so any clone holding stray, deleted, or fork tags the committed artifacts predate rebuilt a divergent registry and failed lint. This was the 4th instance of one failure class (stablyai#8637 -> stablyai#9119 version bumps -> stablyai#9778 new tags -> local tag drift), each patched with a new tolerance rather than removing the tag coupling. Fix: the committed snapshot-registry + release-mapping ARE the released history; trust them instead of re-deriving from tags. - releasedHistoryFromCommitted() seeds generation from the committed ledger, dropping the floating unreleased tail (entries beyond what the mapping names). verify and --write are now pure functions of working-tree bytes with zero tag access. The tag walk survives only behind --rebuild-from-tags (disaster recovery), off the everyday path. - --release <version> + appendReleaseRow() perform the O(1) append of one mapping row at release cut (dedupes vs the last row, strips the v-prefix) -- the single authoritative point where working-tree bytes become an immutable released revision. - release-cut.yml runs generate --release "$VERSION" before the release commit (Node built-ins only, no install needed); pr.yml drops fetch-depth: 0 from the lint job since verify no longer needs tag history. Recognition is unaffected: the runtime uses knownSnapshots = registry.skills (all entries, incl. the tail committed at PR-merge time), so a missing mapping row only loses a version label, never recognition or the update nudge. Trade-off: lint no longer cross-checks committed historical snapshots against tags. A hand-edit to an old released entry is still caught by the runtime manifest<->registry consistency check when the current manifest points at it, and can be audited anytime with --rebuild-from-tags. Verified: verify passes committed-sourced; --write is zero-diff (byte parity); a planted stray v-tag no longer changes output; edit-stub -> --write -> --release appends the correct single row; double --release is idempotent; --rebuild-from-tags reproduces the committed artifacts. Generator tests 14 pass/ 1 skip; runtime skill-bundle-artifacts + freshness-inventory 14 pass; bundled skill guides verify passes. * fix(skills): keep one release-mapping row per version on a re-cut A cut that pushed the version bump to main but died before pushing the tag is re-cut at the same version. If skills changed in between, the second --release appended a duplicate row, and the stale one named revisions that tag never ships — which verify-skill-update-roundtrip then pairs with the tag's real bytes. Overwrite the trailing row instead (the tag is absent, so that version was never published). Refuse only when an earlier row claims the version, which the cut workflow already rejects upstream, so this cannot wedge a recovering cut.
Summary
This is PR 2 of the staged skill-freshness rollout. It is intentionally stacked on #8624 and does not change any distributed skill package.
It adds a read-only inventory that compares installed Orca skill packages with generated identities for current and historically released official snapshots. The Skills page reports each observed placement as
current,outdated,newer-known,unrecognized, orinaccessible, while keeping unsupported placements visible and non-actionable.When a skill name is provably safe across every observed placement, Orca can open an editable terminal draft containing only:
Orca never submits that command, never writes to skill directories, and re-checks observed bytes after the terminal exits or the app regains focus.
Safety model
Eligibility is name-scoped, not row-scoped:
The detector uses LF-normalized identity for non-executable UTF-8 text and exact bytes for binary or executable files. Package observation, plugin-cache traversal, candidate count, file count, depth, per-file bytes, and total retained bytes are bounded. Runtime/SSH repos are excluded from the local-host inventory.
The update command is explicit, sorted, name-scoped, global-only, shell-name constrained, pre-filled visibly, and never auto-run. Dismissed toast tuples are only
(physical identity, skill name, bundled revision)presentation state; they grant no ownership or write authority.There is no ownership ledger, adoption flow, background updater, transactional writer, rollback engine, or automatic mutation. #8496 remains an archive/reference for that retired design and is not part of this implementation.
Generated identity artifacts and packaging
resources/skills/contains generated build-matched metadata:The generator derives history from release tags plus current
skills/bytes. PR CI fetches full tag history and rejects stale generated output. Packaged apps ship only these identity artifacts as resources; the fat skill packages remain repository content and are not duplicated into the app for freshness detection.Real update-rail contract
A separate required workflow exercises historical fat installs through the real ecosystem update command on macOS, Linux, and Windows with LF/CRLF and provider symlink/copy shapes.
Empirical results define the eligibility boundary:
[email protected]failed provider-alias convergence;[email protected]reliably updates the canonical global copy and provider aliases;[email protected]independent-copy behavior is environment-dependent: equivalent local runs left the provider copy historical while hosted macOS/Linux runs converged it.Accordingly,
1.5.17is the pinned minimum validated version. Because an independent copy's convergence is not deterministic it no longer blocks the whole name — the canonical copy still updates and the duplicate row is flagged as one the command may not reach, so the user can remove or update it separately. Provider aliases are a required positive assertion. Copy jobs accept only two honest byte outcomes—unchanged historical or exact current—and fail on any partial/unrecognized mutation. The workflow also verifies that a non-targeted Orca skill remains untouched. A latest-version probe is informational so upstream drift is visible without silently broadening the safe topology.Full rollout plan
This is five implementation stages, not seven simultaneous PRs:
orca skills list/getserving while distributed skills remain fat. It must merge and release first.orca, Linux/WSLorca-ide, managed-terminal/SSHorca, andorca-dev, including old-binary fallback, task success, and token cost.orca-climigration PR: convert onlyorca-clito a hybrid bootstrap-plus-pointer stub. Cut an RC and perform the final thinning in this same PR before stable only if the measured gates pass; otherwise keep the hybrid form.No stub PR should merge before a public guide-serving binary exists because the ecosystem installer reads repository content independently of the desktop release train.
Verification
pnpm lintpnpm run typecheckpnpm run verify:skill-bundle-manifestpnpm run verify:bundled-skill-guides[email protected]symlink convergence probe[email protected]CRLF independent-copy behavior probegit diff --checkPost-rebase review and hardening (2026-07-14)
After #8624 merged, this branch was rebased onto
main(dropping the three superseded stacked guide commits), the snapshot artifacts were regenerated against the merged guide bytes (additive-only registry delta, preserving all released snapshots), and a three-lane AI review (design-semantics, perf/regression, mechanical) plus live Electron QA ran against the result. Fixes landed from that review:008a20d0d): historical snapshots keptgit ls-treebyte-order while the working-tree walk and runtime observation use the sorted depth-first order. Index-based snapshot matching would have misclassified every older install of a future multi-file skill asunrecognizedand churned spurious registry revisions. All producers now share one canonical order (zero digest changes for today's single-file packages), with an ordering-parity regression test.008a20d0d): Windows observation cannot see execute bits, so the first executable file shipped in a skill would have silently misclassified every pristine Windows install. The generator now rejects executable files in shipped packages.008a20d0d): the design's append-only registry contract is now an explicit check — regeneration fails loudly if a generation-logic change would rewrite any released snapshot, while the one unreleased working-tree append per skill stays legitimately mutable.29fd88ad1): every window focus re-read and re-hashed all installed packages, and the nudge and panel each forced their own trailing rescan per event. A 15s cooldown plus a shared invalidation latch keep it to one bounded scan per event; install-change events remain immediate. Bundle artifacts (~68KB JSON) now load once per run.29fd88ad1): a read-only (or otherwise unsupported) outdated placement reused the "another placement of this name prevents a safe global update" string, blaming a phantom sibling. It now explains that this placement itself cannot be updated safely in place, in all five locales, and the supported-topology set moved toshared/so eligibility and copy cannot drift.Known accepted limitations (flagged, intentionally not changed):
newer-knownis structurally unreachable with shipped artifacts (current is always the registry tail, so genuinely newer copies classifyunrecognized— still safely poisoned and informational); Windows NTFS-ACL write-denial is not detected asread-only(access(W_OK)only sees the read-only file attribute — a blocked update re-surfacesoutdatedhonestly via the byte re-check); the roundtrip workflow's pinned jobs depend on npm/GitHub availability (it is not a required check today; keep that in mind before requiring it).Live Electron QA — skill install topology matrix
An automated QA agent drove the real dev app (CDP attach) under scratch
HOMEs containing fixture installs built from genuine registry byte generations, and verified every row in the rendered Skills page UI. All scenarios passed; no crashes, no freshness console errors, focus rescans visually instantaneous.outdated, eligibleunrecognized, poisonscurrent, not offeredoutdatedvia normalized identity~/.grok/skills)~/.gemini/skills).geminirow flagged Duplicateexternal-link, informationalinaccessible/broken linknpx skills update orca-cli orca-emulator orca-linear --global, pre-filled, never auto-runchmod 555on an eligible canonical dir, refocuschmod 755npx skills update orca-cli --globalun-executedcurrent, eligible empties (bytes decide)Venue update (2026-07-14): lingering toast, update modal, freshness-aware setup rails
The freshness UI originally mounted on the Skills page — which turned out to be orphaned UI: its only entry point (the sidebar toolbox menu) was removed by #4535 on 2026-06-02, leaving the page unreachable. Product decision: surface freshness where users actually are. Landed in
dc91b70ef+f098a496d:npx skills update … --globalterminal (never auto-run), an honest summary (updatable / all-current / blocked), and the per-placement diagnostic rows in a collapsed Details section that auto-expands when something is blocked. Closing it or the terminal exiting re-inventories; bytes decide.Live Electron QA round 2 caught one P1 before it shipped — the modal initially mounted outside
LinkRoutingPreferenceDialogProvider, crashing the renderer exactly when an update existed (its terminal pane needs that context; unit tests mock the terminal). Fixed and re-verified: all scenarios pass, zero crash reports, zero console errors.Update (2026-07-16): a duplicate no longer blocks the whole skill
Refinement to the eligibility model: a clean standalone independent copy of a skill no longer poisons the whole name. The canonical copy still updates via the pre-filled command, and the duplicate placement is flagged ("Duplicate") with a tooltip noting the command may not reach it — remove it, or update it separately. A skill that exists only as a standalone copy stays unoffered (no reliably-convergent target for the global command). Data-loss topologies (unrecognized, read-only, etc.) still poison as before. Copy also updated: the modal footer reads Re-check (was "Check now"), a blocked group reads "…so it was omitted from the update command," and the Settings sidebar-nav pills now go amber Update available when a skill is updatable (matching the existing setup-card pills). Screenshots below reflect this behavior.
Screenshots (current UI, at
190a6745d)1. The lingering toast — names the out-of-date skill(s) and offers "Update skill"; persists with no auto-close until dismissed or the modal is opened
2. The Update skills modal — grouped by skill.
orca-cliis "Update available": its main copy updates and the standalone.geminiduplicate is flagged (a duplicate no longer blocks the whole skill).orchestrationis "Can't update" because a locally-modified copy is unrecognized. Only eligible names go in the pre-fillednpx skills update orca-cli --global; each location's chip has a plain-language tooltip.3. Settings → Orca CLI rail — the pill reads "Update available" (amber) (setup-rail pills unchanged in this pass)
4. After overwriting the install with current bytes and clicking Re-check — the pill flips to "Up to date"
5. The rail's own Update button — opens its inline terminal with the runtime-aware per-skill command, not executed
6. Up-to-date state — once every installed skill matches the current version, the modal shows "All installed Orca skills are up to date" with no terminal
Copy refined since these screenshots (behavior unchanged)
The wording for a skipped skill was tightened after the shots above, so screenshot #2 shows the older text. What changed:
orchestration): "The copy here doesn't match the official version — it may be modified, or a different skill with the same name. Orca left it out of the update so it won't overwrite it. Remove it if you want Orca to update this skill." Read-only, in-a-repo, plugin, and link cases each get their own accurate line.