refactor: remove recency-boost + centraliza NOTION_API_VERSION#147
Merged
Conversation
…ERSION Bloco C do plano pós-diagnóstico (reduzir superfície). Mudanças de limpeza, sem alterar comportamento observável (suíte verde sem novos testes). - search.ts: remove applyRecencyBoost / recencyBoostEnabled e a chamada no-op. Era código especulativo, sem teste e desligado em prod (RECENCY_BOOST=0). Se a tese de recency voltar, deve vir com teste + número de eval que comprove ganho. Some também as env vars RECENCY_BOOST / RECENCY_HALFLIFE_DAYS (hidden knobs). - notion-version.ts: módulo sem efeito colateral com NOTION_API_VERSION como fonte única. clients.ts re-exporta; notion-oauth.ts, tasks/adapter.ts e portal/task-tracker.ts param de redeclarar o literal "2025-09-03" (a duplicação existia só pra evitar o process.exit() de clients.ts no import — o módulo novo resolve sem esse efeito colateral). build+test verdes (1265/1265). Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Bloco C do plano pós-diagnóstico (reduzir superfície)
Limpeza, sem mudança de comportamento observável.
search.ts(applyRecencyBoost/recencyBoostEnabled+ a chamada no-op): código especulativo, sem teste, desligado em prod (RECENCY_BOOST=0). Volta com teste + número de eval se a tese se provar.NOTION_API_VERSIONnum módulo sem efeito colateral (notion-version.ts).clients.tsre-exporta;notion-oauth.ts,tasks/adapter.tseportal/task-tracker.tsparam de redeclarar o literal (a duplicação só existia pra fugir doprocess.exit()declients.tsno import).npm run build+npm testverdes (1265/1265). Refactor coberto pelos testes existentes.🤖 Generated with Claude Code