@chenhw7/dsh-memory 0.7.0 → 0.8.0

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 (77) hide show
  1. package/README.i18n.yaml +2 -0
  2. package/README.md +8 -7
  3. package/{README.zh-CN.md → README.zh.md} +7 -6
  4. package/cordis.patch.yml +5 -1
  5. package/lib/benchmark/index.d.ts +24 -7
  6. package/lib/benchmark/index.d.ts.map +1 -1
  7. package/lib/benchmark/index.js +55 -7
  8. package/lib/benchmark/index.js.map +1 -1
  9. package/lib/client/index.js +37 -9
  10. package/lib/context/conflict.d.ts +23 -10
  11. package/lib/context/conflict.d.ts.map +1 -1
  12. package/lib/context/conflict.js +59 -20
  13. package/lib/context/conflict.js.map +1 -1
  14. package/lib/context/index.d.ts.map +1 -1
  15. package/lib/context/index.js +12 -5
  16. package/lib/context/index.js.map +1 -1
  17. package/lib/context/policy.d.ts +12 -0
  18. package/lib/context/policy.d.ts.map +1 -1
  19. package/lib/context/policy.js +22 -4
  20. package/lib/context/policy.js.map +1 -1
  21. package/lib/index.d.ts +23 -1
  22. package/lib/index.d.ts.map +1 -1
  23. package/lib/index.js +20 -0
  24. package/lib/index.js.map +1 -1
  25. package/lib/notes/cleanup.d.ts +7 -1
  26. package/lib/notes/cleanup.d.ts.map +1 -1
  27. package/lib/notes/cleanup.js +17 -12
  28. package/lib/notes/cleanup.js.map +1 -1
  29. package/lib/notes/index.d.ts +3 -1
  30. package/lib/notes/index.d.ts.map +1 -1
  31. package/lib/notes/index.js +8 -3
  32. package/lib/notes/index.js.map +1 -1
  33. package/lib/notes/scope.d.ts +5 -5
  34. package/lib/notes/scope.js +5 -5
  35. package/lib/remote/index.d.ts +67 -6
  36. package/lib/remote/index.d.ts.map +1 -1
  37. package/lib/remote/index.js +94 -9
  38. package/lib/remote/index.js.map +1 -1
  39. package/lib/remote/typert.remote-client.d.ts +8 -1
  40. package/lib/remote/typert.remote-client.js +6 -0
  41. package/lib/remote/types.d.ts +1 -1
  42. package/lib/remote/types.d.ts.map +1 -1
  43. package/lib/review/accumulator.d.ts +1 -1
  44. package/lib/review/accumulator.js +1 -1
  45. package/lib/review/dedup.d.ts +23 -15
  46. package/lib/review/dedup.d.ts.map +1 -1
  47. package/lib/review/dedup.js +34 -83
  48. package/lib/review/dedup.js.map +1 -1
  49. package/lib/review/extract.d.ts.map +1 -1
  50. package/lib/review/extract.js +5 -2
  51. package/lib/review/extract.js.map +1 -1
  52. package/lib/review/index.d.ts.map +1 -1
  53. package/lib/review/index.js +14 -9
  54. package/lib/review/index.js.map +1 -1
  55. package/lib/scanner.d.ts +2 -0
  56. package/lib/scanner.d.ts.map +1 -1
  57. package/lib/scanner.js +22 -0
  58. package/lib/scanner.js.map +1 -1
  59. package/lib/store/bm25.d.ts +75 -1
  60. package/lib/store/bm25.d.ts.map +1 -1
  61. package/lib/store/bm25.js +162 -17
  62. package/lib/store/bm25.js.map +1 -1
  63. package/lib/store/cross-process.d.ts +155 -0
  64. package/lib/store/cross-process.d.ts.map +1 -0
  65. package/lib/store/cross-process.js +254 -0
  66. package/lib/store/cross-process.js.map +1 -0
  67. package/lib/store/index.d.ts +89 -7
  68. package/lib/store/index.d.ts.map +1 -1
  69. package/lib/store/index.js +466 -89
  70. package/lib/store/index.js.map +1 -1
  71. package/lib/tool/index.d.ts +17 -5
  72. package/lib/tool/index.d.ts.map +1 -1
  73. package/lib/tool/index.js +235 -21
  74. package/lib/tool/index.js.map +1 -1
  75. package/lib/types.d.ts +31 -2
  76. package/lib/types.d.ts.map +1 -1
  77. package/package.json +11 -2
@@ -0,0 +1,2 @@
1
+ README.md: b752d91633d44b34824471af2510626d0513ab8f
2
+ README.zh.md: 0ecc22400acd99ce08004e6b6e2f3280d8688454
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  This is a **self-contained single package** (not a multi-package workspace). It depends on dsh core services as **peer dependencies** (provided by the dsh installation you already have) and ships its own `cordis.patch.yml` so `dsh plugin add` activates it as one profile layer.
6
6
 
7
- **English** | [简体中文](README.zh-CN.md)
7
+ **English** | [简体中文](README.zh.md)
8
8
 
9
9
  ## Interactive Deep-Dive
10
10
 
@@ -34,8 +34,8 @@ Your dsh agent normally forgets everything when you close a session. This bundle
34
34
 
35
35
  - **Persistent memory** — facts, preferences, and conventions stored in a durable KV backend with audit logging.
36
36
  - **Three-layer scoping** — `global` (cross-project), `project` (per-repo, auto-detected), and `user` (cross-project profile).
