fix(agent): 使用通用网络安全平台角色描述 (#138)
This commit is contained in:
1 parent
a15285a7ae
commit
2366636575
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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}}
|
||||
|
||||
|
||||
+1
-1
@@ -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 里点一句交给规划者**。
|
||||
|
||||
Reference in new issue
Block a user