高危漏洞:fork 子 agent 继承了父进程全部工具,绕过了 gate layer 1 的 ALL_AGENT_DISALLOWED_TOOLS 限制(AgentTool/resumeAgent fork 路径用了 useExactTools=true,跳过了 resolveAgentTools 的正常过滤)。 修复: - AgentTool.tsx fork路径注入 filterParentToolsForFork (对齐上游 CCB) - resumeAgent.ts resumed-fork路径同样注入 - 测试从 grep 源码改写为运行时行为验证(import-chain + mock.module) 测试:3552 pass, 1 fail, 1 error (fail/error 为 ExecuteTool 老问题) 基线:5 fail → 1 fail + 1 error (AC11b ×2 修复) |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| tsconfig.json | ||