Skip to content

A follow-up that reworks the previous answer skips the search - #193

Merged
trick77 merged 1 commit into
masterfrom
feat/rework-followup
Sep 17, 2026
Merged

trick77 merged 1 commit into
masterfrom
feat/rework-followup

Conversation

@trick77

@trick77 trick77 commented Sep 17, 2026

Copy link
Copy Markdown
Owner

"summarize" after an answered question ran the whole pipeline and wrote a second, different answer. The answer prompt never saw the previous text (AGENTS.md:58, by design) and was told not to restate it, so it answered "summarize" as a fresh question over re-retrieved sources.

What changed:

  • Understanding names a rework intent: summarize, shorter, as a table, rephrase, in en/de/fr/it. Not translate (one language per thread), not "as a diagram" (still resolves to the subject and searches).
  • Thread carries the previous answer's sources; handleAsk reads them for every follow-up. Run exits before the search on a rework and answers from the previous text plus those sources, markers stripped outside fences so the model cites again from the numbered list.
  • A basis a re-index took a chunk of is refused with its own line (ErrBasisGone), never summarised from survivors, never searched afresh. A first turn or a "nothing found" antecedent runs the ordinary path and stores no rework intent.
  • Re-explain of a rework row reworks the same antecedent again for the other audience.
  • AGENTS.md: the rule at line 58 now states its reason exactly (prose beside sources it was NOT written from), plus one line for the lane.

Checked live on the sock-shop flow corpus with the real gate and answer models: "summarize" and "as a table" take the lane (understanding, answering, writing; 94 sources in the prompt), a "why" follow-up still searches, "kuerzer" cuts a 3425-char German answer to 1209 with every claim cited, the audience toggle on the summary row reworks again.

Deferred: the previous answer's prose in every ordinary follow-up's answer prompt reverses AGENTS.md:58 and cannot be measured, the eval has no two-turn cases yet.

"summarize" after an answered question ran the whole pipeline and wrote a
second, different answer: the answer prompt never saw the previous text
and was told not to restate it, so it answered "summarize" as a question.

The understanding step now names a rework (summarize, shorter, as a table,
in any of the four languages). The pipeline leaves before the search and
answers from the previous answer and its own persisted sources, markers
stripped from the old text so the model cites again from the list. The
handler reads those sources for every follow-up. A basis a re-index took
a chunk of is refused with its own line, never summarised from survivors
and never searched afresh. A first turn, or an antecedent without a basis,
runs the ordinary path and records no rework intent. The re-explain of a
rework row reworks the same antecedent again instead of re-answering the
instruction over the sources.
@trick77
trick77 merged commit 274f42b into master Sep 17, 2026
2 checks passed
@trick77
trick77 deleted the feat/rework-followup branch September 17, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant