dsh-log-contract 0.3.15 → 0.3.17

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/vocab.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /**
2
- * dsh-log-contract · lib/vocab.js —— **按被检文件自身版本选词表与折叠路径**(1.3 第二半,内部评审裁定)
2
+ * dsh-log-contract · lib/vocab.js —— **按被检文件自身版本选词表与折叠路径**
3
3
  *
4
4
  * 背景(一手实测):同一健康会话,在**生产 0.1.1 解析**下 0 违规,在 **0.1.5 解析**下 3606 违规——
5
5
  * 根因是本包原先用**运行时导出**的 `KNOWN_SESSION_EVENT_TYPES` / `foldSurface` 去判**旧格式(v0)文件**:
6
6
  * 官方 0.1.5 的词汇表已不含 `assistant/chunk`(v0 词表 51 条里**有**),于是每个 chunk 事件被 E3 误报。
7
- * 裁定原文(内部评审 §二):**"判据必须来自文件自身的版本,不是判官(运行时)的版本"**。
7
+ * 判据:**"判据必须来自文件自身的版本,不是判官(运行时)的版本"**。
8
8
  *
9
- * 2026-09-14 复核补强(同一裁定的完整落地)——一手证据:
9
+ * 2026-09-14 补强(同一判据的完整落地)——一手证据:
10
10
  * 1. **0.1.5 的 `foldSurface` 不是"放宽",而是换成了 v3 语义**(对照 `dsh-session@0.1.0-rc.7`
11
11
  * 与 `0.1.5-rc.1` 的 `isReplaceOp` / `assertProvenance`):
12
12
  * - replace 字段改名:rc.7 `{op,start,end}`(`lib/index.js:300-303`)→ 0.1.5 `{op,startSeq,endSeq}`
@@ -59,7 +59,7 @@ export const V0_EVENT_TYPES = new Set([
59
59
  * v2 = retained ∪ {assistant/attempt, assistant/message, delivery-accepted, session/end-seed}
60
60
  * = v0 − assistant/chunk + assistant/attempt
61
61
  * ⇒ **v2 不含 `assistant/chunk`**(旧实现误用 `V0 ∪ {attempt}`,把 chunk 留在 v2 词表里 =
62
- * 宽松口径,会漏报 v2 里的顶层 chunk 行 ⇒ F9 修正)。
62
+ * 宽松口径,会漏报 v2 里的顶层 chunk 行 ⇒ 已修正)。
63
63
  */
64
64
  export const V2_EVENT_TYPES = new Set([
65
65
  ...[...V0_EVENT_TYPES].filter((t) => t !== 'assistant/chunk'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-log-contract",
3
3
  "description": "日志契约守护 — DSH session log contract guard: offline health check (CLI) + pre-write validation for DeepSeek Harness session logs",
4
- "version": "0.3.15",
4
+ "version": "0.3.17",
5
5
  "packageManager": "pnpm@11.7.0",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",