@lmzhen/dsh-evolution-state-domain 0.3.83 → 0.4.1
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 +13 -20
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
# @lmzhen/dsh-evolution-state-domain
|
|
2
2
|
|
|
3
|
-
storage-domain provider for evolution state
|
|
3
|
+
storage-domain provider for evolution state: records live in the DSH storage-domain data form —
|
|
4
|
+
schema-validated, change-emitting durable KV routed by whatever backend the domain facility
|
|
5
|
+
provides (`json`, `sqlite`, remote RPC).
|
|
4
6
|
|
|
7
|
+
## Model surface
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
#### What the model sees
|
|
11
|
-
|
|
12
|
-
`@lmzhen/dsh-evolution-state-domain` registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.
|
|
13
|
-
|
|
14
|
-
#### Token effect
|
|
15
|
-
|
|
16
|
-
Zero direct token effect from this package; consumers add any model-visible tokens.
|
|
17
|
-
|
|
18
|
-
#### KV Cache effect
|
|
19
|
-
|
|
20
|
-
Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.
|
|
21
|
-
|
|
22
|
-
## Known Limitations and Deferred Work
|
|
9
|
+
- **Model-visible:** nothing of its own: the rows that read this state own the injection.
|
|
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.
|
|
23
12
|
|
|
13
|
+
## Known limitations
|
|
24
14
|
|
|
25
15
|
- Requires the host-plane `storage-domain` facility. The bundle row stays dormant when it is absent.
|
|
26
|
-
-
|
|
27
|
-
- 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). The stamp is stripped on read, so the consumer-facing record shape is unchanged.
|
|
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).
|
|
28
17
|
|
|
29
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).
|
|
30
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).
|
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.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
33
33
|
"@deepseek-ai/dsh-storage-domain": "^0.1.5-rc.2",
|
|
34
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.
|
|
34
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.4.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@deepseek-ai/dsh-storage-domain": "^0.1.5-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-storage": "^0.1.5-rc.2",
|
|
39
39
|
"@deepseek-ai/dsh-storage-json": "^0.1.5-rc.2",
|
|
40
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.
|
|
40
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.4.1"
|
|
41
41
|
}
|
|
42
42
|
}
|