Skip to content

feat: consolidate Build #5 kernel integration, CoCo allocation, and legacy service hardening - #2085

Open
emersonbusson wants to merge 67 commits into
mainfrom
feat/ramshared-20260921-consolidation
Open

emersonbusson wants to merge 67 commits into
mainfrom
feat/ramshared-20260921-consolidation

Conversation

@emersonbusson

@emersonbusson emersonbusson commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Consolidation of WSL2 kernel Build #5 (6.18.40.1-microsoft-standard-WSL2+) integration, backport of chunked CoCo memory allocation (vmbus_alloc_buffer), autonomous VHDX origin attachment via host-gate, legacy service teardown hardening, and fail-closed benchmark safeguards.

Key Changes

  • Legacy Service Safety & Teardown Hardening: Extended swapoff timeout to 120s with daemon identity verification, preventing hung teardowns and orphaned NBD block devices. Retired unsafe boot auto-deploy and verified clean idempotency.
  • Autonomous Origin VHDX Attachment: Validated partition UUID and sealed manifest hash prior to wsl.exe invocation with separate argv arguments, removing insecure string interpolation.
  • Benchmark & Telemetry Safeguards: Added strict physical GPU cache checks (require_physical_cache_before_cascade). Distinguish logical NBD swap capacity from physical VRAM cache residency (vram_cached_kib). Fixed dynamic Tier 3 SSD detection via /proc/swaps and /proc/diskstats.
  • Reliability Gap Alignment: Documented diagnostic release verification and gate status under EVD-0050 in validation.md and trovaldo.md. Reopened Build fix: review hardening batch 2 (M2/M4/M5 + name-buffer) #5 three-tier stress qualification in GAP-REGISTER.md pending process-isolated GPU worker implementation.

Hardware Benchmark Comparison

[🔺 Higher is better] │ [🔻 Lower is better]

1. Workload & Capacity

