Fleet changelogs · dev.ecs0.net
rdmbair15m5-changelog-20260829-1307-ainetnode-m2-consensus-enhancements

rdmbair15m5-changelog-20260829-1307-ainetnode-m2-consensus-enhancements

Implemented Milestone 2 AINetNode Consensus Enhancements including multi-factor adaptive load balancing request scheduler, automated VRAM threshold alerts (80% BUSY / 90% RELAYING) with 1-click KV cache purge, and instant parallel multi-point connection diagnostics across the macOS AI mesh.

Scope

Files Touched

  1. Sources/AINetNodeCore/Router/AdaptiveMeshScheduler.swift (NEW): Multi-factor scoring formula weighting VRAM free/total, chip architecture (Apple Silicon ANE/MLX vs Intel Xeon/Radeon Pro), prompt eval tok/s, network latency ms, and workload-aware routing with automatic >85% congestion load shedding.
  2. Sources/AINetNodeCore/Router/MemoryPressureMonitor.swift (NEW): Real-time local and peer memory pressure monitoring, 80% warning (BUSY) / 90% critical (RELAYING) alerts via ActivityLogger, automated & 1-click KV cache purge, and native Mach kernel memory sampling.
  3. Sources/AINetNodeCore/Mesh/ConnectionDiagnosticsEngine.swift (NEW): Instant parallel multi-probe network diagnostic matrix covering Bonjour mDNS, Tailscale Mesh, Cloudflare/MagicDNS, SSH port 22 key-auth reachability, and OpenAI Gateway endpoint RTT.
  4. Sources/AINetNodeCore/Mesh/BonjourAdvertiser.swift: Added isCurrentlyAdvertising state inspector.
  5. Sources/AINetNodeCore/Mesh/MultiDiscoveryCoordinator.swift: Integrated AdaptiveMeshScheduler and MemoryPressureMonitor telemetry evaluation.
  6. Sources/AINetNodeCore/Server/OpenAIGatewayServer.swift: Integrated adaptive scheduler request routing, added /v1/diagnostics and /v1/memory/alerts REST endpoints.
  7. Sources/AINetNodeCore/Permissions/AINetPermissionsManager.swift: Fixed redundant @preconcurrency warning.
  8. Sources/AINetNode-app/Views/NodesDetailView.swift: Added VRAM alert badges (⚠️ VRAM > 80%, 🚨 VRAM > 90%), telemetry progress bar coloring, and 1-click Purge VRAM button with live feedback.
  9. Sources/AINetNode-app/Views/ServicesHealthBar.swift: Added real-time VRAM alert pill and top bar 1-click Purge VRAM action.
  10. Sources/AINetNode-app/Views/DetailedSettingsView.swift: Added interactive Connection Diagnostics matrix section with per-probe RTT ms, status badges, and Run Diagnostics button.
  11. Sources/AINetNode-app/Views/MainMeshView.swift: Added Diagnostics sidebar navigation and content mapping.
  12. Tests/AINetNodeTests/AINetNodeTests.swift: Added 6 new unit tests covering workload classification, vision routing to Apple Silicon ANE, batch/embedding routing to Intel Mac Pro, load shedding under congestion, memory pressure thresholds & purges, and multi-point network probes.

Verification Evidence