dsh-plugin-wsl-env 0.26.3-rc.0 → 0.26.4

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/CONTRIBUTING.md +25 -21
  3. package/SUPPORT.md +2 -2
  4. package/SUPPORT.zh.md +2 -2
  5. package/docs/AGENT-PROTOCOL-V7.md +4 -2
  6. package/docs/API.md +1 -0
  7. package/docs/API.zh.md +1 -0
  8. package/docs/CONFIGURATION.md +21 -5
  9. package/docs/CONFIGURATION.zh.md +17 -3
  10. package/docs/MIGRATION.md +1 -1
  11. package/docs/MIGRATION.zh.md +1 -1
  12. package/docs/PARITY.md +3 -1
  13. package/docs/RELEASING.md +25 -3
  14. package/docs/REQUIREMENTS.zh.md +4 -4
  15. package/docs/ROADMAP-1.0.md +11 -7
  16. package/lib/agent.d.ts +54 -18
  17. package/lib/agent.js +86 -19
  18. package/lib/fs-routing.d.ts +3 -0
  19. package/lib/fs-routing.js +5 -0
  20. package/lib/fs-substrate.d.ts +1 -1
  21. package/lib/fs-substrate.js +10 -18
  22. package/lib/fsio-agent.d.ts +4 -0
  23. package/lib/fsio-agent.js +37 -10
  24. package/lib/listing.d.ts +2 -2
  25. package/lib/listing.js +5 -4
  26. package/lib/messages.d.ts +70 -0
  27. package/lib/messages.js +80 -0
  28. package/lib/open-in-app.js +12 -9
  29. package/lib/picker.d.ts +4 -1
  30. package/lib/picker.js +35 -11
  31. package/lib/ports.js +8 -1
  32. package/lib/provider-common.d.ts +22 -0
  33. package/lib/provider-common.js +18 -0
  34. package/lib/provider-marker.d.ts +23 -0
  35. package/lib/provider-marker.js +21 -0
  36. package/lib/status.js +8 -5
  37. package/lib/subprocess.d.ts +3 -0
  38. package/lib/subprocess.js +5 -0
  39. package/lib/takeover-report.js +4 -11
  40. package/lib/watcher.d.ts +1 -1
  41. package/lib/watcher.js +1 -1
  42. package/lib/wsl-doctor-command.d.ts +6 -2
  43. package/lib/wsl-doctor-command.js +24 -15
  44. package/lib/wsl-filesystem.d.ts +14 -11
  45. package/lib/wsl-filesystem.js +39 -27
  46. package/lib/wsl-shell.d.ts +42 -37
  47. package/lib/wsl-shell.js +53 -42
  48. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -16,6 +16,95 @@ were part of the record.
16
16
 
17
17
  ## [Unreleased]
18
18
 
