Repository navigation
docs: drop stale docs/dev/cache-staleness.md - #2710
Merged
Merged
Conversation
The doc proposed and analyzed six options for closing the ref-keyed cache staleness class; the codebase adopted Option 5 (`RefSnapshot`) in #2528 and extended it with the content-addressed `ahead-behind/` SHA cache in #2704. The structural contract now lives in `src/git/repository/ref_snapshot.rs` and the cache-kind landscape in `src/commands/list/collect/mod.rs`'s Caching section, both of which supersede what was in this file. What remained in the doc actively misleads: its `RepoCache` inventory table cites fields that no longer exist (`commit_shas`, `tree_shas`, `effective_integration_targets`, `integration_reasons`, `ahead_behind`, `head_shas`) and a `batch_ahead_behind` helper that's been replaced. The file was an island — no inbound links, and `docs/dev/` is not a Zola content directory so it was never published — so deletion is clean. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
May 11, 2026
This was referenced May 11, 2026
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.
The doc proposed and analyzed six options for closing the ref-keyed cache staleness class; the codebase adopted Option 5 (
RefSnapshot) in #2528 and extended it with the content-addressedahead-behind/SHA cache in #2704. The structural contract now lives insrc/git/repository/ref_snapshot.rs(snapshot semantics, lifetime, construction) and the cache-kind landscape insrc/commands/list/collect/mod.rs's Caching section, both of which supersede what was in this file.What remained in the doc actively misleads: its
RepoCacheinventory table cites fields that no longer exist (commit_shas,tree_shas,effective_integration_targets,integration_reasons,ahead_behind,head_shas) and references abatch_ahead_behindhelper that's been replaced. The file was an island — no inbound links from code, tests, or other docs, anddocs/dev/is not a Zola content directory so it was never published — so deletion is clean. Anyone curious about the original design debate can find it at the merge commit for #2528.