Skip to content

bug(chat): answers carry no proof of how they were reached — tool-grounded replies are labelled 'AI Training Data', and stored sources are empty #21976

Open

Description

@mrveiss

Requirement (owner, 2026-11-21)

Every request must carry proof of how it got to its result.

Observed on the local install, 2026-11-21 16:10–16:15 Riga (install at 51c5988f2a3c)

Turn: "Search the web for the current weather in Riga and tell me the temperature." The model called web_search and answered "34°F (1°C) to 36°F (2°C), Overcast".

  • The streamed citation is false. The answer's citations holds a single {"type": "llm_training", "title": "AI Training Data", "source": "LLM", "content": "Response generated using LLM training data."}, but the answer came from the web search result, not from training data.
  • The stored transcript has no evidence at all. Every stored assistant response has sources: []. After a reload nothing shows where the answer came from.
  • The answer is not linked to its steps. The web_search call, its query, the result URLs and the tool output are stored as separate entries, but nothing ties the answer to them. The same holds for navigate (the URL visited) and execute_command (the command and its output).

Cause (code)

ChatWorkflowManager._build_source_list (autobot-backend/chat_workflow/manager.py ~444-472) builds sources only from knowledge-base citations, plus an llm_training entry that it always appends. Tool results are never turned into sources, so a tool-grounded answer is labelled as model memory. The persisted entries do not carry the streamed list either.

Acceptance criteria

  • Every answer that used a tool carries one source entry per step that fed it: the tool, its arguments (the query, URL or command), the result's origin (result URLs, page URL, host and exit code), and the step id and time. A test drives web_search → answer and asserts this.
  • llm_training appears only when no retrieval or tool step fed the answer. A tool-grounded answer never claims to be from training data, and a test pins both cases.
  • The stored transcript keeps the same sources as the stream, so a reloaded answer shows its proof. A test compares the stream with the stored entry.
  • The UI shows the answer's sources, with each linked to its step, using the existing citation display rather than a new one.
  • A value the answer quotes from a tool result is checked against that result; a mismatch is shown as unproven, never presented as sourced. A test drives the 21:35 uname -r case (output 6.18…, answer 5.18…).
  • Host evidence: the weather question on the local install shows the web result URLs as the answer's sources after a reload.

Related: #10548 (grounded citations by default, closed), #12508 (wrong facts despite correct search results), #21880 (duplicate reply entries).

Activity

  1. added
    bugSomething isn't working
    phase:M2.4Tasks and company workflows
    on Nov 21, 2026
  2. mrveiss commented on Nov 21, 2026

    @mrveiss
    OwnerAuthor

    Live check on the local install at d8cbd91925a1, 2026-11-21 21:32–21:35 Riga, chat abbf33ff. Strongest case so far for this requirement. The terminal printed 6.18.33.2-microsoft-standard-WSL2, but the answer said 5.18.33.2-… and carried no source showing the real output. I added a criterion: a quoted value is checked against the step it claims to come from. See also #12508.

  3. mrveiss commented on Nov 21, 2026

    @mrveiss
    OwnerAuthor

    Owner's test in the general chat, local install, 2026-11-21 16:08–16:13 Riga, chat d44ee5aa (titled "CEO · 2ed9674d…"), question "whats the weather in riga".

    • No proof stored: all 12 stored entries have sources: [].
    • The answer is correct, but nothing shows it: every value in it appears on the navigated AccuWeather page: 5°C, RealFeel -2°, SW 20 km/h, humidity 83%, cloud 100%, visibility 8 km, and the 5 PM to 10 PM hourly rows. That is only visible by reading the raw tool output.
    • Unproven values: the °F figures (41°F, 28°F) are computed by the model and are not on the page. The "Right now" block is the page's 5 PM hourly row, not a current reading.
      Under this issue's criteria, the answer would carry the page URL and step as its source, and mark the computed and relabelled values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingphase:M2.4Tasks and company workflows

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions