dsh-memory-gate 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +32 -23
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.2 - 2026-08-14
|
|
4
|
+
|
|
5
|
+
- Docs-only release: reposition from storage ("SQLite + FTS5 memory") to
|
|
6
|
+
usage ("retrieved ≠ injected" — use/verify/ignore decisions, feedback
|
|
7
|
+
learning, audit) in the README, package description, and repository
|
|
8
|
+
description. Storage details move to a technical footnote.
|
|
9
|
+
|
|
3
10
|
## 0.3.1 - 2026-08-14
|
|
4
11
|
|
|
5
12
|
- Numbered feedback UX: injected claims are labeled `#1`, `#2`, … inside the
|
package/README.md
CHANGED
|
@@ -4,38 +4,47 @@
|
|
|
4
4
|
> v0.2.0 起更名为 **dsh-memory-gate**,CBDC 保留为机制名(见下)。
|
|
5
5
|
> 旧仓库地址仍会重定向到本仓库。
|
|
6
6
|
|
|
7
|
-
DeepSeek Harness
|
|
7
|
+
DeepSeek Harness 的长期记忆插件,只回答一个问题:**记忆记住了,然后呢?**
|
|
8
8
|
它把稳定信息保存为可撤销的 Claim,并在每次模型调用前执行 CBDC
|
|
9
|
-
(Claim → Belief → Decision → Consumption
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
(Claim → Belief → Decision → Consumption)权威门控——每条记忆先经裁决
|
|
10
|
+
(`use` / `verify` / `ignore`),才决定能否进入上下文;使用后的反馈
|
|
11
|
+
(helped/harmful)反向更新置信度,越用越准,全程可审计。默认注入
|
|
12
|
+
≤3 条 / 1200 字符,不增加第二次模型调用。
|
|
13
|
+
|
|
14
|
+
(存储层:本地 SQLite + FTS5,无 embedding、无外部记忆 API。)
|
|
12
15
|
|
|
13
16
|
这是社区插件,不属于 DeepSeek 官方项目。许可证为 [MIT](LICENSE)。
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
Long-term memory for DeepSeek Harness that cares about how memory is
|
|
19
|
+
**used**, not just stored — **retrieved ≠ injected**: every recall passes
|
|
20
|
+
CBDC (Claim → Belief → Decision → Consumption) authority gating and lands
|
|
21
|
+
as an explainable `use` / `verify` / `ignore` decision before it can enter
|
|
22
|
+
context. Post-use feedback updates belief, so memory gets more accurate
|
|
23
|
+
over time — all auditable, bounded (≤3 claims / 1200 chars by default),
|
|
24
|
+
no extra model call. (Local SQLite + FTS5 storage; no embeddings, no
|
|
25
|
+
external memory API.)
|
|
19
26
|
|
|
20
|
-
当前版本:`0.3.
|
|
27
|
+
当前版本:`0.3.2`。目标 Harness:`0.1.0-rc.6`,Node.js `>=22.5`。
|
|
21
28
|
|
|
22
29
|
## v1 能力
|
|
23
30
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
- **使用前裁决**:每条记忆注入前过 CBDC(Claim → Belief → Decision →
|
|
32
|
+
Consumption)权威门控,输出可解释的 `use` / `verify` / `ignore` 决策。
|
|
33
|
+
- **使用中克制**:默认最多注入 3 条、1200 字符;全局偏好走 capsule
|
|
34
|
+
通道特权注入;不增加第二次模型调用。
|
|
35
|
+
- **使用后学习**:`/memory ok`(或 `feedback <#n> helped`)把当次查询的
|
|
36
|
+
区分性词项学进触发词(只存词项、不存查询原文),harmful/stale 降低
|
|
37
|
+
置信度并触发隔离——越用越准,`/memory explain` 全程可审计。
|
|
38
|
+
- **三种运行模式**:`shadow`(只审计零注入)、`assist`(默认,注入 use +
|
|
39
|
+
标出 verify)、`enforce`(只注入高置信)——按场景切换"怎么用"。
|
|
40
|
+
- 双通道召回:少量可信全局偏好/约束组成记忆胶囊,其余记忆经词项触发。
|
|
32
41
|
- session、workspace、global 三种作用域;workspace 路径只保存哈希键。
|
|
33
42
|
- 显式 `/memory` 管理命令和保守的中英文自动提取。
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
|
|
44
|
+
技术规格:本地 SQLite + FTS5 存储,不调用 embedding 或外部记忆 API;
|
|
45
|
+
写时触发词含繁→简、全角→半角归一与双语同义折叠;API Key、Token、密码
|
|
46
|
+
和私钥样式内容在落库前拒绝;数据库或策略异常时不阻断 Agent,只省略
|
|
47
|
+
本次记忆注入。
|
|
39
48
|
|
|
40
49
|
## 安装
|
|
41
50
|
|
|
@@ -60,7 +69,7 @@ dsh web
|
|
|
60
69
|
也可以用 Git 地址安装并锁定版本:
|
|
61
70
|
|
|
62
71
|
```bash
|
|
63
|
-
dsh plugin --profile web add git+https://github.com/GIT121995/dsh-memory-gate.git#v0.3.
|
|
72
|
+
dsh plugin --profile web add git+https://github.com/GIT121995/dsh-memory-gate.git#v0.3.2
|
|
64
73
|
```
|
|
65
74
|
|
|
66
75
|
卸载:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-memory-gate",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Retrieved ≠ injected: CBDC-gated
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "Retrieved ≠ injected: CBDC-gated memory for DeepSeek Harness — decides how memory is USED (use/verify/ignore decisions, feedback learning, full audit); local SQLite + FTS5, bounded, no extra model call",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|