Repository navigation
fix(skills): invalidate registry cache on content changes - #306
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe registry schema advances to version 7. Skill fingerprints now include SHA-1 content hashes and record unreadable files. Tests verify regeneration after same-size rewrites that preserve modification times. ChangesSkill registry fingerprinting
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
6073948
into
Gentleman-Programming:main
|
Merged. Verified the RED empirically: with only the Measured cost of the content hash on the previously stat-only cache-hit path: ~2.1 ms → ~12.1 ms over 194 real skill files (1.2 MB), per session start and per watcher debounce. Worth it for the correctness. Two optional follow-ups if you want them (not blocking, deliberately left as-is):
Thanks 👏 |
Summary
SKILL.mdcontent hash in the registry fingerprint.Advances #256 (track 7 of 10, skill fingerprint slice). Does not close #256.
Review path
extensions/skill-registry.tsfor the single-cache content fingerprint and schema bump.tests/skill-registry.test.tsfor the same-path, same-size, restored-mtime regression.Verification
git diff --check: passedScope
This PR covers only the content-fingerprint slice of issue #256 track 7. The delegated
Key Learningsclosing contract remains a separate rollback boundary and is intentionally out of scope.Summary by CodeRabbit