pingqiuandClaude Opus 5.5 9f597b111a chunkstore: attempt-scoped snapshot publication; fork HEAD tombstones
W5 ruling (2026-11-15 17:30Z), W2 part: a GC sweep settles a dead copy
attempt by claiming the operation's final publishing entry with an aborted
tombstone, and every attempt publishes to a target that is never freed.

- Snapshot: the name is taken by an exclusive name record
  snapnames/<name> {request, attempt}; the intent names the attempt
  (holder "snapshot:<vol>/<name>/<attempt>"); the snapshot is published by
  an exclusive create at snaps/<name>/<attempt>. A retry of the same
  request publishes to the same attempt path. List and Fork resolve names
  through the record and skip aborted or unpublished attempts.
  DeleteSnapshot marks the attempt deleting (or claims an unpublished
  attempt's path with a tombstone) and removes the name record, freeing
  the name; attempt paths are never removed, so a late insert always
  fails. Catalog.AbortSnapshot(vol, name, attempt) is the sweep's claim.
- Fork: the publishing entry is the target's HEAD. Catalog.AbortFork
  claims it with an aborted HEAD tombstone (state "aborted", gen 1, no
  chunks); a fork whose HEAD is a tombstone never attaches
  (fork_incomplete) and its replay is target_exists.
- The copy-intent deadline stays as metadata only.

A deleted snapshot no longer holds its name: it is no longer listed (even
with includeDeleting) and a fork of its name is snapshot_not_found; its
attempt entry stays for GC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:43:37 -08:00
Languages
Go 84.7%
Rust 7.7%
Shell 2.7%
templ 1.5%
Java 1%
Other 2.1%