Fleet changelogs · dev.ecs0.net
rdmbair13m5-changelog-20260905-1320-m4-it9-ramdisk-remediation-parity

rdmbair13m5-changelog-20260905-1320-m4-it9-ramdisk-remediation-parity

Milestone 4 Iteration 9 remediation: resolved bitROO dual-remote push parity, applied technical patches to macOS-ramDisk-app, verified 6 AST invariants, unit & TSan tests, empirical safe refusal, 15-cycle rapid stress test, 3x consecutive 192/192 Master E2E runs, 20/20 portfolio verification matrix, and dual-remote push on rdmsm4x.

Scope & Target Hosts

Changes Applied

  1. bitROO Dual-Remote Parity:

    • Synchronized commit c9a8aad to remotes fleet, backup, and origin.
    • Set upstream tracking to fleet/main.
    • Verified working tree clean, Fleet Parity 0 0, Backup Parity 0 0.
  2. macOS-ramDisk-app Technical Patches:

    • Sources/RAMDiskCore/ProcessLockInspector.swift:
      • In inspectLocksViaLsof: redirected standardError = FileHandle.nullDevice, closed stdoutPipe.fileHandleForWriting immediately post-spawn.
      • In inspectLocksViaLibproc: guarded numFds > 0, guarded !filePath.isEmpty, checked (openflags & UInt32(FWRITE)) != 0 || (openflags & 0x0002) != 0.
      • In parseLsofOutput: reset currentFdIsWrite per fd, preserved let isWrite = val.contains("w") || val.contains("W"), prevented cwd false positive (currentFdIsWrite = (val != "cwd" && isWrite)), detected write access on case "a" (w, u, W, U), and matched paths against rawPrefix and resolvedPrefix.
    • Sources/RAMDiskCore/StoragePrimitive.swift:
      • Added DarwinStoragePrimitive.isDeviceReady(_ device: String) -> Bool querying diskutil info with nullDevice stdout/stderr.
      • In attachRAMDisk: active settle polling via isDeviceReady up to 5.0s.
      • In formatVolume: pre-settle loop polling isDeviceReady up to 5.0s before eraseDisk.
      • In formatVolume retry loop: on "Could not find disk", polled isDeviceReady up to 4.0s.
      • In detachVolume: invoked Darwin.sync() before teardown.
    • Sources/RAMDiskCore/SnapshotManager.swift:
      • In createSnapshot: called Darwin.sync(), set COPYFILE_DISABLE = 1 in environment, excluded .fseventsd, .Spotlight-V100, and .Trashes.
      • In restoreSnapshot: set COPYFILE_DISABLE = 1 and called Darwin.sync().
    • Sources/RAMDiskCore/RAMDiskEngine.swift:
      • In createSnapshotNow(): called Darwin.sync() before snapshotManager.createSnapshot.
  3. Invariants & Testing:

    • AST Invariants: Verified all 6 literal strings intact verbatim (exit code 0).
    • Swift Compilation & Tests: swift build clean, swift test 4/4 pass, swift test --sanitize=thread clean with 0 data races.
    • Empirical Safe Refusal: Exited code 1 with structured JSON when /Volumes/RAMDisk/active_compilation.lock held open by python; cleanly released with code 0 on descriptor close.
    • 15-Cycle Rapid Stress Test: 15/15 cycles passed strictly at /Volumes/RAMDisk with 0 collisions and 0 residual devices.
    • 3x Master E2E Runs: 3 consecutive runs of run_e2e_tests.sh passed 192/192 tests across all 5 tiers (exit code 0).
    • Portfolio Verification Matrix: All 20 portfolio apps show 0 dirty, 0 0 Fleet Parity, 0 0 Backup Parity, and 0 matches for ecs0lib.
    • ReplicantDB Legacy Remote Invariant: roodb-legacy-DO-NOT-PUSH/main pinned strictly at b462f0e032580b92d9a55bc512b84651ff46a302 with 0 unpushed changes.
    • Git Promotion: Committed 706d0cf in macOS-ramDisk-app and pushed to fleet, backup, and origin. Working tree clean, 0 0 parity.

Verification Commands & Evidence