Fleet changelogs · dev.ecs0.net
rdmbair15m5-changelog-20260901-0749-replicantdb-expansion

rdmbair15m5-changelog-20260901-0749-replicantdb-expansion

Expand and modernize ReplicantDB across requirements R1 through R8: destination folder consolidation, LAN peer discovery, cloud provider detection, Time Machine indexer, Apple Photos exact deduplication with variation grouping, peer LocalAI/MLX inference offload, database WAL resilience, and in-window settings suite.

Scope & Host

Key Deliverables

  1. R1 (Folder Consolidation & Relocation): FolderConsolidator.swift (APFS CoW clonefile, 64KB chunk stream fallback, SHA-256 pre/post transfer verification, 4 collision policies, consolidation_audit database logging).
  2. R2 (LAN Neighbor & Peer Discovery): LANPeerDiscoveryService.swift & LANPeerProtocol.swift (Network.framework NWListener/NWBrowser Bonjour _replicantdb._tcp.local., capability negotiation, length-framed wire protocol).
  3. R3 (Cloud Storage & Dataless Stub Detection): CloudProviderDetector.swift & CloudStubGuard.swift (iCloud, Dropbox, Google Drive, OneDrive, Box, Proton Drive, pCloud; 5-layer stub guard preventing unbounded cloud downloads).
  4. R4 (Time Machine & NAS Backup Indexer): TimeMachineIndexer.swift & VolumeDiscovery.swift (APFS snapshots, .sparsebundle, .backupbundle, Backups.backupdb, firmlink cycle defense, raw 8MB disk image band exclusion, local SQLite isolation).
  5. R5 (Apple Photos Deep Metadata & Exact-Only Deduplication): ApplePhotosConnector.swift (Photos.framework EXIF/lens/GPS extraction, strict 100% cryptographic SHA-256 deduplication, 6 file variation categories for crops/edits/transcodes).
  6. R6 (Distributed Peer LocalAI & MLX Offloading): PeerInferenceRouter.swift (4-tier privacy guardrail barring sensitive credentials/contracts from network, MLX/Neural Engine capability scoring, local on-device heuristic fallback).
  7. R7 (Database Resilience & WAL Maintenance): DatabaseResilience.swift & SingleInstanceGuard.swift (SQLite WAL mode, FTS5 sync triggers, POSIX advisory flock single-instance locking, automated integrity sweeps, PRAGMA wal_checkpoint(TRUNCATE), VACUUM INTO live snapshots).
  8. R8 (In-Window Settings View): ReplicantDBSettings.swift & SettingsView.swift (6 modular SwiftUI settings panes for all subsystems, persistent JSON storage, locked security invariants, UI scaling ⌘+/⌘−/⌘0).
  9. CLI & E2E Testing: Unified CLI suite (replicantdb-cli), 4-tier opaque-box E2E test matrix (E2ETier1FeatureTests, E2ETier2BoundaryTests, E2ETier3PairwiseTests, E2ETier4WorkloadTests, ReplicantDBE2ETestSuite), and Tier 5 white-box adversarial suites.

Verification Evidence