dsh-plugin-wsl-env 0.27.0 → 0.29.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.
@@ -72,7 +72,7 @@ GUI 文件树与预览保留随包的 `workspace-files` 行。它的客户端半
72
72
  | `dsh-plugin-wsl-env/cwd-prompt-tool` | `wsl-cwd-prompt-tool` | [`lib/cwd-prompt-tool.js`](../lib/cwd-prompt-tool.js) | 以 harness 随包提供的相同语义提供模型的 read/`cd` 工具,把返回的 `cwd` 改写为发行版的 POSIX 形式。 |
73
73
  | `dsh-plugin-wsl-env/wsl-doctor-tool` | `wsl-doctor-tool` | [`lib/wsl-doctor-tool.js`](../lib/wsl-doctor-tool.js) | `wsl_doctor` 模型工具:进程内的 doctor(合并活跃常驻 agent 的状态),按 `depth`/`section` 限定范围,渲染为逐项摘要。 |
74
74
  | `dsh-plugin-wsl-env/wsl-doctor-command` | `wsl-doctor-command` | [`lib/wsl-doctor-command.js`](../lib/wsl-doctor-command.js) | `/wsl-doctor` UI 命令:把独立的 doctor CLI 作为宿主子进程启动,并在与模型历史分离的界面中渲染同一份摘要。 |
75
- | `dsh-plugin-wsl-env/status` | `wsl-status` | [`lib/status.js`](../lib/status.js) | 侧边栏面板的路由(`GET /api/wsl-env/status`):列出已安装的发行版,并对其中一个发行版运行 quick doctor;同一路由上的 `POST` 运行 `--fix-owned` 完整检查(同时修复陈旧的 scope 或损坏的 agent 缓存并重新验证);同一路由上的 `DELETE` 清除单个(`?distro=<名称>`)或全部已存结果,不枚举、不探测发行版。响应经 Host 连接已认证的 exact-Fetch 通道返回;每个发行版的最近结果持久化在 `$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`,运行中发行版的已存结果会在后台刷新。 |
75
+ | `dsh-plugin-wsl-env/status` | `wsl-status` | [`lib/status.js`](../lib/status.js) | 侧边栏面板的路由(`GET /api/wsl-env/status`):列出已安装的发行版,对单个发行版运行 quick doctor;`GET ?distro=<名称>&full=1` 运行完整只读诊断;显式 `POST` 以 `--fix-owned` 修复插件自有状态并重新验证;`DELETE` 清除单个(`?distro=<名称>`)或全部已存结果,不探测发行版。响应经 Host 连接已认证的 exact-Fetch 通道返回;每个发行版的最近结果持久化在 `$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`,运行中发行版的已存结果会在后台刷新。 |
76
76
  | `dsh-plugin-wsl-env`(裸名) | `wsl-env-client-host` | [`lib/client-host.js`](../lib/client-host.js) | 有意为之的空操作宿主半边;它的裸名挂载让 web 客户端名册能够提供 `./client`:侧边栏的 WSL 环境面板,以及添加后的访问模式提示。 |
77
77
 
78
78
  三个路径与 interop 助手不导入任何 DSH 包。
@@ -399,8 +399,10 @@ peer 投影到安装处的同一份副本,因此镜像与运行中的应用共
399
399
  零依赖。CI 在 Linux 和 Windows、Node 22 和 24 上运行 `pnpm test`,只在
400
400
  Node 24 上运行 `pnpm run test:coverage`——阈值标志需要 Node 22.8。Node 20
401
401
  是有意缺席的:`engines` 要求 `^22.19.0 || >=24.0.0`,即 harness 宿主自身的
402
- 下限。harness 探针是手动步骤,因为托管 runner 没有 WSL 发行版,也没有可挂载
403
- 的 profile。
402
+ 下限。本机 harness 探针仍是真机步骤;托管
403
+ `.github/workflows/cloud-wsl-gate.yml` 已实现 Ubuntu 准备与 Desktop 退出后
404
+ 运行 19 项闭合 Probe 套件的入口。只有一次运行上传完整日志/结果,
405
+ 且每项均为 PASS、无 SKIP/NOT RUN 时,才接受为套件真机证据。
404
406
 
405
407
  探针脚本共用
