dsh-windows-parallel-mcp 0.1.6 → 0.3.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.
Files changed (48) hide show
  1. package/CHANGELOG.de.md +374 -0
  2. package/CHANGELOG.es.md +374 -0
  3. package/CHANGELOG.fr.md +374 -0
  4. package/CHANGELOG.it.md +374 -0
  5. package/CHANGELOG.ja.md +374 -0
  6. package/CHANGELOG.ko.md +374 -0
  7. package/CHANGELOG.md +116 -1
  8. package/CHANGELOG.pt.md +374 -0
  9. package/CHANGELOG.ru.md +374 -0
  10. package/CHANGELOG.zh.md +374 -0
  11. package/INSTALL.de.md +126 -0
  12. package/INSTALL.es.md +126 -0
  13. package/INSTALL.fr.md +126 -0
  14. package/INSTALL.it.md +126 -0
  15. package/INSTALL.ja.md +126 -0
  16. package/INSTALL.ko.md +126 -0
  17. package/INSTALL.md +49 -11
  18. package/INSTALL.pt.md +126 -0
  19. package/INSTALL.ru.md +126 -0
  20. package/INSTALL.zh.md +126 -0
  21. package/README.de.md +275 -0
  22. package/README.es.md +275 -0
  23. package/README.fr.md +275 -0
  24. package/README.it.md +275 -0
  25. package/README.ja.md +275 -0
  26. package/README.ko.md +275 -0
  27. package/README.md +114 -24
  28. package/README.pt.md +275 -0
  29. package/README.ru.md +275 -0
  30. package/README.zh.md +275 -0
  31. package/docs/refusals.md +17 -10
  32. package/docs/takeover.md +129 -0
  33. package/dsh.plugin.json +3 -3
  34. package/lib/config.js +57 -2
  35. package/lib/host-tools.js +32 -2
  36. package/lib/index.js +149 -14
  37. package/lib/proof-window.mjs +24 -3
  38. package/package.json +38 -4
  39. package/src/engine/decide.ps1 +110 -57
  40. package/src/engine/engine.ps1 +201 -8
  41. package/src/engine/hud.ps1 +411 -0
  42. package/src/engine/input-inject.ps1 +176 -0
  43. package/src/engine/overlay.ps1 +7 -1
  44. package/src/engine/takeover.ps1 +144 -0
  45. package/src/engine/win.ps1 +18 -1
  46. package/src/engine/worker.ps1 +63 -4
  47. package/src/schema/tools.json +57 -13
  48. package/types/index.d.ts +68 -0
