Skip to content

Warn on repeated tool batches before the doom loop trips - #909

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7681-doom-loop-guard-kills-the-run-with-no-warning-turn-identical
Sep 11, 2026
Merged

Warn on repeated tool batches before the doom loop trips#909
TheGreatAxios merged 1 commit into
mainfrom
cl-7681-doom-loop-guard-kills-the-run-with-no-warning-turn-identical

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The second identical tool batch (threshold − 1) appends a corrective note to each tool result — names the repeated call, lists the tools currently on the wire, and points at replying to the operator or calling tool_search
  • manage_tasks returns No change: … when an update changes nothing, so repeat bookkeeping calls stop reading as fresh success
  • The third identical batch still trips doom_loop; under doomLoopPolicy: "fail-run" (primary session only) it fails the message run and returns the reactor to idle instead of wedging the session — workers keep the upstream shutdown
  • New reactor knobs ride deps (doomLoopCorrectiveNote, doomLoopPolicy), ledgered in vendor/intx-inference/PATCHES.md

Verification

  • bun run typecheck, bun run build pass; vendored reactor suite green (178 tests), including new coverage for the warning turn and fail-run
  • bun run test: 64 pre-existing environmental failures in git/GPG fixture tests (same on main under this sandbox); all touched areas pass

Fixes https://linear.app/abklabs/issue/CL-7681/doom-loop-guard-kills-the-run-with-no-warning-turn-identical-no-op

A model repeating an always-successful call saw only plain results until
the guard killed the whole reactor, so the primary session wedged on the
operator's next message. The second identical batch now gets a corrective
note naming the repeated call, the tools on the wire, and the escape
hatches; a tripped guard under doomLoopPolicy "fail-run" fails only the
message run. manage_tasks answers repeat no-op updates distinctly.
@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

CL-7681

@TheGreatAxios
TheGreatAxios merged commit 6a727e7 into main Sep 11, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7681-doom-loop-guard-kills-the-run-with-no-warning-turn-identical branch September 11, 2026 06:37
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