406
408
  [`test/probe/env.sh`](https://github.com/Big-Dao/dsh-plugin-wsl-env/blob/main/test/probe/env.sh),
@@ -535,7 +537,7 @@ peer 下限、新 agent 握手和陈旧的会话 scope,并报告带版本的 `
535
537
  同一份报告通过三个界面应答:这个独立 CLI(设计上无 peer 依赖,因此插件自身
536
538
  运行时损坏时它仍能启动)、`/wsl-doctor` UI 命令(在宿主侧启动 CLI,渲染与
537
539
  模型历史分离),以及 `wsl_doctor` 模型工具(进程内,通过 `lib/doctor-live.js`
538
- 合并活跃常驻 agent 的状态)。侧边栏面板以同样方式渲染快速摘要并提交完整检查动作
539
- (`--fix-owned`:仅插件自有状态)。运行可以限定范围(CLI 上的 `--quick`、
540
+ 合并活跃常驻 agent 的状态)。侧边栏面板渲染快速摘要与完整只读诊断;发现可修复项后
541
+ 由用户单独提交插件状态修复(`--fix-owned`)。运行可以限定范围(CLI 上的 `--quick`、
540
542
  `--sections <csv>`;工具上的 `depth` / `section`),报告按发行版分组逐项列出
541
543
  每项检查。各界面与判定契约见 [DIAGNOSTICS.zh.md](DIAGNOSTICS.zh.md)。
@@ -520,8 +520,9 @@ error-code map. Whether a row override applied, read from the profile's
520
520
  `cordis.patch.yml` and the Plugins page: the desktop app has no `dsh` command,
521
521
  so the composed profile has no command-line view.
522
522
  The sidebar's **WSL environment** panel renders the same quick digest over
523
- `GET /api/wsl-env/status` and posts the full-check action to the same route: a
524
- doctor run with `--fix-owned`, which sweeps stale session scopes and purges a
523
+ `GET /api/wsl-env/status`; `?distro=<name>&full=1` runs a full read-only
524
+ diagnosis. When it finds repairable plugin-owned state, a separate `POST` to
525
+ the same route runs `--fix-owned`, sweeping stale session scopes or purging a
525
526
  broken agent cache, then re-verifies both. Each row states when the check ran, its source (manual or background) and its
526
527
  result structure (per-status totals and per-section tallies). The last result
527
528
  per distro is stored at `$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`
@@ -532,12 +533,12 @@ the stored result. Nothing is labeled expired — each checked row offers
532
533
  **清除** and the card offers **清除全部**; both `DELETE` the same route
533
534
  (optionally with `?distro=`) to drop the stored verdict without enumerating,
534
535
  probing or modifying a distro. Deleting the file still resets the panel's
535
- history equivalently. Every row offers **快速检查** and **完整检查**: the
536
- latter is the full doctor with `--fix-owned`, which repairs plugin-owned state
537
- (stale session scopes or a broken agent cache) and re-verifies it. Both keep
538
- their names after a result and run again on every click; every other warning
539
- keeps its manual remedy. It never installs packages or rewrites Windows-owned
540
- or user configuration.
536
+ history equivalently. Every row offers **快速检查** and **完整诊断**: both are
537
+ read-only. When the full report finds repairable plugin-owned state (stale
538
+ session scopes or a broken agent cache), a separate **修复插件状态** action
539
+ runs `--fix-owned` and re-verifies it. Check actions remain available after a
540
+ result; every other warning keeps its manual remedy. Repair never installs
541
+ packages or rewrites Windows-owned or user configuration.
541
542
  Above the distro rows, the **Plugin version** card reads the installed and
542
543
  running plugin versions and the newest installable stable release; its
543
544
  **一键升级** button posts to `/api/wsl-env/plugin-update`, and only that click
@@ -468,17 +468,18 @@ profile 补丁与废弃键陷阱——每个失败附可复制的修复。运行
468
468
  判定契约与错误码地图见 [DIAGNOSTICS.zh.md](DIAGNOSTICS.zh.md)。
469
469
  某行的覆盖是否生效,直接查看 profile 的 `cordis.patch.yml` 与 Plugins 页面:
470
470
  桌面应用没有 `dsh` 命令,合成后的 profile 没有命令行视图。
471
- 侧边栏的 **WSL 环境** 面板经 `GET /api/wsl-env/status` 渲染同一份快速摘要,
472
- 并把“完整检查”动作提交到同一路由:以 `--fix-owned` 运行 doctor,清扫残留
473
- session scope、清理损坏的 agent 缓存并逐一复检。行内显示上次检查时间、来源(手动或后台)与结果结构(各状态计数与分区分布)。
471
+ 侧边栏的 **WSL 环境** 面板经 `GET /api/wsl-env/status` 渲染同一份快速摘要;
472
+ `?distro=<名称>&full=1` 运行完整只读诊断,发现插件自有状态可修复时,才显示独立的
473
+ 修复动作。该动作以 `POST` 提交同一路由,使用 `--fix-owned` 清扫残留 session scope、
474
+ 清理损坏的 agent 缓存并逐一复检。行内显示上次检查时间、来源(手动或后台)与结果结构(各状态计数与分区分布)。
474
475
  每个发行版的最后一次结果存放在 `$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`
475
476
  (宿主未指定 home 时为 `~/.dsh/...`),页面刷新或应用重启后仍可见。加载时会对
476
477
  正在运行的发行版在后台复核;后台失败会覆盖已存结果。不标记“已过期”——每个
477
478
  已检查行提供“清除”、卡片头部提供“清除全部”,经同一路由的 `DELETE`(可带
478
479
  `?distro=`)删除本地保存的结果,不枚举、不探测也不修改发行版;直接删除该文件
479
- 仍可等效重置面板历史。每行固定提供“快速检查”和“完整检查”两个检查动作:后者
480
- 以 `--fix-owned` 运行完整 doctor,会修复插件自有状态(残留 session scope、
481
- 损坏的 agent 缓存)并复检;两个按钮在结果出现后仍保持原名,再次点击即再次执行。
480
+ 仍可等效重置面板历史。每行提供“快速检查”和“完整诊断”两个只读检查动作;完整
481
+ 诊断发现可修复项后,单独显示“修复插件状态”,并在修复后复检。检查按钮在结果出现
482
+ 后仍可再次点击。修复只处理插件自有状态(残留 session scope、损坏的 agent 缓存);
482
483
  其余告警保留各自的手动处理办法。它不会安装软件包,也不会改写 Windows 或用户所有的配置。
483
484
  在发行版行上方,「插件版本」卡片读取已安装与运行中的插件版本及最新的可安装稳定版;
484
485
  它的「一键升级」提交到 `/api/wsl-env/plugin-update`,只有这次点击会调用宿主插件
@@ -45,9 +45,9 @@ of what it claims to have fixed, the affected checks carry the after state,
45
45
  and the verdict is recomputed — `ready`, or the remaining blockers. The
46
46
  plugin-owned state is repaired automatically: the stale-scope sweep and a
47
47
  purge of the agent cache when an entry is not executable (the handshake is
48
- re-probed after the purge). `--fix-owned` narrows a run to exactly those two —
49
- the sidebar panel's full-check action uses it — and cannot be combined with
50
- `--install`. Remedies that rewrite user- or distro-owned files (`.wslconfig`,
48
+ re-probed after the purge). `--fix-owned` narrows a repair to exactly those two
49
+ and cannot be combined with `--install`. Remedies that rewrite user- or
50
+ distro-owned files (`.wslconfig`,
51
51
  `/etc/wsl.conf`, a WSL1 conversion, installing a distro) are never automated;
52
52
  the remedy text says so.
53
53
 
@@ -59,9 +59,10 @@ environment variables, and no telemetry.
59
59
  ## The surfaces
60
60
 
61
61
  The doctor answers through three surfaces with one report; the sidebar's
62
- **WSL environment** panel renders the same quick digest over its own route and
63
- posts the full-check action (`--fix-owned`, which also repairs plugin-owned
64
- state). The same panel's **Plugin version** card is separate from the doctor: it reads the
62
+ **WSL environment** panel renders the quick digest and a full read-only report
63
+ over its own route. Only after a full report identifies repairable plugin-owned
64
+ state can the user separately trigger `--fix-owned`. The same panel's **Plugin
65
+ version** card is separate from the doctor: it reads the
65
66
  installed/running plugin versions and offers the one-click upgrade through the
66
67
  host plugin manager ([CONFIGURATION](CONFIGURATION.md), `wsl-plugin-update`).
67
68
 
@@ -80,12 +81,12 @@ host plugin manager ([CONFIGURATION](CONFIGURATION.md), `wsl-plugin-update`).
80
81
  the itemized report renders detached from model history (no model turn, no
81
82
  tokens). The sidebar's **WSL environment** panel runs the same quick
82
83
  check per distro through the authenticated status route, showing a badge with
83
- numbered failing items and warnings. Every row offers two fixed check
84
- actions: **快速检查** (the quick doctor scope) and **完整检查** (the full
85
- doctor with `--fix-owned`, which also repairs plugin-owned state — stale
86
- scopes or a broken agent cache — and answers with its before → after fix
87
- rows). Both keep their names after a result and run again on every click;
88
- there is no separate "recheck" action. The row also states when the check ran, its source
84
+ numbered failing items and warnings. Every row offers **快速检查** (the quick
85
+ doctor scope) and **完整诊断** (the full doctor, read-only). When that report
86
+ finds repairable plugin-owned state — stale scopes or a broken agent cache —
87
+ the row separately offers **修复插件状态**. It uses `--fix-owned` and
88
+ answers with before → after repair rows; it never installs packages or
89
+ rewrites user configuration. Actions can be run again after a result. The row also states when the check ran, its source
89
90
  (manual or the page-load background refresh), and how its results landed —
90
91
  per-status totals and per-section tallies. Each checked row expands to the
91
92
  full list of checks that run executed, grouped by section with each status
@@ -96,8 +97,7 @@ host plugin manager ([CONFIGURATION](CONFIGURATION.md), `wsl-plugin-update`).
96
97
  are already up, and a failed one replaces the stored result as observed.
97
98
  Each checked row offers **清除** and the card offers **清除全部**; both
98
99
  `DELETE` the same route, dropping the local store without starting a doctor
99
- run or enumerating a distro. Manual warnings keep their remedies; full
100
- diagnosis still uses the entry above and `/wsl-doctor`. Without a command adapter (headless, ACP) the row is a no-op and
100
+ run or enumerating a distro. Manual warnings keep their remedies. Without a command adapter (headless, ACP) the row is a no-op and
101
101
  the CLI is the surface. Without `--distro` the handler names the distro from
102
102
  the session's live working directory (the agent-scoped `workingDirectory`
103
103
  service first, then the Session header's `cwd`); when neither yields a WSL
@@ -37,9 +37,8 @@
37
37
 
38
38
  `--fix` 以复验报告收尾:每个修复后都跟着一次对它声称修好的东西的全新探查,
39
39
  受影响的检查项携带 after 状态,verdict 重算——`ready`,或剩余阻断者。
40
- 插件自有状态会被自动修复:残留 scope 清扫,以及缓存条目不可执行时清理
41
- agent 缓存(清理后重新握手)。`--fix-owned` 把运行收窄到这两类——侧边栏
42
- 面板的“完整检查”动作即用它——且不能与 `--install` 同用。会改写用户或 distro
40
+ 插件自有状态可自动修复:残留 scope 清扫,以及缓存条目不可执行时清理
41
+ agent 缓存(清理后重新握手)。`--fix-owned` 把修复收窄到这两类,且不能与 `--install` 同用。会改写用户或 distro
43
42
  所有文件的修复(`.wslconfig`、`/etc/wsl.conf`、WSL1 转换、安装 distro)
44
43
  永不开启自动化;补救文本会写明。
45
44
 
@@ -50,7 +49,8 @@ bundle 不含文件内容、环境变量,也没有遥测。
50
49
  ## 三个入口
51
50
 
52
51
  doctor 通过三个入口给出同一份报告;侧边栏的 **WSL 环境** 面板经自己的
53
- 路由渲染同一份快速摘要,并提交“完整检查”动作(`--fix-owned`)。
52
+ 路由渲染快速摘要与完整只读诊断;只有完整诊断列出可修复项后,用户才可单独
53
+ 触发 `--fix-owned` 插件状态修复。
54
54
  同一面板的「插件版本」卡片独立于 doctor:它读取已安装/运行中的插件版本,并提供
55
55
  经宿主插件管理器执行的一键升级(见 [CONFIGURATION.zh.md](CONFIGURATION.zh.md) 的 `wsl-plugin-update`)。
56
56
 
@@ -67,17 +67,18 @@ doctor 通过三个入口给出同一份报告;侧边栏的 **WSL 环境** 面
67
67
  `/wsl-doctor [quick|full|<分区>] [--distro <名称>]`;命令面在宿主侧执行,
68
68
  handler 子进程运行独立 CLI,逐项报告直接渲染在 UI 上、不进模型历史
69
69
  (无模型回合、零 token)。侧边栏的 **WSL 环境** 面板按发行版运行同源的快速检查,
70
- 结果以状态徽标、编号的待修项与告警列出。每行固定提供两个检查动作:**快速检查**
71
- (doctor 的 quick 范围)与 **完整检查**(完整 doctor,`--fix-owned`,会修复插件
72
- 自有状态——残留 scope 或损坏的 agent 缓存——并返回 before → after 的修复行)。
73
- 两个按钮在结果出现后仍保持原名,再次点击即再次执行,不存在单独的“重新检查”动作。
70
+ 结果以状态徽标、编号的待修项与告警列出。每行提供 **快速检查**(doctor 的 quick 范围)
71
+ 与 **完整诊断**(完整 doctor,只读)两个检查动作;完整诊断发现可修复的插件自有状态
72
+ (残留 scope 或损坏的 agent 缓存)后,才显示独立的 **修复插件状态** 动作。
73
+ 修复以 `--fix-owned` 执行并返回 before → after 结果;不会安装软件包或改写用户配置。
74
+ 各动作在结果出现后仍可再次点击。
74
75
  行内同时给出上次检查时间、来源(手动或页面加载时的后台复核)与结果结构(各状态
75
76
  计数与分区分布)。每个已检查的行可展开查看本次运行执行的全部检查项,按分区分组、逐项带状态与依据;
76
- 快速检查未触及的目录项只以“完整检查还会运行 N 项”计数,不伪装成结果。最后一次结果存放在本地(`$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`,
77
+ 快速检查未触及的目录项只以“完整诊断还会运行 N 项”计数,不伪装成结果。最后一次结果存放在本地(`$DSH_HOME/cache/dsh-plugin-wsl-env/status.json`,
77
78
  缺省回退到 `~/.dsh`),刷新后仍可见;后台复核只针对正在运行的发行版,失败时按
78
79
  实际观测覆盖已存结果。每个已检查行可“清除”该发行版的结果,卡片头部可“清除全部”;
79
80
  两者经同一路由的 `DELETE` 完成,只删本地存档,不启动 doctor、不枚举发行版。
80
- 手动告警保留各自处理办法;
81
+ 手动告警保留各自处理办法;完整诊断与修复是两个独立动作。
81
82
  完整诊断仍走上面的入口与 `/wsl-doctor`。没有命令适配器的部署(headless、ACP)中该行是
82
83
  no-op,CLI 就是入口。未给 `--distro` 时,handler 从会话当前工作目录解析
83
84
  发行版(先读 agent 作用域的 `workingDirectory` 服务,再退回 Session 头部
@@ -204,10 +204,11 @@ remedy-only — the remedy text carries the exact command — and the fixable se
204
204
  is limited to what is safe and reversible (stale scopes, the plugin-owned
205
205
  agent cache, the optional packages behind `--install` plus a confirmation, and
206
206
  the Windows git safe.directory whitelist behind the same gate). `--fix-owned`
207
- narrows a run to the plugin-owned two (stale scopes and the cache); the
208
- sidebar panel's full-check action is exactly that run, so it can never install
209
- a package or write Windows-owned configuration, and it never implies that a
210
- remedy-only warning is auto-fixable. The verdict never upgrades the
207
+ narrows a repair to the plugin-owned two (stale scopes and the cache); the
208
+ sidebar's **修复插件状态** action is exactly that run, while full diagnosis
209
+ itself is read-only. It can never install a package or write Windows-owned
210
+ configuration, and it never implies that a remedy-only warning is auto-fixable.
211
+ The verdict never upgrades the
211
212
  sandbox's security statement: `enforcement: partial` is untouched.
212
213
 
213
214
  ## Session-start advisories
@@ -180,8 +180,8 @@ doctor 的 `verdict` 在生效配置(应用加载的 profile 层叠加在随
180
180
  携带确切的命令;可自动修复的集合仅限安全且可逆的部分(过期 scope、插件自有的
181
181
  agent 缓存、`--install` 加确认后的可选软件包、以及同一道确认门后的
182
182
  Windows git `safe.directory` 白名单)。`--fix-owned` 把运行收窄到插件自有
183
- 的两类(过期 scope 与缓存);侧边栏面板的“完整检查”动作正是这次运行,因此它
184
- 永远不会安装软件包或改写 Windows 所有的配置,也不会暗示仅能手动处理的告警
183
+ 的两类(过期 scope 与缓存);侧边栏面板的“修复插件状态”动作正是这次运行,
184
+ 完整诊断本身只读。因此它永远不会安装软件包或改写 Windows 所有的配置,也不会暗示仅能手动处理的告警
185
185
  可被自动修复。裁决从不升级沙箱的安全声明:
186
186
  `enforcement: partial` 不受影响。
187
187
 
package/docs/MIGRATION.md CHANGED
@@ -83,7 +83,7 @@ shows the composed value.
83
83
  | Packed install/upgrade/uninstall + boot | `pnpm run e2e:install` (temp `DSH_HOME`, 0.17.1 → current over the peer raise, marker; newest published stable → current, then a boot-time probe asserts all three takeovers are this plugin's classes; **host-stopped path, not the HMR update**) | manual, this machine (13/13 on 2026-11-17 with the boot leg; the origin moved 0.11.0 → 0.17.1 because dsh 0.2.2-rc.1 rightly rejects the exact-pin era) |
84
84
  | HMR update path (running profile) | install the previous published version in a temp `DSH_HOME`, start the host with a live session, upgrade to the candidate through the plugin manager; assert `application: applied` and no rollback, and after a restart that `subprocess`/`fs`/`directoryPicker` are served by this plugin's classes (the update itself may land deferred, with `providers.takeover` a warn) | **passed on 2026-11-17** with a throwaway `DSH_HOME` (web template; HMR and plugin-manager rows present), 0.26.1 from the registry, a live `standard` session, and `updateBundle` to `0.26.3-rc.0`: `application: applied`, `changed: true`, `restore: null`, and after a restart all three services were this plugin's classes. The run used the headless web composition, not the desktop GUI. The same harness with a Git-pinned dependency lost the bundle from `dsh.profile.bundles` (a separate Git-install finding, not the registry path); **rechecked on 0.2.2-rc.5 on 2026-11-19 with the same commit pair and it no longer reproduces** — the selection is written back after remove and all three services stay this plugin's classes after a restart (record: docs/superpowers/probe-runs/2026-11-19-hmr-gate-rc5.md). Record: docs/superpowers/probe-runs/2026-11-17-hmr-gate.md; repeatable gate: `test/probe/hmr-gate.sh` (own `DSH_HOME`, needs GitHub access) |
85
85
  | Session-scoped sandbox (ADR 0001) | `pnpm run probe:session-sandbox` from a real WSL terminal (systemd user manager; not inside DSH, not in the closed-app suite) | manual; **11 passed / 0 failed / 0 skipped on 2026-11-17** — run in a fresh WSL session (`wsl.exe -d ubuntu --exec`), which sees systemd as PID 1; the probe asserts manager reachability, linger, transient-scope lifetime, `/tmp` sharing and `--unshare-pid` |
86
- | Real-machine probe suite | `test/probe/run-all-when-closed.sh --include-fs` (needs the app closed) | manual; 15/15 on 2026-10-31 and again 2026-11-05 (docs/superpowers/probe-runs/); the suite grew to 17 on 2026-11-06 — the first 17-probe run on the same day passed 16 and failed the new `two-distro.sh` on a wrong assertion vehicle (session-scoped `DSH_WSL_DISTRO` is absent on a direct `ctx.shell` seam); after the probe was reworked to per-distro `/tmp` markers it passed alone, giving all 17 probes a pass on this machine (2026-11-06-probe-suite.md); 17/17 again on 2026-11-12 against the rc.2 host; `auto-preset.sh` joined the suite on 2026-11-17 (17 fast probes plus `run.sh`, 18 with `--include-fs`). The first closed-app run was **17/18**: `auto-preset.sh` failed because the `wslfs` probe profile does not compose the plugin bundle, and after that fix it still called `createSession` before auto-preset's `ctx.inject` wrapper had installed. Both causes were probe-side: the probe now layers the package patch, disables the profile's root `wsl-fs`, waits for the auto-preset fiber and the method's identity change, and reports seam/preset diagnostics. The full suite was rerun the same day (2026-11-17 20:16): **18/18, FULL PASS** (docs/superpowers/probe-runs/2026-11-17-partial-probes.md); `cache-write.sh` joined on 2026-11-19 (18 fast probes, 19 with `--include-fs`); it passed standalone the same day, and the next full closed-app run will include it |
86
+ | Real-machine probe suite | `pnpm run probe:all-closed` (detached local runner) or `test/probe/run-all-when-closed.sh --include-fs --wait-only` (manual-close compatibility) | Local and hosted runs are both supported. The local default closes ordinary Harness processes, refuses stale `--profile wslfs` probe instances, and runs all 19 probes. The suite was 15/15 on 2026-10-31 and 2026-11-05, grew to 17 probes and passed locally in November, and added `auto-preset.sh` and `cache-write.sh`. GitHub-hosted `windows-latest` run [44850105713](https://github.com/Big-Dao/dsh-plugin-wsl-env/actions/runs/44850105713) first produced verifiable hosted FULL PASS evidence: 19 PASS, 0 FAIL/SKIP/NOT RUN. |
87
87
  | Clean Win11 + Ubuntu first run ≤ 5 min | a clean machine, a stopwatch | **not run** (the project's machine is already configured) |
88
88
  | aarch64 executed | the native 18-check suite under qemu in CI | **run in CI** (physical aarch64 WSL is out of scope; see COMPATIBILITY.md) |
89
89
  | No open P0 bug for 30 days | issue tracker | time-based; cannot be asserted from a checkout |
@@ -71,7 +71,7 @@
71
71
  | 打包安装/升级/卸载 + 启动 | `pnpm run e2e:install`(临时 `DSH_HOME`,0.17.1 → 当前版本,跨 peer 下限抬升,marker;最新已发布版 → 当前版本后用探针启动,断言三个接管都是本插件的类;**宿主关闭路径,不含 HMR 更新**) | 手动,本机(2026-11-17 含启动 leg 为 13/13;起点从 0.11.0 移至 0.17.1,因为 dsh 0.2.2-rc.1 正确拒绝了精确钉版时期) |
72
72
  | HMR 更新路径(运行中 profile) | 临时 `DSH_HOME` 安装上一个已发布版本 → 启动 host 并保留活动会话 → 经插件管理升级到候选版本;断言 `application: applied`、无回滚,重启后 `subprocess`/`fs`/`directoryPicker` 由本插件的类提供(升级当时可能处于延迟接管,`providers.takeover` 为 warn) | **2026-11-17 通过**:临时 `DSH_HOME`(web 模板,含 HMR 与 plugin-manager 行)、registry 安装 0.26.1、活动 `standard` 会话,`updateBundle` 到 `0.26.3-rc.0` 得到 `application: applied`、`changed: true`、`restore: null`,重启后三个服务均为本插件的类。本次用 headless web composition,不是桌面 GUI 点击。同一套 harness 换成 Git 固定 commit 依赖后,`dsh.profile.bundles` 丢失 bundle(Git 安装路径的独立问题,不影响 registry 路径);**2026-11-19 在 0.2.2-rc.5 上用同一对 commit 复验不再复现**,选择在 remove 后写回,重启后三个服务仍为本插件的类(记录:docs/superpowers/probe-runs/2026-11-19-hmr-gate-rc5.md)。记录:docs/superpowers/probe-runs/2026-11-17-hmr-gate.md;可复跑:`bash test/probe/hmr-gate.sh`(独立 `DSH_HOME`,需要 GitHub 访问) |
73
73
  | 会话级沙箱(ADR 0001) | 在真实 WSL 终端运行 `pnpm run probe:session-sandbox`(systemd user manager;不在 DSH 内,也不在关闭应用套件里) | 手动;**2026-11-17 为 11 passed / 0 failed / 0 skipped**——在全新 WSL 会话(`wsl.exe -d ubuntu --exec`)中运行,systemd 是 PID 1;探针断言 manager 可达性、linger、transient scope 生命周期、`/tmp` 共享与 `--unshare-pid` |
74
- | 真机探针套件 | `test/probe/run-all-when-closed.sh --include-fs`(需要应用关闭) | 手动;2026-10-31 与 2026-11-05 均为 15/15(docs/superpowers/probe-runs/);套件在 2026-11-06 增至 17 项——同日首次 17 项运行通过 16 项,新的 `two-distro.sh` 因断言载体错误而失败(会话作用域的 `DSH_WSL_DISTRO` 在直接 `ctx.shell` 接缝上不存在);将探针改为按发行版的 `/tmp` 标记后单独通过,使本机 17 项探针全部通过(2026-11-06-probe-suite.md);2026-11-12 针对 rc.2 宿主再次 17/17;`auto-preset.sh` 于 2026-11-17 加入套件(17 项快速探针,`--include-fs` 时加 `run.sh`,共 18 项)。首次关闭应用的全套结果为 **17/18**:`auto-preset.sh` 失败,原因是 `wslfs` 探针 profile 不组合插件 bundle;修好组合后又发现探针在 auto-preset 的 `ctx.inject` 包装器安装前就调用了 `createSession`。两处都是探针侧问题:探针现在追加包自身的 patch、禁用 profile 的根 `wsl-fs`、等待 auto-preset 行的 fiber 与方法身份变化,并输出 seam/preset 诊断。同日 20:16 重跑整套:**18/18,FULL PASS**(docs/superpowers/probe-runs/2026-11-17-partial-probes.md);`cache-write.sh` 于 2026-11-19 加入(18 项快速探针,`--include-fs` 时共 19 项);同日单独运行通过,下一次关闭应用的全套会包含它 |
74
+ | 真机探针套件 | `pnpm run probe:all-closed`(本地脱离式运行)或 `test/probe/run-all-when-closed.sh --include-fs --wait-only`(手动关闭兼容模式) | 本机及托管均可运行。本地默认关闭普通 Harness 进程、拒绝残留的 `--profile wslfs` probe 实例并运行全部 19 项;2026-10-31 与 2026-11-05 均为 15/15(docs/superpowers/probe-runs/);套件在 2026-11-06 增至 17 项并于本机通过;2026-11-12 针对 rc.2 宿主再次 17/17;`auto-preset.sh` 于 2026-11-17 加入,随后 `cache-write.sh` 于 2026-11-19 加入。托管 GitHub `windows-latest` Gate 在 run [44850105713](https://github.com/Big-Dao/dsh-plugin-wsl-env/actions/runs/44850105713) 首次产出可证伪的真实 FULL PASS artifact:19 项全部 PASS、0 FAIL/SKIP/NOT RUN。 |
75
75
  | 干净 Win11 + Ubuntu 首次运行 ≤ 5 分钟 | 干净机器、秒表 | **未运行**(项目机器已配置) |
76
76
  | aarch64 已执行 | CI 中 qemu 下的 native 18 项检查套件 | **已在 CI 运行**(物理 aarch64 WSL 不在范围内;见 COMPATIBILITY.md) |
77
77
  | 30 天内无未关闭的 P0 bug | issue tracker | 基于时间;无法从代码检出中断言 |
@@ -34,9 +34,9 @@ supplies the WSL environment.
34
34
  No terminal at hand? Several ways without one: the sidebar's **WSL
35
35
  environment** panel runs a quick doctor check per distro, listing the badge,
36
36
  numbered failing items and warnings. Every row offers **快速检查** and
37
- **完整检查**; the latter is the full doctor with `--fix-owned`, which also
38
- repairs plugin-owned state (stale scopes and a broken agent cache) when
39
- present. Both run again on every click; typing `/wsl-doctor [quick|full|<section>]`
37
+ **完整诊断**; both are read-only. When the full report finds repairable
38
+ plugin-owned state, a separate **修复插件状态** action appears and re-verifies
39
+ the result. Typing `/wsl-doctor [quick|full|<section>]`
40
40
  in the composer also runs host-side and renders in the UI — no model turn, no
41
41
  tokens; in a session, ask for a diagnosis and the model runs the `wsl_doctor`
42
42
  tool (mounted by this plugin), the verdict landing in the transcript; and the
@@ -53,8 +53,8 @@ from `wsl.exe -l -v` itself, so no separate version check is needed. Doctor is
53
53
  read-only unless you pass `--fix`
54
54
  (the stale-scope sweep and a broken agent cache, both re-verified; the Windows
55
55
  git trust after a confirmation) or `--fix --install` (packages, after a
56
- confirmation); `--fix-owned` restricts a fix run to the plugin-owned state
57
- (the panel's full-check action); `--bundle <path>` writes
56
+ confirmation); `--fix-owned` restricts a fix run to plugin-owned state
57
+ (the panel's separate repair action); `--bundle <path>` writes
58
58
  the diagnostic file a setup report attaches (`--redact` strips the paths
59
59
  from it). A run can be scoped — `--quick` probes the first-command
60
60
  prerequisites plus one combined optional-tool probe (~10 s), `--sections
@@ -96,11 +96,12 @@ or an UNC path directly. The session's commands, file tools, terminal and previe
96
96
  all run in that distro; a Windows folder keeps the normal Windows environment.
97
97
 
98
98
  The sidebar's **WSL environment** panel is the diagnostic page: it lists the
99
- installed distros, runs one distro's quick doctor check on demand (showing
100
- whether bwrap, systemd and Linger are in place), and offers **快速检查** and
101
- **完整检查** on every row; the latter is the full doctor with `--fix-owned`,
102
- which also repairs plugin-owned state (a stale session scope or a broken agent
103
- cache). Both keep their names after a result and run again on every click; the
99
+ installed distros, runs one distro's quick or full read-only doctor check on
100
+ demand (showing whether bwrap, systemd and Linger are in place), and offers
101
+ **快速检查** and **完整诊断** on every row. If the full report finds repairable
102
+ plugin-owned state (a stale session scope or a broken agent cache), a separate
103
+ **修复插件状态** action runs `--fix-owned` and re-verifies the result. Check
104
+ actions remain available after a result; the
104
105
  row also shows when the check ran, its source (manual, or the page-load
105
106
  background refresh), and its result structure (pass/warn/fail/info/skip, plus
106
107
  the per-section tallies). Its **Plugin version** card reads the
