pingqiuandClaude Opus 5.5 173df33abd docs(design): how versions share chunks and how an old snapshot's data is freed
agent-workspace-design.md:
- section 3: a HEAD, a snapshot and a fork root are each a complete map
  (no backing chain, no per-layer bitmap); a cut uploads only changed
  chunks and rewrites only their segments; the dirty bitmap is local
  holder state, not part of a snapshot; a worked example (100 chunks,
  init, 20 rewritten, snap1: 120 objects, deleting init frees 20).
- section 6: the GC roots line now says what the code does: a deleted
  snapshot's attempt stays a root for one grace period after its delete
  time (Collector.snapshotAttemptHeads), then stops counting.
- section 6: freeing an old snapshot's data in three steps (delete the
  name, GC --apply with two marks a grace apart, SeaweedFS volume vacuum)
  with the timing at the default grace, and why GC uses a reachability
  mark rather than reference counts.

No invariant row changes (INV-GC-REACHABLE-001 already covers attempts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:04:50 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%