Commit Graph
133 Commits
Author SHA1 Message Date
pingqiuandClaude Opus 5.5 5bf6e17ab1 replication, master, volume: count a peer only with the master-recorded store
A peer counts toward write ACKs only while its barrier store equals the
store the master recorded for it from a primary's attestation, carried in
the replica descriptor; empty never matches, and the peer's own word never
changes it. A record change re-sends the assignment at the same
generation and the primary updates expected stores in place.

A volume's first bind records its initial replicas: until each has an
attested store the fact carries the awaited count, the primary serves no
frontend I/O and reports "creating: waiting for replica attestations
(n of N)"; the primary learns new peers' stores with a barrier at LSN 0.
Replica rows show store_attested/store_id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 06:43:45 -08:00
pingqiuandClaude Opus 5.5 e79996437f wip: P2 primary fence below the floor refused; P3 test; basis census; test stand-ins state a basis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 05:54:29 -08:00
pingqiuandClaude Opus 5.5 726ec9dc0a wip: a lagging replica is fenced and counted; the target holds the highest fenced end
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:03:08 -08:00
pingqiuandClaude Opus 5.5 939fe74a8b wip: master side of the fencing round, and the heal after a failed one
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 03:51:58 -08:00
pingqiuandClaude Opus 5.5 c9fe8a7123 authority, master: one decider: a primary change is published only through the promotion gate
The promotion gate (one function: the probe round's answers -> the allowed
replica and its evidence) now covers every replicated volume, RF2
included: on main RF2 and every observation-fed failover promoted on
heartbeat readiness with no evidence of the candidate's data. The gate
puts its evidence on the slot it allows; the controller's failover and
rebalance carry it and publish nothing without it. The legacy PolicyOwner
(no production caller) is deleted. Failback is the operator's planned move
through the gate: the target is probed by the round, and the move is
allowed only when the target is in every acknowledgement set (sync_all at
any replica count, sync_quorum with RF2); RF3 sync_quorum (needs a seal)
and best_effort (forced only) are refused with typed errors.

About forty tests encoded the evidence-free decision. Their subjects are
unchanged; each now gets the candidate's evidence the way the gate gives
it (the controller's candidate helper, the convergence snapshots, a
stand-in gate sink for the observation-fed routes, a static round answer
for the RF2 and failback tests). None is skipped or loosened. New: ready
replicas without the gate's evidence promote nothing; RF2 promotes on a
ready answer and not without one; the planned-move guard, one row per ack
profile and replica count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 03:23:18 -08:00
pingqiuandClaude Opus 5.5 e82abea6b8 k8s: Kubernetes installs run blockmaster with mutual TLS; the plaintext off-host bind flag is refused
blockmaster refuses --insecure-external-bind (a non-loopback --listen needs
mutual TLS; the runtime HTTP listener stays on loopback), and
--launcher-master-tls-secret-prefix makes each generated volume mount its
server's node certificate Secret and dial with it. The chart, the launcher
renderer, the alpha/g15b/g15d manifests and gate scripts mount the Secrets
and pass the TLS flags; network.externalStatus and the frontend runtime
HTTP option fail the render. scripts/k8s-alpha-certs.sh issues development
certificates and the role file. The systemd startup gate runs its
off-loopback master with mutual TLS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 00:20:11 -08:00
pingqiuandClaude Opus 5.5 dc359e16c8 sw-block: mutual TLS to blockmaster from SW_BLOCK_TLS_CERT/_KEY/_CA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:12:42 -08:00
pingqiuandClaude Opus 5.5 7fff8f288e fold: injected failback dial through link.DialWith; AST guard covers raw client constructors and import aliases
- link.DialWith(target, opts...) builds a link with exactly the caller's
  options (no default credentials); the failback runtime uses it for injected
  options, so its prior semantics hold and no production file calls
  grpc.NewClient directly.
- The guard parses every non-test file and finds grpc.NewClient / Dial /
  DialContext / NewServer and insecure.NewCredentials under any import name
  (alias or dot import); a detector test proves each form is found and a
  link-only file is clean; routing failback back to grpc.NewClient fails the
  guard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:38:41 -08:00
pingqiuandClaude Opus 5.5 a600bb8e2b rpc/link: one dial helper and one server builder for every gRPC link
core/rpc/link builds every gRPC link: Dial is grpc.NewClient with plaintext
credentials exactly as before (caller options follow), NewServer runs the
caller's unary and stream interceptors in order (none by default). Every
production site now goes through it: nine dials to blockmaster, the two
SeaweedFS dials and both servers; the failback runtime keeps its injected
dial options unchanged. No behaviour change.

INV-SEC-ONE-SEAM-001: a guard test fails if a non-test file outside the
package creates insecure credentials or a raw gRPC server (red on the base: it
lists the 12 files with the 13 raw sites).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 06:24:58 -08:00
pingqiuandClaude Opus 5.5 951fa7985e test: the four reproductions skip unless SEAWEED_KNOWN_BUGS=1 (#186 #187 #188 #189)
Each names its open issue; the fix PR removes its skip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:11:08 -08:00
pingqiu 5951a0892d test: record chart, cleanup freshness, and multiblock version findings 2026-11-16 19:17:43 -08:00
pingqiuandClaude Opus 5.5 48db2739ec ci: add a test workflow (build, vet, go test -short) and harden dead-port tests
- .github/workflows/test.yml, job 'go test (linux)': on pull_request and on
  push to main; Go from go.mod; go build ./..., go vet ./..., and
  go test -short -count=1 -timeout 10m ./... with CGO_ENABLED=0. Actions are
  pinned by commit SHA, permissions are contents: read, and a new push to a
  PR cancels the older run.
- core/ops/surface_test.go: fix the two go vet warnings (resp used before
  the error check), so vet covers the whole module.
- cmd/blockvolume: a withdrawn port no longer has to answer ECONNREFUSED.
  A successful connect still fails; any other dial error passes only if the
  address can be bound again.
- core/host/volume: probe tests dial a listener they opened and closed,
  not the fixed 127.0.0.1:1.
- core/replication/component: on failure, the G5-5C and G9A catch-up tests
  log frontiers, peer status and the engine trace. Assertions and timeouts
  are unchanged.

Test files and the workflow only; no product code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:47:44 -08:00
pingqiu 0dce26d2b0 phase165: add kubernetes nvme rdma publish attach 2026-07-18 03:03:54 -07:00
pingqiu 6ba6634b16 phase121: add data plane address capability 2026-07-02 18:00:21 -07:00
pingqiu 8a973ba71f phase114: validate multi-volume nvme mounted path isolation 2026-06-30 05:57:45 -07:00
Ping Qiu 9b4e5876d6 phase110: prove nvme path-loss support surfaces (#61) 2026-06-29 21:13:39 -07:00
Ping Qiu 6c6d61253a phase109: prove nvme tcp status surfaces (#60) 2026-06-29 16:26:24 -07:00
pingqiu 77235eb6a5 phase105: gate nvme tcp topology boundary 2026-06-29 00:37:47 -07:00
pingqiu 24948efa23 phase101: gate nvme path failure status 2026-06-28 01:34:31 -07:00
pingqiu b62dd8745c phase101: surface nvme path status 2026-06-28 01:28:31 -07:00
pingqiu 9c86dc5f35 phase98: close failback frontend workload loop 2026-06-26 17:23:41 -07:00
pingqiu 4e8a6a10b3 phase97: wire frontend publication executor callsite 2026-06-26 16:07:26 -07:00
pingqiu dcad5161b6 phase96: plan frontend publication after failback 2026-06-26 15:54:20 -07:00
pingqiu 5e2b80f5cd phase93: validate failback handoff isolation 2026-06-26 12:58:24 -07:00
pingqiu 7cfd2ae1a5 phase92: validate failback target executor handoff 2026-06-26 12:53:49 -07:00
pingqiu 55d2b4d8d7 phase91: gate failback target activation policy 2026-06-26 12:49:34 -07:00
pingqiu 32738065fe phase90: gate failback targets on authority facts 2026-06-26 12:41:25 -07:00
pingqiu 7f554c9296 phase89: project authority facts to volume status 2026-06-26 12:35:14 -07:00
pingqiu 1b84716199 phase86: decouple failback grpc runtime endpoint 2026-06-26 11:47:05 -07:00
pingqiu d64be9430b phase85: prove failback executor policy safety 2026-06-26 11:43:43 -07:00
pingqiu 32ab6430e6 phase82: add failback executor grpc runtime 2026-06-26 11:28:59 -07:00
pingqiu 240e47b99b phase79: wire failback authority callsite 2026-06-26 11:07:08 -07:00
pingqiu 302816a53c phase78: add failback authority runtime seam 2026-06-26 11:00:03 -07:00
pingqiu 0964e3fab6 phase77: add failback runtime contract 2026-06-26 00:44:08 -07:00
pingqiu a8a11deb37 phase76: add failback executor boundary 2026-06-25 19:31:46 -07:00
pingqiu 90697fa45e phase75: add returned replica failback target owner 2026-06-25 19:02:39 -07:00
pingqiu 54699f00e1 phase74: expose returned replica failback contract 2026-06-25 18:47:04 -07:00
pingqiu f5ca43780d phase73: guard frontend publication authority owner 2026-06-25 18:36:25 -07:00
pingqiu 04e147323b phase72: add frontend publication runtime contract 2026-06-25 15:40:43 -07:00
pingqiu 272b6a1154 phase70: add frontend publication executor boundary 2026-06-25 10:43:40 -07:00
pingqiu de5f57fd9a phase69: add frontend publication target contract 2026-06-25 10:31:53 -07:00
pingqiu ff8bfeab9c phase68: surface frontend publication preflight 2026-06-25 10:17:09 -07:00
pingqiu 83e18f1073 phase67: publish ack eligibility after rebuild catch-up 2026-06-25 02:11:38 -07:00
pingqiu a36aed796f phase66: add caught-up publication preflight 2026-06-25 01:45:43 -07:00
pingqiu 1dde8647af phase65: add runtime terminal evidence 2026-06-25 01:39:32 -07:00
pingqiu 869e64f858 phase64: add blockvolume runtime rebuild endpoint 2026-06-25 01:28:45 -07:00
pingqiu 62f2a61444 phase63: add rebuild runtime target contract 2026-06-25 01:14:03 -07:00
pingqiu 669527965f phase62: add authority executor http runtime 2026-06-24 17:06:02 -07:00
pingqiu 6d0fd32b14 phase61: add authority executor rebuild runtime seam 2026-06-23 21:24:32 -07:00
pingqiu be9fda550e phase58: add rebuild target owner 2026-06-23 16:51:52 -07:00