Repository navigation
fix(native): a new dependency cache deletes unreferenced caches at the 64-volume bound (HACK-2576) - #1138
fix(native): a new dependency cache deletes unreferenced caches at the 64-volume bound (HACK-2576)#1138roodboi wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it cannot read (HACK-2576) Independent review: only a volume the engine refuses to delete (in use) is kept, and one already gone frees its place; any other DELETE failure is reported instead of becoming a capacity refusal. The reference reader refuses non-file entries and too many entries in a run directory without a receipt, and takes the state root from the candidate. The docs say eviction goes in creation order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Ready for lead: #1138 (draft) at A check for the VM, in a throwaway home:
Order: next for me are the three plausible rows (native graph directories, the 64-image host cache, native environment records), each only where I can show a person reaches it, then HACK-2572's missing state. |
|
Lead read of c655875: accepted. Only this owner's dependency caches, only those no non-removed graph receipt, native-authored receipt, pending journal or quarantine record names (by exact quoted name), oldest created first, deleted without force so the engine keeps one a container uses, and an unreadable record refuses as before. No VM run for this one: reaching 64 caches on a VM takes 64 dependency installs, and every rule above is decided offline and tested. The VM checks for #1136 (66 removed runs) cover the shared admission path. 🤖 Generated with Claude Code |
HACK-2576, second PR, part 2: the 64-cache-volume dead end from the audit.
Before:
releasedand never deletes it.graph_cache_capacityfor ever.Now:
check_cache_capacitydeletes cache volumes that nothing refers to, oldest created first and with no force, until there is room. It runs under the start's provider lease.cache_retention::references):removed, or its pending journal;graph_data_missing, so those are exactly the records that can need one.Review: one reviewer (a Claude subagent, read-only), one round. Nothing serious; four minor points, all fixed:
read_treewas lenient with what it couldn't read;It also traced every place a cache volume name is persisted, and found none that
referencesmisses.Tests (Linux):
Gaps: nothing exercises
check_cache_capacityagainst an engine, and there is no restore-after-eviction test.Clippy is clean on Linux and
aarch64-apple-darwin --all-targets.Docs: the guide's dependency cache section is updated.
SVG · source
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.