37
- - **Eight model-facing tools** — `memory_search`, `memory_add`, `memory_replace`, `memory_remove`, `memory_list`, `memory_get`, `memory_pin`, `memory_unpin`.
38
- - **BM25 relevance search** — dependency-free Okapi BM25 over CJK-aware tokenization (Latin word tokens; CJK unigrams + bigrams), pinned entries surfaced ahead of equal-relevance matches. Retrieval quality is not vibes: a fixed golden set (24 entries × 24 queries, English + Chinese) is evaluated in CI — success@5 = 100%, MRR = 0.958 — with injection-cost numbers per prompt mode (see [docs/INDEX_MODE_EVALUATION.zh-CN.md](docs/INDEX_MODE_EVALUATION.zh-CN.md)).
37
+ - **Nine model-facing tools** — `memory_search`, `memory_add`, `memory_replace`, `memory_remove`, `memory_list`, `memory_get`, `memory_pin`, `memory_unpin`, `memory_forget`.
38
+ - **BM25 relevance search** — dependency-free Okapi BM25 over CJK-aware tokenization (Latin word tokens; CJK unigrams + bigrams), pinned entries surfaced ahead of equal-relevance matches. Retrieval quality is not vibes: a fixed golden set (35 entries × 35 query sets, English + Chinese) is evaluated in CI — success@5 = 100%, MRR = 0.902 — with injection-cost numbers per prompt mode (see [TECH_DESIGN §7.9](docs/TECH_DESIGN.md)).
39
39
  - **Automatic learning** — a projection accumulator watches the conversation for explicit remember-intent, corrections, and *verified failure streaks* (repeated same-signature tool failures resolved by a success), then runs LLM extraction when enough candidates accumulate. Admission rules exclude anything the repository already records (code structure, git history, fixed-bug narratives), and model-handwritten date prefixes are stripped so timestamps always come from the program.
40
40
  - **Project notes prompt section** — coding conventions and a pitfall log render into every session's system prompt (`project-notes` section). Nothing is written into your repository: memory lives entirely in the host-side store, is managed in the Memory settings UI, and upgrades automatically clean up notes files left by ≤0.5.x installs.
41
41
  - **Dedup pipeline** — two-stage deduplication (stop-word-filtered Jaccard prefilter + optional LLM judge with bounded merges) prevents near-duplicate accumulation; a low-frequency curator pass re-summarizes oversized entries.
@@ -223,7 +223,7 @@ Every namespace resolves in layers: schema defaults → the composition `config:
223
223
 
224
224
  | Setting | Default | Meaning |
225
225
  |---|---|---|
226
- | `memoryMode` | `policy-only` | `full`: inject memory content + guidance. `policy-only`: inject guidance only, model searches on demand. `custom`: inject user-defined policy text. `off`: no injection. `index`: inject an existence index (one line per entry) so the model can see what is stored and route to `memory_get`/`memory_search`. |
226
+ | `memoryMode` | `index` | `full`: inject memory content + guidance. `policy-only`: inject guidance only, model searches on demand. `custom`: inject user-defined policy text. `off`: no injection. `index`: inject an existence index (one line per entry) so the model can see what is stored and route to `memory_get`/`memory_search`. |
227
227
  | `memoryPolicyCustomText` | — | Custom policy text used when `memoryMode` is `custom`. |
228
228
  | `memoryCharLimit` | `5000` | Character budget for the frozen per-session memory snapshot injected in `full` mode (`0` = no content). |
229
229
  | `memoryMaxEntries` | `20` | Entry-count cap for the same frozen snapshot (`0` = no limit). The snapshot ends with a `≈N tokens` estimate so injection cost stays visible. |
@@ -267,7 +267,7 @@ memory:
267
267
  maxSearchResults: 100
268
268
  ```
269
269
 
270
- By default, extraction, judging, and curation use the **same model the user is chatting with** — the session's provider/model route. To run them on a dedicated cheaper model, set `extractionModelProvider` and `extractionModelModel` (in the composition config or the UI — the UI offers dropdowns fed by the host model catalog):
270
+ By default, extraction, judging, and curation use the **same model the user is chatting with** — the session's provider/model route. To run them on a dedicated cheaper model, set `extractionModelProvider` and `extractionModelModel` (in the composition config or the UI — the UI offers dropdowns fed by the host model catalog). Naming a provider here sends conversation excerpts and stored entries to it, so pick one you trust with conversation content; leaving both empty adds no data path beyond the model you are already talking to:
271
271
 
272
272
  ```yaml
273
273
  memory-review:
@@ -280,7 +280,7 @@ Example `$DSH_HOME/settings.yaml` (both namespaces):
280
280
 
281
281
  ```yaml
282
282
  memory:
283
- memoryMode: policy-only
283
+ memoryMode: index
284
284
  memoryPolicyCustomText: ""
285
285
  memoryCharLimit: 5000
286
286
  memoryMaxEntries: 20
@@ -341,7 +341,7 @@ The bundle inserts seven rows over `dsh-base`, each pointing at this package's o
341
341
  |---|---|---|
342
342
  | `memory-root` | `@chenhw7/dsh-memory` | No-op root entry for client-module scanner discovery |
343
343
  | `memory-store` | `@chenhw7/dsh-memory/store` | Opens the `memory` domain (entries + audit + suggestion-queue tables), registers `ctx.memory` (BM25 search + two-tier decay) |
344
- | `tool-memory` | `@chenhw7/dsh-memory/tool` | Eight model-facing tools (confirm-mode writes queue as proposals) |
344
+ | `tool-memory` | `@chenhw7/dsh-memory/tool` | Nine model-facing tools (confirm-mode writes queue as proposals) |
345
345
  | `memory-review` | `@chenhw7/dsh-memory/review` | Automatic extraction (projection + failure-streak pitfalls + flush + dedup + janitor + curator + human-review queue) and the `memory-review` settings namespace |
346
346
  | `memory-notes` | `@chenhw7/dsh-memory/notes` | Project-notes prompt projection (render conventions/pitfalls into the `project-notes` section; no repo files), registers `ctx.projectNotes`; cleans up ≤0.5.x file-export artifacts on session start |
347
347
  | `memory-context` | `@chenhw7/dsh-memory/context` | System-prompt injection (`memory` @90 + `project-notes` @91), step-level auto recall, owns the `memory` settings namespace |