@@ -108,11 +109,10 @@ installed/running versions and offers the one-click upgrade described above.
108
109
  The last result survives a page reload from the local store, and a stored
109
110
  result for a running distro is re-checked in the background on load. Each
110
111
  checked row offers **清除** and the card **清除全部** to drop local results
111
- without probing or modifying a distro. The run
112
- sweeps the scopes and purges the cache when they need it, then re-verifies;
113
- every other warning keeps its manual remedy, and the action never installs
112
+ without probing or modifying a distro. The explicit repair sweeps the scopes and purges the cache when they need it,
113
+ then re-verifies; every other warning keeps its manual remedy, and the action never installs
114
114
  packages or rewrites Windows-owned configuration (a check boots a stopped
115
- distro, so either action only runs on a click). Workspaces still open through
115
+ distro, so checks and repairs only run on a click). Workspaces still open through
116
116
  **Add workspace**; selecting a folder inside a
117
117
  distro through the picker makes the app ask once how to open it: **Remote
118
118
  WSL** (the default — commands, files and the terminal all run in the distro) or
@@ -124,6 +124,12 @@ running a non-WSL preset keeps a warning above the composer, with a one-click sw
124
124
  while the session is still blank and the access-record fix once a turn has started.
125
125
  Two distros can be open at once, each with its own environment.