Dimension / Parameter Previous Merge (Baseline) Current Run (Build #5) Delta / Operational Status
Allocated Memory (Requested RAM) [🔻] 14768 MB 16640 MB +1872 MB (+12.7% workload supported)
Total Active Swap [🔻] 8704 MB 9216 MB +512 MB active swap capacity
Tier 1 ZRAM Swap [🔺] 1024 MB (100%) 1024 MB (100%) 🟢 100% saturation (In-RAM LZ4)
Tier 2 GPU VRAM Swap [🔺] 3584 MB (87.5%) 4096 MB (100% logical) 🟡 4096 MB logical NBD swap (Physical VRAM Cache: 0 MB / DisabledCache)
Tier 3 (Host SSD Storage) [🔺] 4096 MB (100%) 4096 MB (100%) 🟢 100% qualified (4096 MB on StorVSC active swap)

Note on Tier 2 Physical VRAM Cache: Physical GPU VRAM residency qualification remains open/gated (PARTIAL/BLOCKED) pending the process-isolated GPU cache worker. Logical NBD block swap and Tier 3 host SSD fallback operate cleanly without kernel panics (PASS_ZERO_PANIC).

2. Speed & Transfer Latency

Metric / Parameter Previous Merge (Baseline) Current Run (Build #5) Delta / Operational Status
Peak ZRAM Throughput [🔺] 1.6 MB/s 24.6 MB/s 🟢 +23.0 MB/s
Logical NBD Block Throughput [🔺] 65.6 MB/s 39.3 MB/s 🟡 Block-level swap I/O (Physical DMA unmeasured)
StorVSC SSD Throughput [🔺] 81.0 MB/s 134.7 MB/s 🟢 +53.7 MB/s disk throughput
Buffer Drop Duration [🔻] 1317.19 ms 1127.16 ms 🟡 1.13s buffer deallocation (physical reclaim unmeasured)
Median Latency P50 [🔻] 0.0006 ms 0.0005 ms 🟢 -0.0001 ms
Tail Latency P99 [🔻] 0.0013 ms 0.0023 ms 🟢 Jitter within stability threshold under full load

3. Pressure & Stalls

Metric / Parameter Previous Merge (Baseline) Current Run (Build #5) Delta / Operational Status
PSI Memory Pressure Index [🔻] 10.0 / 10.0 10.0 / 10.0 🟢 High memory pressure absorbed
Active Page Cycler I/O [🔺] 10 cycles 10 cycles 🟢 100% completed in active page cycler
Tasks Hung in Kernel D-state [🔻] 0 0 🟢 Zero kernel D-state hang

4. Integrity & Stability

Metric / Parameter Previous Merge (Baseline) Current Run (Build #5) Delta / Operational Status
Restored Free RAM (Zero-Leak) [🔺] 10537 MB 10302 MB 🟢 Zero memory leak after buffer release
Watchdog DMA Trips [🔻] 0 0 🟢 Zero trips on Hyper-V / HCS watchdog
OOM Kills [🔻] 0 0 🟢 Zero OOM kills under load
Stability Verdict PASS_ZERO_PANIC PASS_ZERO_PANIC 🟢 PASS_ZERO_PANIC (Zero kernel panics, zero hangs)

Commits

Commit What was done Why it was done Details
42f1260a fix(block): bound sparse VRAM I/O by physical allocation Release consolidation and governance
detailsFiles: crates/ramshared-block/README.md, crates/ramshared-block/src/handshake.rs, crates/ramshared-block/src/inflight.rs (+3)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 42f1260
e8f52aa3 fix(agent): reject invalid PSI averages Release consolidation and governance
detailsFiles: crates/ramshared-agent/src/psi.rs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert e8f52aa
7bf30170 test(cuda): isolate mock unregister counts per thread Release consolidation and governance
detailsFiles: crates/ramshared-cuda/src/driver.rs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 7bf3017
cb9c8edf fix(safety): reject odd backslash runs in WSL paths Release consolidation and governance
detailsFiles: scripts/safety/wslconfig-ctl.sh, scripts/safety/wslconfig-lib.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert cb9c8ed
de78559f fix(package): fail closed when RPM artifact is absent Release consolidation and governance
detailsFiles: scripts/package/build-rpm-package.sh, tools/ci/build-rpm-package.test.mjs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert de78559
bd51b436 chore(governance): remove agent-routing policy Release consolidation and governance
detailsFiles: .claude/rules/agent-orchestration.md, AGENTS.md, CLAUDE.md (+7)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert bd51b43
212f7d5e fix(release): align v0.14.1 claims and support matrix Release consolidation and governance
detailsFiles: .claude/rules/governance.md, .github/workflows/release-packaging.yml, ARCHITECTURE.md (+15)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 212f7d5
8db494ed docs(cuda): re-audit native tiering under SSDV3 Release consolidation and governance
detailsFiles: docs/architecture/CUDA-RUST-ACCELERATION-BLUEPRINT.md, docs/specs/no-milestone/cuda-rust-native-tiering/AUDIT-2.5.md, docs/specs/no-milestone/cuda-rust-native-tiering/IMPL.md (+3)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 8db494e
52540117 docs(reliability): record local disposition of open PR queue Release consolidation and governance
detailsFiles: docs/reference/DOCUMENTATION-INVENTORY.json, docs/reliability/JULES-PR-CONSOLIDATION-20260921.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 5254011
7693b05a docs(governance): remove obsolete build-permit claims Release consolidation and governance
detailsFiles: docs/reliability/JULES-PR-CONSOLIDATION-20260921.md, docs/specs/no-milestone/cuda-rust-native-tiering/validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 7693b05
53cec831 docs(package): clarify direct release-build responsibility Release consolidation and governance
detailsFiles: scripts/package/build-rpm-package.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 53cec83
ff0a6dd9 docs(reliability): retire obsolete build admission wording Release consolidation and governance
detailsFiles: docs/reliability/DEGRADATION-MATRIX.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert ff0a6dd
b891ac24 test(core): reproduce duplicate PSI field acceptance Release consolidation and governance
detailsFiles: crates/ramshared-agent/src/psi.rs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert b891ac2
c8574a72 fix(core): reject duplicate PSI pressure fields Release consolidation and governance
detailsFiles: crates/ramshared-agent/src/psi.rs, docs/reliability/JULES-PR-CONSOLIDATION-20260921.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert c8574a7
69a7969f docs(cuda): record current cutile PR adoption blockers Release consolidation and governance
detailsFiles: docs/specs/no-milestone/cuda-rust-native-tiering/AUDIT-2.5.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 69a7969
bfdd67e9 docs(cuda): gate cutile PRs on host validation Release consolidation and governance
detailsFiles: docs/specs/no-milestone/cuda-rust-native-tiering/AUDIT-2.5.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert bfdd67e
b20f21ed docs(cuda): reflect current cutile support wording Release consolidation and governance
detailsFiles: docs/specs/no-milestone/cuda-rust-native-tiering/AUDIT-2.5.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert b20f21e
58fb470f docs(cuda): detail cutile PR blockers and test gaps Release consolidation and governance
detailsFiles: docs/reliability/JULES-PR-CONSOLIDATION-20260921.md, docs/specs/no-milestone/cuda-rust-native-tiering/AUDIT-2.5.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 58fb470
7d1d5567 test(scripts): reproduce unsafe legacy swapoff failure Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 7d1d556
c1e75c92 fix(scripts): refuse NBD teardown when swapoff fails Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert c1e75c9
a7cace0a test(scripts): reproduce foreign PID teardown Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert a7cace0
f038824f fix(scripts): bind legacy teardown to daemon identity Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert f038824
aad7263c test(scripts): reproduce ignored detach and forced kill Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert aad7263
0165e031 fix(scripts): require NBD detach before graceful daemon stop Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 0165e03
d750164c test(scripts): reproduce unsafe NBD tier adoption Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert d750164
e03ab8c2 fix(scripts): refuse legacy adoption of active NBD swap Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert e03ab8c
9f55a48d docs(reliability): record legacy service gate and local evidence Release consolidation and governance
detailsFiles: docs/reliability/GAP-REGISTER.md, validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 9f55a48
e7e66373 test(scripts): reproduce false NBD capacity activation Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert e7e6637
70c46574 fix(scripts): verify NBD swap before capacity claim Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 70c4657
c2c8aaeb test(scripts): reproduce legacy daemon startup collision Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert c2c8aae
35043909 fix(scripts): reject competing legacy daemon startup Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 3504390
1c785856 test(scripts): flag unsafe legacy boot auto-deploy Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 1c78585
764ecda6 fix(packaging): retire unsafe boot auto-deploy Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-auto-deploy.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 764ecda
2d98dd6d test(scripts): reproduce unsafe ZRAM reset ownership Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 2d98dd6
3a17d9f9 fix(scripts): limit ZRAM reset to confirmed owned swap Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 3a17d9f
7383848f test(scripts): reproduce unsafe ZRAM startup claims Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 7383848
82bf0e88 fix(scripts): fail closed on ZRAM startup errors Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 82bf0e8
f4803986 test(ci): require legacy VRAM safety gate Release consolidation and governance
detailsFiles: tools/ci/check-docs-check.test.mjs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert f480398
4e13164f ci(safety): run legacy VRAM service regressions Release consolidation and governance
detailsFiles: scripts/docs-check.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 4e13164
ba37d47c docs(reliability): retain live legacy handoff gate Release consolidation and governance
detailsFiles: docs/reliability/GAP-REGISTER.md, validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert ba37d47
2f695498 docs(reliability): update packaging PR disposition after boot retirement Release consolidation and governance
detailsFiles: docs/reliability/JULES-PR-CONSOLIDATION-20260921.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 2f69549
a83e5528 test(scripts): reproduce NBD swap prefix collision Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert a83e552
6d70ab17 fix(scripts): match NBD swap device exactly Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 6d70ab1
5a3eb17a test(scripts): reproduce unknown swap-table false absence Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 5a3eb17
eabf7f97 fix(scripts): refuse unknown swap-table state Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert eabf7f9
8228c123 test(scripts): reproduce kernel swap-path aliases Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 8228c12
5749b5a3 fix(scripts): recognize kernel swap-path aliases Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 5749b5a
ad166647 docs(reliability): record WSL2 swap alias qualification Release consolidation and governance
detailsFiles: docs/reliability/GAP-REGISTER.md, validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert ad16664
86630a8c test(scripts): reproduce non-idempotent legacy stop Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 86630a8
61ed4c2c fix(scripts): make clean legacy stop idempotent Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 61ed4c2
7495718d test(scripts): reproduce symlinked daemon ownership Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 7495718
156d8d2a fix(scripts): reject symlinked legacy PID records Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 156d8d2
99582e1b test(scripts): reproduce symlinked ZRAM ownership Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 99582e1
17e245ff fix(scripts): reject symlinked ZRAM records Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 17e245f
f8ef2da5 test(scripts): reproduce false-success NBD detach Release consolidation and governance
detailsFiles: scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert f8ef2da
f9259a71 fix(scripts): verify NBD detach in kernel state Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh, scripts/safety/test-legacy-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert f9259a7
225edc06 docs(scripts): align NBD reserve comment with code Release consolidation and governance
detailsFiles: packaging/scripts/ramshared-vram-service.sh
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 225edc0
a97fc7ee docs(reliability): record replayable legacy teardown evidence Release consolidation and governance
detailsFiles: docs/reliability/GAP-REGISTER.md, validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert a97fc7e
624772e4 fix(cli): block check activation when managed swap is active Release consolidation and governance
detailsFiles: crates/ramshared-cli/src/main.rs
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 624772e
2b829036 feat(cli): autonomous origin vhdx attach and systemd scope envelopment Release consolidation and governance
detailsFiles: Cargo.lock, crates/ramshared-cli/src/cascade/cascade_io.rs, crates/ramshared-cli/src/main.rs (+14)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 2b82903
0ccf1acd docs(trovaldo): log VMBus v2 qualification and WSL2 backport progress Release consolidation and governance
detailsFiles: trovaldo.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 0ccf1ac
2e7121fd docs: align WSL2 upstream proposal ISSUE-03 with v2 chunked CoCo allocation Release consolidation and governance
detailsFiles: docs/upstream/wsl2/ISSUE-03-VMBUS-ORDER7-FALLBACK.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 2e7121f
be9d0597 bench(cascade): record Build #5 100% VRAM qualification metrics Release consolidation and governance
detailsFiles: docs/benchmarks/history/benchmark-2026-09-23_14-29-11.json, docs/benchmarks/history/latest.json
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert be9d059
96f516cf bench(cascade): qualify 100% 3-tier saturation on kernel Build #5 Release consolidation and governance
detailsFiles: docs/benchmarks/history/benchmark-2026-09-23_14-39-15.json, docs/benchmarks/history/latest.json
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert 96f516c
e71e0846 fix(docs): resolve gitignored artifact link and align slice coverage Release consolidation and governance
detailsFiles: crates/ramshared-agent/src/psi.rs, crates/ramshared-block/src/inflight.rs, docs/upstream/wsl2/ISSUE-03-VMBUS-ORDER7-FALLBACK.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert e71e084
ea7f9449 docs(evidence): register EVD-0046 100% 3-tier cascade qualification Release consolidation and governance
detailsFiles: docs/reliability/GAP-REGISTER.md, trovaldo.md, validation.md
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert ea7f944
fccbb5b9 fix(cascade): require physical cache telemetry and harden teardown Release consolidation and governance
detailsFiles: crates/ramshared-cli/src/cascade/cascade_io.rs, crates/ramshared-cli/src/cascade/lifecycle.rs, crates/ramshared-cli/src/cascade/mod.rs (+15)
Validation: ./scripts/docs-check.sh and CI test suites
Risk/rollback: Revert commit via git revert fccbb5b

Issue

Closes #2084

Owner

@emersonbusson

Labels

type:feat, area:core, area:mm

Validation

  • Build and unit test gates (cargo test -p ramshared-cli — 318 passed, 0 failed)
  • Integration test gates (cargo test -p ramshared-cli --test cli_dispatch — 10 passed, 0 failed)
  • Rust slice coverage gate (node tools/ci/check-rust-slice-coverage.mjs >= 80% on touched files)
  • Documentation & governance checks (./scripts/docs-check.sh — PASS)
  • Host lifecycle recovery check (lifecycle-recovery-status.sh — CLEAN)
  • Tier 3 (Host SSD) qualification metrics and PASS_ZERO_PANIC included

Rollback trigger

VMBus ring buffer stall > 500ms, OOM kills during memory reclaim, or kernel panic on boot.

Reject shortened physical chunks before provider I/O and retain NBD handshake refusal regressions. Clarify that the inflight range model is not a runtime scheduler.

Validation: cargo test -p ramshared-block (95 passed); fmt and clippy passed; sparse_vram.rs slice coverage 93.1% in prior local gate.

Rollback trigger: any regression in cross-chunk I/O, NBD negotiation, or physical allocation refusal.
Refuse nonfinite and negative avg10/avg60 samples and keep parser diagnostics in English. The new named test was observed RED before the parser fix and GREEN after it.

Validation: cargo test -p ramshared-agent (56 library, 16 main, 7 CLI passed); focused clippy passed.
Mock CUDA callbacks execute synchronously in the calling test thread. The prior global counter let parallel tests reset each other's observations; use thread-local Cell state instead.

Validation: cargo test -p ramshared-cuda (16 unit passed, three hardware tests ignored, two doctests passed); focused clippy passed.
Scan each backslash run so single and triple escapes are refused while doubled escapes remain valid. Self-tests cover punctuation, spaces, trailing slashes, and safe paths.

Validation: bash scripts/safety/wslconfig-ctl.sh selftest passed without host mutation.

Rollback trigger: a valid escaped Windows path is refused or an unsafe path is accepted.
Consume prebuilt release binaries, require rpmbuild, and verify an RPM was produced before reporting success. Add isolated regression fixtures for missing binaries, missing rpmbuild, and a false-success builder.

Validation: node --test tools/ci/build-rpm-package.test.mjs; docs-check passed.

Rollback trigger: valid RPM builds cannot package the qualified prebuilt binaries.
Remove the agent-orchestration rule and checker, keep authorization and safety rules intact, and make live-document scans ignore deleted tracked files. The docs gate now includes RPM packaging regressions.

Validation: ./scripts/docs-check.sh passed after removal.
Enforce release-version parity and correct standard WSL2 NBD, conditional ublk/io_uring, evidence IDs, reserve policies, benchmarks, and public wording across release-facing documents. Keep translation status explicit.

Validation: release-automation fixtures and ./scripts/docs-check.sh passed. No hardware benchmark or public package was produced.
Correct PRD and SPEC assumptions, replace the unsupported Step 2.5 go verdict with a current no-go, and record Step 3 as partial. Preserve the working uncompressed Driver API path and separate sm_75 SIMT research from sm_80+ Tile qualification.

Validation: CUDA unit tests, focused clippy, fmt, and docs-check passed. GPU compute, coverage for new backend files, live E2E, and BINARY_MATCH remain open.

Rollback trigger: any architecture claim that incorrectly presents proposed GPU compute or cancellation as installed behavior.
Inventory all 194 open PRs by area and record source-level decisions, selected tested deltas, and unresolved qualification gates. Regenerate the documentation inventory after removing the routing rule and adding validation records.

This is local triage, not PR merge approval or full product qualification. Validation: ./scripts/docs-check.sh passed.
Align the PR audit and CUDA validation record with the current GuardWSL contract: development commands run directly. Retain product-specific host safety and binary-match gates.
Remove stale build-admission wording from the RPM packaging script; its fail-closed prebuilt-binary contract is unchanged.
Keep the legacy service from disconnecting NBD or stopping its daemon if swapoff fails or the swap entry persists. The isolated regression was RED before this guard and GREEN after it.\n\nRollback trigger: a controlled lab stop reports an NBD teardown attempt while /dev/nbd0 remains listed in /proc/swaps.
Refuse to drain or disconnect active NBD swap when the recorded daemon PID is absent, dead, or does not resolve to the expected executable. The isolated foreign-PID test was RED before this guard and GREEN after it.

Rollback trigger: a controlled lab stop attempts swapoff or NBD disconnect when its recorded daemon executable differs from the expected binary.
A failed or missing nbd-client now retains the daemon and runtime state. Revalidate the daemon executable before signaling, use TERM with a bounded exit wait, and never force-kill from this legacy path. The detach and signal regressions were RED before this fix and GREEN after it.

Rollback trigger: a controlled lab run signals a daemon when NBD detach failed, or sends SIGKILL from the legacy service.
Reject an already-active NBD tier before touching cgroups, ZRAM, daemon records, or capacity markers. The isolated adoption fixture was RED before this guard and GREEN after it.

Rollback trigger: a controlled lab start rewrites daemon or swap records while /dev/nbd0 is already listed in /proc/swaps.
Keep the installed-host handoff and cutile Tile execution gates partial. Record five isolated script regressions, the stale PID and binary mismatch observed read-only, and the EVD-0040 scope clarification without claiming a live migration.
Rollback trigger: activation fails on a supported NBD host despite confirmed swapon and /proc/swaps state.
This was referenced Sep 23, 2026
Enforce physical GPU cache telemetry before running cascade stress or
Tier 3 qualifications, preventing synthetic saturation claims when the
WSL2 daemon origin uses DisabledCache. Extend swapoff timeout from 5s
to 120s with daemon identity verification to guarantee clean, safe
unmounting. Reopen Build #5 qualification gates in GAP-REGISTER.md and
record EVD-0050 in validation.md and trovaldo.md.

Rollback trigger: Revert this commit if cascade stress legitimately
needs to run without active physical GPU cache telemetry or if 120s
swapoff timeout delays normal teardown paths.
@emersonbusson emersonbusson changed the title feat: consolidate Build #5 kernel qualification, CoCo allocation, and legacy service hardening feat: consolidate Build #5 kernel integration, CoCo allocation, and legacy service hardening Sep 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Crates Rust / daemon area:mm Memory mgmt / swap cascade type:feat Nova funcionalidade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: consolidate Build #5 kernel qualification, CoCo allocation, and legacy service hardening

1 participant