dsh-windows-parallel-mcp 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.de.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 schließt die Lücke „nicht einmal ein Programm starten zu können“, ergänzt drei Desktop-Fähigkeiten und ersetzt das binäre Tor durch EINE Decke: jede Aktion meldet die niedrigste Stufe, die sie je braucht (requiresTier: readonly < quiet < flash < takeover), der Owner stellt nur ein policy (Standard balanced). Darüber → policy_denied, dessen nächster Schritt ein Einstellen ist, nicht ein Wiederholen. launch braucht zwei Schalter, die einander nicht einschließen (appLaunchAllowed plus eine exakte, case-insensitive appLaunchAllow-Liste — leer heißt nichts startet, kein Wildcard, kein Präfix); ein Abweis kostet null Worker-Requests. Ein Prozess ohne Fenster antwortet ok:true, leeres hwnd und detail=window-not-yet (gemessen: Notepad kalt 1348 ms mit MainWindowHandle=0). Clipboard-Lesen meldet nur die Länge, nie den Inhalt (64-KB-Grenze, truncated offengelegt); Bild-Schreiben nimmt eine shotId. Alle fünf window-Ops werden über den nachgelesenen Zustand des Fensters verifiziert (IsIconic, Rect, WS_EX_TOPMOST), und weil restore per Definition aktiviert, meldet das Ergebnis foregroundTaken, statt es zu verstecken. Aktionen 8 → 11 (vier Stellen synchronisiert; der check-types-Log liest diese Zahlen jetzt aus tools.json). Ist der Owner am Werk, wird abgelehnt (user_active) statt ein Dialog geöffnet; forceUserActive:true ist die sichtbare Ausnahmeklappe und landet im Audit. Drei neue Codes (app_launch_denied, policy_denied, user_active), jeder zeigt auf eine Einstellung. Audit-Log: eine JSONL-Zeile pro Aktion, allow WIE deny, nie Inhalte. Zwei echte Defekte behoben: Clipboard.Flush() existiert in PowerShell 5.1 (.NET Framework) nicht, und ein Refusal-Handler las einen Schlüssel, den sein Zweig nie setzte. Gate 21 check-policy-table prüft, dass JS- und PS-Leiter dieselbe Liste in derselben Reihenfolge sind; check-jsdoc prüft jetzt, dass jede Datei in lib/ abgedeckt ist (vorher wurden neue Module still übersehen). Bewusst härter: takeover:true braucht jetzt policy=full zusätzlich zu takeoverAllowed. Volles Gate: 21 Arme, GATE GREEN ×3. Maßgeblich ist der englische Eintrag.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 hebt `type` von „gesendet“ auf „das Feld enthält wirklich diesen Wert“: vierter `effect=readback-verified`, nur wenn der zurückgelesene Wert mit der Vorhersage übereinstimmt, die aus den Messungen DES CONTROLS gebaut wurde (Vorwert, WM_GETTEXTLENGTH, EM_GETSEL-Einfügepunkt); ein maskiertes Feld meldet `readback=unavailable`, eine umformatierende Anwendung `readbackMismatch=true` — beides ohne Hochstufung und doch `ok:true`. `caretPosition: idle|start|end` — gemessen ist `EM_SETSEL(-1,-1)` auf WinForms-EDIT ein No-op, daher nutzt `end` (len,len), und das Ergebnis trennt `asked=` und `applied=`. Fokus direkt vor/nach dem Senden erneut gemessen (`focusMoved`); deaktiviertes Ziel meldet `disabled=true` und `effect` auf `unverified` festgelegt. Screenshot nimmt bevorzugt BitBlt und meldet `captureBackend=bitblt|gdiplus` (Standbild: 0 Kanal-Differenz, byteidentische PNGs; der Engpass ist die Kodierung, nicht die Aufnahme). Gate 20 `check-shot-backend` (sieben Mutationen, jede rot) und `test/readback-truth.mjs` (36 Assertions, gegen die Selbstauskunft der App geprüft). Ein alter Defekt ist behoben: `SendMessageStrW` existiert nicht in user32.dll, darum scheiterte `replace:true` auf jedem Ziel. Keine neuen Verweigerungscodes. Autoritativ ist der englische Eintrag.
16
22
 
package/CHANGELOG.es.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 cierra el hueco de «ni siquiera puedo arrancar un programa», añade tres acciones de escritorio y cambia la puerta binaria por UN techo: cada acción declara el peldaño mínimo que puede necesitar (requiresTier: readonly < quiet < flash < takeover) y el dueño fija un solo policy (por defecto balanced). Por encima del techo → policy_denied, cuyo siguiente paso es subir el ajuste, no reintentar. launch exige dos interruptores que no se implican entre sí (appLaunchAllowed más una lista appLaunchAllow exacta e insensible a mayúsculas — vacía = nada arranca, sin comodines ni prefijos); una denegación no cuesta ninguna petición al worker. Un proceso sin ventana responde ok:true, hwnd vacío y detail=window-not-yet (medido: notepad en frío 1348 ms con MainWindowHandle=0). La LECTURA del portapapeles devuelve solo la longitud, nunca el contenido (límite 64 KB, truncated declarado); la escritura de imagen acepta un shotId. Las cinco operaciones de window se verifican releyendo el estado de la ventana (IsIconic, rect, WS_EX_TOPMOST), y como restore activa por definición, el resultado informa foregroundTaken en lugar de ocultarlo. Acciones 8 → 11 (cuatro copias sincronizadas; el log de check-types ahora lee esos números desde tools.json). Si el dueño está presente se niega (user_active) en vez de abrir un diálogo; forceUserActive:true es la salida explícita y queda en la auditoría. Tres códigos nuevos (app_launch_denied, policy_denied, user_active), cada uno señala un ajuste. Registro de auditoría: una línea JSONL por acción, allow Y deny, nunca el contenido. Corregidos dos defectos reales: Clipboard.Flush() no está exportado por PowerShell 5.1 (.NET Framework), y un manejador de denegación leía una clave que su rama nunca escribía. El gate 21 check-policy-table verifica que ambas escalas (JS y PS) sean la misma lista en el mismo orden; check-jsdoc ahora verifica que cada archivo de lib/ esté cubierto — antes un módulo nuevo quedaba sin revisar en silencio. Endurecimiento deliberado: takeover:true ahora requiere policy=full además de takeoverAllowed. Gate completo: 21 brazos, GATE GREEN ×3. La entrada inglesa es la autoritativa.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 eleva `type` de «lo envié» a «el campo contiene este valor»: cuarto `effect=readback-verified`, concedido solo cuando el valor releído coincide con la predicción construida sobre las medidas QUE EL CONTROL reportó (valor previo, WM_GETTEXTLENGTH, punto de EM_GETSEL); un campo enmascarado dice `readback=unavailable` y una app que reformatea dice `readbackMismatch=true`, ninguno se promueve y ninguno es un fallo. `caretPosition: idle|start|end` — medido: `EM_SETSEL(-1,-1)` no hace nada en EDIT de WinForms, así que `end` usa (len,len) y el resultado separa `asked=` de `applied=`. Foco re-medido en el instante del envío (`focusMoved`); objetivo deshabilitado reporta `disabled=true` con `effect` fijado a `unverified`. La captura prefiere BitBlt y declara `captureBackend=bitblt|gdiplus` (escena fija: 0 diferencia por canal, PNG idénticos byte a byte; el cuello es la codificación, no la captura). Nuevo gate 20 `check-shot-backend` (siete mutaciones, todas en rojo) y `test/readback-truth.mjs` (36 afirmaciones, juzgadas contra el auto-reporte de la app). Corregido un defecto antiguo: `SendMessageStrW` no está exportado por user32.dll, así que `replace:true` fallaba en cada objetivo. Sin nuevos códigos de rechazo. La entrada inglesa es la autoritativa.
16
22
 
