pingqiuandClaude Opus 5.5 dfc8f19ef1 volume delete: master admission, one HEAD linearization point
(a) Admission at the master: LifecycleService.MarkVolumeDeleting holds
    workspaceMu (every assignment, placement and binding write) and marks
    VolumeRecord.Deleting inside RecordWorkspaceDeletion's check (refused
    with live authority without a clean revocation ACK, a pending move or
    a queued placement). Afterwards publication admission, the placement
    reconciler, the workload planner, binding/placement/move RPCs and
    CreateVolume refuse the volume.
(b) One HEAD write from the HEAD read (active or detached, not held) to
    state deleting, chunks kept. Every read decides "held" afresh.
    ChunkRemote.CASHead refuses to move a deleting or deleted HEAD
    (ErrChunkHeadPrecondition + ErrChunkHeadDeleted), so no attach,
    claim or restore revives it; EnsureVolume refuses it; Fork and
    CreateSnapshot check the volume again after taking their claim/name
    and back out.
(c) Claims read after (b): a live claim reverts HEAD (detached or
    active, as before) and refuses with snapshot_claimed.
(d) Then every snapshot name, published or not (an unpublished attempt
    gets an aborted tombstone), goes through markDeleting and is freed;
    the fork claim is released and reported only when confirmed.
(e) HEAD becomes deleted (no chunks), VOLUME is marked deleted.

A failed delete reports what it did (admitted, headMarked, reverted,
snapshots, aborted attempts, claimReleased, completed, uncertain); the
CLI prints that with the error and exits nonzero. The CLI's admission
is MarkVolumeDeleting (QueryVolumeStatus is no longer used).

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