Skip to content

perf(skills): reuse the installed security scanner in the install preview - #977

Merged
777genius merged 2 commits into
mainfrom
perf/reuse-lintai-cache-in-preview
Nov 17, 2026
Merged

777genius merged 2 commits into
mainfrom
perf/reuse-lintai-cache-in-preview

Conversation

@777genius

Copy link
Copy Markdown
Owner

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 --yes in 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.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 04de8ab and ba0acc1.

Files selected for processing: 3

  • cli/cmd/agentplugins/compose.go
  • install/integrationctl/agentplugins/adapters/securityscan/release.go
  • install/integrationctl/agentplugins/adapters/securityscan/release_retry_test.go
  • 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

@777genius
777genius marked this pull request as ready for review November 17, 2026 12:49
@strix-security

Copy link
Copy Markdown

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
777genius merged commit d8fcbf0 into main Nov 17, 2026
43 of 80 checks passed
@777genius
777genius deleted the perf/reuse-lintai-cache-in-preview branch November 17, 2026 12:49
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.
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.

1 participant