package/CHANGELOG.fr.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 comble le trou « on ne peut même pas lancer un programme », ajoute trois actions de bureau et remplace la porte binaire par UN plafond : chaque action déclare le barreau minimal dont elle a besoin (requiresTier : readonly < quiet < flash < takeover) et le propriétaire pose un seul policy (balanced par défaut). Au-dessus du plafond → policy_denied, dont la prochaine étape est de lever le plafond, pas de relancer. launch exige deux interrupteurs indépendants (appLaunchAllowed et une liste appLaunchAllow exacte, insensible à la casse — vide = rien ne démarre, aucun joker ni préfixe) ; un refus ne coûte aucun appel worker. Un processus sans fenêtre répond ok:true, hwnd vide et detail=window-not-yet (mesuré : notepad froid = MainWindowHandle=0 pendant 1348 ms). La LECTURE du clipboard ne renvoie que sa longueur, jamais le contenu (plafond 64 Ko, truncated assumé) ; l'écriture d'image accepte un shotId. Les cinq opérations de window sont vérifiées par la relecture de l'état de la fenêtre (IsIconic, rect, WS_EX_TOPMOST), et restore activant par définition, le résultat rapporte foregroundTaken au lieu de le cacher. Actions 8 → 11 (quatre copies synchronisées ; le journal de check-types lit désormais ces nombres dans tools.json). Le propriétaire est-il présent ? On refuse (user_active) au lieu d'ouvrir une boîte de dialogue ; forceUserActive:true passe, et laisse une trace. Trois nouveaux codes (app_launch_denied, policy_denied, user_active), chacun pointant un réglage. Journal d'audit : une ligne JSONL par action, allow ET deny, jamais le contenu. Deux vrais défauts corrigés : Clipboard.Flush() n'existe pas sous PowerShell 5.1 (.NET Framework), et un gestionneur de refus lisait une clé que sa branche n'écrivait pas. Le nouveau gate 21 check-policy-table vérifie que les deux échelles (JS et PS) sont la même liste dans le même ordre, et check-jsdoc vérifie maintenant que chaque fichier de lib/ est couvert — un module ajouté sans rien dire dans la liste passait auparavant. Durcissement voulu : takeover:true requiert désormais policy=full en plus de takeoverAllowed. Gate complet : 21 bras, GATE GREEN ×3. Autoritaire : l'entrée anglaise.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 fait passer `type` de « envoyé » à « le champ contient bien cette valeur » : quatrième `effect=readback-verified`, accordé seulement quand la valeur relue après coup correspond à la prédiction bâtie sur les mesures que LE CONTRÔLE a rapportées (valeur précédente, WM_GETTEXTLENGTH, position EM_GETSEL) ; un champ masqué dit `readback=unavailable`, une application qui reformate dit `readbackMismatch=true`, sans promotion dans les deux cas et sans échec. `caretPosition: idle|start|end` — mesuré, `EM_SETSEL(-1,-1)` ne fait rien sur un EDIT WinForms, donc `end` utilise (len,len) et le résultat distingue `asked=` de `applied=`. Reprobe du focus à l’instant de l’envoi (`focusMoved`), cible désactivée signalée (`disabled=true`, `effect` figé à `unverified`). La capture passe en priorité par BitBlt et déclare `captureBackend=bitblt|gdiplus` (scène fixe : différence de canal 0, PNG identiques au bit près ; le goulot est l’encodage, pas la capture). Nouveau gate 20 `check-shot-backend` (sept mutations vues rouges) et `test/readback-truth.mjs` (36 assertions, jugées contre le valeur que l’application écrit elle-même). Un défaut de longue date est corrigé : `SendMessageStrW` n’est pas exporté par user32.dll, donc `replace:true` échouait sur chaque cible. Aucun nouveau code de refus. Voir l’entrée anglaise, autoritaire.
16
22
 
package/CHANGELOG.it.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 chiude il buco «non si riesce nemmeno ad avviare un programma», aggiunge tre azioni desktop e sostituisce la porta binaria con UN soffitto: ogni azione dichiara il gradino minimo che può servire (requiresTier: readonly < quiet < flash < takeover) e il proprietario imposta un solo policy (default balanced). Sopra il soffitto → policy_denied, il cui passo successivo è alzare l'impostazione, non riprovare. launch richiede due interruttori che non si implicano a vicenda (appLaunchAllowed più una lista appLaunchAllow esatta e case-insensitive — vuota = niente parte, nessun jolly o prefisso); un diniego non costa alcuna richiesta al worker. Un processo senza finestra risponde ok:true, hwnd vuoto e detail=window-not-yet (misurato: notepad freddo 1348 ms con MainWindowHandle=0). La LETTURA degli appunti riporta solo la lunghezza, mai il contenuto (limite 64 KB, truncated dichiarato); la scrittura di immagine accetta una shotId. Le cinque operazioni di window sono verificate rileggendo lo stato della finestra (IsIconic, rect, WS_EX_TOPMOST), e poiché restore attiva per definizione il risultato riporta foregroundTaken invece di nasconderlo. Azioni 8 → 11 (quattro copie sincronizzate; il log di check-types ora legge quei numeri da tools.json). Se il proprietario è al lavoro si rifiuta (user_active) invece di aprire un dialogo; forceUserActive:true è la via d'uscita e resta nella traccia. Tre nuovi codici (app_launch_denied, policy_denied, user_active), ognuno indica un'impostazione. Registro di audit: una riga JSONL per azione, allow E deny, mai i contenuti. Corretti due difetti reali: Clipboard.Flush() non esiste in PowerShell 5.1 (.NET Framework) e un gestore di diniego leggeva una chiave che il suo ramo non scriveva. Il gate 21 check-policy-table verifica che le due scale (JS e PS) siano lo stesso elenco nello stesso ordine; check-jsdoc ora verifica che ogni file in lib/ sia coperto — prima un modulo nuovo restava non controllato in silenzio. Irrigidimento voluto: takeover:true ora richiede policy=full oltre a takeoverAllowed. Gate completo: 21 bracci, GATE GREEN ×3. Autoritaria la voce inglese.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 porta `type` da «inviato» a «il campo contiene davvero questo valore»: quarto `effect=readback-verified`, concesso solo quando il valore riletto corrisponde alla previsione costruita sulle misure CHE IL CONTROLLO ha riportato (valore precedente, WM_GETTEXTLENGTH, punto EM_GETSEL); un campo mascherato dice `readback=unavailable`, un’app che riformatta dice `readbackMismatch=true`, nessuno dei due viene promosso e nessuno dei due è un errore. `caretPosition: idle|start|end` — misurato: `EM_SETSEL(-1,-1)` su EDIT WinForms non fa nulla, quindi `end` usa (len,len) e il risultato distingue `asked=` da `applied=`. Focus rimisurato nell’istante dell’invio (`focusMoved`); target disabilitato riporta `disabled=true` con `effect` bloccato a `unverified`. Lo screenshot preferisce BitBlt e dichiara `captureBackend=bitblt|gdiplus` (scena fissa: differenza di canale 0, PNG byte identici; il collo è la codifica, non la cattura). Nuovo gate 20 `check-shot-backend` ( sette mutazioni, tutte rosse) e `test/readback-truth.mjs` (36 asserzioni, verificate sull’auto-denuncia dell’app). Corretto un difetto antico: `SendMessageStrW` non è esportato da user32.dll, quindi `replace:true` falliva su ogni target. Nessun nuovo codice di rifiuto. Autoritaria la voce inglese.
16
22
 
