With --cluster-spec, a replicated volume's placement is bound, its line
minted and its promotion gate run only by the lifecycle product loop. With
--lifecycle-product-loop-interval at its default 0 that loop never runs,
so the master starts, accepts heartbeats and never gives the volume a
line; every replica waits at epoch 0 with no error.
blockmaster now refuses to start when its cluster spec holds a volume with
replication factor above 1 and the loop is off, naming the flag. A static
--topology (whose observation controller mints) and single-replica volumes
are untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
record() rebuilt a volume's store record from a new attestation and
carried Initial and AwaitingFirstReady over but not DeleteWithoutAck, so
a late attestation of the last store erased the mark and ended the frozen
wait. The mark is now carried like the other one-way fields and compared
in sameAttestation. TestTheDeleteMarkFreezesTheStoreWait (an attestation
of every store after the mark, then a restart) is the red control.
A source census pins the rules: a record is built only in open and in
record, record carries the mark over, and only markDeleteWithoutAck
writes it (true); its controls break each rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delete without the holder's acknowledgement was admitted whenever the
end of creation was not recorded. That includes a volume that is serving
acknowledged writes whose end the master could not read (after a master
restart or a partition): the reservation stopped its grants, the proof
then found a write and refused, and the volume could neither serve, fail
over nor be deleted.
It is now admitted only in stage 1, while the master's record still
awaits a replica store (the primary serves nothing until every store is
recorded). The mark is written durably first, in the lock that ends the
wait, and freezes the record in stage 1: stores attested after it never
end the wait, so the primary never starts serving. Past stage 1 the
live-lease refusal stays; a broken creating primary's lease ends by
itself and the ordinary delete then applies. The survivor proof at the
HEAD update is no longer needed and is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test's volume host has no replication slot, so it never attests
stores and the volume stayed in its creation phase. The fixture now sends
r1's heartbeat with its store attestation through the master's own
ReportHeartbeat RPC, as a replicated primary does after its peers'
barriers: no test hook, no hand-written record.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The never-created delete was admitted for any creation-hold reason,
including a volume whose primary had acknowledged writes before the
master recorded anything. Now:
- it is admitted only while creation has not ended, and the master's
record is marked durably first, in the lock that ends creation, so
creation never ends after the admission (the delete reads the record as
it was admitted, also after a restart);
- deleting HEAD waits out the holder's lease horizon as before, and then
requires proof that the volume is empty, read after the horizon: stage 1
(not every store attested: the primary served nothing), or N-K+1
survivors that answered on valid tables at end 0. A survivor holding a
write, a silent survivor or an unknown ack profile refuses;
- a volume whose creation ended keeps the live-lease refusal.
Part A (M2) and the ledger row INV-WS-DELETE-WITHOUT-ACK-001 name the rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Through the production binaries: an RF3 sync-quorum primary serves and
acknowledges a write after its stores are attested and is killed before
the next product tick (30 s loop); the survivors' write ends creation, the
gate fails the volume over and the write reads back on the new primary.
The test checks that the window really occurred.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A volume's creation phase ended only at the primary's first ready answer,
read by a gate tick. A primary that served right after its stores were
attested and died before the next tick left a volume that had acknowledged
writes held as creating for good: no gate, no operator failover.
Creation now ends, durably and for good, at the first of:
- the line's primary answering ready, or
- a survivor answering DurableLSN > 0 at the current line (its epoch-table
row at the current epoch, or none): under the quorum ack every
acknowledged write is on a survivor.
A failed write of the end of the store wait keeps the volume held (it is
reported as one store awaited) instead of releasing it with no record of
its next stage.
Tests: the gap through the operator's failover, the first-of rule and its
one-way record across a restart, the failed stage write under both gates,
the operator's move and a restart, and the primary's awaiting answer alone
holding an established volume on both gates and the fenced operator path
(each red with its guard removed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restored volume takes no scheduled snapshot until its device has been
read once; a manual one names the source's chunks and cannot be
restored. ops chunk release is a repair step. The lifecycle rules name
one blockmaster per cluster, no restore of its directory from an older
copy, and that a deleted volume's name cannot be created again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restore is created with --master and fills on access (no restore driver,
no background copy); its source snapshot stays a dependent for the
target's life. Fork and template retirement are not in this release.
The documented show, snapshots and snapshot-delete commands get the
required --master.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The layout delete's reservation was refused while any lease was live, and
a creating primary that is stuck (a replica store never attested) keeps
renewing, so the only exit from the creation phase, delete and recreate,
was closed. A volume whose master record never left the creation phase
(it served nothing, acknowledged nothing) is now reserved for delete under
a live lease: the reservation stops every grant at once, the delete's HEAD
update still waits until no lease is live, and HEAD deleting then admits
no claim or commit. A volume that ever completed creation keeps the
live-lease refusal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Not at the last store attestation: a primary restarted after the last
attestation, before it adopts the complete assignment, was no longer
creating by the record and could be replaced. The record now sets
awaiting_first_ready in the same write that clears its initial set, and
clears it, durably and for good, at the line's primary's first ready
answer; until then the volume is creating. A record written before the
field existed carries none, so an established volume is never reopened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review amendments (no product change):
- storage: both refusal controls read the chunk's blocks from the extent
file before the refused fill and after it, and require them unchanged;
a fill that installs damaged bytes and then refuses is now red (it left
absent and localBlocks untouched, so the old assertions passed).
- chunkstore cut test: the child's stdout is read to EOF, so an upload
begun during the delay or the kill is counted; CUT-ERR at any point
fails the round; the child must have died by SIGKILL; objects 0..last
(at least the first four) are validated every round (an object never
begun must be absent) and all of them are completed by a new session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The master test's freshness window is one second; a target report one
second old had already expired, so no report was found at its endpoints.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guard on hostConfig's LinesNameTheirProcess, the refusal control also
checks nothing is recorded, and the M3 diagram and table state the
adoption guard (the row maps to M2 refresh and M3 adoption).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every read of a pool object already verifies its bytes against the name
twice: the layout reader (ErrCorrupt -> ErrRemoteDamaged) and the
engine's fill (sha256 and size against the HEAD ref). The engine's
refusal was an untyped string; it is now ErrChunkContentMismatch, on the
read-miss fill and on the cut COW fill alike.
Controls:
- storage: a seeded chunk whose bytes are flipped, truncated or extended
is refused with ErrChunkContentMismatch on a guest read miss and on
HydrateAll; nothing is served or installed, and once the remote serves
the named bytes the same reads return HEAD's data.
- durable, end to end over the real layout remote: a chunk captured to
the pool, its blob damaged under the filer entry, a fresh replica
attached from HEAD: the guest read fails with a typed error and never
returns the stored bytes; restored, it reads HEAD's data.
- chunkstore (real filer, chunkstore_integration): a child uploading
pool objects through EnsureObject is SIGKILLed at random points over
many rounds; each object it began is absent or holds exactly the bytes
its name hashes, and a new session completes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The incarnation source looks up the slot at the ask's endpoints, never
the same replica reported by another host. A production volume adopts
no line that names no process; the target's first report re-issues it
once for that process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A creating volume is no longer replaced when its primary is not ready for
another reason, answers a stale epoch, or has an unacceptable slot: no
promotion decision is even probed (the owner's ruling and its model).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workspace record writer copies the line's incarnation, so a lease or
journal write no longer erases it before a reload; a queued refresh for
one process is replaced when another reports at the same address; the
RefreshEndpoint transition names the restart case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A heal, a planned or workspace move or an operator's request names no
incarnation; the publisher records the one the target reports now, so
the promoted process's first report re-issues nothing. The volume's
refusal of a line issued for another process now comes before anything
of it is recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>