Skip to content

Commit 041e8f3

Browse files
authored
Merge pull request #599 from slow-stack/release-prep/0.12.0
chore(release): 0.12.0
2 parents b921763 + d5a24d8 commit 041e8f3

9 files changed

Lines changed: 105 additions & 47 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 3 deletions
Large diffs are not rendered by default.

‎SECURITY.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ We actively maintain the latest minor version. Security fixes are backported to
1010

1111
| Version | Supported | Status |
1212
|---|---|---|
13-
| 0.11.x | ✅ Yes | Active development |
14-
| 0.10.x | ⚠️ Best-effort | Critical fixes only |
15-
| < 0.10.0 | ❌ No | Please upgrade to 0.11.x |
13+
| 0.12.x | ✅ Yes | Active development |
14+
| 0.11.x | ⚠️ Best-effort | Critical fixes only |
15+
| < 0.11.0 | ❌ No | Please upgrade to 0.12.x |
1616

17-
**End-of-life notice**: 0.10.x is in best-effort maintenance (critical fixes only). Its end-of-life date will be announced in advance; after that date no security fixes will be provided for 0.10.x. Security support for 0.9.x and below has ended — please upgrade to 0.11.x.
17+
**End-of-life notice**: 0.11.x is in best-effort maintenance (critical fixes only). Its end-of-life date will be announced in advance; after that date no security fixes will be provided for 0.11.x. Security support for 0.10.x and below has ended — please upgrade to 0.12.x.
1818

1919
---
2020

