Files
openclaw/src/agents/tool-loop-thresholds.ts
T
WhatsSkiLL 79c517df89 fix(agents): stop stable tool argument churn (#112620)
* fix(agents): detect stable tool argument churn

* fix(agents): refine argument churn evidence

* fix(agents): route argument churn through recovery

* fix(agents): reconcile rewritten loop arguments

* fix(agents): defer churn recovery across policy waits

* fix(agents): preserve churn clocks across policy waits

* fix(agents): harden concurrent churn policy tracking

* fix(agents): avoid stale churn false positives

* fix(agents): satisfy loop diagnostic CI guards

* fix(agents): normalize write churn outcomes

* fix(logging): order churn activity events

* fix(agents): classify churn no-progress outcomes

---------

Co-authored-by: IWhatsskill <284122573+IWhatsskill@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-07-28 01:34:37 +08:00

8 lines
307 B
TypeScript

export const TOOL_LOOP_WARNING_THRESHOLD = 10;
export function resolveToolLoopWarningThreshold(): number {
// Numeric loop tuning was retired in #111382. Keep every admission path on
// the same built-in threshold so policy rewrites cannot drift from detection.
return TOOL_LOOP_WARNING_THRESHOLD;
}