This repository was archived by the owner on Nov 18, 2026. It is now read-only.
Repository navigation
Conversation
added 3 commits
November 10, 2026 23:43
soul/people/rooms 三层共享记忆 + 跨会话消息日志 + 23:30 日记;隐私规则:私聊来源不进群、群来源带标注、日记默认仅主人私聊。含此前本地未提交的改动(DNS 预热、角色卡、presets 等)。
桌面版每次启动换随机 loopback 端口,配置里的 dsh.baseUrl 过期后桥接一直显示 DSH 未连接。现在启动时与连不上时都会枚举 DeepSeek Harness.exe 自己监听的端口并用 agentPresets/list 验证,命中后热切换。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
src/memory-world.mjs:跨会话「世界记忆」内核——soul(我是谁)/ people(对方是谁)/ rooms(这个群是什么)三类条目 + 每日日记,写入按预算裁剪,读取按injectDays取最近几天。src/bridge.js接入:启动时加载记忆、每个回合结束后异步沉淀、每天 23:30 生成日记,漏了会按catchUpDays补写。config.example.json新增socialV2.memory(budget / diary),docs/memory.md写清结构与调参。test/memory-world.test.mjs:记忆内核的 14 个回归用例,已加进scripts/test-audit.mjs清单。cfg.dsh.baseUrl(配合已有的autoDiscoverPort)为什么
想让鱼「记得住人」。之前每个会话都是新的,同一个人隔两天再来,它不记得上次聊到哪、对方在意什么;群里发生过的事也留不下来。世界记忆把「人」和「房间」从单次会话里提出来,日记再把每天压成一小段可回看的东西。
端口那两个修复是实际踩到的:DSH 桌面版升级/重启后换了端口,桥还在连旧地址,
bridge.log里只有一句连接失败,QQ 侧表现为「发消息完全没反应」;排查半天才发现是端口漂了,所以让它自己找回来。怎么验证的
说明:两个失败在本机 rebase 前的基线上同样失败,与本次改动无关——
test-audit-setup.mjs:进程崩溃0xC0000409(STATUS_STACK_BUFFER_OVERRUN),rebase 前后一致test-voice-system.mjs:本机没有../voice-tool/,脚本自己打印「跳过,不是通过」另外:
node --check覆盖全部改动文件,无语法错误node --test test/memory-world.test.mjs→ 14/14reserved2模式启动,控制台 3100 起来、DSH 事件流接上、睡眠与主动发言定时器正常恢复;记忆文件写入state/后重启能读回node scripts/privacy-scan.mjs→ 未发现敏感信息自查
npm run test:audit,结果写在上面(本机 56/58,两项环境性失败已说明)npm run privacy-scan(未发现敏感信息)scripts/test-audit.mjs的清单state/docs/破坏性变更 / 需要使用者做什么
新增
socialV2.memory配置块,不配置也按默认生效(enabled: true,每天 23:30 写一篇日记,正文约 140 字)。socialV2.memory.enabled: false(或只关日记socialV2.memory.diary.enabled: false)config.json其他字段,也不用重启 DSH,重启桥接即可加载