dual_chain_explore
Validates AI-generated code by running dual parallel chains: functional browser exploration and technical data flow tracing, then cross-references results to detect issues and auto-fix.
Instructions
双链路并行探索:链路① Browser Agent 在真实浏览器中做黑客式功能探索(发现→正向→对抗→闭环),链路② Trace Agent 追踪全栈数据流(前端→API→后端→数据库),交叉验证后输出多维判定(真通过/假通过/渲染问题/数据问题)并自动修复。两条链路独立并行,结果交叉对比,打破 AI 代码「自己验证自己」的闭环。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chains | No | 要执行的链路:'functional' 功能链路, 'technical' 技术链路。默认双链路并行 | |
| phases | No | 要执行的阶段。默认 'all' 执行全部 | |
| target | Yes | 目标系统 URL | |
| autoFix | No | 发现断裂后是否自动修复。默认 true | |
| dbConfig | No | 数据库配置,用于链路② Phase4 快照对比 | |
| sessionId | No | 浏览器会话 ID(可选,不传则自动创建) | |
| writeToMemory | No | 是否将发现写入记忆体系。默认 true | |
| explorationMode | No | 探索模式:normal 保守(top3), aggressive 全端点, hacker 最大攻击面+创造性探测 | normal |
| expectedBehavior | No | 预期行为描述,用于 Phantom Data 检测 |