Skip to content

docs: drop stale docs/dev/cache-staleness.md - #2710

Merged
max-sixty merged 1 commit into
mainfrom
cache-staleness-doc
May 11, 2026
Merged

max-sixty merged 1 commit into
mainfrom
cache-staleness-doc

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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 (snapshot semantics, lifetime, construction) 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 references a batch_ahead_behind helper that's been replaced. The file was an island — no inbound links from code, tests, or other docs, and docs/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.

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]>
@max-sixty
max-sixty merged commit 12e2ee2 into main May 11, 2026
33 checks passed
@max-sixty
max-sixty deleted the cache-staleness-doc branch May 11, 2026 18:18
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.

2 participants