@lmzhen/dsh-evolution-state-json 0.3.11 → 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.
- package/lib/index.js +4 -4
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -41,7 +41,7 @@ async function transactIo(io, path, task) {
|
|
|
41
41
|
* changes semantically: the bundle digest is the fail-closed signal for
|
|
42
42
|
* review workers, so a stale id across deployments must be distinguishable.
|
|
43
43
|
*/
|
|
44
|
-
const PROMPT_BUNDLE_ID = "dsh-evolution@
|
|
44
|
+
const PROMPT_BUNDLE_ID = "dsh-evolution@13";
|
|
45
45
|
const MEMORY_REVIEW_PROMPT = `[Auto-review — Memory]
|
|
46
46
|
Review the conversation above and consider saving to memory if appropriate.
|
|
47
47
|
|
|
@@ -261,7 +261,7 @@ D. 库·整合纪律(计划形态约束)
|
|
|
261
261
|
- verdict=no_issues ⇒ plan=[](不允许空 plan 之外的"无问题"表述)。
|
|
262
262
|
- **confidence 降档规则(机械)**:条款全部由机械证据支撑 → 0.6–0.9;每含一项语义推断(是否锚/是否同伞/性质归类)→ 上限 0.4。
|
|
263
263
|
- needs_human = (confidence < 0.6) OR (不可逆) OR (is_override) OR (引用 unknown 信号)。
|
|
264
|
-
- 语言:finding/recommendation/notes
|
|
264
|
+
- 语言:finding/recommendation/notes 与库正文语言一致(不自订语言);字段名/信号 id/枚举保留英文。
|
|
265
265
|
- **提交前自查(逐项对照,不许跳过)**:① verdict 与 plan 一致 ② 每条 evidence 在事实块 ③ undo_path 非空(不可逆=n/a)④ confidence 含推断≤0.4 ⑤ finding 无"应"字 ⑥ §3 完整性契约满足。
|
|
266
266
|
|
|
267
267
|
## 7. 裁决纪律
|
|
@@ -299,12 +299,12 @@ function sha256(text) {
|
|
|
299
299
|
function createPromptBundle(prompts) {
|
|
300
300
|
const canonical = JSON.stringify({
|
|
301
301
|
id: PROMPT_BUNDLE_ID,
|
|
302
|
-
version:
|
|
302
|
+
version: 13,
|
|
303
303
|
prompts: Object.fromEntries(Object.entries(prompts).sort())
|
|
304
304
|
});
|
|
305
305
|
return Object.freeze({
|
|
306
306
|
id: PROMPT_BUNDLE_ID,
|
|
307
|
-
version:
|
|
307
|
+
version: 13,
|
|
308
308
|
prompts: Object.freeze({ ...prompts }),
|
|
309
309
|
sha256: sha256(canonical)
|
|
310
310
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-json",
|
|
3
3
|
"description": "JSON-file evolution state provider over the IO seam (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.13",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -37,12 +37,12 @@
|
|
|
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.
|
|
41
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.13",
|
|
41
|
+
"@lmzhen/dsh-evolution-state-storage": "^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.
|
|
46
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
45
|
+
"@lmzhen/dsh-evolution-io": "^0.3.13",
|
|
46
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.13"
|
|
47
47
|
}
|
|
48
48
|
}
|