dsh-auto-review 0.5.2 → 0.5.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to `dsh-auto-review` are documented here. The repo is pre-release; versions follow the DeepSeek Harness `0.1.0-rc.x` target runtime and bump on every behavior change.
4
4
 
5
+ ## [0.5.3] — 2026-08-21
6
+
7
+ ### Changed
8
+
9
+ - Peers and dev/test pins bumped `0.1.0-rc.7` → `0.1.0-rc.8` (npm `next` moved; the batch rc8 compatibility release). Peer specs now use the `>=0.1.0-rc.8 <0.2.0` range form; runtime `dependencies` and `devDependencies` pin the exact `0.1.0-rc.8` line, and `dshWorkshop.dshVersions` lists `0.1.0-rc.8`.
10
+ - `isUnmarkedHostVersion` bound extended to `0.1.0-rc.8`: the rc.8 release still drops the `ignorable` envelope marker (the stamping fix exists on harness master only), so rc.8 hosts are detected BEFORE the first append and session-log audit degrades to the in-memory mirror instead of polluting the log with an unmarked `autoReview/*` event. Docs (five-language READMEs, AGENTS.md) and the README compatibility table updated to the rc.8 line.
11
+ - `scripts/check-host-versions.mjs` now accepts both exact (`0.1.0-rc.N`) and range (`>=0.1.0-rc.N <0.2.0`) peer pins and fails when they no longer cover the newest rc line published by `@deepseek-ai/dsh` (on `latest` or `next`).
12
+
5
13
  ## [0.5.2] — 2026-08-19
6
14
 
7
15
  ### Fixed
package/README.es.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | Superficie | Estado |
26
26
  |---|---|
27
- | Harness | DeepSeek Harness `0.1.0-rc.7` (peers fijados a `0.1.0-rc.7`) |
27
+ | Harness | DeepSeek Harness `0.1.0-rc.8` (peers fijados a `0.1.0-rc.8`) |
28
28
  | Node | `^22.19.0 \|\| >=24.0.0` |
29
29
  | Plataformas | Todas (answerer de host; panel web opcional mediante la capacidad de proyección de sesión) |
30
30
  | Modelo | Cualquiera (el revisor hereda la ruta del agente de sesión; `reviewerModel` la reemplaza) |
@@ -216,7 +216,7 @@ Puerta de CI: el proceso sale con 0 solo cuando todos los casos de todas las sui
216
216
 
217
217
  - **Permisos**: el manifiesto del workshop declara `session:append`, `approval:answer`, `subagent:spawn`, `command:register` y `tools:observe`.
218
218
  - **Datos**: nada se guarda en disco; el búfer circular de informes está en memoria y acotado. Sin peticiones de red propias.
219
- - **Registro de sesión**: los eventos `autoReview/*` llevan identidad del revisor, veredicto, razón, riesgo y duración — añadidos con el marcador de sobre `ignorable: true` para que cualquier compilación cargue el registro. Los hosts cuyo `Session.append` es anterior al marcador (todas las líneas rc publicadas hasta `0.1.0-rc.7` — ninguna versión lo estampa aún) se detectan antes del primer append (precomprobación de la versión del peer y luego sondeo del sobre devuelto) y la auditoría se degrada a un espejo en memoria con comentarios sin marcador, de modo que las sesiones siguen siendo cargables en todas partes.
219
+ - **Registro de sesión**: los eventos `autoReview/*` llevan identidad del revisor, veredicto, razón, riesgo y duración — añadidos con el marcador de sobre `ignorable: true` para que cualquier compilación cargue el registro. Los hosts cuyo `Session.append` es anterior al marcador (todas las líneas rc publicadas hasta `0.1.0-rc.8` — ninguna versión lo estampa aún) se detectan antes del primer append (precomprobación de la versión del peer y luego sondeo del sobre devuelto) y la auditoría se degrada a un espejo en memoria con comentarios sin marcador, de modo que las sesiones siguen siendo cargables en todas partes.
220
220
 
221
221
  ## Límites de seguridad
222
222
 
@@ -236,7 +236,7 @@ Puerta de CI: el proceso sale con 0 solo cuando todos los casos de todas las sui
236
236
  - Las reglas de riesgo emparejan el `reason` de la solicitud, el `toolName` o los `arguments` redactados de la llamada según su `field`; otras condiciones van en `toolsPolicy.overrides`.
237
237
  - La anulación `/auto-review approve` autoriza la siguiente revisión de la misma herramienta, no la llamada histórica exacta; una acción diferente sobre la misma herramienta la consume.
238
238
  - Los eventos de veredicto son solo-registro; el panel web de revisión lee la proyección `autoReview` plegada (el flujo crudo de eventos nunca llega a los plugins del navegador).
