Commit Graph
646 Commits
Author SHA1 Message Date
pingqiu bd1c8bdb1d Merge remote-tracking branch 'origin/main' into feat/host-urgent-pending
# Conflicts:
#	docs/design/invariants.md
2026-11-22 01:32:40 -08:00
pingqiu 648b36c8d3 Merge PR #402 2026-11-21 22:43:43 -08:00
pingqiu 70f196e286 Merge PR #398 2026-11-21 22:43:43 -08:00
pingqiuandClaude Fable 5.2 636bc98747 docs: invariants say which v3 paths production reaches
Production creates and opens format-v3 stores, so most 'dark', 'not yet
wired' and 'until activation' phrases in the contract were false. Each
phrase was checked against its production caller and now says what is
true: reachable by default, reachable only with a named flag, or no
production caller. Row status is unchanged. Also cites two merged tests
on INV-CUT-STAGED-REUSE-001.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 22:36:28 -08:00
pingqiuandClaude Fable 5.2 f287e281c2 docs: NVMe/TCP device lookup needs native NVMe multipath
The walkthrough's lookup and the CSI node plugin resolve the namespace
under /sys/class/nvme-subsystem, which holds it only with nvme_core
multipath=Y. Say so, with the check.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 22:02:34 -08:00
pingqiuandClaude Opus 5.5 1bec4f79c9 volume: a refusal for held host cut slots has its own code, host_slot_busy
The chunk control API answers a cut, snapshot or detach that host
admission refused because every slot is held (or urgent work is
pending) with 503 host_slot_busy, retryable, so a caller resends on
exactly that refusal without reading messages; other capture refusals,
a plain host busy included, keep capture_refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:58:15 -08:00
pingqiu 53b41f808f Merge commit '626fd811' into fix/oss-holder-resume
# Conflicts:
#	docs/design/agent-workspace-design.md
#	docs/design/invariants.md
#	docs/workspace-lease.md
2026-11-21 21:29:27 -08:00
pingqiu 0d7808c9ad test: bound regrant durability handshakes and clarify renewal scope 2026-11-21 21:23:47 -08:00
pingqiuandClaude Fable 5.2 70fa2dee00 docs: required setup, make the volume known to blockmaster
A blockvolume that blockmaster does not know serves nothing and says
little. The standalone document now states the topology file and the
matching flags as required steps, how to check before and after, and
which log line means which missing step.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 21:23:41 -08:00
pingqiu 7e8084c7a4 fix: keep expired renewal nonblocking behind held authority writes 2026-11-21 21:02:35 -08:00
pingqiu bc43c66786 docs: specify expired-holder regrant behind the shared MAX barrier 2026-11-21 20:59:09 -08:00
pingqiu d7b236de69 Merge PR #392
# Conflicts:
#	docs/design/invariants.md
2026-11-21 20:48:59 -08:00
pingqiu 612b3276c0 docs: recount invariant ledger after merging current main 2026-11-21 20:34:04 -08:00
pingqiu 7be16b8cb8 Merge remote-tracking branch 'origin/main' into fix/oss-same-host-clean-move 2026-11-21 20:33:52 -08:00
pingqiu 7ed752eb29 docs: use the approved same-host clean move invariant text 2026-11-21 20:09:42 -08:00
pingqiu 20ce4ea004 Merge PR #390
# Conflicts:
#	docs/design/invariants.md
2026-11-21 20:09:18 -08:00
pingqiu 64f47d337f Merge PR #391 2026-11-21 20:09:12 -08:00
pingqiu e6fcfd38b9 test: retain endpoint refusal evidence and place G3 row in ledger 2026-11-21 20:07:59 -08:00
pingqiu dd6fd3c2bb cli: clarify logical holder and sealed generation fields 2026-11-21 20:02:31 -08:00
pingqiu f9177aa249 docs: trace same-host clean return through the sealed HEAD claim 2026-11-21 20:02:31 -08:00
pingqiu 4a58b209b0 docs(cli): distinguish host validity from forced-move admission 2026-11-21 19:55:06 -08:00
pingqiu a6190e59f6 docs(cli): document seal-before-revoke planned handoff workflow 2026-11-21 19:50:12 -08:00
pingqiuandClaude Fable 5.2 81a1dc9b1f docs(invariants): split the last over-long row; the long-statement list is empty
INV-WAL-DATA-SYNC-001 becomes five rows of one property each (automatic
sync choice, explicit override, status, allocation at create, prezero).
Three clauses with no test of their own are listed as enforced by
reading. Every statement in the ledger is now at most 300 characters.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 19:10:32 -08:00
pingqiu 28b16cf92f Merge PR #381
# Conflicts:
#	docs/design/invariants.md
2026-11-21 19:01:05 -08:00
pingqiu f5e656cbad Merge remote-tracking branch 'origin/fix/cut-host-slot-wait' into feat/host-urgent-pending 2026-11-21 18:17:03 -08:00
pingqiu e6417e6e9d Merge PR #387 2026-11-21 18:16:43 -08:00
pingqiu 6c7d87b645 Merge PR #379
# Conflicts:
#	docs/design/invariants.md
2026-11-21 18:16:43 -08:00
pingqiuandClaude Opus 5.5 5991507beb docs: status schema lists Chunk.CutSchedule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 18:12:31 -08:00
pingqiuandClaude Fable 5.2 8c154f7de0 docs: SeaweedFS maintenance commands that destroy walstore-chunk volumes
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>
2026-11-21 18:10:37 -08:00
pingqiuandClaude Opus 5.5 03c6b4473b Merge fix/cut-host-slot-wait (with main 92b9293a) into feat/host-urgent-pending
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:50:15 -08:00
pingqiuandClaude Opus 5.5 56d8f086ba Merge origin/main into fix/cut-host-slot-wait; slot-wait tests take HEAD's generation at open as the baseline
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>
2026-11-21 17:45:40 -08:00
pingqiu 534d141a67 Merge remote-tracking branch 'origin/main' into docs/invariants-split-batch3 2026-11-21 17:41:54 -08:00
pingqiuandClaude Opus 5.5 14f0d7401f hostlimit: background cuts wait while urgent work is pending; launch checks
- 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>
2026-11-21 17:26:46 -08:00
pingqiuandClaude Opus 5.5 e94dbbafd6 durable: slot retry delay is random per attempt and shrinks with lateness
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>
2026-11-21 17:19:00 -08:00
pingqiuandClaude Opus 5.5 1d861a806c durable: slot wait ends with any later cut; a closed limiter refuses as revoked
- 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>
2026-11-21 17:13:21 -08:00
pingqiu 29a5b4f94c Merge remote-tracking branch 'origin/main' into test/stopio-began-log
# Conflicts:
#	docs/design/invariants.md
2026-11-21 17:09:46 -08:00
pingqiuandClaude Opus 5.5 93471b8007 invariants: INV-STOP-FLIP-CUTOFF-001 in the Part B table beside INV-CUT-PLAIN-DETACH-001 (was in Part A's M5 table)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:09:31 -08:00
pingqiu ab3b203064 Merge PR #372 2026-11-21 17:07:35 -08:00
pingqiu 3ab9218728 Merge PR #376 2026-11-21 17:07:35 -08:00
pingqiu c575469054 Merge PR #373 2026-11-21 17:07:35 -08:00
pingqiuandClaude Opus 5.5 e2cc37cfd9 durable: the logged boundary is the backend's admission flip itself (recorded under mu), not a time before the call
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>
2026-11-21 17:03:28 -08:00
pingqiuandClaude Opus 5.5 57e30e11c0 durable: a timer cut refused for held host slots waits instead of backing off
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>
2026-11-21 16:58:33 -08:00
pingqiu a4ca4867de Merge branch 'docs/invariants-split-batch2' into docs/invariants-split-batch3
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:49:44 -08:00
pingqiuandClaude Fable 5.2 705656010b docs(invariants): one property per row, third batch (local WAL store)
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>
2026-11-21 16:49:29 -08:00
pingqiuandClaude Fable 5.2 f6b3b3e34d docs(spec): bounds rows for the three reopen and seal specs
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>
2026-11-21 16:48:29 -08:00
pingqiu 26ef627088 Merge remote-tracking branch 'origin/main' into ci/spec-bounds-check 2026-11-21 16:48:13 -08:00
pingqiu e99c9a8a37 Merge remote-tracking branch 'origin/main' into docs/invariants-split-batch2
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:47:19 -08:00
pingqiuandClaude Fable 5.2 f2cdd75f8d docs(invariants): one property per row, second batch
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>
2026-11-21 16:27:03 -08:00
pingqiu 50d4b0357f Merge PR #371
# Conflicts:
#	docs/design/invariants.md
2026-11-21 16:11:43 -08:00
pingqiuandClaude Opus 5.5 de9da9483a docs: durable-root note states the flush-latency floor, the exact measured figures, and that the stall cause is open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:02:59 -08:00