Skip to content

chore(skills): remove scanner cache reset seam - #126199

Merged
steipete merged 1 commit into
mainfrom
test/remove-skill-scanner-cache-reset
Aug 19, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-skill-scanner-cache-reset

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a test-maintenance problem where the skill scanner exposed a production cache-reset API solely so tests could clear process-local caches, even though every directory fixture already uses a unique absolute temporary root.

Why This Change Was Made

Remove the test-only reset export and its redundant test calls. The bounded file and directory caches, 5,000-entry limits, cache keys, and invalidation behavior are unchanged; the explicit same-root cache behavior tests remain.

User Impact

No user-visible behavior changes. This removes an unnecessary test seam while preserving scanner cache behavior and coverage.

Evidence

  • node scripts/check-changed.mjs -- src/skills/security/scanner.ts src/skills/security/scanner.test.ts — passed.
  • Fresh Codex autoreview — clean, no accepted/actionable findings.
  • rg -n "clearSkillScanCacheForTest" --glob '!node_modules/**' . — no matches.
  • The scanner owner suite passed twice (42/42 each run) as part of the requested paired command.
  • The paired release scan currently exposes an unrelated origin/main baseline drift from fix(codex): stop sandbox processes surviving termination #125908: @openclaw/codex now includes src/app-server/sandbox-exec-server/sandbox-child.ts:44, which the reviewed-finding table does not yet list. This PR does not alter that package, test, or baseline.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 19, 2026 05:24
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 19, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready verification for exact head 3224a020527f93b7d9f9b247b22d38a822bc237f:

  • node scripts/check-changed.mjs -- src/skills/security/scanner.ts src/skills/security/scanner.test.ts passed.
  • node scripts/run-vitest.mjs src/skills/security/scanner.test.ts src/plugins/npm-install-security-scan.release.test.ts ran twice in fresh processes. The scanner owner suite passed 42/42 both times. The paired release suite passed 93/94 and reproduced the same current-main reviewed-finding drift introduced by fix(codex): stop sandbox processes surviving termination #125908 at @openclaw/codex:dangerous-exec:src/app-server/sandbox-exec-server/sandbox-child.ts:44; this PR does not touch that package, test, or baseline.
  • Fresh Codex autoreview reported no accepted/actionable findings.
  • Exact-head required CI passed in https://github.com/openclaw/openclaw/actions/runs/32219281473.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 126199 passed in hosted_exact_or_recent_parent mode, reusing the exact-head hosted gates; no separate Testbox lease was needed.
  • Native review artifacts validated with READY FOR /prepare-pr, zero findings, production LOC +0/-5, and tests +2/-13 after required formatting.

ClawSweeper's exact review worker completed successfully, but its publisher skipped and left the started placeholder unchanged, so it published no Rank-up moves. No proof gaps affect the two-file cache-reset deletion itself.

@steipete
steipete merged commit 95ac5b2 into main Aug 19, 2026
281 of 285 checks passed
@steipete
steipete deleted the test/remove-skill-scanner-cache-reset branch August 19, 2026 05:35
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant