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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +32 -23
  3. 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
- 经过裁决才能进入上下文。有界(默认 ≤3 / 1200 字符)、全程可审计、
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
- Local long-term memory for DeepSeek Harness **retrieved injected**:
16
- every recall passes CBDC (Claim Belief Decision Consumption)
17
- authority gating before it can enter context. SQLite-only, bounded
18
- (≤3 claims / 1200 chars by default), auditable, no extra model call.
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.1`。目标 Harness:`0.1.0-rc.6`,Node.js `>=22.5`。
27
+ 当前版本:`0.3.2`。目标 Harness:`0.1.0-rc.6`,Node.js `>=22.5`。
21
28
 
22
29
  ## v1 能力
23
30
 
24
- - SQLite + FTS5 本地存储,不调用 embedding 或外部记忆 API。
25
- - 双通道召回:少量可信全局偏好/约束组成记忆胶囊,其余记忆通过
26
- 英文词项、中文二元词组、轻量同义线索和标签触发。
27
- - **写时触发词**:落库时抽取归一化词项(繁→简、全角→半角、停用词过滤),
28
- 同义词组双向折叠(如 简洁/concise、部署/deploy),换一种说法也能召回。
29
- - **反馈回灌**:`/memory feedback <id> helped` 会把当次查询的区分性词项
30
- 学进该条记忆的触发词(只存词项、不存查询原文),越用越准,全部可在
31
- `/memory explain` 里审计。
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
- - 可解释的 `use`、`verify`、`ignore` 决策与完整检索/注入审计。
35
- - `shadow`、`assist`、`enforce` 三种运行模式,默认保守 `assist`。
36
- - 默认最多注入 3 条、1200 字符;不增加第二次模型调用。
37
- - API Key、Token、密码和私钥样式内容在落库前拒绝。
38
- - 数据库或策略异常时不阻断 Agent,只省略本次记忆注入。
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.1
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.1",
4
- "description": "Retrieved ≠ injected: CBDC-gated local long-term memory for DeepSeek Harness (SQLite + FTS5, bounded recall, auditable, no extra model call)",
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",