dsh-windows-parallel-mcp 0.6.0 → 0.8.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,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 öffnet einen zweiten Kanal über dieselbe Engine, ohne eine zweite Implementierung: ein MCP-Server über stdio (bin: wpm-mcp), während die DSH-Plugin-Form unangetastet bleibt — dasselbe apply(), dieselben elf Aktionen, dieselben siebzehn Verweigerungscodes, dieselbe Tor-Reihenfolge, derselbe Audit-Log. Das ist die bewusste Umkehr der Entscheidung vom 2026-11-19 („form = A, kein MCP“), und die Umkehr steht in der Vertragsdatei statt nur in einer Commit-Botschaft: tools.json trägt jetzt mcpProjection neben hostProjection, und die status-Zeile sagt, welche Entscheidung wann und warum umgekehrt wurde (das Registry nimmt nur MCP-Server, und DSH kann einen bridgen — eine Implementierung, zwei Kanäle). Keine Aktion und kein Code kamen dazu; unter src/engine/ wurde keine Datei geändert. tools/list wird aus tools.json ERZEUGT, nicht abgeschrieben: pro Aktion ein oneOf-Zweig, der properties/required/additionalProperties Feld für Feld übernimmt, ein action-Enum, das die Aktionsliste des Vertrags ist, und in der Beschreibung steht jede Aktion mit der von ihr erklärten Stufe und jeder Verweigerungscode mit der Zusammenfassung, die der Vertrag schon enthält. Es bleibt bei einem Werkzeug: wpm. Einstellungen kommen aus der Umgebung (WPM_*), nie aus dem Aufruf: ein Aufrufer, der seine eigene Decke anheben oder sich in die launch-Freigabeliste schreiben könnte, machte das Autorisierungsmodell dekorativ; die Defaults bleiben an genau einer Stelle (lib/index.js). Ein Screenshot hängt die Pixel als base64 image an, weil ein Pfad am Ende einer Pipe nichts bedeutet, screenRect/scale/identity/frame/captureBackend bleiben aber im Text; über die DSH-Brücke gemessen: ein Host ohne Anhang-Speicher projiziert das Bild auf einen [image unavailable: …]-Text und behält alle Zahlen — Pixel standardmäßig anzuhängen kann dem Aufrufer also nicht die Information kosten, weswegen er rief. server.json ist das Registry-Manifest (Namespace io.github.drscrewdriver/dsh-windows-parallel-mcp, die einzige npm-Basis, die das Registry zulässt, Transport stdio, 19 dokumentierte Umgebungsvariablen; schema-test prüft in beide Richtungen, dass jedes versprochene gelesen wird und jedes gelesene versprochen ist). Zwei echte Defekte sind behoben: ein ungültiges Argument drohte als -32603 (Serverfehler) beantwortet zu werden, jetzt ist es ein Werkzeugfehler, der das Argument nennt; und der DSH-Locator rief npm mit execFileSync, was auf Windows ENOENT gibt (npm ist eine .cmd) — „nicht installiert“ auf einer Maschine, die es ist. Gate 22 check-mcp-schema startet den echten Server, liest, was ein Client läse, und vergleicht Feld für Feld; der Selbsttest mutationiert BEIDE Seiten: vier Eingriffe ins Generator-Code müssen rot machen, zwei Eingriffe in den VERTRAG (Parameter umbenennen, additionalProperties kippen) müssen grün bleiben UND mitziehen — nur den Generator zu brechen unterscheidet „erzeugt“ nicht von einer Kopie, die heute zufällig passt. mcp-stdio: 38 Prüfungen (keine Nicht-JSON-Zeile auf stdout, Benachrichtigung ohne Antwort, eine Müllzeile tötet die Schleife nicht, parallele Aufrufe über id gepaart und nicht vertauscht, stdin geschlossen ⇒ exit 0). mcp-bridge: 17 Prüfungen mit dem mitgelieferten client-SDK und createMcpToolDefinition des Hosts; beide Formen im selben Prozess müssen dieselbe erste Zeile liefern, ohne DSH-Installation sagt der Arm SKIP ehrlich. Volles Gate: 22 Arme, GATE GREEN ×3. Maßgeblich ist der englische Eintrag.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.es.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 abre un segundo canal sobre el mismo motor sin segunda implementación: un servidor MCP por stdio (bin: wpm-mcp), mientras la forma plugin de DSH queda intacta — el mismo apply(), once acciones, diecisiete códigos de rechazo, el mismo orden de puertas y el mismo registro de auditoría. Es la reversión deliberada de la decisión del 2026-11-19 («form = A, no MCP»), escrita en el archivo de contrato y no solo en un commit: tools.json ahora lleva mcpProjection junto a hostProjection y su línea status dice qué decisión se invirtió, cuándo y por qué (el Registry solo acepta servidores MCP, y DSH puede tenderles puente: una implementación, dos canales). Sin acciones nuevas ni códigos nuevos; cero archivos tocados bajo src/engine/. tools/list se GENERA desde tools.json, no se transcribe: una rama oneOf por acción que hereda properties/required/additionalProperties campo por campo, un enum de acciones que es la tabla del contrato, y en la descripción cada acción lleva el peldaño que declara y cada código de rechazo el resumen que el contrato ya tiene. Sigue habiendo una sola herramienta: wpm. Los ajustes vienen del entorno (WPM_*), nunca de la llamada: un cliente que pudiera subirse su propio techo o añadirse a la lista blanca de launch volvería decorativo el modelo de autorización; los valores por defecto siguen en un solo lugar (lib/index.js). Una captura adjunta los píxeles en base64 además del texto (una ruta no significa nada al otro lado de una tubería), pero screenRect/scale/identity/frame/captureBackend quedan en el texto; medido a través del puente de DSH: un host sin almacén de adjuntos proyecta la imagen a un diagnóstico [image unavailable: …] y conserva todos los números, así que adjuntar píxeles por defecto no puede costarle al llamante la información para la que llamó. server.json es el manifiesto del Registry (namespace io.github.drscrewdriver/dsh-windows-parallel-mcp, la única base de npm que el Registry admite, transporte stdio, diecinueve variables de entorno documentadas; schema-test verifica en ambas direcciones que lo prometido se lee y lo leído está prometido). Dos defectos reales corregidos: un argumento inválido estaba a punto de responderse como -32603, un fallo del servidor — ahora es un error de herramienta que nombra el argumento; y el localizador de DSH llamaba npm con execFileSync, que en Windows da ENOENT (npm es .cmd) y declaraba «DSH no instalado» en una máquina que sí lo tiene. El gate 22 check-mcp-schema arranca el servidor real, lee lo que un cliente leería y compara campo por campo; su auto-test muta AMBOS lados: cuatro mutaciones del generador deben ponerse rojas, y dos mutaciones del CONTRATO (renombrar un parámetro, invertir un additionalProperties) deben quedarse verdes Y moverse — romper solo el generador no distingue un esquema generado de una copia que hoy casualmente coincide. mcp-stdio: 38 aserciones (ni una línea de stdout que no sea JSON, notificación sin respuesta, una línea basura no mata el ciclo, llamadas concurrentes emparejadas por id y no intercambiadas, stdin cerrado ⇒ exit 0). mcp-bridge: 17 aserciones con el SDK de cliente y createMcpToolDefinition que el propio host entrega; las dos formas llamadas en un mismo proceso deben dar la misma primera línea, y sin instalación de DSH el brazo dice SKIP. Gate completo: 22 brazos, GATE GREEN ×3. Autoritativa la entrada en inglés.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.fr.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 ouvre un second canal sur le même moteur sans seconde implémentation : un serveur MCP sur stdio (bin : wpm-mcp), et la forme plugin DSH reste intacte — même apply(), les onze actions, les dix-sept codes de refus, le même ordre de portes, le même journal d'audit. C'est le renversement volontaire de la décision du 2026-11-19 (« form = A, pas de MCP »), et le renversement est écrit dans le fichier de contrat, pas seulement dans un message de commit : tools.json porte désormais mcpProjection à côté de hostProjection, et sa ligne status dit quelle décision a été renversée, quand et pourquoi (le Registry n'accepte que des serveurs MCP, et DSH sait en faire le pont — une implémentation, deux canaux). Cette version n'ajoute ni action ni code de refus, et ne touche aucun fichier de src/engine/. tools/list est GENERE depuis tools.json, pas recopié : une branche oneOf par action qui reprend properties/required/additionalProperties champ par champ, un enum d'actions qui est la table du contrat, et une description où chaque action porte le barreau qu'elle déclare et chaque code de refus porte le résumé déjà présent dans le contrat. Un seul outil reste exposé : wpm. Les réglages viennent de l'environnement (WPM_*) et jamais d'un appel : un client qui pourrait relever son propre plafond ou s'ajouter à la liste blanche de lancement rendrait le modèle d'autorisation décoratif ; les valeurs par défaut restent au seul endroit où elles étaient (lib/index.js). Une capture joint des pixels en base64 en plus du texte (un chemin de fichier est vide de sens au bout d'un tube), et screenRect/scale/identity/frame/captureBackend restent dans le texte ; mesuré à travers le pont DSH : un hôte sans magasin de pièces jointes projette l'image en un diagnostic [image unavailable: …] et garde tous les nombres — joindre l'image par défaut ne peut donc pas coûter à l'appelant l'information pour laquelle il avait appelé. server.json est le manifeste Registry (namespace io.github.drscrewdriver/dsh-windows-parallel-mcp, la seule base npm que le Registry admet, transport stdio, dix-neuf variables d'environnement documentées ; schema-test vérifie dans les deux sens que ce qui est promis est lu et que ce qui est lu est promis). Deux vrais défauts corrigés : un argument invalide allait être rendu comme -32603, une panne de serveur — c'est désormais une erreur d'outil qui nomme l'argument ; et findDshTree, en appelant npm via execFileSync, recevait ENOENT sur Windows (npm est un .cmd) et déclarait « DSH non installé » sur une machine qui l'a. Le gate 22 check-mcp-schema démarre le vrai serveur, lit ce qu'un client lirait, et compare champ par champ ; son auto-test mute les DEUX côtés : quatre mutilations du générateur doivent rougir, deux mutilations du CONTRAT (renommer un paramètre, inverser un additionalProperties) doivent rester vertes ET bouger — casser seul le générateur ne distingue pas un schéma généré d'une copie qui tombe juste aujourd'hui. mcp-stdio : 38 assertions (aucune ligne de stdout qui ne soit du JSON, notification sans réponse, une ligne garbage ne tue pas la boucle, appels simultanés appariés par id et non échangés, stdin fermé ⇒ exit 0). mcp-bridge : 17 assertions, avec le SDK client et createMcpToolDefinition que l'hôte livre lui-même, et les deux formes appelées dans un même processus doivent donner la même première ligne ; sans installation DSH le bras le dit et fait SKIP. Gate complet : 22 bras, GATE GREEN ×3. Autoritaire : l'entrée anglaise.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.it.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 apre un secondo canale sullo stesso motore senza seconda implementazione: un server MCP su stdio (bin: wpm-mcp), mentre la forma plugin DSH resta identica — stesso apply(), undici azioni, diciassette codici di rifiuto, stesso ordine di porte, stesso log di audit. È il rovesciamento deliberato della decisione 2026-11-19 («form = A, niente MCP»), scritto nel file di contratto e non solo in un commit: tools.json ora ha mcpProjection accanto a hostProjection e la riga status dice quale decisione è stata rovesciata, quando e perché (il Registry accetta solo server MCP, e DSH può farne da ponte: una implementazione, due canali). Nessuna azione e nessun codice nuovi; zero file toccati sotto src/engine/. tools/list è GENERATO da tools.json, non copiato: un ramo oneOf per azione che riprende properties/required/additionalProperties campo per campo, un enum di azioni che è la tabella del contratto, e nella descrizione ogni azione porta il gradino che dichiara e ogni codice di rifiuto porta il riassunto che il contratto già contiene. Resta un solo tool: wpm. Le impostazioni vengono dall'ambiente (WPM_*), mai dalla chiamata: un client che potesse alzarsi il proprio tetto o aggiungersi alla whitelist di launch renderebbe il modello di autorizzazione decorativo; i default restano in un solo posto (lib/index.js). Uno screenshot allega i pixel in base64 oltre al testo (un percorso non significa nulla dall'altra parte di una pipe), ma screenRect/scale/identity/frame/captureBackend restano nel testo; misurato attraverso il ponte DSH: un host senza archivio di allegati proietta l'immagine in un diagnostico [image unavailable: …] e conserva tutti i numeri, quindi allegare i pixel di default non può togliere all'appellante l'informazione per cui aveva chiamato. server.json è il manifesto Registry (namespace io.github.drscrewdriver/dsh-windows-parallel-mcp, la sola base npm che il Registry ammette, transport stdio, diciannove variabili d'ambiente documentate; schema-test verifica in entrambe le direzioni che ciò che è promesso è letto e ciò che è letto è promesso). Due difetti reali corretti: un argomento non valido stava per essere risposto come -32603, un errore del server — ora è un errore di tool che nomina l'argomento; e il localizzatore di DSH chiamava npm con execFileSync, che su Windows dà ENOENT (npm è un .cmd) e dichiarava «DSH non installato» su una macchina che lo ha. Il gate 22 check-mcp-schema avvia il server vero, legge ciò che un client leggerebbe e confronta campo per campo; il self-test muta ENTRAMBI i lati: quattro mutazioni del generatore devono diventare rosse, due mutazioni del CONTRATTO (rinominare un parametro, invertire un additionalProperties) devono restare verdi E muoversi — rompere solo il generatore non distingue uno schema generato da una copia che oggi coincide. mcp-stdio: 38 asserzioni (nessuna riga di stdout che non sia JSON, nessuna risposta a una notifica, una riga spazzatura non uccide il ciclo, chiamate concorrenti appaiate per id e non scambiate, stdin chiuso ⇒ exit 0). mcp-bridge: 17 asserzioni con l'SDK client e createMcpToolDefinition che l'host consegna da sé; le due forme chiamate nello stesso processo devono dare la stessa prima riga, e senza installazione DSH il braccio dice SKIP. Gate completo: 22 braccia, GATE GREEN ×3. Autoritaria la voce inglese.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.ja.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 は同じエンジンに第二のチャネルを増やしたが、第二の実装は作っていない。stdio の MCP サーバー(bin: wpm-mcp)を新設し、DSH プラグイン形態は一切変えない——同じ apply()、同じ 11 アクション、同じ 17 の拒否コード、同じゲート順序と同じ監査ログ。これは 2026-11-19 の決定「form = A、MCP は作らない」の意図的な撤回で、撤回はコミットメッセージではなく契約ファイルに書かれた:tools.json に mcpProjection が hostProjection と並んで入り、status 行が「どの決定をいつ、なぜ撤回したか」(Registry は MCP サーバーしか受けず、DSH はそれをブリッジできるため、1 つの実装で 2 つのチャネルに届く)を明言する。本番はアクションも拒否コードも増やさず、src/engine/ は 0 ファイル変更。tools/list は tools.json から生成(転写ではない):アクションごとに 1 つの oneOf 分岐が properties/required/additionalProperties をフィールド単位で継承し、action の enum は契約のアクション表そのもの、説明では各アクションが宣言した段とともに載り、各拒否コードは契約が持つ要約をそのまま使う。公開するツールは依然 wpm 1 個だけ。設定は環境変数(WPM_*)のみで、呼び出し引数からは読まない——自分の天井を自分で上げたり launch 許可表に自分を加えられる呼び出し元は認証モデルを飾り物にするから。既定値は lib/index.js の 1 箇所にだけ残る。スクリーンショットはテキストに加えて base64 の image content を返す(パイプの向こうではこのマシンのパスを開けない)が、screenRect/scale/identity/frame/captureBackend は必ずテキスト側に残る。DSH ブリッジ経由で実測:添付ストアが無いホストでは画像は [image unavailable: …] のテキストに縮退し数値は全部残る。つまりピクセルを既定で添付することは、呼び出し元が本来必要とした情報を奪わない。server.json は Registry マニフェスト(namespace io.github.drscrewdriver/dsh-windows-parallel-mcp、Registry が認める唯一の npm 源、stdio 転送、19 の環境変数。schema-test は「宣言するものは読む/読むものは宣言する」を双方向で検証)。2 つを実際に修正:不正引数が -32603(サーバー障害)として返されかけていた点をツールレベルのエラーに分類し直し、引数名を本文に残す。Windows で npm は .cmd のため execFileSync が ENOENT を投げ「DSH が未インストール」に見える問題も解消。新ゲート 22 check-mcp-schema は実サーバーを起動して実応答を契約とフィールド単位で突き合わせ、self-test は両側を壊す:サーバー側 4 変更は必ず赤、契約側 2 変更(引数のリネーム、additionalProperties の反転)は必ず緑のまま、かつ必ず追随する——生成器だけを壊す検査では「生成」と「今日たまたま一致する転写」を区別できない。mcp-stdio は 38 検証(stdout に非 JSON 行が 1 つもない、通知は無応答、ゴミ行で殺れない、同時実行は id で対応づき交換されない、stdin クローズで exit 0)、mcp-bridge は 17 検証(ホスト同梱の client SDK と createMcpToolDefinition を使い、両形態を同一プロセスで呼んで先頭行が一致することを確認。DSH が無い環境では正直に SKIP)。全体ゲート 22 腕 ×3 GATE GREEN。権威あるのは英語版。
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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。権威あるのは英語版。
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.ko.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 은 같은 엔진에 두 번째 채널을 열었지만 두 번째 구현은 만들지 않았다. stdio MCP 서버(bin: wpm-mcp)를 추가했고 DSH 플러그인 형태는 그대로다 — 같은 apply(), 같은 11 액션, 같은 17 거절 코드, 같은 게이트 순서와 같은 감사 로그. 이는 2026-11-19 결정 "form = A, MCP 는 만들지 않는다"를 의도로 뒤집은 것이며, 되돌림은 커밋 메시지가 아니라 계약 파일에 적혔다: tools.json 에 mcpProjection 이 hostProjection 옆에 들어가고 status 행이 '어떤 결정을 언제, 왜 뒤집었는지'(Registry 는 MCP 서버만 받고 DSH 는 브리지할 수 있으므로 구현 하나로 두 채널에 닿는다)를 밝힌다. 이번 판은 액션도 거절 코드도 추가하지 않았고 src/engine/ 는 0 개 파일 변경이다. tools/list 는 tools.json 에서 생성(필사가 아니다): 액션마다 oneOf 분기 하나가 properties/required/additionalProperties 를 필드 단위로 물려받고, action enum 은 계약의 액션표 그 자체이며, 설명에서 각 액션은 자기가 선언한 단과, 각 거절 코드는 계약이 이미 가진 요약과 함께 실린다. 공개하는 도구는 여전히 wpm 하나. 설정은 환경 변수(WPM_*) 에서만 읽고 호출 인자에서는 읽지 않는다 — 자기 천장을 스스로 올리거나 launch 허용 목록에 자기를 추가할 수 있는 호출자는 권한 모델을 장식으로 만든다. 기본값은 lib/index.js 한 곳에만 남는다. 스크린샷은 텍스트 외에 base64 image content 를 첨부한다(파이프 저쪽에서는 이 기계의 경로를 열 수 없다)만, screenRect/scale/identity/frame/captureBackend 는 항상 텍스트 쪽에 남는다. DSH 브리지를 통해 실측: 첨부 저장이 없는 호스트에서는 이미지를 [image unavailable: …] 텍스트로 강등하고 수치는 전부 남긴다. 그래서 픽셀을 기본 첨부하는 것이 호출자가 실제로 필요로 하던 정보를 앗아가지는 않는다. server.json 은 Registry 매니페스트(네임스페이스 io.github.drscrewdriver/dsh-windows-parallel-mcp, Registry 가 승인하는 유일한 npm 소스, stdio transport, 환경 변수 19 개; schema-test 는 '선언한 것은 읽고, 읽는 것은 선언한다'를 양방향으로 검증) 이다. 실제로 고친 두 가지: 잘못된 인자가 -32603(서버 고장) 으로 답될 뻔한 것을 도구 수준 오류로 다시 분류해 WHICH 인자인지 본문에 남긴다. Windows 에서 npm 은 .cmd 라 execFileSync 가 ENOENT 를 던져 'DSH 미설치'로 보이던 문제도 잡았다. 새 게이트 22 check-mcp-schema 는 실제 서버를 띄워 실제 응답을 계약과 필드 단위로 비교하고, self-test 는 양쪽을 변형한다: 서버 쪽 4 개는 반드시 빨강, 계약 쪽 2 개(매개변수 이름 변경, additionalProperties 반전)는 반드시 초록을 유지하면서 반드시 따라 움직여야 한다 — 생성기만 망가뜨리는 검사로는 '생성'과 '오늘 우연히 들어맞는 필사'를 구분할 수 없다. mcp-stdio 38 검증(stdout 에 JSON 이 아닌 줄이 하나도 없음, 알림은 답이 없음, 쓰레기 줄로 죽지 않음, 동시 호출은 id 로 짝지어 뒤바뀌지 않음, stdin 닫힘 시 exit 0), mcp-bridge 17 검증(호스트가 번들한 client SDK 와 createMcpToolDefinition 을 쓰고, 두 형태를 한 프로세스에서 호출해 첫 행이 같음을 확인; DSH 가 없는 환경에서는 없는 그대로 SKIP). 전체 게이트 22 팔 ×3 GATE GREEN. 권위는 영어본.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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. 권위는 영어본.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.md CHANGED
@@ -5,9 +5,209 @@ 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.8.0 — 2026-11-23
9
+
10
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
11
+
12
+ **One engine, two channels, and the second one is not a second implementation.** The package is now also
13
+ an MCP server over stdio (`bin: wpm-mcp`), while the DSH plugin form is untouched: same `apply()`, same
14
+ exports, same eleven actions, same seventeen codes, same gates, same audit line. This reverses the
15
+ 2026-11-19 decision "form = A, no MCP" — on purpose, and in the contract file rather than in a commit
16
+ message: `src/schema/tools.json` gained `mcpProjection` beside `hostProjection`, and its `status` line
17
+ now says which decision was reversed, when, and for what reason (the Registry accepts MCP servers only,
18
+ and DSH can bridge one, so one implementation reaches two channels instead of one). No action and no
19
+ refusal code were added. **Zero files under `src/engine/` changed.**
20
+
21
+ ### Added — the stdio form
22
+
23
+ - **`lib/mcp-server.mjs`** — JSON-RPC 2.0 over stdin/stdout with Node built-ins, **no
24
+ `@modelcontextprotocol/sdk`**: `initialize`, `ping`, `tools/list`, `tools/call`; an unknown method gets
25
+ `-32601` and the process survives it; a non-JSON line gets `-32700` with a null `id` and the loop
26
+ survives it; a notification gets no reply at all; replies are keyed by `id` because the sidecar is
27
+ asynchronous and assuming FIFO would be inventing a second protocol; closing stdin disposes the worker
28
+ and exits 0. `tools/call` forwards into the existing `toRequest()` / `format()`, so refusal codes come
29
+ back verbatim as the first token of the text — this file does not soften, renumber or re-explain a
30
+ refusal. The plugin's logger is handed stderr: `ctx.logger ?? console` would otherwise print warnings
31
+ **into the JSON stream** and corrupt the transport for every client reading it.
32
+ - **`tools/list` is generated from `src/schema/tools.json`, not transcribed** — one `oneOf` branch per
33
+ action carrying that action's `properties`, `required` and `additionalProperties` field for field, an
34
+ `action` enum that is the contract's action list, and a description that pairs every action with the
35
+ rung it declares and lists every refusal code with the summary the contract already carries. Nothing
36
+ in the server spells out an action name, a parameter name or a code, which is the only reason the two
37
+ forms cannot drift into disagreeing about what they both promise (risk R6).
38
+ - **One tool, not eleven** — `wpm` with an `action` discriminator, because the 0.5.0 token argument
39
+ survives a transport and `tools/call` accepts an arbitrary argument object anyway.
40
+ - **Settings come from the environment, never from the call** — the `WPM_*` set is read at start-up and
41
+ only where present, so the defaults stay exactly where they were (`lib/index.js`) instead of being
42
+ copied. A caller that could set its own `policy` or append to `appLaunchAllow` would make the
43
+ authorization model decorative, and over stdio the process owner is the trust boundary that a profile
44
+ is inside DSH.
45
+ - **A screenshot returns pixels as well as numbers** — the PNG is attached as base64 `image` content,
46
+ because a file path is meaningless to a caller that is not on this machine; the text block still carries
47
+ `screenRect` / `imageSize` / `scale` / `identity` / `frame` / `captureBackend`, and `WPM_MCP_NO_IMAGE=1`
48
+ opts out of the attachment. Measured across the DSH bridge: a host with no attachment store projects the
49
+ image into an `[image unavailable: …]` diagnostic and keeps every number, so defaulting to "attach"
50
+ cannot cost a caller the information it needed the call for.
51
+ - **`server.json`** — the MCP Registry manifest: namespace `io.github.drscrewdriver/dsh-windows-parallel-mcp`,
52
+ one npm package entry pinned to this version (`https://registry.npmjs.org`, which is the only base URL
53
+ the Registry accepts), `transport: stdio`, and **nineteen** documented environment variables — every one
54
+ the server reads and nothing it does not, which `test/schema-test.mjs` now asserts in both directions.
55
+
56
+ ### Changed — the contract and the package, not the behaviour
57
+
58
+ - `src/schema/tools.json` carries `mcpProjection` (form, decision date, reversal, why, tool, discriminator,
59
+ schema source, implementation source, settings source, image content, transport discipline) beside the
60
+ unchanged `hostProjection`, plus a note that 0.8.0 adds a second transport and no capability.
61
+ - `package.json` gained `bin.wpm-mcp`, `exports["./server.json"]` and `server.json` in `files`; the
62
+ `test:mcp` and `mcp` scripts exist so the form is runnable from a checkout.
63
+ - `dsh.plugin.json`'s contributed-tool description was stale — it still listed eight actions. It now names
64
+ eleven, names the read-back and the ceiling, and says the engine is also reachable as an MCP stdio
65
+ server. A manifest that describes an older release is how a plugin gets judged for something it no
66
+ longer does.
67
+ - `scripts/check-pack.mjs` requires `server.json` and `lib/mcp-server.mjs` in the tarball, and checks every
68
+ `bin` target against the listing: a command npm did not ship, or an entry file without a shebang, both
69
+ install cleanly and fail at run time.
70
+
71
+ ### Fixed
72
+
73
+ - **An invalid argument was on its way to being reported as a server fault.** `tools/call` with
74
+ `action:'not-an-action'` reaches argument validation, which throws `ToolArgsError`; the first version of
75
+ the MCP handler mapped any thrown error without a refusal `code` to `-32603` — telling a client its own
76
+ request was our internal error. It is now a tool-level error whose text names the argument, and the wire
77
+ test asserts the classification from outside the process.
78
+ - **A locator that read as an absence.** Finding the DSH install with `execFileSync('npm', …)` throws
79
+ ENOENT on Windows because `npm` is a `.cmd` — so the bridge test reported "no DSH install" on a machine
80
+ that has one, and a permanent silent SKIP is how an unverified claim slips through.
81
+
82
+ ### Gates and tests
83
+
84
+ - **Gate 21 → 22: `scripts/check-mcp-schema.mjs`.** It starts the real server over real stdio, reads what a
85
+ client would read, and compares it field by field with the contract file. `--self-test` mutates **both
86
+ sides**: four server-side edits (drop the property spread, stop listing refusal codes, hard-write the
87
+ action enum, freeze every rung) must turn it red, and two contract-side edits (rename a parameter,
88
+ flip one `additionalProperties` in `tools.json`) must stay green **and move** — an arm that only breaks
89
+ the generator cannot distinguish a generated schema from a transcribed one that happens to agree today.
90
+ All six seen.
91
+ - **`test/mcp-stdio.mjs` (38 assertions)** — the transport itself: one tool; the action enum equal to the
92
+ contract's; every branch matching its entry field by field; a policy refusal arriving with its code and
93
+ `isError`; `structuredContent` mirroring the DSH result; a screenshot carrying `text` + `image`; `-32602`
94
+ for an unknown tool; a notification producing no line; a garbage line answered with `-32700` and a null
95
+ `id`; two concurrent calls matched by id and not swapped; **not one stdout line that was not JSON**; exit
96
+ 0 on stdin close.
97
+ - **`test/mcp-bridge.mjs` (17 assertions)** — the bridge with the host's own code: `@modelcontextprotocol/client`
98
+ 2.2.0 negotiates with us and accepts our `initialize` and `tools/list` shapes, and
99
+ `createMcpToolDefinition` from `@deepseek-ai/dsh-mcp-client` produces a tool whose parameters survived
100
+ the trip, whose refusal message still starts with `policy_denied`, and whose screenshot keeps its
101
+ mapping when no attachment store is mounted. Then both forms are called in one process and their first
102
+ output lines must be identical. It NAMED-SKIPs where no DSH install exists, because a green that depends
103
+ on a missing tool is a red that has not happened yet.
104
+ - `lib/mcp-server.mjs` is under `allowJs + checkJs + strict` — the only reason that happened is that
105
+ `check-jsdoc.mjs` now asserts its own list covers every file in `lib/`, so a new module cannot be added
106
+ outside the type-checking perimeter.
107
+ - Full gate **22 arms GATE GREEN ×3**; `check-i18n` PASS with the 0.8.0 entry in all ten CHANGELOGs.
108
+
109
+ ## 0.7.0 — 2026-11-23
110
+
111
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
112
+
113
+ **The gap that was "you cannot even start a program" is closed, and the binary permission gate becomes
114
+ one ceiling over eleven declared rungs.** Three new actions, one authorization model, an audit trail,
115
+ two new refusal codes' worth of vocabulary... in fact exactly three new codes and fourteen unchanged.
116
+
117
+ ### Added — three desktop actions
118
+
119
+ - **`launch`** — starts a program by name or absolute path, behind **two switches that do not imply each
120
+ other**: `appLaunchAllowed` (the capability) and `appLaunchAllow` (an **exact, case-folded** whitelist,
121
+ empty by default = nothing may launch, no wildcard and no prefix match, so `notepad` never authorises
122
+ `notepad-helper.exe`). Refused with `app_launch_denied` before any worker request — asserted with a
123
+ counted worker, and re-checked inside the engine against the same table, because a permission that
124
+ lives in only one process is a permission that can be reached around by calling the other. A process
125
+ with no window yet answers `ok:true` + `hwnd=""` + `detail=window-not-yet` (measured:
126
+ `MainWindowHandle=0` for 1348 ms on a cold notepad) rather than pretending the start failed or the
127
+ window exists. Arguments are passed through as given and written to the audit log: a whitelist vouches
128
+ for a program, not for what it is told to do.
129
+ - **`clipboard`** — read/write, text and image. A text read reports its **length and never the payload**
130
+ (the clipboard may hold a token the owner copied seconds ago), values are capped at 64 KB with
131
+ `truncated` stated, an image write accepts a `shotId` so a screenshot can go straight in, and a
132
+ clipboard holding neither is refused with the format names it did find.
133
+ - **`window`** — `minimize`/`restore`/`move`/`resize`/`topmost` on ONE hwnd. Every op is verified by
134
+ reading the window's own state back (`IsIconic`, `GetWindowRect`, `WS_EX_TOPMOST`), not by the
135
+ syscall's return value, and the result carries `foregroundTaken` measured on both sides of that call:
136
+ `restore` activates by definition (SW_RESTORE measured: foreground moved), and saying so is the honest
137
+ answer rather than hiding it or refusing the op that was asked for. No "all windows" op exists.
138
+ - The action count is **8 → 11**, kept in step in four places (`ACTIONS`, the discriminator enum,
139
+ `tools.json`, `types/index.d.ts`) with a check-types log line that now READS those counts from the
140
+ contract instead of reciting a literal — the 0.5.0 wording would have had a green gate announcing
141
+ "8 actions" the moment there were eleven.
142
+
143
+ ### Changed — one ceiling instead of one switch per capability
144
+
145
+ - Every action now declares `requiresTier` (`readonly|quiet|flash|takeover`) — the LOWEST rung it can
146
+ ever need — and the owner sets one `policy` (`readonly|quiet|balanced(default)|full`). Adding a
147
+ capability never means adding a setting, and an **undeclared** action is graded `takeover` rather than
148
+ allowed: silence about a capability must not read as permission for it. `clipboard` is the one action
149
+ whose halves differ, so `requiresTierFor` refines it (`read`=readonly, `write`=flash) and a
150
+ `readonly` owner can still read.
151
+ - Validation order is the safety design: `paused → policy → takeoverAllowed/keyInjectAllowed → launch
152
+ gate + whitelist → idle check → the door table`. Each step is tested by making two gates disagree about
153
+ which one spoke, so an order change fails a test instead of silently changing what a refusal means.
154
+ - **`takeover:true` now needs `policy:'full'` in addition to `takeoverAllowed` — an intentional
155
+ tightening, and the one breaking consequence of this release.** An existing setup that enabled
156
+ takeover will see `policy_denied` until the ceiling is raised; the refusal names both knobs and which
157
+ one to turn. The same applies to `keyInput:"inject"`.
158
+ - **`user_active` instead of a dialog.** When the last physical input is younger than `policyIdleMs`
159
+ (default 3000 ms) a takeover-tier call is refused and NOTHING is interrupted — the upstream design
160
+ opens a 10-second countdown even while the owner is typing, and an interrupt presented as consent is
161
+ just a second disturbance. `forceUserActive:true` overrides it explicitly, bypasses nothing else, and
162
+ is recorded in the audit as `forced:true`.
163
+ - New codes `app_launch_denied`, `policy_denied`, `user_active` (14 → **17**), each naming a SETTING as
164
+ its next step — which is what distinguishes them from the fourteen that name a state of the target.
165
+ - **Audit log**: one JSONL line per action to `%LOCALAPPDATA%\wpm\audit.log`, for allow AND deny
166
+ (a trail that records only refusals is silent about the times the guard had nothing to do with),
167
+ fields `ts, action, hwnd, tier, policy, decision, code, userActiveAgeMs, effect, latencyMs` plus
168
+ `target`/`args` for launches and `op`/`format`/`chars` for clipboard calls. Content is never recorded.
169
+ `auditKeep` (default 2000) prunes oldest-first; a failed write is reported, not swallowed.
170
+
171
+ ### Fixed
172
+
173
+ - **`Clipboard.Flush()` does not exist on this engine's runtime.** The first version of the clipboard
174
+ branch threw "Clipboard does not contain a method named 'Flush'" — `Flush` is .NET Core, and the
175
+ platform floor is Windows PowerShell 5.1 (.NET Framework 4.x). Now `SetDataObject($v, $true)`, which
176
+ is also the call that makes the data outlive the process.
177
+ - **A refusal handler that read a key its branch never sets.** `Wait-WpmAppWindow` answers three shapes
178
+ (window found / not yet / process gone) and `Invoke-WpmWindowOp` carries `activated` only on one op;
179
+ under `Set-StrictMode 2.0` those reads threw and surfaced as `action_failed` on a call that had
180
+ actually worked. Presence is now tested per branch.
181
+ - Booleans in `window` details are lower-cased (`topmost=true`, not `Topmost=True`), matching every
182
+ other field this engine writes.
183
+
184
+ ### Gates and tests
185
+
186
+ - Gate 21: `scripts/check-policy-table.mjs --self-test` — every action declares a rung, the rung exists
187
+ in the ladder, the ladder in `lib/policy.js` and the one in `src/engine/decide.ps1` are THE SAME LIST
188
+ IN THE SAME ORDER, and every `requiresTierFor` op is an op the tool can actually receive. Five
189
+ mutations, each seen red. The copy is deliberate (host and engine each need the comparison in their own
190
+ process); the check is what makes two copies one rule.
191
+ - `scripts/check-jsdoc.mjs` now asserts that `tsconfig.checkjs.json` covers **every** file in `lib/`. The
192
+ hand-kept list had silently left `lib/policy.js` and `lib/audit.js` unchecked while the gate reported
193
+ "7 files, 0 errors" — a new module nobody adds to a list is a module whose annotations are prose.
194
+ - `test/desktop-actions.mjs` (new, 42 assertions): the launched program's window is found and read
195
+ through the engine, then verified by a SECOND process that knows nothing about wpm (`IsWindow`,
196
+ `IsIconic`, `GetWindowRect`, the ex-style bit); clipboard text and image round-trips; all five window
197
+ ops with two readings each; and the audit log checked for shape — launch lines carry target+arguments,
198
+ clipboard lines carry no payload, denials carry their code, forced overrides are distinguishable.
199
+ - `test/plugin-test.mjs` gains the gate-order arms (policy before the per-tier gates, both launch
200
+ switches, `readonly` still serving reads, an exact whitelist hit forwarded) and counts request
201
+ DELTAS rather than absolute zeros, so a forwarding arm inserted earlier cannot make a gate test pass
202
+ by accident. 98 → 108 assertions.
203
+ - Full gate: **21 arms, `GATE GREEN` ×3**; `check-no-cursor-control` unchanged (two whitelisted primitive
204
+ uses, same file list) — adding launch/window did not open a door to `MOUSEEVENTF_*`/`mouse_event`/
205
+ `keybd_event`; `check-frame-single-source` still sees exactly one `CopyFromScreen` call site.
206
+ - Zero install dependencies unchanged.
207
+
8
208
  ## 0.6.0 — 2026-11-23
9
209
 
10
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
210
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
11
211
 
12
212
  **`type` stops reporting the send and starts reporting the field, and the screenshot says which path
13
213
  painted it.** Four input-reliability additions on the existing `type` path, one capture swap, one gate,
package/CHANGELOG.pt.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 abre um segundo canal sobre o mesmo motor sem segunda implementação: um servidor MCP por stdio (bin: wpm-mcp), enquanto a forma de plugin DSH fica intacta — o mesmo apply(), onze ações, dezessete códigos de recusa, a mesma ordem de portões e o mesmo registro de auditoria. É a reversão deliberada da decisão de 2026-11-19 («form = A, sem MCP»), escrita no arquivo de contrato e não só num commit: tools.json agora traz mcpProjection ao lado de hostProjection e a linha status diz qual decisão foi invertida, quando e por quê (o Registry só aceita servidores MCP, e o DSH faz ponte com um: uma implementação, dois canais). Nenhuma ação e nenhum código novos; zero arquivos alterados sob src/engine/. tools/list é GERADO a partir de tools.json, não transcrito: um ramo oneOf por ação que herda properties/required/additionalProperties campo a campo, um enum de ações que é a tabela do contrato, e na descrição cada ação vem com o degrau que declara e cada código de recusa com o resumo que o contrato já traz. Continua uma única ferramenta: wpm. As configurações vêm do ambiente (WPM_*), nunca da chamada: um cliente que pudesse levantar o próprio teto ou se incluir na lista de permissão de launch deixaria o modelo de autorização decorativo; os padrões seguem num só lugar (lib/index.js). Um screenshot anexa os pixels em base64 além do texto (um caminho não significa nada do outro lado de um tubo), mas screenRect/scale/identity/frame/captureBackend permanecem no texto; medido pela ponte do DSH: um host sem depósito de anexos projeta a imagem num diagnóstico [image unavailable: …] e conserva todos os números, então anexar pixels por padrão não pode tirar de quem chamou a informação para a qual chamou. server.json é o manifesto do Registry (namespace io.github.drscrewdriver/dsh-windows-parallel-mcp, a única base de npm que o Registry aceita, transporte stdio, dezenove variáveis de ambiente documentadas; o schema-test verifica nos dois sentidos que o prometido é lido e o lido está prometido). Dois defeitos reais corrigidos: um argumento inválido estava a ponto de ser respondido como -32603, uma falha do servidor — agora é um erro de ferramenta que nomeia o argumento; e o localizador do DSH chamava npm por execFileSync, que no Windows dá ENOENT (npm é .cmd) e declarava «DSH não instalado» numa máquina que o tem. O gate 22 check-mcp-schema sobe o servidor de verdade, lê o que um cliente leria e compara campo a campo; o self-test muta OS DOIS lados: quatro mutações do gerador precisam ficar vermelhas, e duas mutações do CONTRATO (renomear um parâmetro, inverter um additionalProperties) precisam continuar verdes E se mover — quebrar só o gerador não distingue um esquema gerado de uma cópia que hoje por acaso bate. mcp-stdio: 38 asserções (nenhuma linha de stdout fora do JSON, notificação sem resposta, uma linha lixo não mata o laço, chamadas concorrentes pareadas por id e não trocadas, stdin fechado ⇒ exit 0). mcp-bridge: 17 asserções com o SDK de cliente e o createMcpToolDefinition que o próprio host entrega; as duas formas chamadas no mesmo processo têm de dar a mesma primeira linha, e sem instalação do DSH o braço diz SKIP. Gate completo: 22 braços, GATE GREEN ×3. Autoritativo o verbete em inglês.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.ru.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 открывает второй канал для того же движка, не делая второй реализации: MCP-сервер поверх stdio (bin: wpm-mcp), а форма плагина DSH остаётся нетронутой — тот же apply(), те же одиннадцать действий, те же семнадцать кодов отказа, тот же порядок заслонок и тот же журнал аудита. Это сознательная отмена решения от 2026-11-19 («form = A, MCP не делать»), записанная в файл-контракт, а не только в сообщение коммита: в tools.json появился mcpProjection рядом с hostProjection, а строка status говорит, какое решение отменено, когда и зачем (Registry принимает только MCP-серверы, а DSH умеет их подключать — одна реализация, два канала). Ни нового действия, ни нового кода; в src/engine/ не изменён ни один файл. tools/list ГЕНЕРИРУЕТСЯ из tools.json, а не переписывается: по ветке oneOf на действие, наследующей properties/required/additionalProperties поле в поле, enum действий равный таблице контракта, и в описании каждое действие идёт с тем уровнем, который оно объявляет, а каждый код отказа — с тем summary, который в контракте уже есть. Инструмент по-прежнему один: wpm. Настройки берутся из окружения (WPM_*), никогда из вызова: вызывающий, который мог бы сам поднять себе потолок или вписать себя в белый список launch, превращает модель авторизации в декорацию; значения по умолчанию остаются в одном месте (lib/index.js). Скриншот прикладывает пиксели в base64 помимо текста (путь по ту сторону pipe ничего не значит), но screenRect/scale/identity/frame/captureBackend остаются в тексте; измерено через мост DSH: у хоста без хранилища вложений изображение сворачивается в диагностику [image unavailable: …], а все числа сохраняются — значит, прикрепление пикселей по умолчанию не может лишить вызывающего той информации, ради которой он звал. server.json — манифест Registry (пространство имён io.github.drscrewdriver/dsh-windows-parallel-mcp, единственный разрешённый npm-адрес, транспорт stdio, девятнадцать описанных переменных окружения; schema-test проверяет в обе стороны, что обещанное читается и читаемое обещано). Исправлены два настоящих дефекта: неверный аргумент собирался ответиться как -32603, то есть как сбой сервера, — теперь это ошибка инструмента, в тексте которой назван аргумент; а поисковик DSH вызывал npm через execFileSync, что на Windows даёт ENOENT (npm — это .cmd), и заявлял «DSH не установлен» на машине, где он стоит. Gate 22 check-mcp-schema запускает настоящий сервер, читает то, что прочтёт клиент, и сверяет поле в поле; самоспроверка мутирует ОБЕ стороны: четыре правки генератора обязаны покраснеть, две правки КОНТРАКТА (переименовать параметр, перевернуть additionalProperties) обязаны остаться зелёными И сдвинуться — ломать только генератор значит не отличить порождённую схему от скопированной, которая сегодня случайно совпадает. mcp-stdio: 38 проверок (ни одной строки stdout вне JSON, уведомление без ответа, мусор не убивает цикл, параллельные вызовы сопоставлены по id и не перепутаны, закрытие stdin ⇒ exit 0). mcp-bridge: 17 проверок тем самым client SDK и createMcpToolDefinition, которые поставляет хост; обе формы, вызванные в одном процессе, обязаны дать одинаковую первую строку, а без установки DSH рука честно говорит SKIP. Полный gate: 22 руки, GATE GREEN ×3. Авторитетна английская запись.
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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. Авторитетна английская запись.
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28
 
package/CHANGELOG.zh.md CHANGED
@@ -8,9 +8,21 @@ 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.8.0 — 2026-11-23
12
+
13
+ > Published <REGISTRY-TIME> (registry `time` for 0.8.0, read from the packument, not from a commit date).
14
+
15
+ > 0.8.0 让同一个引擎多开一条通道,而第二条不是第二份实现:新增 stdio MCP server(bin: wpm-mcp),DSH 插件形态一行未改——同一个 apply()、同样的 11 个动作、同样的 17 个拒绝码、同样的闸序与审计。这是对 2026-11-19「form = A,不做 MCP」的有意反转,并且反转写进契约文件而不是只留在提交信息里:tools.json 新增 mcpProjection 与 hostProjection 并列,status 行明写哪条决定被反转、何时、为何(Registry 只收 MCP server,而 DSH 能桥接一个,于是一份实现触达两个渠道)。本批未新增动作、未新增拒绝码,src/engine/ 下零改动。tools/list 由 tools.json 生成而非抄写:每个动作一个 oneOf 分支,其 properties/required/additionalProperties 逐字段来自该动作的声明,action 枚举即契约动作表,描述里每个动作都带自己声明的档位、每个拒绝码都带契约已有的那句摘要。仍只暴露 1 个工具 wpm。设置只来自环境变量(WPM_*),绝不来自调用参数——能自己抬天花板或往白名单里加自己的调用方会让授权模型形同虚设;默认值仍只在 lib/index.js 一处。截图除文本外附带 base64 image 内容(管道那端打不开本机路径),而 screenRect/scale/identity/frame/captureBackend 始终在文本里;实测过 DSH 桥:宿主没有附件存储时会把图片降级成 [image unavailable: …] 文本而数字全部保留,因此默认附图为像素不会让调用方丢掉它真正需要的信息。server.json 为 Registry 清单(命名空间 io.github.drscrewdriver/dsh-windows-parallel-mcp、唯一可接受的 npm 源、stdio 传输、19 个环境变量,schema-test 双向断言「声明的都会读、读的都声明」)。修掉两处:非法参数本会被当成 -32603 服务端故障(现为题级错误并明写是哪个参数),以及 execFileSync 找 npm 在 Windows 上 ENOENT 导致「本机没装 DSH」的假象。第 22 道门禁 check-mcp-schema 起真服务读真响应并与契约逐字段比对,self-test 同时变异两侧:4 个服务端改动必须见红,2 个契约侧改动(改名一个参数、翻转一个 additionalProperties)必须保持绿且必须跟着变——只破坏生成器无法区分「生成」与「今天恰好一致的抄写」。mcp-stdio 38 条断言(stdout 无一行非 JSON、通知不回复、垃圾行不杀进程、并发按 id 配对不串号、stdin 关闭 exit 0),mcp-bridge 17 条(用宿主自带的 client SDK 与 createMcpToolDefinition,两形态同进程调用首行输出必须相同;无 DSH 安装时如实 SKIP)。全量门禁 22 臂 ×3 GATE GREEN。详情见英文权威条目。
16
+
17
+ ## 0.7.0 — 2026-11-23
18
+
19
+ > Published 2026-11-23T18:54:04.951Z (registry `time` for 0.7.0, read from the packument, not from a commit date).
20
+
21
+ > 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。详情见英文权威条目。
22
+
11
23
  ## 0.6.0 — 2026-11-23
12
24
 
13
- > Published <REGISTRY-TIME> (registry `time` for 0.6.0, read from the packument, not from a commit date).
25
+ > Published 2026-11-23T17:25:44.824Z (registry `time` for 0.6.0, read from the packument, not from a commit date).
14
26
 
15
27
  > 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
28