package/CHANGELOG.ja.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 は「プログラムを起動すらできない」穴を塞ぎ、3 つのデスクトップ能力を追加すると同時に、二値の権限ゲートを 1 つの天井へ置き換えた。各アクションは必要最低の段(requiresTier:readonly < quiet < flash < takeover)を宣言し、所有者は policy を 1 つだけ設定する(既定は balanced)。天井超は policy_denied で、次は再試行ではなく設定の引き上げ。launch は互いに暗示しない 2 つのスイッチ(appLaunchAllowed と、完全一致・大文字小文字無視の appLaunchAllow。空 = 何も起動できない、ワイルドカードも前方一致もなし)を要求し、拒否時は worker 要求ゼロ。プロセスは動いているが窓が無い場合は ok:true + hwnd 空 + detail=window-not-yet(実測:コールド notepad は 1348ms まで MainWindowHandle=0)。clipboard の読み取りは長さだけを返し内容は一切返さない(64KB 上限、truncated を明記)。image 書き込みは shotId を直接受け取る。window の 5 操作はすべて窓自身の状態(IsIconic/rect/WS_EX_TOPMOST)の読み戻しで検証し、restore は定義上フォアグラウンドを奪うため、隠さず foregroundTaken として報告する。アクション数 8→11(契約の 4 か所を同期し、check-types のログ行は tools.json から読む)。所有者在席中はダイアログを出さず user_active で拒否する。脱出口 forceUserActive:true は監査に残る。新コード 15/16/17(app_launch_denied/policy_denied/user_active)はいずれも設定名を次の一手に持つ。監査ログはアクションごとに 1 行、allow も deny も記録し、内容は決して記録しない。PS 5.1(.NET Framework)に Clipboard.Flush() が存在しない不具合と、分岐が書かないキーを読んでいた不具合を実際に修正。新ゲート 21 check-policy-table は JS と PS の 2 本の階段が同じ列挙であることを検証し、check-jsdoc は lib/ の全ファイルが対象に含まれることを検証する(以前は黙って見逃されていた)。意図した厳格化:takeover:true は takeoverAllowed に加え policy=full が必要。全体ゲート 21 腕 ×3 GATE GREEN。権威あるのは英語版。
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 は `type` を「送信した」から「欄に実際にその値が入った」へ引き上げる。第4の `effect=readback-verified` を追加(書き込み後に読み戻した値が、コントロール自身が報告したデータ——元の値・WM_GETTEXTLENGTH・EM_GETSEL の着地点——から作った予測と完全一致した場合だけが認定される。マスクされた欄は `readback=unavailable`、アプリが入力を整形し直した場合は `readbackMismatch=true` で、どちらも昇格しないが ok:true のまま)。`caretPosition: idle|start|end`(実測では WinForms EDIT の `EM_SETSEL(-1,-1)` は無効だったため end は (len,len) を使い、asked= と applied= を分けて報告)。送信直前の焦点再測定 `focusMoved`、無効化された対象は `disabled=true` かつ effect を unverified に固定。スクリーンショットは BitBlt を優先し `captureBackend=bitblt|gdiplus` を報告(静止シーンで两経路のチャンネル差 0・PNG バイト一致が実測済み。ボトルネックは符号化であり取得ではない)。第20ゲート check-shot-backend(7 変異すべて赤)と test/readback-truth.mjs(36 検証、アプリ側自己報告値と照合)を追加。長年の欠陥も修正:`SendMessageStrW` は user32.dll のエクスポートではないため、`replace:true` はあらゆる対象で action_failed になっていた。拒否コードの追加はゼロ。詳細は英語版が権威。
16
22
 
package/CHANGELOG.ko.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 은 「프로그램 하나 켜지 못한다」는 구멍을 메우고 세 개의 데스크톱 동작을 추가하면서, 이진 권한 게이트를 하나의 천장으로 바꿨다. 각 액션은 가장 낮은 필요 단(requiresTier: readonly < quiet < flash < takeover)을 선언하고 소유자는 policy 하나만 정한다(기본 balanced). 천장 초과면 policy_denied — 다음 단계는 재시도가 아니라 설정 상향이다. launch 는 서로 암시하지 않는 두 스위치를 요구한다(appLaunchAllowed 와, 완전 일치·대소문자 무시의 appLaunchAllow. 비어 있으면 아무것도 실행 불가, 와일드카드·접두 일치 없음). 거절 시 worker 요청 0. 프로세스는 떴는데 창이 없으면 ok:true + hwnd 공백 + detail=window-not-yet(실측: 차가운 notepad 는 1348ms 동안 MainWindowHandle=0). clipboard 읽기는 길이만 알리고 본문을 절대 싣지 않으며(64KB 상한, truncated 명시), 이미지 쓰기는 shotId 를 직접 받는다. window 다섯 조작은 창 스스로의 상태(IsIconic/rect/WS_EX_TOPMOST)를 다시 읽어 검증하고, restore 은 정의상 포그라운드를 잡으므로 숨기지 말고 foregroundTaken 으로 보고한다. 액션 수 8→11(계약 네 곳을 동기화하고 check-types 로그를 tools.json 에서 읽는다). 주인이 자리에 있으면 대화 상자 대신 user_active 로 거절하고, 탈출구 forceUserActive:true 는 감사 로그에 남는다. 새 코드 15/16/17(app_launch_denied/policy_denied/user_active)은 모두 다음 단계로 설정을 지목한다. 감사 로그는 액션마다 한 줄, allow 와 deny 모두 적되 내용은 결코 적지 않는다. PS 5.1(.NET Framework) 에 없는 Clipboard.Flush() 와, 분기가 쓰지 않은 키를 읽던 결함을 실제로 고쳤다. 새 게이트 21 check-policy-table 은 JS·PS 두 사다리가 같은 순서임을 검증하고, check-jsdoc 은 lib/ 모든 파일이 검사 대상에 있음을 검증한다(이전엔 조용히 빠졌다). 의도적으로 조인 부분: takeover:true 는 takeoverAllowed 에 더해 policy=full 을 요구한다. 전체 게이트 21 팔 ×3 GATE GREEN. 권위는 영어본.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0은 `type`을 "보냈다"에서 "필드에 실제로 이 값이 들어갔다"로 끌어올린다. 네 번째 `effect=readback-verified`를 추가했다 — 쓸 뒤 다시 읽은 값이 컨트롤 스스로 보고한 데이터(원래 값, WM_GETTEXTLENGTH, EM_GETSEL 착점)로 만든 예측과 완전히 맞을 때만 인정된다. 가려진 필드는 `readback=unavailable`, 앱이 입력을 다시整形한 경우는 `readbackMismatch=true`이며 둘 다 승격하지 않으되 ok:true는 유지된다. `caretPosition: idle|start|end`(실측 결과 WinForms EDIT에서 `EM_SETSEL(-1,-1)`는 동작하지 않으므로 end는 (len,len)를 쓰고, asked=와 applied=를 나눠 보고한다). 전송 직전 초점 재측정 `focusMoved`, 비활성화 대상은 `disabled=true`와 effect를 unverified로 고정. 스크린샷은 BitBlt를 먼저 쓰고 `captureBackend=bitblt|gdiplus`를 보고한다(정지 장면에서 두 경로가 채널 차 0·PNG 바이트 동일을 실측, 병목은 인코딩이지 캡처가 아니다). 20번째 게이트 check-shot-backend(7개 변이 모두 빨강)와 test/readback-truth.mjs(36 검증, 앱 자체 보고 값과 대조)를 추가했다. 오래된 결함도 고쳤다: `SendMessageStrW`는 user32.dll 내보내기 기호가 아니라 `replace:true`가 모든 대상에서 action_failed였다. 거절 코드 추가는 없다. 상세는 영어본이 권위이다.
16
22
 
package/CHANGELOG.md CHANGED
@@ -5,9 +5,108 @@ Dates are the registry `time` values for each version, not git commit dates —
5
5
  when someone typed, a publish time records when a version became installable, and only the second
6
6
  one is a promise to anyone installing it.
7
7
 
8
+ ## 0.7.0 — 2026-11-23
9
+
10
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
11
+
12
+ **The gap that was "you cannot even start a program" is closed, and the binary permission gate becomes
13
+ one ceiling over eleven declared rungs.** Three new actions, one authorization model, an audit trail,
14
+ two new refusal codes' worth of vocabulary... in fact exactly three new codes and fourteen unchanged.
15
+
16
+ ### Added — three desktop actions
17
+
18
+ - **`launch`** — starts a program by name or absolute path, behind **two switches that do not imply each
19
+ other**: `appLaunchAllowed` (the capability) and `appLaunchAllow` (an **exact, case-folded** whitelist,
20
+ empty by default = nothing may launch, no wildcard and no prefix match, so `notepad` never authorises
21
+ `notepad-helper.exe`). Refused with `app_launch_denied` before any worker request — asserted with a
22
+ counted worker, and re-checked inside the engine against the same table, because a permission that
23
+ lives in only one process is a permission that can be reached around by calling the other. A process
24
+ with no window yet answers `ok:true` + `hwnd=""` + `detail=window-not-yet` (measured:
25
+ `MainWindowHandle=0` for 1348 ms on a cold notepad) rather than pretending the start failed or the
26
+ window exists. Arguments are passed through as given and written to the audit log: a whitelist vouches
27
+ for a program, not for what it is told to do.
28
+ - **`clipboard`** — read/write, text and image. A text read reports its **length and never the payload**
29
+ (the clipboard may hold a token the owner copied seconds ago), values are capped at 64 KB with
30
+ `truncated` stated, an image write accepts a `shotId` so a screenshot can go straight in, and a
31
+ clipboard holding neither is refused with the format names it did find.
32
+ - **`window`** — `minimize`/`restore`/`move`/`resize`/`topmost` on ONE hwnd. Every op is verified by
33
+ reading the window's own state back (`IsIconic`, `GetWindowRect`, `WS_EX_TOPMOST`), not by the
34
+ syscall's return value, and the result carries `foregroundTaken` measured on both sides of that call:
35
+ `restore` activates by definition (SW_RESTORE measured: foreground moved), and saying so is the honest
36
+ answer rather than hiding it or refusing the op that was asked for. No "all windows" op exists.
37
+ - The action count is **8 → 11**, kept in step in four places (`ACTIONS`, the discriminator enum,
38
+ `tools.json`, `types/index.d.ts`) with a check-types log line that now READS those counts from the
39
+ contract instead of reciting a literal — the 0.5.0 wording would have had a green gate announcing
40
+ "8 actions" the moment there were eleven.
41
+
42
+ ### Changed — one ceiling instead of one switch per capability
43
+
44
+ - Every action now declares `requiresTier` (`readonly|quiet|flash|takeover`) — the LOWEST rung it can
45
+ ever need — and the owner sets one `policy` (`readonly|quiet|balanced(default)|full`). Adding a
46
+ capability never means adding a setting, and an **undeclared** action is graded `takeover` rather than
47
+ allowed: silence about a capability must not read as permission for it. `clipboard` is the one action
48
+ whose halves differ, so `requiresTierFor` refines it (`read`=readonly, `write`=flash) and a
49
+ `readonly` owner can still read.
50
+ - Validation order is the safety design: `paused → policy → takeoverAllowed/keyInjectAllowed → launch
51
+ gate + whitelist → idle check → the door table`. Each step is tested by making two gates disagree about
52
+ which one spoke, so an order change fails a test instead of silently changing what a refusal means.
53
+ - **`takeover:true` now needs `policy:'full'` in addition to `takeoverAllowed` — an intentional
54
+ tightening, and the one breaking consequence of this release.** An existing setup that enabled
55
+ takeover will see `policy_denied` until the ceiling is raised; the refusal names both knobs and which
56
+ one to turn. The same applies to `keyInput:"inject"`.
57
+ - **`user_active` instead of a dialog.** When the last physical input is younger than `policyIdleMs`
58
+ (default 3000 ms) a takeover-tier call is refused and NOTHING is interrupted — the upstream design
59
+ opens a 10-second countdown even while the owner is typing, and an interrupt presented as consent is
60
+ just a second disturbance. `forceUserActive:true` overrides it explicitly, bypasses nothing else, and
61
+ is recorded in the audit as `forced:true`.
62
+ - New codes `app_launch_denied`, `policy_denied`, `user_active` (14 → **17**), each naming a SETTING as
63
+ its next step — which is what distinguishes them from the fourteen that name a state of the target.
64
+ - **Audit log**: one JSONL line per action to `%LOCALAPPDATA%\wpm\audit.log`, for allow AND deny
65
+ (a trail that records only refusals is silent about the times the guard had nothing to do with),
66
+ fields `ts, action, hwnd, tier, policy, decision, code, userActiveAgeMs, effect, latencyMs` plus
67
+ `target`/`args` for launches and `op`/`format`/`chars` for clipboard calls. Content is never recorded.
68
+ `auditKeep` (default 2000) prunes oldest-first; a failed write is reported, not swallowed.
69
+
70
+ ### Fixed
71
+
72
+ - **`Clipboard.Flush()` does not exist on this engine's runtime.** The first version of the clipboard
73
+ branch threw "Clipboard does not contain a method named 'Flush'" — `Flush` is .NET Core, and the
74
+ platform floor is Windows PowerShell 5.1 (.NET Framework 4.x). Now `SetDataObject($v, $true)`, which
75
+ is also the call that makes the data outlive the process.
76
+ - **A refusal handler that read a key its branch never sets.** `Wait-WpmAppWindow` answers three shapes
77
+ (window found / not yet / process gone) and `Invoke-WpmWindowOp` carries `activated` only on one op;
78
+ under `Set-StrictMode 2.0` those reads threw and surfaced as `action_failed` on a call that had
79
+ actually worked. Presence is now tested per branch.
80
+ - Booleans in `window` details are lower-cased (`topmost=true`, not `Topmost=True`), matching every
81
+ other field this engine writes.
82
+
83
+ ### Gates and tests
84
+
85
+ - Gate 21: `scripts/check-policy-table.mjs --self-test` — every action declares a rung, the rung exists
86
+ in the ladder, the ladder in `lib/policy.js` and the one in `src/engine/decide.ps1` are THE SAME LIST
87
+ IN THE SAME ORDER, and every `requiresTierFor` op is an op the tool can actually receive. Five
88
+ mutations, each seen red. The copy is deliberate (host and engine each need the comparison in their own
89
+ process); the check is what makes two copies one rule.
90
+ - `scripts/check-jsdoc.mjs` now asserts that `tsconfig.checkjs.json` covers **every** file in `lib/`. The
91
+ hand-kept list had silently left `lib/policy.js` and `lib/audit.js` unchecked while the gate reported
92
+ "7 files, 0 errors" — a new module nobody adds to a list is a module whose annotations are prose.
93
+ - `test/desktop-actions.mjs` (new, 42 assertions): the launched program's window is found and read
94
+ through the engine, then verified by a SECOND process that knows nothing about wpm (`IsWindow`,
95
+ `IsIconic`, `GetWindowRect`, the ex-style bit); clipboard text and image round-trips; all five window
96
+ ops with two readings each; and the audit log checked for shape — launch lines carry target+arguments,
97
+ clipboard lines carry no payload, denials carry their code, forced overrides are distinguishable.
98
+ - `test/plugin-test.mjs` gains the gate-order arms (policy before the per-tier gates, both launch
99
+ switches, `readonly` still serving reads, an exact whitelist hit forwarded) and counts request
100
+ DELTAS rather than absolute zeros, so a forwarding arm inserted earlier cannot make a gate test pass
101
+ by accident. 98 → 108 assertions.
102
+ - Full gate: **21 arms, `GATE GREEN` ×3**; `check-no-cursor-control` unchanged (two whitelisted primitive
103
+ uses, same file list) — adding launch/window did not open a door to `MOUSEEVENTF_*`/`mouse_event`/
104
+ `keybd_event`; `check-frame-single-source` still sees exactly one `CopyFromScreen` call site.
105
+ - Zero install dependencies unchanged.
106
+
8
107
  ## 0.6.0 — 2026-11-23
