Skip to content

chore(release): v0.17.2 - #790

Merged
modusensus merged 1 commit into
mainfrom
release-prep/0.17.2
Nov 26, 2026
Merged

modusensus merged 1 commit into
mainfrom
release-prep/0.17.2

Conversation

@modusensus

@modusensus modusensus commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

这次发版装了什么

0.17.2 是 bug 修复版,四条全部是「看着能用、其实一直在静默失效」的那类问题。最要紧的是第一条:巩固轮从 11-18 起 48 次全失败、画像事实 9 天零新增,界面上没有任何红字。

1. 后台 LLM 的 purpose 撞上代理层对 DSH 原生压缩的封堵(无 issue,线上事故)

src/llm-session.js 新增 BACKGROUND_PURPOSE = "dsh-mneme-background",src/dream.js(narrative / consolidate / summarize)、src/profile-digest.js、src/profile-extract.js、src/profile-facts.js 共 6 处调用点从字面量 "compaction" 改引用常量。

原值只是想借用「后台通道」的配额分类(DSH 公开类型里就是个自由字符串),但 bili 宿主半会把它塞进 x-bili-plugin-purpose,代理半看到 agent=dsh && purpose=compaction 就判定为 DSH 原生压缩、返回 terminal 422 dsh_compaction_refused。代价是巩固轮 48 次全失败 → profile_facts 从 11-17 起 9 天零新增(同期 memories 每天照常写,最多一天 230 条)。sleep 相位用的是另外三个 purpose,不受影响,反而掩盖了故障。

换值不影响继续走后台通道:代理侧判 side request 的条件是 purpose !== undefined && purpose.length > 0,只要求非空。DSH 侧零副作用(它读 purpose 只有一处加标记头)。

新增静态形状锁:/purpose:\s*["']compaction["']/ 扫 src/ 全部 .js,命中即红。必须是静态锁——6 个调用点里只有 dream 那条有测试桩覆盖,另外三条运行时根本调不到,而这事故的形态恰恰是「新加的调用点照抄了老写法」。

2. 事实段记的大多不是「你」(#602)

profile_facts 输入侧加了主体判据:白名单只收 preference、新增 source_kind 列(带 applied_migrations 回填)、注入排序改成 (source_kind = 'preference') DESC, updated_at DESC。prompt 中英各加一段主体硬约束。

本机同一库同 standard 卡前后对照:改前注入 8 条、出处含 preference 0 条(内容是 git 分支 / worktree 路径 / pwsh 变量名);改后 12 条、出处全部含 preference。

3. 情绪边同名实体解析漂移(#784)

src/store.js 新增 findEntitiesByName(ORDER BY mention_count DESC, last_seen DESC, type, id,canonical 稳定 = 最强那行)。情绪相位拿 canonical 写新边,但查历史边、查升格标记时遍历同类型的全部别名 id。同名择优单列 ambiguous,不进 dropped。顺带修了面板「N 条证据」把已永久删除的 id 也算进去的问题。

4. 预取等待上限按 embedding 路线分档(#786)

PREFETCH_WAIT_MS 原写死 250ms。本地 / ollama 保持 250ms(行为逐字节不变),远程 "openai" 放宽到 1200ms;新增 prefetchWaitMs(0–5000,默认 0 = 按路线自动),给正数就压过判据。等待的触发条件没动——只在「这一帧确实没向量、且确有一趟预取在飞」时才等。

发布准备

本 PR 由 release-prep.yml 机器产出(版本号 + 测试徽章 + CHANGELOG 节搬运),人工只补了这份描述。工作流开 PR 那步因仓库未开 Allow GitHub Actions to create and approve pull requests 失败,分支已推上去,此 PR 手工创建。

磁带上 SECURITY.md 支持表核对过:仍是 0.17.x ✅ Active,本次是同 minor 的 patch,不需要移动表。

合并后推 v0.17.2 tag 即自动发布。

闭 #784、#786。

Summary by CodeRabbit

  • 文档
    • 更新发布记录,概述远程 embedding 预取等待、情绪边合并、画像事实筛选及后台 LLM 调用标识的调整。
    • 更新 README 中的测试数量说明。
  • 版本
    • 版本号更新至 0.17.2。

机械部分已由 scripts/release-prep.mjs 完成。合并前还需要人来写:

- [ ] dsh-mneme/CHANGELOG.md 新节里的条目(现在只有一条「- (待填)」)
- [ ] 两个 README 里新占位行的主题描述
- [ ] 根 README 的「📰 最近更新」/「📰 Recent updates」段落的头条(现在是标题式散文,不是表格)
- [ ] 跨 minor 时确认 README 路线图上新 minor 行的主题(占位行只写了「(待填)」)
- [ ] 跨 minor 时把 SECURITY.md 中英两张支持版本表挪一格(活跃开发 / 尽力维护 / 不支持三段一起挪,含停止维护那段通知)
Copilot AI lite review requested due to automatic review settings November 26, 2026 21:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

软件包版本更新至 0.17.2,CHANGELOG 新增对应发布记录。README 中的测试数量从 3753 更新为 3797。

Changes: 发布元数据

Layer / File(s) Summary
版本与发布记录
dsh-mneme/package.json, dsh-mneme/CHANGELOG.md
软件包版本号更新至 0.17.2。CHANGELOG 新增该版本的发布记录,列出四项变更。
测试数量文档
README.md, dsh-mneme/README.md
README 中的测试徽章、源码结构说明和开发步骤中的测试数量更新为 3797。

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related issues

  • slow-stack/mneme#784:该 issue 描述的 affective_context 边实体 ID 漂移及 evidenceCount 统计问题,与 CHANGELOG 所述的情绪实体解析和证据计数变更相符。

Suggested reviewers: heptaspirit, anans-amarre

Merge Risk: Minimal · up to 0ae59 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 标题“chore(release): v0.17.2”指明了本 PR 的主要变更,即发布 v0.17.2 版本。变更集包含 package.json 版本号从 0.17.1 更新为 0.17.2、CHANGELOG 新增 0.17.2 记录以及 README 测试数量徽章更新,与标题一致。标题符合 Conventional Commits 格式,简洁明确。但标题未说明发布中包含的具体修复内容(LL…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

标题“chore(release): v0.17.2”指明了本 PR 的主要变更,即发布 v0.17.2 版本。变更集包含 package.json 版本号从 0.17.1 更新为 0.17.2、CHANGELOG 新增 0.17.2 记录以及 README 测试数量徽章更新,与标题一致。标题符合 Conventional Commits 格式,简洁明确。但标题未说明发布中包含的具体修复内容(LLM 用途标识、画像事实、情绪实体合并、预取等待),因此仅为部分覆盖发布的实质内容,但仍属于主要变更的真实描述。

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1da2214 and 0ae59b9.

Files ignored due to path filters: 1

  • dsh-mneme/package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
Files selected for processing: 4

  • README.md
  • dsh-mneme/CHANGELOG.md
  • dsh-mneme/README.md
  • dsh-mneme/package.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@modusensus
modusensus merged commit 3fb478c into main Nov 26, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants