The holder's maintenance now consumes a published delete intent, so a
delete behind an earlier one resumes once its intent is consumed. The
model-code trace keeps both sides' new rows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review fixes. When the --json answer cannot be written, retire-host and
finalize-format exit 1 instead of 0. A retire whose record removal failed
answers Internal (the CLI's failed, exit 1), not FailedPrecondition (refused,
exit 2); the node store's test hook can fail a removal for the control.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--gen 0 names no incarnation and is refused before any read or write,
on a version-0 and a version-1 HEAD alike; it is not the unpinned
delete. INV-SNAP-DELETE-HOLDER-RESUME-001 states and traces the
holder's resume of its own operation behind an unconsumed intent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
retire-host follows finalize-format's contract: exit 0 retired, 2 refused,
75 the master could not be reached, 1 any other failure or usage error, and
--json prints result, reason, server, volumes and message for every outcome.
The master's HOST_HOLDS_WORK refusal names each held volume in its typed
metadata. The forced-move preview answers the typed reason the move itself
would carry (reason_code, e.g. BINARY_TOO_OLD), and force-move --dry-run
--json shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three tests read or damaged the store file through a second handle while
the store held its byte-range lock: mandatory on Windows, so they failed
there only. They now go through the open store's own file: the slots by
slotsV3Of, a record by damageOpenRecord. What they assert is unchanged.
Fixes#953.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One shared predicate routes a delete by name on the HEAD's version at
either format level: on a version-0 HEAD the default call is v1.0's
name-only delete, and an explicit --request-id or --gen is refused
typed with nothing written until the volume adopts v1.1; on a version-1
HEAD it is an operation delete. The holder runs its HEAD writes at its
assigned level (DurableProvider.FormatLevel). Controls pin the holder's
version-0 route at both levels, its one resumed operation and terminal
receipt, every operation-tree write on an absent HEAD, and the
receipt behind the CLI's printed id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v1.0-HEAD decode check keeps both v1.1 fields it refuses: #950's
reserved producer list cursors and this branch's operation bindings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CLI's and the holder's delete routes read HEAD to choose the route,
and the shared resolver reads it for admission; each absent-HEAD
behaviour is pinned by a probe (an absent volume's delete by name, the
holder's delete with no HEAD).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two holder deletes in a row on a version-1 HEAD: the second finds the
first one's intent unconsumed, kicks the cleaning, and resumes the same
operation to completion. Red with busy treated as terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a version-1 HEAD the holder's control route runs an operation delete
of the incarnation the name holds now, under an id made per request (a
new request is a new intent). A run that finds the previous delete's
intent unconsumed or HEAD moved kicks the cleaning and resumes the same
operation, bounded, so no request leaves its operation stalled. The CLI
and the holder share one admission resolver. The volume tests' holder
projection carries format level 1, a new cluster's, so their v1.1
creates pass the attach-level guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestWALStoreV3SlowExtentKeepsReclaimMoving flaked on a busy Windows
host: a single slow fsync pushed one bounded cycle past its 500 ms
admission budget (attempts of 500-577 ms, against cycles whose writes
take about 77 ms). The slow disk is now 5 ms per extent write and the
budget half a whole-map cycle from the measured sleep (about 1.2 s): a
bounded cycle (about 160 ms of writes) leaves room for a slow fsync,
and a whole-map cycle (about 2.4 s) still outlasts the budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delete prints the incarnation it resolved (name@gen) with its
request id, and the no-wait answer carries it; --gen deletes only that
incarnation and is refused typed when the name holds another. Retries
inside one invocation keep the id and the incarnation; a new invocation
resolves the name again, and a recreated name is what it deletes. The
name-only primitive (an old client's) still refuses a v1.1 HEAD. The
snapshot operation commit passes the shared format guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The direct-attach test bounds its Close as mustAttach does. The status
test pins the exact union of live and in-flight candidates during an
upload (distinct and overlapping) and the in-flight part leaving after
HEAD installs. The drained-pause test pins exact deltas: 2k for k dirty
chunks, 2N for a whole-volume pass, and nothing carried over.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A non-blocking one-shot guard holds snapshot A alone (B passes the hook
without blocking, so a read outside the lock lets B finish during A's
hold), the newer wait's first-seen time is pinned to B's, and A's
completion and B's join are bounded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At cluster format level 0 a delete by name of a version-0 HEAD's
snapshot is v1.0's name-only delete, chosen before any operation record
is written. On a version-1 HEAD, or at level 1, it is an operation
delete under --request-id or an id made once per invocation and printed
for resume. The level is the master's answer (--master), 0 without one
or when it cannot be read, and every HEAD write runs at it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The waiting set's placements are read inside the lock that reconciles
it, so a snapshot that read older placements can never reconcile after
a newer one and drop the wait it started. A held-old/new control pins
it. host.go is rewritten without the carriage returns the previous
commit added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A version-1 HEAD with a zero generation is refused on write and read
tolerantly; the row names the rewritten tests and checkWrite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved to main: runTransition runs the format guard, then
the generation stamp, then checkWrite, and the receipt guard follows.
The duplicate strict decode is dropped: a version-1 HEAD with a gen-0
entry reads tolerantly and is stamped on write; the write check refuses
it. Its two tests are rewritten to those semantics. A bound snapshot's
publishing gen must equal its operation's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>