Cache-path resolution logic exists in ~3 places (metadata_index, fts_index, index_cache); SQL condition builders are duplicated across query methods in metadata_index.rb. Extract shared helpers. Pure refactoring; behavior must not change (1385+ specs green).
Cache-path resolution logic exists in ~3 places (metadata_index, fts_index, index_cache); SQL condition builders are duplicated across query methods in metadata_index.rb. Extract shared helpers. Pure refactoring; behavior must not change (1385+ specs green).