Skip to content

bug(platform): a chat reply can claim a file the turn never stored #5168

Closed

Description

@tale-code-bot

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 train 2864758b6b23f3a46726131442d48234d3fb2da4. 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.

Related: #4938, #4963, #5044.

Activity

  1. added
    bug
    service: platform
    agent-ready
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    f390fc2
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

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions