Repository navigation
feat(assistant): candidate selection with Claude assessor and read model columns (PR 3a) - #9
Merged
Merged
Conversation
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.
Qué
PR 3a del plan (
docs/plan-assistant-genai.md): read model y selección de candidatos. Todavía no tiene punto de entrada:RecommendCandidatesolo lo ejercitan sus tests hasta que el PR 3b añada la herramienta del agente. No cambia ningún comportamiento existente.ff5e81205e1eañade aproduct_documentslas columnassku(índice único),name,price_centsycurrency.IndexCatalogdesde el DTO del catálogo.noul:meets_requirements(filtro) ysuitable_for_use(ordenación).selectes una función pura: filtra, ordena, desempata porretrieval_scorey después porproduct_id, y aplica los umbrales con>=.ClaudeCandidateAssessor:effort: "low"yselector_max_tokens= 1024;RecommendCandidate:selector_top_n;Especificación, decisiones con su porqué, criterios A1–A12 y evidencia:
docs/step-17-assistant-recommend.md.Code review
/code-review mediumdio 10 hallazgos, y se comprobó cada uno contra el código. Se aplicaron 6, cada uno con un test que fallaba antes:invalid_sample/error/deadlineen el logAssessmentUnavailableError)grepselector_max_tokenspropio (1024); un corte pormax_tokenses una muestra inválidaLos 3 falsos positivos y sus motivos están en el doc.
Verificación
make lint: ruff OK, pylint 10.00/10, mypy strict sin errores (80 ficheros).make test: 192 passed (antes 137).make reindexreal tras la migración:indexed=3 unchanged=0 deleted=0(relleno) y despuésindexed=0 unchanged=3 deleted=0.catalogsin cambios; los e2e del PR 2 sin cambios; ningúntype: ignore,noqanipylint: disablenuevo.httpx2.MockTransport.Al desplegar
Aplicar la migración
ff5e81205e1ey ejecutarmake reindexuna vez, para rellenar las columnas nuevas.🤖 Generated with Claude Code