Commit Graph
2554 Commits
Author SHA1 Message Date
pingqiuandClaude Fable 5.2 eba1949fb1 ci: public-text check: header-like added lines, backslash paths, unreadable inputs
An added line that begins with '++ ' is an added line, not a diff header;
the share path is matched with either slash; a missing title or
description file, an unknown commit or a failing grep is an error (exit 2),
never 'clean'. Controls for each in the self-test; each fails on the
previous script.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:32:48 -08:00
pingqiuandClaude Fable 5.2 abff195976 ci: refuse internal names in a pull request's public text
A check on the lines a pull request adds, its commit messages, its title
and its description: internal seat names and internal file-share paths
are refused, each hit printed with file and line. Runs beside the spec
trace check from the base branch; no pull request code is run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 06:27:33 -08:00
Ping Qiu 0218544115 Merge pull request #426 from seaweedfs/train/20261122-22
Train 22 (P0 train A): Part T, primary holder identity, one server id per host, one line-owner function
2026-11-22 05:56:58 -08:00
pingqiu 9972921e6b Merge #411 + #416 + #423: holder identity (server id + replica id), one server id per host, one line-owner function
# Conflicts:
#	docs/design/invariants.md
2026-11-22 05:23:44 -08:00
pingqiu 38aa1f529b Merge #422: Part T, terms bound to code 2026-11-22 05:23:07 -08:00
pingqiu d65ac54ffb fix(master): capture line owner and bind its model trace 2026-11-22 05:22:16 -08:00
pingqiuandClaude Opus 5.5 31878ce8d8 docs: re-apply the #416 trace on #411's final docs: Part A guards, volume diagram edge, INV-AUTH and NONBLOCKING rows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:22 -08:00
pingqiuandClaude Opus 5.5 a2e9930d49 fix: the iSCSI multipath grouping binds IQN and LUN; NONBLOCKING row names the live renewal control
codex01 review of #416 2cba5881: two primary-owned units of one IQN (q/LUN1 at A, q/LUN2
at B) are two targets, never one multipath target with LUN1 for both. Control added.
INV-WS-RENEW-NONBLOCKING-001 lists TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 8d103b2c85 fix: iSCSI CSI paths bind IQN and LUN; live-renewal held-registration control; lease diagram guard
codex01 review of #416 3439d278 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1: primaryOwnedFrontends keys an iSCSI target by IQN AND LUN, so a supporting q/LUN2 never
  becomes a multipath path of the primary's q/LUN1 (mismatch and nonzero-match controls).
- P2: TestLiveRenewalDoesNotWaitForAHeldRegistrationWrite renews through holderMatches over
  gRPC while a registration write is held (NodeInventoryStore.HoldWritesForTest), and shows
  the hold is real.
- Standards: the workspace lease diagram's holder edges name the registered-host guard; the
  snapshot test's control reader has a bounded, owned join.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 e7d0114b1d docs: the volume role diagram's adopt edge names the registered-host delivery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 abc57ceb61 fix: registry read from a committed snapshot; CSI publishes only a primary-owned target; deletion keeps the stream check
codex01 review of #416 e56f1de1 (INV-AUTH-HOLDER-IDENTITY-001, INV-WS-RENEW-NONBLOCKING-001):
- P1-1: the holder host check reads NodeInventoryStore.GetNodeSnapshot (published after each
  committed write), never the store mutex RegisterNode holds across file I/O.
  Held-registration-write control in core/lifecycle.
- P1-2: a primary slot with no frontend lists nothing; status frontends carry their replica
  (FrontendTarget.replica_id = 8); CSI publishes a target only when the primary has a usable
  frontend, another replica's frontend joining only as an extra path to the same target.
  Real CSI lookup negatives (no primary frontend; rejected loopback primary).
- P2: a deletion-reserved workspace volume keeps the assignment stream host check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 fc6365232b fix: no portal without the primary's holder evidence; the primary row is the issued holder
codex01 review of #416 (INV-AUTH-HOLDER-IDENTITY-001):
- P1: when the line's server has no evidence for the primary, QueryVolumeStatus lists no
  frontend, so CSI never publishes a supporting replica's frontend under the primary.
  Real CSI ControlStatusLookup negative (old host only: not found) and positive cases.
