You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
形态上倾向先走 GET /api/dsh-mneme/memory/provenance?memoryId=(面板与外部 API 同一份实现);面板侧挂在哪里由维护者定。distillRecords.enabled=false 时按既有习惯返回空或 404,依附既有开关,不新增。上面两条是形态建议,不是实现要求。
考虑过的替代方案
直接暴露 distill_records 全表(连 text 一起):数据面积与敏感度最大,且没有解决「从记忆回去」这个真实入口,先不做。
Activity
modusensus commentedon Oct 20, 2026
现状(2026-10-21 对照
main实测)读方法已经有了,但没有 HTTP 出口——差最后一段接线。
dsh-mneme/src/service.js:2600:provenanceFor: (memoryId) => store.provenanceFor(memoryId)—— 方法存在(随 [feature] 蒸馏窗口原始记录留存 + 记忆级溯源:把蒸馏从「替换」降级为「叠加索引」 #399 落地,写+读都有)。dsh-mneme/src/api.js:memory/provenance路由 0 命中;distill_records在api.js里 0 命中。所以现在「这条记忆是哪次蒸馏带进来的」在库里有答案、在代码里能查,但外部(面板、standalone API、脚本)拿不到。
还缺什么
api.js与api-standalone.js各加一条只读路由(建议GET /api/dsh-mneme/memory/provenance?id=<id>),响应至少含distill_run_id/run_type/created_at/trigger_source;dream写入的记忆断言distill_run_id非空,对一条memory_save写入的断言为null(而不是报错)。接手建议
这是纯出口的活:
service.js不用改,只加路由 + 面板一行。没有设计分歧,可以直接提 PR。