239
- - `autoReview/state` y `autoReview/verdict` se añaden con el marcador de sobre `ignorable: true` en hosts que lo respetan, de modo que cualquier compilación del harness carga el registro — los lectores que no conocen los tipos fuera del repo simplemente omiten esos registros. En hosts rc publicados (rc.1–rc.7) el runtime detecta el marcador descartado y nunca escribe estos eventos (el espejo en memoria mantiene el comando, los presupuestos, el disyuntor y `approve` durante la sesión); las sesiones ya contaminadas por versiones anteriores a 0.5.1 pueden repararse con `scripts/repair-session-logs.mjs` de `dsh-permission-rules` (su conjunto de tipos por defecto cubre los cinco eventos `autoReview/*`).
239
+ - `autoReview/state` y `autoReview/verdict` se añaden con el marcador de sobre `ignorable: true` en hosts que lo respetan, de modo que cualquier compilación del harness carga el registro — los lectores que no conocen los tipos fuera del repo simplemente omiten esos registros. En hosts rc publicados (rc.1–rc.8) el runtime detecta el marcador descartado y nunca escribe estos eventos (el espejo en memoria mantiene el comando, los presupuestos, el disyuntor y `approve` durante la sesión); las sesiones ya contaminadas por versiones anteriores a 0.5.1 pueden repararse con `scripts/repair-session-logs.mjs` de `dsh-permission-rules` (su conjunto de tipos por defecto cubre los cinco eventos `autoReview/*`).
240
240
  - El canal git necesita la única clave `allowBuilds` que el CLI de `dsh` imprime para el propio `dsh-auto-review`. El repo incluye su propio `pnpm-workspace.yaml` con `allowBuilds: { esbuild: true }`; `typescript` + `tsdown` son `dependencies` regulares.
241
241
  - El compañero invariant opcional necesita el servicio `invariants` (composiciones agent-spine como headless/ACP); el perfil web plano no lo proporciona, por lo que la fila se incluye comentada en el parche del bundle.
242
242
 
package/README.hi.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | सतह | स्थिति |
26
26
  |---|---|
27
- | Harness | DeepSeek Harness `0.1.0-rc.7` (peers `0.1.0-rc.7` पर पिन किए गए) |
27
+ | Harness | DeepSeek Harness `0.1.0-rc.8` (peers `0.1.0-rc.8` पर पिन किए गए) |
28
28
  | Node | `^22.19.0 \|\| >=24.0.0` |
29
29
  | प्लेटफ़ॉर्म | सभी (होस्ट answerer; सत्र-प्रोजेक्शन क्षमता के ज़रिए वैकल्पिक वेब समीक्षा पैनल) |
30
30
  | मॉडल | कोई भी (समीक्षक सत्र एजेंट का मार्ग विरासत में लेता है; `reviewerModel` उसे बदल देता है) |
@@ -216,7 +216,7 @@ CI द्वार: प्रक्रिया केवल तभी 0 से
216
216
 
217
217
  - **अनुमतियाँ**: workshop मेनिफ़ेस्ट `session:append`, `approval:answer`, `subagent:spawn`, `command:register` और `tools:observe` घोषित करता है।
218
218
  - **डेटा**: डिस्क पर कुछ नहीं लिखा जाता; रिपोर्ट रिंग बफ़र मेमोरी में और सीमित है। अपनी ओर से कोई नेटवर्क अनुरोध नहीं।
219
- - **सत्र लॉग**: `autoReview/*` घटनाएँ समीक्षक पहचान, निर्णय, कारण, जोखिम और अवधि रखती हैं — लिफ़ाफ़े के `ignorable: true` मार्कर के साथ जोड़ी जाती हैं ताकि कोई भी बिल्ड लॉग लोड कर सके। जिन होस्ट का `Session.append` मार्कर से पुराना है (`0.1.0-rc.7` तक की हर रिलीज़ rc लाइन — कोई रिलीज़ अभी मार्कर नहीं छापती) उन्हें पहले append से पहले ही पहचान लिया जाता है (peer संस्करण पूर्व-जाँच, फिर लौटे लिफ़ाफ़े की जाँच) और ऑडिट बिना मार्कर वाले फीडबैक के साथ इन-मेमोरी मिरर में डिग्रेड हो जाता है — सत्र हर जगह लोड होने योग्य रहते हैं।
219
+ - **सत्र लॉग**: `autoReview/*` घटनाएँ समीक्षक पहचान, निर्णय, कारण, जोखिम और अवधि रखती हैं — लिफ़ाफ़े के `ignorable: true` मार्कर के साथ जोड़ी जाती हैं ताकि कोई भी बिल्ड लॉग लोड कर सके। जिन होस्ट का `Session.append` मार्कर से पुराना है (`0.1.0-rc.8` तक की हर रिलीज़ rc लाइन — कोई रिलीज़ अभी मार्कर नहीं छापती) उन्हें पहले append से पहले ही पहचान लिया जाता है (peer संस्करण पूर्व-जाँच, फिर लौटे लिफ़ाफ़े की जाँच) और ऑडिट बिना मार्कर वाले फीडबैक के साथ इन-मेमोरी मिरर में डिग्रेड हो जाता है — सत्र हर जगह लोड होने योग्य रहते हैं।
220
220
 
221
221
  ## सुरक्षा सीमाएँ
222
222
 
@@ -236,7 +236,7 @@ CI द्वार: प्रक्रिया केवल तभी 0 से
236
236
  - जोखिम नियम अपने `field` के अनुसार अनुरोध के `reason`, `toolName` या संशोधित कॉल `arguments` से मिलते हैं; बाकी शर्तें `toolsPolicy.overrides` में रखें।
