Cache eviction deletes unrelated JSON files

Open Beginner friendly
#55 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

Read src/llm/model-call-cache.ts:166-209 and trace how cache entries are selected for eviction. The in-memory filesystem probe described in the issue reproduces deletion of unrelated.json; use it to check the fix. Done means eviction only deletes files in the versioned cache-entry layout.

Written by the indexing model from the issue text.

Description

bug

Problem: A configured cache directory containing stale unrelated.json can select it for deletion even though it is outside the versioned cache-entry layout.
File:line: src/llm/model-call-cache.ts:166-209.
Evidence: In-memory filesystem probe captured the unrelated-file deletion call.
Suggested fix size: S.
Found during #44 (workstream C, challenged by @architect).

Dominant language
TypeScript
Stars
8
Forks
1
Avg merge
5m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 0xPolygon/codegenie

All issues in 0xPolygon/codegenie

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.