A pure package for the content-named store layout: a chunk is named by
its index and the SHA-256 of its bytes and lives under
pool/<index/10000>/; a manifest is split into one segment per shard
(seg/<shard>-<sha256>) and a root naming them (root/<sha256>). Encodings
are canonical: decoding refuses any bytes Encode would not write, so an
object has one encoding and one name. Present and MissingOwn look names
up only: an entry that exists is complete, and a failed lookup is an
error, never absent. Nothing uses the package yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A source scan lists every non-test function in core/ and cmd/ that reads
a volume's HEAD (ReadHead, GetHead, GetHeadRoot, getHeadRoot, headExists,
or a LookupEntry of HEAD) and fails when a reader is added or removed
without classifying it. Each reader names what it does when HEAD is
absent and the probe that pins it; readers that take an absent HEAD for
an empty one are marked GAP, so a change to that behaviour flips their
probes on purpose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A trace-driven matrix: each command is run once through a recording
filer to enumerate its filer writes (its step boundaries); then for every
write it is killed before the write reaches the filer and after it
applied with its reply lost, the catalog restarted, and the command
re-run (twice) with the same request id. The end state and the data are
checked: the volume deleted and refused, or the fork's or restore's
image reading back byte for byte. A killed fork's copy intent may outlive
the replay; the test checks it is that request's and that the copy sweep
past the deadline settles it with the image intact. A step added to a
command is covered without editing the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A delete admitted as never started that stopped before it marked HEAD,
after which the holder claimed HEAD, was refused at the master on every
rerun, before the catalog step that gives the reservation back: the
volume stayed reserved for ever. A rerun whose token already holds the
reservation (or a committed one) now skips the verdict; the catalog
step's HEAD fence refuses the live HEAD and gives back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The HEAD reader refused a deleting, purging or deleted HEAD as invalid,
so a never-started delete whose commit timed out (or whose mark's outcome
was unknown) was refused on every re-run: the volume stayed unusable and
undeletable. Such a HEAD can no longer be claimed, so it is past the
fence: the reader returns it with ErrWorkspaceHeadDeleting and the
verdict admits it (HolderDeleting).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adopting the master's assignment comes before the HEAD claim; a start
that adopted and then lost the HEAD race to the delete never served.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The master's HEAD reader refused the initial HEAD (epoch 0, no holder) as
invalid, so the delete saw every never-started line as unreadable. It now
returns that HEAD with ErrWorkspaceHeadUnclaimed: every caller that needs
an identity still gets an error; the delete evidence reads it as epoch 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TERM-LIVE-HOLDER-001 (the one verdict), INV-WS-DELETE-NO-LIVE-HOLDER-001
replacing INV-WS-DELETE-NEEDS-ACK-001 (ARCHIVED with its reason), and the
M2 'none, Granted or Expired -> Deleting' transition.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>