这是实际执行的确定性机制演示,输入为虚构项目约定,审查回复由测试桩固定批准。它不是用户证言、真实模型结果或实际 DSH 宿主验收。
2026-11-07T11:00:13.635Zv24.22.10.21.0-beta.4。本次文档和目录修正没有发布新的 npm 版本。2bdcc7a451df1b7519674997ba9975ef6ca3e435;本次没有修改运行时模块。9d666a62c85363172e71a6d196d35fb2e1d52c715b8fb653777294885a057326在源码目录运行,不需要 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
memory_write 调用事件,执行生产工具处理函数。原有来源、范围和格式检查仍然执行;仅模型审查回复是固定的 supported 测试桩。实际结果为 recorded。memory_search。当前视图命中项目摘要;显式 view: "history" 的另一次调用返回原话,以及 sourceSessionId 和 sourceMessageIds。真实模型和宿主的后续验收请按换聊天验收执行,并把实际结果与本记录分开。
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.