@lmzhen/dsh-evolution-review 0.57.0 → 0.59.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 +6 -5
- package/lib/index.js +778 -33
- package/lib/types/index.d.ts +6 -1
- package/lib/types/review-executor.d.ts +30 -3
- package/lib/types/review-limiter.d.ts +23 -0
- package/lib/types/review-ptc-channel.d.ts +43 -0
- package/lib/types/review-tool-channel.d.ts +34 -0
- package/lib/types/review-write-locks.d.ts +35 -0
- package/package.json +14 -12
package/README.md
CHANGED
|
@@ -14,16 +14,16 @@ Subagent-origin, background-visibility, and review-child sessions are excluded.
|
|
|
14
14
|
|
|
15
15
|
| Mode | Behavior | Recorded history |
|
|
16
16
|
|---|---|---|
|
|
17
|
-
| `aux` (default) | Runs a plugin-owned manual loop over the parent request prefix
|
|
17
|
+
| `aux` (default) | Runs a plugin-owned manual loop over the frozen parent request prefix. Native tools execute against the real parent agent; PTC runs against a detached review child Session so `run_code` dispatch never touches the parent log. Memory and skill are independent tasks with independent leases; `review_done` is the only success terminal. | Emits `review-scheduled` and `review-completed`; the completion record includes task/kind/status, requests, toolCalls, waitCount, round limit, partial reason and the structured report. |
|
|
18
18
|
| `inject` (debug) | Sends the kind-specific foreground review prompt into the parent session as an ordinary turn. `reviewWakeInject=true` uses a waking follow-up when available. | Emits `review-scheduled`; does **not** emit `plan-applied`, so plan-based activity/replay stays empty. |
|
|
19
19
|
|
|
20
|
-
`reviewNotice=true` allows result notices for the inject path. Aux results are audit-only: `finalText` lands in the bounded activity review record and never becomes a parent message or a new parent turn.
|
|
20
|
+
`reviewNotice=true` allows result notices for the inject path. Aux results are audit-only: `finalText` lands in the bounded activity review record and never becomes a parent message or a new parent turn. Aux never uses the combined prompt: memory and skill each get their own prompt and task. A no-op review must still finish with `review_done`; stopping without it is recorded as partial, not completed. Native review keeps the parent tool catalog for prefix caching but rejects non-review calls before execution; PTC exposes only `run_code`. Unavailable tools/paths must be reported rather than silently ignored.
|
|
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. 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; `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.
|
|
25
25
|
|
|
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;
|
|
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`.
|
|
28
28
|
|
|
29
29
|
|
|
@@ -31,5 +31,6 @@ The package emits `evolution/review-scheduled`, `evolution/review-completed`, `e
|
|
|
31
31
|
|
|
32
32
|
Step-by-step upgrade instructions: [docs/UPGRADE-0.39.md](../../docs/UPGRADE-0.39.md).
|
|
33
33
|
|
|
34
|
-
- **PTC sessions:**
|
|
34
|
+
- **PTC sessions:** aux uses the detached review child channel. `run_code` and its `tool/ptc-dispatch*` frames land on the child Session, never the parent; `review_done`/`review_wait` are registered only while that review task executes. The PTC executor is an optional platform capability (base bundle ships it disabled; the PTC preset enables it), so a host without PTC mode reports `PTC_UNAVAILABLE` instead of silently falling back. Real-host PTC memory and skill reviews both completed; see `plugins/README` and the acceptance ledger for the exact version.
|
|
35
|
+
- **Minimal sessions:** the runtime guard hides the family model tools and this package skips AUX entirely when the active preset is `minimal`. Family UI panels/commands remain profile-level; the guard is a model/automation boundary, not a UI unload.
|
|
35
36
|
- **0.39 migration:** `branch` was removed from the closed `reviewMode` union. An existing `reviewMode: branch` profile patch now fails validation and deactivates the policy row; rewrite it to `aux` before restarting. Old branch activity records remain readable through `branchSessionId`; no new branch run is produced.
|