fix(reply): answer again without earlier answers when the user did it and the answer refuses

Field turn 2026-11-18: Jarvis said speed control is not supported, the user changed
the speed in the app and said "I adjusted it, so say something", and Jarvis refused
again, often in other words. Prompt wording did not move it (five rules, two history
shapes tried).

v2 replies with an earlier Jarvis answer in the dialogue memory and no tool call now
ask the chat model two short yes/no questions: does the user say they did something
themselves, and only then, does the answer say something cannot be done. On two
yeses the answer is made once more with Jarvis's earlier answers (dialogue memory and
the history lines with the same text) left out of that reply's context.

Real model (qwen3.6 35B on Strata), field case with history and dialogue memory, 20
same-prompt pairs: refused 12/20 before, 1/20 after; "what did you say? say it
again" still said it again 20/20 before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-18 20:42:15 +09:00
parent f05424e1b2
commit 9c1e82a890
7 changed files with 299 additions and 10 deletions

View File

@@ -66,7 +66,10 @@ Setting `since` (default none, meaning the whole history) drops records older th
matches may use at most half the budget (lowest score cut first), so a long recent window cannot
crowd out the records the question is about; the recent window gets the rest (oldest cut first).
A record that is a match is not repeated in the recent block. Returns the two blocks separately
so the prompt can label them.
so the prompt can label them. The reply engine may leave Jarvis's earlier answers out of one
answer's copy of the blocks when the user says they did something themselves
(`src/jarvis/reply/reply.spec.md`, "Earlier answers after the user did it (v2)"); the store is
not changed.
## Traces