126
126
 
127
+ The panel keeps its initial guidance brief and puts detailed version and
128
+ check/repair explanations in collapsed disclosures. While an action is running,
129
+ it names the current operation and notes that a stopped distro may start; it
130
+ does not invent a percentage or time estimate. Buttons and disclosures work
131
+ with the keyboard, and status and error updates expose screen-reader semantics.
132
+
127
133
  ### Open the workspace in VS Code (Remote-WSL)
128
134
 
129
135
  Opening the WSL folder as a Windows UNC share works but is the degraded mode:
@@ -30,9 +30,9 @@ dsh headless "run the tests" # 单任务、输出答案后退出
30
30
  | Node `^22.19.0` 或 `>=24.0.0` | 仅源码/开发工作需要 | 使用已发布的插件时,发行版内不需要 Node |
31
31
 
32
32
  手边没有终端?有几条不依赖终端的路:侧边栏的 **WSL 环境** 面板按发行版运行
33
- doctor 快速检查,结果以状态徽标、编号的待修项与告警列出;每行固定提供 **快速检查**
34
- 与 **完整检查**,后者以 `--fix-owned` 运行完整 doctor,并修复插件自有状态
35
- (残留 scope、损坏的 agent 缓存);两个按钮再次点击即再次执行;在输入框里输入
33
+ doctor 快速检查,结果以状态徽标、编号的待修项与告警列出;每行提供 **快速检查**
34
+ 与只读的 **完整诊断**;完整诊断发现可修复的插件自有状态后,才显示独立的
35
+ **修复插件状态**(残留 scope、损坏的 agent 缓存),并在修复后复检;在输入框里输入
36
36
  `/wsl-doctor [quick|full|<分区>]` 同样在宿主侧执行、直接渲染在 UI,不进模型
