lmzhen/dsh-evolution--packages-evolution-state-json1

@deepseek-ai/dsh-evolution-state-json

JSON-file evolution state provider over the IO seam

AI 分析

通过JSON文件持久化演进状态,适合轻量级本地状态存储任务。

パッケージ
@deepseek-ai/dsh-evolution-state-json
バージョン
0.3.70
ライセンス
MIT
最終更新
2026/09/12

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

@deepseek-ai/dsh-evolution-state-json

JSON-file evolution state provider over the IO seam

Model Experience

Indirect model surface

What the model sees

@deepseek-ai/dsh-evolution-state-json registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.

Token effect

Zero direct token effect from this package; consumers add any model-visible tokens.

KV Cache effect

Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.

Known Limitations and Deferred Work

  • P2-4 (v15): the live pending map is BOUNDED — resolved (approved/rejected) records are kept to the most recent PENDING_RESOLVED_CAP (200, seam constant in evolution-state-storage); the oldest by resolvedAt rotate into the pending-state-archive.json sidecar (with .bak rotation), which is JSON-provider-specific. The DOMAIN provider enforces the same live cap but has no sidecar: past the cap its resolved records are deleted, not archived.
  • V25-11 (v25): the review-state table is likewise BOUNDED — REVIEW_STATE_SESSION_CAP (500, seam constant) rows keyed by session; on every save the least-recently-active sessions (provider-stamped updatedAt, stored on disk only) are pruned. The stamp is stripped on read, so the consumer-facing record shape is unchanged.
  • JSON provider serializes writers inside one process AND through the IO backend's cross-process transact lock (an internal transact wrapper — not public API, audit v10 S-03 — wraps every mutation, 0.3.20/0.3.27) — this provider is NOT limited to single-process safety. The caveat below is about the DSH storage-domain providers (storage-json documents no cross-process write locking) when the DOMAIN provider is used instead; multi-process deployments should route the evolution domain to a backend with cross-process semantics such as SQLite or remote storage.