A catch-up ships history under the session's epoch, and the replica noted
that epoch for it, so a byte-identical survivor of the older epoch later
reconciled as diverged. The recovery lane notes nothing; the catch-up's
final barrier carries the primary's rows and the replica takes them, cut at
its synced end, before the ack. The writer census type-checks the packages
and finds every call on an *EpochTable whatever the receiver is called
(alias and field controls). The block design's peer-state diagram shows
that every route to Healthy reconciles by (epoch, LSN) and that diverged
history goes to NeedsRebuild.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A primary that adopted an epoch over an unsynced tail, lost the tail in a
crash and adopted the epoch again kept the row's higher first LSN: its new
writes below it were attributed to the previous epoch, so an old primary's
unacknowledged tail in that range reconciled as shared. The ingress now
trims rows above the store's next LSN after recovery, and the next note
appends the row at its real first LSN. Every write keeps the newest 512
rows, so the record always fits the read bound; the rebuild-done list is
bounded the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine's healthy verdict (a probe saw R >= H) and a completed recovery
session set the peer Healthy on length. Both now run a barrier and compare
the peer's (last data epoch, end) with the primary's epoch table: in sync
-> Healthy; diverged -> NeedsRebuild; behind or unanswered -> Degraded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ingress owns the volume's epoch table: the listener notes shipped
entries, the primary's row (epoch, durable end + 1) is made durable before
a primary role is adopted, and the replication volume reads it at the seed
barrier. A survivor whose entries are not the primary's (an equal length at
another epoch, a tail above the frontier, data without a table) needs a
rebuild and is not counted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Leader-epoch reconciliation: an entry's identity is (epoch, LSN). The table
answers, for a replica's last data epoch and end LSN, up to where its
entries are the primary's; an equal length at an older epoch is divergent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>