37
37
  对话、零 token;在会话里请求诊断,模型会运行本插件挂载的 `wsl_doctor` 工具,
38
38
  判定落在对话里;会话启动预检在每次会话打开时把同样的判定写进日志,只有 blocked
@@ -45,7 +45,7 @@ doctor(`scripts/doctor.mjs`,或在检出目录中运行 `pnpm run doctor`)
45
45
  读取,无需单独确认。doctor 默认只读,除非传入 `--fix`(清理过期 scope、清理损坏的
46
46
  agent 缓存,两者都会复检;以及确认后的 Windows git 信任)或
47
47
  `--fix --install`(安装软件包,需确认);`--fix-owned` 把修复限定在
48
- 插件自有状态(面板的“完整检查”动作);
48
+ 插件自有状态(面板的“修复插件状态”动作);
49
49
  `--bundle <路径>` 写出可附加到问题报告的诊断文件(`--redact`
50
50
  将其中的路径脱敏)。运行可以收窄范围——`--quick` 只探首条命令的前置项
51
51
  与一次合并的可选工具探测(约 10 秒),`--sections <分区清单>`(逗号分隔)
@@ -84,18 +84,20 @@ agent 缓存,两者都会复检;以及确认后的 Windows git 信任)或
84
84
  侧边栏的 **WSL 环境** 面板是诊断页:它列出已安装的发行版,可对单个发行版运行
85
85
  一次 doctor 快速检查,显示 bwrap、systemd、Linger 等前置项是否正常;顶部的
86
86
  「插件版本」卡片显示已安装与运行中的版本,并提供上文的一键升级;每行固定提供
87
- “快速检查”和“完整检查”两个按钮,后者运行完整 doctor(`--fix-owned`),会修复
88
- 插件自有状态(残留 session scope 或损坏的 agent 缓存);两个按钮在结果出现后
89
- 仍保持原名,再次点击即再次执行;行内还显示上次
87
+ “快速检查”和“完整诊断”两个只读检查按钮;完整诊断发现可修复的插件自有状态
88
+ (残留 session scope 或损坏的 agent 缓存)后,才显示独立的“修复插件状态”按钮,
89
+ 修复后会复检;检查按钮在结果出现后仍可再次点击;行内还显示上次
90
90
  检查时间、来源(手动,或页面加载时的后台复核)与结果结构(通过/告警/失败/
91
91
  信息/跳过,以及分区分布);最后一次结果会从本地存档恢复,正在运行的发行版会在
92
92
  页面加载时后台复核;已检查行可“清除”该发行版的结果,卡片头部可“清除全部”;
93
- 清除只删除本地存档,不探测、不修改发行版;运行时按需清扫
94
- 残留 scope、清理缓存并逐一复检,其余告警保留各自的手动处理办法,不安装软件包、
95
- 不改写 Windows 配置(检查会让停止的发行版启动,所以两种动作都只在点击时执行)。工作区仍在 **添加工作区** 里打开;选中发行版内的文件夹时,应用会问一次打开方式:**Remote WSL**(默认,命令、
93
+ 清除只删除本地存档,不探测、不修改发行版;显式修复只清扫残留 scope、清理缓存并逐一复检,其余告警保留各自的手动处理办法,不安装软件包、
94
+ 不改写 Windows 配置(检查会让停止的发行版启动,所以诊断和修复都只在点击时执行)。工作区仍在 **添加工作区** 里打开;选中发行版内的文件夹时,应用会问一次打开方式:**Remote WSL**(默认,命令、
96
95
  文件与终端都在发行版内)或 **Windows 访问**(把该文件夹当作普通 Windows 共享,经 9p
97
96
  读写,没有 Linux 工具链)。选择记录在 `auto-preset` 行的 `windowsWorkspaces` 里,
98
97
  对该工作区之后新建的会话同样生效。
98
+
99
+ 面板首屏只保留简短说明,版本与检查/修复的详细行为可通过折叠说明查看。检查和修复期间会显示当前动作,并提示可能启动已停止的发行版;不会显示虚构的百分比或耗时。按钮和说明可用键盘操作,状态与错误也提供读屏语义。
100
+
99
101
  Windows 访问目录也会在会话内被点明:运行非 WSL preset 的发行版工作区在输入框上方
100
102
  常驻一条警示;会话尚未开始时一键切换,已开始后修正访问记录。
101
103
 
package/docs/RELEASING.md CHANGED
@@ -36,6 +36,20 @@ pnpm run test:browser # once: pnpm exec playwright install chromium
36
36
 
37
37
  The release workflow runs all three before it publishes.
38
38
 
39
+ Release evidence is split into three gates:
40
+
41
+ ```text
42
+ Source gate: every PR/main run
43
+ Candidate gate: every tag before publish
44
+ Post-release gate: every stable/next tag after registry propagation
45
+ ```
46
+
47
+ Source evidence does not substitute for official-package evidence: a passing
48
+ source gate says nothing about the published tarball, so the candidate and
49
+ post-release gates must produce their own official-package smoke evidence. The
50
+ source compatibility gate remains authoritative for full Windows/WSL probe
51
+ coverage.
52
+
39
53
  `pnpm test` includes the build-freshness gate: modules whose source lives in
40
54
  `src/*.ts` must be rebuilt (`pnpm run build`) and the result committed under
41
55
  `lib/`, so the tarball always ships exactly what the sources say without any
@@ -69,9 +83,10 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md) for individual probes, prerequisites,
69
83
  and optional performance probes not included in the suite.
