@lmzhen/dsh-evolution-review 0.62.1 → 0.62.2

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
@@ -21,7 +21,7 @@ Subagent-origin, background-visibility, and review-child sessions are excluded.
21
21
 
22
22
  ## Events and limits
23
23
 
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 (default 300s; raise it, lower `reviewMaxRounds`, or raise `reviewMaxToolCalls` for unusually long reviews); `reviewMaxRounds` (default 12) and `reviewMaxToolCalls` (default 50) bound model rounds and tool calls. Reaching any bound records `partial`/`timeout` with `hitRoundLimit` and `partialReason`, never `completed`. Review cadence state is persisted when `evolution-state` is available; without it, cadence can reset between turns.
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 (default 300s; raise it, lower `reviewMaxRounds`, or raise `reviewMaxToolCalls` for unusually long reviews); `reviewMaxRounds` (default 12) and `reviewMaxToolCalls` (default 50) bound model rounds and tool calls. Aux reviews run at most 8 at once per plugin instance (`AUX_REVIEW_CONCURRENCY`): that is a provider/CPU budget, while cross-review writes are serialized per resource by the review write locks and the mutation-authority lease. Reaching any bound records `partial`/`timeout` with `hitRoundLimit` and `partialReason`, never `completed`. 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; native review sees the parent catalog but only the family allowlist executes, while PTC exposes only `run_code`.
27
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`.
package/lib/index.js CHANGED
@@ -753,16 +753,6 @@ var ReviewWriteLocks = class {
753
753
  };
754
754
  //#endregion
755
755
  //#region lib/types/review-limiter.js
756
- /**
757
- * Process-local bound on concurrent AUX reviews.
758
- *
759
- * The family deliberately keeps this small: one semaphore for the plugin
760
- * instance, no per-session or weighted fairness. A review waits for a slot
761
- * before its first model request; the bounded queue is what keeps a burst of
762
- * sessions from opening unbounded LLM streams.
763
- *
764
- * @module @lmzhen/dsh-evolution-review/review-limiter
765
- */
766
756
  /** A tiny FIFO semaphore whose waiters can be aborted by unload/timeout. */
767
757
  var ReviewLimiter = class {
768
758
  limit;
@@ -1485,7 +1475,7 @@ function apply(ctx, rawConfig = {}) {
1485
1475
  */
1486
1476
  let inFlightControllers = /* @__PURE__ */ new Set();
1487
1477
  const reviewWriteLocks = new ReviewWriteLocks();
1488
- const auxLimiter = new ReviewLimiter(2);
1478
+ const auxLimiter = new ReviewLimiter(8);
1489
1479
  let ptcToolHost;
1490
1480
  /**
1491
1481
  * Freeze the parent prefix for an aux review.
@@ -1,13 +1,21 @@
1
1
  /**
2
2
  * Process-local bound on concurrent AUX reviews.
3
3
  *
4
- * The family deliberately keeps this small: one semaphore for the plugin
5
- * instance, no per-session or weighted fairness. A review waits for a slot
6
- * before its first model request; the bounded queue is what keeps a burst of
7
- * sessions from opening unbounded LLM streams.
4
+ * One semaphore for the plugin instance, no per-session or weighted fairness.
5
+ * A review waits for a slot before its first model request; the bounded queue
6
+ * keeps a burst of sessions from opening unbounded LLM streams. This is a
7
+ * provider/CPU budget, not a correctness guard: cross-review writes are already
8
+ * serialized by the review write locks and the mutation-authority lease.
9
+ *
10
+ * 8 slots matches the observed burst size of normal multi-session use: a long
11
+ * queue can outlive the parent prefix cache and turn a warm aux review into a
12
+ * cold one. Callers that need a different budget can construct their own
13
+ * limiter; this constant is the shipped default.
8
14
  *
9
15
  * @module @lmzhen/dsh-evolution-review/review-limiter
10
16
  */
17
+ /** Shipped default for concurrent aux reviews. */
18
+ export declare const AUX_REVIEW_CONCURRENCY = 8;
11
19
  /** A tiny FIFO semaphore whose waiters can be aborted by unload/timeout. */
12
20
  export declare class ReviewLimiter {
13
21
  private readonly limit;
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.62.1",
4
+ "version": "0.62.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,8 +29,8 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-core": "0.62.1",
33
- "@lmzhen/dsh-evolution-platform": "0.62.1"
32
+ "@lmzhen/dsh-evolution-core": "0.62.2",
33
+ "@lmzhen/dsh-evolution-platform": "0.62.2"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@deepseek-ai/cordis": "^4.0.5",
@@ -42,7 +42,7 @@
42
42
  "@deepseek-ai/dsh-agent": "0.2.2-rc.5",
43
43
  "@deepseek-ai/dsh-llm": "0.2.2-rc.5",
44
44
  "@deepseek-ai/dsh-session": "0.2.2-rc.5",
45
- "@lmzhen/dsh-evolution-core": "^0.62.1"
45
+ "@lmzhen/dsh-evolution-core": "^0.62.2"
46
46
  },
47
47
  "engines": {
48
48
  "dsh": "0.2.2-rc.5"