Files
kandev/docs/plans/github-pr-review-rerequest/task-11-reclaim-cache-epochs.md
T
2026-08-24 11:09:03 +00:00

1.1 KiB

id, title, status, wave, depends_on, plan, spec
id title status wave depends_on plan spec
11-reclaim-cache-epochs Reclaim key invalidation metadata done 5
09-key-scoped-cache-invalidation
plan.md ../../specs/ui/requirements/github-pr-review-actions.md

Task 11: Reclaim Key Invalidation Metadata

Acceptance

  • Per-key invalidation still prevents affected stale fills and preserves unrelated fills.
  • Version metadata is retained only while an in-flight call can still write under that key; completed/high-cardinality invalidations do not grow an unbounded map.
  • Cache-wide clear() and repository-error del() semantics remain unchanged.
  • Deterministic race tests and a high-cardinality reclamation test cover the lifecycle.

Ownership

  • apps/backend/internal/github/ttl_cache.go
  • apps/backend/internal/github/ttl_cache_test.go
  • apps/backend/internal/github/service_request_review_test.go only if needed.
  • Task 11 status only.

Do not edit service/controller/client/frontend/E2E/docs/spec/plan.md.

Output contract

Use TDD, avoid sleeps, run race-enabled tests, report exact checks and compatibility risk, and set only this task file to done.