Commit Graph
764 Commits
Author SHA1 Message Date
pingqiuandClaude Fable 5.2 84252ed21f docs: how to delete a volume; README states the real delete rule
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 15:56:42 -08:00
pingqiu 6c225b3936 Merge remote-tracking branch 'origin/main' into docs/operator-guide 2026-11-22 13:39:54 -08:00
pingqiuandClaude Fable 5.2 ca6ea25f66 docs: lifecycle, after a crash the process exits 75 and the unit restarts it; run table from the procedure tests
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:59 -08:00
pingqiuandClaude Fable 5.2 62b71734c1 docs: lifecycle, the returning old host after a forced move as the procedure test shows it
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:26:06 -08:00
pingqiu e3e351f895 Merge remote-tracking branch 'origin/main' into docs/volume-lifecycle 2026-11-22 13:24:51 -08:00
pingqiu 0245fd4ba1 Merge branch 'pr444' into train/20261122-28 2026-11-22 12:31:05 -08:00
pingqiu 4cc7873ed0 Merge branch 'pr442' into train/20261122-28 2026-11-22 12:30:54 -08:00
pingqiu 86f9b5e370 Merge branch 'pr440' into train/20261122-28 2026-11-22 12:30:54 -08:00
pingqiu b4daad80d1 fix(workspace): delegate revocation ACK to stored seal proof 2026-11-22 12:23:22 -08:00
pingqiuandClaude Opus 5.5 dc393ba380 durable: refuse a non-directory lock path; chmod only what this call created
The lock directory and its parent are chmod'ed only when this call's own
Mkdir created them, so an existing or concurrently created directory keeps
its mode; an existing lock path that is not a directory refuses (Lstat), as
the constructor did before. The invariant row links the mode tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:22:51 -08:00
pingqiuandClaude Opus 5.5 4c36f1f861 durable: lay out a created lock directory as tmpfiles.d does
A missing /run/sw-block is created 0755 and the locks directory 0700, with
the modes set explicitly (the umask cannot narrow them); existing
directories are left alone. The cure line also names the parent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:10:34 -08:00
pingqiu 3c50b14e8d refactor: share lifecycle record durability and warn on ancestor sync failures 2026-11-22 11:29:31 -08:00
pingqiuandClaude Fable 5.2 85c2ec3364 docs: lifecycle setup, quote the refusal text with its cure
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:22:48 -08:00
pingqiuandClaude Fable 5.2 ef9ec6bba6 docs: lifecycle setup, register nodes by the address they reach blockmaster from
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 11:13:20 -08:00
pingqiu aaedc61855 fix: sync every created lifecycle ancestor from cleaned paths 2026-11-22 10:44:01 -08:00
pingqiuandClaude Opus 5.5 83f8507d3b durable, blockvolume: review fold for the host lock and the rolled-back root
- The lock directory is created (0700) when missing; only a directory or
  lock file that cannot be created or opened refuses, with the cure
  (install the tmpfiles.d entry, or chown the directory and its lock files
  to the unit's user).
- The lock file is opened read-only (an existing file first, created 0644
  only when missing), so a lock file another user created stays lockable;
  it is never unlinked, and the next owner locks the same file.
- A stale-root startup end carries its cure into the final exit line:
  exiting status=78 reason=superseded cure="...".
- Tests: a cut's remote_lsn is locally durable at its HEAD CAS, and the
  root's crash image at the CAS reattaches and serves; the rolled-back copy
  makes no claim or PUT, admits no I/O, keeps its data and durable LSN; an
  exact copy at HEAD attaches; a read-only lock file is taken.
- Invariants: INV-WS-ONE-PROCESS-PER-HOST-001 and its M4 edge; the
  rollback row names its test file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 3a0dcd9d64 docs: invariants count the host lock's deciding function (#439)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiuandClaude Opus 5.5 bd8afb0aea blockvolume: one live process per volume per host; refuse a rolled-back root
V1-SPEC r2.45.
(1) The provider takes an exclusive, non-blocking lock on
/run/sw-block/locks/<volume id>.lock before the volume's store opens and
releases it after the store closes (HostVolumeLock, set by blockvolume). A
missing directory refuses the provider with the cure; the tmpfiles.d
entry ships in deploy/systemd and both units may write it under
ProtectSystem=strict. --volume-lock-dir-test-only (hidden, refused under
systemd, warned at start) is for plain subprocess tests and harnesses.
(2) An existing root whose HEAD names this holder attaches only if its
local durable LSN reaches HEAD's remote_lsn; otherwise the existing
stale-root refusal, no retry (78 superseded), with the cure.
(3) docs/releases/one-process-per-volume.md: the lifecycle do-not list.
No HEAD change, no format bump, no new persisted file, no new exit reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:40:12 -08:00
pingqiu d0626bdfcd fix: sync lifecycle parent entries and pin sync failure publication 2026-11-22 10:35:08 -08:00
pingqiu 33097cb797 fix: durably replace volume and placement lifecycle records 2026-11-22 10:31:31 -08:00
pingqiu 956a5f86eb docs: disclose lifecycle failed-put and delete durability gaps 2026-11-22 10:29:06 -08:00
pingqiu 4bc0d302c6 docs: generalize lifecycle durability row and record open gaps 2026-11-22 10:28:04 -08:00
pingqiu 5ea7c6a006 docs: bind node inventory crash safety to durability invariant 2026-11-22 10:26:32 -08:00
pingqiuandClaude Opus 5.5 cb73f9e10d docs: operator guide: host lock setup, the returning old host's retries, the per-host limit, the systemd tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:24:00 -08:00
pingqiuandClaude Opus 5.5 17f5c86924 docs: iSCSI is supported in v1.0, and the Kubernetes CSI default
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:21:00 -08:00
pingqiu e8f509edf8 Merge remote-tracking branch 'origin/docs/volume-lifecycle' into docs/operator-guide 2026-11-22 10:21:00 -08:00
pingqiuandClaude Fable 5.2 6d45520496 docs: lifecycle, one live process per volume per host by the host lock
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 10:19:53 -08:00
pingqiuandClaude Fable 5.2 91aa7ea088 docs: lifecycle do-not list, blockmaster stores are not restored from a copy
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:46:18 -08:00
pingqiuandClaude Fable 5.2 fb9b387bf9 docs: the lifecycle page's do-not list
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 09:24:08 -08:00
pingqiu bbd4b30b55 Merge branch 'pr436' into train/20261122-26 2026-11-22 09:04:10 -08:00
pingqiu 115ae3651a test(workspace): document ACK validity edge and horizon controls 2026-11-22 09:02:36 -08:00
pingqiu 402a0d7479 refactor(workspace): defer seal proof integration until holder update 2026-11-22 09:02:35 -08:00
pingqiu b528a0c9ec fix(workspace): share detached proof and lease validity decisions 2026-11-22 09:02:35 -08:00
pingqiu e082155232 docs(deploy): explain no-restart outcomes and retry window 2026-11-22 08:48:38 -08:00
pingqiu 3dc1bac4c9 fix(deploy): bound blockvolume supervisor retries 2026-11-22 08:38:34 -08:00
pingqiu b92419e2e3 Merge branch 'pr429' into train/20261122-25 2026-11-22 08:27:30 -08:00
pingqiu 50929b5d21 Merge branch 'pr415' into train/20261122-25
# Conflicts:
#	docs/design/invariants.md
2026-11-22 08:27:30 -08:00
pingqiu 99903f9864 fix: preserve typed store faults and retry marked remote short reads 2026-11-22 07:27:17 -08:00
pingqiu 9a01fd8a5b Merge #409 + #410: start-time retry exits (75/78), listen/ready gate on one AdmitsIO, runtime HEAD-fence exit 2026-11-22 07:26:51 -08:00
pingqiuandClaude Opus 5.5 870a3d9be0 docs, test: name the spec row, not a seat; say channel capacity, not slots
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:03 -08:00
pingqiuandClaude Opus 5.5 10ce25ee9c blockvolume: firstAdmitted reports its own completion; the exit diagram carries the runtime HEAD fence
The stop test now observes the worker's return on its own channel with
bounded joins on both paths (a re-check that ignores the stop fails in 12 s);
agent-workspace-design.md's supervisor diagram adds Serving -> Exit78 on a
runtime HEAD fence (head_fenced), independent of the lease.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:03 -08:00
pingqiuandClaude Opus 5.5 50d6d92845 blockvolume: one "may serve" function: AdmitsIO for status and the workspace start gate
V1-SPEC r2.39: StorageBackend.AdmitsIO is the I/O gate itself (the backend
admits I/O AND the guarded projection names this lineage as the healthy
primary). /status FrontendPrimaryReady and NotReadyReason read it through
the provider (lease_not_held stays first; an unopened volume fails closed).

A workspace chunk primary's frontends start once AdmitsIO passes after the
backend first admitted I/O (firstAdmitted: a bounded 50 ms re-check until
first served, workspace primaries only; the backend has no projection-change
signal). Non-chunk volumes and supporting replicas start after open as
before (the #410 design condition, V1-SPEC r2.39), now pinned by a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 c0e243a888 docs: INV-FE-FENCE-EXIT-001 statement as ruled (both detection terms named)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 33e72fd083 blockvolume: state the fence-to-exit bound as detection plus cleanup; join the fence watcher
INV-FE-PRIMARY-READY-OPERATIONAL-001 keeps the readiness and listen
property; the fence-to-exit bound is its own row, INV-FE-FENCE-EXIT-001,
stated as what is guaranteed: the fence's detection time (a HEAD fence:
50 ms) plus the existing 5 s cleanup bound from the decision. 307 rows,
221 ACTIVE.

Provider Close joins each layer's fence watcher through p.inflight
(counted under p.mu while not closed). C.W lists the two new waits.

The runtime-fence watcher test owns its worker: cleanup registered before
the start, the return joined with a bound on both paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 22a540d34d blockvolume: a runtime HEAD fence exits 78 head_fenced; serve only while the lease is held
A chunk layer that fences after startup (HEAD has another publication
owner) while the lease is still valid now latches the backend not
operational with that evidence, and the process owner chooses the
no-restart exit 78 head_fenced through processExit.choose. I/O is refused
from the fence itself.

The first-grant log line is written only for a reply that grants: a first
reply that revokes fences the guard and logs no grant.

The frontend-gate tests own their workers: cleanup is registered before
each worker starts and every receive is bounded.

docs/design/invariants.md: INV-WS-SERVE-LEASE-HELD-001 (V1-SPEC r2.37);
INV-FE-PRIMARY-READY-OPERATIONAL-001 statement within 300 characters, with
the runtime fence enforcement and tests; M1 diagram and table carry the
lease-held order and the runtime fence exit; C.W names the runVolume
receive of the stop waiter's result. 306 rows, 220 ACTIVE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 1b675b39d0 blockvolume: lease_not_held reason and a one-time grant log for a workspace primary
A workspace primary whose lease guard is missing or holds no granted lease
now reports NotReadyReason=lease_not_held first (the guard decides, through
the new WorkspaceLeaseGuard.Held, the lease term permits already used). The
guard logs its first grant once, as "re-granted after N refused renewal(s)"
when renewals were refused first (a restart before the forced-move barrier),
with the request-start time in unix_ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 34675c0930 blockvolume: no frontend listens and status is not primary-ready until the backend admits I/O
A restarted old holder (G-O2 r8) started its NVMe target unconditionally
at startup and reported FrontendPrimaryReady=true from the authority view
alone, before and after its chunk-layer claim was refused ("fenced, not
serving"). The admit gate refused every command with Namespace Not Ready,
but that status is retried on the same path and then fails to the guest,
and the path advertised ANA optimized, so a listening, ready-looking but
fenced target is not safe.

- status: FrontendPrimaryReady is false while the volume's local durable
  backend admits no I/O (attach pending, fenced, detached), with the
  backend's evidence in the new NotReadyReason; Healthy stays the authority
  view.
- blockvolume: the iSCSI, NVMe and ublk targets start only once the backend
  first admits I/O (awaitBackendAdmitsIO, 10 ms); signals and the workspace
  lease guard now start before that wait, and a stop requested during it
  skips the frontends and goes straight to shutdown.

INV-FE-PRIMARY-READY-OPERATIONAL-001 (304 rows, 218 ACTIVE); M1 Recovering
-> Serving names the guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 07:14:02 -08:00
pingqiuandClaude Opus 5.5 79d5d9f798 fix: one owner decision (PublishedLine.Owner); a moved line with an unknown owner takes facts from no server
Design review of #429 (V1-SPEC r2.40, INV-AUTH-HOLDER-IDENTITY-001, TERM-HOLDER-001):
- PublishedLine.Owner is the single owner decision (move-named server; move-named but
  unknown; not from a move), called by Host.workspaceLineOwner and expectOwnerForLine.
- A move-minted line whose owner is unknown binds its replica to no server: no health,
  endpoints or refresh from anyone (control: the placement server's fresh report changes
  nothing). Only a line no move minted keeps the accepted topology.
- var _ lineOwnerReader = (*Publisher)(nil): dropping the method is a build error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:55:01 -08:00
pingqiu eb906bb4ff fix: retain marker-free permanent errors and log unknown types once 2026-11-22 06:49:08 -08:00
pingqiu 8e721baa3c Merge branch 'docs/owner-label-simulation-index' into fix/frontend-error-class 2026-11-22 06:42:27 -08:00