Skip to content

A real tool result replaces the placeholder that stood in for it

A healed message says a call was interrupted. If the result later arrives, the buffer shows the answer, not the guess.

The rule

Normative: this is the rule
  1. When a tool result arrives for an id whose buffer entry is a synthetic healed placeholder, the real result MUST replace the placeholder in place (at the same position, so its adjacency to the declaring turn is preserved).
  2. The healed marking MUST be removed with the placeholder.
  3. An entry that is not a synthetic healed placeholder MUST NOT be overwritten.
  4. After the replacement the entry is an ordinary answered result, so a second real result for the same id MUST be deduplicated as usual.
  5. An incoming message that is itself marked healed MUST NOT replace anything.

What it means

A healed placeholder exists so the conversation stays readable while a call's real answer is still missing. It is a guess standing in a real slot, and once the real result arrives the guess goes — it does not stay alongside the result, nor get appended after it, but be overwritten in the exact position it held, so the result still reads immediately after the turn that declared the call.

The overwrite is the whole effect: the entry becomes an ordinary answered result afterwards, indistinguishable from one that was never healed. A second copy of the same result arriving later is deduplicated the normal way, because by then there is nothing marked healed left to reclaim.

Example

A buffer holds a synthetic placeholder for a call whose real result never arrived before the turn was saved. The real result then arrives for the same id.

The buffer holding a healed placeholder for call c1
{"role": "tool", "content": "Tool call was interrupted; no result.", "metadata": {"tool_call_id": "c1", "healed": true}}
What the same slot holds once the real result replaces itreplaced
{"role": "tool", "content": "Found 3 cats", "metadata": {"tool_call_id": "c1"}}

The buffer is no longer than it was: the turns on either side keep their positions, and the append this produces is reported as none, since a replacement changes an entry rather than adding one.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · MEM-10 · changed in spec 1.0