When the retained representation allowance refuses completed Evidence,
the failure carries that Evidence inline as an unretained partial
observation, either as the capacity refusal itself or, after a cancel, as
the partial next to a capacity retention_error. Over the agent result
budget, budgetedFailure then hashed the whole failure and tried to record
it as mcp_tool_error Evidence. That record always failed: the failure
embeds the refused Evidence, so it needs more allowance than the record
the same ledger just refused. The reply was the same either way, and
after a cancel the client had already stopped waiting for it.
Skip the hash and the record attempt for both shapes. Replies stay
identical; both new tests fail without the matching condition because
the record callback is called once.
Refs #1065. The path came in with #15396.
🤖 Generated with Claude Code (Opus 5.5) 🦊
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>