diff --git a/seaweed-block/README.md b/seaweed-block/README.md
index c53d65fd04..fd94cb34b8 100644
--- a/seaweed-block/README.md
+++ b/seaweed-block/README.md
@@ -1,408 +1,229 @@
# Seaweed Block
+Block storage written in Go: a local-speed block device whose ownership is
+fenced by epochs. It serves agent workspace disks backed by
+[SeaweedFS](https://github.com/seaweedfs/seaweedfs) snapshots, and Kubernetes
+block volumes (alpha).
+
-
+
-Seaweed Block is a block storage service written in Go. It has two uses:
+## What it is
-1. **Agent workspace disks (new).** Each agent sandbox or microVM gets a
- local-speed block device. Snapshots, forks and host moves are cheap because
- the data is stored as content chunks in [SeaweedFS](https://github.com/seaweedfs/seaweedfs).
-2. **Kubernetes block volumes (alpha).** PVC-backed volumes through a CSI driver,
- with RF=3 replication, iSCSI or NVMe/TCP, and read-only operations evidence.
- See [Kubernetes block storage](#kubernetes-block-storage-alpha).
+| | Agent workspace disks | Kubernetes block volumes |
+|---|---|---|
+| Consumer | an agent sandbox or microVM, as a plain virtio block device | an app pod, through a PVC and the CSI driver |
+| Frontend | NVMe/TCP loopback or ublk | iSCSI, or NVMe/TCP (source-gated) |
+| Durability | one local replica, with cuts to SeaweedFS | RF=1 with best-effort ack by default; synchronous RF=2 or RF=3 (`sync-quorum`, `sync-all`) when configured, in a supported lab |
+| Maturity | proof of concept | alpha |
-## Agent workspace disks
+Both uses share one core. `blockvolume` serves one volume replica; its
+frontends turn block requests into a single Read / Write / Sync contract, and
+`Sync` is the only durability point. Writes land in a local WAL engine,
+`walstore` (a WAL plus an extent). `blockvolume --durable-impl` defaults to
+auto: a new volume is created as `walstore` and an existing one opens with its
+on-disk format; auto refuses a `walstore-chunk` root, which needs
+`--durable-impl=walstore-chunk` with its remote configuration. `smartwal` is
+experimental. `blockmaster` is the only component that mints epochs. Each
+`blockvolume` admits I/O only while its local view of the assignment is
+current: a deposed primary refuses I/O once it observes the new assignment or
+a fence, or once its workspace lease expires. That is a local admission rule,
+not an instant global revocation. Separately, every remote HEAD publish is a
+conditional update on `{gen, epoch}`, so the store refuses a stale holder's
+publish even before that holder notices it was replaced. The [design
+reference](docs/design/block-design.md) covers each part, its invariants, the
+tests behind them and the known issues.
-An agent sandbox needs a disk that works like a laptop disk (`npm ci`,
-`git clone`, compilers, SQLite), and it also needs snapshot, fork, rollback and
-restore-on-another-host. Seaweed Block gives each workspace:
+## Highlights
-- **A local-speed disk.** The volume runs next to the VM. The guest sees a
- plain virtio block device through NVMe/TCP loopback or a ublk device. Writes
- and `fsync` complete against a local write-ahead log, and nothing waits on
- the network.
-- **Durable, incremental snapshots in SeaweedFS.** A cut uploads only the 4 MiB
- chunks changed since the last cut. Chunks are immutable. The volume's state
- is a small HEAD manifest, a root of about 2 KB that points at segment
- manifests, and every publish is a fenced, conditional update of that root.
-- **Cheap snapshot and fork.** A snapshot or fork copies only the HEAD root;
- chunks are shared. Unreferenced chunks are reclaimed by a two-phase, graced
- GC.
-- **Move to any host.** Detach on one host. Another host takes over with a
- higher epoch, starts from the HEAD alone and fetches chunks lazily on first
- read. A stale holder cannot publish after takeover, because every HEAD
- update is conditional on `{gen, epoch}`.
-- **Single replica by design.** Workspaces run with one local replica, and
- durability comes from SeaweedFS snapshots, so there is no synchronous
- replication on the write path. Losing a host loses at most the writes since
- the last cut. Cut on semantic points: after an agent step, before a risky
+**Agent workspace disks**
+
+- **Local-speed disk.** Writes and `fsync` complete against the local WAL;
+ nothing on the write path waits on the network.
+- **Incremental snapshots.** A cut uploads only the changed 4 MiB chunks.
+ Chunks are immutable; the volume's state is a HEAD root of about 2 KB, and
+ every publish is a conditional update on `{gen, epoch}`.
+- **Cheap snapshot and fork.** Both copy only the HEAD root; chunks are shared.
+ A two-phase, graced GC reclaims unreferenced chunks.
+- **Move to any host.** Another host takes over with a higher epoch and fetches
+ chunks lazily on first read. A stale holder cannot publish.
+- **Single replica by design.** Losing a host loses at most the writes since
+ the last cut. Cut at semantic points: after an agent step, before a risky
command, on detach.
-```text
-agent microVM ──virtio-blk──> blockvolume (local WAL + extent)
- │ cut: changed chunks only
- ▼
- SeaweedFS (immutable chunks + HEAD manifest)
- │ snapshot / fork = copy HEAD root
- ▼
- another host: take over HEAD (epoch+1), lazy-load chunks
+**Kubernetes block volumes (alpha)**: Helm install, dynamic PVCs, RF=3
+recovery gates in a supported lab, support-bundle replay, and negative-first
+read-only status (stale evidence is `Ready=Unknown`, never a false ready).
+
+## Measured results
+
+Lab runs, median of 3; not SLOs. Workloads: Firecracker microVMs (4 vCPU,
+4 GiB) on one bare-metal host over NVMe/TCP loopback, against a local
+file-backed disk. Snapshot and fork: a host-side proxy without network
+latency, guest `fsync` or the block frontend.
+
+| Measurement | Seaweed Block | Local disk |
+|---|---|---|
+| `npm ci` (617 packages, offline) / `git clone` (Go 1.23, local) | 2.14 s / 7.10 s | 2.14 s / 6.99 s |
+| Untar 100,000 files / cold `find` + `stat` over them | 1.10 s / 0.32 s | 1.06 s / 0.33 s |
+| 2,000 × create + write + `fsync` | 14.33 s | 6.09 s |
+| Snapshot / fork of a 10 GiB volume (2,560 chunks) | 0.18 ms / 0.29 ms | |
+| Two-host lifecycle: create, snapshot, fork, move, stale holder, delete, GC | 35 of 35 checks | |
+
+Metadata-heavy workloads run at local-disk speed. The cost in these runs is
+`fsync` latency, about 7 ms against 3 ms local, measured with the NVMe/TCP
+loopback frontend. The ublk frontend and per-stage `fsync` histograms are on
+`main` now; latency improvement is in progress.
+[Workspace measurements](docs/workspace-measurements.md) has every number and
+how each was measured.
+
+## Install
+
+The binaries are `blockmaster`, `blockvolume` and the `sw-block` CLI; there is
+no versioned release yet. **Option 1:** copy them from the image that every
+push to `main` publishes (`sha-<12-character commit>`; this one is `04e76603`,
+not a release):
+
+```bash
+TAG=sha-04e7660398c3
+docker create --name swb-extract ghcr.io/seaweedfs/seaweed-block:$TAG
+for b in blockmaster blockvolume sw-block; do docker cp swb-extract:/usr/local/bin/$b .; done
+docker rm swb-extract && ./blockvolume --version
```
-### Measured
+**Option 2:** build from source (the Go version in `go.mod`):
+```bash
+git clone https://github.com/seaweedfs/seaweed-block && cd seaweed-block
+for b in blockmaster blockvolume sw-block; do go build -o $b ./cmd/$b; done
+```
-The workload and lifecycle numbers come from lab runs with Firecracker
-microVMs (4 vCPU, 4 GiB, guest kernel 6.1). The snapshot, fork and cut numbers
-come from a host-side proxy, described with their table. Each number is the
-median of 3 runs. They are measurements, not SLOs.
+**Option 3:** Helm, see the [Kubernetes quick start](#quick-start-kubernetes-alpha).
+Services: [standalone deployment](docs/standalone-deployment.md).
-**Workspace workloads, Seaweed Block disk vs a local file-backed disk** (one
-bare-metal host; NVMe/TCP loopback; seconds):
+## Try it
-| Workload | Seaweed Block | Local disk |
-|---|---|---|
-| `npm ci` (617 packages, offline) | 2.14 | 2.14 |
-| `git clone` (Go 1.23 repository, local) | 7.10 | 6.99 |
-| Untar 5,000 files | 0.31 | 0.31 |
-| Untar a 100,000-file tree | 1.10 | 1.06 |
-| `find` + `stat` over 100,000 files (cold) | 0.32 | 0.33 |
-| 2,000 × create + write + `fsync` | 14.33 | 6.09 |
+The [first volume check](docs/standalone-deployment.md#first-volume-read-only-check)
+starts `blockmaster` and one `blockvolume`, attaches a 256 MiB volume over
+NVMe/TCP on loopback, shows the device and its status, and stops. It does
+not format or write the attached device; it only creates local backing files
+and logs. It needs Linux, bash, `nvme-cli`, `sudo` and the binaries
+above. To format and write, use the [write test](docs/standalone-deployment.md#write-test-scratch-host-only) (scratch host only).
-- Metadata-heavy agent workloads run at local-disk speed, because the guest
- kernel absorbs metadata and the block device only sees batched writes.
-- Every guest `fsync` was verified to reach the backend sync: about 2 NVMe
- flushes per `fsync`, and zero in an unsafe-cache control.
-- The cost today is `fsync` latency, about 7 ms against 3 ms local. Work in
- progress to close that gap: the ublk frontend, group commit, and a per-stage
- `fsync` latency breakdown (`/status` histograms).
-- The same comparison on an Azure `D16s_v5` nested-virtualization host gives
- the same picture.
+## Agent workspace disks: chunk lifecycle
-**Snapshot and fork cost** (a 10 GiB volume written as 2,560 chunks of 4 MiB;
-median of 3). This is a host-side proxy, not a guest or network run: chunks are
-local files on a native Linux host, and filer metadata calls use a
-deterministic model, so network latency, guest `fsync` and the block frontend
-are excluded.
+The workspace path runs `blockvolume` with `--durable-impl=walstore-chunk`,
+`--chunk-filer ` and `--chunk-control-endpoint`, against a SeaweedFS
+cluster. The `sw-block ops chunk` commands drive the lifecycle:
-| | Flat manifest | Two-level manifest (current) |
-|---|---|---|
-| HEAD size | 261,531 B | 2,172 B |
-| Snapshot | 5.79 ms | 0.18 ms |
-| Fork | 10.67 ms | 0.29 ms |
-
-In the same proxy, a cut that writes 64 dirty chunks (256 MiB) took a median
-624 ms with one upload at a time and 434 ms with 8 parallel uploads.
-
-**Workspace lifecycle on two hosts** (Firecracker VMs, SeaweedFS chunk backend):
-
-- 35 of 35 checks passed:
- - create;
- - write;
- - snapshot S1 and S2;
- - fork from S1, which is independent of its parent;
- - a clean move to the second host;
- - a stale-holder replay, which is refused;
- - delete the fork and S1, then GC.
-- GC reclaimed 38 of 38 candidate chunks, and every reclaimed chunk returns 404.
-- Everything still referenced read back byte-identical, including the moved
- workspace's digest before and after GC.
-
-### Try the chunk lifecycle
-
-The `sw-block ops chunk` commands drive the workspace lifecycle against a
-running blockmaster and blockvolume (`--durable-impl=walstore-chunk`,
-`--chunk-filer `):
-
-| Command | What it does |
-|---|---|
-| `sw-block ops chunk cut` | Publish the changed chunks and advance HEAD |
-| `sw-block ops chunk snapshot` / `snapshots` | Name a snapshot / list snapshots |
-| `sw-block ops chunk fork` | Create a new volume from a snapshot (root copy only) |
-| `sw-block ops chunk detach` | Final cut and release, ready to resume elsewhere |
-| `sw-block ops chunk volume-delete` | Delete a volume; refused while it is attached or has snapshots |
-| `sw-block ops chunk gc` | Preview or apply two-phase GC of unreferenced chunks |
+```bash
+sw-block ops chunk cut --volume v1 --status-addr # publish changed chunks, advance HEAD
+sw-block ops chunk snapshot --volume v1 --status-addr --name s1 # name a snapshot
+sw-block ops chunk snapshots --volume v1 --chunk-filer # list snapshots
+sw-block ops chunk fork --chunk-filer --source v1 --snapshot s1 --target v2 # root copy only
+sw-block ops chunk detach --volume v1 --status-addr # final cut and release; resume elsewhere
+sw-block ops chunk volume-delete --volume v2 --chunk-filer --master --request-id del-v2
+sw-block ops chunk gc --chunk-filer --master # preview; --apply to reclaim
+```
+`volume-delete` is refused while the volume is attached or has snapshots.
The chunk path (`walstore-chunk`) is a proof of concept. It is not yet a
default, a release claim or a production path.
-### Correctness work
+## Quick start: Kubernetes (alpha)
-- **Formal models.** The chunk lifecycle, host takeover, and WAL crash
- recovery protocols are model-checked with TLA+ and TLC. Counterexamples found
- this way became fixes and regression tests, for example the persisted-tail
- WAL reuse fix and last-writer-wins recovery replay.
-- **Fail closed.** Recovery reports typed reasons such as `wal_corrupt` and
- `io_error` instead of serving uncertain data.
+For supported lab clusters, not production. From the repository root, with
+`kubectl` and `helm` configured:
+
+```bash
+go build -o sw-block ./cmd/sw-block && export PATH="$PWD:$PATH"
+sw-block ops generate-helm-values --out values.day1.yaml \
+ --image ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b \
+ --csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
+helm install sw-block charts/seaweed-block --namespace kube-system \
+ --create-namespace -f values.day1.yaml --wait --timeout 10m
+SW_BLOCK_INSTALL_MODE=helm SW_BLOCK_HELM_RELEASE=sw-block \
+SW_BLOCK_HELM_NAMESPACE=kube-system SW_BLOCK_HELM_VALUES_FILE=values.day1.yaml \
+ bash scripts/run-basic-app-example.sh "$PWD"
+```
+
+The last command writes a PVC from one pod and reads it from a replacement
+pod; expect `first_volume_status=ok` in
+`/tmp/sw-block-basic-app-*/first-volume-summary.txt`. `sha-dc2972d0059b` is
+the validated tag for the v0.4 read-only status path; later paths need
+matching [release images](docs/kubernetes-status.md#release-images), and
+`:alpha` is for smoke tests only. Each step's output is in the [Kubernetes
+quickstart](docs/quickstart-kubernetes.md). To clean up:
+
+```bash
+helm uninstall sw-block --namespace kube-system
+bash scripts/uninstall-k8s-alpha.sh "$PWD" && bash scripts/verify-helm-cleanup.sh
+```
+
+
+## Status
+
+| Area | Status |
+|---|---|
+| Agent workspace disks (`walstore-chunk`) | Proof of concept |
+| Kubernetes: Helm install, PVC provisioning, writer/reader check, read-only report and dashboard, CRD status and Events, support-bundle replay | Available (alpha) |
+| Kubernetes: RF=3 multi-volume, CSI reattach recovery, iSCSI ALUA/dm-multipath mounted failover, restart persistence with hostPath | Gated (supported lab) |
+| Kubernetes: `SwBlockVolume` finalizer lifecycle owner, returned-replica ACK eligibility executor | Beta candidate |
+| Kubernetes: NVMe/TCP CSI multipath, returned-replica failback runtime, WAL multi-block record opt-in | Source-gated |
+| Kubernetes: backup, snapshot and restore; returned-replica rebuild traffic | Planned |
+
+Full table and conditions: [Kubernetes status](docs/kubernetes-status.md);
+run evidence: [release notes](docs/releases/README.md).
### Not claimed yet
-- Production readiness, SLOs, or a published performance claim.
-- `fsync` parity with local disk. That is work in progress, as described above.
+- Production readiness, SLOs, or a published performance, RTO or RPO claim.
+- `fsync` parity with local disk (in progress, see Measured results).
- ublk at high density. Unprivileged per-volume servers need a privileged
control broker, which is not done.
- Crash-restart recovery of a ublk server. A crashed server fails closed.
- Multi-replica workspaces combined with chunk snapshots.
-- The `smartwal` storage engine. It is experimental: in-place overwrites
- have no rollback on a torn write, blocks lose their per-block CRC once
- their ring records recycle, the handling of a corrupted committed record
- is still open, and it has no chunk-snapshot support. New volumes use
- `walstore`; `blockvolume --durable-impl` defaults to auto, which creates
- new volumes as `walstore` and opens an existing volume with its on-disk
- format. A `walstore-chunk` volume is refused under auto and needs
- `--durable-impl=walstore-chunk` with its remote configuration.
+- The `smartwal` engine, which is experimental: no rollback for a torn
+ in-place overwrite, no per-block CRC once its ring record recycles, open
+ handling of a corrupted committed record, and no chunk snapshots.
+- Kubernetes: backup and restore, a production operator, automatic failback
+ or cleanup, upgrade execution, broad compatibility, and more: see
+ [what you should not expect yet](docs/kubernetes-status.md#what-you-should-not-expect-yet).
-## Kubernetes block storage (alpha)
+## Correctness and verification
-The Kubernetes path is focused on one user-visible loop:
-
-```text
-install on Kubernetes
--> create a PVC-backed block volume
--> mount it in an app pod
--> write/read data
--> inspect status and support evidence
--> clean up
-```
-
-This is an **alpha** product path for supported lab clusters, not production.
-
-
-
-
-
-### Kubernetes feature & status
-
-| Feature | Status | Feature | Status |
-|---|---|---|---|
-| Kubernetes PVC provisioning | Available | Helm install path | Available |
-| First PVC writer/reader verification | Available | Read-only report/dashboard | Available |
-| Support-bundle replay | Available | Negative-first status reasons | Available |
-| Multi-volume RF=3 lab path | Gated | CSI reattach recovery | Gated |
-| iSCSI ALUA/dm-multipath mounted failover | Gated | Restart persistence with hostPath | Gated |
-| Actionable read-only CRD status + Events | Available | Bounded SwBlockVolume finalizer lifecycle | Beta candidate |
-| Returned-replica ACK eligibility executor | Beta candidate | Returned-replica failback runtime | Source-gated |
-| Returned-replica rebuild traffic | Planned | Frontend publication after failback | Planned |
-| NVMe/TCP CSI multipath + backend write batching | Source-gated | NVMe/RDMA Kubernetes CSI publish/attach | Source-gated |
-| WAL multi-block record opt-in | Source-gated | WAL format default change | Not claimed |
-| Backup/snapshot/restore | Planned | NVMe/RDMA failover or performance SLO | Not claimed |
-| Production SLO/performance claims | Not claimed | Hosted production UI | Not claimed |
-
-### What You Can Do Today
-
-- Install Seaweed Block through Helm on a supported Kubernetes/k3s lab.
-- Create and mount PVC-backed block volumes through normal Kubernetes PVCs.
-- Verify writer/reader persistence with ordinary app pods.
-- Run multiple RF=3 volumes in the gated lab path.
-- Validate gated recovery paths:
- - CSI reattach with pod recreate,
- - iSCSI ALUA + dm-multipath transparent mounted failover on the proven
- Stage-2 path,
- - interleaved multi-volume failover isolation.
-- Inspect cluster, volume, replica, primary, frontend, timeline, and reason
- evidence through read-only CLI/report/dashboard surfaces.
-- Publish the same read-only status into Kubernetes-native `SwBlockCluster` /
- `SwBlockVolume` `.status` and Events on the gated operator-status path.
-- Inspect node readiness, support evidence refs, cleanup-required status, and
- safe read-only/scripted next-step hints through that same status model.
-- Use the beta-candidate lifecycle-owner path to protect `SwBlockVolume` CRs
- with a Seaweed Block finalizer and release it only after clean externally
- supplied cleanup evidence.
-- Inspect install drift status for current versus desired chart/app/image
- identity. This is visibility only, not upgrade execution.
-- In the gated returned-replica path, inspect a bounded authority-executor
- result that records ACK eligibility on `SwBlockReplicaEligibility.status`
- after live evidence proves the old primary remains fenced, the current primary
- is unchanged, and the required durable frontier is covered.
-- From source, run the opt-in returned-replica failback runtime gates. This path
- can move authority through blockmaster only when a `SwBlockReplicaFailback`
- target, explicit execution policy, expected-current evidence, and terminal
- evidence are all present. It is not enabled by default and is not yet a
- published release claim.
-- From source, run the supported-lab NVMe/TCP gates: ANA/direct-host baseline,
- CSI protocol selection, Kubernetes CSI multipath attach for one NQN/NSID with
- multiple NVMe frontend paths, one-path-loss status honesty, mounted pod
- write/read after one observed path loss, mounted pod write/read after the
- removed path is restored, multi-volume mounted path isolation, bounded
- multi-volume path churn, repeated stage/unstage residue checks, a bounded
- writer/reader soak, a baseline over the configured 100GbE TCP frontend
- address, a source-gated CSI-node reconnect owner contract, and a live
- host-path reconnect gate for scoped `nvme disconnect -d` path loss, plus a
- live desired path-set replacement gate where CSI-node connects the new
- desired NVMe path and prunes the stale old host path without remounting the
- pod, and a durable backend full-block write-batching gate with
- product-owned `/status/durable` counters. The source-gated WAL multi-block
- record opt-in has mounted profile and restart/recovery compatibility evidence,
- plus mounted durable-status `HeadLSN` confirmation, but remains default-off
- and requires a future matching-image release smoke before it becomes a public
- image claim. The opt-in NVMe/RDMA path now carries an explicit transport from
- StorageClass through blockmaster publication and CSI NodeStage, mounts a
- dynamic PVC on a second RoCE host, and verifies writer/reader data through a
- standard Linux `nvme connect -t rdma` controller. It remains source-gated.
- These are supported-lab source-gated claims, not broad NVMe compatibility,
- production HA, or performance/SLO claims.
-- Replay support bundles offline.
-
-These are narrow alpha claims tied to documented gates. See
-[release notes](docs/releases/README.md) for exact run evidence.
-
-### What You Should Not Expect Yet
-
-- Production readiness or production SLOs.
-- A production-grade operator or broad mutating admin workflow. The current
- lifecycle-owner owns only the Seaweed Block `SwBlockVolume` protection
- finalizer.
-- Automatic cleanup execution, host repair, or PVC/PV/workload deletion.
- Delete-safety uses externally supplied cleanup evidence.
-- Backup, snapshot, or restore.
-- Returned-replica rebuild traffic, frontend publication after failback, or
- automatic deployed failback. The failback runtime path is explicit, opt-in,
- and source-gated until a release smoke validates it on published images.
-- Transparent Kubernetes node-loss failover without pod recreate.
-- Broad NVMe/RoCE compatibility, performance/SLO, or transparent failover
- parity beyond the documented supported-lab gates. The CSI-node reconnect
- owner, host-path reconnect gate, desired path-set replacement gate, and
- stale path pruning gate exist only as source-gated NVMe/TCP evidence. The
- NVMe/RDMA path has standalone and Kubernetes single-path publish/attach
- evidence, but no RDMA multipath, reconnect/failover, performance, or SLO
- claim.
-- Broad distro/kernel/initiator compatibility.
-- Upgrade or rollback execution. The status layer can report install drift, but
- it does not run Helm or kubectl mutations.
-
-### Five-Minute Quick Start
-
-From the repository root:
-
-```bash
-go build -o sw-block ./cmd/sw-block
-export PATH="$PWD:$PATH"
-
-sw-block ops generate-helm-values \
- --out values.day1.yaml \
- --image ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b \
- --csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
-
-helm install sw-block charts/seaweed-block \
- --namespace kube-system \
- --create-namespace \
- -f values.day1.yaml \
- --wait \
- --timeout 10m
-
-SW_BLOCK_INSTALL_MODE=helm \
-SW_BLOCK_HELM_RELEASE=sw-block \
-SW_BLOCK_HELM_NAMESPACE=kube-system \
-SW_BLOCK_HELM_VALUES_FILE=values.day1.yaml \
- bash scripts/run-basic-app-example.sh "$PWD"
-```
-
-Expected summary in the latest `/tmp/sw-block-basic-app-*/first-volume-summary.txt`:
-
-```text
-first_volume_status=ok
-writer_verified=true
-reader_verified=true
-inventory_status=ok
-status_report=status/report/index.html
-cleanup_status=ok
-```
-
-Current validated published quickstart image tag: `sha-dc2972d0059b`.
-This tag covers the v0.4 read-only/status foundation path. The v0.5
-bounded lifecycle-owner path requires matching `sw-block` and `sw-block-csi`
-images published from the Phase 44 release commit; do not use the older
-quickstart tag to validate lifecycle-owner behavior.
-The v0.6 returned-replica ACK eligibility executor path likewise requires
-matching images published from the Phase 54 release commit and must be validated
-with the release smoke before it is marked shipped.
-The returned-replica failback runtime added after v0.6 is source-gated and
-requires a future release smoke before it becomes a public image claim. The
-NVMe/TCP supported-lab path is also source-gated until matching `seaweed-block`
-and `seaweed-block-csi` images are published and pass the NVMe release smoke.
-
-Mutable `:alpha` is a smoke/demo tag only; it can drift from the source tree.
-
-### Operations
-
-Port-forward blockmaster when reading live cluster state:
-
-```bash
-kubectl -n kube-system port-forward deploy/sw-blockmaster 9333:9333
-```
-
-Common read-only commands:
-
-| Command | Use |
-|---|---|
-| `sw-block ops cluster --master-api 127.0.0.1:9333 -o json` | Cluster snapshot. |
-| `sw-block ops volumes --master-api 127.0.0.1:9333` | List volumes, status, primary, node, frontend. |
-| `sw-block ops describe volume --namespace default --master 127.0.0.1:9333` | Describe one volume. |
-| `sw-block ops timeline volume --from-bundle -o jsonl` | Read a saved event timeline. |
-| `sw-block ops explain volume --from-bundle ` | Explain ready, blocked, stale, or recovering state. |
-| `sw-block ops report --master-api 127.0.0.1:9333 --out ` | Generate static report artifacts. |
-| `sw-block ops dashboard --master-api 127.0.0.1:9333 --listen 127.0.0.1:9334` | Serve local read-only dashboard. |
-| `sw-block ops inventory --namespace default --master 127.0.0.1:9333 --out ` | Collect replica-level inventory. |
-
-Reports and dashboard expose `operator-snapshot.json`, a read-only status
-projection. The gated operator-status controller can publish that model into
-Kubernetes CRD `.status` and Events, including node readiness, cleanup/delete
-safety, and install-drift visibility. It has no mutating admin actions.
-
-Support-bundle replay:
-
-```bash
-bash scripts/collect-helm-support-bundle.sh "$PWD"
-sw-block ops report --from-bundle --out /tmp/sw-block-report
-sw-block ops explain volume --from-bundle
-sw-block ops dashboard --from-bundle --listen 127.0.0.1:9334
-```
-
-The status surface is negative-first. If evidence is missing or stale, the
-system reports `Ready=Unknown` / `EvidenceStale=True` rather than claiming a
-false ready state.
-
-### Cleanup
-
-```bash
-helm uninstall sw-block --namespace kube-system
-bash scripts/uninstall-k8s-alpha.sh "$PWD"
-bash scripts/verify-helm-cleanup.sh
-```
-
-The cleanup verifier checks Kubernetes resources, iSCSI sessions, iSCSI node
-DB records, dm-multipath maps, `dmsetup` devices, product processes, and
-hostPath residue.
+- **CI** runs `go build`, `go vet` and `go test -short` on every pull request
+ and push to `main` ([workflow](.github/workflows/test.yml)). Crash,
+ mutation, real-SeaweedFS and binary tests are described in the
+ [design reference, Part 3](docs/design/block-design.md#part-3-verification-lessons-known-issues),
+ with the known issues.
+- **Formal models**: [TLA+ specifications](docs/spec/README.md) of the
+ protocols where a bug would lose data. Counterexamples became fixes and
+ regression tests ([#152](https://github.com/seaweedfs/seaweed-block/pull/152), [#156](https://github.com/seaweedfs/seaweed-block/pull/156), [#158](https://github.com/seaweedfs/seaweed-block/pull/158), [#159](https://github.com/seaweedfs/seaweed-block/pull/159)).
+- **Fail closed**: recovery that cannot establish a consistent image reports
+ a typed reason (`wal_corrupt`, `io_error`) instead of serving; some
+ suspected damage (`wal_hole_suspected`) is a status warning only.
## Documentation
-- [Kubernetes quickstart](docs/quickstart-kubernetes.md) - first install and PVC.
-- [User capabilities](docs/user-capabilities.md) - detailed current behavior.
-- [Release notes](docs/releases/README.md) - exact validated claims and evidence.
-- [NVMe/TCP supported-lab claim](docs/releases/nvme-tcp-supported-lab.md) -
- source-gated NVMe evidence, release-smoke boundary, and non-claims.
-- [Roadmap](docs/roadmap.md) - public planning summary.
-- [Architecture](docs/architecture.md), [developer architecture](docs/developer-architecture.md),
- and [runtime state machines](docs/runtime-state-machines.md) - engineering
- references, not release-claim sources.
+- Design: [design reference](docs/design/block-design.md), [TLA+ specifications](docs/spec/README.md),
+ [workspace measurements](docs/workspace-measurements.md)
+- Operations: [standalone deployment](docs/standalone-deployment.md),
+ [Kubernetes quickstart](docs/quickstart-kubernetes.md), [user capabilities](docs/user-capabilities.md)
+- Claims: [Kubernetes status](docs/kubernetes-status.md), [release notes](docs/releases/README.md),
+ [NVMe/TCP supported-lab claim](docs/releases/nvme-tcp-supported-lab.md), [roadmap](docs/roadmap.md)
+- Engineering references, not release-claim sources: [architecture](docs/architecture.md),
+ [developer architecture](docs/developer-architecture.md), [runtime state machines](docs/runtime-state-machines.md)
## Development
-Run release-relevant scoped tests:
-
```bash
-go test ./cmd/sw-block ./core/ops ./core/csi ./core/launcher ./core/host/master -count=1
+go build ./... && go vet ./... && go test -short ./... # what CI runs
+go test ./cmd/sw-block ./core/ops ./core/csi ./core/launcher ./core/host/master -count=1 # release-scoped
```
-`go test ./...` is the full repository sweep and may include unrelated
-in-progress packages outside the current release gate.
-
-Script activation remains available for development/local-image fallback:
-
-```bash
-bash scripts/activate-k8s-alpha.sh "$PWD"
-bash scripts/run-basic-app-example.sh "$PWD"
-```
+The full `go test ./...` sweep may include in-progress packages outside the
+release gate. `scripts/activate-k8s-alpha.sh` remains for local images.
## License
diff --git a/seaweed-block/deploy/config/blockmaster.env b/seaweed-block/deploy/config/blockmaster.env
new file mode 100644
index 0000000000..4c160d497b
--- /dev/null
+++ b/seaweed-block/deploy/config/blockmaster.env
@@ -0,0 +1,45 @@
+# Seaweed Block: example settings for blockmaster
+# (deploy/systemd/sw-blockmaster.service). Install as
+# /etc/sw-block/blockmaster.env.
+#
+# The binaries are configured by command-line flags. The SWB_* variables in
+# this file exist only so the example unit can build those flags; blockmaster
+# does not read them. Each entry names the flag it feeds, the flag's default,
+# and what it means.
+#
+# State: the unit's StateDirectory=sw-block-master creates
+# /var/lib/sw-block-master, owned by the sw-block user. Only blockmaster
+# writes there.
+
+# ---------------------------------------------------------------- blockmaster
+
+# --authority-store (required, no default). Durable authority store directory:
+# assignments, epochs, leases. Losing it loses the epoch history.
+SWB_MASTER_AUTHORITY_STORE=/var/lib/sw-block-master/authority
+# --listen (default 127.0.0.1:0). gRPC listen address. The control plane has
+# no authentication; keep it on loopback or a trusted network.
+SWB_MASTER_LISTEN=127.0.0.1:9180
+# --topology (default empty: no assignments are minted). Accepted-topology
+# YAML: volumes and their replica slots. See deploy/config/topology.yaml.
+SWB_MASTER_TOPOLOGY=/etc/sw-block/topology.yaml
+# --expected-slots-per-volume (default 3). Replica slots per volume; must match
+# the topology. 1 for a single-replica volume.
+SWB_MASTER_EXPECTED_SLOTS=1
+# --freshness-window (default 30s). How long a server's heartbeat stays fresh.
+SWB_MASTER_FRESHNESS_WINDOW=30s
+# --pending-grace (default 1s). Startup grace before a missing observation is
+# reported as unsupported.
+SWB_MASTER_PENDING_GRACE=1s
+# --workspace-rpc (default false). Enable the workspace lease, revocation and
+# move RPCs (agent workspace disks, proof of concept).
+SWB_MASTER_WORKSPACE_RPC=false
+# --workspace-head-base-url (default empty; required with --workspace-rpc).
+# Filer HTTP directory that holds the per-volume HEAD files.
+SWB_MASTER_WORKSPACE_HEAD_BASE_URL=
+# --workspace-max-clock-skew (default 20s; must be >0 and <60s). Host leases
+# shorten by half of it; forced moves wait the full bound.
+SWB_MASTER_WORKSPACE_MAX_CLOCK_SKEW=20s
+# Extra blockmaster flags, split on spaces. The --launcher-*, --lifecycle-*,
+# --cluster-spec, --failback-runtime-rpc and --frontend-publication-runtime-*
+# flags belong to the Kubernetes path and are set by the Helm chart.
+SWB_MASTER_EXTRA_ARGS=
diff --git a/seaweed-block/deploy/config/blockvolume-ublk.env b/seaweed-block/deploy/config/blockvolume-ublk.env
new file mode 100644
index 0000000000..aed656c00d
--- /dev/null
+++ b/seaweed-block/deploy/config/blockvolume-ublk.env
@@ -0,0 +1,20 @@
+# Overrides for the root ublk variant (deploy/systemd/sw-blockvolume-ublk.service).
+# Install as /etc/sw-block/blockvolume-ublk.env. The unit reads
+# blockvolume.env first and this file second; values here win.
+#
+# The ublk unit runs as root, so it gets its own state directory
+# (StateDirectory=sw-block-volume-ublk, /var/lib/sw-block-volume-ublk). It never
+# touches /var/lib/sw-block-master or /var/lib/sw-block-volume.
+#
+# Not a data migration: switching from sw-blockvolume to this unit does not
+# move or reopen the volume under /var/lib/sw-block-volume; this unit creates
+# a new, empty volume in its own directory.
+
+# --durable-root for the root-owned service.
+SWB_DURABLE_ROOT=/var/lib/sw-block-volume-ublk/volumes
+# --ublk-device: serve the volume as /dev/ublkb0. The id must be free: the
+# server refuses an id whose device already exists.
+SWB_UBLK_DEVICE=0
+# NVMe/TCP off for this variant.
+SWB_NVME_LISTEN=
+SWB_NVME_SUBSYSNQN=
diff --git a/seaweed-block/deploy/config/blockvolume.env b/seaweed-block/deploy/config/blockvolume.env
new file mode 100644
index 0000000000..cce3021c5c
--- /dev/null
+++ b/seaweed-block/deploy/config/blockvolume.env
@@ -0,0 +1,137 @@
+# Seaweed Block: example settings for one blockvolume
+# (deploy/systemd/sw-blockvolume.service, and the root ublk variant
+# sw-blockvolume-ublk.service, which reads this file first and then
+# blockvolume-ublk.env). Install as /etc/sw-block/blockvolume.env, readable
+# only by root and the sw-block user (it can hold the iSCSI CHAP secret).
+#
+# The binaries are configured by command-line flags. The SWB_* variables in
+# this file exist only so the example units can build those flags;
+# blockvolume does not read them. The one exception is the iSCSI CHAP pair at
+# the end, which blockvolume reads from the environment. Each entry names the
+# flag it feeds, the flag's default, and what it means.
+#
+# State: the unit's StateDirectory=sw-block-volume creates
+# /var/lib/sw-block-volume, owned by the sw-block user. It is separate from
+# blockmaster's /var/lib/sw-block-master.
+
+# ---------------------------------------------------------------- blockvolume
+
+# --master (required). blockmaster gRPC address.
+SWB_MASTER_ADDR=127.0.0.1:9180
+# --server-id, --volume-id, --replica-id (required). Must match a slot in the
+# topology.
+SWB_SERVER_ID=s1
+SWB_VOLUME_ID=v1
+SWB_REPLICA_ID=r1
+# --data-addr, --ctrl-addr (required). Data-path and control-path addresses.
+SWB_DATA_ADDR=127.0.0.1:9201
+SWB_CTRL_ADDR=127.0.0.1:9202
+# --status-addr (default empty: disabled). Status HTTP endpoint, loopback only
+# unless --allow-external-status-bind; unauthenticated.
+SWB_STATUS_ADDR=127.0.0.1:9203
+# --heartbeat-interval (default 2s). Heartbeat send interval.
+SWB_HEARTBEAT_INTERVAL=2s
+# --recover-timeout (default 30s). How long a primary-assigned replica may stay
+# not promotion-ready before it reports itself unhealthy (recovery_timeout).
+SWB_RECOVER_TIMEOUT=30s
+
+# --durable-root (default empty: in-memory, NOT durable). Directory for the
+# volume's storage files. Must be writable by the service user.
+SWB_DURABLE_ROOT=/var/lib/sw-block-volume/volumes
+# --durable-impl (default empty: auto). Auto creates a new volume as walstore,
+# opens an existing one with its on-disk format, and refuses a walstore-chunk
+# root. Explicit values: walstore; walstore-chunk (walstore published to
+# SeaweedFS, proof of concept); smartwal (experimental). This example pins
+# walstore.
+SWB_DURABLE_IMPL=walstore
+# --durable-blocks (default 2048), --durable-blocksize (default 4096). Volume
+# geometry on first create; ignored when an existing volume is opened.
+# 65536 x 4096 = 256 MiB.
+SWB_DURABLE_BLOCKS=65536
+SWB_DURABLE_BLOCKSIZE=4096
+
+# --nvme-listen (default empty: disabled). NVMe/TCP target address. Loopback
+# only (no authentication) unless --allow-external-nvme-bind.
+SWB_NVME_LISTEN=127.0.0.1:4420
+# --nvme-subsysnqn (required with --nvme-listen). NVMe subsystem NQN.
+SWB_NVME_SUBSYSNQN=nqn.2026-05.io.seaweedfs:v1
+# --nvme-ns (default 1). NVMe namespace id.
+SWB_NVME_NS=1
+# --nvme-max-h2c-data-length (default 0: target default). MaxH2CDataLength.
+SWB_NVME_MAX_H2C_DATA_LENGTH=0
+
+# --ublk-device (default -1: disabled). Serve the volume as /dev/ublkbN through
+# the Linux ublk_drv module. Needs root (see the unit file).
+SWB_UBLK_DEVICE=-1
+# --ublk-queues (default 0: 1 queue), --ublk-queue-depth (default 0: 64).
+SWB_UBLK_QUEUES=0
+SWB_UBLK_QUEUE_DEPTH=0
+
+# --iscsi-listen (default empty: disabled). iSCSI target address; loopback only
+# unless --allow-external-iscsi-bind, which requires CHAP.
+SWB_ISCSI_LISTEN=
+# --iscsi-iqn (required with --iscsi-listen). Target IQN.
+SWB_ISCSI_IQN=
+# --iscsi-portal-addr (default empty: the bound address). Advertised
+# TargetAddress in SendTargets responses.
+SWB_ISCSI_PORTAL_ADDR=
+# --iscsi-lun (default 0). LUN id.
+SWB_ISCSI_LUN=0
+# --iscsi-dataout-timeout (default 0: target default). R2T/Data-Out wait bound.
+SWB_ISCSI_DATAOUT_TIMEOUT=0
+
+# --replication-ack (default best-effort). best-effort, sync-quorum or
+# sync-all. sync-* modes fail foreground writes when the required replica
+# acknowledgement is unavailable. Only matters with more than one slot.
+SWB_REPLICATION_ACK=best-effort
+# --wal-retention-lsns (default 0: strict checkpoint-driven recycle). walstore
+# only: WAL kept past the checkpoint so a lagging replica can catch up.
+SWB_WAL_RETENTION_LSNS=0
+# --recovery-mode (default legacy). legacy or dual-lane rebuild path.
+SWB_RECOVERY_MODE=legacy
+# --degraded-probe-interval (default 0: off). Degraded-peer probe interval.
+SWB_DEGRADED_PROBE_INTERVAL=0
+# --degraded-probe-cooldown-base (default 5s), --degraded-probe-cooldown-cap
+# (default 60s). Per-peer backoff after a probe attempt.
+SWB_DEGRADED_PROBE_COOLDOWN_BASE=5s
+SWB_DEGRADED_PROBE_COOLDOWN_CAP=60s
+
+# Agent workspace disks (proof of concept). These flags are accepted only with
+# SWB_DURABLE_IMPL=walstore-chunk; leave them at their defaults otherwise.
+# --chunk-filer (default empty; required with walstore-chunk). SeaweedFS filer
+# gRPC address host:port.
+SWB_CHUNK_FILER=
+# --chunk-path (default /swblock/chunks). Filer directory, one directory per
+# volume (HEAD and chunk key bindings).
+SWB_CHUNK_PATH=/swblock/chunks
+# --chunk-collection, --chunk-replication (default empty: filer default or
+# storage rule). Collection and replication for chunk needles.
+SWB_CHUNK_COLLECTION=
+SWB_CHUNK_REPLICATION=
+# --chunk-capture-interval (default 0: no timer). Automatic cut once this long
+# has passed since the last successful cut, e.g. 15m as a host-loss safety net.
+SWB_CHUNK_CAPTURE_INTERVAL=0
+# --chunk-upload-concurrency (default 8; 1..64). Parallel dirty-chunk uploads.
+SWB_CHUNK_UPLOAD_CONCURRENCY=8
+# --chunk-dirty-threshold (default 512 chunks = 2 GiB; 0 = unbounded). Bound
+# on one cut's barrier copy; never triggers a cut.
+SWB_CHUNK_DIRTY_THRESHOLD=512
+# --chunk-control-endpoint (default false). Expose /chunk/* (cut, snapshot,
+# snapshots, snapshot/delete, detach) on the status listener; needs
+# SWB_STATUS_ADDR.
+SWB_CHUNK_CONTROL_ENDPOINT=false
+# --workspace-lease (default false). Require a host-owned master lease; fail
+# closed when it is unavailable. Needs walstore-chunk and --workspace-rpc on
+# blockmaster.
+SWB_WORKSPACE_LEASE=false
+
+# Extra blockvolume flags, split on spaces, for example the Kubernetes gate
+# flags --allow-external-*-bind, --status-recovery, --runtime-rebuild-endpoint,
+# or the source-gated --durable-wal-multiblock-records.
+SWB_VOLUME_EXTRA_ARGS=
+
+# iSCSI target-side CHAP, read by blockvolume itself (same as
+# --iscsi-chap-username / --iscsi-chap-secret). Requires SWB_ISCSI_LISTEN.
+# Uncomment and replace both values; never use a shared or example secret.
+# SW_BLOCK_ISCSI_CHAP_USERNAME=REPLACE_WITH_CHAP_USERNAME
+# SW_BLOCK_ISCSI_CHAP_SECRET=REPLACE_WITH_CHAP_SECRET
diff --git a/seaweed-block/deploy/config/topology.yaml b/seaweed-block/deploy/config/topology.yaml
new file mode 100644
index 0000000000..ef04d44c0d
--- /dev/null
+++ b/seaweed-block/deploy/config/topology.yaml
@@ -0,0 +1,8 @@
+# Accepted topology for blockmaster --topology: one volume, one replica slot.
+# replica_id and server_id must match blockvolume --replica-id / --server-id.
+# blockmaster does not infer topology from heartbeats; this file is the input.
+volumes:
+ - volume_id: v1
+ slots:
+ - replica_id: r1
+ server_id: s1
diff --git a/seaweed-block/deploy/systemd/sw-blockmaster.service b/seaweed-block/deploy/systemd/sw-blockmaster.service
new file mode 100644
index 0000000000..3687515b49
--- /dev/null
+++ b/seaweed-block/deploy/systemd/sw-blockmaster.service
@@ -0,0 +1,47 @@
+# Example unit for blockmaster. Settings: /etc/sw-block/blockmaster.env
+# (deploy/config/blockmaster.env). Create the user once:
+# sudo useradd --system --no-create-home --shell /usr/sbin/nologin sw-block
+[Unit]
+Description=Seaweed Block master (epoch authority)
+Documentation=https://github.com/seaweedfs/seaweed-block
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+User=sw-block
+Group=sw-block
+EnvironmentFile=/etc/sw-block/blockmaster.env
+# systemd creates /var/lib/sw-block-master owned by User/Group. blockvolume
+# units use their own state directories, never this one.
+StateDirectory=sw-block-master
+StateDirectoryMode=0750
+ExecStart=/usr/local/bin/blockmaster \
+ --authority-store=${SWB_MASTER_AUTHORITY_STORE} \
+ --listen=${SWB_MASTER_LISTEN} \
+ --topology=${SWB_MASTER_TOPOLOGY} \
+ --expected-slots-per-volume=${SWB_MASTER_EXPECTED_SLOTS} \
+ --freshness-window=${SWB_MASTER_FRESHNESS_WINDOW} \
+ --pending-grace=${SWB_MASTER_PENDING_GRACE} \
+ --workspace-rpc=${SWB_MASTER_WORKSPACE_RPC} \
+ --workspace-head-base-url=${SWB_MASTER_WORKSPACE_HEAD_BASE_URL} \
+ --workspace-max-clock-skew=${SWB_MASTER_WORKSPACE_MAX_CLOCK_SKEW} \
+ $SWB_MASTER_EXTRA_ARGS
+# blockmaster stops on SIGTERM.
+KillSignal=SIGTERM
+TimeoutStopSec=30s
+Restart=on-failure
+RestartSec=5s
+
+NoNewPrivileges=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+RestrictSUIDSGID=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/seaweed-block/deploy/systemd/sw-blockvolume-ublk.service b/seaweed-block/deploy/systemd/sw-blockvolume-ublk.service
new file mode 100644
index 0000000000..37fdd5fb1a
--- /dev/null
+++ b/seaweed-block/deploy/systemd/sw-blockvolume-ublk.service
@@ -0,0 +1,85 @@
+# Root variant of sw-blockvolume.service for ublk (/dev/ublkbN). ublk needs
+# root, so this unit runs as root with its own state directory
+# (/var/lib/sw-block-volume-ublk); it cannot chown blockmaster's or the
+# unprivileged volume's state. Settings: /etc/sw-block/blockvolume.env, then
+# /etc/sw-block/blockvolume-ublk.env (overrides).
+#
+# Not a data migration: this unit does not move or reopen a volume created by
+# sw-blockvolume.service; it starts a new, empty volume in its own directory.
+#
+# Load the module at boot: echo ublk_drv | sudo tee /etc/modules-load.d/ublk.conf
+[Unit]
+Description=Seaweed Block volume over ublk (one replica, root)
+Documentation=https://github.com/seaweedfs/seaweed-block
+After=network-online.target sw-blockmaster.service
+Wants=network-online.target sw-blockmaster.service
+Conflicts=sw-blockvolume.service
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/sw-block/blockvolume.env
+EnvironmentFile=/etc/sw-block/blockvolume-ublk.env
+# Root-owned state, separate from every other unit's.
+StateDirectory=sw-block-volume-ublk
+StateDirectoryMode=0700
+ExecStart=/usr/local/bin/blockvolume \
+ --master=${SWB_MASTER_ADDR} \
+ --server-id=${SWB_SERVER_ID} \
+ --volume-id=${SWB_VOLUME_ID} \
+ --replica-id=${SWB_REPLICA_ID} \
+ --data-addr=${SWB_DATA_ADDR} \
+ --ctrl-addr=${SWB_CTRL_ADDR} \
+ --status-addr=${SWB_STATUS_ADDR} \
+ --heartbeat-interval=${SWB_HEARTBEAT_INTERVAL} \
+ --recover-timeout=${SWB_RECOVER_TIMEOUT} \
+ --durable-root=${SWB_DURABLE_ROOT} \
+ --durable-impl=${SWB_DURABLE_IMPL} \
+ --durable-blocks=${SWB_DURABLE_BLOCKS} \
+ --durable-blocksize=${SWB_DURABLE_BLOCKSIZE} \
+ --nvme-listen=${SWB_NVME_LISTEN} \
+ --nvme-subsysnqn=${SWB_NVME_SUBSYSNQN} \
+ --nvme-ns=${SWB_NVME_NS} \
+ --nvme-max-h2c-data-length=${SWB_NVME_MAX_H2C_DATA_LENGTH} \
+ --ublk-device=${SWB_UBLK_DEVICE} \
+ --ublk-queues=${SWB_UBLK_QUEUES} \
+ --ublk-queue-depth=${SWB_UBLK_QUEUE_DEPTH} \
+ --iscsi-listen=${SWB_ISCSI_LISTEN} \
+ --iscsi-iqn=${SWB_ISCSI_IQN} \
+ --iscsi-portal-addr=${SWB_ISCSI_PORTAL_ADDR} \
+ --iscsi-lun=${SWB_ISCSI_LUN} \
+ --iscsi-dataout-timeout=${SWB_ISCSI_DATAOUT_TIMEOUT} \
+ --replication-ack=${SWB_REPLICATION_ACK} \
+ --wal-retention-lsns=${SWB_WAL_RETENTION_LSNS} \
+ --recovery-mode=${SWB_RECOVERY_MODE} \
+ --degraded-probe-interval=${SWB_DEGRADED_PROBE_INTERVAL} \
+ --degraded-probe-cooldown-base=${SWB_DEGRADED_PROBE_COOLDOWN_BASE} \
+ --degraded-probe-cooldown-cap=${SWB_DEGRADED_PROBE_COOLDOWN_CAP} \
+ --chunk-filer=${SWB_CHUNK_FILER} \
+ --chunk-path=${SWB_CHUNK_PATH} \
+ --chunk-collection=${SWB_CHUNK_COLLECTION} \
+ --chunk-replication=${SWB_CHUNK_REPLICATION} \
+ --chunk-capture-interval=${SWB_CHUNK_CAPTURE_INTERVAL} \
+ --chunk-upload-concurrency=${SWB_CHUNK_UPLOAD_CONCURRENCY} \
+ --chunk-dirty-threshold=${SWB_CHUNK_DIRTY_THRESHOLD} \
+ --chunk-control-endpoint=${SWB_CHUNK_CONTROL_ENDPOINT} \
+ --workspace-lease=${SWB_WORKSPACE_LEASE} \
+ $SWB_VOLUME_EXTRA_ARGS
+# blockvolume drains and closes on SIGTERM (a workspace lease closeout waits
+# up to 3s).
+KillSignal=SIGTERM
+TimeoutStopSec=30s
+Restart=on-failure
+RestartSec=5s
+
+NoNewPrivileges=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+# PrivateDevices= is off: the server needs /dev/ublk-control and /dev/ublkcN.
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+RestrictSUIDSGID=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/seaweed-block/deploy/systemd/sw-blockvolume.service b/seaweed-block/deploy/systemd/sw-blockvolume.service
new file mode 100644
index 0000000000..a17b9d7980
--- /dev/null
+++ b/seaweed-block/deploy/systemd/sw-blockvolume.service
@@ -0,0 +1,84 @@
+# Example unit for one blockvolume (one volume replica) serving NVMe/TCP or
+# iSCSI as the unprivileged sw-block user. Settings:
+# /etc/sw-block/blockvolume.env (deploy/config/blockvolume.env). For more
+# volumes on one host, copy this unit with its own env file, state directory,
+# ports and NQN.
+#
+# For ublk (needs root) do not edit this unit: use
+# sw-blockvolume-ublk.service, which has its own state directory.
+[Unit]
+Description=Seaweed Block volume (one replica)
+Documentation=https://github.com/seaweedfs/seaweed-block
+After=network-online.target sw-blockmaster.service
+Wants=network-online.target sw-blockmaster.service
+
+[Service]
+Type=simple
+User=sw-block
+Group=sw-block
+EnvironmentFile=/etc/sw-block/blockvolume.env
+# systemd creates /var/lib/sw-block-volume owned by User/Group; SWB_DURABLE_ROOT
+# must be inside it. It is separate from blockmaster's state directory.
+StateDirectory=sw-block-volume
+StateDirectoryMode=0750
+ExecStart=/usr/local/bin/blockvolume \
+ --master=${SWB_MASTER_ADDR} \
+ --server-id=${SWB_SERVER_ID} \
+ --volume-id=${SWB_VOLUME_ID} \
+ --replica-id=${SWB_REPLICA_ID} \
+ --data-addr=${SWB_DATA_ADDR} \
+ --ctrl-addr=${SWB_CTRL_ADDR} \
+ --status-addr=${SWB_STATUS_ADDR} \
+ --heartbeat-interval=${SWB_HEARTBEAT_INTERVAL} \
+ --recover-timeout=${SWB_RECOVER_TIMEOUT} \
+ --durable-root=${SWB_DURABLE_ROOT} \
+ --durable-impl=${SWB_DURABLE_IMPL} \
+ --durable-blocks=${SWB_DURABLE_BLOCKS} \
+ --durable-blocksize=${SWB_DURABLE_BLOCKSIZE} \
+ --nvme-listen=${SWB_NVME_LISTEN} \
+ --nvme-subsysnqn=${SWB_NVME_SUBSYSNQN} \
+ --nvme-ns=${SWB_NVME_NS} \
+ --nvme-max-h2c-data-length=${SWB_NVME_MAX_H2C_DATA_LENGTH} \
+ --ublk-device=${SWB_UBLK_DEVICE} \
+ --ublk-queues=${SWB_UBLK_QUEUES} \
+ --ublk-queue-depth=${SWB_UBLK_QUEUE_DEPTH} \
+ --iscsi-listen=${SWB_ISCSI_LISTEN} \
+ --iscsi-iqn=${SWB_ISCSI_IQN} \
+ --iscsi-portal-addr=${SWB_ISCSI_PORTAL_ADDR} \
+ --iscsi-lun=${SWB_ISCSI_LUN} \
+ --iscsi-dataout-timeout=${SWB_ISCSI_DATAOUT_TIMEOUT} \
+ --replication-ack=${SWB_REPLICATION_ACK} \
+ --wal-retention-lsns=${SWB_WAL_RETENTION_LSNS} \
+ --recovery-mode=${SWB_RECOVERY_MODE} \
+ --degraded-probe-interval=${SWB_DEGRADED_PROBE_INTERVAL} \
+ --degraded-probe-cooldown-base=${SWB_DEGRADED_PROBE_COOLDOWN_BASE} \
+ --degraded-probe-cooldown-cap=${SWB_DEGRADED_PROBE_COOLDOWN_CAP} \
+ --chunk-filer=${SWB_CHUNK_FILER} \
+ --chunk-path=${SWB_CHUNK_PATH} \
+ --chunk-collection=${SWB_CHUNK_COLLECTION} \
+ --chunk-replication=${SWB_CHUNK_REPLICATION} \
+ --chunk-capture-interval=${SWB_CHUNK_CAPTURE_INTERVAL} \
+ --chunk-upload-concurrency=${SWB_CHUNK_UPLOAD_CONCURRENCY} \
+ --chunk-dirty-threshold=${SWB_CHUNK_DIRTY_THRESHOLD} \
+ --chunk-control-endpoint=${SWB_CHUNK_CONTROL_ENDPOINT} \
+ --workspace-lease=${SWB_WORKSPACE_LEASE} \
+ $SWB_VOLUME_EXTRA_ARGS
+# blockvolume drains and closes on SIGTERM (a workspace lease closeout waits
+# up to 3s).
+KillSignal=SIGTERM
+TimeoutStopSec=30s
+Restart=on-failure
+RestartSec=5s
+
+NoNewPrivileges=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+RestrictSUIDSGID=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/seaweed-block/docs/assets/seaweed-block-hero.svg b/seaweed-block/docs/assets/seaweed-block-hero.svg
index 2dccdbe32f..6c2ba3f7fe 100644
--- a/seaweed-block/docs/assets/seaweed-block-hero.svg
+++ b/seaweed-block/docs/assets/seaweed-block-hero.svg
@@ -1,98 +1,105 @@
-