stratagate-dsh 0.3.34 → 0.3.36

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/docs/DSH.md CHANGED
@@ -290,6 +290,12 @@ If `provider` and `model` are omitted, memory processing uses the session's late
290
290
 
291
291
  ## Privacy and failure behavior
292
292
 
293
+ Event extraction preflights the full estimated request, including prompts and tools. Input is capped at 12,000 estimated tokens with output and context-window headroom (32,768 fallback window). Output uses the larger of `maxOutputTokens` and 8,192, capped to available context. Capacity failures and explicit output truncation split consecutive sources by message boundary, then newline/character boundary for oversized messages. Source IDs and all pending derivation text are retained; existing tool-payload compaction still applies and L5 remains unchanged. Automatic neighbor/timeline hints have a separate size limit and cannot supply new facts.
294
+
295
+ All slices share a maximum of 32 provider calls, eight split levels, 262,144 reserved input/output tokens, and three times `structuredTaskTimeoutMs` capped at 360 seconds. Reserved tokens are a conservative ceiling, not measured billing. Transport, authentication, rate-limit and timeout failures do not fan out. Schema/provenance errors receive at most one repair attempt. Only a complete set of slice results reaches the existing Event commit path; any failure leaves the Block pending without publishing earlier candidates or marking extraction skipped.
296
+
297
+ Slice candidates currently live only within one invocation; retries after failure/restart reprocess the Block. Persistent slice checkpoints and cross-slice factual reconciliation remain unimplemented. Isolated tests verify capacity, source coverage and failure states, not live semantic recall, correction/cancellation handling or production failure rates.
298
+
293
299
  Memory is stored in the configured local SQLite file. Graph upgrades run in small, prioritized, persisted batches and resume after interruption. Raw source messages remain available at L5 for verification.
294
300
 
295
301
  For diagnostics, the five most recent successful memory-model responses are retained per namespace. Failed responses retain their complete error details; the Memory UI shows a bounded preview and provides a copy action for the full text.
package/docs/DSH.zh-CN.md CHANGED
@@ -270,6 +270,12 @@ Topic Projection 优先将全部本批 Event 完整分配到章节和小节。
270
270
 
271
271
  ## 隐私与故障处理
272
272
 
273
+ 事件卡提取会先估算包含提示词和工具定义的请求大小。输入预算上限为 12,000 估算 token,同时预留模型窗口内的输出和安全余量;未知窗口时按 32,768 估算。事件提取输出上限取 `maxOutputTokens` 与 8,192 中的较大值,再按实际窗口缩小。容量不足或模型明确返回输出截断时,按消息边界拆分;单条超长消息再按换行或字符拆分,保留来源 ID、全部待处理文本和邻近语境。原有工具内容脱敏/压缩规则继续生效,L5 原文不改动。自动提供的相邻摘要和历史事件提示另受大小限制,不会作为新事实来源。
274
+
275
+ 一次整块提取最多调用模型 32 次、拆分 8 层,累计预留输入与输出不超过 262,144 估算 token,总耗时不超过 `structuredTaskTimeoutMs` 的三倍且最多 360 秒。预留量是保守上限,不是实际计费。网络、鉴权、限流和超时不会触发拆分;仍走原有失败与退避。格式和来源校验失败最多修正重试一次。全部片段成功后才交给原有事件写入流程;任一失败时整块保持待处理,不写入前面片段的候选事件,也不标记为无需提取。
276
+
277
+ 目前片段候选仅在本次调用内保存,重启或整块失败后重试仍会重新处理该块;持久化片段检查点与跨片事实关系核对尚未实现。隔离测试可验证容量、原文覆盖和失败状态,不能代替真实模型的事实召回、更正/取消关系与生产失败率评估。
278
+
273
279
  记忆保存在配置指定的本地 SQLite 文件中。图谱升级会按优先级小批量处理、逐批保存并在中断后续跑。L5 层会保留原始来源消息,供后续核验。
274
280
 
275
281
  为便于诊断,每个命名空间会保留最近 5 次成功的记忆模型响应。失败响应会保留完整错误详情;Memory 界面只显示有限长度的预览,并提供复制完整文本的操作。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratagate-dsh",
3
- "version": "0.3.34",
3
+ "version": "0.3.36",
4
4
  "description": "Recent conversations stay vivid. Older ones fade into summaries, not oblivion. StrataGate gives DeepSeek Harness six-layer, time-decaying memory, while lasting events and relationships settle into a knowledge graph. Bring your memories from other AIs with you—no need to start over.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -98,9 +98,9 @@
98
98
  "url": "git+https://github.com/diqierjia/StrataGate-AgentMemory.git"
99
99
  },
100
100
  "bugs": {
101
- "url": "https://github.com/diqierjia/StrataGate-AgentMemory/issues"
101
+ "url": "https://gitee.com/diqier4123/StrataGate-AgentMemory/issues"
102
102
  },
103
- "homepage": "https://github.com/diqierjia/StrataGate-AgentMemory#readme",
103
+ "homepage": "https://gitee.com/diqier4123/StrataGate-AgentMemory",
104
104
  "license": "MIT",
105
105
  "dshWorkshop": {
106
106
  "schema": "omdsh-workshop-package/v1",