docs(design): adaptive client cache eviction policy (#23)#322
Merged
Conversation
Specify the automatic, bounded client cache the issue asks for: cache recently-viewed assets, evict least-recently-accessed first, and within a sweep evict in tier-size order (original -> preview -> thumbnail), leaving the metadata/LQIP tier effectively never reclaimed. Extends the existing owner docs rather than adding a new one (SSoT): - filesystem/client.md Space Recovery: split into automatic cache management (budget, recency promotion, LRU, tier order, pin exemption) and user-driven reclamation; add unit validation cases. - import/download-sync.md: cross-link recently-viewed retention to the owner. - DEFERRED.md: record that the policy is specified but implementation is deferred, with its capsule-core::db / capsule-sdk seam. Implementation deferred per the issue's updated scope (documentation only).
Deploying capsule with
|
| Latest commit: |
9be8350
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://567d24fe.capsule-22k.pages.dev |
| Branch Preview URL: | https://docs-adaptive-sync-23.capsule-22k.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents the adaptive client-side caching / eviction policy requested in #23. Per the maintainer's updated scope on that issue, this is documentation only — implementation is deferred.
The three asks from #23 are now explicitly specified:
Approach
Extends the existing owner docs rather than adding a new one, to respect the repo's Single-Source-of-Truth rule (
filesystem/client.mdalready owns "space recovery";download-sync.mdowns tiered fetch + connectivity adaptation). No new SSoT owner row, no module-map change.design/filesystem/client.md— "Space Recovery" split into Automatic cache management (user-configurable budget, recency promotion, LRU eviction, tier order within a sweep, pin exemption, transparent re-fetch) and User-driven reclamation. Adds four unit-tier validation cases.design/import/download-sync.md— "Prefetch and Frugality" cross-links recently-viewed retention to the owner doc (mechanism mention only; no restatement).DEFERRED.md— records the policy as specified-but-not-implemented, with its seam (capsule-core::dblast-access tracking +capsule-core::librarysweep, driven bycapsule-sdkconnection-class detection).Verification
astro buildpasses; starlight link validator reports all internal links valid (46+ pages).filesystem/client.md;download-sync.mdlinks to it.Refs #23 (left open to track implementation).