237
237
  - `/auto-review approve` ओवरराइड उसी टूल की अगली समीक्षा को अधिकृत करता है, उस सटीक ऐतिहासिक कॉल को नहीं; उसी टूल पर एक भिन्न क्रिया उसे उपभोग कर लेती है।
238
238
  - निर्णय घटनाएँ केवल-लॉग हैं; वेब समीक्षा पैनल मुड़ा हुआ `autoReview` प्रोजेक्शन पढ़ता है (कच्ची घटना धारा ब्राउज़र प्लगइन तक कभी नहीं पहुँचती)।
239
- - मार्कर का सम्मान करने वाले होस्ट पर `autoReview/state` और `autoReview/verdict` लिफ़ाफ़े के `ignorable: true` मार्कर के साथ जोड़े जाते हैं, ताकि कोई भी harness बिल्ड लॉग लोड करे — जो पाठक रेपो-बाहरी प्रकारों को नहीं जानते वे उन रिकॉर्ड को बस छोड़ देते हैं। रिलीज़ किए गए rc होस्ट (rc.1–rc.7) पर runtime छूटे मार्कर का पता लगाकर ये घटनाएँ कभी नहीं लिखता (इन-मेमोरी मिरर कमांड, बजट, ब्रेकर और `approve` को सत्र भर बनाए रखता है); 0.5.1 से पहले के संस्करणों से दूषित सत्र `dsh-permission-rules` के `scripts/repair-session-logs.mjs` से मरम्मत किए जा सकते हैं (इसका डिफ़ॉल्ट सेट सभी पाँच `autoReview/*` घटना प्रकारों को कवर करता है)।
239
+ - मार्कर का सम्मान करने वाले होस्ट पर `autoReview/state` और `autoReview/verdict` लिफ़ाफ़े के `ignorable: true` मार्कर के साथ जोड़े जाते हैं, ताकि कोई भी harness बिल्ड लॉग लोड करे — जो पाठक रेपो-बाहरी प्रकारों को नहीं जानते वे उन रिकॉर्ड को बस छोड़ देते हैं। रिलीज़ किए गए rc होस्ट (rc.1–rc.8) पर runtime छूटे मार्कर का पता लगाकर ये घटनाएँ कभी नहीं लिखता (इन-मेमोरी मिरर कमांड, बजट, ब्रेकर और `approve` को सत्र भर बनाए रखता है); 0.5.1 से पहले के संस्करणों से दूषित सत्र `dsh-permission-rules` के `scripts/repair-session-logs.mjs` से मरम्मत किए जा सकते हैं (इसका डिफ़ॉल्ट सेट सभी पाँच `autoReview/*` घटना प्रकारों को कवर करता है)।
240
240
  - git चैनल को वह एकल `allowBuilds` कुंजी चाहिए जो `dsh` CLI स्वयं `dsh-auto-review` के लिए छापता है। रेपो अपना `pnpm-workspace.yaml` `allowBuilds: { esbuild: true }` के साथ शिप करता है; `typescript` + `tsdown` नियमित `dependencies` हैं।
241
241
  - वैकल्पिक invariant साथी को `invariants` सेवा चाहिए (agent-spine रचनाएँ जैसे headless/ACP); सादा web प्रोफ़ाइल वह नहीं देता, इसलिए पंक्ति बंडल पैच में टिप्पणी-बंद शिप होती है।
242
242
 
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | Surface | Status |
26
26
  |---|---|
27
- | Harness | DeepSeek Harness `0.1.0-rc.7` (peers pinned to `0.1.0-rc.7`) |
27
+ | Harness | DeepSeek Harness `0.1.0-rc.8` (peers pinned to `0.1.0-rc.8`) |
28
28
  | Node | `^22.19.0 \|\| >=24.0.0` |
29
29
  | Platforms | All (host answerer; optional Web review panel via the session-projection capability) |
