pingqiuandClaude Opus 5.5 b585648099 durable: walstore-chunk fresh marker, lineage-bound capture, attach settlement
Fresh initialization survives interruption. A walstore-chunk volume
gets a durable <path>.chunkfresh marker (file and directory fsynced)
before its volume file is created. The provider reads the marker on
every open, and removes it (durably) only after the first attach has
persisted the absence of every HEAD chunk. A create that failed or
crashed before that point reopens fresh and reads HEAD, never the
untouched local zeros.

Captures publish only under the attach-time lineage. The admission
check, made at the start of a cut and again right before its HEAD CAS,
requires the current projection to be healthy and to carry the same
volume, replica, epoch and endpoint version as at attach. A moved
lineage refuses the cut instead of publishing under the old epoch. The
configurable holder name is not part of the comparison.

Attach settles with shutdown. RecoverVolume on a walstore-chunk volume
registers with the provider and serializes recovery and attach per
volume. Close cancels the attach's remote calls through a close-bound
remote, waits for admitted recoveries before closing any store, and an
attach that finishes after Close publishes nothing (the store closes
the layer).

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