@@ -408,11 +408,11 @@ This project is licensed under the **MIT License**. See [LICENSE](https://github
408408

409409
| 版本 | 支持状态 | 说明 |
410410
|---|---|---|
411-
| 0.11.x | ✅ 支持 | 活跃开发中 |
412-
| 0.10.x | ⚠️ 尽力维护 | 仅关键修复 |
413-
| < 0.10.0 | ❌ 不支持 | 请升级至 0.11.x |
411+
| 0.12.x | ✅ 支持 | 活跃开发中 |
412+
| 0.11.x | ⚠️ 尽力维护 | 仅关键修复 |
413+
| < 0.11.0 | ❌ 不支持 | 请升级至 0.12.x |
414414

415-
**停止维护通知**:0.10.x 处于尽力维护阶段(仅关键修复)。停止维护的具体日期将提前公布;该日期之后将不再提供 0.10.x 的安全修复。0.9.x 及更早版本的安全支持已终止——请升级至 0.11.x。
415+
**停止维护通知**:0.11.x 处于尽力维护阶段(仅关键修复)。停止维护的具体日期将提前公布;该日期之后将不再提供 0.11.x 的安全修复。0.10.x 及更早版本的安全支持已终止——请升级至 0.12.x。
416416

417417
---
418418

‎dsh-mneme/CHANGELOG.md‎

Lines changed: 59 additions & 21 deletions
Large diffs are not rendered by default.

‎dsh-mneme/README.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![npm version](https://img.shields.io/npm/v/@modusensus/dsh-mneme?color=blue&label=npm)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
66
[![license](https://img.shields.io/badge/license-MIT-green)](LICENSE)
77
[![Awesome](https://awesome-dsh-plugin.com/badge.svg)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
8-
[![tests](https://img.shields.io/badge/tests-2808%20passed-success)](https://github.com/slow-stack/mneme)
8+
[![tests](https://img.shields.io/badge/tests-2881%20total-success)](https://github.com/slow-stack/mneme)
99
[![CI](https://img.shields.io/github/actions/workflow/status/slow-stack/mneme/ci.yml)](https://github.com/slow-stack/mneme/actions)
1010
[![node](https://img.shields.io/badge/node-22%2B-blue)](https://nodejs.org)
1111
[![npm downloads](https://img.shields.io/npm/d18m/@modusensus/dsh-mneme.svg?color=blue&label=downloads)](https://www.npmjs.com/package/@modusensus/dsh-mneme)
@@ -296,6 +296,7 @@ v0.3.0 起新增**记忆基因**层:从记忆里抽取**命名实体**、**带
296296
| **v0.10.0**(2026-11-02) | 归因与闸门——给已经发生的事补上它自己的身份:**蒸馏有了运行身份**(窗口级 `distill_runs` 记 `ok`/`degraded`/`noop`/`failed`/`aborted` 与 `audit_id`,行级 `memory_mints` 记「这条记忆出生自哪一轮巩固」;历史行留空**不猜**,失败轮也真记一行),此前归因只到「会话区间」——那是输入的坐标不是运行的身份;**溯源补上反方向** `GET /memory/provenance?sessionId=`(两个主键互斥,`limit` 越界 400 不静默截断,撞上限带 `truncated: true`);**会话级无痕闸门** `sessionGateEnabled`(指定会话与子代理不进不出,其余会话照常;子代理判据只认宿主委派标记,`parentSession` 不是判据——本机 641 个会话头实测会误判 3 个 fork 主会话);**防谄媚补到写入面**(蒸馏与总览加「立场纪律」四条与「叙述纪律」,排在与时间换算的指令之前)。另修 `differentiate` 正反馈闭环(注记改落 `differentiated_pairs` 账本、正文一个字节都改不了,实测单条曾堆 19 段)、sleep 冲突相位的输入侧预算与续排(分批后不再隔夜才轮到)、面板「最近巩固」区分 organize 回执(#495)、面板首次有移动端与 481–519px 中间带断点(#542) |
297297
| **v0.10.1**(2026-11-03) | 打开记忆详情不再崩掉整个宿主:0.10.0 里点开侧边栏任意一条记忆的详情抽屉,渲染进程立刻抛 `ReferenceError: provenance is not defined`,整个宿主跟着重启、进行中的会话被打断,100% 复现(#553)。根因是两个隔了三千多行的组件——`MemoryDrawer` 的归因 effect 与渲染块在读 `provenance` / `setProvenance`,而那句 `useState` 落在了同文件**上一个**组件 `EntityPanel` 里,在那里是纯死代码(整个函数体除声明外对 `provenance` 零引用)。这个形状躲得过眼睛、语法检查与原有用例,所以补的不是「锁一个名字」的用例,而是按组件扫「调了 `setXxx(` 却没有声明」。同版带上 v0.10.0 之后合入的图谱锚定层收尾(#24):Tag 与向量两路起点接线(`normalizePath` 补回通路身份、`findEntitiesByTags` 走全等匹配并按 500 分块、反查改 UNION 三源以覆盖只看关系不建 attr 行的记忆、向量路复用同一份 query 向量并滤掉 0 分种子),以及被动确认的复核出口(`GET /semantic/graph/boosted-relations` 按「合法抬升量 > 0」列出、ego 边补 `weight`/`source`、面板默认收起的审计视角) |
298298
| **v0.11.0**(2026-11-05) | 仓库地志(chorography)落地并接到消费面:读一个 JS/TS 仓库,把文件树与 import 图编译成模块划分与 `.chorography/` 下的 Markdown 地志页——T0 骨架全程零模型零网络、`plan.yaml` 正面控制、`CHORO:HUMAN` 保留区跨重生成逐字节存活;T1 逐模块一次 headless 会话补架构/约定/技术栈/构建四段语义正文并落可核验的 claims(三重上限、编造锚点整轮拒)。消费面三张脸:面板第二座位 `dsh-mneme-wiki`、三个只读工具、`/choro/*` 读路由,外加每轮开局一小块标题级提纲注入(`chorographyInject` = light/full/off)与只读 `/choro` 命令(过期只提示、绝不自动重跑)。`chorographyEnabled` opt-in 默认关。wiki 行与记忆行物理隔离,永不进巩固/质量过滤任何行池。另修 #573:宽态侧栏的记忆入口落在「更多」行下面、被展开的菜单盖住 |
299+
| **v0.12.0**(2026-11-07) | pin 从「按类型推断」变成你亲手钉的显式事实:另开 `pinned_memories` 表 + `memory_pin`(取消钉选是同一个工具传 `unpin: true`,没有单独的 unpin 工具),钉住的行在注入里优先占位,不再依赖它恰好是 `constraint` / `preference`;顺带修掉两处旁路——pin 筛选发生在 hybrid 合并之后、而合并结果已按 `poolSize` 封顶(生产 10 条),规则窗口里的 pin 行一条都进不了候选池(真库副本 pin 注入 2/5 → 5/5、总数 7 → 10,原有条目只后移无一条被挤出),判据也从「表里有几行」改成「有几条能用」(pin 行会在记忆侧被归档 / 遗忘 / 硬删而 pin 表一无所知,旧判据只要剩一行就永不回落;`pinnedStats.source` 分 `explicit` / `fallback-none-usable` / `type-fallback` 三档)。`pinnedInjectBudget` **默认 0,即默认状态下 pin 池整体关闭**——钉住不等于会抢占注入位次,要显式设成正数才启用,关着时注入序列与改前逐条相同。同版带上「Agent 眼中的你」自动事实(`profileFactsEnabled` 默认关,按身份分卡维护、参与注入、面板可管)、向量解析缓存从恒 0% 命中到跟工作集自适应(真库四轮 0.0% → 第二轮起 100%,A/B 1.8–2.4s → 370–424ms,存储换 `Float32Array` 55.5MB → 29.7MB,并摘掉「只取 id 却带 `embedding != ''`」的谓词)、[#579](https://github.com/slow-stack/mneme/issues/579) 地志工具改走宿主错误路径且检索不再把「读不到」答成「没匹配」(@Oscar-Williams)、[#590](https://github.com/slow-stack/mneme/issues/590) 严格寻址不再把「一张卡都没建」判成「没有这张卡」,以及面板跨组件广播 `mneme:store-changed`、chorography 收尾(面板「重建骨架」+ 页级向量检索)。 |
299300

300301
| **v0.8.x** | 作用域隔离(agent / workspace 双维 + opt-in 硬过滤)、冲突队列人工裁决、生态化(stdio MCP server / 图召回轴 / 冷启动 / 注入截断) |
301302

@@ -732,7 +733,7 @@ src/
732733
├── api.js # HTTP 路由(Web 面板数据通道,含 /conflicts 冲突队列)
733734
└── index.js # 插件接线
734735
lib/ # src 的同步分发产物(npm run sync,prepack 钩子在发布时自动跑;一致性由 scripts/check-sync.js 在 CI 与 release.yml 校验——它只查不同步;唯一手写例外 lib/client.js——Web 面板 bundle,sync 不覆盖)
735-
test/ # 2808 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
736+
test/ # 2881 个 node:test 测试(审计与三轴线压测不变量;src↔lib 一致性由 scripts/check-sync.js 发布闸门校验)
736737
scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压测 · sync-lib.js 同步 · check-sync.js 发布闸门 · benchmark-recall.js / benchmark-embed.js / benchmark-rerank.js 基准 · sync-test-badge.mjs 测试徽章 · build-runtime-manifest.mjs 运行时清单
737738
```
738739
@@ -741,7 +742,7 @@ scripts/ # e2e-dsh.js 端到端演示 · stress-dsh.js 三轴线压
741742
```bash
742743
cd dsh-mneme
743744
npm install # 安装 peer 依赖(以 devDependencies 形式,用于本地测试)
744-
npm test # 运行 2808 个测试
745+
npm test # 运行 2881 个测试
745746
npm run stress # 三轴线压测:长会话检索 / 冲突仲裁 / 多 Agent 并发(离线 mock LLM)
746747
npm run sync # 把 src/ 同步到 lib/(发布时由 prepack 钩子自动执行)
747748
```

‎dsh-mneme/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dsh-mneme/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@modusensus/dsh-mneme",
33
"description": "Cross-session memory plugin for DeepSeek Harness with autoDream consolidation: SQLite store, Markdown mirrors, 10 model tools, automatic injection, session summarization, user profile/rules, custom slash commands, vector (semantic) search, and a Web GUI panel",
4-
"version": "0.11.0",
4+
"version": "0.12.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

‎dsh-mneme/scripts/sync-test-badge.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// 做三件事:
66
// 1. 跑一遍全量测试(npm test),取套件总数(`ℹ tests N` 汇总行);
7-
// 2. 把双 README 的 tests 徽章(img.shields.io/badge/tests-N%20passed)与
7+
// 2. 把双 README 的 tests 徽章(img.shields.io/badge/tests-N%20total)与
88
// 开发命令注释(# N 个测试 / # 运行 N 个测试 / # N 个 node:test 测试 /
99
// # N tests)刷成该数字——形状集合收在 scripts/test-count-sync.mjs,与发版
1010
// 自动路径 scripts/release-prep.mjs 共用(两条路径各存一份曾导致 v0.8.11

‎dsh-mneme/scripts/test-count-sync.mjs‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@
99
// 四条注释留在 1431 —— 自动路径反而成了漂移的来源。规则收在这里共用,
1010
// 由 test/test-count-sync.test.js 锁住形状集合与「双 README 同数」这条不变量。
1111
//
12-
// 徽章正则刻意不带尾随 `-`:`tests-N%20passed` 既能命中 `…passed-3E63DD`(root)
13-
// 也能命中 `…passed-success`(包 README),将来出现无后缀写法也不会静默漏改。
12+
// 徽章正则刻意不带尾随 `-`:`tests-N%20total` 既能命中 `…total-3E63DD`(root)
13+
// 也能命中 `…total-success`(包 README),将来出现无后缀写法也不会静默漏改。
14+
//
15+
// 徽章报的是**套件总数**不是通过数,所以字面量写 `total` 而不是 `passed`(#599 评审指出):
16+
// 本地 Windows 未开开发者模式时有一条符号链接用例被条件跳过,pass 数会比总数少 1,
17+
// 而徽章口径是 CI(ubuntu)的套件总数——写 `passed` 就在非 CI 平台上多报了一个通过。
1418

15-
const BADGE = /tests-\d+%20passed/g;
19+
const BADGE = /tests-\d+%20total/g;
1620
const COMMENT_CJK = /(#\s*(?:运行\s*)?)\d+( 个(?:\s*node:test)?\s*测试)/g;
1721
const COMMENT_EN = /(#\s*)\d+( tests)/g;
1822

1923
/** 把一段文本里所有测试数出现处刷成 count(含徽章与四种注释形状)。 */
2024
export function applyTestCount(text, count) {
2125
return text
22-
.replace(BADGE, `tests-${count}%20passed`)
26+
.replace(BADGE, `tests-${count}%20total`)
2327
.replace(COMMENT_CJK, `$1${count}$2`)
2428
.replace(COMMENT_EN, `$1${count}$2`);
2529
}
@@ -31,7 +35,7 @@ export function applyTestCount(text, count) {
3135
*/
3236
export function readTestCounts(text) {
3337
const found = [];
34-
for (const m of text.matchAll(/tests-(\d+)%20passed/g)) {
38+
for (const m of text.matchAll(/tests-(\d+)%20total/g)) {
3539
found.push({ shape: "badge", value: Number(m[1]) });
3640
}
3741
for (const m of text.matchAll(/#\s*(?:运行\s*)?(\d+)\s*个(?:\s*node:test)?\s*测试/g)) {

‎dsh-mneme/test/test-count-sync.test.js‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ test("双 README 的测试数处处一致(徽章与所有注释同数)", ()
3232
// 自动发版路径因此反倒成了漂移来源。
3333
test("applyTestCount 覆盖徽章与全部四种注释形状(真实漂移样本)", () => {
3434
const drifted = [
35-
'<img src="https://img.shields.io/badge/tests-1431%20passed-3E63DD?style=flat-square" alt="tests">',
36-
"[![tests](https://img.shields.io/badge/tests-1431%20passed-success)](https://github.com/slow-stack/mneme)",
35+
'<img src="https://img.shields.io/badge/tests-1431%20total-3E63DD?style=flat-square" alt="tests">',
36+
"[![tests](https://img.shields.io/badge/tests-1431%20total-success)](https://github.com/slow-stack/mneme)",
3737
"npm test # 1431 个测试",
3838
"npm test # 运行 1431 个测试",
3939
"test/ # 1431 个 node:test 测试(审计与三轴线压测不变量)",
@@ -47,7 +47,7 @@ test("applyTestCount 覆盖徽章与全部四种注释形状(真实漂移样
4747
});
4848

4949
test("applyTestCount 幂等:同一个数重复施加不再产生变化", () => {
50-
const once = applyTestCount("tests-9%20passed-3E63DD\n# 9 个测试\n# 9 tests", 12);
50+
const once = applyTestCount("tests-9%20total-3E63DD\n# 9 个测试\n# 9 tests", 12);
5151
assert.equal(applyTestCount(once, 12), once);
5252
});
5353

@@ -58,3 +58,14 @@ test("applyTestCount 不碰历史版本表里的「N 测试全绿」", () => {
5858
const history = "| **v0.8.0** | 745 测试全绿 |\n| **v0.7.9** | 790 通过 |\n| v0.2.7 | 263 |";
5959
assert.equal(applyTestCount(history, 1437), history);
6060
});
61+
// 徽章报的是套件总数(`ℹ tests N`),不是通过数:本地 Windows 未开开发者模式时有一条
62+
// 符号链接用例被条件跳过,pass 数会比总数少 1。徽章字面量若退回 `%20passed`,读者会把它
63+
// 读成「N 个用例都通过了」,而它其实只表示「跑了 N 个套件」——#599 评审指出这一处措辞
64+
// 与实际口径不符。这条用例锁住那个词,改回 `passed` 立刻转红。
65+
test("双 README 的徽章字面量报总数(total),不谎称全部通过(passed)", () => {
66+
for (const f of READMES) {
67+
const text = readFileSync(f, "utf8");
68+
assert.ok(/tests-\d+%20total/.test(text), `${f} 徽章必须写 %20total:${text.match(/tests-\d+%20\w+/)}`);
69+
assert.ok(!/tests-\d+%20passed/.test(text), `${f} 徽章不得退回 %20passed`);
70+
}
71+
});

0 commit comments

Comments
 (0)