@lmzhen/dsh-evolution-feedback 0.3.12 → 0.3.13

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -250,7 +250,7 @@ async function readEvolutionTimeline(io, path) {
250
250
  * changes semantically: the bundle digest is the fail-closed signal for
251
251
  * review workers, so a stale id across deployments must be distinguishable.
252
252
  */
253
- const PROMPT_BUNDLE_ID = "dsh-evolution@11";
253
+ const PROMPT_BUNDLE_ID = "dsh-evolution@13";
254
254
  const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
255
255
  Review the conversation above and consider saving to memory if appropriate.
256
256
 
@@ -470,7 +470,7 @@ D. 库·整合纪律(计划形态约束)
470
470
  - verdict=no_issues ⇒ plan=[](不允许空 plan 之外的"无问题"表述)。
471
471
  - **confidence 降档规则(机械)**:条款全部由机械证据支撑 → 0.6–0.9;每含一项语义推断(是否锚/是否同伞/性质归类)→ 上限 0.4。
472
472
  - needs_human = (confidence < 0.6) OR (不可逆) OR (is_override) OR (引用 unknown 信号)。
473
- - 语言:finding/recommendation/notes 与库正文一致(中文);字段名/信号 id/枚举保留英文。
473
+ - 语言:finding/recommendation/notes 与库正文语言一致(不自订语言);字段名/信号 id/枚举保留英文。
474
474
  - **提交前自查(逐项对照,不许跳过)**:① verdict 与 plan 一致 ② 每条 evidence 在事实块 ③ undo_path 非空(不可逆=n/a)④ confidence 含推断≤0.4 ⑤ finding 无"应"字 ⑥ §3 完整性契约满足。
475
475
 
476
476
  ## 7. 裁决纪律
@@ -508,12 +508,12 @@ function sha256(text) {
508
508
  function createPromptBundle(prompts) {
509
509
  const canonical = JSON.stringify({
510
510
  id: PROMPT_BUNDLE_ID,
511
- version: 12,
511
+ version: 13,
512
512
  prompts: Object.fromEntries(Object.entries(prompts).sort())
513
513
  });
514
514
  return Object.freeze({
515
515
  id: PROMPT_BUNDLE_ID,
516
- version: 12,
516
+ version: 13,
517
517
  prompts: Object.freeze({ ...prompts }),
518
518
  sha256: sha256(canonical)
519
519
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-feedback",
3
3
  "description": "Feedback-to-quality scoring for self-evolution (community build)",
4
- "version": "0.3.12",
4
+ "version": "0.3.13",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,13 +37,13 @@
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
39
  "@deepseek-ai/cordis": "^4.0.1",
40
- "@lmzhen/dsh-evolution-io": "^0.3.12",
41
- "@lmzhen/dsh-skill-usage": "^0.3.12"
40
+ "@lmzhen/dsh-evolution-io": "^0.3.13",
41
+ "@lmzhen/dsh-skill-usage": "^0.3.13"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
45
- "@lmzhen/dsh-evolution-io": "^0.3.12",
46
- "@lmzhen/dsh-evolution-io-node": "^0.3.12",
47
- "@lmzhen/dsh-skill-usage": "^0.3.12"
45
+ "@lmzhen/dsh-evolution-io": "^0.3.13",
46
+ "@lmzhen/dsh-evolution-io-node": "^0.3.13",
47
+ "@lmzhen/dsh-skill-usage": "^0.3.13"
48
48
  }
49
49
  }