Repository navigation
Conversation
…a tool En modo negaciones, una respuesta con una negación y un dato que solo está en custom_instructions (o en una tool de ese turno) se reemplazaba por la frase de espera. Esas fuentes ahora cuentan. Un dato que no está en ninguna sigue abriendo ticket. Ticket #8AF60E. Co-authored-by: santmun <santmun@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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é cambia
El Blindaje en modo
negacionesya no reemplaza una respuesta correcta cuando el dato vive encustom_instructionso en el resultado de una tool de ese turno. Un dato que no está en ninguna fuente, aunque vaya junto a una negación, sigue frenándose y abre ticket. La frase de espera se puede cambiar conBLINDAJE_HOLDING_PHRASE.Por qué
Ticket de soporte #8AF60E (
8af60e40-7f19-4edd-a62c-4b0596aa49f2), bot 1.0.77,BLINDAJE_MODE = "negaciones".src/blindaje/no está enmain(llega en el template publicado). Confirmé la causa en el verificador de starter 1.0.77, no en la hipótesis tal cual:custom_instructionsvan metidas en el system prompt, dentro de un bloque que dice que cambian cómo se atiende, no los hechos. El prompt del juez nunca dice que esos hechos cuentan igual que la KB.negacionesel prompt pide confiar en todo dato positivo y, más abajo, rechazar cualquier promo que no aparezca en las fuentes. Desde quesearchKbpidereturnMetadata: "all", la KB trae texto real. Una promo que solo está en las instrucciones no está en ese texto y se marca "dato sin respaldo". Se manda la frase de espera y se abre ticket.system_prompt_override, las instrucciones ni siquiera entran al prompt que ve el juez.El arreglo trata como fuente la KB, el contexto, el texto de
custom_instructions(aunque haya prompt manual) y las tools del turno. Ennegaciones, si cada dato positivo está en alguna de esas fuentes, la respuesta sale. Si hay un dato positivo en ninguna, se reemplaza. Una negación sola sigue yendo al modelo.Queda un hueco a propósito: una negación falsa pegada a un dato que sí está en las fuentes puede salir. Una negación sola, sin dato positivo, no.
Cómo lo probaste
pnpm testpasa (569 tests, incluyetest/blindaje/verify.test.ts)pnpm typechecklimpioChecklist
member/(config de cada quien)