- 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>
- A pool file, urgent-pending, signals urgent work on the host. An
urgent cut holds it shared for its lease, and HoldUrgentPending lets a
caller hold it across a stop or a drain. A Normal admission probes it
exclusively without waiting and, while it is held, is refused with
ErrUrgentPending (an ErrSlotsHeld, so the timer waits instead of
failing). Urgent admissions are unaffected.
- blockvolume checks --host-limit-dir before using it and refuses to
start when it is missing or not a directory, under a temporary
directory (/tmp, /var/tmp, /dev/shm, the process temp dir), on a
network file system (NFS, CIFS, SMB2, FUSE on Linux), or already in
use with different host-limit flags.
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>
- 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>
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>
The 'not reachable in this release' marker added to its statement is
already stated in the note under the table; the length check added
in the same train rejects the longer statement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The list's size is pinned by a constant and, where the base commit is at
hand, every listed row must have been listed there. The head-belt fence
row again says the re-read owner is compared with the publisher's own.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ten over-long rows of the chunk cut, workspace and GC machines become
rows of one property each (statements at most 300 characters); clauses
that only repeated a Part A transition guard become pointers to it. The
invariant check gains a length test with a list of the rows still over
300 characters, which may only shrink. Two test comments lose a
reviewer reference.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Main's wording wins where it changed a row; the not-reachable marks, the
two new rows and the note are kept; the count is recomputed from the
tables and the document check passes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A detach request with frozen set is answered 409 frozen_detach_unsupported
before any provider call, and blockvolume refuses to start with
--chunk-detach-precopy. Nothing is deleted: both mechanisms become
unreachable in this release. The request fields stay so the strict
decoder keeps answering the typed refusal.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Red on this commit: a detach request with frozen set still reaches the
provider, and blockvolume still starts with --chunk-detach-precopy.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each member stated the count for its own rows on main; together the
tables hold 163 rows (141 ACTIVE, 19 STUB, 3 ARCHIVED).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With --status-addr the create result goes to stderr, so stdout carries only
the driver status (one JSON document). A driver start refused after the create
(for example the target is not attached at that blockvolume yet) adds a line
saying the target was created and the --volume command that starts the
restore once it is attached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sw-block ops chunk restore --source --snapshot --target creates the target
from the snapshot with Catalog.Restore (idempotent by --request-id) and, with
--status-addr naming the blockvolume that serves the target, starts the
restore driver there in the same command and prints both results. Without
--status-addr it creates the target and prints the command that starts the
driver once the target is attached. --volume keeps driving an existing
restore. README lists both forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit carried the tree of main plus this change but named
only one parent, so the branch looked diverged. Same tree, both parents.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Train 9 merge committed conflict markers in docs/design/invariants.md. Both
sides added a B.2 row after the same anchor: keep main's
INV-MASTER-JOURNAL-ISOLATION-001 and this PR's INV-SEC-CONTROL-BIND-001, and
recount the Part B summary from the tables (161 rows: 139 ACTIVE, 19 STUB,
3 ARCHIVED, 146 new).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>