With the degraded-peer probe loop on, a peer the seed barrier degraded for a
divergent tail would otherwise be probed, classified caught up (R >= H) and
fenced back into healthy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Write acknowledgements already count only peers that were healthy; the
sync barrier counted any peer whose reported length covered the target,
so a degraded survivor holding a divergent tail satisfied sync-quorum.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Above the promoted primary's frontier a survivor holds entries the primary
never had: an unacknowledged tail of the old epoch. The seed barrier
accepted it as caught up on length, kept the peer healthy and counted its
acks; it is now degraded like a peer below the frontier.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Until a replica has accepted the current epoch it holds only entries of
older epochs, and above the new primary's start position those were never
acknowledged. R above that start pins a rebuild instead of the caught-up
fence-then-healthy path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep main's claim-id and delete-authority rows and add the detached
rows; the delete row starts from live or detached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub-hosted jobs for this repository wait in a shared queue: since
04:21Z every spec trace job sat queued on ubuntu-latest with no runner,
so no pull request could pass its checks. The workflow's own comment had
said so (the hosted queue can wait for hours).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every pull request that added a row edited the hand-kept count line, so
each merge to main re-conflicted every open pull request. The check now
prints the count and fails if the file states one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check runs no PR code and needs no project host, but it queued behind
the self-hosted test jobs; every PR's merge waited on that queue.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The M9 introduction names its one HEAD create (the deleted HEAD the
operator's remove-dependent writes for a restore target without HEAD);
the diagram and the transition table add absent -> deleted (tombstone)
and the release of a target from a source's dependents.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The strict-method guard is inverted: a new operator or admin method added
without Strict fails, and ReportClusterEvent (event log append only) is the
one named exception. The guide says the attempt line survives a blockmaster
crash, not a host crash.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delete checked once that no block held the volume, then marked HEAD
deleting by a separate read: a grant and claim in between let it delete a
live volume. The delete now first has the master record its delete
reservation (no line is granted for the volume after it), then checks
that no line holds a live lease between the HEAD read and the
conditional update that marks HEAD deleting. After the reservation no
live lease can appear, and a claim landing between the read and the
update fails the update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the claim id on, the transition table's holder rule is the epoch,
the server and the claim id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The removal planned only unmarked candidates, so a name marked by a
cleaning that died before its delete stayed in the pool for ever. Every
found candidate is now planned with its whole tag (session and mark) as
read; the conditional mark replaces an abandoned mark, and the dead
remover's late delete, conditional on its own mark, fails. The interrupt
test now requires every orphan gone after the re-run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start checked the local root against its first read of HEAD, then
claimed through a transition that read HEAD again without the check: a
claim by another lineage, or a published position rising past the local
root, between the two reads was written over. The local-root check now
runs again inside the claim's transition, on the very HEAD the
conditional update replaces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The invalid-UTF-8 holder fixture lacked a volume id and a claim id, so it
was refused for those first and a mutant dropping the holder's UTF-8
check survived; every UTF-8 case now carries the other fields and
asserts the UTF-8 refusal itself. The M9 diagram and transition table
name the claim id in Claim (replay on epoch, server and claim id;
another claim id at the same epoch and server refused).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator's remove-dependent now writes the deleted HEAD for any
target without HEAD, not only one without VOLUME too: a restore that
died between its VOLUME and its HEAD would otherwise leave a target
that could be neither released nor deleted, pinning the source's
snapshot for ever. The later HEAD create of such a restore fails on the
tombstone, as before.
A volume delete refuses, before any write, a listed path that is not a
pool, segment or root object, so HEAD (which stays, deleted), VOLUME and
the directory are never removed. A source scan lists every delete and
every directory-naming site in core/ and cmd/ and fails on a new one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A volume's directory is <name>-<first 8 hex of its volume id>, created
exclusively and never reused; the reader reads a foreign chunk from the
directory its reference's owner name and id give, after checking that
directory's VOLUME id. For a restore target never created, the
operator's remove-dependent writes a deleted HEAD exclusively in the
target's directory (a tombstone, which needs no holder) and only then
releases the dependent, so the restore can never create the target
afterwards; if the target's HEAD appears first, the release is refused.
Only that command creates a tombstone (source guard).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DecodeWALRecordV3 wraps the decoder recovery uses (same geometry, size
and CRC checks and errors) and returns LSN, type, LBA, length and the
whole record size; WALRecordHeaderBytesV3 is the header the codec adds.
For read-only tools that analyse crash images; recovery does not use it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>