@lmzhen/dsh-evolution-state-domain 0.32.4 → 0.32.6
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/README.md +4 -18
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
# @lmzhen/dsh-evolution-state-domain
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
schema-validated, change-emitting durable KV routed by whatever backend the domain facility
|
|
5
|
-
provides (`json`, `sqlite`, remote RPC).
|
|
3
|
+
Optional `storageDomain` provider for review, curator, and pending state. It is disabled in the shipped bundle patches and requires the platform `storageDomain` service.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
The provider defines three schema-validated tables: `review_state`, `curator_state`, and `pending`. The configured domain facility determines the actual medium, which can be JSON, SQLite, remote RPC, or another supported backend; this package does not imply that all state resides in `$DSH_HOME`.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- **Prompt prefix / KV cache:** unchanged by this package: family-level rules single-sourced in `packages/README.md` §"Model-visible prompt prefix and the KV cache".
|
|
11
|
-
- **Mount it?** yes — the `evolution-state-domain` row, in `evolution-host`/`evolution-all`/one-click `evolution-preset`, where it is `disabled: true` until the host has the `storage-domain` facility.
|
|
7
|
+
Transient open failures receive a bounded retry; deterministic schema/version/backend failures surface immediately. Pending claim/resolve transitions and the shared caps match the JSON provider. Resolved pending history is capped at 200 and review cadence state at 500 sessions, but domain mode does not create the JSON `pending-state-archive.json` sidecar.
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
- Requires the host-plane `storage-domain` facility. The bundle row stays dormant when it is absent.
|
|
16
|
-
- Both tables are capped (200 pending, 500 sessions), and past the caps records are gone, not archived: the audit-archive sidecar the json provider keeps has no equivalent here (a failed prune warns and retries on the next save).
|
|
17
|
-
|
|
18
|
-
**Runtime invariant:** No companion is published. The platform auto-assembles nothing and the family mounts no `<pkg>/invariant` cordis row, so a companion here would never execute (v37 S2.1 / I-3).
|
|
19
|
-
|
|
20
|
-
## Notes and history
|
|
21
|
-
|
|
22
|
-
- P2-4 (v15): the live pending table 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` are deleted on resolve.
|
|
23
|
-
- 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`) are pruned (delete failures warn and retry on the next save).
|
|
9
|
+
When both state providers are mounted, pin `provider: domain` on the `evolution-state` row. Leaving the choice to registration order is rejected by the facade.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state-domain",
|
|
3
3
|
"description": "storage-domain provider for evolution state (community build)",
|
|
4
|
-
"version": "0.32.
|
|
4
|
+
"version": "0.32.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
33
33
|
"@deepseek-ai/dsh-storage-domain": "^0.2.1-rc.2",
|
|
34
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.32.
|
|
34
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.32.6"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@deepseek-ai/dsh-storage-domain": "^0.2.1-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-storage": "^0.2.1-rc.2",
|
|
39
39
|
"@deepseek-ai/dsh-storage-json": "^0.2.1-rc.2",
|
|
40
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.32.
|
|
40
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.32.6"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0"
|