Repository navigation
Conversation
Signed-off-by: j-ctang <272994374+j-ctang@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: j-ctang/claude-code-jev-prune/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
71944c34-e860-47a3-ade7-e2d1d3be9e8a
📒 Files selected for processing: 2
src/services/relevanceScorer.tstest/jevService.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
| if (this.cache.size < 500) { | ||
| this.cache.set(JSON.stringify([goal, toolUseId]), score); | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Evict the oldest score before inserting a new one.
After 500 distinct goal and tool-use ID pairs, this condition rejects every new score. Later calls for those pairs ask TypeSafe again. When the cache is full, delete its oldest entry and insert the new score. Extend the size-bound test to confirm that a recent entry is reused after eviction. citeturn0search0
|
Verdict: Changes needed Review tier: S
Follow-ups (outside this PR):
|
|
Reviewer evaluation PR. Closing without merge. |
Closes #32
Risk: risk:feature
Summary
JevRelevanceScorerkeyed by goal andtool_use_id.npm run checkpasses.Commit History
Sensitive Changes
None.
Rollback
git revert <merge-sha>Summary by CodeRabbit