mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:40:22 +08:00
release: 1.1.84,尾部锚点与子代理审批接管,红队模式中文化,#194/#188
- 接线 lib/anchor.js:锚点物理追加到 system prompt sections 末尾, identity.js 支持 anchorText(对象/字符串两种入参),已有同名段先滤再追加; 锚点改为跟随操作者语言,删除写死的英文开头句(红队回答变英文的根因) - 接线 lib/subagent-control.js:子会话 approval/policy=never 改回 ask, 并在 approval/request 瀑布放行;anchorMode/subagentControl 提供回滚开关 - index.js:真实 anchorApplied / injectTail 判定、审批策略探针、iso 分支 注册锚点、applyHostHooks 注册锚点与子代理接管并统一释放 - office 技能自愈:core/desktop 增加 healOfficeSkillsRuntimeOnDisk,桌面端触发 - 红队模式中文化:preset 文案、角色名、五阶段、25 项计分规则与 POC 分类、 技能修复说明、环境适配提示、面板报错、成果报告与复现报告 - #194:hung-operator 改按内容变更缓存,加风暴/慢调用熔断;WeakMap 去重 同次 assemble 的重复改写;新增 #91 记录宿主信号退出的持久化日志 - #188(rc.4 专属部分):新增 #89 沙箱策略去品牌、#90 skill-badge 中文描述, 扩展 #32/#53 的 rc.3 变体与 marker,均 optional - 新增锚点接线与红队文案测试,81/81 通过
This commit is contained in:
1 parent
97c5de75fa
commit
624976ed1d
19 files changed
+1521
-847
No files matched your search
@@ -1,3 +1,39 @@
|
||||
# 1.1.84
|
||||
|
||||
## 中文
|
||||
|
||||
- 版本 **1.1.84**。
|
||||
- **尾部锚点与子代理审批接管**(接线 `anchor.js` / `subagent-control.js`):
|
||||
- 锚点段物理追加到 system prompt 的 sections 数组末尾(waterfall 按数组顺序渲染,order 不参与排序),把身份与格式规则放回 recency 位;已有同名段先滤再追加,不会出现两份。
|
||||
- 锚点规则改为跟随操作者语言:中文请求回中文,锚点本身是英文不算语言指令;删掉写死的英文开头句(这是红队模式回答变英文的直接原因)。
|
||||
- 子会话被宿主写成 `approval/policy = "never"` 时改回 `ask`,并在 `approval/request` 瀑布放行,子代理不再"一直被拒"。
|
||||
- 回滚开关:`anchorMode: "off"`、`subagentControl: false`。
|
||||
- **红队模式中文化**:模式名与描述、角色名、五阶段攻击链、25 项计分规则与 POC 分类、技能修复说明、环境适配提示、面板与服务端报错、成果报告与成果复现报告全部回中文。
|
||||
- **#194**:desktop 端启动后窗口永不显示。
|
||||
- hung-operator 提示改为按内容变更缓存(home + mtime + 已提交修订号),内容没变不再每轮重算约 23KB。
|
||||
- 增加风暴熔断(10 秒 120 次)与慢调用熔断(1.5 秒触发、30 秒冷却),熔断期直接返回缓存文本,不挂死 desktop host。
|
||||
- 同一次 assemble 的重复改写用 WeakMap 去重。
|
||||
- 新增补丁 **#91**:宿主 `code === null || signal` 静默 resolve 前写一条 `[desktop.hostExit]` 到 `%TEMP%\dsh-purge-desktop.log`,保持不弹框但有据可查。
|
||||
- **#188(0.2.1-rc.4 专属部分)**:新增 **#89** 沙箱策略去品牌、**#90** skill-badge 描述中文化,扩展 **#32/#53** 的 rc.3 变体与 marker;三条新补丁均为 optional,宿主没有对应文件时静默跳过。
|
||||
- 测试:81/81 通过;新增锚点接线与红队文案测试。
|
||||
|
||||
## English
|
||||
|
||||
- **1.1.84**.
|
||||
- **Tail anchor and subagent approval takeover** (wiring `anchor.js` / `subagent-control.js`):
|
||||
- The anchor section is physically appended to the end of the system-prompt sections array (the waterfall renders by array order, not by `order`), putting identity and format rules back in the recency slot; any existing same-named section is filtered first so there is never a duplicate.
|
||||
- Anchor rules now follow the operator's language: a Chinese request gets a Chinese answer, and the anchor being written in English is not a language instruction. The hard-coded English opener was removed (the direct cause of red-team mode answering in English).
|
||||
- When the host writes `approval/policy = "never"` for a child session, it is flipped back to `ask` and allowed in the `approval/request` waterfall, so subagents are no longer refused every time.
|
||||
- Rollback switches: `anchorMode: "off"`, `subagentControl: false`.
|
||||
- **Red-team mode localized to Chinese**: mode name and description, role names, the five-stage attack chain, the 25-item scoring rules and POC categories, skill-fix guidance, environment-adaptation hints, panel and server messages, and both the results report and the replay report.
|
||||
- **#194**: desktop window never appears after launch.
|
||||
- The hung-operator prompt is now cached by content change (home + mtime + committed revision); an unchanged prompt is no longer rebuilt (~23KB) on every refresh.
|
||||
- Storm breaker (120 calls / 10s) and slow-call breaker (trip at 1.5s, 30s cooldown) return the cached text instead of stalling the desktop host.
|
||||
- Duplicate rewrites within the same assemble call are deduped with a WeakMap.
|
||||
- New patch **#91**: before the host silently resolves `code === null || signal`, append a `[desktop.hostExit]` line to `%TEMP%\dsh-purge-desktop.log` — still no dialog, but no longer invisible.
|
||||
- **#188 (0.2.1-rc.4-specific parts)**: new **#89** sandbox-policy brand neutralization and **#90** skill-badge description localization, plus rc.3 variants and markers for **#32/#53**; all three new patches are optional and are skipped silently when the host has no matching file.
|
||||
- Tests: 81/81 pass; new coverage for anchor wiring and red-team copy.
|
||||
|
||||
# 1.1.83
|
||||
|
||||
## 中文
|
||||
|
||||
Reference in new issue
Block a user