Skip to content

Coalesce consecutive tool-failure recovery audits into one count - #900

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-7648-coalesce-tool-failure-interventions
Sep 11, 2026
Merged

Coalesce consecutive tool-failure recovery audits into one count#900
TheGreatAxios merged 4 commits into
mainfrom
cl-7648-coalesce-tool-failure-interventions

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

Linear: CL-7648

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.
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.
@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

CL-7648

@TheGreatAxios
TheGreatAxios merged commit 7b09b92 into main Sep 11, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7648-coalesce-tool-failure-interventions branch September 11, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant