Repository navigation
fix(sessions): persistir afirmaciones de hecho en Fase 0 sin «haz los cambios» - #566
Merged
Merged
Conversation
… cambios» Una frase como «el SSO corporativo se encuentra en sso.obp.mx» se ruteaba como chat_only, el gate descartaba el documento y el usuario recibía «No se guardaron cambios…» aunque el asistente afirmara haber editado. - shared-types: looksLikeProjectFactStatement (dominio/URL, verbos de ubicación, uso o nombrado; excluye preguntas y condicionales). - intent-router: gate determinístico edit_document (0.88) con documento en el panel; regla espejo en WORKSHOP_INTENT_ROUTER_PROMPT. - runner: shouldRetryBenchmarkAfterFalseEditClaim relanza el refinado dedicado cuando el chat afirma un cambio que no se persistió. - BENCHMARK_CHAT_NO_CHANGE ya no promete un reintento inexistente. - Pruebas en shared-types, router y runner; CHANGELOG y READMEs.
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.
Problema
En la pestaña Fase 0 (DBGA), una afirmación de hecho como «el SSO corporativo se encuentra en sso.obp.mx» no se persistía: el usuario tenía que terminar siempre con «haz los cambios al documento».
Cadena del fallo:
looksLikeDbgaEditRequestsolo reconoce verbos de edición, objetivo «al documento» o el imperativo; el clasificador de respaldo devuelveexplore→chat_onlycon confianza 0.72.tryBenchmarkDbgaEditTurnse salta el refinado dedicado si la acción no esedit_document.applyIntentPersistGatedescarta cualquier documento emitido enchat_only.benchmarkAssistantChatMessagelo sustituye por «No se guardaron cambios… Repite el pedido tal cual; reintentará automáticamente», pero no había reintento (y el router cachea la ruta).Cambios
@theforge/shared-types:looksLikeProjectFactStatement— frase corta con dominio/URL o verbo de ubicación, uso o nombrado («se encuentra en», «usamos», «se llama», «el dominio es»); excluye preguntas, condicionales y mensajes largos.IntentRouterService: gate determinísticoedit_document(0.88) cuando hay documento en el panel; regla espejo enWORKSHOP_INTENT_ROUTER_PROMPT.session-chat-turn.runner:shouldRetryBenchmarkAfterFalseEditClaim— si el turno fue chat, el asistente afirma haber modificado el documento y nada se persistió, se relanzaresolveDbgaContentForReturnen modo edición. No actúa con propuesta pendiente de confirmación ni cuando el usuario solo pregunta.BENCHMARK_CHAT_NO_CHANGE: ya no promete un reintento inexistente; sugiere indicar la sección a cambiar.encuentra/encuentrancomo stopwords deextractDbgaEditKeywords.Verificación
pnpm --filter @theforge/shared-types test(document-edit-intent): 20/20.tsc --noEmitdel api sin errores.CHANGELOG (Unreleased → Fixed) y READMEs de
modules/aiymodules/sessionsactualizados.