A never-started line that holds a lease (a first start stopped at the
grant, a clean-move target that never started) is refused by the delete's
reservation while that lease may be live, and completes when the same
delete is rerun past the horizon the refusal names (nobody renews it).
The three tests now assert that, through deleteAfterTheHorizon: any
other refusal still fails them, and every fencing assertion stays (a late
start after the delete is still refused, the claimed control is
unchanged). The immediate delete of such a line is the 1.0.1 fix.
INV-WS-DELETE-NO-LIVE-HOLDER-001 states the v1 limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v1 has no background fill: hydrate reads one block of every chunk, then
requires none absent, and the killed-mid-fill test drives its fill with
a background reader. The guard also checks the harness's run calls, and
the show and snapshot-delete calls it found get --master.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guard runs every literal `sw-block ops ...` call in cmd/blockvolume's
tests through the CLI's own argument handling, so a call the CLI refuses
fails CI instead of a lab run. The calls it found are brought to the
current CLI: --master on restore and snapshot commands, the removed
restore driver and fork replaced or dropped, and the killed-mid-fill
test converted to background hydration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adopting the master's assignment comes before the HEAD claim; a start
that adopted and then lost the HEAD race to the delete never served.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
INV-WS-DELETE-NO-LIVE-HOLDER-001; red on main by design (the fix is the
live-holder change). Three routes, none needs root, each asserted by the
master's authority record (the line) and HEAD before any delete:
- S1: a first start with the store down (line at 1, no lease, HEAD 0);
- S2: a first start stopped at the lease grant (line and lease at 1,
HEAD 0; the next candidate when the claim wins);
- a clean move whose target never starts (line and lease at e+1, HEAD at
e, detached).
volume-delete without a revoke must complete (at once, after the lease
lapsed, after a master restart), a later start must not claim, and a
racing start and delete have one winner. Guards, green on main: a
never-attached target is deletable and fenced, and a claimed target stays
refused after a master restart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>