9
108
 
10
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
109
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
11
110
 
12
111
  **`type` stops reporting the send and starts reporting the field, and the screenshot says which path
13
112
  painted it.** Four input-reliability additions on the existing `type` path, one capture swap, one gate,
package/CHANGELOG.pt.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 fecha o buraco de «nem sequer consigo iniciar um programa», acrescenta três ações de desktop e troca a porta binária por UM teto: cada ação declara o degrau mínimo que pode precisar (requiresTier: readonly < quiet < flash < takeover) e o dono define um único policy (padrão balanced). Acima do teto → policy_denied, cujo próximo passo é subir o ajuste, não repetir. launch exige duas chaves que não se implicam (appLaunchAllowed e uma lista appLaunchAllow exata e sem diferença de maiúsculas — vazia = nada inicia, sem curinga nem prefixo); uma recusa não custa nenhuma chamada ao worker. Um processo sem janela responde ok:true, hwnd vazio e detail=window-not-yet (medido: notepad a frio 1348 ms com MainWindowHandle=0). A LEITURA da área de transferência reporta só o comprimento, nunca o conteúdo (limite 64 KB, truncated declarado); a escrita de imagem aceita um shotId. As cinco operações de window são verificadas relendo o estado da própria janela (IsIconic, rect, WS_EX_TOPMOST), e como restore ativa por definição o resultado informa foregroundTaken em vez de esconder. Ações 8 → 11 (quatro cópias sincronizadas; o log do check-types agora lê esses números de tools.json). Se o dono está presente, recusa-se (user_active) em vez de abrir diálogo; forceUserActive:true é a saída explícita e fica registrada na auditoria. Três códigos novos (app_launch_denied, policy_denied, user_active), cada um aponta um ajuste. Registro de auditoria: uma linha JSONL por ação, allow E deny, nunca o conteúdo. Corrigidos dois defeitos reais: Clipboard.Flush() não existe no PowerShell 5.1 (.NET Framework) e um tratador de recusa lia uma chave que seu ramo nunca escreveu. O gate 21 check-policy-table verifica que as duas escadas (JS e PS) são a mesma lista na mesma ordem; check-jsdoc agora verifica se cada arquivo em lib/ está coberto — antes um módulo novo passava sem checagem. Aperto intencional: takeover:true agora exige policy=full além de takeoverAllowed. Gate completo: 21 braços, GATE GREEN ×3. A entrada em inglês é a autoritativa.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 eleva `type` de “enviei” para “o campo realmente contém este valor”: quarto `effect=readback-verified`, concedido só quando o valor relido coincide com a previsão construída a partir das medidas QUE O CONTROLE reportou (valor anterior, WM_GETTEXTLENGTH, ponto de EM_GETSEL); campo mascarado diz `readback=unavailable` e app que reformata diz `readbackMismatch=true` — nenhum promove, nenhum falha. `caretPosition: idle|start|end` — medido: `EM_SETSEL(-1,-1)` não faz nada em EDIT do WinForms, então `end` usa (len,len) e o resultado separa `asked=` de `applied=`. Foco remedido no instante do envio (`focusMoved`); alvo desabilitado informa `disabled=true` com `effect` fixado em `unverified`. A captura prefere BitBlt e declara `captureBackend=bitblt|gdiplus` (cena estática: 0 diferença por canal, PNGs byte-idênticos; o gargalo é a codificação, não a captura). Novo gate 20 `check-shot-backend` (sete mutações, todas vermelhas) e `test/readback-truth.mjs` (36 asserções, julgadas contra o auto-relato do app). Corrigido um defeito antigo: `SendMessageStrW` não é exportado pelo user32.dll, então `replace:true` falhava em todo alvo. Sem novos códigos de recusa. A entrada em inglês é a autoritativa.
16
22
 
