A walstore-chunk volume's data is held in needles that no file's chunk
list names, so volume.fsck with its delete flags would remove it. The
operator document now says which commands must never run on such a
cluster, which only report, and which are safe.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A TEST change may not touch the ledger; the row's Tests cell is updated
in a separate docs change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening a volume on an empty remote now publishes HEAD generation 1 (the
open claim), without a cut. The slot-wait tests read HEAD after open and
check it does not move while the slot is held, and that no admission
succeeded then; publication and the seal are checked against that
baseline.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A re-send of an already completed key is now counted before the fake
remote sees it (the real put path reconciles such a re-send), and the
test asserts no completed key is re-sent.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cut whose host budget is revoked after two of five chunk PUTs (the
limiter's MaxHold abort) leaves HEAD unchanged; the next cut uploads only
the three chunks not yet uploaded, retransmits nothing, and publishes
the full image.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The provider tests wrap the real limiter and record every Admit call
with its time and outcome. Retry gaps are measured between recorded
held-slot refusals, and the first admission after the slot frees is
timed from the release (<= 400 ms); publication is bounded separately.
- The close-race control bounds its wait for Close and joins it from a
cleanup registered before the goroutine starts.
- Wording: a shorter delay range makes a late volume likely, not certain,
to retry first; the seeded one-slot simulation is a regression check,
not a proof of the bound.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the build-tagged constant with durable.MinCaptureInterval
(default 5 minutes). The flag check and the flag help read it; a
program that builds blockvolume with a shorter floor sets it before
parsing flags. The OSS binary behaves as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A timer cut refused for held host slots retries after a delay drawn
below 200 ms x interval/(interval+late), so the volume furthest behind
its interval retries soonest; a fixed per-volume phase let the same
volumes win every round. A deterministic test runs V timer policies
against one slot (service T, all due at once) and checks no volume
waits longer than (V-1)(T + poll + 200 ms) and every volume keeps
cutting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 5-minute --chunk-capture-interval floor moves to capture_floor.go,
built unless the swb_enterprise tag is set; a build with the tag supplies
its own minChunkCaptureInterval. The OSS build behaves as before: below
5m is refused (60 s now tested), and the refusal and the flag help name
the floor from the constant.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Status ends a recorded host slot wait once the layer's CutSeq moves
past the one it was recorded under, so a detach's seal (made after the
timer stopped) or an explicit cut clears it; the count is kept.
- A successful cut observed during a slot wait also drops the pending
slot retry.
- Admission that finds the limiter closed after acquiring its pool slot
returns ErrRevoked, not ErrSlotsHeld.
- The provider test witnesses every refused attempt with a timestamp
(at least 8 in 2.5 s, none more than 400 ms apart), then bounds the
admission after the slot frees (400 ms) and publication (5 s)
separately.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StorageBackend records stopFlipAt under mu right after operational goes
false (setOperationalLocked and both TryStopIO flips); the detach logs it
as 'admission closed at' beside 'StopIO returned at'. Admission is
unchanged: an I/O whose gate ran before the flip is admitted and drained
by StopIO; every gate after it refuses (INV-STOP-FLIP-CUTOFF-001). The
stamp is taken after the store (errs toward a false alarm) and logged
only on a successful stop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Host admission is a try-lock. With one cut slot per host, every volume
whose timer fires while another volume's cut holds the slot was refused
and backed off 1 s doubling to 30 s, adding up to 30 s to its interval
and favouring whichever volume happened to win.
hostlimit returns ErrSlotsHeld (an ErrBusy) when every slot is held. The
cut policy treats that refusal as a wait: no backoff, no minimum
spacing, the timer is not reset, and the retry comes after the volume's
stable slot jitter (at most 200 ms). Other errors, an oversized payload
or an unusable pool included, keep the backoff. Status reports
CutSchedule.HostSlotWaits and HostSlotWaitSinceNs, the start of the
current wait (0 when not waiting). Ledger row INV-CUT-TIMER-SLOT-WAIT-001.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A periodic cut refused because every host cut slot is held must be a
wait, not a failure: no backoff, retry after the volume's jitter, and
the wait reported in status. The types the tests name are added; the
behaviour is not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seventeen over-long rows of the local WAL store (format v3) become 92 rows
that state one property each, every statement at most 300 characters.
Clauses that only repeated a Part A transition guard point to that
transition; the write-admission wait gets its line in the table of bounded
waits. The long-statement list shrinks from 18 to 1.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
HeadReopenBelt, PlainSealReplay and SealedReopen arrived on main with
their results in the README; each gets its Exhausted bounds row from those
figures. Nothing re-run.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Eleven over-long rows (authority store, workspace lease, forced move and
lost range, operator confirmation, frozen-request validation, host cut
budget, replica per-LBA rule, RF=3 promotion) become rows that state one
property each, every statement at most 300 characters. Clauses that only
repeated a Part A transition guard now point to that transition. 185 rows
become 216; the long-statement list shrinks from 28 to 18.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A guest error after the flip is a refusal by contract; only an error on
I/O admitted before the flip is a data-path failure. The detach now logs
'I/O stop began at' (taken just before the flip: plain stop, live
StopIO, or the pre-copy TryStopIO) beside 'StopIO returned at', both
RFC 3339 nanoseconds, so a measurement can count from the flip (#375).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Red on main: only 'StopIO returned at' is logged, so a test measuring
guest errors cannot tell a refusal after the operational flip (by
contract) from an admitted I/O that failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>