Repository navigation
perf(skills): reuse the installed security scanner in the install preview - #977
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
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. |
…and share the cache layout
777genius
marked this pull request as ready for review
November 17, 2026 12:49
|
Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here. So far, Strix has reviewed 392 pull requests, surfaced 113 security issues (1 critical/high) and blocked 3 risky merges across this workspace. |
777genius
added a commit
that referenced
this pull request
Nov 17, 2026
Preserve the reviewed Windows Gemini producer-path correction, typed retention refusal, LF fixture and bounded failure diagnostics. Carry the five already merged #976/#977 catalog and scanner files unchanged. This composition remains unpublished pending the current CI wave; source review does not establish native execution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every Skills install planned its security scan with a scanner rooted in a fresh temporary directory, so the 2.8 MB lintai archive was downloaded from GitHub releases again on every run (about 9 s at the speed measured here), even when the scanner was already installed in the persistent cache.
The preview scanner now also consults the persistent cache read-only (new
ReleaseScanner.ReadOnlyRoot): an installed scanner is reused, nothing is ever written to that cache from a preview (the existing no-persistent-change-before-approval invariant stays), and a miss downloads into the temporary root exactly as before. The first install on a machine is unchanged; later ones skip the download.Measured on
skills add anthropics/skills --skill pdf --skill docx --skill xlsx --target claude,codex --yesin an isolated HOME with the scanner already cached, alternating old and new three times: total 42/39/63 s before, 34/35/46 s after (plan phase 31/29/53 s -> 21/26/36 s). Network noise is large, the direction held in every pair.Tests: securityscan with -race (reuse without download or writes, and fallback when the shared cache is empty); cli/cmd/agentplugins security/dry-run/compose tests pass locally. test-core is currently red on main from #972 (TestClientIDBudgetDoesNotGrow), unrelated to this change.