Skip to content

test(skills): cover updates for locked older snapshots - #27478

Closed
lorenzozanee wants to merge 1 commit into
stablyai:mainfrom
lorenzozanee:fix/skill-26841-lock-snapshot
Closed

lorenzozanee wants to merge 1 commit into
stablyai:mainfrom
lorenzozanee:fix/skill-26841-lock-snapshot

Conversation

@lorenzozanee

Copy link
Copy Markdown
Contributor

ELI5

When an older official skill snapshot matches the updater lock, Orca should still offer its update. This test pins that existing behavior. It does not reproduce the reported Windows installation issue or establish its root cause.

What Changed

Adds an inventory test for an older official snapshot whose tree matches the updater lock. It checks that the skill remains outdated, is eligible for update, and displays update-available.

Why

The current implementation already handles this lock-matched snapshot. The added test protects that case without changing runtime behavior. The reported executable, lock contents, and installed tree were unavailable, so this PR does not claim to repair the reported installation.

Linked Issue

Fixes #26841

Visual Proof

N/A. This is a test-only change with no visual or interaction change.

Testing

  • node_modules/.bin/vitest run --config config/vitest.config.ts src/main/skills/skill-freshness-inventory.test.ts src/main/skills/skill-package-identity.test.ts — 46 tests passed.

  • git diff --check — passed.

  • The reported Windows installation behavior was not reproduced.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

OpenAI Codex (GPT-6) assisted with review and PR preparation.

Review

Reviewed the single added fixture and its assertions. The test uses the existing inventory helpers and platform-aware path utilities. No production, UI, SSH, agent-integration, or remote behavior changes; no security or performance impact is expected from this test-only change. Windows runtime behavior remains unverified.

Agent skill upstream boundary

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

Notes

The full lint, typecheck, repository test suite, and build were not run.

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)

Author

GitHub: lorenzozanee
X: not linked on the GitHub profile

@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 860ed83a-e86c-43fa-a511-bad1dd5286f7

📥 Commits

Reviewing files that changed from the base of the PR and between e9279b6 and f32a047.


📒 Files selected for processing (1)
  • src/main/skills/skill-freshness-inventory.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.



📝 Walkthrough

Walkthrough

Adds a regression test for a lock-matched older official skill snapshot. The test checks that inventory marks the canonical copy as outdated at release revision 1, includes orca-cli among eligible updates, and reports update-available as its display status.


Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to f32a0

No actionable merge-blocking risk is established for this test-only change. Normal checks can proceed before merge.

Pre-merge checks | Passed 4 | Failed 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check Warning Issue #26841 requires a supported coding solution that realigns installed official skills with the bundled manifest revision. The PR adds only a regression test in skill-freshness-inventory.test.ts.… Implement at least one supported manifest-alignment path required by #26841, such as manifest-based install/update, an official repair/reset command, or automatic realignment during upgrade. Add automated coverage for the selected path and …
✅ Passed checks (4 passed)
Check name Status Explanation
Title check Passed The title clearly identifies the main change: adding skill update coverage for older locked snapshots.
Description check Passed The description is complete and focused. It explains the change, reason, linked issue, test-only scope, test results, unverified Windows behavior, and outstanding checks. It also includes the required…
Out of Scope Changes check Passed The whole PR changes only src/main/skills/skill-freshness-inventory.test.ts. The added fixture and assertions directly cover the lock-matched official snapshot behavior described in #26841. No unrel…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…

Full details: Linked Issues check

Explanation

Issue #26841 requires a supported coding solution that realigns installed official skills with the bundled manifest revision. The PR adds only a regression test in skill-freshness-inventory.test.ts. The test verifies that a lock-matched older snapshot is classified as outdated, remains eligible for update, and displays update-available. It does not change install or update behavior, add a repair/reset path, or add upgrade-time realignment. The reported mismatch between the updater source and current-manifest.json therefore remains unresolved.

Resolution

Implement at least one supported manifest-alignment path required by #26841, such as manifest-based install/update, an official repair/reset command, or automatic realignment during upgrade. Add automated coverage for the selected path and for the reported mismatch condition.


  • Fix all pre-merge checks with AI
  • 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.

@nwparker

nwparker commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded — the linked issue (#26841) has been resolved on main by #27603 (83056e5edb). Thanks for the contribution!

@nwparker nwparker closed this Nov 5, 2026
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",

2 participants