70
84
 
71
85
  `npm publish` runs the `prepublishOnly` script, which is `pnpm test`. The local
72
- gates therefore run again during the release step. (The release workflow
73
- publishes with `--ignore-scripts` for exactly this reason — its Gates step has
74
- already run the chain; a hand-run publish keeps the hook.)
86
+ gates therefore run again during a hand-run release step. (The release workflow
87
+ publishes the candidate **tarball path**, and a tarball publish runs no
88
+ lifecycle scripts at all — its Gates step has already run the chain. A hand-run
89
+ publish from the package directory keeps the hook as its safety net.)
75
90
 
76
91
  ## 4. Commit and tag
77
92
 
@@ -89,23 +104,62 @@ GitHub Release do. The tag push starts the release workflow described in step 5.
89
104
 
90
105
  ### The tag-triggered workflow
91
106
 
92
- Pushing the tag starts `.github/workflows/release.yml`. It does five things, in
93
- this order:
94
-
95
- 1. Checks that the tag matches `version` in `package.json`, using
96
- `scripts/check-release-tag.mjs`.
97
- 2. Runs `pnpm test`, `pnpm run test:coverage`, and the shipped x86_64 and
107
+ Stable publishing is blocked until the `candidate-package-smoke` job succeeds.
108
+ The `pack-candidate` job packs the tagged commit once on **Ubuntu** (the only
109
+ pack: a Windows filesystem has no exec bit, and npm does not fix up non-`bin`
110
+ entries, so a Windows-packed tarball turned the shipped shell scripts into
111
+ 0644). The same `.tgz` is uploaded as the `candidate-package` artifact — the
112
+ Windows smoke and the publish job both consume those bytes, never a repack.
113
+
114
+ `candidate-package-smoke` provisions the distro and WSL prerequisites
115
+ (`.github/actions/provision-wsl`: systemd, `bubblewrap`, `dbus`, `git`,
116
+ `curl`, linger) and runs `pnpm run smoke:official-harness` against the pinned
117
+ official Harness (`DSH_OFFICIAL_HARNESS_VERSION`, the floor in
118
+ `docs/PEER-PARITY.md`). The official installer resolves from the official
119
+ CDN's exact-version path
120
+ (`download.deepseek.com/dsh-desk/bin/win-x64/deepseek-harness-<version>-win-x64.exe`);
121
+ the CDN publishes no checksum object, so the smoke records the downloaded
122
+ file's sha256 instead of verifying a published one, and requires `dsh
123
+ --version` to report the exact requested version. The smoke identifies the
124
+ package by its tarball/registry identity (name, version, sha512);
125
+ `--dump-config` proves the profile composes the plugin with no skipped
126
+ entries, and the through-plugin probe (`test/probe/official-smoke-probe.mjs`)
127
+ runs on a headless boot of the official CLI — with the plugin's WSL shell
128
+ executor inserted so `ctx.shell` is the plugin's — exercising one shell
129
+ command, one workspace file operation through the routed filesystem, and one
130
+ sandbox-refused command. This is provider-level coverage of the plugin
131
+ package; the session-runtime preset path stays the source gate's authority.
132
+ Logs land in `test/probe/.scratch/` and are uploaded as a release artifact,
133
+ kept even when the smoke fails.
134
+
135
+ Pushing the tag starts `.github/workflows/release.yml`. It does these things,
136
+ in this order:
137
+
138
+ 1. Packs the candidate tarball on Ubuntu (`pack-candidate`) and uploads it as
139
+ the `candidate-package` artifact. A `workflow_dispatch` run stops here and
140
+ runs the candidate smoke — the dry run; it never publishes.
141
+ 2. Runs the official-Harness candidate smoke on Windows
142
+ (`candidate-package-smoke`). Publish depends on this job, so a failing
143
+ candidate blocks the release.
144
+ 3. Runs `pnpm test`, `pnpm run test:coverage`, and the shipped x86_64 and
98
145
  aarch64 native-agent tests (the latter under QEMU).
99
- 3. Asks the registry whether this version is already published, and skips the
100
- upload when it is. Re-pushing the same tag therefore does not publish again —
101
- it only gets you as far as the GitHub Release.
102
- 4. Publishes with `npm publish --provenance --access public --ignore-scripts`.
103
- That attaches a signed attestation tying the tarball to this workflow run
104
- and this commit. `--ignore-scripts` skips the `prepublishOnly` hook: the
105
- Gates step has already run the full chain, and npm would otherwise re-run
106
- it a second time. A hand-run publish keeps the hook as its safety net.
107
- 5. Creates the GitHub Release, with notes taken from the changelog section by
108
- `scripts/changelog-section.mjs`.
146
+ 4. Downloads the `candidate-package` artifact, verifies its sha512 integrity
147
+ and `pack.json` identity equal the pack job's outputs, asks the registry
148
+ whether this version is already published, and skips the upload when it
149
+ is. Re-pushing the same tag therefore does not publish again — it only
150
+ gets you as far as the GitHub Release.
151
+ 5. Publishes the downloaded candidate tarball with
152
+ `npm publish <tgz> --provenance --access public`. That attaches a signed
153
+ attestation tying the tarball to this workflow run and this commit. A
154
+ tarball publish runs no lifecycle scripts; the Gates step has already run
155
+ the full chain. A hand-run publish from the package directory keeps the
156
+ `prepublishOnly` hook as its safety net.
157
+ 6. Reads back what the registry serves (integrity, file count, README name)
158
+ and fails if the served bytes are not the smoke candidate.
159
+ 7. Creates the GitHub Release, with notes taken from the changelog section by
160
+ `scripts/changelog-section.mjs`, then re-runs the official-Harness smoke
161
+ against the exact published version (`post-release-package-smoke`); its
162
+ failure appends a warning to the Release notes and opens an issue.
109
163
 
110
164
  The workflow requires a trusted publisher configured on npmjs.com for this
111
165
  repository, this workflow file, and the `npm-publish` environment. That is what
@@ -124,13 +178,12 @@ maintainer joins the release rotation.
124
178
 
125
179
  ### Repository settings the workflow cannot verify
126
180
 
127
- There is currently **no self-hosted runner registered** for this repository, so
128
- the Windows matrix legs run on GitHub-hosted `windows-latest`. The nightly
129
- `probes` schedule and its freshness heartbeat were removed on 2026-11-18: with
130
- no runner, a scheduled run could only be a hosted no-op. The real-machine
131
- evidence path is the local closed-app suite
132
- (`test/probe/run-all-when-closed.sh --include-fs`, run with the app exited), or
133
- the manual `probes` workflow once a self-hosted Windows+WSL runner is attached.
181
+ The Windows matrix legs run on GitHub-hosted `windows-latest`. The
182
+ `.github/workflows/cloud-wsl-gate.yml` Cloud WSL Gate provisions Ubuntu and WSL
183
+ itself and implements the 19-entry closed-app suite after Desktop exits.
184
+ Suite evidence is accepted only after a run uploads the complete log/results
185
+ with every entry PASS and no SKIP or NOT RUN. Local evidence remains available through
186
+ `test/probe/run-all-when-closed.sh --include-fs`.
134
187
 
135
188
  If a runner is added later, give it a custom `self-hosted-wsl` label rather than
136
189
  the hosted `windows-latest` label, and update every matrix / `runs-on` /
@@ -210,6 +263,14 @@ gh release create vx.y.z --repo Big-Dao/dsh-plugin-wsl-env \
210
263
  The notes summarise the changelog section. Mention anything a user must do, such as
211
264
  a new required configuration key.
212
265
 
266
+ The release workflow's `post-release-package-smoke` job then downloads exactly
267
+ `dsh-plugin-wsl-env@<version>` (never `latest` or a dist tag), checks its
268
+ integrity against the registry's `dist.integrity`, runs
269
+ `pnpm run smoke:official-harness` against it and uploads the logs. If it fails,
270
+ the job opens or updates a GitHub issue and appends a warning to the Release
271
+ notes; the version is not rolled back, so treat it as unverified and follow
272
+ section 9.
273
+
213
274
  ## 8. Refresh the runtime mirror
214
275
 
215
276
  The Windows copy of the checkout is what the app loads. Sync it to the tagged
@@ -0,0 +1,35 @@
1
+ # 发布流程(中文摘要)
2
+
3
+ 本文是 [RELEASING.md](RELEASING.md) 的中文摘要;完整步骤以英文版为准,修改先落
4
+ 英文,再同步本摘要的对应行。
5
+
6
+ ## 发布证据三道门禁
7
+
8
+ ```text
9
+ Source gate: 每次 PR/main 运行
10
+ Candidate gate: 每个 tag 发布前(workflow_dispatch 可空跑,不发布)
11
+ Post-release gate: 每个 stable/next tag 在 registry 传播后
12
+ ```
13
+
14
+ 源码证据不能替代官方包证据:源码门禁通过并不说明已发布的 tarball 正确,候选门
15
+ 禁与发布后门禁须各自产出官方包 smoke 证据。完整 Windows/WSL 探针覆盖仍以源码兼
16
+ 容门禁为准。
17
+
18
+ 候选门禁的关键事实:
19
+
20
+ - 候选 tarball 在 **Ubuntu** 上只打包一次(Windows 文件系统没有 exec 位,Windows
21
+ 打包会把随包 shell 脚本打成 0644);同一个 `.tgz` 作为 `candidate-package` 产
22
+ 物上传,Windows smoke 与 publish 均使用这份字节,不重新打包。
23
+ - 官方 Harness 安装包从官方 CDN 的精确版本路径解析
24
+ (`download.deepseek.com/dsh-desk/bin/win-x64/deepseek-harness-<version>-win-x64.exe`);
25
+ CDN 不提供官方 checksum,smoke 记录下载文件的 sha256 作为证据而非比对。
26
+ - smoke 用 `dsh --version` 验证实际安装版本等于请求版本;两个 Windows 任务在
27
+ smoke 前均先经 `.github/actions/provision-wsl` 安装 distro 与 WSL 前置依赖。
28
+ - smoke 以 tarball/registry 身份(名称、版本、sha512)标识包;`--dump-config`
29
+ 证明 profile 组合包含插件且无 skipped 条目;经插件的命令、文件操作与沙箱拒绝
30
+ 由 `test/probe/official-smoke-probe.mjs` 在官方 CLI 无头启动上覆盖(挂载插件的
31
+ WSL shell executor,属 provider 级证据;session 运行时路径仍以源码门禁为准),
32
+ 失败即 FAIL。
33
+
34
+ 其余步骤(确定版本、切分变更日志、完整检查、真机探针与发布后核验)见英文版
35
+ [RELEASING.md](RELEASING.md)。
@@ -79,7 +79,6 @@ R29 的基线为 0.25.0(2026-11-11),R30 的基线为 0.26.0(2026-11-12
79
79
  | # | 事项 | 性质 | 出处 |
80
80
  |---|---|---|---|
81
81
  | OI-1 | 非功能无量化目标:冷启动上界、常驻 agent 内存上界、watch 通知延迟上界均无规定 | 决策待定(开发工具语境可辩护,企业语境缺口) | 本表 R20 残差 |
82
- | OI-2 | 真机回归(协议/基座/沙箱的最高风险面)仅手动探针;CI runner 无 WSL distro | 环境受限决策,已如实记录 | ARCHITECTURE「Test layers」 |
83
82
  | OI-3 | 默认翻转(substrate、协议 v3→v4)无灰度、无遥测;迁移安全押在 boot 拒绝与响亮错误上 | OSS 取舍,企业语境缺口 | CHANGELOG 0.3.0 / 0.7.3 |
84
83
  | OI-4 | 端口轮询经共享 agent 使常驻进程永不闲置回收(LIMITATIONS 已记);工程修复=移出共享 agent 或改 one-shot | 工程项 | `lib/shell-env.js:173`(端口扫描)、`:190`(刷新计时器) |
85
84
  | OI-5 | 发布后无目录 fsync,shell agent 忽略 `sync -f` 失败;机器崩溃可能丢失数据或目录项(见 LIMITATIONS) | 工程项 | `agent/wsl-agent.sh`、`agent/native/spike/src/main.rs` |