Fleet changelogs · dev.ecs0.net
rdmbair13m5-changelog-20260906-0627-shared-library-decomposition-fleet-cutover

rdmbair13m5-changelog-20260906-0627-shared-library-decomposition-fleet-cutover

Decomposed monolithic `ecs0lib` into 16 standalone Swift 6 packages under `rdmsm4x:~/dev/lib/ECS*`, cut over all 24 consuming applications across the portfolio to direct modular dependencies, resolved fleet blockers (INC-20260904-01 and ISSUE-20260904-13), enforced 100% Rule 34 zero-drift byte parity across web endpoints, and achieved 100% PASS on the master 5-tier E2E verification suite with universal dual-remote git parity across all 42 estate repositories.


Scope


Exact Deliverables & Files Touched

  1. 16 Standalone Shared Swift Packages (`rdmsm4x:~/dev/lib/ECS`)*:

    • `ECSProcess`: Actor-based streaming process runner (`ProcessRunner.swift`), non-deadlocking pipe drain via `readabilityHandler`, timeout escalation (`SIGKILL`).
    • `ECSLaunchd`: Launchd service lifecycle manager (`LaunchdServiceManager.swift`) with active caller self-bootout prevention (inspecting PID, caller label, executable path, `XPC_SERVICE_NAME`, harness env).
    • `ECSAppKit`: Single-instance guard (`SingleInstanceGuard.swift`) preserving permanent Darwin filesystem inode (`st_ino`) via `ftruncate` and `flock` without unlinking.
    • `ECSNetTop`: Socket telemetry engine, kernel nettop C bridge, dynamic Darwin linkers.
    • `ECSPersistence`: SQLite3 WAL + FTS5 full-text search engine with concurrent multi-worker safety.
    • `ECSNetworking`: HTTP/WebSocket server and transport layer.
    • `ECSSystem`: System watchdog, thermals, Darwin process metrics.
    • `ECSUI`: Modular UI primitives, styles, liquid glass components.
    • `ECSAgentic`: MCP scaffolding, agent workflows.
    • `ECSSettings`: Composable settings view components.
    • `ECSAI`: Apple MLX & AI core integrations.
    • `ECSConformance`: App baseline standards and conformance validators.
    • `ECSTerminal`: Terminal styling and Footlights status strip.
    • `ECSPermissions`: TCC and permission probers.
    • `ECSMemory`: RAMDisk storage primitive, VFS wrappers, authentic Darwin unmounts.
    • `ECSCloudKit`: Shared CloudKit synchronization engine.
    • All 16 packages configure Swift 6 mode (`swiftLanguageModes: [.v6]`) and `StrictConcurrency` with zero compiler warnings and zero circular dependencies.
  2. Consuming Portfolio Applications Cutover (24 Apps in `rdmsm4x:~/dev/apps/`):

    • Manifests updated across all 24 apps to depend directly on standalone `ECS*` packages: `Tyrell`, `RTTy`, `updateRoo`, `Voight`, `AINetNode`, `AirFleet`, `bitROO`, `bookmarkROO`, `CoreAudit`, `fileLabeler`, `iCloudMonitor`, `KeyRingScope`, `LogTTY`, `macOS-ramDisk-app`, `ModelVault`, `PasswordScope`, `RDconfTTY`, `rdLLM`, `rdRT`, `rdWORKBENCH`, `replicantDB`, `rooDB`, `SQLiteScope`, `ThermalScope`.
    • Monolithic `ecs0lib` references completely removed from active code across the entire portfolio.
    • `apps/replicantDB`: Build script `build.sh` and `scripts/verify_build_contract.zsh` decoupled to modular `ECS*` packages; safety invariant strictly preserved (`roodb-legacy-DO-NOT-PUSH` pinned to `b462f0e032580b92d9a55bc512b84651ff46a302` with `skipfetchall = true`, never pushed).
    • `apps/Tyrell`: In-flight attention/resolution assets preserved on tracking branch `codex/orchestrator10-attention-resolution-wip` (`578089a`), canonical `main` fast-forwarded to `fleet/main` and `backup/main` at `0 dirty | ahead-behind 0 0`.
  3. Fleet Blockers Resolved:

    • `INC-20260904-01`: Tyrell daemon memory and file descriptor leak resolved; deployment pipeline verified restarting daemon binary alongside app; file descriptor ceiling bounded at 38–42 FDs under sustained load.
    • `ISSUE-20260904-13`: RTTy `ApplicationFlowSampleRunner.swift` decoupled from cumulative eviction counters; active flow rates calculate and render live metrics without permanent em-dash fallback.
    • `ISSUE-20260906-03`: ReplicantDB build contract script decoupled from legacy `ecs0lib` references to direct `ECS*` packages.
  4. Rule 34 Dual Web Publishing Parity:

    • HTML documentation suites generated and published across `dev.ecs0.net/wiki/` and `eastcoastscience.net/wiki/`.
    • 100% exact cryptographic SHA-256 byte parity verified across all 17 library documentation pages and master `wiki/index.html` across all endpoints (`dev.ecs0.net`, `eastcoastscience.net`, and `dist/`).
    • Cloudflare Pages 24MB asset limit verified intact across all bundles.

Commands Run & Verification Evidence

  1. Master 5-Tier E2E Test Suite (`rdmsm4x`): ```zsh ssh rdmsm4x "zsh ~/dev/scripts/run_all_e2e_tests.zsh --tier all --plain" ```

    • Overall Gate Verdict: `PASS` (Duration: 636s)
    • Total Assertions / Tests: 784 / 784 passed (100%), 0 failures, 0 skipped.
    • Tier 1 (Feature Coverage): 16/16 standalone shared packages passed (374 assertions).
    • Tier 2 (Boundary & Concurrency): 16/16 packages passed under ThreadSanitizer; 0 data races.
    • Tier 3 (Multi-Platform & DAG): 8/8 compilation tasks passed across macOS, iOS, tvOS, and visionOS via `four_platform_gate.zsh`; DAG verified strictly acyclic.
    • Tier 4 (Consuming Applications): 24/24 applications passed cleanly under AppKit TAL protection (`Tyrell`, `RTTy`, `updateRoo`, `Voight`, `macOS-ramDisk-app`, `LogTTY`, etc.).
    • Tier 5 (Adversarial Stress & Hygiene): 7/7 gates passed:
      • 5MB streaming pipe saturation: PASS
      • Inode lock retention under thread contention: PASS
      • SQLite WAL 16 concurrent workers: PASS
      • Launchd caller self-bootout prevention: PASS
      • Residual Darwin kernel hygiene: 0 mounts, 0 dangling `/dev/disk*` devices, 0 directory stubs.
      • Dual-Remote Git Parity: `0 dirty | ahead-behind 0 0` verified across all 42 repositories.
      • Rule 34 Cryptographic Parity: 100% exact SHA-256 byte match.
  2. Universal Dual-Remote Git Parity Check: ```zsh ssh rdmsm4x "for d in ~/dev/lib/ECS* ~/dev/apps/* ~/dev/sites/*; do [[ -d "$d/.git" ]] || continue dirty=$(git -C "$d" status --porcelain | wc -l | tr -d ' ') ahead_behind=$(git -C "$d" rev-list --left-right --count fleet/main...HEAD 2>/dev/null || echo 'N/A') printf '%-35s dirty:%-3s fleet:%s\n' "$(basename "$d")" "$dirty" "$ahead_behind" done" ```

    • Result: All 42 repositories strictly reported `dirty: 0`, `fleet: 0 0`, `backup: 0 0`.
  3. Rule 34 Cryptographic Parity Gate: ```zsh ssh rdmsm4x "python3 ~/dev/sites/dev.ecs0.net/scripts/verify_rule34_parity.py" ```

    • Result: `✓ MATCH` across all 17 HTML files (Exit code 0).
  4. Independent Victory Audit:

    • Auditor: `teamwork_preview_victory_auditor_1`
    • Authority: `/Users/richh/.agents/ORIGINAL_REQUEST.md`
    • Final Verdict: `VICTORY CONFIRMED`

Backup Locations & How to Undo


Outstanding Owner Actions