Skip to content

refactor(fan-out): remove unused runSemanticFanOut#55

Merged
AlexMost merged 1 commit into
mainfrom
refactor/remove-semantic-fanout
Jul 6, 2026
Merged

refactor(fan-out): remove unused runSemanticFanOut#55
AlexMost merged 1 commit into
mainfrom
refactor/remove-semantic-fanout

Conversation

@AlexMost

@AlexMost AlexMost commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Що це

Прибирання мертвого коду після гібридизації search_notes (#53) — follow-up до #54, де це було зафіксовано нотаткою в доці.

Зміни

  • src/lib/fan-out.ts — видалено runSemanticFanOut: єдиним його споживачем був search_notes, який з переходом на гібрид фанаутиться через runFanOut по всіх vault-ах (vault без корпусу віддає lexical_matches з порожнім semantic_matches)
  • src/lib/vault-registry.ts — видалено semanticAvailableEntries() з інтерфейсу та імплементації: після видалення хелпера не мав жодного продакшн-споживача
  • Тести — прибрано 11 тестів видаленого хелпера і semanticAvailableEntries з мок-реєстрів (7 файлів)
  • Докиfan-out.md, vault-registry.md, module-structure.md синхронізовано; у fan-out.md записано, чому хелпер зник і чому skipped_vaults лишається в контракті

Що НЕ змінюється

  • skipped_vaults лишається в IFanOutResult (завжди []) — always-present поля discoverable для агентів, і це зарезервований слот під майбутній fan-out тул з пре-фільтрацією vault-ів. MCP-контракт відповіді не змінюється
  • resolveSemanticVault і SEMANTIC_INDEX_NOT_FOUND живуть далі — їх використовують embeddings-only тули (get_similar_notes, find_duplicates)

Перевірки

npm test (747 passed) · npm run lint · npm run typecheck — green

🤖 Generated with Claude Code

Dead since search_notes went hybrid and switched to runFanOut over all
vaults (a corpus-less vault still contributes lexical_matches). Also
drop the now-unreferenced registry.semanticAvailableEntries() and its
test mocks. skipped_vaults stays in the response shape for contract
stability; docs updated to record the removal.

Co-Authored-By: Claude Fable 5 <[email protected]>
@AlexMost
AlexMost merged commit 4333abb into main Jul 6, 2026
2 checks passed
@AlexMost
AlexMost deleted the refactor/remove-semantic-fanout branch July 6, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant