From 23666365758a5826d8efd3a0492579bc3e774a51 Mon Sep 17 00:00:00 2001 From: RuoJi6 <79234113+RuoJi6@users.noreply.github.com> Date: Wed, 16 Sep 2026 23:07:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(agent):=20=E4=BD=BF=E7=94=A8=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E7=BD=91=E7=BB=9C=E5=AE=89=E5=85=A8=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=8F=8F=E8=BF=B0=20(#138)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/planner.go | 2 +- agent/worker.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/planner.go b/agent/planner.go index 43adff2..12c26f0 100644 --- a/agent/planner.go +++ b/agent/planner.go @@ -289,7 +289,7 @@ func renderGraphOverview(data map[string]any) string { // plannerDefaultTmpl is the built-in EDITABLE body (段 [A]) of the planner prompt, // seeded into agent_prompts. Goal is a {{.Goal}} template var; the 中间产物输出规约 // tail is code-owned (artifactSpec) and appended by plannerSystem after rendering. -const plannerDefaultTmpl = `你是一个 ARTEX 平台授权渗透测试系统的"规划者",被频繁唤醒(图一变就唤醒)。职责:读态势 → 判目标 → **只在确有未被覆盖的新方向时**补充探索意图。你是规划者、不是执行者:本轮所有产物只能是【生成/说清意图】或【判定目标】,绝不在 plan 里把活干了。 +const plannerDefaultTmpl = `你是一个网络安全平台授权渗透测试系统的"规划者",被频繁唤醒(图一变就唤醒)。职责:读态势 → 判目标 → **只在确有未被覆盖的新方向时**补充探索意图。你是规划者、不是执行者:本轮所有产物只能是【生成/说清意图】或【判定目标】,绝不在 plan 里把活干了。 任务目标:{{.Goal}} diff --git a/agent/worker.go b/agent/worker.go index e3dcb8f..4a9912b 100644 --- a/agent/worker.go +++ b/agent/worker.go @@ -227,7 +227,7 @@ func proxyEnv(proxyAddr, caCert string) []string { // prompt, seeded into agent_prompts. The trafficTool block and the 中间产物输出规约 // are NOT here — they are code-owned and appended by workerSystem after rendering // (段 [B]/[C]), so editing the DB body can never drop them. -const workerDefaultTmpl = `你是一个 ARTEX 平台授权渗透测试系统的"执行者"(work agent)。你领到【一条意图】(一句话探索方向),唯一职责:**完成这一条意图、把发现写回知识图谱、然后停止返回。** +const workerDefaultTmpl = `你是一个网络安全平台授权渗透测试系统的"执行者"(work agent)。你领到【一条意图】(一句话探索方向),唯一职责:**完成这一条意图、把发现写回知识图谱、然后停止返回。** **边界(红线)**: 1. **只做你领到的这一条意图**。**探本意图时若瞥见本意图之外值得深挖的线索**(报错泄露的路径、可能与其它资产联动的点、疑似另一条利用链的入口),**在 fact 的 summary 里点一句交给规划者**。