@lmzhen/dsh-evolution-review 0.47.0 → 0.49.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 CHANGED
@@ -24,7 +24,7 @@ Subagent-origin, background-visibility, and review-child sessions are excluded.
24
24
  The package emits `evolution/review-scheduled`, `evolution/review-completed`, `evolution/review-error`, and an aux `evolution/plan-applied` ledger entry. `reviewTimeoutMs` bounds the aux loop. Review cadence state is persisted when `evolution-state` is available; without it, cadence can reset between turns.
25
25
 
26
26
  **Removed metadata:** `reviewProvider`, `reviewContextMessages`, `reviewMessageChars`, `reviewMaxDepth` and `reviewToolAllow` were declared but never read, so they are gone from the registry and the bundles. Provider/model come from the parent session header; the tool allowlist is the parent's tools intersected with the family allowlist.
27
- `memoryInterval` and `skillInterval` remain readable deprecated aliases of `reviewMemoryInterval` and `reviewSkillInterval`; writes to the old names are refused (G0/S0.3).
27
+ `memoryInterval` and `skillInterval` were removed from the live row schema in 0.48 (G0/S0.3). They survive only in the family's old-document migration table and doctor's old-key report; a deployment config that still spells them must be rewritten to `reviewMemoryInterval` and `reviewSkillInterval`.
28
28
 
29
29
 
30
30
  ## Known limitations and migration
package/lib/index.js CHANGED
@@ -319,8 +319,6 @@ const Config = z.object({
319
319
  reviewMode: z.union([z.const("inject"), z.const("aux")]).default("aux").volatile(),
320
320
  reviewMemoryInterval: z.number().min(1).volatile(),
321
321
  reviewSkillInterval: z.number().min(1).volatile(),
322
- memoryInterval: z.number().min(1).default(DEFAULT_REVIEW_MEMORY_INTERVAL),
323
- skillInterval: z.number().min(1).default(DEFAULT_REVIEW_SKILL_INTERVAL),
324
322
  reviewTimeoutMs: z.number().min(1).max(MAX_TIMER_DELAY_MS).default(DEFAULT_REVIEW_TIMEOUT_MS),
325
323
  skillReviewTrigger: z.union([
326
324
  z.const("cadence"),
@@ -361,8 +359,7 @@ function clampReviewConfig(rawConfig, ctx) {
361
359
  * This row's review knobs as they stand RIGHT NOW (G1 §8.3) — the base layer of the
362
360
  * precedence chain. The seven E3 keys are live: the platform hands each one a
363
361
  * reference it updates in place, so a committed settings edit needs neither a restart
364
- * nor a watcher. The deprecated cadence aliases stay the fallback spelling of the two
365
- * interval keys, and every numeric field is clamped (G3.1).
362
+ * nor a watcher. Every numeric field is clamped (G3.1).
366
363
  * @param rawConfig - the row config as the platform resolved it.
367
364
  * @param warn - sink for the once-per-key clamp warning.
368
365
  * @returns the row layer of the review knobs.
@@ -370,8 +367,8 @@ function clampReviewConfig(rawConfig, ctx) {
370
367
  function resolveReviewRowSettings(rawConfig, warn) {
371
368
  const warned = /* @__PURE__ */ new Set();
372
369
  return {
373
- reviewSkillInterval: clampOnce(warned, warn, "reviewSkillInterval", unwrapLive(rawConfig.reviewSkillInterval) ?? rawConfig.skillInterval, DEFAULT_REVIEW_SKILL_INTERVAL, 1),
374
- reviewMemoryInterval: clampOnce(warned, warn, "reviewMemoryInterval", unwrapLive(rawConfig.reviewMemoryInterval) ?? rawConfig.memoryInterval, DEFAULT_REVIEW_MEMORY_INTERVAL, 1),
370
+ reviewSkillInterval: clampOnce(warned, warn, "reviewSkillInterval", unwrapLive(rawConfig.reviewSkillInterval), DEFAULT_REVIEW_SKILL_INTERVAL, 1),
371
+ reviewMemoryInterval: clampOnce(warned, warn, "reviewMemoryInterval", unwrapLive(rawConfig.reviewMemoryInterval), DEFAULT_REVIEW_MEMORY_INTERVAL, 1),
375
372
  skillReviewTrigger: unwrapLive(rawConfig.skillReviewTrigger) ?? DEFAULT_SKILL_REVIEW_TRIGGER,
376
373
  skillReviewCompletionMinToolCalls: clampOnce(warned, warn, "skillReviewCompletionMinToolCalls", rawConfig.skillReviewCompletionMinToolCalls, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, 1),
377
374
  reviewEnabled: liveBool(rawConfig.reviewEnabled, true),
@@ -432,7 +429,6 @@ function apply(ctx, rawConfig = {}) {
432
429
  reviewNotice: row.reviewNotice
433
430
  };
434
431
  };
435
- const schemaDefaults = Config["~standard"].validate({}).value;
436
432
  /** The value the schema fills in when nobody sets the key — for a volatile field the
437
433
  * reference is always present, so this is what "the row set nothing" resolves to. */
438
434
  const SHADOW_DEFAULTS = {
@@ -440,16 +436,15 @@ function apply(ctx, rawConfig = {}) {
440
436
  reviewMemoryInterval: DEFAULT_REVIEW_MEMORY_INTERVAL,
441
437
  reviewSkillInterval: DEFAULT_REVIEW_SKILL_INTERVAL
442
438
  };
443
- const rowSupplied = (id, alias) => {
439
+ const rowSupplied = (id) => {
444
440
  const canonical = unwrapLive(rawConfig[id]);
445
- if (canonical !== void 0 && canonical !== SHADOW_DEFAULTS[id]) return true;
446
- return alias !== void 0 && rawConfig[alias] !== void 0 && rawConfig[alias] !== schemaDefaults[alias];
441
+ return canonical !== void 0 && canonical !== SHADOW_DEFAULTS[id];
447
442
  };
448
443
  const shadowedRowFields = [
449
- ["reviewMode", void 0],
450
- ["reviewMemoryInterval", "memoryInterval"],
451
- ["reviewSkillInterval", "skillInterval"]
452
- ].filter(([id, alias]) => !userSetKeys(ctx, paramRowId("evolution-review")).has(id) && rowSupplied(id, alias)).map(([id]) => id);
444
+ "reviewMode",
445
+ "reviewMemoryInterval",
446
+ "reviewSkillInterval"
447
+ ].filter((id) => !userSetKeys(ctx, paramRowId("evolution-review")).has(id) && rowSupplied(id));
453
448
  if (shadowedRowFields.length > 0) {
454
449
  let shadowWarned = false;
455
450
  const warnShadowed = () => {
@@ -36,17 +36,13 @@ export interface Config {
36
36
  * a turn advances by its tool-call count, minimum 1, or by 1 when the turn
37
37
  * itself carried the memory signal). Shadowed by the policy snapshot in every
38
38
  * shipped composition — configure `reviewMemoryInterval` on the
39
- * `evolution-policy` row instead (v37 P2-24). */
39
+ * `evolution-policy` row instead (v37 P2-24). G0/S0.3: the removed live-row
40
+ * aliases `memoryInterval`/`skillInterval` are migration input only; live
41
+ * writes name `reviewMemoryInterval`/`reviewSkillInterval`. */
40
42
  reviewMemoryInterval?: Volatile<number | undefined>;
41
43
  /** Skill-channel review cadence — the CANONICAL registry id (G1); shadowed by
42
44
  * the policy snapshot like the memory cadence. */
43
45
  reviewSkillInterval?: Volatile<number | undefined>;
44
- /** Deprecated alias of `reviewMemoryInterval` (G0/S0.3): still readable,
45
- * refused by writes; removal was planned for 0.7.0 and is deferred (the alias still ships — see the package README). */
46
- memoryInterval?: number;
47
- /** Deprecated alias of `reviewSkillInterval` (G0/S0.3): still readable,
48
- * refused by writes; removal was planned for 0.7.0 and is deferred (the alias still ships — see the package README). */
49
- skillInterval?: number;
50
46
  reviewTimeoutMs?: number;
51
47
  /** E3/P1-8 (v11) — TRUE semantics: this flag gates ONLY the completion
52
48
  * channel. The cadence latch stays active regardless of the value (a
@@ -90,8 +86,6 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
90
86
  reviewMode: z<"inject" | "aux", "inject" | "aux", "volatile-defined">;
91
87
  reviewMemoryInterval: z<number, number, "volatile">;
92
88
  reviewSkillInterval: z<number, number, "volatile">;
93
- memoryInterval: z<number, number, "defined">;
94
- skillInterval: z<number, number, "defined">;
95
89
  reviewTimeoutMs: z<number, number, "defined">;
96
90
  skillReviewTrigger: z<"cadence" | "completion" | "both", "cadence" | "completion" | "both", "volatile-defined">;
97
91
  reviewWakeInject: z<boolean, boolean, "volatile-defined">;
@@ -105,8 +99,6 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
105
99
  reviewMode: z<"inject" | "aux", "inject" | "aux", "volatile-defined">;
106
100
  reviewMemoryInterval: z<number, number, "volatile">;
107
101
  reviewSkillInterval: z<number, number, "volatile">;
108
- memoryInterval: z<number, number, "defined">;
109
- skillInterval: z<number, number, "defined">;
110
102
  reviewTimeoutMs: z<number, number, "defined">;
111
103
  skillReviewTrigger: z<"cadence" | "completion" | "both", "cadence" | "completion" | "both", "volatile-defined">;
112
104
  reviewWakeInject: z<boolean, boolean, "volatile-defined">;
@@ -161,8 +153,7 @@ export interface ReviewSettings {
161
153
  * This row's review knobs as they stand RIGHT NOW (G1 §8.3) — the base layer of the
162
154
  * precedence chain. The seven E3 keys are live: the platform hands each one a
163
155
  * reference it updates in place, so a committed settings edit needs neither a restart
164
- * nor a watcher. The deprecated cadence aliases stay the fallback spelling of the two
165
- * interval keys, and every numeric field is clamped (G3.1).
156
+ * nor a watcher. Every numeric field is clamped (G3.1).
166
157
  * @param rawConfig - the row config as the platform resolved it.
167
158
  * @param warn - sink for the once-per-key clamp warning.
168
159
  * @returns the row layer of the review knobs.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-review",
3
3
  "description": "Background review orchestration (community build)",
4
- "version": "0.47.0",
4
+ "version": "0.49.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,21 +29,21 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-core": "^0.47.0"
32
+ "@lmzhen/dsh-evolution-core": "^0.49.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.5",
36
36
  "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
37
37
  "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
38
38
  "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
39
- "@lmzhen/dsh-evolution-state": "^0.47.0"
39
+ "@lmzhen/dsh-evolution-state": "^0.49.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
43
43
  "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
44
44
  "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
45
- "@lmzhen/dsh-evolution-core": "^0.47.0",
46
- "@lmzhen/dsh-evolution-state": "^0.47.0"
45
+ "@lmzhen/dsh-evolution-core": "^0.49.0",
46
+ "@lmzhen/dsh-evolution-state": "^0.49.0"
47
47
  },
48
48
  "engines": {
49
49
  "dsh": ">=0.2.2-rc.0 <0.2.3-0"