Skip to content

feat(gc): reclaim stale cache key schemas - #773

Draft
jleni wants to merge 1 commit into
mainfrom
feat/reclaim-stale-key-schemas
Draft

feat(gc): reclaim stale cache key schemas#773
jleni wants to merge 1 commit into
mainfrom
feat/reclaim-stale-key-schemas

Conversation

@jleni

@jleni jleni commented Aug 18, 2026

Copy link
Copy Markdown
Member

Closes #750

Summary

  • record the cache-key recipe version in entry metadata and the SQLite index
  • add explicit kache gc --stale-schema reclamation for older and unknown legacy entries
  • preserve schema provenance through imports and index rebuilds while leaving ordinary GC and upgrades non-destructive
  • reuse the GC lock, recent-access grace, and durable-upload pins during the sweep

Validation

  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • focused store migration, import, reclamation, and CLI tests
  • cargo fmt --all -- --check
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reclaim cache entries orphaned by a key schema change

1 participant