solopup-memory

原话来源离线运行记录 / Offline source-recall receipt

这是实际执行的确定性机制演示,输入为虚构项目约定,审查回复由测试桩固定批准。它不是用户证言、真实模型结果或实际 DSH 宿主验收。

环境与复现

在源码目录运行,不需要 DSH 安装、账户、网络或付费模型:

node scripts/demo-source-recall.mjs
node scripts/demo-source-recall.mjs --json

每次运行创建临时 DSH_HOME 和两个带 .dsh-root 标记的虚构项目,结束后清理。子进程环境采用现有探针白名单,不继承父进程账户、凭据或 NODE_OPTIONS。不会读取或写入真实记忆库。

实际输出摘要

synthetic user: 记住:本项目的交付说明统一用中文。
memory_write: recorded (scope=project, meaning=decision)
fresh process / memory_search("交付说明"): 1 hit (scope=project)
current text: - [project] 本项目的交付说明统一用中文 — 索引摘要
history source: synthetic-demo-write:1; quote: 记住:本项目的交付说明统一用中文。
other project / current + history: 0 + 0 hits
  1. 写入进程向脚本化宿主提交虚构用户消息和 memory_write 调用事件,执行生产工具处理函数。原有来源、范围和格式检查仍然执行;仅模型审查回复是固定的 supported 测试桩。实际结果为 recorded。
  2. 写入进程退出后,同项目的新 Node 进程使用新 session ID,不重放旧消息,调用生产 memory_search。当前视图命中项目摘要;显式 view: "history" 的另一次调用返回原话,以及 sourceSessionId 和 sourceMessageIds。
  3. 另一项目再开新 Node 进程,当前与历史视图均为零命中。这只证明本次虚构条目的项目过滤,不能把一般空结果当成记忆从未存在。
  4. 脚本对写入状态、命中数、项目归属、逐字原话和消息来源做断言。执行失败时以非零退出码结束,不输出成功摘要。

没有验证什么

真实模型和宿主的后续验收请按换聊天验收执行,并把实际结果与本记录分开。

English summary

Measured offline mechanics run with synthetic data, production tool handlers and a scripted host/validator. Three separate Node processes exercise write, same-project recall and other-project filtering. The reader processes receive no old conversation. Current search returns the effective summary; an explicit history query returns the original quote and source identity. This does not test real DSH registration, real-model decisions, natural-dialogue fresh-chat recall or sustained reliability. The full JSON receipt above preserves the actual tool results.