@@ -369,6 +369,7 @@ The bundle inserts seven rows over `dsh-base`, each pointing at this package's o
369
369
  - **No semantic/vector retrieval** — `memory_search` is BM25 lexical ranking over structured KV entries (Latin word tokens, CJK unigrams + bigrams), not embeddings; synonyms that share no tokens will not match.
370
370
  - **Extraction quality tracks the session model** — review/flush/curator reuse the session's routed provider/model unless explicitly overridden.
371
371
  - **Mid-session extractions stay out of the prompt until the next compaction or session** — the injected snapshot is frozen for KV-cache stability; step-level auto recall (opt-in) covers per-step freshness instead.
372
+ - **Memory read/write is gated only at the transport layer** — the management UI's RPC methods carry no per-method authorization, so any host the dsh host admits through its `trustedHosts` setting can read and write the whole memory store, and written content reaches later sessions' system prompts. Keep the fence at loopback unless every admitted host is trusted ([threat model](docs/TECH_DESIGN.md)).
372
373
  - **dsh is in developer preview** — breaking changes are expected; this bundle's peer dependency ranges track the dsh release line.
373
374
  - **Alpha channel (0.1.2-alpha.x) required** — the bundle uses the 0.1.2-alpha settings API (`ctx.settings.installSection`, host-only projection registrations) and declares `^0.1.2-alpha.2` peers. The rc (`next`) line still ships the removed module-level `installSettingsSection` helper and cannot load this bundle; install dsh from the `alpha` dist-tag. The client bundle likewise targets the alpha client packages (`@deepseek-ai/dsh-client-store` / `dsh-client-ui-settings`), which replaced the removed `dsh-client-runtime`.
374
375
 
@@ -31,8 +31,8 @@
31
31
 
32
32
  - **持久化记忆** — 将事实、偏好和约定存储在持久的 KV 后端中,带审计日志。
33
33
  - **三层作用域** — `global`(跨项目)、`project`(按仓库自动检测)、`user`(跨项目 profile)。
34
- - **八个模型可用工具** — `memory_search`、`memory_add`、`memory_replace`、`memory_remove`、`memory_list`、`memory_get`、`memory_pin`、`memory_unpin`。
35
- - **BM25 相关性检索** — 零依赖的 Okapi BM25,CJK 感知分词(Latin 逐词;CJK 一元 + 相邻二元 bigram),固定(pin)条目在同等相关时优先靠前。检索质量不是玄学:固定 golden set(24 条 × 24 组查询,中英混合)在 CI 中实测——success@5 = 100%、MRR = 0.958——并附各注入模式的成本数字(见 [docs/INDEX_MODE_EVALUATION.zh-CN.md](docs/INDEX_MODE_EVALUATION.zh-CN.md))。
34
+ - **九个模型可用工具** — `memory_search`、`memory_add`、`memory_replace`、`memory_remove`、`memory_list`、`memory_get`、`memory_pin`、`memory_unpin`、`memory_forget`。
35
+ - **BM25 相关性检索** — 零依赖的 Okapi BM25,CJK 感知分词(Latin 逐词;CJK 一元 + 相邻二元 bigram),固定(pin)条目在同等相关时优先靠前。检索质量不是玄学:固定 golden set(35 条 × 35 组查询,中英混合)在 CI 中实测——success@5 = 100%、MRR = 0.902——并附各注入模式的成本数字(见 [TECH_DESIGN §7.9](docs/TECH_DESIGN.zh.md))。
36
36
  - **自动学习** — 投影累加器观察对话中的显式记忆意图、修正语句以及*已验证的失败序列*(同签名连续失败后最终成功),候选足够多时运行 LLM 提取。准入规则排除一切"仓库已记录的内容"(代码结构、git 历史、已修复 bug 的经过),模型手写的日期前缀会被剥离,时间戳永远由程序盖戳。
37
37
  - **项目笔记 prompt 段落** — 编码约定与踩坑日志渲染进每次会话的 system prompt(`project-notes` 段)。不向仓库写入任何文件:记忆完全保存在 host 侧存储中,在 Memory 设置 UI 里管理;升级时自动清理 ≤0.5.x 留下的笔记文件。
38
38
  - **去重管线** — 两阶段去重(停用词过滤的 Jaccard 预过滤 + 可选 LLM 裁决,合并长度有上限),防止近似重复条目累积;低频 curator pass 会将过长条目改写为简洁单行。
@@ -220,7 +220,7 @@ dsh web
220
220
 
221
221
  | 设置 | 默认值 | 说明 |
222
222
  |---|---|---|
223
- | `memoryMode` | `policy-only` | `full`:注入记忆内容 + 指引;`policy-only`:只注入指引,模型按需搜索;`custom`:注入用户自定义策略文本;`off`:不注入;`index`:注入存在性索引(每个条目一行),模型可看见存了什么并路由到 `memory_get`/`memory_search`。 |
223
+ | `memoryMode` | `index` | `full`:注入记忆内容 + 指引;`policy-only`:只注入指引,模型按需搜索;`custom`:注入用户自定义策略文本;`off`:不注入;`index`:注入存在性索引(每个条目一行),模型可看见存了什么并路由到 `memory_get`/`memory_search`。 |
224
224
  | `memoryPolicyCustomText` | — | 当 `memoryMode` 为 `custom` 时使用的自定义策略文本。 |
225
225
  | `memoryCharLimit` | `5000` | 会话内冻结记忆快照注入 `full` 模式时的字符预算(`0` = 不注入内容)。 |
226
226
  | `memoryMaxEntries` | `20` | 同一冻结快照的条目数上限(`0` = 无限制)。快照尾部附 `≈N tokens` 估算,注入成本始终可见。 |
@@ -264,7 +264,7 @@ memory:
264
264
  maxSearchResults: 100
265
265
  ```
266
266
 
267
- 默认情况下,提取、去重裁决和 curation 使用**与用户对话相同的模型**——即会话的 provider/model 路由。若要在专用廉价模型上运行,设置 `extractionModelProvider` 和 `extractionModelModel`(在组合配置或 UI 中均可——UI 提供由宿主模型目录驱动的下拉框):
267
+ 默认情况下,提取、去重裁决和 curation 使用**与用户对话相同的模型**——即会话的 provider/model 路由。若要在专用廉价模型上运行,设置 `extractionModelProvider` 和 `extractionModelModel`(在组合配置或 UI 中均可——UI 提供由宿主模型目录驱动的下拉框)。在此指定 provider 会把对话摘录与已存条目发送给它,因此请选择你愿意托付对话内容的一方;两者留空则不会新增任何数据通路,只用你本来就在对话的模型:
268
268
 
269
269
  ```yaml
270
270
  memory-review:
@@ -277,7 +277,7 @@ memory-review:
277
277
 
278
278
  ```yaml
279
279
  memory:
280
- memoryMode: policy-only
280
+ memoryMode: index
281
281
  memoryPolicyCustomText: ""
282
282
  memoryCharLimit: 5000
283
283
  memoryMaxEntries: 20
@@ -338,7 +338,7 @@ memory:
338
338
  |---|---|---|
339
339
  | `memory-root` | `@chenhw7/dsh-memory` | 无操作根条目,供 client-module 扫描器发现 |
340
340
  | `memory-store` | `@chenhw7/dsh-memory/store` | 打开 `memory` 域(entries + audit + 待确认队列三张表),注册 `ctx.memory`(BM25 检索 + 两层衰减) |
341
- | `tool-memory` | `@chenhw7/dsh-memory/tool` | 八个模型可用工具(人审模式下写入改为入队) |
341
+ | `tool-memory` | `@chenhw7/dsh-memory/tool` | 九个模型可用工具(人审模式下写入改为入队) |
342
342
  | `memory-review` | `@chenhw7/dsh-memory/review` | 自动提取(投影 + 失败序列踩坑 + flush + 去重 + janitor + curator + 人审队列),持有 `memory-review` 设置命名空间 |
343
343
  | `memory-notes` | `@chenhw7/dsh-memory/notes` | 项目笔记 prompt 投影(渲染约定/踩坑进 `project-notes` 段落;0.6 起不写仓库文件),注册 `ctx.projectNotes`;会话创建时清理 ≤0.5.x 的文件导出残留 |
344
344
  | `memory-context` | `@chenhw7/dsh-memory/context` | 系统提示注入(`memory` @90 + `project-notes` @91)、步级自动召回,持有 `memory` 设置命名空间 |
@@ -366,6 +366,7 @@ memory:
366
366
  - **无语义/向量检索** — `memory_search` 是对结构化 KV 条目的 BM25 词法排序(Latin 逐词、CJK 一元 + 二元分词),不是 embeddings;不含相同词元的同义表述无法命中。
367
367
  - **提取质量跟随会话模型** — review/flush/curator 复用会话当前路由的 provider/model,除非显式覆盖。
368
368
  - **会话中途的提取在下次压缩或新会话前不会出现在提示里** — 注入快照为 KV-cache 稳定性而冻结;步级自动召回(可选)提供逐步新鲜度。
369
+ - **记忆的读写只在传输层设闸** — 管理 UI 的 RPC 方法没有方法级鉴权,因此任何被 dsh 宿主 `trustedHosts` 放行的主机都能读写整个记忆库,而写入的内容会进入后续会话的 system prompt。除非放行的每台主机都可信,否则把围栏保持在 loopback(见[威胁模型](docs/TECH_DESIGN.zh.md))。
369
370
  - **dsh 仍处于开发者预览阶段** — 可能会有破坏性变更;本 bundle 的 peer dependency 范围跟随 dsh 发布线。
370
371
  - **要求 alpha 渠道(0.1.2-alpha.x)** — 本 bundle 使用 0.1.2-alpha 的 settings API(`ctx.settings.installSection`、host-only 投影注册),peer 范围为 `^0.1.2-alpha.2`。rc(`next`)线仍是旧的模块级 `installSettingsSection` helper,无法加载本 bundle;请从 `alpha` dist-tag 安装 dsh。client bundle 同样对齐 alpha 客户端包(`@deepseek-ai/dsh-client-store` / `dsh-client-ui-settings`),它们取代了已移除的 `dsh-client-runtime`。
371
372
 
package/cordis.patch.yml CHANGED
@@ -44,6 +44,10 @@
44
44
  - id: memory-context
45
45
  name: '@chenhw7/dsh-memory/context'
46
46
 
47
- # @Remote service for the memory management UI (§3.8).
47
+ # @Remote service for the memory management UI (§7.7). The write switch
48
+ # defaults to false (deny by default — see the remote-write-guard Agent
49
+ # Note); this deployment drives the management UI, so it opts in here.
48
50
  - id: memory-remote
49
51
  name: '@chenhw7/dsh-memory/remote-service'
52
+ config:
53
+ remoteWritesEnabled: true
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Recall evaluation baseline (P1-4) and injection-cost comparison (P1-8).
3
3
  *
4
- * A fixed golden-set fixture — 24 topically distinct entries across the three
5
- * scopes (English + CJK), each with one known relevant query — turns "the
6
- * retrieval is strong" from a structural claim into numbers: precision@k,
7
- * recall@k, and MRR over the shipping BM25 search, plus per-mode standing
8
- * injection cost (characters ≈ tokens). Any future retrieval change
9
- * (tokenization, weights, budgets) must run against this baseline first.
4
+ * A fixed golden-set fixture — 35 topically distinct entries across the three
5
+ * scopes (English + CJK; the original 24 plus the wave-3 synonym and inflection
6
+ * slices) with 35 known relevant queries — turns "the retrieval is strong"
7
+ * from a structural claim into numbers: precision@k, recall@k, and MRR over
8
+ * the shipping BM25 search, plus per-mode standing injection cost (characters
9
+ * ≈ tokens). Any future retrieval change (tokenization, weights, budgets) must
10
+ * run against this baseline first.
10
11
  *
11
12
  * Pure module: builds its own store-shaped searcher via a callback, so both
12
13
  * the real DomainMemoryStore (spec) and offline copies can be evaluated.
@@ -35,12 +36,28 @@ export interface GoldenCase {
35
36
  * The fixed memory fixture. Entries are deliberately topically separated so
36
37
  * BM25 can discriminate them; several share a few decoy tokens (e.g. two
37
38
  * entries mention 端口/port) to keep precision honest.
39
+ *
40
+ * Fixture growth history: the original 24 entries (g1–g8, p1–p8, u1–u8) are
41
+ * topically disjoint with keyword-style queries — they measure "can find",
42
+ * not synonym/inflection behavior. Wave-3 retrieval work (conservative Latin
43
+ * stemming, summary indexing) needed adversarial cases, so two groups were
44
+ * APPENDED without touching the original block:
45
+ * - synonym/paraphrase pairs (s1–s4b): the query words never appear verbatim
46
+ * in the entry — recall comes only from the summary field, which is why
47
+ * summary indexing is load-bearing for this slice; s4/s4b are a mirrored
48
+ * pair (zh content + en summary / en content + zh summary) that also pins
49
+ * the summary path's cross-language direction;
50
+ * - Latin inflection pairs (f1–f4): query and content share a stem but not a
51
+ * surface form (test/tests/testing, configure/configuration, build/builds,
52
+ * deploy/deployment) — these miss without conservative stemming.
38
53
  */
39
54
  export declare const GOLDEN_ENTRIES: readonly GoldenEntry[];
40
55
  /**
41
56
  * The golden query table: each query names exactly the entries a correct
42
57
  * search must return within the top-k. Queries mix keyword style ("redis
43
- * 缓存") and question style ("数据库迁移什么时候执行").
58
+ * 缓存"), question style ("数据库迁移什么时候执行"), synonym paraphrase
59
+ * ("凭据 怎么 管理" for the secrets entry), and Latin inflections
60
+ * ("unit tests 怎么跑" against "Component tests ... vitest").
44
61
  */
45
62
  export declare const GOLDEN_CASES: readonly GoldenCase[];
46
63
  /** Minimal search face the evaluator needs (satisfied by MemoryStore.search). */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/benchmark/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,gFAAgF;AAChF,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EA2BhD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,UAAU,EAyB7C,CAAA;AAED,iFAAiF;AACjF,MAAM,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MAAM,CAAA;CAAO,GAC3D,aAAa,CAQf;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAGzD"}
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Recall evaluation baseline (P1-4) and injection-cost comparison (P1-8).
3
3
  *
4
- * A fixed golden-set fixture — 24 topically distinct entries across the three
5
- * scopes (English + CJK), each with one known relevant query — turns "the
6
- * retrieval is strong" from a structural claim into numbers: precision@k,
7
- * recall@k, and MRR over the shipping BM25 search, plus per-mode standing
8
- * injection cost (characters ≈ tokens). Any future retrieval change
9
- * (tokenization, weights, budgets) must run against this baseline first.
4
+ * A fixed golden-set fixture — 35 topically distinct entries across the three
5
+ * scopes (English + CJK; the original 24 plus the wave-3 synonym and inflection
6
+ * slices) with 35 known relevant queries — turns "the retrieval is strong"
7
+ * from a structural claim into numbers: precision@k, recall@k, and MRR over
8
+ * the shipping BM25 search, plus per-mode standing injection cost (characters
9
+ * ≈ tokens). Any future retrieval change (tokenization, weights, budgets) must
10
+ * run against this baseline first.
10
11
  *
11
12
  * Pure module: builds its own store-shaped searcher via a callback, so both
12
13
  * the real DomainMemoryStore (spec) and offline copies can be evaluated.
@@ -17,6 +18,20 @@
17
18
  * The fixed memory fixture. Entries are deliberately topically separated so
18
19
  * BM25 can discriminate them; several share a few decoy tokens (e.g. two
19
20
  * entries mention 端口/port) to keep precision honest.
21
+ *
22
+ * Fixture growth history: the original 24 entries (g1–g8, p1–p8, u1–u8) are
23
+ * topically disjoint with keyword-style queries — they measure "can find",
24
+ * not synonym/inflection behavior. Wave-3 retrieval work (conservative Latin
25
+ * stemming, summary indexing) needed adversarial cases, so two groups were
26
+ * APPENDED without touching the original block:
27
+ * - synonym/paraphrase pairs (s1–s4b): the query words never appear verbatim
28
+ * in the entry — recall comes only from the summary field, which is why
29
+ * summary indexing is load-bearing for this slice; s4/s4b are a mirrored
30
+ * pair (zh content + en summary / en content + zh summary) that also pins
31
+ * the summary path's cross-language direction;
32
+ * - Latin inflection pairs (f1–f4): query and content share a stem but not a
33
+ * surface form (test/tests/testing, configure/configuration, build/builds,
34
+ * deploy/deployment) — these miss without conservative stemming.
20
35
  */
21
36
  export const GOLDEN_ENTRIES = [
22
37
  // ── global (8) ──
@@ -45,11 +60,31 @@ export const GOLDEN_ENTRIES = [
45
60
  { id: 'u6', scope: 'user', content: 'The user dislikes emoji anywhere in commit messages or changelogs' },
46
61
  { id: 'u7', scope: 'user', content: '用户偏好 vim 键位绑定,编辑器与终端都保持一致', category: 'preference' },
47
62
  { id: 'u8', scope: 'user', content: 'Morning standup notes are posted to the team wiki page before ten' },
63
+ // ── synonym/paraphrase slice (s1–s6) ──
64
+ // The query's own words never appear in the content; only the human-written
65
+ // summary carries the query vocabulary. These cases are the acceptance
66
+ // signal for summary indexing: before it, the whole slice misses.
67
+ { id: 's1', scope: 'global', content: '始终先在分支上完成改动,确认流水线通过后再合入主干', summary: '代码合并策略:合并前必须通过 CI 检查', category: 'procedure' },
68
+ { id: 's2', scope: 'global', content: 'Secrets are injected at runtime; never bake credentials into image layers', summary: '凭据管理:禁止把密钥写进镜像', category: 'convention' },
69
+ { id: 's3', scope: 'project', projectName: 'demo-repo', content: 'The checkout flow talks to the payments adapter over the internal gateway', summary: '订单支付走内部网关的 payments 服务', category: 'insight' },
70
+ { id: 's4', scope: 'project', projectName: 'demo-repo', content: 'Cache invalidation happens on the write path, not on a TTL clock', summary: '缓存失效由写路径主动触发而非到期', category: 'insight' },
71
+ { id: 's4b', scope: 'project', projectName: 'demo-repo', content: '缓存键带构建哈希,发布后自动整体刷新', summary: 'Cache entries expire by build hash, invalidating wholesale on deploy', category: 'insight' },
72
+ { id: 's5', scope: 'user', content: '用户喜欢在解释里穿插真实代码片段,而不是纯文字描述', summary: '讲解风格:多贴示例代码少空谈', category: 'preference' },
73
+ { id: 's6', scope: 'user', content: '用户不希望助手重复确认已经明确过的决定', summary: '不要反复追问已拍板的事项', category: 'preference' },
74
+ // ── Latin inflection slice (f1–f4) ──
75
+ // Query and content share a stem but never a surface token — conservative
76
+ // suffix stemming (s/es/ies, ed, ing) is what makes them hit.
77
+ { id: 'f1', scope: 'global', content: 'Component tests run through vitest with jsdom enabled', summary: '组件层的 testing 由 vitest 承担', category: 'convention' },
78
+ { id: 'f2', scope: 'project', projectName: 'demo-repo', content: 'A fresh clone needs one command to configure the local environment', summary: '克隆后第一步是 configuration 脚本', category: 'procedure' },
79
+ { id: 'f3', scope: 'project', projectName: 'demo-repo', content: 'The release pipeline builds artifacts then signs them with cosign', summary: '发版流程:先 builds 再签名', category: 'procedure' },
80
+ { id: 'f4', scope: 'user', content: '用户要求每次改动都附带回滚方案,防止部署失败无法恢复', summary: 'deploy 前必须准备 rollback 预案', category: 'preference' },
48
81
  ];
49
82
  /**
50
83
  * The golden query table: each query names exactly the entries a correct
51
84
  * search must return within the top-k. Queries mix keyword style ("redis
52
- * 缓存") and question style ("数据库迁移什么时候执行").
85
+ * 缓存"), question style ("数据库迁移什么时候执行"), synonym paraphrase
86
+ * ("凭据 怎么 管理" for the secrets entry), and Latin inflections
87
+ * ("unit tests 怎么跑" against "Component tests ... vitest").
53
88
  */
54
89
  export const GOLDEN_CASES = [
55
90
  { query: 'package manager preference pnpm', relevant: ['g1'], lang: 'en' },
@@ -76,6 +111,19 @@ export const GOLDEN_CASES = [
76
111
  { query: 'emoji commit messages dislike', relevant: ['u6'], lang: 'en' },
77
112
  { query: 'vim 键位 编辑器 偏好', relevant: ['u7'], lang: 'zh' },
78
113
  { query: 'standup notes where posted morning wiki', relevant: ['u8'], lang: 'en' },
114
+ // ── synonym/paraphrase slice: query vocabulary lives only in the summary ──
115
+ { query: '合并代码 前 检查 通过', relevant: ['s1'], lang: 'zh' },
116
+ { query: '镜像 里 能不能 放 密码 凭据', relevant: ['s2'], lang: 'zh' },
117
+ { query: '支付 请求 走 哪个 网关', relevant: ['s3'], lang: 'zh' },
118
+ { query: 'cache expiry invalidation behavior', relevant: ['s4'], lang: 'en' },
119
+ { query: '缓存 什么时候 过期 失效', relevant: ['s4b'], lang: 'zh' },
120
+ { query: '讲解 风格 要不要 贴 代码', relevant: ['s5'], lang: 'zh' },
121
+ { query: '已经 决定 的事 别 再问', relevant: ['s6'], lang: 'zh' },
122
+ // ── Latin inflection slice: stem shared, surface form different ──
123
+ { query: 'unit tests 组件层 怎么 跑', relevant: ['f1'], lang: 'zh' },
124
+ { query: 'new clone configuring steps', relevant: ['f2'], lang: 'en' },
125
+ { query: 'release builds signing artifacts', relevant: ['f3'], lang: 'en' },
126
+ { query: 'deployment 回滚 预案 要求', relevant: ['f4'], lang: 'zh' },
79
127
  ];
80
128
  function sliceStats(perCase, k) {
81
129
  if (perCase.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/benchmark/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsBH;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD,mBAAmB;IACnB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,2EAA2E,EAAE;IACnH,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,qEAAqE,EAAE,QAAQ,EAAE,YAAY,EAAE;IACrI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,6EAA6E,EAAE,QAAQ,EAAE,YAAY,EAAE;IAC7I,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,wEAAwE,EAAE,QAAQ,EAAE,YAAY,EAAE;IACxI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,wEAAwE,EAAE;IAChH,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,+DAA+D,EAAE,QAA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AAC;KACjC,CAAA;AACH,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,aAAa,CAAC,IAAmB;IAC/C,MAAM,GAAG,GAAG,CAAC,KAAa,EAAE,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;IAC3G,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAA;AACrK,CAAC"}
@@ -528,7 +528,7 @@ function TextareaField(props) {
528
528
  var import_jsx_runtime2 = require("react/jsx-runtime");
529
529
  var MODES = ["policy-only", "full", "index", "custom", "off"];
530
530
  var DEFAULTS = {
531
- memoryMode: "policy-only",
531
+ memoryMode: "index",
532
532
  memoryPolicyCustomText: "",
533
533
  memoryCharLimit: 5e3,
534
534
  memoryMaxEntries: 20,
@@ -1012,17 +1012,31 @@ var MemorySectionController = class {
1012
1012
  ...edits.summary !== void 0 ? { summary: edits.summary ?? "" } : {}
1013
1013
  });
1014
1014
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1015
- if (!response.result.value.found) return { ok: false, message: "entry vanished before it could be saved" };
1015
+ if (!response.result.value.found) return { ok: false, message: response.result.value.error ?? "entry vanished before it could be saved" };
1016
1016
  await this.refreshAfterMutation();
1017
1017
  return { ok: true };
1018
1018
  });
1019
1019
  }
1020
+ /**
1021
+ * Fetch one entry's unredacted content through the break-glass `getRaw`
1022
+ * RPC (audit-logged server-side). Returns undefined when the entry is gone
1023
+ * or the read fails — the editor keeps the redacted draft either way.
1024
+ */
1025
+ async loadRawContent(id) {
1026
+ try {
1027
+ const response = await this.requireApi().getRaw({ id });
1028
+ if (!response.result.ok) return void 0;
1029
+ return response.result.value.entry?.content;
1030
+ } catch {
1031
+ return void 0;
1032
+ }
1033
+ }
1020
1034
  /** Delete one entry after the component-level confirmation. */
1021
1035
  async deleteEntry(id) {
1022
1036
  return this.act(async (api) => {
1023
1037
  const response = await api.removeEntry({ id });
1024
1038
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1025
- if (!response.result.value.removed) return { ok: false, message: "entry was already gone" };
1039
+ if (!response.result.value.removed) return { ok: false, message: response.result.value.error ?? "entry was already gone" };
1026
1040
  await this.refreshAfterMutation();
1027
1041
  return { ok: true };
1028
1042
  });
@@ -1032,7 +1046,7 @@ var MemorySectionController = class {
1032
1046
  return this.act(async (api) => {
1033
1047
  const response = await api.pin({ id: entry.id, pinned: entry.pinned !== true });
1034
1048
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1035
- if (!response.result.value.found) return { ok: false, message: "entry was already gone" };
1049
+ if (!response.result.value.found) return { ok: false, message: response.result.value.error ?? "entry was already gone" };
1036
1050
  await this.refreshAfterMutation();
1037
1051
  return { ok: true };
1038
1052
  });
@@ -1042,7 +1056,7 @@ var MemorySectionController = class {
1042
1056
  return this.act(async (api) => {
1043
1057
  const response = await api.archive({ id: entry.id, archived: entry.staleSince === void 0 });
1044
1058
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1045
- if (!response.result.value.found) return { ok: false, message: "entry was already gone" };
1059
+ if (!response.result.value.found) return { ok: false, message: response.result.value.error ?? "entry was already gone" };
1046
1060
  await this.refreshAfterMutation();
1047
1061
  return { ok: true };
1048
1062
  });
@@ -1068,7 +1082,7 @@ var MemorySectionController = class {
1068
1082
  ...edits?.category !== void 0 && edits.category !== "" ? { category: edits.category } : {}
1069
1083
  });
1070
1084
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1071
- if (!response.result.value.found) return { ok: false, message: "proposal was already decided" };
1085
+ if (!response.result.value.found) return { ok: false, message: response.result.value.error ?? "proposal was already decided" };
1072
1086
  return { ok: true };
1073
1087
  });
1074
1088
  if (done) {
@@ -1082,7 +1096,7 @@ var MemorySectionController = class {
1082
1096
  const done = await this.act(async (api) => {
1083
1097
  const response = await api.suggestReject({ id });
1084
1098
  if (!response.result.ok) return { ok: false, message: response.result.error.message };
1085
- return { ok: response.result.value.rejected, message: response.result.value.rejected ? void 0 : "proposal was already decided" };
1099
+ return response.result.value.rejected ? { ok: true } : { ok: false, message: response.result.value.error ?? "proposal was already decided" };
1086
1100
  });
1087
1101
  if (done) this.set({ pending: this.store.getSnapshot().pending.filter((s) => s.id !== id), actionError: null });
1088
1102
  return done;
@@ -1574,8 +1588,18 @@ function emptyKeyOf(state) {
1574
1588
  return "emptyAll";
1575
1589
  }
1576
1590
  function EntryEditor(props) {
1577
- const { entry, translate, onSave, onCancel } = props;
1591
+ const { entry, translate, loadRaw, onSave, onCancel } = props;
1578
1592
  const [draftContent, setDraftContent] = (0, import_react2.useState)(entry.content);
1593
+ (0, import_react2.useEffect)(() => {
1594
+ let alive = true;
1595
+ loadRaw(entry.id).then((raw) => {
1596
+ if (alive && raw !== void 0) setDraftContent(raw);
1597
+ }).catch(() => {
1598
+ });
1599
+ return () => {
1600
+ alive = false;
1601
+ };
1602
+ }, [entry.id, loadRaw]);
1579
1603
  const [draftCategory, setDraftCategory] = (0, import_react2.useState)(entry.category ?? NO_CATEGORY);
1580
1604
  const [draftSummary, setDraftSummary] = (0, import_react2.useState)(entry.summary ?? "");
1581
1605
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: css2.editForm, children: [
@@ -1644,7 +1668,7 @@ function EntryEditor(props) {
1644
1668
  ] });
1645
1669
  }
1646
1670
  function EntryRow(props) {
1647
- const { entry, expanded, staleLabel, staleHint, pinnedLabel, neverRecalledLabel, scopeLabels, translate, onToggle, onSaveEdits, onDelete, onTogglePin, onToggleArchive } = props;
1671
+ const { entry, expanded, staleLabel, staleHint, pinnedLabel, neverRecalledLabel, scopeLabels, translate, onToggle, loadRaw, onSaveEdits, onDelete, onTogglePin, onToggleArchive } = props;
1648
1672
  const category = entry.category;
1649
1673
  const projectName = entry.projectName;
1650
1674
  const isStale = entry.staleSince !== void 0;
@@ -1664,6 +1688,7 @@ function EntryRow(props) {
1664
1688
  {
1665
1689
  entry,
1666
1690
  translate,
1691
+ loadRaw,
1667
1692
  onSave: (edits) => {
1668
1693
  setEditing(false);
1669
1694
  onSaveEdits(edits);
@@ -2051,6 +2076,7 @@ function MemorySection(props) {
2051
2076
  onToggle: () => {
2052
2077
  toggleExpanded(entry.id);
2053
2078
  },
2079
+ loadRaw: props.loadRawContent,
2054
2080
  onSaveEdits: (edits) => {
2055
2081
  void props.saveEntryEdits(entry.id, edits);
2056
2082
  },
@@ -2763,6 +2789,7 @@ function createMemoryRemoteApi(connection) {
2763
2789
  return {
2764
2790
  list: (request) => invoke("list", request),
2765
2791
  search: (request) => invoke("search", request),
2792
+ getRaw: (request) => invoke("getRaw", request),
2766
2793
  projects: () => invoke("projects"),
2767
2794
  health: () => invoke("health"),
2768
2795
  update: (request) => invoke("update", request),
@@ -2847,6 +2874,7 @@ function apply(ctx) {
2847
2874
  void controller.loadMore();
2848
2875
  },
2849
2876
  saveEntryEdits: (id, edits) => controller.saveEntryEdits(id, edits),
2877
+ loadRawContent: (id) => controller.loadRawContent(id),
2850
2878
  deleteEntry: (id) => controller.deleteEntry(id),
2851
2879
  togglePin: (entry) => controller.togglePin(entry),
2852
2880
  toggleArchive: (entry) => controller.toggleArchive(entry),
@@ -2,11 +2,12 @@
2
2
  * Cross-session consistency: conflict detection between stored memories and
3
3
  * current-session facts (§3.11, exploratory).
4
4
  *
5
- * This module provides a pure, dependency-free conflict detector that flags
6
- * stored entries whose content contradicts facts stated in the current
7
- * session. The detector uses a lightweight signal-based prefilter (no LLM):
8
- * when a stored entry and a current-session fact share significant token
9
- * overlap but assert opposing values, the entry is flagged as `conflicting`.
5
+ * This module provides a pure conflict detector that flags stored entries
6
+ * whose content contradicts facts stated in the current session. The detector
7
+ * uses a lightweight signal-based prefilter (no LLM): when a stored entry and
8
+ * a current-session fact share significant weighted token overlap (the shared
9
+ * bm25 tokenizer and IDF weighting) but assert opposing values, the entry is
10
+ * flagged as `conflicting`.
10
11
  *
11
12
  * The full LLM-judge integration (§3.11 done-when) is a future enhancement:
12
13
  * it would run an LLM call on flagged pairs at context assembly time, which
@@ -42,12 +43,24 @@ export interface ConflictResult {
42
43
  *
43
44
  * A conflict is flagged when:
44
45
  * 1. A session fact is a correction (isCorrection=true) AND
45
- * 2. The fact shares significant token overlap with the entry (Jaccard ≥ 0.2) AND
46
- * 3. The fact contains a contradiction signal word.
46
+ * 2. The fact's IDF-weighted token overlap with the entry is at least
47
+ * {@link CONFLICT_STALE_THRESHOLD} AND
48
+ * 3. The fact contains a contradiction signal word with overlap at least
49
+ * {@link CONFLICT_CONTRADICTION_THRESHOLD} (hard `conflicting`), or the
50
+ * overlap alone is enough for the softer same-topic `stale`.
47
51
  *
48
- * `stale` is returned when an entry has not been recalled recently and a
49
- * correction-type fact touches the same topic — a softer signal than
50
- * `conflicting`.
52
+ * Known residual — heavily paraphrased corrections (memory-system-improvement-
53
+ * program `conflict-resolution` entry, accepted as partially closed): a
54
+ * correction that restates the fact in almost entirely different words scores
55
+ * far below {@link CONFLICT_STALE_THRESHOLD} (measured ≈0.02 for
56
+ * "the build command is npm run build" vs "switch packaging to pnpm; npm
57
+ * scripts are retired here") and passes through unflagged. This is the
58
+ * recorded cost of IDF weighting on a zero-LLM lexical plane, not a fixable
59
+ * threshold bug: lowering the line to catch such pairs would float the
60
+ * 「上海/海南」-class distractor pairs (≈0.06) above it, and a semantic plane
61
+ * stays out of scope while `embedding-vs-zero-network` holds. The mitigation
62
+ * that exists today is the human side: the correction entry itself is stored
63
+ * and injected, so a human reviewing the queue sees both statements.
51
64
  */
52
65
  export declare function detectConflict(entry: ConflictEntry, facts: readonly SessionFact[]): ConflictResult;
53
66
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"conflict.d.ts","sourceRoot":"","sources":["../../src/context/conflict.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,aAAa,CAAA;AAI9D,4DAA4D;AAC5D,KAAK,aAAa,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,SAAS,GAAG,gBAAgB,GAAG,UAAU,CAAC,CAAA;AAExF,iFAAiF;AACjF,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAA;AAE9D,iEAAiE;AACjE,MAAM,WAAW,WAAW;IAC1B,sDAAsD;IACtD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAA;CAC/B;AAED,6EAA6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAClC;AASD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,SAAS,WAAW,EAAE,GAC5B,cAAc,CA0BhB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,KAAK,EAAE,SAAS,WAAW,EAAE,GAC5B,SAAS,cAAc,EAAE,CAK3B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,GAAG,WAAW,CAAC,MAAM,EAAE,cA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