- P2: the primary replica row (server id, node, frontend) is the issued holder as a whole.
- Row: guard trace (Enforced in), tests, host scope and limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 772cdef3ae test: the workspace assignment stream names its server id
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 cf40f8a5b5 test: in-process workspace RPCs carry a loopback peer; workspace holders are registered
The holder host check (INV-AUTH-HOLDER-IDENTITY-001) reads the gRPC network peer and
requires a registered server id; tests that call the service in-process now arrive as
from 127.0.0.1, and tests that renew as node-a register it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 b38462d01a fix: workspace holder RPCs refuse a server id from a host other than its registered one
INV-AUTH-HOLDER-IDENTITY-001 (claude06 review of #416; claude01 decisions):
- holderMatches (lease renew and revocation ACK) refuses an unregistered server id and a
  call whose gRPC network peer is not on the host registered for its server id.
- SubscribeAssignments refuses the same for a workspace volume, so the line is never
  delivered to a second host with a copied --server-id; SubscribeRequest carries the
  subscriber's server_id (field 4), sent by the volume.
- Refusals are logged. The heartbeat check stays (observations).
- Limits: trusts the network peer address (no NAT or proxy between volume and master in
  OSS); not authentication.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 f53bddf24e test: displayed primary is the issued holder, not the placement slot; id renamed to INV-AUTH-HOLDER-IDENTITY-001
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 9db53255ff test: derive the holder's portal from the fixture; documentation-range address for the stale claim
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 5c912694b1 fix: one server id names one host; portal and primary from the line server
INV-ASSIGNMENT-HOLDER-IDENTITY-001.
- ReportHeartbeat refuses (FailedPrecondition) a heartbeat whose slot addresses are
  on a host other than the one registered for its server id. Only the host part is
  compared; several server ids on one host stay allowed; an unregistered id has
  nothing to contradict.
- QueryVolumeStatus lists the primary's frontends from the server on the authority
  line (workspaceSourceHost), never a fresher same-replica claim from another server.
- ClusterStatus primary node is the line's server (issued holder), not placement, and
  the primary replica's evidence and publish target come only from that server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiuandClaude Opus 5.5 6ff7a6a2b7 test: red: a server id from a second host; portal and primary from the line server
INV-ASSIGNMENT-HOLDER-IDENTITY-001: the same --server-id reported from a host other
than its registered one must be refused, and the CSI portal and displayed primary must
come from the server on the authority line, not the freshest heartbeat.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:44:21 -08:00
pingqiu c4720afa3a docs(status): regenerate warning schema for routing diagnostics 2026-11-22 04:43:09 -08:00
Ping Qiu 06067e2271 Merge pull request #424 from seaweedfs/train/20261122-21
Train 21: hostlimit urgent-pending + launch checks, standalone planned handover test
2026-11-22 04:30:44 -08:00
pingqiu f388f2c357 docs(authority): reconcile exclusion guard and repair invariant status 2026-11-22 04:25:22 -08:00
pingqiu 165c6b0330 docs(authority): trace same-epoch candidate admission refusal 2026-11-22 04:10:56 -08:00
pingqiu 2ff0e765d9 fix(volume): retain recorded owner for an assignment epoch 2026-11-22 04:10:34 -08:00
pingqiuandClaude Opus 5.5 ef3d1d03f6 docs: Part T, the refusal to adopt is the holder safety rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 04:10:28 -08:00
pingqiu 56cd0275db test(volume): reject same-epoch changes of recorded owner 2026-11-22 04:10:04 -08:00
pingqiu c8522ed198 test: retain stale assignment before foreign delivery then replay 2026-11-22 04:01:34 -08:00
pingqiu f951c0102c fix: refuse stale self assignment behind observed foreign lineage 2026-11-22 04:00:11 -08:00
pingqiu 22037e1ce5 test: trace forced-move deliveries and reject stale self replay 2026-11-22 03:59:20 -08:00
pingqiuandClaude Opus 5.5 0d4a511954 docs: Part T, the line owner is carried in the published line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:55:00 -08:00
pingqiu 9f54c4f155 test: equal foreign replay does not supersede an adopted holder 2026-11-22 03:52:43 -08:00
pingqiu e6a996cca1 fix: treat advertised endpoints as routing data not holder identity 2026-11-22 03:51:13 -08:00
pingqiu 0a0eeb72cc test: own holder adopts endpoint aliases and reports warning 2026-11-22 03:50:15 -08:00
pingqiu 951c0f020c diagnostics: show assignment endpoint and lineage refusal inputs 2026-11-22 03:45:11 -08:00
pingqiu e803a8269b test: retain early endpoint and same-epoch supersession controls 2026-11-22 03:40:08 -08:00
pingqiu 1d4e29a07a fix: fence foreign facts only after adopted lineage is superseded 2026-11-22 03:39:13 -08:00
pingqiu 66e0dae7ff test: withdraw endpoint special case and pin foreign stream ordering 2026-11-22 03:38:52 -08:00
pingqiu da9d92c691 fix: recover own endpoint refusal on valid readiness replay 2026-11-22 03:35:52 -08:00
pingqiu d5c8d76145 test: reproduce own handoff poisoned before readiness replay 2026-11-22 03:34:59 -08:00
pingqiuandClaude Opus 5.5 e31d2fb8a9 docs: Part T, the line owner is decided by Host.workspaceLineOwner (on #423)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:32:38 -08:00
pingqiu 44081b34b4 Merge #406: test the documented standalone planned handover 2026-11-22 03:29:24 -08:00
pingqiu 75b0bc731d Merge #384: hostlimit background cuts wait while urgent work is pending; launch checks
# Conflicts:
#	docs/design/invariants.md
2026-11-22 03:29:24 -08:00
Ping Qiu efa42fe5ec Merge pull request #417 from seaweedfs/train/20261122-20
Train 20: v3 STUB promotion, map prepare prior-live guard, per-package CI limit
2026-11-22 03:28:36 -08:00
pingqiuandClaude Opus 5.5 9efdea867d docs: Part T, serving is decided by StorageBackend.AdmitsIO (on #410)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:25:15 -08:00
pingqiuandClaude Opus 5.5 7cf8c8c961 docs: Part T, the HEAD fence after startup exits on #410
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:11:03 -08:00
pingqiuandClaude Opus 5.5 6520134446 docs: Part T binds shared terms to one deciding function each
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 03:09:23 -08:00
pingqiu 9d6b978d83 test: carry holder server in CLI master fixtures 2026-11-22 02:02:31 -08:00
pingqiu 7c6fbf8a3b Merge #413: give a touched heavy package 20 minutes 2026-11-22 01:59:26 -08:00
pingqiu 649ad323dc Merge #408: v3 map prepare refuses a prior root released before its live-set snapshot
# Conflicts:
#	docs/design/invariants.md
2026-11-22 01:59:26 -08:00
pingqiu d1645e0833 Merge #405: promote 15 format-v3 rows whose statements a default test asserts 2026-11-22 01:59:06 -08:00