@lmzhen/dsh-evolution-learning-graph 0.3.82 → 0.4.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.
- package/README.md +12 -15
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @lmzhen/dsh-evolution-learning-graph
|
|
2
2
|
|
|
3
3
|
Learning graph over skills and memory
|
|
4
4
|
|
|
@@ -10,25 +10,22 @@ Memory node ids carry a trailing snapshot token (`memory:<source>:<index>:<snaps
|
|
|
10
10
|
|
|
11
11
|
Memory→skill edges are word-level, not substring: the entry is tokenized on non-letter/digit/hyphen runs and a skill name links only when it is a whole token. This prevents a skill named `run` from linking the words `running`/`grunt`.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
**`graph edit`/`graph delete` route through the evolution approval seam** when mounted (soft-probed: the write executes directly when absent) — for BOTH skill nodes and memory nodes. Each approved/executed edit bumps the skill's patch counter and a delete archives it, matching `skill_manage` — including the no-op gate: an edit whose content is byte-equivalent to the current file (`noop`) writes nothing and does not bump the patch counter, exactly as `skill_manage` treats an unchanged update/patch.
|
|
14
14
|
|
|
15
|
-
## Model
|
|
15
|
+
## Model surface
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- **Model-visible:** nothing of its own: no prompt section and no tool schema; `/graph` is a human command, and consumers own the model-visible effects.
|
|
18
|
+
- **Prompt prefix / KV cache:** independent of request-prefix construction — it does not alter the assembled prompt or tool list; family-level rules: `packages/README.md` §"Model-visible prompt prefix and the KV cache".
|
|
19
|
+
- **Mount it?** yes — the `evolution-learning-graph` row, carried by the `evolution-host`, `evolution-all` and one-click `evolution-preset` bundles.
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
#### Token effect
|
|
22
|
-
|
|
23
|
-
Zero direct token effect from this package; consumers add any model-visible tokens.
|
|
24
|
-
|
|
25
|
-
#### KV Cache effect
|
|
26
|
-
|
|
27
|
-
Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.
|
|
28
|
-
|
|
29
|
-
## Known Limitations and Deferred Work
|
|
21
|
+
## Known limitations
|
|
30
22
|
|
|
31
23
|
- The memory drift snapshot covers only the node label (first line, first 80 chars): a change confined to a later line of the same entry is not detected, because the rendered node label is the comparison anchor.
|
|
32
24
|
- A hand-typed bare `memory:<source>:<index>` id has no snapshot and skips the drift check (legacy path; the rendered ids always carry the snapshot).
|
|
33
25
|
|
|
34
26
|
**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).
|
|
27
|
+
## Notes and history
|
|
28
|
+
|
|
29
|
+
- `graph edit`/`graph delete` route through the evolution approval seam when it is mounted (soft-probed; the write executes directly when it is absent): for BOTH skill nodes and memory nodes (P2-6, v15; memory staged args mirror the `memory` tool runner's replay shape).
|
|
30
|
+
- Before staging, the seam's `hasRunner` is checked (P2-7, v15): with approval enabled, a session policy that is not `never`, and the write actually staging (foreground stages per approval `stageForeground`; subagent origins always stage), a missing replay runner's row (tool-skill-manage / tool-memory) refuses the write; allow-direct combinations execute unchanged instead of creating a pending record no approver could replay.
|
|
31
|
+
- The command invocation's session rides the approval request (v12 N1), so a `never`-policy session stages nothing instead of deriving every graph write as foreground.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-learning-graph",
|
|
3
3
|
"description": "Learning graph over skills and memory (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.4.0",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.4.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@deepseek-ai/dsh-commands": "^0.1.5-rc.2",
|