All 5 phases of the Ghost Mirror Workspace Synchronization system have been implemented, tested, and merged into master (commit 785b387).
Phase 1 & 2 – Foundations & Real-time Sync
FSMirror service (Ghost Mirror) on the Orchestrator.FileSync messages in agent.proto.watchdog).Phase 3 – Conflict Handling & Optimization
.cortexignore and .gitignore filtering (shared_core/ignore.py).Phase 4 – Browser & Shell Skill Integration
ShellSkill is now CWD-aware: automatically executes commands inside the session's mirrored workspace.BrowserSkill supports Download-to-Sync: browser downloads are saved directly into the mirrored workspace and propagated across the mesh.session_id is now passed through TaskRequest and BrowserAction for context-aware execution.Phase 5 – Resiliency & Automatic Recovery
test_recovery.py: node disconnected, server updated, node reconnected → file automatically recovered ✅poc-grpc-agent/test_mesh.py – Multi-node broadcast, ignore filtering, locking.poc-grpc-agent/test_recovery.py – Auto-recovery on reconnection.All phases of the Ghost Mirror Workspace Synchronization system have been implemented, tested, and merged into master (commit 785b387).
Phase 1 & 2 – Ghost Mirror foundations, bidirectional gRPC FileSync, watchdog-based delta streaming, multi-node broadcast.
Phase 3 – .cortexignore/.gitignore filtering, workspace LOCK/UNLOCK to prevent AI-user race conditions.
Phase 4 – ShellSkill CWD-aware execution in mirrored workspace; BrowserSkill Download-to-Sync; session_id passed through TaskRequest.
Phase 5 – SHA-256 hash drift detection; automatic file recovery on node reconnect; validated with test_recovery.py.
test_mesh.py – Multi-node sync, ignores, locking.test_recovery.py – Auto-recovery on reconnection (PASSED ✅).
Goal
Establish the foundations for real-time file synchronization between the Orchestrator and Agent Nodes using the Ghost Mirror pattern.
Tasks
FileSyncRequest,FileChunk, andDirectoryManifestinagent.proto.References