package/CHANGELOG.ru.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 закрывает дыру «нельзя даже запустить программу», добавляет три десктопных действия и заменяет бинарный шлюз ОДНИМ потолком: каждое действие объявляет минимальную ступень, которая ему когда-либо нужна (requiresTier: readonly < quiet < flash < takeover), а владелец задаёт единственный policy (по умолчанию balanced). Выше потолка — policy_denied, и следующий шаг в нём — поднять настройку, а не повторять вызов. Для launch нужны два независимых переключателя (appLaunchAllowed и точный, нечувствительный к регистру appLaunchAllow; пустой список = ничего нельзя запускать, без wildcard и без совпадения по префиксу); отказ не стоит ни одного запроса к worker. Процесс без окна отвечает ok:true, пустой hwnd и detail=window-not-yet (измерено: холодный notepad 1348 мс с MainWindowHandle=0). ЧТЕНИЕ буфера обмена сообщает только длину и никогда содержимое (лимит 64 КБ, truncated указывается открыто); запись изображения принимает shotId. Все пять операций window проверяются обратным чтением состояния окна (IsIconic, rect, WS_EX_TOPMOST), а поскольку restore активирует по определению, результат сообщает foregroundTaken, вместо это скрывать. Действий 8 → 11 (четыре копии синхронизированы; лог check-types теперь читает эти числа из tools.json). Если владелец за клавиатурой — отказ (user_active), а не диалоговое окно; явный выход forceUserActive:true попадает в аудит. Три новых кода (app_launch_denied, policy_denied, user_active), каждый указывает на настройку. Журнал аудита: строка JSONL на каждое действие, и allow, и deny, но никогда содержимое. Исправлены два настоящих дефекта: Clipboard.Flush() отсутствует в PowerShell 5.1 (.NET Framework), а обработчик отказа читал ключ, который его ветвь никогда не выставляла. Gate 21 check-policy-table проверяет, что обе лестницы (JS и PS) — один и тот же список в том же порядке; check-jsdoc теперь проверяет, что в покрытие попадает каждый файл lib/ — раньше новый модуль молча оставался unchecked. Сознательное ужесточение: takeover:true теперь требует policy=full в дополнение к takeoverAllowed. Полный gate: 21 плечо, GATE GREEN ×3. Авторитетна английская запись.
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 поднимает `type` с «я отправил» на «в поле действительно это значение»: четвёртый `effect=readback-verified` — только когда прочитанное обратно значение совпадает с предсказанием, построенным на измерениях, которые СООБЩИЛ САМ КОНТРОЛЬ (прежнее значение, WM_GETTEXTLENGTH, точка вставки EM_GETSEL); masked-поле отвечает `readback=unavailable`, приложение переформатировало ввод — `readbackMismatch=true`; ни то ни другое не повышает статус и не является ошибкой. `caretPosition: idle|start|end` — измерено: `EM_SETSEL(-1,-1)` на WinForms EDIT не работает, поэтому `end` использует (len,len), а результат раздельно сообщает `asked=` и `applied=`. Фокус переизмеряется в момент отправки (`focusMoved`); отключённое окно даёт `disabled=true`, а `effect` принудительно `unverified`. Снимок теперь предпочитает BitBlt и сообщает `captureBackend=bitblt|gdiplus` (на неподвижной сцене: 0 расхождений по каналам, PNG совпадают побайтово; узкое место — кодирование, а не захват). Новый гейт 20 `check-shot-backend` (семь мутаций, каждая красная) и `test/readback-truth.mjs` (36 проверок, сверяемых с самоотчётом приложения). Исправлен давний дефект: `SendMessageStrW` отсутствует в user32.dll, поэтому `replace:true` падал на каждой мишени. Новые коды отказа не добавлены. Авторитетна английская запись.
16
22
 
package/CHANGELOG.zh.md CHANGED
@@ -8,9 +8,15 @@ Dates are the registry `time` values for each version, not git commit dates —
8
8
  when someone typed, a publish time records when a version became installable, and only the second
9
9
  one is a promise to anyone installing it.
10
10
 
11
+ ## 0.7.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.7.0, read from the packument, not from a commit date).
14
+
15
+ > 0.7.0 补上「连启动一个程序都做不到」的缺口并新增三项桌面能力,同时把二元权限闸换成一个天花板:每个动作声明自己最低需要哪一档(requiresTier:readonly < quiet < flash < takeover),所有者只设一个 policy(默认 balanced);超出即 policy_denied,下一步写明是调高设置而不是重试。launch 需要两个互不暗示的开关——appLaunchAllowed 与精确、大小写折叠的 appLaunchAllow 白名单(默认为空=什么都不能启动,无通配符、无前缀匹配),拒绝时零 worker 请求;进程已启但窗口未就绪回答 ok:true + hwnd 为空 + detail=window-not-yet(实测冷启 notepad 1348ms 内 MainWindowHandle=0)。clipboard 读只报长度、绝不报内容,上限 64KB 且明写 truncated,写图片可直接接收 shotId。window 五个 op 全部靠读回窗口自身状态(IsIconic/rect/WS_EX_TOPMOST)验证,restore 按定义会抢前台,因此结果带 foregroundTaken 实测值而不是隐藏它。动作数 8→11(四处契约面同步,且 check-types 日志行改为从 tools.json 读数)。空闲感知:主人在场时拒绝对话框、改答 user_active,逃生门 forceUserActive:true 会计入审计。新增第 15/16/17 码 app_launch_denied/policy_denied/user_active(每个都指向一个设置)。审计日志 %LOCALAPPDATA%\wpm\audit.log 逐动作一行,allow 与 deny 都记,绝不记内容(clipboard 只留 op/format/chars)。修掉 Clipboard.Flush() 在 PS 5.1(.NET Framework)根本不存在、以及拒绝处理里读到分支从未写入的键两个真缺陷。第 21 道门禁 check-policy-table 断言 JS 与 PS 两份阶梯是同一份;check-jsdoc 现在断言 lib/ 每个文件都被覆盖(此前新增模块会静默漏检)。有意收紧的一处:takeover:true 现在除 takeoverAllowed 外还需要 policy 为 full。全量门禁 21 臂 ×3 GATE GREEN。详情见英文权威条目。
16
+
11
17
  ## 0.6.0 — 2026-11-23
12
18
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
19
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
20
 
15
21
  > 0.6.0 让 `type` 从「发出去了」抬到「字段里确实是这个值」:新增第四种 `effect=readback-verified`(只有把写入后读回的值与「用控件自己报的数据」——原值、WM_GETTEXTLENGTH、EM_GETSEL 落点——构造出的预测完全一致时才授予;掩码字段报 `readback=unavailable`,应用改写了输入报 `readbackMismatch=true`,两者都不升级且仍是 ok:true);`caretPosition: idle|start|end`(实测 `EM_SETSEL(-1,-1)` 在 WinForms EDIT 上是空操作,所以 end 用 (len,len),并把 asked= 与 applied= 分开回报);发送瞬间焦点复测 `focusMoved`,禁用目标 `disabled=true` 且 effect 钉为 unverified;截图优先走 BitBlt 并回报 `captureBackend=bitblt|gdiplus`(静止场景实测两路 0 通道差、PNG 字节相同;瓶颈是 PNG 编码不是捕获)。新增第 20 道门禁 check-shot-backend(7 个变异全见红)与 test/readback-truth.mjs(36 断言,按应用进程内自报值验收,非空转臂用「只读框静默拒绝 WM_CHAR 而接受 WM_SETTEXT」这一实测现象)。另修一个长期缺陷:`SendMessageStrW` 不是 user32.dll 的导出,`replace:true` 此前在每个目标上都报 action_failed。拒绝码零新增。详情见英文权威条目。
16
22
 
package/README.de.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > Ein DSH-Plugin, mit dem ein Agent **seine eigenen** Windows-Fenster steuert — standardmäßig still, auf Anfrage sichtbar. Wenn ein Fenster Windows-Nachrichten akzeptiert, wird der Fokus nie entzogen. Wenn nur UI Automation es erreicht, gibt es einen einzigen begrenzten Fokus-Blitz, der automatisch rückgängig gemacht wird. Wenn Sie den Takeover-Modus ausdrücklich anfordern, bewegt sich der Cursor zum Aktionspunkt und wird immer wiederhergestellt; ein HUD bietet drei Möglichkeiten zum Abbruch. Überall anders wird mit Code und Grund abgelehnt.
6
6
 
7
7
  > **English canonical text follows.** The localized summary above is the orientation; the text below is the authoritative specification (structure, commands and numbers are identical across all 10 languages).
