dsh-workplan 3.0.6 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * 单一事实源:两条会话固定文案、部门任务质量要求、极简任务硬门槛、专家精简
5
5
  * JSON 汇报、部门负责人精简 JSON 汇总。渲染函数与校验函数同源,保证提示词里
6
- * 写的规则与门禁实际执行的规则不可能分叉(与 2.x 的 comm-format / three-phase
7
- * 同一哲学)。
6
+ * 写的规则与门禁实际执行的规则不可能分叉(与 2.x 的 comm-format / three-phase、
7
+ * 3.0.8 的 five-step 同一哲学)。
8
8
  *
9
9
  * 纯函数、零依赖(不 import plan.ts,避免循环依赖),可被 host/plan/runtime/
10
10
  * llm-rules 与测试同口径消费。
@@ -373,7 +373,7 @@ function checkListField(container, name, violations, options) {
373
373
  /**
374
374
  * 校验专家精简 JSON 汇报(用户要求 7)。
375
375
  *
376
- * 只做结构/精简判定,不判语义真伪(诚信由 F9 与三阶段门禁兜底)。
376
+ * 只做结构/精简判定,不判语义真伪(诚信由 F9 与五步证据门禁兜底)。
377
377
  */
378
378
  export function checkExpertReport(report) {
379
379
  if (!report || typeof report !== 'object' || Array.isArray(report)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workplan",
3
- "version": "3.0.6",
3
+ "version": "3.0.9",
4
4
  "description": "Automatic task decomposition, real department subagents, and a responsive workplan dashboard for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -53,8 +53,7 @@
53
53
  "scripts/repair-malformed-user-messages.mjs"
54
54
  ],
55
55
  "engines": {
56
- "node": ">=22",
57
- "dsh": ">=0.2.2-rc.3"
56
+ "node": ">=22"
58
57
  },
59
58
  "dsh": {
60
59
  "bundle": {
@@ -12,9 +12,9 @@
12
12
  *
13
13
  * 设计约束:
14
14
  * - 本模块只做「格式/结构」核验,不做语义真伪判断(F9 为提示词级诚信约束,
15
- * 由三阶段门禁与人工复核兜底,这里不自动判);
15
+ * 由五步证据门禁与人工复核兜底,这里不自动判);
16
16
  * - 规范是纯数据,可序列化进提示词,也可独立校验,版本号随内容变更递增;
17
- * - 与既有门禁正交:解析失败、验收缺口、三阶段缺失仍由原门禁先拦,
17
+ * - 与既有门禁正交:解析失败、验收缺口、五步证据缺失仍由原门禁先拦,
18
18
  * 本门禁只负责把「其它门禁都过了、但格式仍不合规」的 done 退回。
19
19
  */
20
20
 
@@ -95,7 +95,7 @@ export const COMM_FORMAT_SPEC = Object.freeze({
95
95
  * 冻结条目,本次只增不改;两条新条目按接收者层级启用(见 check 的 tier)。
96
96
  */
97
97
  Object.freeze({ id: 'F10', category: 'report',
98
- description: '专家(第三层执行者)结果必须包含 report 对象,只允许 keyResults/keyInfo/importantInfo/leadRequirements 四个字符串数组字段,至少各有 1 条非空内容(keyInfo/important 可为空数组但须存在),每数组最多 6 条、每条最多 200 字符,内部与跨字段不得出现重复表述',
98
+ description: '专家(第三层执行者)结果必须包含 report 对象,只允许 keyResults/keyInfo/importantInfo/leadRequirements 四个字符串数组字段:keyResults / leadRequirements 各至少 1 条非空内容,keyInfo / importantInfo 可为空数组但字段必须存在,每数组最多 6 条、每条最多 200 字符,内部与跨字段不得出现重复表述',
99
99
  rationale: '用户要求 7:专家成果必须非常精简地汇报给部门负责人,只要关键信息、关键成果、重要信息和负责人要求的东西,并以 JSON mode 结构化输出' }),
100
100
  Object.freeze({ id: 'F11', category: 'report',
101
101
  description: '部门负责人结果必须包含 departmentSummary 对象,只允许 keyResults/keyInfo/importantInfo/sources 四个字符串数组字段,keyResults 至少 1 条非空,keyResults/keyInfo/importantInfo 每项最多 6 条、每条最多 200 字符;sources 最多 16 条且必须逐人覆盖本部门全部已派发专家,内部与跨字段不得出现重复表述',
@@ -161,7 +161,7 @@ export function checkCommFormatCompliance(
161
161
  message: `status 字段缺失或取值非法("${String(parsed.status ?? '')}"),只能是 done / blocked / partial` })
162
162
  }
163
163
 
164
- // F3: 三阶段证据齐全
164
+ // F3: 五步证据齐全(planning / preparation / execution / verification)
165
165
  const phases = parsed.phases
166
166
  if (!phases || typeof phases !== 'object') {
167
167
  violations.push({ ruleId: 'F3', category: 'phases',
@@ -231,7 +231,7 @@ export function checkCommFormatCompliance(
231
231
 
232
232
  /*
233
233
  * F10/F11(用户 2026-11-14 第 7、10、11 条):按接收者层级启用。
234
- * 只拦 done 路径——受阻结果已有更针对性的诊断(F8/三阶段),
234
+ * 只拦 done 路径——受阻结果已有更针对性的诊断(F8/五步证据),
235
235
  * 不再叠加精简性条目,避免一条 blocked 被反复退回在格式上。
236
236
  */
237
237
  if (options.tier === 'expert' && parsed.status === 'done') {