fix: prune removed capability entries from pharn.records.json - #92
Conversation
remove left records describing deleted files until the next update; prune by key prefix so already-gone dirs are cleaned too. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reached
Next review available in: 2 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (17)
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 |
Summary
pharn removenow prunes that capability’s entries frompharn.records.json(key-prefix filter), so records no longer describe deleted files until the nextupdate.add’smergeCapabilityRecordsguard: absent/corrupt/stale-stamped stores are left byte-identical (never minted or blessed); no-match skips the write.remove,pharn-records),CHANGELOG, andCLAUDE.mdupdated; tests cover prune, already-gone, and leave-store-alone paths.Test plan
npm test(or at leastnpx vitest run tests/remove.test.ts)pharn remove <name>→ confirm matching keys gone frompharn.records.jsonand stamp unchangedMade with Cursor