8
- > **Current release: 0.6.0** — this document describes the contract as of that version. What
8
+ > **Current release: 0.7.0** — this document describes the contract as of that version. What
9
9
  > changed in it, and in every version before it, is in [CHANGELOG.md](CHANGELOG.md), newest first.
10
10
 
11
11
  A DSH plugin that lets an agent drive **its own** Windows windows — quietly by default, and visibly
@@ -13,7 +13,7 @@ on request. Where a window accepts a window message, you never lose focus at all
13
13
  exposes UI Automation, you lose focus for one bounded flash that is reversed automatically. Where you
14
14
  explicitly ask for the takeover tier, the cursor moves to the point and is always restored, with a
15
15
  HUD that can stop it three ways. Everywhere else it refuses, with a code and a reason — never with
16
- silence: every refusal carries a code from a closed set of fourteen and the next step.
16
+ silence: every refusal carries a code from a closed set of seventeen and the next step.
17
17
 
18
18
  **The takeover tier defaults off, and that is structural.** The cursor is only ever moved because you
19
19
  opened `takeoverAllowed` **and** asked for it on the call (`takeover:true`), so an upgrade cannot
@@ -31,7 +31,7 @@ bundle with a broad tool surface; this one is a single action tool whose entire
31
31
 
32
32
  ## What it does
33
33
 
34
- One tool, eight actions:
34
+ One tool, eleven actions:
35
35
 
36
36
  | action | what it returns |
37
37
  |---|---|
@@ -43,6 +43,9 @@ One tool, eight actions:
43
43
  | `snapshot` | the accessibility tree as a NUMBERED element table: continuous `label`, control type, name, automation id, screen rect, patterns |
44
44
  | `screenshot` | the window rect captured to a PNG, plus the coordinate mapping as data (`screenRect`, `imageSize`, `scale`, `identity`, `frame`, `dpiAware`) |
45
45
  | `preview` | the marker drawn at a point, and the element under it reported as TEXT — no picture needed |
46
+ | `launch` | start a whitelisted program; reports the pid, and the window only once it really exists |
47
+ | `clipboard` | read or write the system clipboard — a read reports lengths and never the payload |
48
+ | `window` | minimize / restore / move / resize / topmost ONE named window, verified by reading its state back |
46
49
 
47
50
  The engine picks the cheapest available door per call:
48
51
 
@@ -278,6 +281,93 @@ click. Success is reported as `effect=reported-by-send`, never as "verified". Un
278
281
  carries no hardware scancode, which is why a rare scancode-only target would ignore it — documented,
279
282
  not a bug.
280
283
 
284
+ ## Desktop actions: launch, clipboard, window (0.7.0)
285
+
286
+ Three capabilities that were missing outright — "you cannot even start a program" was the honest answer
287
+ — and none of them is a door action. They choose no channel, cost no tier, and produce no proof window,
288
+ so they live beside `Invoke-WpmAction` rather than inside it, and the door discipline (point ownership,
289
+ the restore table, the proof window) is not widened by any of them.
290
+
291
+ **`launch` — two switches, neither of which implies the other.** `appLaunchAllowed` opens the
292
+ capability; `appLaunchAllow` lists the exact program names or absolute paths that may run, and an
293
+ **empty list means nothing may launch even with the gate on**. Matching is exact and case-folded: there
294
+ is no wildcard, and `notepad` does not authorise `notepad-helper.exe` — a whitelist that grows by prefix
295
+ is a whitelist that authorises more than it says. A refusal is `app_launch_denied` and is raised before
296
+ any worker request, so a refused launch started nothing (asserted with a request counter in
297
+ `test/plugin-test.mjs` and re-checked inside the engine against the same table). The engine's own
298
+ vocabulary for the window is the interesting part: `Process.Start` returns while the app is still
299
+ loading (measured: `MainWindowHandle=0` for 1348 ms on a cold notepad), so a program that has not
300
+ published a window yet answers `ok:true` with `hwnd=""` and `detail=window-not-yet` — neither a fake
301
+ failure nor a fake readiness. Arguments are passed through as given and written to the audit log,
302
+ because listing a program does not vouch for what it is told to do.
303
+
304
+ **`clipboard` — the most private read in this product.** What is on the clipboard may be a password or
305
+ a token the owner copied seconds ago, so a text read reports its **length**, its result text never
306
+ contains the payload, the audit line records `op`/`format`/`chars`, and values are capped at 64 KB with
307
+ `truncated` stated rather than silently cut. An image write accepts a `shotId`, so a screenshot can go
308
+ straight into the clipboard without the caller handling pixels; the read-back compares the size the
309
+ clipboard reports against the size the shot recorded. A clipboard holding neither is refused with the
310
+ format names it did find — an empty success would be indistinguishable from "the clipboard is empty".
311
+
312
+ **`window` — one named window, five ops, each verified by reading the window back.** `IsIconic`,
313
+ `GetWindowRect`, the `WS_EX_TOPMOST` bit — not `ShowWindow`'s return value, because a syscall's answer
314
+ describes the CALL and this product has been burned repeatedly by reporting that as a state. `move` and
315
+ `resize` pass `SWP_NOACTIVATE`, and the result carries `foregroundTaken=true|false` measured on both
316
+ sides of that specific call: `restore` activates by definition (that is what restoring is), and the
317
+ honest answer is to report it, not to hide it or to refuse the op the caller asked for. There is no
318
+ "all windows" op and no `#32770` discovery: acting on a window nobody named is not a convenience.
319
+
320
+ ### One ceiling, eleven actions
321
+
322
+ The old shape of this problem was a boolean per capability, which does not scale past the number of
323
+ settings anyone will actually read. Instead the two axes are independent:
324
+
325
+ ```
326
+ the action declares the lowest rung it can ever need (src/schema/tools.json#requiresTier)
327
+ the owner sets one ceiling (settings: policy)
328
+
329
+ readonly < quiet < flash < takeover
330
+ reads message bounded-UIA real cursor / held focus / launch
331
+ door flash
332
+ ```
333
+
334
+ | `policy` | permits | refuses |
335
+ |---|---|---|
336
+ | `readonly` | `windows`, `status`, `snapshot`, `screenshot`, `preview`, `clipboard` read | every write |
337
+ | `quiet` | + `click` / `type` / `focus` through the message door | the flash tier, `clipboard` write, `window`, `launch` |
338
+ | `balanced` *(default)* | + the bounded-flash tier, `clipboard` write, `window` ops | `takeover:true`, `keyInput:"inject"`, `launch` |
339
+ | `full` | + the takeover tier and `launch` | nothing extra |
340
+
341
+ Above the ceiling a call is refused with **`policy_denied`** and the reason names both numbers (what the
342
+ action needed, what the policy allows), because the correct next step is a settings change and the wrong
343
+ one is a retry. The gate order is `paused → policy → takeoverAllowed/keyInjectAllowed → launch gate +
344
+ whitelist → idle check → the door table`, and every step in it is tested by making two gates disagree
345
+ about which one spoke (`test/plugin-test.mjs`). Two consequences are worth stating plainly rather than
346
+ leaving to discovery: **`takeover:true` now needs `policy:'full'` as well as `takeoverAllowed`** (0.7.0
347
+ raised the bar for the loudest tier on purpose), and `clipboard`'s halves are graded separately
348
+ (`requiresTierFor`), so a `readonly` owner can still read.
349
+
350
+ **Idle instead of a dialog.** When the last *physical* input is younger than `policyIdleMs` (default
351
+ 3000 ms) and the action needs the takeover tier, it is refused with **`user_active`** and nothing is
352
+ clicked — no popup, no countdown. The upstream design asks the owner to consent by interrupting them;
353
+ an interrupt presented as consent is just a second disturbance. The escape hatch is explicit
354
+ (`forceUserActive:true`), it does not bypass any other gate, and the audit line records `forced:true` so
355
+ an interruption caused on purpose stays distinguishable from one caused by accident. An unattended run
356
+ is never blocked by this: with nobody typing, the age grows past the window and the call goes through.
357
+
358
+ ### The audit log
359
+
360
+ Every action appends one JSONL line to `%LOCALAPPDATA%\wpm\audit.log` — allow **and** deny, because a
361
+ trail that records only refusals documents the times the guard worked and is silent about the times it
362
+ had nothing to do with. Fields: `ts, action, hwnd, tier, policy, decision, code, userActiveAgeMs,
363
+ effect, latencyMs`, plus `target`/`args` for a launch and `op`/`format`/`chars` for a clipboard call.
364
+ What is deliberately absent is content: no typed text, no clipboard payload — the second copy of a
365
+ secret is the one nobody protects. `auditKeep` (default 2000) bounds the file, pruning oldest-first when
366
+ a write pushes it past budget. An audit that cannot be written is reported (`auditNote=n write(s)
367
+ failed`) rather than swallowed: a log that looks complete and is not is worse than one that admits it
368
+ is missing lines. This is the only artifact that survives a call, and it is the one thing that can
369
+ answer "what did the agent do to this machine" after the fact.
370
+
281
371
  ## What it does not do
282
372
 
283
373
  - **No mouse injection.** `MOUSEEVENTF_*`, `mouse_event` and `keybd_event` are banned in every
@@ -314,9 +404,10 @@ degradation.
314
404
  ## Typed surface
315
405
 
316
406
  `types/index.d.ts` is written by hand, not emitted from an implementation. It covers the whole
317
- contract: the eight actions, every argument including the takeover fields, the image-space / label
318
- surface and 0.6.0's `caretPosition`, all fourteen refusal codes as a closed union, and `effect` as its
319
- own four-value union (`WpmEffect`) beside `WpmCaptureBackend` and `WpmFrameSource`.
407
+ contract: the eleven actions, every argument including the takeover fields, the image-space / label
408
+ surface, 0.6.0's `caretPosition` and 0.7.0's `target`/`op`/`format`/`forceUserActive`, all seventeen
409
+ refusal codes as a closed union, and `effect` as its own four-value union (`WpmEffect`) beside
410
+ `WpmCaptureBackend`, `WpmClipboardOp`, `WpmWindowOp`, `WpmPolicy` and `WpmFrameSource`.
320
411
 
321
412
  Its wiring is measured in both resolution modes a consumer can use, rather than assumed from the
322
413
  presence of a file:
@@ -351,6 +442,11 @@ when one is present, and the gate reports a named SKIP rather than a red when on
351
442
  | `snapshotMaxElements` | `300` | cap on elements per snapshot (1–5000); a tighter cap is a smaller frame for a deciding subagent |
352
443
  | `screenshotMaxWidth` | `0` | downscale captures to this width; `0` means no scaling and `scale=1` — a resized image is a different coordinate system, so it is never chosen silently |
353
444
  | `shotsKeep` | `10` | how many PNGs stay in `%LOCALAPPDATA%\wpm\shots`; older files are deleted after each capture |
445
+ | `policy` | `balanced` | the ceiling over all eleven actions: `readonly` < `quiet` < `balanced` < `full`. Above it a call is refused with `policy_denied`, whose next step is to raise THIS setting and not to retry. An unrecognizable value falls back to `balanced`, never to `full` |
446
+ | `policyIdleMs` | `3000` | how recently a physical input counts as "the owner is here". A takeover-tier call then refuses with `user_active` and opens no dialog; `0` disables the check |
447
+ | `appLaunchAllowed` | `false` | allow `action=launch` at all. Independent of `takeoverAllowed`: being allowed to move a pointer is not being allowed to start a program |
448
+ | `appLaunchAllow` | `[]` | the launch whitelist — exact names or absolute paths, matched case-insensitively and in full. Empty means nothing may launch even with the gate on; no wildcard, no prefix |
449
+ | `auditKeep` | `2000` | how many lines `%LOCALAPPDATA%\wpm\audit.log` holds before the oldest are pruned |
354
450
 
355
451
  ## What measurement established
356
452
 
@@ -439,6 +535,32 @@ unmeasured end-to-end and is stated as such in [docs/refusals.md](docs/refusals.
439
535
  exercised `replace:true` through the message door, which is why the fix ships with an arm that does
440
536
  (`test/readback-truth.mjs` A1). Found by running the import instead of trusting its name.
441
537
 
538
+ ### 0.7.0's measurements
539
+
540
+ - **A cold `Process.Start` has no window for over a second** — notepad: pid present,
541
+ `MainWindowHandle=0`, **1348 ms**, and the window only reachable by polling the pid. Hence
542
+ `waitMs`/`window-not-yet` rather than an hwnd claim at return time.
543
+ - **The STA clipboard works in the worker and is not instant** — text write+read identical, first call
544
+ **138 ms**; `SetDataObject`/`GetDataObject` for images (40×20 verified). `Clipboard.Flush()` does NOT
545
+ exist on Windows PowerShell 5.1's runtime (.NET Framework): the first version of this branch threw
546
+ "Clipboard does not contain a method named 'Flush'", which is a method present in the documentation
547
+ people read and absent from the platform the product targets. `SetDataObject($v, $true)` is the
548
+ supported way to make the data outlive the process.
549
+ - **`SW_RESTORE` activates.** Measured around a restore on a real notepad window:
550
+ `foregroundBefore=<other> foregroundAfter=<target>`. Reported as `foregroundTaken=true` on that call
551
+ instead of being attributed to something else; `move`/`resize`/`topmost` measured
552
+ `foregroundTaken=false` with `SWP_NOACTIVATE`.
553
+ - **The whitelist is only a whitelist if it is exact.** `notepad` against `notepad-helper.exe`: a
554
+ prefix or substring rule authorises the second one, so membership is a case-folded full-string test
555
+ and `test/plugin-test.mjs` asserts the refusal for an unlisted name while the gate is on.
556
+ - **The refusal vocabulary is unchanged in shape by `requiresTier`** — a rung comparison is arithmetic
557
+ over one ordered list, so the cost of an action's classification is one number, not one new code per
558
+ action. Three codes were added for the whole batch (`app_launch_denied`, `policy_denied`,
559
+ `user_active`), each naming a setting rather than a symptom.
560
+ - `Check-no-cursor-control` is still green with the same two whitelisted primitive uses and an
561
+ unchanged whitelist file list: adding `launch`/`window` did not open a door to `MOUSEEVENTF_*`,
562
+ `mouse_event` or `keybd_event`.
563
+
442
564
  ## Verifying the copy you actually installed
443
565
 
444
566
  Every test above imports the repository checkout, so a package that installs to the wrong place or ships