wzcheng99andClaude Opus 4.7 6fbdf94df5 T3c: 4 scenarios × 2 impls + perf baseline + YAML shape docs
Per T3c mini plan §1 — closes T3 delivery except for T3-end three-sign.
Atomic per mini plan §3 inherited stop rules.

## Scope delivered

### 1. Four scenarios (matrix over walstore + smartwal)

  core/frontend/durable/scenario_crash_recovery_test.go
    TestT3c_Scenario_CrashRecovery_AckedBytesByteExact
    → pins INV-DURABLE-001 (canonical G4 gate)

  core/frontend/durable/scenario_wal_replay_test.go
    TestT3c_Scenario_WALReplay_NAckedWrites
    → pins INV-DURABLE-WAL-REPLAY-001

  core/frontend/durable/scenario_fsync_boundary_test.go
    TestT3c_Scenario_FsyncBoundary_AckedSurvivesUnackedMayVanish
    → pins INV-DURABLE-FSYNC-BOUNDARY-001

  core/frontend/durable/scenario_disk_fill_test.go
    TestT3c_Scenario_DiskFill_OutOfRange_FailsCleanly
    → pins PCDD-DURABLE-DISK-FULL-001

Each scenario:
  - Uses the shared logicalStorageFactories() matrix helper from T3a
  - Runs as `{smartwal, walstore}` subtests
  - Is an in-process L1 test (not subprocess / not YAML replay)
  - Simulates "restart" by building a FRESH DurableProvider over
    the same StorageRoot (closes + re-opens all state cleanly)

### 2. YAML shape docs

  testrunner/scenarios/testdata/t3c-durable-crash-recovery.yaml
  testrunner/scenarios/testdata/t3c-durable-wal-replay.yaml
  testrunner/scenarios/testdata/t3c-durable-fsync-boundary.yaml
  testrunner/scenarios/testdata/t3c-durable-disk-fill.yaml

Documentation of each scenario's shape, variant matrix, and
ledger pin. Authoritative test is the Go replay; YAML mirrors it
for reviewability per mini plan §1.1.

### 3. Perf baseline

  testrunner/perf/t3c-durable-baseline.md
    Workload spec + first-light numbers (sw dev Windows 11)

  core/frontend/durable/perf_baseline_test.go
    BenchmarkT3c_DurablePerf — matrix benchmark, both impls

First-light numbers at 8000 iterations, Sync every 64 writes:
  - walstore: 197 µs/op, 20.75 MB/s, ~5k ops/s
  - smartwal: 303 µs/op, 13.50 MB/s, ~3.3k ops/s

Characterization only, no threshold. Benchmark caps iterations
at 8000 so WAL capacity is not the bottleneck — not a saturation
benchmark. Real sustained numbers deferred to m01 fio run.

### 4. Closure report

  sw-block/design/v3-phase-15-t3-closure-report.md
    (seaweedfs repo — not in this commit)

§A-§F: batch history, delivery summary, V2 port depth audit,
ledger rows, T3-end three-sign table, change log.

## Acceptance (mini plan §2)

  #1 All 4 scenarios × 2 impls (8 subtests)        ✅ all green
  #2 Frontend continuity — existing T2 tests green  ✅ (see #5)
  #3 m01 fs-workload smoke                           ⏸ post-sign (QA-owned)
  #4 Perf baseline artifact                          ✅ numbers filled
  #5 Full regression                                 ✅ 17/17 pkgs ok
  #6 Boundary guard                                  ✅ durable/ auto-covered
  #7 6 new ledger rows queued                        ✅ (4 T3c + 5 from T3a/T3b already ACTIVE)
  #8 16 T2 ACTIVE rows still ACTIVE                  ✅ (no regression in iscsi/nvme)
  #9 Closure report filled end-to-end                ✅ (seaweedfs repo)
 #10 T3-end three-sign                               ⏸ pending architect + PM + QA

## Regression

  go test ./core/... -count=1 → 17/17 packages ok
  - core/frontend/durable: 2.0s (76 subtests; +16 from T3c: 4 scenarios × 2 + 8 from earlier)
  - core/frontend/iscsi: 31.5s (no regression)
  - core/frontend/nvme: 61.3s (no regression)
  - core/host: 127.7s (subprocess tests still memback; no durable wire)
  - all others within normal range

## Stop rules honored

  #port-model default     ✅ (scenarios use public API only; no
                             storage internals)
  #no scope creep T4      ✅ (no replication / failover surface
                             introduced)
  #no new production code beyond T3a+T3b deliverables  ✅
                          (scenarios + perf are test infra only)

## Out of T3c (post-three-sign, not blocking)

  - m01 fs-workload verification (iterate-m01-nvme.sh tweak — QA)
  - fio sustained numbers replace Go-bench first-light
  - 24h m01 soak

## References

  sw-block/design/v3-phase-15-t3-port-audit.md
  sw-block/design/v3-phase-15-t3a-mini-plan.md (CLOSED 10cd117)
  sw-block/design/v3-phase-15-t3b-mini-plan.md (CLOSED 29e3d0d)
  sw-block/design/v3-phase-15-t3c-mini-plan.md (this batch)
  sw-block/design/v3-phase-15-t3-closure-report.md (awaiting 3-sign)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 18:20:24 -07:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%