19
+ ## [0.26.4] - 2026-11-18
20
+
21
+ Patch release: bound a wedged resident agent's request, localize the remaining
22
+ UI text, harden the v7 FS frame, and keep the picker's category level in one
23
+ language. Documentation and internal refactors ride along.
24
+
25
+ ### Fixed
26
+
27
+ - **The picker's first category level no longer mixes two languages.** The
28
+ entries were labelled before `preferredDistro`/`homeOf` awaited, while the
29
+ crumbs were labelled after; if the harness's stored locale preference
30
+ arrived during those awaits, one level rendered half in the default OS
31
+ language and half in the chosen one. Build every label after the awaits so
32
+ one response uses one catalog.
33
+ - **Protocol hardening for the v7 FS frame (#55).** Four independent gaps:
34
+ an out-of-order FSB record is now refused as `FS_IO_ERROR` instead of being
35
+ attributed to the next op by line position; the FS budget grows with the
36
+ content a `write`/`move` must handle (30 s base, one second per MiB, ten
37
+ minutes maximum) instead of failing a multi-GB move at a fixed 30 s; the
38
+ directory picker and port survey now pass explicit capture caps instead of
39
+ allowing a transport-sized RES line; and the SETENV section of
40
+ `docs/AGENT-PROTOCOL-V7.md` names the real two-field frame.
41
+ - **All plugin-authored UI text follows the harness locale (#50).** The status
42
+ route's errors, the open-in-app route's refusals, the directory picker's
43
+ breadcrumbs and branch labels, and the `/wsl-doctor` command's usage,
44
+ errors, description, and hint were hardcoded Chinese while the rest of the
45
+ plugin followed the Language setting. They now render through
46
+ `src/messages.ts`; a new style check rejects raw CJK literals anywhere under
47
+ `src/` except the catalog, so the next such string fails the gate instead of
48
+ reaching an English-locale user.
49
+ - **A written request that is never ACKed no longer hangs the agent queue
50
+ (#49).** The execution watchdog was armed only by the dequeue `ACK`, so a
51
+ resident that stayed alive but stopped dequeuing (a wedged `wait`, a blocked
52
+ stdin pipe) left the request pending forever and the serial queue behind it
53
+ blocked. A separate, looser frame-written ceiling (120 s) now turns that
54
+ state into a transport failure: the resident is killed, the request fails as
55
+ unknown-state/`AgentUnavailableError`, and the caller's usual fallback
56
+ applies. An ACK replaces it with the existing execution budget.
57
+
58
+ ### Changed
59
+
60
+ - **Release and CI hardening (#52).** The release workflow now compares the
61
+ registry's `dist.integrity` with the local `npm pack` product, not just the
62
+ file count and readme name; the stale `0.2.1-rc.2` entries were removed from
63
+ `minimumReleaseAgeExclude` and the restore condition is recorded; and
64
+ `docs/RELEASING.md` records the deliberate decision to run `npm-publish`
65
+ without required reviewers. The nightly `probes` schedule and its
66
+ `probe-heartbeat` were removed after confirming no self-hosted runner is
67
+ registered for the repository: the manual `probes` dispatch now fails loudly
68
+ when the runner has no WSL topology, and real-machine evidence comes from the
69
+ local closed-app suite (`test/probe/run-all-when-closed.sh --include-fs`).
70
+ - **The filesystem and shell providers share their runtime bookkeeping and
71
+ config narrowing (#54).** The two classes kept identical maps for distro
72
+ homes, held session runtimes, the session-runtime preflight, and the `auto`
73
+ verdicts; a semantic change had to be made twice. Those four now live in
74
+ `ProviderRuntimeBook` (`provider-common.ts`), and the 30 repeated
75
+ `this.config as unknown as …` casts collapse to one private `wslConfig`
76
+ accessor per row. No behavior change; the provider, session-runtime, and
77
+ boot suites pin the existing semantics.
78
+ - **The takeover report identifies providers by a symbol brand, not
79
+ `instanceof` (#53).** `takeover-report` used to import the three provider
80
+ classes to tell this plugin's `subprocess`/`fs`/`directoryPicker` from the
81
+ shipped ones, which pulled the whole filesystem provider graph — including
82
+ `agent-shared`'s module-load script digest — into every diagnostic surface
83
+ that reads the report, including the preset realm. Each provider now carries
84
+ a `Symbol.for` brand on its prototype and the report compares that, so the
85
+ doctor snapshot loads only the marker module. A static import-graph test
86
+ keeps the provider stack out of `lib/takeover-report.js`.
87
+
88
+ ### Documentation
89
+
90
+ - **Documentation and comment drift swept, with the peer floor now checked
91
+ mechanically (#51).** SUPPORT advertised the old `0.2.2-rc.1` peer floor;
92
+ `lint:docs` now compares the support page's version literals with
93
+ `package.json` and fails on a stale one. API and CONFIGURATION gained the
94
+ `./open-in-app` / `wsl-open-in-app` surface, CONFIGURATION documents the
95
+ host `directory-picker-browse-surface` row and the command-only scope of
96
+ `/mnt` masking, REQUIREMENTS' R20 test count and R29/R30 baselines are
97
+ current, the roadmap and parity notes state their real baselines, and four
98
+ displaced or duplicated source comments were put back on their declarations.
99
+
100
+ ## [0.26.3] - 2026-11-17
101
+
102
+ Promotes 0.26.3-rc.0 after the HMR gate passed: a 0.26.1 profile with a live
103
+ session upgraded through the plugin manager returned `application: applied`
104
+ with no rollback, and after a restart the three takeover services were this
105
+ plugin's classes. No code changes since the release candidate; its notes
106
+ follow.
107
+
19
108
  ## [0.26.3-rc.0] - 2026-11-17
20
109
 
21
110
  First release candidate for 0.26.3: a live enable or HMR upgrade no longer
package/CONTRIBUTING.md CHANGED
@@ -236,27 +236,31 @@ still need Windows and WSL2, but no harness boot and no profile: run them from a
236
236
  distro terminal with Node available, and they reach `wsl.exe` through interop.
237
237
 
238
238
  Two conveniences for the real-machine set. `test/probe/run-all-when-closed.sh
239
- --include-fs` runs all seventeen probes once the app has exited. The interop shell
240
- matrix uses the `wslfs` profile, systemd and a lingering user manager; it fails
241
- when Windows interop or its temporary marker cannot be verified. And `ci.yml` has a
242
- scheduled and manually dispatched `probes` job: `sandbox` runs whenever a default distro
243
- actually launches, then `mode`, `terminal`, `picker` and `missing-wsl` where the
244
- harness app is installed. It is named for a self-hosted Windows runner although
245
- its `runs-on` carries the GitHub-hosted `windows-latest` label; when the hosted
246
- runner has no usable distro the job is a green no-op (`skip all`). Where a default
247
- distro launches without bubblewrap, the `sandbox` leg fails, not skips.
248
-
249
- **Self-hosted runner label collision — known exposure.** The development
250
- machine's self-hosted runner fulfills the GitHub-hosted `windows-latest` label,
251
- so the unit matrix's Windows legs execute there on every push and PR. PR code
252
- from a fork is skipped on those legs (`ci.yml`'s step-level fork gate), but the
253
- durable fix is renaming the runner's label to something unambiguous (for
254
- example `self-hosted-wsl`) in the runner's settings and repointing the two
255
- `windows-latest` consumers in `ci.yml` at it — until then, treat the label as
256
- shared infrastructure, not hosted capacity. Also note the install steps carry
257
- `--config.minimum-release-age=0` (pnpm 11.7's lockfile re-verification ignores
258
- `minimumReleaseAgeExclude`; the flag is the documented remedy in
259
- `release.yml`).
239
+ --include-fs` runs the full closed-app suite once the app has exited. The interop
240
+ shell matrix uses the `wslfs` profile, systemd and a lingering user manager; it
241
+ fails when Windows interop or its temporary marker cannot be verified.
242
+
243
+ The `ci.yml` `probes` job is **manual-only** (`workflow_dispatch`) and requires a
244
+ self-hosted Windows+WSL runner with the harness app and a configured profile;
245
+ `runs-on` is the GitHub-hosted `windows-latest` label, so dispatching it without
246
+ such a runner fails with a named error rather than passing (`skip all` is gone).
247
+ No self-hosted runner is registered for this repository today (2026-11-18), so
248
+ the documented path is the local closed-app command above. The nightly schedule
249
+ and its `probe-heartbeat` were removed on the same date for that reason; there is
250
+ no scheduled probe evidence to miss. A manual run still uploads
251
+ `probe-evidence-<run>` as the evidence artifact.
252
+
253
+ **Self-hosted runners.** None is currently registered for this repository, so
254
+ the Windows matrix legs run on GitHub-hosted `windows-latest`. If one is added
255
+ later, give it a custom label such as `self-hosted-wsl` rather than the hosted
256
+ `windows-latest` label, and update every matrix / `runs-on` / fork-gate
257
+ reference together. The release workflow's `npm-publish` environment
258
+ intentionally has no required reviewers (single-maintainer decision).
259
+
260
+ Also note the install steps carry `--config.minimum-release-age=0` (pnpm 11.7's
261
+ lockfile re-verification ignores `minimumReleaseAgeExclude`; the flag is the
262
+ documented remedy in `release.yml`). The restore condition and all seven call
263
+ sites are recorded in `pnpm-workspace.yaml` and tracked by #52.
260
264
 
261
265
  ## Adding a test
262
266
 
package/SUPPORT.md CHANGED
@@ -8,7 +8,7 @@
8
8
  |---|---|
9
9
  | Operating system | Windows 10 and Windows 11 |
10
10
  | Linux side | WSL2 with at least one distro, and systemd as PID 1 with a lingering user manager (`loginctl enable-linger`) for the shipped session runtime. Set `sessionSandbox: false` on both `wsl-shell` and `wsl-fs` in the preset to keep the per-command sandbox instead |
11
- | DSH packages | `peerDependencies` declares a `0.2.2-rc.1` floor; newer versions require compatibility validation |
11
+ | DSH packages | `peerDependencies` declares a `0.2.2-rc.2` floor; newer versions require compatibility validation |
12
12
  | Plugin version | the latest published version only |
13
13
  | Node | 22.19+ (`^22.19.0`), or 24 and later (`>=24.0.0`) |
14
14
 
@@ -62,7 +62,7 @@ issue for one.
62
62
 
63
63
  ## Compatibility expectations
64
64
 
65
- The DSH peer ranges start at `0.2.2-rc.1`; development dependencies pin that
65
+ The DSH peer ranges start at `0.2.2-rc.2`; development dependencies pin that
66
66
  version exactly for testing. Cordis and Schemastery use caret peer ranges.
67
67
  The accepted range does not guarantee compatibility with every newer release:
68
68
  an upstream change can require a new release of this plugin.
package/SUPPORT.zh.md CHANGED
@@ -8,7 +8,7 @@
8
8
  |---|---|
9
9
  | 操作系统 | Windows 10 与 Windows 11 |
10
10
  | Linux 侧 | WSL2,至少一个发行版;随包的会话 runtime 需要 systemd 作为 PID 1,并启用 lingering 用户管理器(`loginctl enable-linger`)。若要在 preset 中保留逐命令沙箱,请在 `wsl-shell` 和 `wsl-fs` 上都设置 `sessionSandbox: false` |
11
- | DSH 包 | `peerDependencies` 声明 `0.2.2-rc.1` 下限;更新的版本需要兼容性验证 |
11
+ | DSH 包 | `peerDependencies` 声明 `0.2.2-rc.2` 下限;更新的版本需要兼容性验证 |
12
12
  | 插件版本 | 仅最新发布版本 |
13
13
  | Node | 22.19+(`^22.19.0`),或 24 及以后(`>=24.0.0`) |
14
14
 
@@ -54,7 +54,7 @@ https://github.com/Big-Dao/dsh-plugin-wsl-env/issues/new/choose
54
54
 
55
55
  ## 兼容性预期
56
56
 
57
- DSH peer 区间从 `0.2.2-rc.1` 开始;开发依赖为测试精确钉定该版本。Cordis 与
57
+ DSH peer 区间从 `0.2.2-rc.2` 开始;开发依赖为测试精确钉定该版本。Cordis 与
58
58
  Schemastery 使用 caret peer 区间。接受的区间并不保证与每个更新的版本兼容:
59
59
  上游变更可能需要本插件发布新版本。
60
60
 
@@ -166,10 +166,12 @@ the executor already runs on any handshake mismatch.
166
166
 
167
167
  ## The SETENV verb: implemented, host-refused
168
168
 
169
- `SETENV|id|key|value-b64` is a protocol-6 verb both agent implementations
169
+ `SETENV|<key>|<value-b64>` is a protocol-6 verb both agent implementations
170
170
  still answer (`agent/wsl-agent.sh`, the native binary) and the suite still
171
171
  tests, but no host code sends it: per-request environment rides the EXEC
172
172
  frame's env block, and a global mutation would outlive the request that
173
- made it. The verb is reserved — a host that wants idempotent
173
+ made it. The frame has TWO fields after the verb — there is no request id
174
+ and no `ACK`/`RES`; the key must be a POSIX identifier or the agent answers
175
+ `ERR||protocol`. The verb is reserved — a host that wants idempotent
174
176
  environment pre-warming can adopt it without a protocol bump. Until then
175
177
  it is dormant surface, kept because removing it means a native rebuild.
package/docs/API.md CHANGED
@@ -28,6 +28,7 @@ this page is the quick tour.
28
28
  | `./paths` | `uncToPosix`, `toLinuxPath`, `toWorldPath`, … | the coordinate mappers |
29
29
  | `./picker` | `WslDirectoryPicker` | the distro-aware directory picker |
30
30
  | `./auto-preset` | the `auto-preset` row | first-run profile bootstrap |
31
+ | `./open-in-app` | the `wsl-open-in-app` row | the authenticated route behind the session-header menu: launches VS Code at the workspace's `vscode-remote` URI with `ELECTRON_RUN_AS_NODE` scrubbed from the editor child only |
31
32
  | `./shell-env` | the `wsl-shell-env` row | the `DSH_WSL_*` facts registry |
32
33
  | `./update-check` | the `wsl-update-check` row | the once-a-day update notice (fact store + host-delegated check) |
33
34
 
package/docs/API.zh.md CHANGED
@@ -27,6 +27,7 @@
27
27
  | `./paths` | `uncToPosix`、`toLinuxPath`、`toWorldPath`、… | 坐标映射器 |
28
28
  | `./picker` | `WslDirectoryPicker` | 能感知发行版的目录选择器 |
29
29
  | `./auto-preset` | `auto-preset` 行 | 首次运行的 profile 引导 |
30
+ | `./open-in-app` | `wsl-open-in-app` 行 | 会话页头菜单背后的认证路由:以工作区的 `vscode-remote` URI 启动 VS Code,只从编辑器子进程环境中删除 `ELECTRON_RUN_AS_NODE` |
30
31
  | `./shell-env` | `wsl-shell-env` 行 | `DSH_WSL_*` 事实注册表 |
31
32
  | `./update-check` | `wsl-update-check` 行 | 每天一次的更新提示(事实存储 + 委托宿主的检查) |
32
33
 
@@ -173,6 +173,12 @@ The root router is app-level, not session-owned, so it does not use
173
173
  | | `hostCwd` | Unset | Windows workdir for the `wsl.exe` process. Defaults to `%SystemRoot%` when available. |
174
174
  | | `forwardEnv` | `[]` | Additional host environment names to forward through `WSLENV`. |
175
175
 
176
+ The bundle also inserts the host row `directory-picker-browse-surface`
177
+ (`@deepseek-ai/dsh-client-ui-directory-picker-browse`). It supplies the
178
+ browser dialog itself; `directory-picker-wsl` supplies the backend that dialog
179
+ calls, so disabling the picker row does not remove the dialog. The host row
180
+ takes no configuration.
181
+
176
182
  ### Other top-level rows
177
183
 
178
184
  | Row | Key | Default | Description |
@@ -184,6 +190,8 @@ The root router is app-level, not session-owned, so it does not use
184
190
  | `wsl-status` | `cacheMs` | `15000` | How long one distro's verdict stays fresh in memory, in milliseconds (the last result is persisted separately). |
185
191
  | | `timeoutMs` | `90000` | Deadline for one check or repair run, in milliseconds. |
186
192
  | | `wslPath` | `wsl.exe` | `wsl.exe` used to list the distros. |
193
+ | `wsl-open-in-app` | `executable` | `''` | Editor executable for the session-header "open in app" action. Empty resolves VS Code from its usual Windows install locations, then `Code.exe` on `PATH`. |
194
+ | | `watchMs` | `1500` | Early-failure watch window per launch, in milliseconds; an editor that exits inside it is reported as a launch failure. |
187
195
  | `wsl-preflight` | `distro` | `''` | Distro to check. Empty or `auto` follows the session workspace. |
188
196
  | | `wslPath` | `wsl.exe` | Path to `wsl.exe`. |
189
197
  | | `sandbox` | `true` | Run the session-start `bwrap` check. |
@@ -271,6 +279,12 @@ gives the `visible` behavior.
271
279
  | `masked` | Mounts an empty tmpfs over `/mnt` in confined profiles. Commands cannot access paths under `/mnt`; other mounts and unrestricted file reads are not covered. |
272
280
  | `disabled` | Applies the same `/mnt` mask as `masked`; it does not disable interop or edit `wsl.conf`. Configure the distro separately as described below. |
273
281
 
282
+ **The mask is a command-path boundary, not a filesystem boundary.** Confined
283
+ commands cannot see `/mnt`; the file tools' unrestricted read side still
284
+ reaches `/mnt/c` through the shared read agent (the "Unrestricted read" row
285
+ below is the same fact, stated per surface). Do not read `masked` as "the
286
+ distro cannot reach Windows".
287
+
274
288
  `maskWindowsDrive: true` is equivalent to `interopVisibility: masked`.
275
289
  When `interopVisibility` is set, it takes precedence over
276
290
  `maskWindowsDrive`.
@@ -365,11 +379,13 @@ blocks the verdict.
365
379
 
366
380
  ### Message language
367
381
 
368
- The plugin's refusal and remedy messages (the `sessionSandbox` preflight
369
- verdicts, the `bwrap` install and repair hints, and the distro/workdir
370
- command errors) follow the harness app's Language setting: the preference is
371
- read from the host `locale` entry's `preference` field through the host
372
- settings service, and a language switch takes effect without a restart.
382
+ All plugin-authored UI text follows the harness app's Language setting: the
383
+ status panel's route errors, the open-in-app route's refusals, the directory
384
+ picker's labels, the `/wsl-doctor` command text, and the refusal and remedy
385
+ messages (the `sessionSandbox` preflight verdicts, the `bwrap` install and
386
+ repair hints, and the distro/workdir command errors). The preference is read
387
+ from the host `locale` entry's `preference` field through the host settings
388
+ service, and a language switch takes effect without a restart.
373
389
  Chinese (`zh`, including `zh-CN` and `zh-Hans` tags) and English ship; every
374
390
  other language renders English. A profile without the settings service, or
375
391
  one whose user never picked a language, falls back to the process's ICU
@@ -164,6 +164,11 @@ Loader 在挂载该行之前会校验宿主和发行版设置;
164
164
  | | `hostCwd` | 未设置 | `wsl.exe` 进程的 Windows 工作目录。可用时默认为 `%SystemRoot%`。 |
165
165
  | | `forwardEnv` | `[]` | 额外通过 `WSLENV` 转发的宿主环境变量名。 |
166
166
 
167
+ 随包还会注入宿主行 `directory-picker-browse-surface`
168
+ (`@deepseek-ai/dsh-client-ui-directory-picker-browse`)。它提供浏览器里的
169
+ 对话框本体;`directory-picker-wsl` 提供该对话框调用的后端,所以禁用选择器
170
+ 行并不会移除对话框。宿主行不接受配置。
171
+
167
172
  ### 其他顶层行
168
173
 
169
174
  | 行 | 键 | 默认值 | 说明 |
@@ -175,6 +180,8 @@ Loader 在挂载该行之前会校验宿主和发行版设置;
175
180
  | `wsl-status` | `cacheMs` | `15000` | 单个发行版判定在内存中的新鲜时间,单位毫秒(最后一次结果另行持久化)。 |
176
181
  | | `timeoutMs` | `90000` | 单次检查或修复运行的死线,单位毫秒。 |
177
182
  | | `wslPath` | `wsl.exe` | 列出发行版用的 `wsl.exe`。 |
183
+ | `wsl-open-in-app` | `executable` | `''` | 会话页头“在应用中打开”动作使用的编辑器可执行文件。空则从常见的 Windows 安装位置解析 VS Code,再回退到 `PATH` 上的 `Code.exe`。 |
184
+ | | `watchMs` | `1500` | 每次启动的早期失败观察窗口,单位毫秒;编辑器在该窗口内退出会报告为启动失败。 |
178
185
  | `wsl-preflight` | `distro` | `''` | 要检查的发行版。空或 `auto` 跟随会话工作区。 |
179
186
  | | `wslPath` | `wsl.exe` | `wsl.exe` 的路径。 |
180
187
  | | `sandbox` | `true` | 运行会话启动时的 `bwrap` 检查。 |
@@ -260,6 +267,11 @@ unset _fnm_env
260
267
  | `masked` | 在受限 profile 中,把空的 tmpfs 挂载到 `/mnt` 上。命令无法访问 `/mnt` 下的路径;其他挂载与不受限的文件读取不在覆盖范围内。 |
261
268
  | `disabled` | 施加与 `masked` 相同的 `/mnt` 遮蔽;它不会禁用 interop,也不会修改 `wsl.conf`。请按下文单独配置发行版。 |
262
269
 
270
+ **遮蔽是命令路径的边界,不是文件系统的边界。** 受限命令看不见 `/mnt`,
271
+ 但文件工具的非受限读取面仍会经共享读 agent 访问 `/mnt/c`(下文“非受限
272
+ 文件读取”一行是同一事实的分面表述)。不要把 `masked` 理解为“发行版无法
273
+ 触达 Windows”。
274
+
263
275
  `maskWindowsDrive: true` 等价于 `interopVisibility: masked`。
264
276
  设置了 `interopVisibility` 时,它优先于
265
277
  `maskWindowsDrive`。
@@ -343,9 +355,11 @@ profile 不使用会话 runtime 时,设置 `sessionSandbox: false`。
343
355
 
344
356
  ### 消息语言
345
357
 
346
- 插件的拒绝与修复消息(`sessionSandbox` 预检判定、`bwrap` 的安装与修复提示、
347
- 发行版/工作目录命令错误)跟随 harness 应用的语言设置:偏好经宿主 settings
348
- 服务从 `locale` 条目的 `preference` 字段读取,切换语言无需重启应用。
358
+ 插件自作的 UI 文本全部跟随 harness 应用的语言设置:状态面板的路由错误、
359
+ open-in-app 路由的拒绝、目录选择器的标签、`/wsl-doctor` 命令文本,以及拒绝
360
+ 与修复消息(`sessionSandbox` 预检判定、`bwrap` 的安装与修复提示、发行版/
361
+ 工作目录命令错误)。偏好经宿主 settings 服务从 `locale` 条目的 `preference`
362
+ 字段读取,切换语言无需重启应用。
349
363
  内置中文(`zh`,含 `zh-CN`、`zh-Hans` 标签)与英文;其他语言渲染英文。
350
364
  没有 settings 服务的 profile、或用户从未在设置中选过语言的情况,回退到
351
365
  进程的 ICU 默认区域设置——桌面应用中即操作系统 UI 语言——因此临时渲染为
package/docs/MIGRATION.md CHANGED
@@ -81,7 +81,7 @@ shows the composed value.
81
81
  | `pnpm run test:browser` | the plugin web bundle in headless Chromium (layout, clicks, badge timing); install Chromium once | CI (`browser` job, Ubuntu) and the release `Gates` |
82
82
  | Peer line tested | floor `>=0.2.2-rc.2`; the `peer-canary` workflow resolves `next` and runs the scratch upgrade | CI schedule/manual |
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
- | HMR update path (running profile) | install the previous published version in a temp `DSH_HOME`, start the desktop app 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) | manual, this machine (**not run yet**; the path #39/#12510 escaped through) |
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). Record: docs/superpowers/probe-runs/2026-11-17-hmr-gate.md |
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
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) |
87
87
  | Clean Win11 + Ubuntu first run ≤ 5 min | a clean machine, a stopwatch | **not run** (the project's machine is already configured) |
@@ -69,7 +69,7 @@
69
69
  | `pnpm run test:browser` | 无头 Chromium 中的插件 web bundle(布局、点击、badge 时序);安装一次 Chromium | CI(`browser` job,Ubuntu)与发布的 `Gates` |
70
70
  | peer 版本线受测 | 下限 `>=0.2.2-rc.2`;`peer-canary` 工作流解析 `next` 并运行临时升级 | CI 定时/手动 |
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
- | HMR 更新路径(运行中 profile) | 临时 `DSH_HOME` 安装上一个已发布版本 → 启动桌面应用并保留活动会话 → 经插件管理升级到候选版本;断言 `application: applied`、无回滚,重启后 `subprocess`/`fs`/`directoryPicker` 由本插件的类提供(升级当时可能处于延迟接管,`providers.takeover` 为 warn) | 手动,本机(**尚未运行**;#39/#12510 漏测的正是这条路径) |
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 路径)。记录:docs/superpowers/probe-runs/2026-11-17-hmr-gate.md |
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
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) |
75
75
  | 干净 Win11 + Ubuntu 首次运行 ≤ 5 分钟 | 干净机器、秒表 | **未运行**(项目机器已配置) |
package/docs/PARITY.md CHANGED
@@ -10,7 +10,9 @@ protocol v4, 2026-10-06. These rows are not a fresh verification of the current
10
10
  release or protocol; see [PEER-PARITY.md](PEER-PARITY.md) for the peer
11
11
  comparison. The peer pin moved to `0.2.1-rc.2` on 2026-10-17 with every
12
12
  seam package's shipped artifact byte-identical to the ones these rows were
13
- measured against; the real-machine probes were not re-run in that move.
13
+ measured against; it moved again to `0.2.2-rc.2` on 2026-11-12, and the
14
+ real-machine probes were not re-run in either move. Treat every row below as
15
+ the 0.8.0 measurement plus later delta notes, not a fresh verification.
14
16
 
15
17
  ## What parity means here
16
18
 
package/docs/RELEASING.md CHANGED
@@ -115,8 +115,30 @@ publish credential, so no npm token is stored in the repository.
115
115
  If trusted publishing is not configured, add an `NPM_TOKEN` repository secret and
116
116
  hand it to the Publish step in `.github/workflows/release.yml` — the step does not
117
117
  read it on its own, so add `env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}` to it.
118
- Configure required reviewers on the `npm-publish` environment to put a second
119
- person in front of every publish.
118
+ The `npm-publish` environment is the trusted-publishing binding and the audit
119
+ anchor for each run. **Required reviewers are deliberately not configured.**
120
+ This is a single-maintainer repository; the full gate chain and the tag/version
121
+ check still run before the upload, and the owner accepts that a mistaken tag can
122
+ publish without a second pair of eyes. Revisit the decision if a second
123
+ maintainer joins the release rotation.
124
+
125
+ ### Repository settings the workflow cannot verify
126
+
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.
134
+
135
+ If a runner is added later, give it a custom `self-hosted-wsl` label rather than
136
+ the hosted `windows-latest` label, and update every matrix / `runs-on` /
137
+ fork-gate reference in `ci.yml` together.
138
+
139
+ The `npm-publish` environment has no required reviewers by decision, not by
140
+ oversight: see the paragraph above. Its presence is still required for npm
141
+ trusted publishing, so do not delete it while removing approval gates.
120
142
 
121
143
  ### Manual fallback
122
144
 
@@ -229,7 +251,7 @@ without watching this repository:
229
251
  on notable releases).
230
252
  - Content: the version, the two or three headline changes, the current
231
253
  verification snapshot in one line (unit tests, matrix, container and qemu
232
- legs, nightly probes), and the release link.
254
+ legs, the manual closed-app probe suite), and the release link.
233
255
  - Post it with the same GraphQL mutation the 2026-10-27 update used
234
256
  (`addDiscussionComment` on the discussion's node id) from a session that
235
257
  holds the maintainer's GitHub credentials — the release workflow's
@@ -7,7 +7,8 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
7
7
  三个问题:**有哪些需求、在哪里规定、靠什么验证**。
8
8
 
9
9
  **基线**:本文核对于 `main` 2026-10-19(基线 0.12.0);0.22.0(2026-11-08)
10
- 复核了 doctor 与更新检查线(新增 R26–R28,R20 的测试文件数随发版刷新),
10
+ 复核了 doctor 与更新检查线(新增 R26–R28,R20 的测试文件数随发版刷新);
11
+ R29 的基线为 0.25.0(2026-11-11),R30 的基线为 0.26.0(2026-11-12)。
11
12
  其余条目仍以上次全表核验为准。每次发版,或 CI 配置、
12
13
  覆盖率阈值等可核验项变更后,本表须重新核验;一切以仓库现状为准。
13
14
 
@@ -50,10 +51,10 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
50
51
  | R14 | bootstrap:bwrap/ripgrep 等的就地体检与安装 | README「Install」「Troubleshooting」;CONFIGURATION | ①②⑤:`--install` 与只读体检两式、体检对象、错误消息补救指引成文 | 0.7.4 起脚本随包(`files` 收录,补救指引在 npm 安装下可用) | 脚本本身无 CI 腿(真机排错路径覆盖) |
51
52
  | R15 | 错误码方言:每个 `FS_*` 码给出抛出者、含义、解除条件;`wsl.exe` 自身失败显式收编 | ARCHITECTURE「Error codes」表 | ①②:逐码三列成表;两类历史隐形失败(UTF-16 stdout、cwd 回退 exit 0)收编;`FS_OUTSIDE_DISTRO` 独立成码的理由明文 | `fs-decisions.test.mjs`、`fsio-agent.test.mjs`、`fs-substrate.test.mjs`、`provider.test.mjs`(断言码与消息) | — |
52
53
  | R16 | 对端 parity 合同:fsio 文本机制逐字节复刻钉死的对端版本 | PEER-PARITY 全文 | ①④⑥:钉版、验证方法(npm pack 逐函数比对)、验证日期、刻意分歧逐条声明、bump 钉版即重跑的维护规则 | `fsio-agent.test.mjs`(distro 内半区 canary);对端比对为手动方法 | 钉版升级后需重跑比对(维护规则) |
53
- | R17 | 常驻 agent 协议:ACK 计时看门狗、只读帧才重放、逐流输出上限、sha256 部署校验、租约存活、进程组两段杀 | CHANGELOG 0.3.0/0.6.0/0.7.3;PARITY Phase 1/Phase 3 | ①②④:每条健壮性属性有规格出处与实证记录;「EXEC/变异 FS 帧禁止盲重发」是写明的不变量 | `agent-protocol.test.mjs`(HELLO 版本+摘要)、`agent.test.mjs`、`agent-exec.test.mjs`(truncated 旗标)、`agent-fs-script.test.mjs`;probe:agent、probe:exec | — |
54
+ | R17 | 常驻 agent 协议:帧写出后的 ACK 握手超时与 ACK 计时执行看门狗、只读帧才重放、逐流输出上限、sha256 部署校验、租约存活、进程组两段杀 | CHANGELOG 0.3.0/0.6.0/0.7.3;PARITY Phase 1/Phase 3 | ①②④:每条健壮性属性有规格出处与实证记录;「EXEC/变异 FS 帧禁止盲重发」是写明的不变量 | `agent-protocol.test.mjs`(HELLO 版本+摘要)、`agent.test.mjs`、`agent-exec.test.mjs`(truncated 旗标)、`agent-fs-script.test.mjs`;probe:agent、probe:exec | — |
54
55
  | R18 | 配置面:每键默认值成文;层组合语义(整行替换、不深合并、后层胜) | CONFIGURATION;`cordis.patch.yml` 头注 | ⑤:随发键成表、未列表键点名;覆盖方式的正确心智模型(整行替换)成文 | `composition.test.mjs`(层组合);`style.mjs`(`files` 契约) | — |
55
56
  | R19 | 非目标集:不做什么与为什么 | LIMITATIONS 开篇原则;PARITY「Not applicable」 | ③:已知极限入册;不适用项「记下来免得像遗漏」 | —(文档性) | — |
56
- | R20 | 验证策略:三层(fake → 真脚本过真线 → 真机探针)+ CI 矩阵 + 覆盖率阈值 | ARCHITECTURE「Test layers」;README「Development」 | ④:CI 在 Node 22/24 × Linux/Windows 上跑 `pnpm test`,`pnpm run test:coverage` 只在 Node 24 上跑(门槛旗标需 Node 22.8);Node 20 有意排除(`engines` 下限);覆盖率阈值 85/84/70(行/分支/函数),测量集合覆盖 `test/` 下 50 个测试文件,且 `lib/*.js` 必须逐个实测或带理由豁免 | `pnpm test`、`pnpm run test:coverage`;CI(ci.yml) | 真机验证依赖 Windows 和可用的 WSL 发行版;非功能无量化目标(OI-1) |
57
+ | R20 | 验证策略:三层(fake → 真脚本过真线 → 真机探针)+ CI 矩阵 + 覆盖率阈值 | ARCHITECTURE「Test layers」;README「Development」 | ④:CI 在 Node 22/24 × Linux/Windows 上跑 `pnpm test`,`pnpm run test:coverage` 只在 Node 24 上跑(门槛旗标需 Node 22.8);Node 20 有意排除(`engines` 下限);覆盖率阈值 85/84/70(行/分支/函数),测量集合覆盖 `test/` 下 60 个测试文件,且 `lib/*.js` 必须逐个实测或带理由豁免 | `pnpm test`、`pnpm run test:coverage`;CI(ci.yml) | 真机验证依赖 Windows 和可用的 WSL 发行版;非功能无量化目标(OI-1) |
57
58
  | R21 | 安全过程:范围内外、响应时限、partial 属设计边界、凭据政策 | SECURITY 全文 | ②③⑥:范围、3/10/30 个工作日时限(标注「目标非合同」)、partial 定性、凭据零容忍成文 | —(过程性) | — |
58
59
  | R22 | 支持矩阵:Windows 10/11 + WSL2 + Node `^22.19.0 \|\| >=24.0.0` + peer 版本范围 | SUPPORT 全文 | ⑥:支持与不受支持清单、peer 范围及精确开发依赖成文;Node 20 在范围外(理由见 SUPPORT,`engines` 为准) | `peerDependencies`、`devDependencies` 与 `engines`(`package.json`);CI 矩阵(ci.yml) | 新 peer 版本仍需验证 |
59
60
  | R23 | 根平面 `ctx.fs` 按坐标路由:发行版 UNC 由发行版内 agent 服务(inotify 或轮询 watch),盘符路径留在宿主;接替随发的 `fs-sandbox` 行 | README「Architecture」;ARCHITECTURE「The root-plane filesystem takeover」;CONFIGURATION `fs-routing` 行;root-fs-routing.md(设计) | ①②③⑤:路由判定与接替理由(写围栏在根平面无消费者)成文;`distro` 的 `auto`/`default`/pin 三态、每个 UNC 目标由自身 distro 服务、pin 下拒外来路径,以及 `distroCwd`/`restrictToDistro`/`sandbox`/`maskWindowsDrive`/`watchMaxDepth` 逐键成表,且自成一行、不与会话级行联动;`sandbox` 失败关闭成文 | `fs-routing.test.mjs`(纯谓词与路径助手)、`provider.test.mjs`(per-distro substrate/worldPath) | 类本体无单测(需 DSH peers 与实机);由组合测试与真机探针覆盖 |
@@ -63,7 +64,6 @@ docs/ 各篇里的行为承诺登记成带编号的需求条目,并给每条
63
64
  | R27 | doctor CLI 独立性:不加载 peer 依赖与宿主服务,插件运行时本身损坏时仍可诊断;固定骨架本地化(Windows 区域设置检测,`--locale`/`DSH_WSL_DOCTOR_LOCALE` 覆盖),逐项事实保持英文,`--json` 语言无关 | DIAGNOSTICS「The surfaces」;CONFIGURATION「Message language」;LIMITATIONS「消息本地化」条 | ①②④:peer-free 内联与防漂移对拍成文;catalog 键 parity 与占位符行为有测试 | `doctor.test.mjs`(inlining parity、locale catalog、检测与覆盖) | 语言检测需 Windows registry(非 Windows 上回退英文,`run` 不抛错) |
64
65
  | R28 | 每日更新检查经宿主插件管理器委托,不自取;事实进 `DSH_WSL_PLUGIN_UPDATE`;`wsl-update-check.enabled: false` 可关闭 | README「Install」;CONFIGURATION `wsl-update-check` 行 | ①②⑤:委托路径、TTL、关闭开关成文 | `update-check.test.mjs` | doctor 不再自行查询 registry:更新提示只走这条委托路径 |
65
66
  | R29 | `workspace-write` 的额外可写目录:`writableRoots`(两行同列表)与共享 `additionalWritableRoots` 解析为同一组 Linux 根,经一次物理目录检查后绑定进命令、受限写入 resident 与 session runtime;已被工作区/临时区覆盖或嵌套的条目不绑定 | CONFIGURATION「工具链缓存与额外可写目录」;ARCHITECTURE「Sandbox」;LIMITATIONS「workspace-write 默认不授予…」 | ①②③⑤⑥:`~` 展开、UNC/Linux 拼写、跨发行版/盘符拒绝、together-grant、cached key、安全代价与 `partial` 成文 | `writable-roots.test.mjs`、`agent.test.mjs`(bwrap argv)、`provider.test.mjs`(围栏与命令两条路径)、`session-runtime.test.mjs`(key 与前缀);probe:sandbox 的授权根腿 | 真机端到端 `pnpm install` 尚未纳入探针套件;`additionalWritableRoots` 的宿主会话语义仍由上游策略决定 |
66
-
67
67
  | R30 | 发行版工作区落在非 WSL 环境时可见:会话内常驻警示(空白会话可一键切换、已开始则修正 `windowsWorkspaces`)、页头 **WSL工作区正以Windows模式打开** 标记、面板列出 Windows 访问目录,且 `auto-preset` 以日志与模型运行时上下文说明 PowerShell/9p 环境 | README「Using it」;QUICKSTART「Open a WSL workspace」;CONFIGURATION `auto-preset` 行;UPSTREAM-SESSION-NOTICE.md | ①②③⑤:判定口径(UNC 工作区 + 投影 preset 与 `auto-preset.preset` 不同)、两种成因与各自动作、投影缺失时不猜测、子代理不重复播报成文 | `auto-preset.test.mjs`(宿主侧告警与子代理/锁定/预设缺失分支)、`preset-choice.test.mjs`(访问目录判定)、`client.test.mjs`(加载器级警示状态机:显示/隐藏、切换/收起/忘记动作、badge 同步、面板目录列表);`test/browser/` 下的 Chromium 套件覆盖布局、可见性、点击与 badge 时序 | Desktop 外壳的真实装配仍靠真机探针;通用 notice 接缝仍缺(UPSTREAM-SESSION-NOTICE) |
68
68
 
69
69
  登记覆盖面:上表登记 README 与 docs/ 中对外成文的行为承诺(含随发的服务面)。
@@ -1,6 +1,8 @@
1
1
  # Roadmap 1.0: the WSL plugin the DSH ecosystem should have
2
2
 
3
- Status: working plan, last refreshed 2026-11-09 against `0.22.0` (the WSL-316 doctor loop and the 0.21/0.22 GUI/localization line; the §2 area tables remain the 0.15.0 baseline and are explicitly historical).
3
+ Status: working plan, last refreshed 2026-11-17 against `0.26.3` (the HMR
4
+ takeover, in-app provider check, and locale-coverage line; the §2 area tables
5
+ remain the 0.15.0 baseline and are explicitly historical).
4
6
  The 0.12.0 baseline that motivated the plan is kept below as history.
5
7
  Audience: maintainers and contributors. This is a plan, not a release promise.
6
8
  The short version: **from "the only WSL plugin" to "the default WSL plugin"** —
@@ -41,7 +43,7 @@ North-star metrics:
41
43
  |---|---|
42
44
  | Tier 1 first-run success | >= 95% |
43
45
  | Time to first successful WSL command | p50 <= 5 min, p90 <= 15 min |
44
- | Real-machine probe suite | 100% on Tier 1, nightly |
46
+ | Real-machine probe suite | 100% on Tier 1 before release (manual closed-app suite) |
45
47
  | Known documentation drift | 0 |
46
48
 
47
49
  ## 2. The 0.15.0 baseline
@@ -155,7 +157,7 @@ correct once configured" and "the plugin is correct on first contact".
155
157
  | 1-2 | Baseline and hygiene | Ten clean-machine timings; P0.4; doctor specification |
156
158
  | 3-6 | Multi-distro | P0.1 implementation, unit tests, two-distro probe, migration note |
157
159
  | 7-8 | First-run loop | P0.2, P0.3, P0.5 |
158
- | 9-10 | Compatibility and proof | P1.2, P1.3, nightly probe runner |
160
+ | 9-10 | Compatibility and proof | P1.2, P1.3, manual probe runner evidence |
159
161
  | 11-12 | Surface and performance | P1.4/P1.5 spike, P1.6 baseline, P1.7 fault injection |
160
162
  | 13+ | Ecosystem and 1.0 | P2.1-P2.4, release gates |
161
163
 
@@ -168,7 +170,7 @@ may move if the compatibility matrix exposes a higher-severity failure.
168
170
  |---|---|---|---|
169
171
  | Time to first command | Not systematically measured | p50 <= 5 min, p90 <= 15 min | Ten clean-machine runs |
170
172
  | Tier 1 first-run success | Not measured | >= 95% | Compatibility matrix |
171
- | Real-machine probes | 17 with `--include-fs` (16 base scripts plus `run.sh`; suite grew to 17 on 2026-11-06); nightly on the self-hosted Windows+WSL runner since 0.15.0 (cron 21:30 UTC, hosted runners skip green) | 100% green on the nightly run | CI `probes` job history |
173
+ | Real-machine probes | Full `--include-fs` suite run locally before release with the app closed; a manual `probes` dispatch is available once a self-hosted Windows+WSL runner exists. The nightly schedule and its heartbeat were removed on 2026-11-18 because none is registered | 100% green before release | Local closed-app suite output; manual `probes` run |
172
174
  | FS single-op p95 | ~22ms host round trip | <= 30ms | `fs-queue.mjs` |
173
175
  | 16 concurrent reads p95 | 2.4-8.2ms | <= 20ms | `fs-queue.mjs` |
174
176
  | GUI preview p95 | Backend 63.5 ms/MiB (service round trips on top) | <= 1s/MiB | `probe:gui-preview` |
@@ -187,7 +189,7 @@ probe reports.
187
189
  | Upstream never lands a seam | Keep the plugin independent; promotion work is packaging and proof, not a dependency |
188
190
  | Multi-distro refactor destabilizes routing | Introduce `distro: auto` behind tests; keep explicit pins; run two-distro probes before release |
189
191
  | `sessionSandbox: auto` hides a semantic change | Still use bwrap; report the scope mode in the result; explicit `true` keeps the strict behavior |
190
- | Real-machine CI is unavailable | Self-hosted Windows nightly; qemu for the aarch64 binary; manual suite before release |
192
+ | Real-machine CI is unavailable | Manual closed-app suite before release; qemu for the aarch64 binary; attach a self-hosted Windows+WSL runner and re-enable the manual `probes` dispatch if continuous evidence is needed |
191
193
  | Solo maintenance and bus factor | Freeze scope for 1.0; document every seam; keep the issue templates and probes current |
192
194
  | Security overclaim | Keep `enforcement: partial`; the strict preset narrows, never closes, the interop hole |
193
195
  | GUI regression repeats | Never replace the shipped `workspace-files` row again; only route and optimize |
@@ -465,8 +467,10 @@ but never executed.
465
467
  evidence (COMPATIBILITY.md). Physical aarch64 and Windows 10 are
466
468
  documented as out of scope rather than untested claims.
467
469
 
468
- **Tests/probes:** container matrix, qemu spike, COMPATIBILITY.md; nightly
469
- `probes` job is GitHub-hosted `windows-latest` and skips without WSL.
470
+ **Tests/probes:** container matrix, qemu spike, COMPATIBILITY.md; the manual
471
+ `probes` job is GitHub-hosted `windows-latest` and skips without WSL. The
472
+ nightly schedule was removed on 2026-11-18 (no self-hosted runner); run the
473
+ closed-app suite locally for evidence.
470
474
 
471
475
  **Depends on:** WSL-201 for non-systemd; WSL-203 for packaging.
472
476