[google/syzkaller] c2182e: pkg/aflow: implement tool call loop detection

0 views
Skip to first unread message

Alexander Potapenko

unread,
Apr 27, 2026, 5:33:35 AM (3 days ago) Apr 27
to syzk...@googlegroups.com
Branch: refs/heads/gh-readonly-queue/master/pr-7121-0f7005959478c8c65bcf29f49ca297e48f7839cd
Home: https://github.com/google/syzkaller
Commit: c2182ef46fd503a47b57c18d4bbe6efd0913dd1e
https://github.com/google/syzkaller/commit/c2182ef46fd503a47b57c18d4bbe6efd0913dd1e
Author: Alexander Potapenko <gli...@google.com>
Date: 2026-04-27 (Mon, 27 Apr 2026)

Changed paths:
M pkg/aflow/func_tool_test.go
M pkg/aflow/llm_agent.go
M pkg/aflow/testdata/TestSummaryWindow.llm.json
M pkg/aflow/testdata/TestSummaryWindow.trajectory.json

Log Message:
-----------
pkg/aflow: implement tool call loop detection

Add history tracking for tool calls to LLMAgent to detect and prevent
infinite loops.

The agent now maintains a rolling window of the last 20 tool calls and
prevents executing the same tool call with identical arguments if it has
already been called 3 times within that window.

Updates tests and test data to reflect this change.



To unsubscribe from these emails, change your notification settings at https://github.com/google/syzkaller/settings/notifications

Alexander Potapenko

unread,
Apr 27, 2026, 5:45:40 AM (3 days ago) Apr 27
to syzk...@googlegroups.com
Branch: refs/heads/master
Reply all
Reply to author
Forward
0 new messages