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
Coalesce consecutive tool-failure recovery audits into one count (#900)
* Nudge once when assistants print tool-call markup as text
Models sometimes emit <tool_call><function=...> wrappers as
assistant text instead of real tool_call blocks. Catch that narrow
shape, give one corrective nudge per no-real-tool epoch without
counting it as incomplete-report narration, then fall through to the
existing report policy. Thinking blocks and arbitrary XML stay out of
scope; the epoch resets only on genuine tool activity or a parent
follow-up.
* Let a complete report envelope win over quoted tool-call markup
* Coalesce consecutive tool-failure recovery audits into one count
Several failed tool.done events before the pending recovery nudge is
consumed were each writing a separate intervention line. Keep the
recovery nudge text and arming behavior the same, but count the burst
in director memory and flush a single record with count when the nudge
is applied. Forensics treats missing count as one.
* Flush coalesced tool-failure audits on terminal paths
0 commit comments