Enable parallel tool execution, fix delegate truncation, sandbox deps layer (E1) #127

Merged
weichen merged 1 commits from feature/agent-e1-parallel-fixes into main 2026-10-10 09:04:57 +00:00
Owner

E1 快修包(提案 2026-10-10 §5):

  • F1 delegate_task 回传子代理全文(32k 截断+工件指针),摘要只作兜底
  • F2 MiniMax-* 自动 reasoning_split=true,思考走 reasoning_content,正文流不再夹
  • F3 --exec-deps-dir:sandbox 档只读依赖层 + PYTHONPATH 合成(修复 docx 生成链路)
  • F5 直连路径默认并行执行独立工具(runtime.parallelTools 可关);顺序敏感工具(卡片流/计划/工作流/执行原语/文件编辑)经内核 SerialTools 保序串行
  • 钉 agent-native c348441(#42 CallID 事件、#43 ctx 注入调用、#44 串行分区)

Evidence: go test ./... 全绿;6 个新回归锚点测试。行为面改动将在 Dev 侧附 eval/live 前后对照(裁定 6)。

Refs: Dev 任务 feature/agent-e1-parallel-fixes。

E1 快修包(提案 2026-10-10 §5): - F1 delegate_task 回传子代理全文(32k 截断+工件指针),摘要只作兜底 - F2 MiniMax-* 自动 reasoning_split=true,思考走 reasoning_content,正文流不再夹 <think> - F3 --exec-deps-dir:sandbox 档只读依赖层 + PYTHONPATH 合成(修复 docx 生成链路) - F5 直连路径默认并行执行独立工具(runtime.parallelTools 可关);顺序敏感工具(卡片流/计划/工作流/执行原语/文件编辑)经内核 SerialTools 保序串行 - 钉 agent-native c348441(#42 CallID 事件、#43 ctx 注入调用、#44 串行分区) Evidence: go test ./... 全绿;6 个新回归锚点测试。行为面改动将在 Dev 侧附 eval/live 前后对照(裁定 6)。 Refs: Dev 任务 feature/agent-e1-parallel-fixes。
weichen added 1 commit 2026-10-10 09:02:41 +00:00
Why: Real runs were fully serial: the direct path never set the kernel's
parallel tool mode, delegate_task handed the parent only the child's
160-char summary (the full text was dropped), MiniMax streamed its
reasoning inside content <think> blocks, and the EXT-16 sandbox hid
~/.local so python-docx/openpyxl/pptx could not even import. All four
were measured defects (F1/F2/F3/F5) in the delegation/routing proposal.

Why: Serial-only mutual exclusion is not enough for order-sensitive
tools - the card-stream test failed with out-of-order appends - so the
ordering moved into the kernel (SerialTools partition, Agent-Native
#44); process events pair by CallID (#42) and tool results write back
through the injected call context (#43).

Evidence: go test ./... green, including new regression anchors:
TestDelegateToolReturnsFullText, TestToolEventsPairByCallID,
TestToolExecModeAndSerialSet, TestOpenLLMClientReasoningSplitAuto,
TestSandboxArgvDepsLayer, TestExecEnvJoinsPythonPath.

Impact: Direct runs now execute independent same-turn calls
(searches, reads, delegate_task, review_findings) concurrently by
default (runtime.parallelTools=false restores sequential); card flow,
plans, workflows, exec primitives and file edits keep model-declared
order. delegate_task returns the capped full child text. MiniMax-*
models get reasoning_split=true so thinking streams via
reasoning_content. --exec-deps-dir/AGENT_SYSTEM_EXEC_DEPS_DIR mounts a
read-only dependency layer into the sandbox and merges PYTHONPATH.
Bumps deps/agent-native to c348441.

Refs: proposal 2026-10-10-agent-delegation-routing-sandbox.md (E1,
F1-F5); Agent-Native #42/#43/#44; Dev task feature/agent-e1-parallel-fixes.
weichen merged commit eef60ff0b9 into main 2026-10-10 09:04:57 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#127