@lmzhen/dsh-evolution-feedback 0.3.83 → 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.
Files changed (2) hide show
  1. package/README.md +16 -16
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,27 +1,27 @@
1
1
  # @lmzhen/dsh-evolution-feedback
2
2
 
3
- Feedback-to-quality scoring for self-evolution
3
+ Feedback-to-quality scoring: durable through `ctx.evolutionIo`; skill feedback feeds the
4
+ FEEDBACK-OWNED `feedback_score`/`feedback_warn` pair.
4
5
 
5
- ## Model Experience
6
+ ## Model surface
6
7
 
7
- ### Indirect model surface
8
+ - **Model-visible:** nothing of its own: the usage-record readers own it.
9
+ - **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".
10
+ - **Mount it?** yes — the `evolution-feedback` row, `evolution-host`/`evolution-all`/`evolution-preset`.
8
11
 
9
- #### What the model sees
12
+ ## Configuration
10
13
 
11
- `@lmzhen/dsh-evolution-feedback` registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.
14
+ - `qualityWarnThreshold` (default `-0.25`): score below which the pair flips to warned.
15
+ - `path`: boot-cache path; `''` means `$DSH_HOME/evolution/feedback.json` (the event log is not affected).
12
16
 
13
- #### Token effect
17
+ ## Known limitations
14
18
 
15
- Zero direct token effect from this package; consumers add any model-visible tokens.
16
-
17
- #### KV Cache effect
18
-
19
- Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.
20
-
21
- ## Known Limitations and Deferred Work
19
+ - Lifecycle and scope views read `quality_warn || feedback_warn`, so negative feedback shortens the stale window even though the curator recomputes `quality_warn`.
22
20
 
21
+ **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).
23
22
 
24
- - Persists through the IO seam; quality propagation into skill usage requires the `skillUsage` service.
25
- - P1-1 (v15): feedback writes the FEEDBACK-OWNED `feedback_score`/`feedback_warn` usage fields. The lifecycle engine and the scope view read the union `quality_warn || feedback_warn`, so a negative feedback shortens the stale window even though the curator's six-factor run always recomputes `quality_warn` itself.
23
+ ## Notes and history
26
24
 
27
- **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).
25
+ - Persists through the IO seam; quality propagation into skill usage requires BOTH the `skillUsage` service and a mounted IO backend: with no `evolutionIo` the push returns before touching the persistent usage sidecar (S4.6), so an optimistic in-memory score never lands there unconfirmed.
26
+ - The in-memory-wins window of a log refold is the IN-FLIGHT append window only, counted PER TARGET (two appends for one target in flight at once both stay protected, and the no-io path never enters it): a settled target folds from the log truth, so another process sharing `DSH_HOME` is not overwritten by this process's stale record (S1.4).
27
+ - P1-1 (v15): feedback writes the FEEDBACK-OWNED `feedback_score`/`feedback_warn` usage fields.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-feedback",
3
3
  "description": "Feedback-to-quality scoring for self-evolution (community build)",
4
- "version": "0.3.83",
4
+ "version": "0.4.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,16 +27,16 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.1",
30
- "@lmzhen/dsh-evolution-core": "^0.3.83"
30
+ "@lmzhen/dsh-evolution-core": "^0.4.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.1",
34
- "@lmzhen/dsh-evolution-io": "^0.3.83",
35
- "@lmzhen/dsh-skill-usage": "^0.3.83"
34
+ "@lmzhen/dsh-evolution-io": "^0.4.0",
35
+ "@lmzhen/dsh-skill-usage": "^0.4.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@lmzhen/dsh-evolution-io": "^0.3.83",
39
- "@lmzhen/dsh-evolution-io-node": "^0.3.83",
40
- "@lmzhen/dsh-skill-usage": "^0.3.83"
38
+ "@lmzhen/dsh-evolution-io": "^0.4.0",
39
+ "@lmzhen/dsh-evolution-io-node": "^0.4.0",
40
+ "@lmzhen/dsh-skill-usage": "^0.4.0"
41
41
  }
42
42
  }