You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): a chat reply can claim a file the turn never stored #5168
Part 2 of #5028. TALE-211 split it off. Part 1 fixes the card: the reported case was an SVG that the reply made and that got no file card.
Summary
A reply can say it attached a file when the turn stored none. The only guard is a line in the prompt ("never claim a file you did not make", services/platform/lib/agent/ladder.ts). Nothing compares the reply with the files the turn actually stored.
How a reply can claim a missing file
Found in the code while tracing #5028 at train2864758b6b23f3a46726131442d48234d3fb2da4. None of these is reproduced yet.
A work-tool call failed and the model still wrote "attached". The failure can be invalid arguments, the size cap, a store error or a sandbox error. create_file answers "Attached to the conversation." only after scope.artifacts.store(...) succeeded; every earlier exit returns a failure result.
The model claimed an attachment without calling any tool.
A create_file call in a round that the output cap cut short never ran.
run_code wrote outside /agent/output/, and the model ignored its "No file was attached…" note.
run_code ran again after the history was trimmed and rewrote bytes identical to an earlier delivery. Those bytes are not attached again.
Done when
A reply never says a file is attached unless the turn stored one. The turn compares the reply with the artifacts it stored. When they disagree, a notice shows under the reply: "No file was attached to this reply".
The plan records how the disagreement is detected: a file-making tool call that stored nothing, the reply's claim, or both.
A regression test covers a failed create_file followed by a reply that claims a file: the notice shows.
Activity
fix(platform): show an SVG a reply made as a file card
fix(platform): show an SVG a reply made as a file card
fix(platform): read a reply's file claim only beside a call
fix(platform): mark a chat reply that claims a file it never stored