lingshu-skill 3.93.0 → 3.94.0

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # 更新日志
2
2
 
3
+ ## v3.94(2026-11-23)
4
+
5
+ > 主题:**发布门禁的可诊断性**——失败要能点名,别再让人白排查。
6
+
7
+ - **问题**:v3.93 发版时 `release.py publish` 只报 `tests: FAIL`(60/61),没有说是哪个测试,白排查一轮。实际原因是 `test_engine_sync_docs.py`——我改了 `scripts/release.py` 却没重生成 engine 副本(派生文件纪律)。
8
+ - **修**:
9
+ - `do_verify()` 捕获测试输出,失败时逐行打印 `FAIL <测试名>`(最多 10 条);
10
+ - 六项检查失败时透出末尾 3 行真实原因,不再只有一个 `FAIL` 字样;
11
+ - 成功时也打印末尾统计行(看得出 61/61 还是 60/61)。
12
+ - **纪律补充**:`bump` 之后到 `publish` 之间**不要再改 `scripts/` 或 `docs/`**,否则 engine 副本 / checksums / manifest 立刻过期、门禁必红;要改就再 bump 一次。
13
+
14
+ 验证:`test_engine_sync_docs.py` 同步后 ALL PASS;`do_verify()` 全绿;全量测试 61/61。
15
+
3
16
  ## v3.93(2026-11-23)
4
17
 
5
18
  > 主题:**prior 结果质量**——上线首战就暴露:注入块被做梦聚合垃圾占满。
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
4
4
 
5
- > 当前版本 **v3.93**(变更见 [CHANGELOG.md](CHANGELOG.md))
5
+ > 当前版本 **v3.94**(变更见 [CHANGELOG.md](CHANGELOG.md))
6
6
 
7
7
  > 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
8
8
 
package/SKILL.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lingshu
3
3
  title: 灵枢
4
- version: 3.93
4
+ version: 3.94
5
5
  description: 类脑持久记忆、人格与成长系统——跨会话记住事情、长出自己的人格、上下文将满时做梦式整理记忆。用户提到记忆/记住/上次/人格/设定/性格/知识库/笔记/日志/成长/自我进化/工作记忆,或新会话开始需要恢复关系与上下文时使用。纯本地零依赖。
6
6
  ---
7
7
 
@@ -379,6 +379,8 @@ startup 注入的记忆块与 cron 的瞬态提醒**同名**,于是 cron 的 p
379
379
 
380
380
  62. **【已修 v3.93】prior 结果被做梦聚合垃圾占满**:`prior` 上线后首次实战,注入块里 4 条有 2-3 条是做梦机械拼接的 `最近关于「X」的一组事情(N 条):…`(真库 265 条里 18 条,占 6%)——它不是结论、只是原文用「;」相连,对"以前做过吗"零增量,却挤占注入预算。**修**:`_is_dream_aggregate()` / `_agg_like()` 在 `prior` 的四路来源(知识/笔记/教训/记忆)与 `build_injection` 的最近/相关记忆候选里统一排除;另补"内容过短退化条目(如 body 只有 `list`)跳过"的护栏。原文各自仍在库里、recall 可单独取到,不影响可追溯性。
381
381
 
