feat(health): answer whether recall is actually working - #11
Merged
Conversation
Yesterday the embedding provider started refusing requests, indexing stopped, and search kept returning plausible keyword hits for a day and a half. Nothing in the tool said a word, and the conclusion drawn was "the plugin doesn't work". `session-recall health` checks the chain and exits non-zero on RED, so a timer can act on it: - Freshness compares newest-on-disk against newest-indexed, not "when did the index last change" — an indexer that runs every session and fails every time keeps its own timestamp fresh while falling further behind. - Embedder makes one real call and quotes the error verbatim. A generic "unavailable" is what sent us chasing an API key that was never the problem. - Corpus counts sessions per engine, because a total hides one source going quiet. - Sources names missing roots: a mistyped CODEX_HOME indexes nothing and looks exactly like having no Codex history. Verdict is the worst zone present, not an average — one dead dimension makes recall untrustworthy regardless of what still works. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Зачем
Вчера провайдер эмбеддингов начал отбивать запросы, индексация встала, а поиск полтора суток
продолжал возвращать правдоподобные лексические хиты. Инструмент не сказал ни слова — и вывод
был сделан ровно тот, которого мы боимся: «плагин не работает».
session-recall healthЖивой вывод на реальной истории. Код возврата ненулевой при RED — можно вешать на таймер.
Почему измерения именно такие
«когда индекс менялся». Индексатор, который запускается каждую сессию и каждый раз падает,
исправно обновляет собственную метку, отставая всё сильнее — поймать это можно только
сравнением с диском.
«unavailable» — ровно то, из-за чего мы вчера полезли проверять ключ, который был исправен.
источник тихо перестал индексироваться.
CODEX_HOMEне индексирует ничегои выглядит точно как «у меня просто нет истории Codex».
Вердикт — худшая зона, а не среднее: одно мёртвое измерение делает recall ненадёжным вне
зависимости от того, что ещё работает.
Проверка
144 теста зелёные (было 136), восемь новых писались до кода.
🤖 Generated with Claude Code