T3-DEF-6 (NVMe session cleanup contract):
Add core/frontend/nvme/t3_qa_session_cleanup_addendum_test.go with
TestT3_NVMe_Session_CleanupOnClose_NoLeaksAcrossCycles (20 cycles,
goroutine leak guard) and TestT3_NVMe_Session_CleanupOnClose_CNTLIDAllocator
(monotonic CNTLID across 8 cycles + one post-cycles reconnect).
Pins new catalogue row C5-NVME-SESSION-STATE-CLEANUP-ON-CLOSE as
smoke + leak-guard (not full state-release introspection;
target-registry introspection deferred).
Matrix F ENOSPC cleanup robustness (iterate-m01-nvme.sh):
SSH cleanup phase was non-zero-exiting when blockvolume crashed on
ENOSPC (dead NVMe target hangs sudo nvme disconnect). Switch cleanup
block to tolerate all benign non-zero exits, remove set -e, and
use pattern-based success detection (grep 'ENOSPC triggered gracefully'
in server-side output) as the authoritative Matrix F pass signal.
Ownership: QA (L1 addendum + QA-owned script)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
QA-owned adaptation to make Path B reconnect matrix runs deterministic
on m01. Enables BUG-005 post-fix m01 re-verification against a clean
slate.
Changes:
- pkill stale blockmaster/blockvolume before start_services
- dmesg --clear before each run so check_dmesg_clean doesn't trip
on entries from a prior cycle
Precondition for BUG-005 (commit 1d21b0f) m01 re-verify: without
these, a successful fix run could look like a fail (stale dmesg)
or a partial fix could look like clean (stale processes still
serving). Committing so HEAD is reproducible end-to-end for the
cross-session reconnect test.
No production-code change; test infra only.
Co-Authored-By: Claude Sonnet 4.6 (QA agent) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
QA-owned tests and infra landed during Batch 11c sign-prep. These
files carry `Ownership: QA` headers — sw may not modify without
architect approval via §8B.4 Discovery Bridge.
## Files
### Kernel-realistic rewrites of prior QA tests
core/frontend/nvme/t2_v2port_nvme_pipelined_writes_test.go
core/frontend/nvme/t2_v2port_nvme_pipeline_extended_test.go
Post-BUG-001 revert rewrites to paired R2T+H2CData sequencing
(the pattern Linux kernel actually emits). Replaces the earlier
"send N cmds → read N R2Ts → then send all H2CData" shape which
QA withdrew after BUG-001 §13 post-mortem established that async
R2T emission is spec-legal but not kernel-realistic, and chasing
it broke m01 compatibility.
### B-tier early-landed regression tests
core/frontend/nvme/t2_v2port_nvme_disconnect_mid_r2t_test.go (L1B-4)
Pins server cleanup when host disconnects mid-H2CData-stream.
Ledger row: PCDD-NVME-SESSION-DISCONNECT-MID-R2T-001
core/frontend/nvme/t2_v2port_nvme_reconnect_loop_test.go (L1B-1)
50 attach/detach cycles + goroutine-leak sentinel. Surfaces
resource leaks that single-shot tests would miss.
Ledger row: PCDD-NVME-SESSION-RECONNECT-LOOP-001
### L3-A sign-prep infrastructure
scripts/iterate-m01-nvme.sh
m01 iteration harness for the remaining QA §4 checklist
item #4. Runs against real Linux NVMe/TCP initiator for
product-ready evidence.
## Regression
go test ./core/frontend/nvme/ -count=1 → ok 60.9s
Full suite green including these files (already verified locally
before commit).
## Sign-prep checklist progress (QA §4)
#1 L1-A ConcurrentQueueStress [x] commit b0ccd27#2 L1-A LargeWriteStress [x] commit b0ccd27#3 L2-A t2-nvme-smoke.yaml + replay [x] commit b0ccd27#4 L3-A m01 iterate-m01-nvme.sh [x] this commit (script landed;
QA runs against m01 next)
#5 Full regression green [x]
#6 Boundary guard green [x]
#7-#11 QA, post-soak
Co-Authored-By: Claude Sonnet 4.6 (QA agent) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Product binaries (cmd/blockmaster, cmd/blockvolume) and
core/host wiring for volume-scoped assignment delivery,
durable authority with Windows rename retry, and the T0
closure test set (D1 L2 subprocess, D2 G1 adversarial,
D3 concurrent write-reload regression, D4 hosting-smoke
scenario + Go-native replay, D5 --topology flag).
Diagnostic surfaces: ObservationStore.SupersededCount
(PCDD-DELAYED-HB-001 evidence, not authority input) and
SetNowForTest clock seam on Store/Host, guarded by grep
test ensuring the identifier stays out of production files.