agentleFS
blas1nblas1n/claude-skills/skills/a-cache-keyed-by-immutable-input-never-receives-the-parser-fix/SKILL.md

a-cache-keyed-by-immutable-input-never-receives-the-parser-fix

Skill2 starsChanged 59 days agoNo licenceView on GitHub

파생값(추출 텍스트·파싱 결과·임베딩·썸네일)을 **원본 식별자만으로** 캐시하면, 원본이 진짜 불변이라 `if cache.exists(): read` 가 완벽히 옳아 보인다 — 그런데 **파생 코드를 고치면 그 수정은 디스크에 이미 있는 행에 영원히 도달하지 않는다.** 머지·배포·CI 전부 초록이고, 테스트는 자기 픽스처를 만들어 쓰니 통과하고, 프로덕션은 옛 출력을 계속 서빙한다. 더 나쁜 건 신규 항목만 새 버전으로 들어와 **캐시가 두 파서 버전으로 섞이는** 것이다. 캐시 키에 **파생자 버전**을 넣고, 센서는 "코드가 배포됐다"가 아니라 **새 버전으로 생성된 행 수 / 전체**다. 트리거 - 추출기·파서·정규화 로직 수정, `risk_factors/{id}.txt` 처럼 원본 id 로만 키잉된 디스크 캐시, "입력이 불변이니 무효화가 필요 없다"는 주석, 파서를 고쳤는데 프로덕션 지표가 안 움직임, 백테스트가 캐시된 파생값을 읽는 구조.

The file

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.