.tasks/core/FSYNC-000-file-sync-system.md
Implement File Sync system - an index-driven service that orchestrates content synchronization between locations. File Sync operates entirely through VDFS index queries, transforming sync resolution from filesystem scanning into efficient database operations.
Architecture: Service-based orchestrator that dispatches FileCopyJob and DeleteJob to perform operations.
Why FileSyncService (not FileSyncJob):
One-way sync: source → target. Creates exact copy with automatic cleanup.
Two-way sync with conflict detection and resolution. Changes flow both directions.
Intelligent local storage management with access pattern tracking.
Note: Archive mode removed from design - users can achieve this with FileCopyJob + delete.
FSYNC-003 depends on foundational index work that was identified during architecture review:
Execution order: INDEX-010 → INDEX-011 → FILE-006 → FSYNC-003
No Code Duplication - Reuses FileCopyJob routing, strategies, VolumeManager infrastructure Proper Separation - Service orchestrates, jobs execute Testable - Sync logic independent from file operations Extensible - Easy to add new sync modes Consistent - Uses same code paths as manual operations