30
30
  | Model | Any (the reviewer inherits the session agent's route; `reviewerModel` overrides) |
@@ -216,7 +216,7 @@ CI gate: the process exits 0 only when every case of every suite passed — drop
216
216
 
217
217
  - **Permissions**: the workshop manifest declares `session:append`, `approval:answer`, `subagent:spawn`, `command:register`, and `tools:observe`.
218
218
  - **Data**: nothing is stored on disk; the report ring buffer is in-memory and bounded. No network requests of its own.
219
- - **Session log**: `autoReview/*` events carry reviewer identity, verdict, reason, risk, and duration — appended with the envelope's `ignorable: true` marker so any build loads the log. Hosts whose `Session.append` predates the marker (every released rc line through `0.1.0-rc.7` — no release stamps it yet) are detected before the first append (peer-version pre-check, then a probe of the returned envelope) and audit degrades to an in-memory mirror with marker-free feedback, so sessions stay loadable everywhere.
219
+ - **Session log**: `autoReview/*` events carry reviewer identity, verdict, reason, risk, and duration — appended with the envelope's `ignorable: true` marker so any build loads the log. Hosts whose `Session.append` predates the marker (every released rc line through `0.1.0-rc.8` — no release stamps it yet) are detected before the first append (peer-version pre-check, then a probe of the returned envelope) and audit degrades to an in-memory mirror with marker-free feedback, so sessions stay loadable everywhere.
220
220
 
221
221
  ## Security boundaries
222
222
 
@@ -236,7 +236,7 @@ CI gate: the process exits 0 only when every case of every suite passed — drop
236
236
  - Risk rules match the request `reason`, the `toolName`, or the redacted call `arguments` per their `field`; other conditions belong in `toolsPolicy.overrides`.
237
237
  - The `/auto-review approve` override authorizes the next same-tool review, not the exact historical call; a different action on the same tool consumes it.
238
238
  - The verdict events are log-only; the Web review panel reads the folded `autoReview` projection (the raw event stream never reaches browser plugins).
239
- - `autoReview/state` and `autoReview/verdict` are appended with the envelope's `ignorable: true` marker on hosts that honor it, so any harness build loads the log — readers that do not know the out-of-repo types simply skip those records. On released rc hosts (rc.1–rc.7) the runtime detects the dropped marker and never writes these events (the in-memory mirror keeps the command, budgets, breaker, and `approve` working for the session); sessions already polluted by pre-0.5.1 versions can be repaired with `scripts/repair-session-logs.mjs` from `dsh-permission-rules` (its default target set covers all five `autoReview/*` event types).
239
+ - `autoReview/state` and `autoReview/verdict` are appended with the envelope's `ignorable: true` marker on hosts that honor it, so any harness build loads the log — readers that do not know the out-of-repo types simply skip those records. On released rc hosts (rc.1–rc.8) the runtime detects the dropped marker and never writes these events (the in-memory mirror keeps the command, budgets, breaker, and `approve` working for the session); sessions already polluted by pre-0.5.1 versions can be repaired with `scripts/repair-session-logs.mjs` from `dsh-permission-rules` (its default target set covers all five `autoReview/*` event types).
240
240
  - The git channel needs the single `allowBuilds` key the `dsh` CLI prints for `dsh-auto-review` itself. The repo ships its own `pnpm-workspace.yaml` with `allowBuilds: { esbuild: true }`; `typescript` + `tsdown` are regular `dependencies`.
241
241
  - The optional invariant companion needs the `invariants` service (agent-spine compositions such as headless/ACP); the plain web profile does not provide it, so the row ships commented out in the bundle patch.
242
242
 
package/README.pt.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | Superfície | Status |
26
26
  |---|---|
27
- | Harness | DeepSeek Harness `0.1.0-rc.7` (peers fixados em `0.1.0-rc.7`) |
27
+ | Harness | DeepSeek Harness `0.1.0-rc.8` (peers fixados em `0.1.0-rc.8`) |
28
28
  | Node | `^22.19.0 \|\| >=24.0.0` |
29
29
  | Plataformas | Todas (answerer de host; painel web opcional via capacidade de projeção de sessão) |
30
30
  | Modelo | Qualquer (o revisor herda a rota do agente da sessão; `reviewerModel` sobrescreve) |
@@ -216,7 +216,7 @@ Portão de CI: o processo sai com 0 somente quando todos os casos de todas as su
216
216
 
217
217
  - **Permissões**: o manifesto do workshop declara `session:append`, `approval:answer`, `subagent:spawn`, `command:register` e `tools:observe`.
218
218
  - **Dados**: nada é gravado em disco; o buffer circular de relatórios fica em memória e é limitado. Sem requisições de rede próprias.
219
- - **Log de sessão**: os eventos `autoReview/*` carregam identidade do revisor, veredito, razão, risco e duração — anexados com o marcador de envelope `ignorable: true` para que qualquer build carregue o log. Hosts cujo `Session.append` é anterior ao marcador (todas as linhas rc publicadas até `0.1.0-rc.7` — nenhuma versão o estampa ainda) são detectados antes do primeiro append (pré-checagem da versão do peer e, em seguida, sondagem do envelope retornado) e a auditoria degrada para um espelho em memória com feedback sem marcador, mantendo as sessões carregáveis em qualquer lugar.
219
+ - **Log de sessão**: os eventos `autoReview/*` carregam identidade do revisor, veredito, razão, risco e duração — anexados com o marcador de envelope `ignorable: true` para que qualquer build carregue o log. Hosts cujo `Session.append` é anterior ao marcador (todas as linhas rc publicadas até `0.1.0-rc.8` — nenhuma versão o estampa ainda) são detectados antes do primeiro append (pré-checagem da versão do peer e, em seguida, sondagem do envelope retornado) e a auditoria degrada para um espelho em memória com feedback sem marcador, mantendo as sessões carregáveis em qualquer lugar.
220
220
 
221
221
  ## Limites de segurança
222
222
 
@@ -236,7 +236,7 @@ Portão de CI: o processo sai com 0 somente quando todos os casos de todas as su
236
236
  - Regras de risco emparelham o `reason` da solicitação, o `toolName` ou os `arguments` redigidos da chamada conforme seu `field`; outras condições pertencem a `toolsPolicy.overrides`.
237
237
  - A anulação `/auto-review approve` autoriza a próxima revisão da mesma ferramenta, não a chamada histórica exata; uma ação diferente na mesma ferramenta a consome.
238
238
  - Os eventos de veredito são somente-log; o painel web de revisão lê a projeção `autoReview` dobrada (o fluxo bruto de eventos nunca chega aos plugins do navegador).
239
- - `autoReview/state` e `autoReview/verdict` são anexados com o marcador de envelope `ignorable: true` em hosts que o respeitam, para que qualquer build do harness carregue o log — leitores que não conhecem os tipos fora do repo simplesmente pulam esses registros. Em hosts rc publicados (rc.1–rc.7) o runtime detecta o marcador descartado e nunca escreve esses eventos (o espelho em memória mantém o comando, os orçamentos, o disjuntor e `approve` durante a sessão); sessões já poluídas por versões anteriores a 0.5.1 podem ser reparadas com `scripts/repair-session-logs.mjs` de `dsh-permission-rules` (seu conjunto padrão cobre os cinco tipos de evento `autoReview/*`).
239
+ - `autoReview/state` e `autoReview/verdict` são anexados com o marcador de envelope `ignorable: true` em hosts que o respeitam, para que qualquer build do harness carregue o log — leitores que não conhecem os tipos fora do repo simplesmente pulam esses registros. Em hosts rc publicados (rc.1–rc.8) o runtime detecta o marcador descartado e nunca escreve esses eventos (o espelho em memória mantém o comando, os orçamentos, o disjuntor e `approve` durante a sessão); sessões já poluídas por versões anteriores a 0.5.1 podem ser reparadas com `scripts/repair-session-logs.mjs` de `dsh-permission-rules` (seu conjunto padrão cobre os cinco tipos de evento `autoReview/*`).
240
240
  - O canal git precisa da única chave `allowBuilds` que o CLI do `dsh` imprime para o próprio `dsh-auto-review`. O repo envia seu próprio `pnpm-workspace.yaml` com `allowBuilds: { esbuild: true }`; `typescript` + `tsdown` são `dependencies` regulares.
241
241
  - O companheiro invariant opcional precisa do serviço `invariants` (composições agent-spine como headless/ACP); o perfil web simples não o fornece, então a linha é enviada comentada no patch do bundle.
242
242
 
package/README.zh.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  | 方面 | 状态 |
26
26
  |---|---|
27
- | Harness | DeepSeek Harness `0.1.0-rc.7`(peer 依赖锁定在 `0.1.0-rc.7`) |
27
+ | Harness | DeepSeek Harness `0.1.0-rc.8`(peer 依赖锁定在 `0.1.0-rc.8`) |
28
28
  | Node | `^22.19.0 \|\| >=24.0.0` |
29
29
  | 平台 | 全部(宿主 answerer;可选 Web 审查面板,依赖会话投影能力) |
30
30
  | 模型 | 任意(审查器默认继承会话代理的路由;`reviewerModel` 可覆盖) |
@@ -216,7 +216,7 @@ CI 门禁:仅当每个套件的每个用例都通过时,进程才以 0 退
216
216
 
217
217
  - **权限**:workshop 清单声明 `session:append`、`approval:answer`、`subagent:spawn`、`command:register` 与 `tools:observe`。
218
218
  - **数据**:不向磁盘写入任何内容;报告环形缓冲在内存中且有界。自身不发起网络请求。
219
- - **会话日志**:`autoReview/*` 事件携带审查器身份、裁决、理由、风险与耗时 —— 以信封 `ignorable: true` 标记追加,任何构建都能加载日志。`Session.append` 早于该标记的宿主(迄今发布的所有 rc 版本,至 `0.1.0-rc.7`——任何发布版都还未盖标记)会在首次追加前被探测出来(peer 版本预检 + 返回信封探测),审计降级为内存镜像 + 无标记反馈,会话日志始终保持可加载。
219
+ - **会话日志**:`autoReview/*` 事件携带审查器身份、裁决、理由、风险与耗时 —— 以信封 `ignorable: true` 标记追加,任何构建都能加载日志。`Session.append` 早于该标记的宿主(迄今发布的所有 rc 版本,至 `0.1.0-rc.8`——任何发布版都还未盖标记)会在首次追加前被探测出来(peer 版本预检 + 返回信封探测),审计降级为内存镜像 + 无标记反馈,会话日志始终保持可加载。
220
220
 
221
221
  ## 安全边界
222
222
 
@@ -236,7 +236,7 @@ CI 门禁:仅当每个套件的每个用例都通过时,进程才以 0 退
236
236
  - 风险规则按各自的 `field` 匹配请求的 `reason`、`toolName` 或脱敏后的调用 `arguments`;其他条件应放入 `toolsPolicy.overrides`。
237
237
  - `/auto-review approve` 覆盖授权的是下一次对同一工具的审查,而不是那次确切的历史调用;同一工具上的不同操作也会消耗它。
238
238
  - 裁决事件是仅日志的;Web 审查面板读取折叠后的 `autoReview` 投影(原始事件流绝不会到达浏览器插件)。
239
- - `autoReview/state` 与 `autoReview/verdict` 在支持标记的宿主上以信封 `ignorable: true` 追加,任何 harness 构建都能加载日志 —— 不认识这些仓库外类型的读取方直接跳过这些记录。已发布的 rc 宿主(rc.1–rc.7)上运行时会检测到标记被丢弃并完全不写这些事件(内存镜像继续提供命令、预算、熔断器与 `approve`);pre-0.5.1 版本污染的会话可用 `dsh-permission-rules` 的 `scripts/repair-session-logs.mjs` 修复(其默认目标集已覆盖全部五种 `autoReview/*` 事件)。
239
+ - `autoReview/state` 与 `autoReview/verdict` 在支持标记的宿主上以信封 `ignorable: true` 追加,任何 harness 构建都能加载日志 —— 不认识这些仓库外类型的读取方直接跳过这些记录。已发布的 rc 宿主(rc.1–rc.8)上运行时会检测到标记被丢弃并完全不写这些事件(内存镜像继续提供命令、预算、熔断器与 `approve`);pre-0.5.1 版本污染的会话可用 `dsh-permission-rules` 的 `scripts/repair-session-logs.mjs` 修复(其默认目标集已覆盖全部五种 `autoReview/*` 事件)。
240
240
  - git 渠道需要 `dsh` CLI 为 `dsh-auto-review` 打印的那个 `allowBuilds` 键。仓库自带 `pnpm-workspace.yaml`,声明 `allowBuilds: { esbuild: true }`;`typescript` + `tsdown` 是普通 `dependencies`。
241
241
  - 可选的 invariant 配套插件需要 `invariants` 服务(agent-spine 组合,如 headless/ACP);普通 web profile 不提供该服务,所以该行在 bundle 补丁中默认被注释。
242
242
 
package/bin/dsh-eval.mjs CHANGED
File without changes
package/lib/index.js CHANGED
@@ -35,7 +35,7 @@ function isMarkedAuditEvent(result) {
35
35
  /**
36
36
  * Whether a `@deepseek-ai/dsh-session` version line predates the
37
37
  * `ignorable` envelope-marker surface: every released rc line through
38
- * `0.1.0-rc.7` silently drops the marker from `Session.append` options
38
+ * `0.1.0-rc.8` silently drops the marker from `Session.append` options
39
39
  * (the stamping fix exists on harness master only — no release carries it
40
40
  * yet), so audit events written by those builds land unmarked and break
41
41
  * resume on stricter hosts. Extend the bound when a new rc line ships that
@@ -43,12 +43,12 @@ function isMarkedAuditEvent(result) {
43
43
  * versions are treated as possibly-marker-aware and verified by the append
44
44
  * probe.
45
45
  * @param version - the installed peer version string.
46
- * @returns true for the known-unmarked rc.1–rc.7 lines.
46
+ * @returns true for the known-unmarked rc.1–rc.8 lines.
47
47
  */
48
48
  function isUnmarkedHostVersion(version) {
49
49
  const match = /^0\.1\.0-rc\.(\d+)$/.exec(version.trim());
50
50
  if (match === null) return false;
51
- return Number(match[1]) <= 7;
51
+ return Number(match[1]) <= 8;
52
52
  }
53
53
  /**
54
54
  * The installed `@deepseek-ai/dsh-session` version, or `null` when
@@ -28,7 +28,7 @@ export declare function isMarkedAuditEvent(result: unknown): boolean;
28
28
  /**
29
29
  * Whether a `@deepseek-ai/dsh-session` version line predates the
30
30
  * `ignorable` envelope-marker surface: every released rc line through
31
- * `0.1.0-rc.7` silently drops the marker from `Session.append` options
31
+ * `0.1.0-rc.8` silently drops the marker from `Session.append` options
32
32
  * (the stamping fix exists on harness master only — no release carries it
33
33
  * yet), so audit events written by those builds land unmarked and break
34
34
  * resume on stricter hosts. Extend the bound when a new rc line ships that
@@ -36,7 +36,7 @@ export declare function isMarkedAuditEvent(result: unknown): boolean;
36
36
  * versions are treated as possibly-marker-aware and verified by the append
37
37
  * probe.
38
38
  * @param version - the installed peer version string.
39
- * @returns true for the known-unmarked rc.1–rc.7 lines.
39
+ * @returns true for the known-unmarked rc.1–rc.8 lines.
40
40
  */
41
41
  export declare function isUnmarkedHostVersion(version: string): boolean;
42
42
  /**
@@ -29,7 +29,7 @@ export function isMarkedAuditEvent(result) {
29
29
  /**
30
30
  * Whether a `@deepseek-ai/dsh-session` version line predates the
31
31
  * `ignorable` envelope-marker surface: every released rc line through
32
- * `0.1.0-rc.7` silently drops the marker from `Session.append` options
32
+ * `0.1.0-rc.8` silently drops the marker from `Session.append` options
33
33
  * (the stamping fix exists on harness master only — no release carries it
34
34
  * yet), so audit events written by those builds land unmarked and break
35
35
  * resume on stricter hosts. Extend the bound when a new rc line ships that
@@ -37,13 +37,13 @@ export function isMarkedAuditEvent(result) {
37
37
  * versions are treated as possibly-marker-aware and verified by the append
38
38
  * probe.
39
39
  * @param version - the installed peer version string.
40
- * @returns true for the known-unmarked rc.1–rc.7 lines.
40
+ * @returns true for the known-unmarked rc.1–rc.8 lines.
41
41
  */
42
42
  export function isUnmarkedHostVersion(version) {
43
43
  const match = /^0\.1\.0-rc\.(\d+)$/.exec(version.trim());
44
44
  if (match === null)
45
45
  return false;
46
- return Number(match[1]) <= 7;
46
+ return Number(match[1]) <= 8;
47
47
  }
48
48
  /**
49
49
  * The installed `@deepseek-ai/dsh-session` version, or `null` when
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-auto-review",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Second-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.",
5
5
  "private": false,
6
6
  "author": {
@@ -101,7 +101,7 @@
101
101
  ],
102
102
  "compatibility": {
103
103
  "dshVersions": [
104
- "0.1.0-rc.7"
104
+ "0.1.0-rc.8"
105
105
  ]
106
106
  },
107
107
  "capability": {
@@ -134,35 +134,35 @@
134
134
  },
135
135
  "peerDependencies": {
136
136
  "@deepseek-ai/cordis": "^4.0.1",
137
- "@deepseek-ai/dsh-agent": "0.1.0-rc.7",
138
- "@deepseek-ai/dsh-brand": "0.1.0-rc.7",
139
- "@deepseek-ai/dsh-commands": "0.1.0-rc.7",
140
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.7",
141
- "@deepseek-ai/dsh-llm": "0.1.0-rc.7",
142
- "@deepseek-ai/dsh-session": "0.1.0-rc.7",
143
- "@deepseek-ai/dsh-session-projection": "0.1.0-rc.7",
144
- "@deepseek-ai/dsh-subagent": "0.1.0-rc.7",
145
- "@deepseek-ai/dsh-tools": "0.1.0-rc.7",
146
- "@deepseek-ai/dsh-user-approval": "0.1.0-rc.7",
137
+ "@deepseek-ai/dsh-agent": ">=0.1.0-rc.8 <0.2.0",
138
+ "@deepseek-ai/dsh-brand": ">=0.1.0-rc.8 <0.2.0",
139
+ "@deepseek-ai/dsh-commands": ">=0.1.0-rc.8 <0.2.0",
140
+ "@deepseek-ai/dsh-invariants": ">=0.1.0-rc.8 <0.2.0",
141
+ "@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
142
+ "@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
143
+ "@deepseek-ai/dsh-session-projection": ">=0.1.0-rc.8 <0.2.0",
144
+ "@deepseek-ai/dsh-subagent": ">=0.1.0-rc.8 <0.2.0",
145
+ "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
146
+ "@deepseek-ai/dsh-user-approval": ">=0.1.0-rc.8 <0.2.0",
147
147
  "@deepseek-ai/schemastery": "^3.18.0"
148
148
  },
149
149
  "dependencies": {
150
- "@deepseek-ai/dsh-agent-spine-demo": "0.1.0-rc.7",
151
- "@deepseek-ai/dsh-app-boot": "0.1.0-rc.7",
152
- "@deepseek-ai/dsh-credentials-local": "0.1.0-rc.7",
153
- "@deepseek-ai/dsh-fs-observation-policy": "0.1.0-rc.7",
154
- "@deepseek-ai/dsh-fs-sandbox": "0.1.0-rc.7",
155
- "@deepseek-ai/dsh-home-paths": "0.1.0-rc.7",
156
- "@deepseek-ai/dsh-llm-deepseek": "0.1.0-rc.7",
157
- "@deepseek-ai/dsh-sandbox-local": "0.1.0-rc.7",
158
- "@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.7",
159
- "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.0-rc.7",
160
- "@deepseek-ai/dsh-settings-file": "0.1.0-rc.7",
161
- "@deepseek-ai/dsh-subagent-fork-in-process": "0.1.0-rc.7",
162
- "@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.0-rc.7",
163
- "@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.7",
164
- "@deepseek-ai/dsh-tool-fs": "0.1.0-rc.7",
165
- "@deepseek-ai/dsh-tool-fs-search": "0.1.0-rc.7",
150
+ "@deepseek-ai/dsh-agent-spine-demo": "0.1.0-rc.8",
151
+ "@deepseek-ai/dsh-app-boot": "0.1.0-rc.8",
152
+ "@deepseek-ai/dsh-credentials-local": "0.1.0-rc.8",
153
+ "@deepseek-ai/dsh-fs-observation-policy": "0.1.0-rc.8",
154
+ "@deepseek-ai/dsh-fs-sandbox": "0.1.0-rc.8",
155
+ "@deepseek-ai/dsh-home-paths": "0.1.0-rc.8",
156
+ "@deepseek-ai/dsh-llm-deepseek": "0.1.0-rc.8",
157
+ "@deepseek-ai/dsh-sandbox-local": "0.1.0-rc.8",
158
+ "@deepseek-ai/dsh-sandbox-policy": "0.1.0-rc.8",
159
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.1.0-rc.8",
160
+ "@deepseek-ai/dsh-settings-file": "0.1.0-rc.8",
161
+ "@deepseek-ai/dsh-subagent-fork-in-process": "0.1.0-rc.8",
162
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.1.0-rc.8",
163
+ "@deepseek-ai/dsh-subprocess-local": "0.1.0-rc.8",
164
+ "@deepseek-ai/dsh-tool-fs": "0.1.0-rc.8",
165
+ "@deepseek-ai/dsh-tool-fs-search": "0.1.0-rc.8",
166
166
  "tsdown": "^0.22.14",
167
167
  "typescript": "^7.0.2",
168
168
  "yaml": "^2.8.2",
@@ -172,22 +172,22 @@
172
172
  "@deepseek-ai/cordis": "^4.0.1",
173
173
  "@deepseek-ai/cordis-plugin-include": "1.0.6",
174
174
  "@deepseek-ai/cordis-plugin-loader": "1.0.2",
175
- "@deepseek-ai/dsh-agent": "0.1.0-rc.7",
176
- "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.7",
177
- "@deepseek-ai/dsh-brand": "0.1.0-rc.7",
178
- "@deepseek-ai/dsh-client-connection": "0.1.0-rc.7",
179
- "@deepseek-ai/dsh-client-locale": "0.1.0-rc.7",
180
- "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.7",
181
- "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.7",
182
- "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.7",
183
- "@deepseek-ai/dsh-commands": "0.1.0-rc.7",
184
- "@deepseek-ai/dsh-invariants": "0.1.0-rc.7",
185
- "@deepseek-ai/dsh-llm": "0.1.0-rc.7",
186
- "@deepseek-ai/dsh-session": "0.1.0-rc.7",
187
- "@deepseek-ai/dsh-session-projection": "0.1.0-rc.7",
188
- "@deepseek-ai/dsh-subagent": "0.1.0-rc.7",
189
- "@deepseek-ai/dsh-tools": "0.1.0-rc.7",
190
- "@deepseek-ai/dsh-user-approval": "0.1.0-rc.7",
175
+ "@deepseek-ai/dsh-agent": "0.1.0-rc.8",
176
+ "@deepseek-ai/dsh-api-remotes": "0.1.0-rc.8",
177
+ "@deepseek-ai/dsh-brand": "0.1.0-rc.8",
178
+ "@deepseek-ai/dsh-client-connection": "0.1.0-rc.8",
179
+ "@deepseek-ai/dsh-client-locale": "0.1.0-rc.8",
180
+ "@deepseek-ai/dsh-client-runtime": "0.1.0-rc.8",
181
+ "@deepseek-ai/dsh-client-ui-conversation": "0.1.0-rc.8",
182
+ "@deepseek-ai/dsh-client-ui-slots": "0.1.0-rc.8",
183
+ "@deepseek-ai/dsh-commands": "0.1.0-rc.8",
184
+ "@deepseek-ai/dsh-invariants": "0.1.0-rc.8",
185
+ "@deepseek-ai/dsh-llm": "0.1.0-rc.8",
186
+ "@deepseek-ai/dsh-session": "0.1.0-rc.8",
187
+ "@deepseek-ai/dsh-session-projection": "0.1.0-rc.8",
188
+ "@deepseek-ai/dsh-subagent": "0.1.0-rc.8",
189
+ "@deepseek-ai/dsh-tools": "0.1.0-rc.8",
190
+ "@deepseek-ai/dsh-user-approval": "0.1.0-rc.8",
191
191
  "@deepseek-ai/schemastery": "^3.18.0",
192
192
  "@types/node": "^26.2.0",
193
193
  "@types/react": "18.3.31",
@@ -198,6 +198,7 @@
198
198
  "react-dom": "18.3.1",
199
199
  "vitest": "^4.1.10"
200
200
  },
201
+ "license": "Apache-2.0",
201
202
  "scripts": {
202
203
  "build": "node scripts/prepare.mjs",
203
204
  "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
@@ -205,9 +206,6 @@
205
206
  "test:coverage": "vitest run --coverage",
206
207
  "lint": "oxlint",
207
208
  "check:readmes": "node scripts/check-readme-sync.mjs",
208
- "prepare": "node scripts/prepare.mjs",
209
- "verify:self-contained": "node scripts/verify-self-contained.mjs",
210
- "prepublishOnly": "pnpm run typecheck && pnpm test && pnpm run build && pnpm run verify:self-contained"
211
- },
212
- "license": "Apache-2.0"
213
- }
209
+ "verify:self-contained": "node scripts/verify-self-contained.mjs"
210
+ }
211
+ }
package/src/audit.ts CHANGED
@@ -35,7 +35,7 @@ export function isMarkedAuditEvent(result: unknown): boolean {
35
35
  /**
36
36
  * Whether a `@deepseek-ai/dsh-session` version line predates the
37
37
  * `ignorable` envelope-marker surface: every released rc line through
38
- * `0.1.0-rc.7` silently drops the marker from `Session.append` options
38
+ * `0.1.0-rc.8` silently drops the marker from `Session.append` options
39
39
  * (the stamping fix exists on harness master only — no release carries it
40
40
  * yet), so audit events written by those builds land unmarked and break
41
41
  * resume on stricter hosts. Extend the bound when a new rc line ships that
@@ -43,12 +43,12 @@ export function isMarkedAuditEvent(result: unknown): boolean {
43
43
  * versions are treated as possibly-marker-aware and verified by the append
44
44
  * probe.
45
45
  * @param version - the installed peer version string.
46
- * @returns true for the known-unmarked rc.1–rc.7 lines.
46
+ * @returns true for the known-unmarked rc.1–rc.8 lines.
47
47
  */
48
48
  export function isUnmarkedHostVersion(version: string): boolean {
49
49
  const match = /^0\.1\.0-rc\.(\d+)$/.exec(version.trim())
50
50
  if (match === null) return false
51
- return Number(match[1]) <= 7
51
+ return Number(match[1]) <= 8
52
52
  }
53
53
 
54
54
  /**