phase156: keep multiblock wal opt-in source gated

This commit is contained in:
pingqiu committed 2026-07-17 00:35:26 -07:00
1 parent acbc6aed29
commit 76f06a80cf
11 files changed
+281 -56

No files matched your search

+3 -1
View File
@@ -85,7 +85,9 @@ This is an **alpha** product path for supported lab clusters, not production.
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,
but remains default-off. This is a
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. This is a
supported-lab source-gated claim, not a broad NVMe
compatibility, RoCE/NVMe-RDMA, production HA, or performance/SLO claim.
- Replay support bundles offline.
+3 -2
View File
@@ -108,8 +108,9 @@ blockmaster:
durableWALMultiBlockRecords: true
```
This is a lab-only optimization boundary backed by Phase 151/152 gates. The
default remains `false`. Do not set
This is a lab-only optimization boundary backed by Phase 151/152/155 gates. It
is not a release-image claim until a matching-image smoke runs the explicit
opt-in recovery/status path. The default remains `false`. Do not set
`durableWALRecoveryTestDisableFlusher` outside recovery-test gates; that flag is
scaffolding used to force WAL replay evidence and is not a production tuning
knob.
+4 -1
View File
@@ -83,4 +83,7 @@ documented separately because it is source-gated until matching
smoke; it now includes source-gated multipath/reconnect correctness and durable
backend write-batching evidence, but still no RoCE/NVMe-RDMA or performance
SLO claim.
The WAL multi-block record opt-in is documented separately because it is a backend/WAL-format optimization boundary, not a RoCE, NVMe/RDMA, or performance claim. It remains default-off and source-gated.
The WAL multi-block record opt-in is documented separately because it is a
backend/WAL-format optimization boundary, not a RoCE, NVMe/RDMA, or performance
claim. It remains default-off and source-gated; a future published-image smoke
is still required before any public release-image claim.
@@ -97,6 +97,7 @@ The supported-lab claim is intentionally narrow:
| 153 | WAL multi-block release-boundary documentation | PASS |
| 154 | Durable-status HeadLSN diagnostic cleanup | PASS |
| 155 | Mounted durable-status HeadLSN confirmation | PASS |
| 156 | WAL multi-block release-smoke decision keeps opt-in source-gated | PASS |
Key QA sign-offs:
@@ -136,6 +137,7 @@ Key QA sign-offs:
- `internal/docs/qa-assignments/phase153-wal-multiblock-release-boundary-qa-signoff.md`
- `internal/docs/qa-assignments/phase154-durable-status-head-lsn-cleanup-qa-signoff.md`
- `internal/docs/qa-assignments/phase155-mounted-durable-status-head-lsn-confirmation-qa-signoff.md`
- `internal/docs/qa-assignments/phase156-wal-multiblock-release-smoke-decision-qa-signoff.md`
## Performance Baseline
@@ -122,12 +122,29 @@ cleanup_status=ok
- No WAL format migration promise for existing user data.
- No production HA claim.
## Phase 156 Release-Smoke Decision
Phase 156 release-smoke decision: keep this opt-in source-gated. The project is
continuing source development rather than cutting a release for this backend
optimization now.
A future public or published-image claim requires a matching-image smoke with
this narrow scope:
- explicit opt-in enabled;
- recovery-test flusher-disable used only inside the recovery gate;
- mounted restart/recovery with hostPath persistence;
- durable-status `DurableLSN == HeadLSN == recovered LSN`;
- reader verification after restart;
- `Ready` restored after restart;
- cleanup verified clean.
## Remaining Follow-Ups
- Phase 154 fixed the diagnostic durable status where post-recovery `HeadLSN`
could display the persisted WAL byte offset instead of the recovered LSN
frontier. Phase 155 confirmed that fix in the mounted K8s
restart/recovery path.
- Decide whether this opt-in should stay source-gated or be included in a future
published-image release smoke.
- Phase 156 keeps this opt-in source-gated until a future matching-image smoke
proves the explicit opt-in recovery/status path on published artifacts.
- Keep the recovery-test flusher-disable hook out of user release guidance.
+2 -2
View File
@@ -131,8 +131,8 @@ Seaweed Block can already demonstrate a narrow Kubernetes block-storage loop:
LSN boundary after recovery. Phase 155 confirms that same `/status/durable`
boundary in the mounted K8s path: after force-delete restart/recovery,
`DurableLSN`, `HeadLSN`, and recovery evidence all match the recovered LSN.
The next decision is whether this opt-in stays source-gated or is included in
a future published-image release smoke.
Phase 156 keeps the opt-in source-gated: a future public release-image claim
requires a matching-image smoke of the explicit opt-in recovery/status path.
- Kubernetes NVMe/TCP mounted reconnect is source-gated through changed
desired path-set evidence: CSI-node can connect a newly published desired
NVMe path, prune the stale old host path for the same NQN, preserve pod
+45 -48
View File
@@ -1,71 +1,68 @@
# Current Plan: Phase 156 WAL Multi-Block Release Smoke Decision
# Current Plan: Phase 157 NVMe/RDMA Capability Boundary
Status: planning.
Phase 155 closed the mounted durable-status confirmation:
```text
phase155_mounted_durable_status_head_lsn_confirmation_status=ok
runtime_opt_in_enabled=true
recovery_test_disable_flusher_enabled=true
restart_persistence_mode=hostpath
blockvolume_restart_mode=force_delete_pod
recovery_completed=true
recovered_lsn_after_restart=13511
durable_status_durable_lsn_after_restart=13511
durable_status_head_lsn_after_restart=13511
durable_status_head_lsn_equals_recovered_lsn=true
reader_verified_after_restart=true
ready_after_restart=true
cleanup_status=ok
phase155_decision=mounted_confirmed
next_recommendation=phase156_wal_multiblock_published_image_release_smoke_decision
```
## Goal
Decide the release boundary for the disabled-by-default multi-block WAL record
opt-in after Phases 150-155. The decision should either keep it source-gated
with no published-image claim, or define a narrow published-image smoke that
proves the same opt-in, recovery, and durable-status evidence on release
artifacts.
## Required Evidence
Phase 156 closed the WAL multi-block release-smoke decision:
```text
phase156_wal_multiblock_release_smoke_decision_status=ok
runtime_opt_in_name=durable-wal-multiblock-records
default_wal_format_unchanged=true
source_gated_status=<kept|superseded_by_published_image_smoke>
published_image_smoke_required=<true|false>
published_image_smoke_scope=<none|explicit_opt_in_recovery_status>
source_gated_status=kept
published_image_smoke_required=true
published_image_smoke_scope=explicit_opt_in_recovery_status
recovery_test_disable_flusher_user_claim=false
performance_slo_claim_allowed=false
roce_claim_allowed=false
nvme_rdma_claim_allowed=false
phase156_decision=keep_source_gated_until_matching_image_smoke
next_recommendation=phase157_nvme_rdma_capability_boundary
```
## Goal
Define the next NVMe/RDMA boundary before implementation. The project already
has a TCP NVMe supported-lab path and has explicit RoCE/NVMe-RDMA non-claims.
Before adding code, Phase 157 should identify what product evidence would make
NVMe/RDMA a real claim versus a host capability or external RDMA library
experiment.
## Required Evidence
```text
phase157_nvme_rdma_capability_boundary_status=ok
current_nvme_tcp_supported_lab_status=source_gated
current_roce_claim_allowed=false
current_nvme_rdma_claim_allowed=false
rdma_host_capability_inputs_documented=true
rdma_volume_server_capability_inputs_documented=true
rdma_transport_product_gap_documented=true
required_live_io_gate_documented=true
required_k8s_publish_gate_documented=true
performance_slo_claim_allowed=false
next_recommendation=<specific next phase>
```
## Boundaries
- Do not enable multi-block records by default.
- Do not turn Phase155 evidence into a public image claim unless the matching
published artifacts are actually smoked.
- Do not claim performance, RoCE, NVMe/RDMA, broad compatibility, or production
HA.
- Keep the recovery-test flusher-disable hook out of user guidance.
- Do not claim NVMe/RDMA or RoCE from host capability alone.
- Do not claim acceleration without same-shape baseline and product-owned
evidence.
- Do not mix the external RDMA library experiment with the Block product claim
unless a concrete transport path is wired and gated.
- Keep TCP NVMe supported-lab claims separate from future RDMA claims.
## Candidate Work
1. Review whether upcoming development wants a release now or continued source
work.
2. If no release is being cut, document that the opt-in remains source-gated.
3. If a release is being cut, define the minimal published-image smoke:
explicit opt-in, mounted recovery, `HeadLSN == recovered LSN`, reader/Ready,
cleanup.
4. Update release docs with the chosen boundary.
1. Inventory current Block NVMe/TCP evidence and current RDMA/RoCE non-claims.
2. Record what live facts are available from host preflight and volume-server
capability APIs.
3. Define the minimum product gates for NVMe/RDMA: standalone live I/O,
Kubernetes publish/attach, status surface, cleanup, and explicit fallback.
4. Decide the next implementation phase only after the evidence boundary is
clear.
## Exit Criteria
Phase 156 can close when the release boundary is explicit enough that README and
release docs cannot accidentally over-claim Phase155 source-gated evidence.
Phase 157 can close when the roadmap and docs clearly separate host capability,
external RDMA experiments, and a future Block NVMe/RDMA product claim.
@@ -0,0 +1,45 @@
# Phase 156 Finished Plan: WAL Multi-Block Release-Smoke Decision
Status: **closed 2026-07-17, QA PASS**.
## Problem
Phases 150-155 proved the disabled-by-default multi-block WAL record opt-in from
runtime wiring through mounted restart/recovery and durable-status confirmation.
The remaining risk was documentation drift: treating source-gated evidence as a
public release-image claim.
## Work
Phase 156:
- kept `durableWALMultiBlockRecords` and the recovery-test flusher hook default
off;
- documented that the opt-in remains source-gated;
- documented the exact future published-image smoke scope required before any
public release-image claim;
- added a local/remote-renderable gate that verifies chart defaults, explicit
opt-in rendering, Phase155 citation, and non-claim wording.
## Evidence
```text
phase156_wal_multiblock_release_smoke_decision_status=ok
source_gated_status=kept
published_image_smoke_required=true
published_image_smoke_scope=explicit_opt_in_recovery_status
default_wal_format_unchanged=true
recovery_test_disable_flusher_user_claim=false
performance_slo_claim_allowed=false
roce_claim_allowed=false
nvme_rdma_claim_allowed=false
phase156_decision=keep_source_gated_until_matching_image_smoke
next_recommendation=phase157_nvme_rdma_capability_boundary
cleanup_status=ok
```
## Conclusion
The WAL multi-block opt-in remains a source-gated backend optimization. Future
work can proceed to the next storage track unless a release manager requests the
matching-image explicit opt-in smoke.
@@ -87,6 +87,9 @@ This is the short internal roadmap. Keep it current and readable.
durable-status `HeadLSN` display by separating WAL byte-position metadata
from LSN boundaries; Phase 155 confirmed the same boundary in the mounted K8s
path with `DurableLSN == HeadLSN == recovered_lsn_after_restart=13511`.
Phase 156 keeps the opt-in source-gated until a future matching-image release
smoke validates the explicit opt-in recovery/status path on published
artifacts.
Do not skip from scripts directly to mutating operator lifecycle. Helm has
stabilized the installation contract, and Phase 35 added read-only CRD status,
@@ -0,0 +1,58 @@
# Phase 156 QA Sign-Off: WAL Multi-Block Release-Smoke Decision
Status: **PASS** on 2026-07-17.
Run location:
`/tmp/seaweed_block_phase156/results/phase156-wal-multiblock-release-smoke-decision-gate`.
## Verdict
Phase 156 keeps the multi-block WAL record optimization source-gated. It is not
a public release-image claim yet. A future public claim requires a matching
published-image smoke that runs the explicit opt-in recovery/status path and
proves `DurableLSN == HeadLSN == recovered LSN` after mounted restart/recovery.
No product runtime changed in this phase.
## Evidence
```text
phase156_wal_multiblock_release_smoke_decision_status=ok
runtime_opt_in_name=durable-wal-multiblock-records
default_wal_format_unchanged=true
source_gated_status=kept
published_image_smoke_required=true
published_image_smoke_scope=explicit_opt_in_recovery_status
recovery_test_disable_flusher_user_claim=false
performance_slo_claim_allowed=false
roce_claim_allowed=false
nvme_rdma_claim_allowed=false
release_image_claim_allowed=false
values_default_multiblock_false=true
values_default_recovery_test_disable_flusher_false=true
helm_default_omits_multiblock_opt_in=true
helm_default_omits_recovery_test_disable_flusher=true
helm_explicit_renders_multiblock_opt_in=true
helm_explicit_renders_recovery_test_hook=true
phase155_mounted_confirmation_cited=true
matching_image_smoke_scope_documented=true
release_note_non_claims_documented=true
phase156_decision=keep_source_gated_until_matching_image_smoke
next_recommendation=phase157_nvme_rdma_capability_boundary
cleanup_status=ok
```
## Boundary
- Multi-block WAL records remain default-off.
- The recovery-test flusher-disable hook remains test-only and outside user
release guidance.
- The evidence is source-gated and does not become a published-image claim.
- No performance/SLO, RoCE, NVMe/RDMA, broad compatibility, or production HA
claim is added.
## Conclusion
Phase 156 closes the WAL multi-block release-boundary decision for now. The next
technical track can move away from this backend optimization unless a release is
being cut and a matching-image smoke is explicitly requested.
@@ -0,0 +1,97 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="${1:-$(pwd)}"
ARTIFACT_DIR="${SW_BLOCK_ARTIFACT_DIR:-${ROOT}/results/phase156-wal-multiblock-release-smoke-decision-gate}"
SUMMARY="${ARTIFACT_DIR}/phase156-wal-multiblock-release-smoke-decision-summary.txt"
mkdir -p "${ARTIFACT_DIR}/helm"
: >"${SUMMARY}"
write_summary() {
echo "$*" | tee -a "${SUMMARY}" >/dev/null
}
require_grep() {
local file="$1"
local needle="$2"
local label="$3"
if ! grep -Fq -- "${needle}" "${file}"; then
echo "missing ${label}: ${needle} in ${file}" >&2
exit 1
fi
write_summary "${label}=true"
}
require_not_grep() {
local file="$1"
local needle="$2"
local label="$3"
if grep -Fq -- "${needle}" "${file}"; then
echo "unexpected ${label}: ${needle} in ${file}" >&2
exit 1
fi
write_summary "${label}=true"
}
write_summary "phase156_wal_multiblock_release_smoke_decision_status=running"
write_summary "runtime_opt_in_name=durable-wal-multiblock-records"
write_summary "default_wal_format_unchanged=true"
write_summary "source_gated_status=kept"
write_summary "published_image_smoke_required=true"
write_summary "published_image_smoke_scope=explicit_opt_in_recovery_status"
write_summary "recovery_test_disable_flusher_user_claim=false"
write_summary "performance_slo_claim_allowed=false"
write_summary "roce_claim_allowed=false"
write_summary "nvme_rdma_claim_allowed=false"
write_summary "release_image_claim_allowed=false"
cd "${ROOT}"
require_grep "charts/seaweed-block/values.yaml" "durableWALMultiBlockRecords: false" "values_default_multiblock_false"
require_grep "charts/seaweed-block/values.yaml" "durableWALRecoveryTestDisableFlusher: false" "values_default_recovery_test_disable_flusher_false"
require_grep "charts/seaweed-block/values.schema.json" '"durableWALMultiBlockRecords": { "type": "boolean" }' "schema_documents_multiblock_opt_in"
require_grep "charts/seaweed-block/values.schema.json" '"durableWALRecoveryTestDisableFlusher": { "type": "boolean" }' "schema_documents_recovery_test_hook"
helm template sw-block charts/seaweed-block --namespace kube-system \
>"${ARTIFACT_DIR}/helm/default-template.yaml" \
2>"${ARTIFACT_DIR}/helm/default-template.stderr.txt"
require_not_grep "${ARTIFACT_DIR}/helm/default-template.yaml" "--launcher-durable-wal-multiblock-records" "helm_default_omits_multiblock_opt_in"
require_not_grep "${ARTIFACT_DIR}/helm/default-template.yaml" "--launcher-durable-wal-recovery-test-disable-flusher" "helm_default_omits_recovery_test_disable_flusher"
helm template sw-block charts/seaweed-block --namespace kube-system \
--set blockmaster.durableWALMultiBlockRecords=true \
--set blockmaster.durableWALRecoveryTestDisableFlusher=true \
>"${ARTIFACT_DIR}/helm/explicit-opt-in-template.yaml" \
2>"${ARTIFACT_DIR}/helm/explicit-opt-in-template.stderr.txt"
require_grep "${ARTIFACT_DIR}/helm/explicit-opt-in-template.yaml" "--launcher-durable-wal-multiblock-records" "helm_explicit_renders_multiblock_opt_in"
require_grep "${ARTIFACT_DIR}/helm/explicit-opt-in-template.yaml" "--launcher-durable-wal-recovery-test-disable-flusher" "helm_explicit_renders_recovery_test_hook"
require_grep "docs/releases/wal-multiblock-opt-in.md" "Status: source-gated opt-in. This is **not** a default format change." "release_doc_status_source_gated"
require_grep "docs/releases/wal-multiblock-opt-in.md" "Phase 156 release-smoke decision: keep this opt-in source-gated." "phase156_decision_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" "A future public or published-image claim requires a matching-image smoke" "published_image_smoke_requirement_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" "explicit opt-in enabled" "published_image_smoke_scope_opt_in_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" 'durable-status `DurableLSN == HeadLSN == recovered LSN`' "published_image_smoke_scope_head_lsn_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" "phase155_mounted_durable_status_head_lsn_confirmation_status=ok" "phase155_mounted_confirmation_cited"
require_grep "docs/releases/wal-multiblock-opt-in.md" "No performance, throughput, latency, RTO, RPO, or SLO claim." "performance_non_claim_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" "No RoCE, NVMe/RDMA, GPU Direct, cuFile/cuObject, or NIXL claim." "rdma_non_claim_documented"
require_grep "docs/releases/wal-multiblock-opt-in.md" "Keep the recovery-test flusher-disable hook out of user release guidance." "recovery_test_hook_not_user_guidance"
require_grep "docs/releases/README.md" "wal-multiblock-opt-in.md" "release_index_links_boundary_doc"
require_grep "docs/releases/README.md" "future published-image smoke" "release_index_future_smoke_boundary_documented"
require_grep "docs/releases/README.md" "public release-image claim" "release_index_public_claim_boundary_documented"
require_grep "README.md" "WAL multi-block record opt-in" "root_readme_feature_status_documented"
require_grep "README.md" "requires a future matching-image release smoke" "root_readme_future_smoke_boundary_documented"
require_grep "README.md" "public image claim" "root_readme_public_claim_boundary_documented"
require_grep "charts/seaweed-block/README.md" "This is a lab-only optimization boundary backed by Phase 151/152/155 gates." "chart_readme_phase155_boundary_documented"
require_grep "charts/seaweed-block/README.md" "not a release-image claim until a matching-image smoke" "chart_readme_future_smoke_boundary_documented"
require_grep "charts/seaweed-block/README.md" "recovery/status path" "chart_readme_smoke_scope_documented"
require_grep "docs/releases/nvme-tcp-supported-lab.md" "156 | WAL multi-block release-smoke decision keeps opt-in source-gated | PASS" "nvme_lab_phase156_row_documented"
write_summary "matching_image_smoke_scope_documented=true"
write_summary "phase155_mounted_confirmation_cited=true"
write_summary "release_note_non_claims_documented=true"
write_summary "phase156_decision=keep_source_gated_until_matching_image_smoke"
write_summary "next_recommendation=phase157_nvme_rdma_capability_boundary"
write_summary "cleanup_status=ok"
write_summary "phase156_wal_multiblock_release_smoke_decision_status=ok"