mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-30 10:40:22 +08:00
适配 master 当前提示词组合
This commit is contained in:
1 parent
057e473a6c
commit
fdfecb09fc
18 files changed
+104
-143
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# 当前 master 提示词融合说明
|
||||
|
||||
本文记录 dsh-unrestricted 在当前 DSH `master` 上的提示词融合行为。`tools/dump-prompts.mjs` 从真实 Web composition 组装原版提示词并保存到 `tests/fixtures/`。
|
||||
|
||||
## 融合规则
|
||||
|
||||
插件保留原版全部提示词段、动态上下文、工具 schema 与变量,并做四项定向追加:
|
||||
|
||||
1. 在 `deployment:persona` 末尾加入执行模式指针。
|
||||
2. 在 persona 后插入 `unrestricted:execution-mode` 段。
|
||||
3. plan 激活时,在 `plan:policy` 末尾说明 plan 负责交付与变更范围,执行模式负责内容尺度。
|
||||
4. PTC 与结构化子代理分别在 `tools:ptc-only`、`tool:structured_output` 末尾保留其交付协议。
|
||||
|
||||
融合段决定回答内容与表达尺度。工具目录、调用协议、plan、审批、沙箱、结构化输出和模式范围继续由 DSH 原版规则决定。
|
||||
|
||||
## 各 preset
|
||||
|
||||
### Standard
|
||||
|
||||
插件在 persona 后加入执行模式段;plan 激活时再追加 plan 说明。原段内容与工具目录保持不变。
|
||||
|
||||
### PTC
|
||||
|
||||
PTC 使用当前 `ptc` preset,并在 Standard 的基础上带有 `tools:ptc-only` 和 `tools:sdk`。插件保留 `run_code` 唯一直接工具规则与完整 SDK,在 `tools:ptc-only` 末尾加入内容尺度说明。
|
||||
|
||||
### Cordis
|
||||
|
||||
Cordis 保留完整的两平面 persona、动态 Cordis 工具说明和其余工具指导。插件在 persona 后加入执行模式段;plan 激活时追加同一说明。
|
||||
|
||||
### Minimal
|
||||
|
||||
Minimal 的 `deployment:persona` 使用 `complete: true`。插件在 agent 作用域注册同名完整 persona,使其成为“原单句 persona + 指针 + 执行模式段”;关闭开关时移除该作用域覆盖。完整 persona 最终成为唯一提示词段,因此插件使用自身的有限顺序值,不依赖仓内 section 顺序名称。
|
||||
|
||||
### 子代理
|
||||
|
||||
进程内子代理沿用父 agent 的 preset 作用域,因此获得对应融合结果。带结构化输出的子代理继续通过 `structured_output` 提交结果,插件只在该段末尾补充内容尺度说明。
|
||||
|
||||
## 当前提示词校验
|
||||
|
||||
每个 preset 在启用时接受 standing-scope 校验,并在每次实际组装时再次校验。校验对象为 harness 身份、persona、plan 首句、PTC 的 `run_code` 规则和结构化输出首句。锚点变化或探测失败时,该 preset 直接使用当次 DSH 原版提示词,设置卡显示具体问题。
|
||||
|
||||
更新 DSH master 后执行以下命令刷新事实基线并验证:
|
||||
|
||||
```sh
|
||||
node tools/dump-prompts.mjs --repo <deepseek-harness-path> --out tests/fixtures
|
||||
pnpm test
|
||||
node tools/verify-live.mjs --repo <deepseek-harness-path>
|
||||
```
|
||||
Reference in new issue
Block a user