pingqiuandClaude Opus 5.5 68ddd3bd92 fix(storage): a chunk filled from HEAD is not a cut candidate while unchanged
A fresh-from-HEAD volume (a restore target) fills a chunk from HEAD on
read, but its owned-map entry stays UNKNOWN, so every filled chunk was a
cut candidate: the next cut re-read and re-hashed it locally only to find
HEAD's bytes. A target read back in full made its detach's final cut as
long as reading the whole volume, with nothing to upload.

fillOnce records the chunk's version when it filled the chunk wholly from
HEAD with no local block and no mutation during the fill; captureCandidates
does not count UNKNOWN alone for such a chunk while that version holds.
Memory only, reset by a BASE install; the UNKNOWN bits are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:48:00 -08:00
Languages
Go 84.6%
Rust 7.8%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%