Commit Graph
24 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 55562d718e blockvolume: a master's final exit wins over a newer HEAD version
The newer-HEAD-version exit (78 head_newer_version) is chosen before the
master's final reasons, so a startup that also met a final refusal keeps
its exit: moved and deleted stay 78 with their reason, revoked stays 79.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:55:02 -08:00
pingqiuandClaude Opus 5.5 b0433c4bbf blockvolume: a newer HEAD or store format exits 78, not a restart loop
A startup that ends on a HEAD written by a newer version exits 78
head_newer_version instead of the restartable 75 (a restart reads the same
HEAD again), and a fatal open of a store written by a newer format exits 78
store_format_newer instead of 1. The provider latches the newer-version
refusal per recovery, beside the identity refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 14:55:02 -08:00
pingqiu 8897b14971 feat: stop restarted holders after recorded revocation 2026-11-29 15:51:36 -08:00
pingqiuandClaude Opus 5.5 d35deb9fb5 fix(blockvolume): ask a revocation ACK again until the lease deadline
An ACK call that got no answer (DeadlineExceeded, Unavailable) is made
again until the lease deadline; the master answers a repeat of a recorded
ACK as recorded, so a busy master no longer turns a clean stop into exit
75. The closeout wait becomes 19 s: the units' TimeoutStopSec=30s less
the 5 s drain, the 5 s exit wait and 1 s margin. blockmaster logs each
AckWorkspaceRevoked step's time (lock, HEAD read, recorded, answered).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 12:25:48 -08:00
pingqiuandClaude Opus 5.5 c8b4754258 fix(volume): the revocation ACK's bound exceeds what the master spends on it
The holder gave its revocation ACK call 2 s and the closeout 3 s, while the
master's handler spends up to 2 s on its bounded HEAD read and then writes
the ACK and reconciles the bindings (about 0.3 s, measured), behind its
workspace lock. A slow but successful ACK could fail at the holder (exit
75), also after the master recorded it.

WorkspaceAckTimeout (5 s, about 2.7 s above the master's measured steps,
stated in its comment) bounds the ACK call, still within the lease
deadline; the post-drain closeout is that plus 1 s. Constants only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:45:37 -08:00
pingqiu ba3b6c3868 fix: refuse mismatched launcher layout identities without retry 2026-11-25 15:51:59 -08:00
pingqiu bfeab6ca94 fix: terminate a restarted moved source with typed MOVED and exit 78 2026-11-24 19:35:30 -08:00
pingqiuandClaude Opus 5.5 be75beed90 fix: a typed moved/deleted refusal names the exit; status schema doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 22:27:32 -08:00
pingqiuandClaude Opus 5.5 15f980f638 feat: a workspace primary waits for an unreachable master
The startup authority wait no longer runs out while blockmaster gives no
reply or refuses the node's credentials. Its 30 s bound counts from the
first answered contact, or from the master's barrier time when later;
a typed MOVED or DELETED renewal refusal ends it at once with exit 78.
Before its first grant the lease guard sleeps until the barrier time
instead of polling every second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 21:22:43 -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 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
pingqiu 564c0df27f fix(blockvolume): restore workspace drain diagnostic 2026-11-22 07:12:31 -08:00
pingqiu 0a01e8156c test: use neutral startup qualification names 2026-11-22 06:34:39 -08:00
pingqiu 1da0c2905d fix: use guard fence ownership and one workspace exit decision 2026-11-22 03:22:28 -08:00
pingqiu c2edb7305c fix: carry foreign HEAD claim proof to startup exit classification 2026-11-22 01:26:01 -08:00
pingqiu 7600be4e81 fix: preserve retained startup and planned-drain ownership 2026-11-22 01:01:28 -08:00
pingqiu 85139083d6 test: schedule planned-drain expiry at provider outcome seam 2026-11-22 00:58:15 -08:00
pingqiu 3daa1d2162 fix: compare supersede exits with latest own authority lineage 2026-11-22 00:46:24 -08:00
pingqiu 5646cad928 fix: keep signal and acknowledged revoke status immutable during cleanup 2026-11-22 00:17:48 -08:00
pingqiu 741cdbfbc9 fix: deliver the first process exit through one immutable buffered slot 2026-11-22 00:17:12 -08:00
pingqiu 41dfb5ec90 docs: trace workspace process exits and show supervisor restart lifecycle 2026-11-22 00:06:21 -08:00
pingqiu d060e9ab3f fix: retain sealed startup and atomically choose the current recovery exit 2026-11-21 23:59:38 -08:00
pingqiu 8b4fd25776 fix: preserve acknowledged planned-stop status and witness stuck cleanup exit 2026-11-21 23:53:57 -08:00
pingqiu 5d730c1ecc fix: latch exhausted workspace startup and bound process retry exit 2026-11-21 23:52:54 -08:00