Commit Graph
18 Commits
Author SHA1 Message Date
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