feat: standardize long-running tool workflows

This commit is contained in:
Mikei386
2026-08-24 15:02:25 +02:00
parent 0a5da6e5f1
commit 7978a4ee56
9 changed files with 284 additions and 31 deletions
@@ -31,8 +31,14 @@ replacement = """ tool_call_iterations = 0
# Per-tool and exact-repeat limits below prevent one low-level MCP
# operation from consuming the whole turn.
tool_call_executions = 0
max_tool_call_executions = 40
max_executions_per_tool = 12
long_operator_task = bool(
(metadata or {}).get('mikeai_long_operator_task', False)
)
# Research stays tightly bounded. Explicit long-running host work
# receives a larger, still finite budget so discovery cannot consume
# the calls needed for execution, verification and cleanup.
max_tool_call_executions = 64 if long_operator_task else 40
max_executions_per_tool = 24 if long_operator_task else 12
# Inlet filters only see the first request, not later internal
# tool continuations. Bound the evidence injected into those
# continuations so one broad inventory cannot consume context.