dsh-log-contract 0.3.45 → 0.3.46
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/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/VERSIONS.md +9 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.3.46] — 2026-12-02
|
|
2
|
+
|
|
3
|
+
- 版本记录状态更正:`VERSIONS.md` 按 npm registry 事实逐版核对 `npm 状态`(0.3.44 等已发版本更正为「已发」;未发版本保持「未发」),并补 0.3.45 / 0.3.46 行
|
|
4
|
+
- 记录口径改为**快照**:状态为写入日核对结果,之后发布不回写本表,以 `npm view dsh-log-contract versions` 与 `dist-tags.latest` 为准;避免"状态随时间漂移"
|
|
5
|
+
- 能力说明对齐 ID-6:版本同一性说明更新为 `runtimeDigest`(运行身份)+ `packageDigest`(包内容)双摘要
|
|
6
|
+
- 规则与判定无变化
|
|
7
|
+
|
|
1
8
|
## [0.3.45] — 2026-12-01
|
|
2
9
|
|
|
3
10
|
- IDENTITY 新增 **ID-6 包内容摘要**:包内容(`npm pack --dry-run --json` 清单逐文件 sha256 → 排序后再 sha256)也按版本登记;只改文档/包内容而不换号不重登记 ⇒ 红(同号同物)
|
package/README.md
CHANGED
|
@@ -156,9 +156,9 @@ missing; `unknown` means the tail could not be read.
|
|
|
156
156
|
|
|
157
157
|
## Three-layer contract (the model)
|
|
158
158
|
|
|
159
|
-
> **
|
|
159
|
+
> **73 rules in four report families**: **57 log-contract rules** across the layers below
|
|
160
160
|
> (each with an official source reference), plus **6 error-expression** (E1–E6),
|
|
161
|
-
> **
|
|
161
|
+
> **3 version-identity** (ID1/ID2/ID6) and **7 run-contract** rules. `contracts` lists the 57
|
|
162
162
|
> log-contract rules; the other families live in their own documents.
|
|
163
163
|
|
|
164
164
|
| Layer | Rules | What it guards |
|
package/VERSIONS.md
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
> 逐版说明见 [CHANGELOG.md](CHANGELOG.md);报告结构纪律见
|
|
6
6
|
> [docs/interface-versioning.md](docs/interface-versioning.md)。
|
|
7
7
|
>
|
|
8
|
-
> 口径:日期取 npm 发布日期(无 npm 记录者取仓库日期);**npm
|
|
9
|
-
>
|
|
8
|
+
> 口径:日期取 npm 发布日期(无 npm 记录者取仓库日期);**npm 状态是快照**(写入日按
|
|
9
|
+
> `npm view dsh-log-contract versions` + `dist-tags.latest` 核对),之后发布**不回写**本表——
|
|
10
|
+
> 以 registry 为准。`已发` = registry 可见;`未发` = 仓库有 tag/记录但 registry 未见。
|
|
10
11
|
> 0.3.6–0.3.20 逐版列出;0.3.21–0.3.26 为同一窗口的连续修复,合并为一行(不缺失)。
|
|
11
|
-
> 当前 `package.json` 版本为 0.3.
|
|
12
|
+
> 当前 `package.json` 版本为 0.3.46。
|
|
12
13
|
|
|
13
14
|
| 包版本 | 日期 | npm 状态 | `schemaVersion` | 一句话变化 |
|
|
14
15
|
|---|---|---|---|---|
|
|
15
|
-
| 0.3.
|
|
16
|
-
| 0.3.
|
|
16
|
+
| 0.3.46 | 2026-12-02 | 待发(本次) | `"7"` | 版本记录状态更正(VERSIONS 按 registry 事实更新;无规则变化) |
|
|
17
|
+
| 0.3.45 | 2026-12-01 | 已发 | `"7"` | IDENTITY +ID-6 包内容摘要(runtimeDigest + packageDigest 双登记;同号改包内容 ⇒ 红) |
|
|
18
|
+
| 0.3.44 | 2026-11-25 | 已发 | `"6"` | 文档与可读性修订(README 重写 / 家族总览 / VERSIONS 入包);规则无变化 |
|
|
17
19
|
| 0.3.43 | 2026-11-25 | 已发 | `"6"` | run-contract 扩到 7 条(+`R-2b-2` 初始化中不得推"没有"、+`R-5` 闭/开集);归档读端未就绪 ⇒ `unverifiable` |
|
|
18
20
|
| 0.3.42 | 2026-11-24 | 已发 | `"5"` | run-contract 扩到 5 条(+`R-2b` 撤回必须带消费方可读原因、+`R-6` 同键副作用幂等) |
|
|
19
21
|
| 0.3.41 | 2026-11-24 | 已发 | `"4"` | 新增 run-contract 家族(3 条:`R-1` / `R-2a` / `R-3`),`check --json` 增 `runContract` 段 |
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
| 0.3.7 | 2026-08-31 | 已发 | `"1"` | `check --resume` 三档 + `fix` 原语 + `--trim-budget` + 健康巡检 |
|
|
49
51
|
| 0.3.6 | 2026-08-30 | 已发 | `"1"` | T2:assistant/message 的非 chunk 源引用按官方 `:644` 报 error |
|
|
50
52
|
|
|
51
|
-
覆盖 **0.3.6 → 0.3.
|
|
53
|
+
覆盖 **0.3.6 → 0.3.46 共 41 个版本号**(36 行;0.3.21–0.3.26 合并一行)。
|
|
52
54
|
|
|
53
55
|
## 兼容承诺
|
|
54
56
|
|
|
@@ -56,4 +58,4 @@
|
|
|
56
58
|
- 缺少 `schemaVersion` 的旧报告视为 `"1"`。
|
|
57
59
|
- 报告结构 `"1"` → `"6"` 的逐段变化与"旧消费者忽略新增段/字段"读法见
|
|
58
60
|
[docs/interface-versioning.md](docs/interface-versioning.md)。
|
|
59
|
-
- 版本同一性(ID1/ID2)保证"同号同物"
|
|
61
|
+
- 版本同一性(ID1/ID2/ID6)保证"同号同物":每个版本绑定两组摘要——`runtimeDigest`(运行身份)与 `packageDigest`(包内容);发布前由产物重新计算并登记。
|
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.
|
|
4
|
+
"version": "0.3.46",
|
|
5
5
|
"packageManager": "pnpm@11.7.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|