From 9a514c2f136aa42ebe9212c4ab1a526cfbe933c3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 27 Jan 2026 10:18:40 +0100 Subject: pkg/aflow: add explicit DoWhile.MaxIterations Add DoWhile.MaxIterations and make it mandatory. I think it's useful to make workflow implementer to think explicitly about a reasonable cap on the number of iterations. --- pkg/aflow/flow/patching/patching.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/aflow/flow/patching/patching.go') diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go index ea5780022..a5aba0ccc 100644 --- a/pkg/aflow/flow/patching/patching.go +++ b/pkg/aflow/flow/patching/patching.go @@ -78,7 +78,8 @@ func init() { }, crash.TestPatch, // -> PatchDiff or TestError ), - While: "TestError", + While: "TestError", + MaxIterations: 10, }, &aflow.LLMAgent{ Name: "description-generator", -- cgit mrf-deployment