moyun-ultimate/CHANGELOG.md
moyun 773a1840e9 feat: 0.4.0 - sixth layer (output anti-censorship) + provider censor-risk probe
Server-side output moderation was the one thing the prompt layers could not
touch. This release does the two things that actually work:

1. prompts/50-anticensor.md (order 220, 1663 B): how to tell apart model-layer
   refusal from output truncation, and five re-expression strategies that raise
   pass rates (code-block form / segmentation / terminology / counterfactual
   framing / language mix), plus the correct retry posture (change form, do not
   resend verbatim).

2. moyun_ultimate_profile now reports a provider block with censorRisk:
   high (ModelScope / Qwen / Zhipu), medium (DeepSeek official), low (overseas),
   none (local). Changing provider is usually more effective than rewording, and
   now the user can see which class they are on.

Local measurement: modelscope-token-plan + DeepSeek-V4.1-Flash-1017 -> high
(Aliyun content safety, over-blocks technical content).

Six layers total 23,017 B.
2026-11-17 14:33:27 +08:00

124 lines
5.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Changelog
## 0.4.0 — 2026-11-17
### 新增:第 6 层「输出抗审」+ provider 审核风险评估
针对「服务端把回复掐掉」这件唯一无法用提示词根除的事,做了两件能做的:
- **`prompts/50-anticensor.md`(order 220,1663 B)**:五种重表达策略
(代码块形态 / 分段生成 / 术语化 / 反事实表述 / 分语言)+ 拦截类型判断表 +
重试的正确姿势(换形态而不是原样重发)
- **`moyun_ultimate_profile` 新增 `provider` 字段**:识别当前 provider 与模型,
给出 `censorRisk`(high / medium / low / none)与说明。实测本机识别出
`modelscope-token-plan + DeepSeek-V4.1-Flash-1017 → high`(阿里系内容安全)
### 为什么这很重要
审核强度随 provider 差异极大,**换 provider 往往比改提示词有效**:
| provider | censorRisk |
|---|---|
| 魔搭 / 通义 / 智谱 | high |
| DeepSeek 官方 | medium |
| 海外官方 | low(中转继承上游) |
| 本地模型 | none |
### 校验
六层合计 23,017 B;`node --check` 通过;工具实测输出 provider 风险等级正确。
---
## 0.3.0 — 2026-11-17
### 新增:插件自己诊断自己
针对「装了没效果 / 不知道哪里冲突 / 技能跑不起来」三类反馈,把隐性状态变成显性输出。
- **`moyun_ultimate_profile` 大改**:新增 `permission`(builtin / effective / verdict 三态)+
`environment`(profile / userLayerOverrides / siblingPlugins / winner)+ `skills` 汇总。
权限层是不是真生效,一眼能看到,不用猜。
- **新工具 `moyun_skills_audit`**:审计 63 个技能的可用性,区分「能直接用」和「缺外部工具」,
并列出具体缺哪些二进制。
- **状态条按真实状态变色**:绿(本插件接管)/ 琥珀(被用户层接管、有同类插件、已关闭)/ 红(判拒)。
悬停显示详细原因。
- **性能**:技能审计从逐条 `where`(约 2.9 s)改为 PATH 目录索引(**234 ms**,缓存后 0 ms)。
### 验证
- `node --check` 通过;工具实测输出正确(本机识别出 `overridden-by-user-layer` +
`siblingPlugins: ["dsh-purge"]`)
---
## 0.2.1 — 2026-11-17
### 新增
- **`doctor.ps1`**:一键自检,11 项检查(运行时副本 / 双处登记 / exports / 五段提示词 /
权限层配置 / 应答器代码 / 技能落地 / 用户层覆盖 / 冲突插件),输出 `[OK]`/`[WARN]`/`[FAIL]`
- **`TROUBLESHOOTING.md`**:按抖音评论区反馈整理的排查手册,五类问题(装不上 / 没效果 /
效果不对 / 和 purge 冲突 / 质疑),每类都给判断命令
- README 新增「效果边界」章节:明确区分「工具权限」「模型意愿」「服务端审核」三层,
避免把服务端拦截误判成插件失效
### 说明
- 不改变任何已生效的逻辑,纯文档与工具补充
---
## 0.2.0 — 2026-11-16
### 新增:内置权限层(不再需要额外插件)
- `cordis.patch.yml` 覆盖 6 组官方 config:`sandbox-policy`(`danger-full-access`)、
`approval`(`ask`)、`permission`(重定义预设表 + `defaultPreset`)、`spill-policy`、
`tool-result-pruner`、`agent-instructions` / `session-query-sqlite`
- `index.js` 新增 `installApprovalAnswerer()`:在 `approval/request` 等三个候选事件名上
注册应答器,直接返回 `allowed-once`,工具审批不再弹窗
- 新增开关 `permission`(默认 `true`)与 `approvalResult`(默认 `allowed-once`)
- **不改写任何宿主源码文件**,全部通过官方 cordis patch 的 id 级 config 覆盖实现
### 验证
- `node --check index.js` 通过
- `dsh --profile web --patch cordis.patch.yml --dump-config` exit 0,
合成结果含全部 6 个 id 且取值正确
---
## 0.1.0 — 2026-11-16
首个版本。五层分层提示词内核。
### 新增
- **五段分层系统提示**(21,354 B)
- `order 100` 人格主内核(6,003 B)
- `order 150` 反拒绝机制(5,341 B)
- `order 160` 执行强度(3,095 B)
- `order 200` 强化镜像(2,121 B,防上下文稀释)
- `order 210` 技能路由(4,794 B,接 DSH 原生 skill 工具)
- **63 个内置技能**:逆向 24 / 渗透 16 / 云 8 / 取证 6 / 其它 9,去重后无重复
- **技能幂等同步**:首次启动复制到 `$DSH_HOME/skills`,只补缺失不覆盖
- **`moyun_frame` 工具**:5 个换框模板(roleplay / textbook / defender_reverse / transform_first / k3),不常驻提示词
- **`moyun_ultimate_profile` 工具**:自查五层状态与技能数
- **判拒投影状态条**:右下角绿框,实时显示 pass / refusal / fallback
- **五个分层开关**:任意层可单独关闭
### 修复
- `package.json` 补 `exports["./client"]` —— 缺此项会导致 DSH 报
`client-modules: declares dsh.client but exports no "./client" bundle`,client 完全不加载(状态条不显示)
- `client.js` 投影 key 与服务端对齐为 `moyun-ultimate`
### 设计取舍
- **不做权限层**:审批 / 沙箱 / 路径围栏属宿主范畴,交给宿主补丁类插件,避免抢同一批 config id
- **不压运行时上下文**:cwd / GUI URL 等上下文必须保留,否则操作会退化
- **换框不常驻**:5 个框架只在真被拒时按需取,省上下文
- **技能只补不覆盖**:同步到 `$DSH_HOME/skills` 时只补缺失,绝不覆盖用户手改
- **不叠加同类插件**:多个改同一批 config id 的插件同时装会互相覆盖,两个都废