builder: require durable workspace execution
Some checks failed
build / build (push) Failing after 2s

This commit is contained in:
robert
2026-05-19 11:28:37 -03:00
parent 960c3558c9
commit d0fa3f3f5f
11 changed files with 126 additions and 34 deletions

View File

@@ -35,6 +35,7 @@ class BuilderConfig(BaseModel):
_URL_RE = re.compile(r"https?://[a-zA-Z0-9._-]+\.[a-zA-Z]{2,}[\w/?#%&=.-]*")
DEEPAGENTS_RECURSION_LIMIT = 500
class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
@@ -130,11 +131,11 @@ class AgentBuilder(A2AAgent[BuilderConfig, NoAuth]):
async for event in graph.astream_events(
{"messages": [{"role": "user", "content": user_msg}]},
version="v2",
# Default langgraph cap is 25 steps; one deepagents
# build (list → write*3 → test → deploy) easily uses
# 12-18, and any retry pushes it past the limit. Give
# the loop headroom without letting it run away.
config={"recursion_limit": 80},
# Agent builds can legitimately run many tool/subagent turns:
# scaffold, write skills/files, test, fix, retest, deploy, and
# verify the live card. Keep this aligned with generated child
# agents so complex DeepAgents workflows have the same budget.
config={"recursion_limit": DEEPAGENTS_RECURSION_LIMIT},
):
kind = event.get("event")
tname = event.get("name") or ""