The change of this PR's 22 commits, carried onto current main as one
commit (its base was 1884 commits behind). Fitted to main:
- pacing: main's rule that fallback-only leases are not paced stays; a
healthy lease is paced at the budget over the held normal and urgent
slots (this PR's rule) instead of over the configured slot count.
TestFallbackDoesNotUnpaceAHealthyLease keeps its property (a healthy
lease beside a fallback lease is paced) with a 500 ms deadline, since a
lone holder now gets the whole budget.
- the cut loop keeps main's attempted hook and afterStaging (a failed
attempt that staged new chunks retries at the next poll), with the
ticket handling; the random retry delay is gone, as this PR intends.
- imports and constants: neither side's removed ones return.
- invariants: main's new rows and this PR's new and restated rows; the
slot-wait row is this PR's (ticket order, the next poll).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review: a second busy refusal lost the kick and fell back to the hourly
interval, so a snapshot session longer than the 30 s retry defeated it.
The kick now stays pending until a pass the volume does not refuse as
busy; every busy retry comes after the short delay. KickMaintenance
reports only a running loop (not a stopped one, nor one that ended on a
fence or lineage change).
Tests: busy -> busy -> success, then back on the interval; kicks during a
held pass coalesce into exactly one follow-up; the running-loop check;
the cut-cancels-cleaning regression bounds every wait and cancels and
joins its cleaning on failure.
Protocol contract (M8 timing change): MaintenanceOwner.tla gains the
kick, the session that makes a pass busy, and NoLostKick, with a negative
config (lost_kick: a busy pass drops the kick) that violates it; the four
existing configs keep their results. The design diagram gains the kick
and busy-retry edges; the ledger gains INV-MAINT-KICK-001 and
INV-MAINT-KICK-RETRY-001; the spec README records the run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner decision: automatic cleaning is on in v1. The holder's maintenance
pass already cleans through its own layout remote (holder-only, one
entry, refused while a snapshot session is open, the two-step conditional
removal, a cut or stop cancels it with bounded waits); it was behind
--chunk-maintenance-gc, off by default.
- --chunk-maintenance-gc defaults to true; =false is the one switch that
turns the cleaning off. The pass still runs every
--chunk-maintenance-interval (default 1h; 0 disables the whole pass).
- A snapshot deleted through the holder's control route kicks the
volume's maintenance loop for one pass now (kicks coalesce; the same
bounded pass). A kicked pass refused as busy (a cut session open) is
tried again after 30 s instead of an interval later. Retention's deletes
already precede the cleaning in the same pass; a delete made offline is
cleaned by the next periodic pass.
- Docs: operator guide, standalone deployment, and the spec README line
that called automatic GC opt-in.
Co-Authored-By: Claude Opus 5.5 <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>
docs/spec/README.md gains an Exhausted bounds table: one row per spec with
a configuration TLC explored completely, its bounds, its distinct state
count and what the model leaves out. internal/invcheck checks every row
(the spec and configuration exist, no cell is empty) and that every spec
has a row or is in a list that only shrinks (21 today). Eight rows are
added from results the README already states; nothing was re-run.
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>
Train 8 carries the fork-claim removal; the three docs conflicts resolve to
the no-claim union: the claim-free Fork, Retention and diagram text with this
part's Hydrating/Owning rows and steps; INV-RESTORE-PARENT-HOLD-001 archived;
both B.6 notes; the S10 row is the no-claim model, S11 ForkDelete kept.
Ledger recounted from the tables: 138 rows, 118 ACTIVE, 17 STUB, 3 ARCHIVED,
123 new.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The restore diagram's first state reads the parent (no claim, publish before
read time + deadline); the S10 model row is marked as the claim-era model.
The two post-GC checks go through chunksMismatch, which requires exactly the
expected indexes and every payload; a negative test shows a missing index is
caught.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The model this part rests on, as checked (no-claim variant; only comment lines
changed: seat and note names removed), with its 26 configurations: the
no-claim safe cfgs exhausted with no error (360 k to 2.75 M states), the
boundary G >= D on one clock (ForkDelete's G >= D + E + P with E = P = 0),
13 reds and 2 witnesses on their properties, and the claim-frame regression
cfgs. The claim-era configurations not re-run against this spec are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fork/restore versus snapshot delete model this change rests on, byte for
byte as checked (sha256 c9c7c7fa), with its 28 configurations: 11 safe
(exhausted, no error, 18,672 to 15.7 M states, including every boundary
G = D + E + P), 12 reds and 5 witnesses each on its expected property.
README rows; the invariant rows drop the simulation tag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts kept both sides: agent-workspace-design.md (restore diagram, then
attached-volume scheduling); invariants.md B.6 (the INV-MAINT-* rows, then the
INV-GC-REACHABLE-001 row with restore owner rooting). Part B summary recounted
from the tables: 131 rows, 112 ACTIVE, 17 STUB, 2 ARCHIVED, 116 new.
RestoreIndependence is now exhausted (breadth-first, complete graph): the spec
README row and the invariant rows drop the simulation tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Public text states what the code guarantees, not who asked for it or
where an internal note lives. Comments and docs only; no code change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments in the restore code, tests and spec header now say what the code
guarantees, without review or design-note references. The real-limiter walker
test no longer asserts zero deferrals: a permit is released asynchronously
(when its flight settles, then closed by the limiter), so the next admission
can find every fill slot still closing; it now requires the limiter's skips to
equal the walker's deferrals (flaked 4 of 90 runs on Linux before).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- HydrateAll admits each fill as a background fill permit with no cut payload
(the real limiter refuses a payload for BackgroundFill, so no fill ever ran),
and the permit now belongs to the flight: the walker queues the shared flight
without becoming a waiter and a layer-owned goroutine releases the permit
when the flight's I/O is over (new settled signal, closed by the worker after
fillOnce or when an unrun flight is removed), also after an early return on
cancel, revocation or close. The limiter's abort callback stops the walker.
The flight lookup is factored into hydrationFlightLocked (shared with
OnReadMissContext, no behaviour change there).
- CreateSnapshot on a restore volume also checks the supplied image: a cut
saved before the marker that still names another volume's chunks is refused.
- dropIntent keeps outliving the caller's cancellation but is bounded by
dropIntentTimeout (it had no deadline at all).
- Tests: the real hostlimit limiter (fill permits, payload 0, all released),
permit held while a cancelled walker's Get is held, revocation, a witnessed
pause for guests, cancel returning while the Get is held, bounded joins;
stale pre-independence image refused; aborted first HEAD keeps the parent
as fork_parent until the target is deleted; dropIntent bounded.
- Docs: invariants.md M4/M6 rows and INV-RESTORE-* rows, GC owner rooting
recorded as load-bearing in INV-GC-REACHABLE-001; restore diagram in the
workspace design; RestoreIndependence in docs/spec/README.md (simulation).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TLA+ model of the restore: claim, two-step fork, hydrate, bounded batch cuts
(upload own fids under an intent, one HEAD CAS per batch), marker after the last
foreign ref, claim drop; GC, source delete, snapshot retention and crashes with a
resume from remote facts at any point. Invariants NoGap, Independent,
NoForeignList, ClaimUntilHead_Inv (option 1: today's fork claim semantics),
LifecycleFree, StateRemote. cfgs: option-1 safe at three sizes, the stricter
claim-until-independent variant, two witnesses, and one red cfg per mutant
(each red at its expected invariant in simulation). Simulation only so far:
no violation in about 0.81M states per safe cfg (3 seeds x 60000 traces, depth
40); not exhausted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>