382
+ 63. **【已修 v3.94】发布验证失败时只报"tests: FAIL"不点名**:v3.93 发版时 `release.py publish` 报 60/61 失败但没说是哪个测试,白排查一轮(实际是 `test_engine_sync_docs.py`——我改了 `scripts/release.py` 却没重生成 engine 副本)。**修**:`do_verify()` 现在捕获测试输出,失败时逐行打印 `FAIL <测试名>`(最多 10 条);六项检查失败也透出末尾 3 行真实原因。**教训(写进纪律)**:bump 之后到 publish 之间**不要再改 scripts/ 或 docs/**,否则 engine 副本/checksums/manifest 立刻过期,门禁会红——真要改就再 bump 一次。
383
+
382
384
  ## 三、已知问题与风险
383
385
 
384
386
  | # | 现象 | 影响 | 处置 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lingshu-skill",
3
- "version": "3.93.0",
3
+ "version": "3.94.0",
4
4
  "description": "Brain-inspired persistent memory, persona and growth system for AI coding agents. Local-only, zero-dependency Python. Requires Python 3.10+.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "PATCH_NOTES.md": "9296e524f743f358fd11115598398a754cfd69534526dde9c8ad85f14a418f89",
3
3
  "README.md": "3d634d743b085eebd2cbb5dd3a00edfa728ed23947e20cc29e7c3b29087ec043",
4
- "engine/CHANGELOG.md": "52b22940e437edc077e5e1806ea0e2029f151e805f60af1c88ecc82383aa0fe4",
5
- "engine/README.md": "c76664b66b3c84639fd53ee594df0f24756398c5996781a678dc46b634ae857e",
4
+ "engine/CHANGELOG.md": "b87d2a60b60eac739b4aaba696cf13bc8e44cbc3929140a34662e726e024f32b",
5
+ "engine/README.md": "e6f847bc8e8f021635a3796742884557c2471b89a899dbe40f1a138b1b8e0e56",
6
6
  "engine/SKILL-lite.md": "04b87789232a0f7537c861c857888b4a0e947bcf92a461cbad5328af05361c58",
7
7
  "engine/SKILL-tiny.md": "74e1955cc5bf4ec0ca28d52030f799f039283de27a52345a33ce783d6ee0c608",
8
- "engine/SKILL.md": "7306664b6d57213b1b8d5f8d1de5e002351b46690defa958a44e498d03cd5c0b",
8
+ "engine/SKILL.md": "97d14585e55f3f5538109c86dbad22d42469d06aa00012d29f9e6de1064ce2c7",
9
9
  "engine/assets/panel.html": "8b368f16f0c1447413456a16cb4666daa4df08983bd30d627af04ad2a0fbda26",
10
10
  "engine/docs/commands.md": "bdc2ab68088b93cd204063f1c60723488073206f9bfa53d90c53ceb4b6e5717e",
11
11
  "engine/docs/mechanics.md": "e8a6602a434ed5b78cac64a98884f65a6888eb48daa7a1c0be1f6c3984041b34",
@@ -42,7 +42,7 @@
42
42
  "engine/scripts/panel_server.py": "51c735de0d78d8cc9d3aae5bee4ca1e66a551f200cab37f327bf9c2666abd297",
43
43
  "engine/scripts/panels.py": "87dfce47693340af7c9bc6010a593256331e32c2e8504a0ac0745cf2ef992fd6",
44
44
  "engine/scripts/persona.py": "fb748d2fb7b176d9dd0d7394de69ba4560da7f4205f62256477d3a69dcbdf0f5",
45
- "engine/scripts/release.py": "b8a1d313b4c1dd4b9eaa493600954d49a19f78ba23e821bced5e329deba269ed",
45
+ "engine/scripts/release.py": "2552fb634cc06050fcdcf7cdf34f5966df99c938ffb9ed021ef0c91e66c6838b",
46
46
  "engine/scripts/retriever.py": "85a35f8f660767cff1c068e722b51e3b5623c4dffe4822527eee96f9220240d3",
47
47
  "engine/scripts/safety.py": "7586d8d4a627eec67a4891b758665289a33e07a45fd27d526d45c70d1178cd53",
48
48
  "engine/scripts/session_import.py": "31c68069800e6ca8c91aad7869e7e174adc0b1e027ac0a4f7361a2c3a5363b3f",
@@ -1,5 +1,18 @@
1
1
  # 更新日志
2
2
 
3
+ ## v3.94(2026-11-23)
4
+
5
+ > 主题:**发布门禁的可诊断性**——失败要能点名,别再让人白排查。
6
+
7
+ - **问题**:v3.93 发版时 `release.py publish` 只报 `tests: FAIL`(60/61),没有说是哪个测试,白排查一轮。实际原因是 `test_engine_sync_docs.py`——我改了 `scripts/release.py` 却没重生成 engine 副本(派生文件纪律)。
8
+ - **修**:
9
+ - `do_verify()` 捕获测试输出,失败时逐行打印 `FAIL <测试名>`(最多 10 条);
10
+ - 六项检查失败时透出末尾 3 行真实原因,不再只有一个 `FAIL` 字样;
11
+ - 成功时也打印末尾统计行(看得出 61/61 还是 60/61)。
12
+ - **纪律补充**:`bump` 之后到 `publish` 之间**不要再改 `scripts/` 或 `docs/`**,否则 engine 副本 / checksums / manifest 立刻过期、门禁必红;要改就再 bump 一次。
13
+
14
+ 验证:`test_engine_sync_docs.py` 同步后 ALL PASS;`do_verify()` 全绿;全量测试 61/61。
15
+
3
16
  ## v3.93(2026-11-23)
4
17
 
5
18
  > 主题:**prior 结果质量**——上线首战就暴露:注入块被做梦聚合垃圾占满。
@@ -2,7 +2,7 @@
2
2
 
3
3
  > 名字取自《黄帝内经》:**算力给思考,人格给灵魂,记忆给生命。**
4
4
 
5
- > 当前版本 **v3.93**(变更见 [CHANGELOG.md](CHANGELOG.md))
5
+ > 当前版本 **v3.94**(变更见 [CHANGELOG.md](CHANGELOG.md))
6
6
 
7
7
  > 🔁 **双仓库镜像**:GitHub(主)与 Gitee(镜像)保持同步——[gitee.com/htmcwy_0/lingshu-skill](https://gitee.com/htmcwy_0/lingshu-skill)。灵枢的更新检查会探测两边最新提交,**谁更新就自动从谁拉取**;任一边不可达(Gitee 匿名风控 / GitHub 限额)时走另一边兜底。
8
8
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lingshu
3
3
  title: 灵枢
4
- version: 3.93
4
+ version: 3.94
5
5
  description: 类脑持久记忆、人格与成长系统——跨会话记住事情、长出自己的人格、上下文将满时做梦式整理记忆。用户提到记忆/记住/上次/人格/设定/性格/知识库/笔记/日志/成长/自我进化/工作记忆,或新会话开始需要恢复关系与上下文时使用。纯本地零依赖。
6
6
  ---
7
7
 
@@ -137,20 +137,28 @@ def do_bump(new_ver: str, title: str) -> int:
137
137
  def do_verify() -> int:
138
138
  bad = []
139
139
  for name, args in CHECKS:
140
- code, _ = _run(args)
140
+ code, out = _run(args, capture=True)
141
141
  print(f" {name}: {'OK' if code == 0 else 'FAIL'}")
142
142
  if code != 0:
143
143
  bad.append(name)
144
+ tail = (out or "").strip().splitlines()[-3:]
145
+ for ln in tail:
146
+ print(f" {ln}", file=sys.stderr)
144
147
  print("[release] 行为基线...")
145
148
  code, _ = _run(["scripts/behavior_baseline.py", "check"])
146
149
  print(f" baseline: {'OK' if code == 0 else 'FAIL'}")
147
150
  if code != 0:
148
151
  bad.append("baseline")
149
152
  print("[release] 全量测试...")
150
- code, _ = _run(["scripts/run_tests.py"])
153
+ code, out = _run(["scripts/run_tests.py"], capture=True)
154
+ print(out.rstrip()[-400:] if out else "") # 透出末尾统计行
151
155
  print(f" tests: {'OK' if code == 0 else 'FAIL'}")
152
156
  if code != 0:
153
157
  bad.append("tests")
158
+ # 失败时必须点名:否则发版日志只说"tests: FAIL",事后无法定位
159
+ fails = [ln.strip() for ln in out.splitlines() if ln.strip().startswith("FAIL ")]
160
+ for ln in fails[:10]:
161
+ print(f" {ln}", file=sys.stderr)
154
162
  if bad:
155
163
  print(f"[release] 验证失败:{', '.join(bad)}", file=sys.stderr)
156
164
  return 1
@@ -137,20 +137,28 @@ def do_bump(new_ver: str, title: str) -> int:
137
137
  def do_verify() -> int:
138
138
  bad = []
139
139
  for name, args in CHECKS:
140
- code, _ = _run(args)
140
+ code, out = _run(args, capture=True)
141
141
  print(f" {name}: {'OK' if code == 0 else 'FAIL'}")
142
142
  if code != 0:
143
143
  bad.append(name)
144
+ tail = (out or "").strip().splitlines()[-3:]
145
+ for ln in tail:
146
+ print(f" {ln}", file=sys.stderr)
144
147
  print("[release] 行为基线...")
145
148
  code, _ = _run(["scripts/behavior_baseline.py", "check"])
146
149
  print(f" baseline: {'OK' if code == 0 else 'FAIL'}")
147
150
  if code != 0:
148
151
  bad.append("baseline")
149
152
  print("[release] 全量测试...")
150
- code, _ = _run(["scripts/run_tests.py"])
153
+ code, out = _run(["scripts/run_tests.py"], capture=True)
154
+ print(out.rstrip()[-400:] if out else "") # 透出末尾统计行
151
155
  print(f" tests: {'OK' if code == 0 else 'FAIL'}")
152
156
  if code != 0:
153
157
  bad.append("tests")
158
+ # 失败时必须点名:否则发版日志只说"tests: FAIL",事后无法定位
159
+ fails = [ln.strip() for ln in out.splitlines() if ln.strip().startswith("FAIL ")]
160
+ for ln in fails[:10]:
161
+ print(f" {ln}", file=sys.stderr)
154
162
  if bad:
155
163
  print(f"[release] 验证失败:{', '.join(bad)}", file=sys.stderr)
156
164
  return 1