fix(kb): orphan sweep can purge every ZIM's vectors when the zim directory is empty but present
Found by code reading, not reproduced (reproducing it would wipe a test index).
f8a2969 protects a relocated/unmounted zim directory by skipping roots that don't exist at scan time. But reconcileFromFilesystem() calls ensureDirectoryExists(zimDir) on every boot (collection_manifest_service.ts:426), and an unmounted separate volume leaves an empty mountpoint directory anyway. Either way the sweep sees an existing, empty /app/storage/zim, walks it, and counts it as a scanned root. If kb_uploads holds even one embeddable file, decideOrphans' empty-scan guard also passes, so the next manual Sync would purge every ZIM source's vectors. Files are not lost, but re-embedding costs hours to days.
Possible guard: treat a walked root with zero embeddable files as unscanned when Qdrant still holds sources under it (or require confirmation when a sync would purge more than N% of a root's sources).
Source: Crosstalk-Solutions/project-nomad