@@ -0,0 +1,374 @@
1
+ # Changelog
2
+
3
+ [English](CHANGELOG.md) · [中文](CHANGELOG.zh.md) · [日本語](CHANGELOG.ja.md) · [한국어](CHANGELOG.ko.md) · [Français](CHANGELOG.fr.md) · [Deutsch](CHANGELOG.de.md) · **Italiano** · [Español](CHANGELOG.es.md) · [Português](CHANGELOG.pt.md) · [Русский](CHANGELOG.ru.md)
4
+
5
+ > **Italiano translation — work in progress.** The English canonical text follows below; task-specific polishing replaces it section by section. The structure, code samples and numbers are already final — only the prose is pending. See the en document for the authoritative wording.
6
+
7
+ Dates are the registry `time` values for each version, not git commit dates — a commit date records
8
+ when someone typed, a publish time records when a version became installable, and only the second
9
+ one is a promise to anyone installing it.
10
+
11
+ ## 0.3.0 — registry time 回填前
12
+
13
+ > Dieci lingue e una superficie pubblica tipizzata. I documenti sono pubblicati nelle dieci lingue dell'ecosistema DSH, con l'italiano come opzione di primo livello accanto all'inglese. Due casi di installazione: desktop (solo pnpm integrato, mai `dsh plugin add`) e non-desktop. Aggiunto `types/index.d.ts`. Vedi la voce inglese.
14
+
15
+ ## 0.2.0 — 2026-11-23
16
+
17
+ > Published 2026-11-23T06:26:52Z (registry `time` for 0.2.0, read from the packument, not from a commit
18
+ > date).
19
+
20
+ **The promise changes shape, so the version changes major-minor.** 0.1.x said: no physical input at
21
+ all, ever. That was true and cheap to enforce by absence. 0.2.0 keeps it as the DEFAULT and adds an
22
+ opt-in tier that can move the cursor and type into the foreground window — which means the old claim
23
+ cannot stay as written, and a release that quietly kept the old wording would be the exact failure
24
+ mode this project keeps writing gates against.
25
+
26
+ ### Added — the takeover tier (`takeover:true`)
27
+
28
+ - **A fourth tier.** `quiet` (window messages) and `bounded-flash` (UIA pattern, one reversed flash)
29
+ are unchanged. `takeover` is entered only by an explicit request AND with both settings gates on;
30
+ it places the real cursor on the action point, holds the focus for the duration, and always
31
+ restores. `refuse` is unchanged.
32
+ - **The HUD's phase is a colour, not a sentence.** `arming` is amber, `active` red, `done` green —
33
+ encoded twice (whole surface tint + a 5px accent bar) because the owner is looking at the target
34
+ window, not at a 470×104 window in the corner. `test/hud-test.ps1` asserts it from the real pixels
35
+ (C18, five arms: each phase's dominant hue, all three distinct, and the surface tint changing too).
36
+ - **A three-phase HUD as a hard precondition.** `arming` (default 800 ms, cancellable) → `active`
37
+ (elapsed/limit clock and injected-character count) → `done`. `WS_EX_TOPMOST|WS_EX_NOACTIVATE`,
38
+ `ShowActivated=false`, measured to leave `GetForegroundWindow()` unchanged. Empty space is
39
+ click-through via a `WNDPROC` subclass returning `HTTRANSPARENT`; the button stays clickable.
40
+ No HUD ⇒ `takeover_unavailable`, never a silent takeover.
41
+ - **Three interruption paths, one flag.** HUD stop button, a global abort chord (candidates from
42
+ `Ctrl+Alt+X`; the one that actually registered is displayed and reported as `abortChord=`), and the
43
+ host's cancellation (`exec.signal` → `%LOCALAPPDATA%/wpm/takeover-abort.<pid>` latch file, because
44
+ the worker is single-threaded and cannot read a request mid-action). Interruption returns
45
+ `takeover_aborted` WITH `cursorRestored` and `injectedChars`.
46
+ - **Keyboard injection, takeover-only** (`keyInput:"inject"`). `SendInput` + `KEYEVENTF_UNICODE`,
47
+ per character, interruptible every 8 characters or 50 ms. The foreground is asserted to BE the
48
+ target before sending and re-asserted at send time — measured: text sent while another window was
49
+ in front landed in that window. Success reports `effect=reported-by-send`, never "verified".
50
+ No hardware scancode is carried; a scancode-only target would ignore it (documented limitation).
51
+ - **New refusals, three copies kept in step:** `takeover_unavailable` and `keyinject_unavailable`
52
+ (decision layer), `takeover_aborted` (runtime layer).
53
+ - **New settings:** `takeoverAllowed=false`, `keyInjectAllowed=false`, `takeoverMaxMs=10000`,
54
+ `takeoverArmMs=800`. Both gates default OFF so an upgrade cannot start moving the cursor by itself.
55
+ - **New gates:** `check-no-cursor-control.mjs` became a whitelist (`SetCursorPos` only in
56
+ `takeover.ps1`, `SendInput` only in `input-inject.ps1`, mouse events banned everywhere), and a new
57
+ `check-takeover-path.mjs` asserts G1–G5 (file confinement, branch-scoped loading,
58
+ HUD-checked-before-act, move-and-restore in one `try/finally`, keyboard-only events) and proves
59
+ itself non-vacuous by injecting one violation per assertion. `check.mjs` now runs 11 gates.
60
+ - **`proof` grew a declared takeover:** cursor motion on this tier is reported as `declared`, but
61
+ `cursorRestored=false` is a hard `proof=fail` with the reason 「借了未还」.
62
+
63
+ ### Withdrawn — the terminal claim was measured false
64
+
65
+ The plan for this release was to drive a terminal by typing into it. Two probes disagree, on this
66
+ host, with everything else held correct: `scripts/probe-console-inject.ps1` sent 242 Unicode events
67
+ into a dedicated Windows Terminal window (foreground verified, Enter sent) and the shell executed
68
+ nothing; `scripts/probe-console-scan.ps1` repeated it with layout scan codes (262 events) and got the
69
+ same result. GUI targets are unaffected — the same code types Chinese text into a WinForms edit
70
+ successfully. So `terminal_no_door` stays, its reason now points at what DOES work (a target with a
71
+ real door), and the documentation says plainly that the terminal is neither writable nor readable
72
+ here. A capability that cannot be demonstrated is not shipped as a promise.
73
+
74
+ ### Fixed / hardened
75
+
76
+ - **The marker had a white square behind it.** `overlay.ps1` set `AllowsTransparency` but never set
77
+ `Background`, and a WPF `Window`'s default background is `SystemColors.WindowBrush` (white) — so the
78
+ 22px marker painted an opaque white tile with the blue ring inside it. Geometry could not see this
79
+ (the rect was correct and click-through still worked), which is why it survived every existing arm.
80
+ Fixed with an explicit `Transparent` background and pinned by a NEW PIXEL ARM in
81
+ `test/overlay-test.ps1`: `PrintWindow(PW_RENDERFULLCONTENT)` the marker and assert the corners are
82
+ unpainted while the centre still carries the ring. Measured before/after with the same probe — corner
83
+ rgb **217,217,217 → 0,0,0**, centre rgb **166,204,217 → 0,38,51**; removing the fix turns the arm red.
84
+ - `lib/config.js`: on the Schemastery path, unknown setting keys were silently carried into the
85
+ validated value (a typo looked accepted while doing nothing). They are now rejected, matching the
86
+ shim's rule that the plugin test already pinned.
87
+ - `docs/refusals.md`: `terminal_no_door` no longer claims "no child HWND" — the measured truth is
88
+ "three child HWNDs, none writable" (drag bar, DirectComposition target, 0×0 input sink).
89
+
90
+ ### Measured for this release (re-runnable from `scripts/`)
91
+
92
+ - `SetCursorPos(+40,+20)` read back exactly, restore landed exactly (`probe-setcursor-pos.ps1`).
93
+ The elevated-foreground arm could not be arranged from a non-elevated process — recorded as
94
+ unmeasured, not guessed.
95
+ - Injected text goes to the FOREGROUND window, not the intended one (`probe-sendinput-unicode.ps1`, B
96
+ in front ⇒ text in B and nothing in A; A in front with Chinese ⇒ landed in A).
97
+ - HUD click-through: `HwndSource` hook receives `WM_NCHITTEST` but cannot change hit-testing; a
98
+ `WNDPROC` subclass works (`probe-hittest-children.ps1`).
99
+ - Desktop test arms (manual, because they move the real pointer): `test/hud-test.ps1` 19/19,
100
+ `test/takeover-test.ps1` 22/22, `test/keyinject-test.ps1` 11/11 with one skip (the real-console
101
+ arm, superseded by the two console probes above).
102
+ ## 0.1.6 — 2026-11-21
103
+
104
+ Two failures that shared one refusal code are split — because the reader's next step differs.
105
+
106
+ **The defect.** Everything door-less came back `unreachable`. Two of its causes are opposites: a
107
+ tree that was never populated (the application has UI Automation off — measured on this desktop:
108
+ uTools walks to zero content elements on three in-place reads spanning 2.2 s and never grows one),
109
+ and a probe that threw (the tree could not be measured at all). The probe's own diagnostic was
110
+ already being produced and then wasted: `uiaErr` reached the result object only as a reason-string
111
+ suffix that nothing branched on — 0.1.5's point-probe work found it as dead data. A caller reading
112
+ `unreachable` could not tell "pick another target" from "make the app enable accessibility" from
113
+ "read the exception".
114
+
115
+ **Fixed**
116
+ - **`uia_tree_empty`** — the walked tree holds **zero content elements**. The criterion is
117
+ structural, not numeric: Pane/Group/Image/Text/Thumb/Separator/TitleBar are the window's own
118
+ shell; anything else (Button, Edit, Document, Custom) is something an application chose to
119
+ expose. Count alone lies — an a11y-off Chromium window still exposes one
120
+ `Chrome_RenderWidgetHostHWND` shell pane, and the same uTools window measured raw=0 and raw=1
121
+ the same day depending on its own state while content stayed 0 throughout. The reason states
122
+ the observation, not an exclusive cause: a provider that answers nothing (a hung pump) reads as
123
+ empty too, instantly, without throwing — that second cause is documented, not hidden.
124
+ - **`uia_probe_failed`** — the probe threw before it could measure; no conclusion about the
125
+ target is licensed. The exception text rides the reason as `[uia: …]`. Measured: WM_CLOSE
126
+ landing 40 ms into the call (between the `IsWindow` check and `FromHandle`) returns this code
127
+ with the original exception text, not `unreachable`. Probe failure outranks tree-empty — a
128
+ measurement that threw cannot also certify emptiness — and a usable door outranks both.
129
+ - **The refusal reason carries the probe's context for all three codes**: which point was probed
130
+ and what it found there, plus the exception when one exists. A diagnosis with the evidence
131
+ redacted is not a diagnosis.
132
+
133
+ **Also**
134
+ - The reverse assertion about Chromium's "lazy" accessibility is written where the next reader
135
+ will trip over it (`scripts/chromium-a11y-flag.mjs` conclusion, README's measurement section):
136
+ the same window re-read in place three times (+0/+700/+1500 ms) never grew content, an a11y-on
137
+ tree answers completely on the first query — so the engine does NOT re-query with a deadline
138
+ and no retry exists anywhere. The instrument ships:
139
+ `scripts/uia-tree-content.ps1` reads the same two counters with the same shell-type table the
140
+ engine decides on.
141
+
142
+ Measured instances behind every claim above: real-window end-to-end refusals for all three codes
143
+ (`uia_tree_empty` via both the scan and the point path on uTools; `unreachable` on a tree-alive
144
+ window; `uia_probe_failed` on a mid-probe destroy), decision-table arms for each new branch and
145
+ its precedence, and `refusals-test` 11 passed with 2 codes still declared uncovered
146
+ (`action_failed`, `restore_failed`).
147
+
148
+ ## 0.1.5 — 2026-11-21
149
+
150
+ A click that acted on the wrong control, and returned `ok:true` while doing it.
151
+
152
+ **The defect.** The contract (`src/schema/tools.json`) makes `x`/`y` **required** for `click` and says
153
+ a point that does not resolve inside the target is refused "instead of being sent somewhere else".
154
+ The message tier honours that (`Resolve-WpmChildAtPoint`). The **UIA tier did not read `x`/`y` at
155
+ all**: it scanned descendants and invoked the FIRST element carrying any usable pattern, then
156
+ reported success. On any target without a message door — WPF, UWP, WinUI3, i.e. most modern
157
+ applications — `click` at the coordinates of one control operated on a different one entirely, and
158
+ the marker was still drawn at the requested point, so the product's own evidence pointed at a place
159
+ it had not acted on. This is worse than a refusal: a refusal is honest, this was a wrong action
160
+ wearing a success report.
161
+
162
+ Measured, not inferred. A two-button WPF target at known coordinates, with the click counters
163
+ written by the handlers themselves:
164
+ - pre-fix engine, click aimed at **Bravo**: `alpha 0->1`, `bravo 0->0`, `last='alpha'`, result `ok:true`
165
+ - fixed engine, same call: `bravo 0->1`, `alpha 0->0`, `last='bravo'`, `channel=uia tier=bounded-flash`
166
+
167
+ **Fixed**
168
+ - The UIA tier resolves the element **at the point** (`Resolve-WpmUiaElementAtPoint`,
169
+ `AutomationElement.FromPoint`), climbs to the nearest ancestor carrying a usable pattern, and
170
+ refuses when the point does not belong to the named window. Naming an element with
171
+ `elementName` still takes the by-name path: there the caller asked for that control.
172
+ - **Ancestry is proven before the pattern is looked for.** The first version of this fix searched
173
+ while climbing and returned on the first pattern — which reproduced the original defect one level
174
+ down: a point outside the target climbed into the taskbar, found a patterned button there,
175
+ invoked it and answered `ok:true`. Caught by the "point outside the target" arm of the new test,
176
+ not by review.
177
+ - `uiaErr` was produced and read by nobody (`grep` found zero consumers), so a walk that *threw*
178
+ reached the caller as "no message door and no usable UIA pattern" — a factual claim that may be
179
+ false. The probe now also carries `uiaReason`, and a refusal appends what the point probe found,
180
+ so `unreachable` no longer collapses two different worlds into one sentence.
181
+
182
+ **Added**
183
+ - `test/uia-click-target.ps1` — a two-button WPF target that publishes its button centres in
184
+ **physical pixels** (the test that computed them itself was 1.5x off; that DPI lesson is written
185
+ into the file) and writes click counts from the handlers that fired.
186
+ - `test/uia-click-truth.mjs` — 12 arms, and a new gate (`scripts/check.mjs`, now 13). It fails in
187
+ both directions: point-at-Bravo must bump Bravo and not Alpha; a point outside the target must be
188
+ refused, must fire neither button, and must say *why*.
189
+
190
+ **Unchanged** — the refusal-code set, the pure judgment, the message tier, the marker.
191
+
192
+ ## 0.1.4 — 2026-11-21
193
+
194
+ (Registry time is the authority for the timestamp; same convention as below.)
195
+
196
+ The source became reachable. Until now the package had **no repository, homepage or bugs field** —
197
+ not an oversight at authoring time, but a consequence of the repo not existing: there was no URL to
198
+ put there. `git remote -v` was empty through 0.1.0–0.1.3, so every claim in the README pointed at a
199
+ tarball and nowhere else. Creating the repository is what unblocks this, and it is the only reason
200
+ this release exists.
201
+
202
+ **Added**
203
+ - `repository`, `homepage` and `bugs` in `package.json`, so npmjs.com links to the source and to an
204
+ issue tracker instead of leaving a reader with a download and no way to report a refusal that
205
+ should not have happened.
206
+ - README now names the repository in its opening section, next to the non-affiliation notice.
207
+
208
+ **Unchanged**
209
+ - No behaviour. `lib/`, `src/engine/` and the schema are byte-identical to 0.1.3 — this release only
210
+ makes the existing artifact findable. The gate is still green (12 checks), and the profile on the
211
+ authoring machine keeps running 0.1.3 code with an identical `lib` hash.
212
+
213
+ ## 0.1.3 — 2026-11-21
214
+
215
+ (Registry time `2026-11-21T01:20:58Z` UTC (= `2026-11-21 09:20` Beijing; the date follows the same UTC convention as the entries below — the publish time is the promise.)
216
+
217
+ 0.1.2 shipped a proof that answered "did we disturb you". It never answered "did the thing happen" —
218
+ the engine computed `effect` on every action call and the Node half dropped it on the floor, so
219
+ `proof=pass` could mean *"clicked, and the app ignored it"*. This release closes that link, and then
220
+ closes the hole the missing link was hiding.
221
+
222
+ **Added**
223
+ - `effect=` in every action result's text and `effect` in the structured output, with three values
224
+ that name the SPEAKER rather than the confidence: `unverified` (nobody), `reported-by-send` (the
225
+ message was delivered), `reported-by-pattern` (the UIA call returned). README carries the table;
226
+ the code comment above the branch pins the same three lines. A refusal reports no effect at all —
227
+ no action ran, so nobody can have spoken.
228
+ - `lib/proof-window.mjs` gains an effect dimension: `evaluateProof(samples, { effect, actions })`.
229
+ A call whose channel reported nothing is capped at `inconclusive`; a batch caller whose every
230
+ attempt failed gets `fail` regardless of displacement. Both are opt-in — omitting `effect` leaves
231
+ every pre-0.1.3 caller's behaviour untouched, which is why the 32 pre-existing arms did not move.
232
+
233
+ **Corrected**
234
+ - The gate could read a total no-op as a green light: zero cursor displacement, zero foreground
235
+ switches, nothing accomplished => `pass`. The old plan named the case ("50 failed calls, zero
236
+ displacement, FAIL") and never landed it. It is landed now, with the arms that fail in the
237
+ direction that matters: `unverified` + a still desktop is not a pass, and 50 failed attempts is a
238
+ `fail` whose reason says 动作未生效.
239
+ - Word boundaries: `reported-by-send` says the message was DELIVERED. It does not say the application
240
+ processed it, and `reported-by-pattern` does not say the interface changed. Single `reported-by-*`
241
+ evidence still passes (it is real, just not independent) and the reason says so out loud: 未独立验证.
242
+
243
+ **Verified**
244
+ - `node test/proof-window-test.mjs` — 40 arms, 0 failed (32 carried over unchanged, 8 new).
245
+ - `node test/plugin-test.mjs` — 54 arms, 0 failed, including a real `no_hwnd` refusal carrying no
246
+ effect and the three legal values round-tripping through the shipped projection.
247
+ - `node scripts/check.mjs` — 12 gates green, including the marker end-to-end gate, which on this
248
+ machine's real desktop printed
249
+ `proof=pass [cursor=pass fg=pass focus=pass] :: effect=reported-by-send: a channel reported the call
250
+ returned -- 未独立验证`.
251
+
252
+ ## 0.1.2 — 2026-11-20
253
+
254
+ (Registry time `2026-11-20T17:15:15Z` UTC = `2026-11-21 01:15` Beijing; the date follows the same
255
+ UTC convention as the entries below, because the header's rule is "the publish time is the promise".)
256
+
257
+ The proof chain became real: what started as "the README says the cursor never moves" ended as a
258
+ per-call measurement, a build-time guarantee, and — recorded honestly — three judgment designs that
259
+ the real desktop rejected before one survived.
260
+
261
+ **Added**
262
+ - Every `click` carries a disturbance proof: `proof=pass|inconclusive|fail|insufficient(…)` in the
263
+ text plus structured `proof` / `proofDimensions`. The engine samples cursor/foreground/focus/
264
+ last-physical-input-age in two windows — a pre-action control (nothing running, by construction)
265
+ and inside the settle wait it already pays; four read-only syscalls, no new process.
266
+ - `lib/proof-window.mjs` — the one pure implementation of the judgment. `sampler.mjs` delegates to
267
+ it too: the fleet reachability numbers and the per-action proof cannot drift into two instruments
268
+ sharing one name. 32 synthetic unit arms pin the semantics, including cases that must FAIL —
269
+ a verdict function that only ever says pass is worthless, and the arms check it can say otherwise.
270
+ - `scripts/check-no-cursor-control.mjs` — build gate: no shipped engine file may contain
271
+ `SetCursorPos` / `SendInput` / `mouse_event` / `keybd_event`. Verified non-vacuous (injecting
272
+ SetCursorPos turns it red; removing it turns it green, no residue).
273
+ - `scripts/idle-baseline.mjs` — re-runnable probe of what the cursor does with NOTHING running.
274
+ Measured answer on the authoring machine: up to 3 unexplained gaps / 11 px. This is why the
275
+ runtime cursor dimension reports and never accuses.
276
+ - Marker placement through the shipped plugin is verified end-to-end against an independent oracle:
277
+ a real click puts the marker over the point it hit in physical pixels, and the marker is proven
278
+ (via `EnumWindows`) topmost-over-the-target while `GetForegroundWindow` stays unchanged.
279
+
280
+ **Corrected**
281
+ - The cursor guarantee was MEASURED OUT of the runtime sensor and INTO the build gate. Two runtime
282
+ rules failed on clean clicks (a strict 1 px bar: 3.16 px; a control-window noise floor: 7.07 px,
283
+ the floor itself duration-biased). Positions cannot attribute motion to a cause; the idle baseline
284
+ proves even multi-gap motion is ambient on a live desktop. Tuning the number until reds disappear
285
+ would have been laundering, so the rule changed shape instead: zero unexplained gaps passes,
286
+ anything else is inconclusive with the number surfaced, and the actual promise (no cursor control
287
+ exists in the shipped code) is decidable at build time.
288
+ - The disturbance sensor no longer contradicts the product contract: the bounded-flash tier raises
289
+ foreground deliberately and restores it; those switches are reported as `declared`, not failed.
290
+ ("Never KEEP the foreground" is owned by the restore table — `restore_failed` — not by sampling.)
291
+ A pass verdict can no longer print "no switches" while carrying declared ones.
292
+ - Overlay cold-start wait raised to 6 s: the runspace JITs WPF past the old 2.5 s budget on a cold
293
+ worker, and the caller read a false "overlay not running".
294
+ - Gate philosophy for occluded desktops, applied to a TOCTOU case (a fullscreen video window moving
295
+ over the point between premise-probe and click): the engine's refusal is correct behaviour, so the
296
+ arms re-probe and convert to a NAMED SKIP. Desktop the test doesn't control never reads as red;
297
+ and a silent skip never reads as tested either.
298
+ - A real product bug in the marker path, caught by the gate going red intermittently (and fixed at
299
+ the cause, not the symptom): the overlay's readiness handshake **polled one flag and judged
300
+ another**. It waited for `OverlayHwnd` — assigned right after `Show()`, before the ex-style trio
301
+ is applied — but reported `running = OverlayOn`, set only after trio + hotkey + pump. So during
302
+ that window `status` said "not running" about an overlay that was initialising, AND read back a
303
+ half-styled window (`exStyle=0x00080008`, TOPMOST|LAYERED but NO TRANSPARENT — WPF's own bits
304
+ before the explicit trio lands). The Node half's fire-and-forget `markPoint` sequenced placement
305
+ behind the handshake; the handshake rejected; the marker request was skipped for a click that had
306
+ already answered, so nobody ever retried and the marker stayed parked at (-2000,-2000). One
307
+ warning, then silence forever. That was not a flake to be slept past:
308
+ the readiness flag is now the judgment flag (`OverlayOn`), a budget that merely expired reports a
309
+ third state (`starting`) instead of masquerading as a crash, and placement retries on a bounded
310
+ 6 s deadline that stops immediately when the start is *provably* dead (a reason + not starting).
311
+ Patience lives where a stop condition can be named — the worker-side sleep cannot.
312
+
313
+ **Verified for this version**
314
+ - 12-arm gate green; live clicks through the SHIPPED plugin: proof=pass across 18–22 sample gaps
315
+ with `[cursor=pass fg=pass focus=pass]`; four-run stability: 3 pass + 1 ambient inconclusive
316
+ surfaced as WARN (anti-vacuity: weaker-than-pass never prints as INFO).
317
+ - The independent marker oracle now ANCHORS on the overlay handle the product reports via
318
+ `status` (`overlayHwnd=...`). Matching by title alone could grade a leaked same-titled window from
319
+ an earlier run — certifying a marker we never placed; more than one candidate is now reported as
320
+ ambiguous rather than silently resolved to `$hits[0]`.
321
+ - `lib/proof-window.mjs` confirmed inside the tarball (20 entries).
322
+
323
+
324
+
325
+ ## 0.1.1 — 2026-11-20
326
+
327
+ The same product as 0.1.0. This version exists to fix the packaging chain, not the behaviour.
328
+
329
+ **Changed**
330
+ - Repository line endings normalised to LF. 0.1.0 was published from a tree where an editing script
331
+ had converted ten files to CRLF, so the registry tarball (sha256 `84196f21…`) and this repository
332
+ no longer hashed the same even though the code was identical. 0.1.1 restores "the repository and
333
+ the published artifact are the same bytes".
334
+ - `publishConfig` is now explicit: `{ "access": "public", "tag": "latest" }`. The default was
335
+ already `latest`, but a default is a property of npm while a declaration is a property of this
336
+ package — the difference only shows up the first time someone publishes a prerelease.
337
+
338
+ **Verified for this version**
339
+ - 11 local gates green: PowerShell parse / encoding / static-call, refusal vocabulary, tool schema,
340
+ package contents, host half + sidecar, overlay promises, marker end-to-end, JS syntax.
341
+ - The overlay marker is measurably click-through: `exStyle 0x08080028`, foreground unchanged across
342
+ `Show()`, an independent process confirming `WindowFromPoint` at the marker's centre returns the
343
+ window underneath, and the marker covering the clicked point in physical pixels.
344
+ - The pause chord is measured, not assumed: `Ctrl+Alt+Q` is a first candidate, and on the machine
345
+ this was built on it was owned by another app (Win32 1409), so the engine walked a candidate list
346
+ and registered `Ctrl+Alt+W`. `status` reports the chord that actually registered.
347
+
348
+ **Not fixed in this version** (unchanged from 0.1.0, stated rather than implied)
349
+ - The settings pill and the four-value switch surface do not exist yet.
350
+ - `restore_failed` has no end-to-end test: it needs an elevated window that can be raised, and no
351
+ such window was present at build time. The decision-table branch is covered by unit tests; the
352
+ live path is not.
353
+
354
+ ## 0.1.0 — 2026-11-20
355
+
356
+ First version with a working plugin in it. Everything before this was a reservation stub.
357
+
358
+ - One tool, `wpm`, with five actions: `windows`, `status`, `click`, `type`, `focus`.
359
+ - A PowerShell sidecar (Windows PowerShell 5.1, nothing to install) driven over a JSON line protocol,
360
+ lazily started so the host's boot path does not pay for a tool nobody called.
361
+ - Eight refusal codes as a three-way contract: what fires, what the schema promises, what the docs
362
+ explain. A gate fails when the three disagree.
363
+ - A click-through, always-on-top marker placed at the point a click hit, and a global pause chord.
364
+ - Measured: window-message tier causes 0 foreground changes in 6/6 rounds with 0 px cursor movement;
365
+ the UI Automation tier's focus takeover returns in 15–95 ms net against a 120 ms budget.
366
+
367
+ ## 0.0.1 — 2026-11-18
368
+
369
+ Reservation stub. The name was reserved before the measurement was done; installing this version
370
+ gives you a README and nothing else. Kept for history, not for use.
371
+
372
+ ## 0.0.0-stage — 2026-11-18
373
+
374
+ The first reservation, same story as 0.0.1.