Skip to content

Computer use CLI for AI agents

10.2 KB
Raw Blame
{
    "probe":  "06-input-synthesis",
    "question":  "does the probe leave the desktop exactly as it found it - no stuck modifier, the original clipboard, the original cursor position, no surviving process",
    "why":  "KTD5. A probe that types into a shared desktop and leaves a modifier down or a clipboard overwritten has corrupted the box for everything that runs after it, including the rest of this corpus.",
    "modifierSweep":  {
                          "policy":  "conditional by design: modifier state is read first and a key-up is injected only for a modifier actually found down. On the normal path no key is injected at all, so the sweep does not need the foreground gate it would otherwise require.",
                          "stateBeforeSweep":  [
                                                   {
                                                       "key":  "VK_SHIFT",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_CONTROL",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_MENU",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_LWIN",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_RWIN",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_LSHIFT",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_RSHIFT",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_LCONTROL",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_RCONTROL",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_LMENU",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   },
                                                   {
                                                       "key":  "VK_RMENU",
                                                       "asyncKeyIsDown":  false,
                                                       "keyStateIsDown":  false
                                                   }
                                               ],
                          "keysSwept":  [

                                        ],
                          "stateAfterSweep":  [
                                                  {
                                                      "key":  "VK_SHIFT",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_CONTROL",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_MENU",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_LWIN",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_RWIN",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_LSHIFT",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_RSHIFT",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_LCONTROL",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_RCONTROL",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_LMENU",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  },
                                                  {
                                                      "key":  "VK_RMENU",
                                                      "asyncKeyIsDown":  false,
                                                      "keyStateIsDown":  false
                                                  }
                                              ],
                          "allClear":  true
                      },
    "clipboard":  {
                      "snapshotTaken":  true,
                      "originalFormats":  [
                                              "text"
                                          ],
                      "originalTextPresent":  true,
                      "restoredExactly":  true,
                      "verificationMethod":  "the restored clipboard is read back and compared to the snapshot by SHA-256 of its UTF-16 bytes, in memory. Neither the value nor its hash reaches the capture: the operator clipboard can hold a secret, and a hash of a secret is still a fingerprint of it.",
                      "formatCaveat":  "only text is snapshotted and restored. originalFormats records what was actually on the clipboard so a non-text loss would be visible in the capture rather than silent."
                  },
    "cursor":  {
                   "snapshotTaken":  true,
                   "offsetAfterRestore":  "0,0",
                   "restoredExactly":  true,
                   "recordingChoice":  "the offset from the snapshot is recorded rather than the absolute positions: an absolute origin is a run-varying value that would break the KTD9 twin, while \"0,0\" proves exact restoration. It is a comma-joined string rather than numeric x/y keys because the normalizer buckets any numeric key named x or y to 8 px, which would have hidden an 8 px restoration error."
               },
    "processes":  {
                      "spawnedCount":  5,
                      "survivorCount":  0,
                      "confirmedGone":  true,
                      "confirmationMethod":  "Stop-ScratchProcess terminates and then re-reads the process list until the pid is gone or a 10 s deadline expires; the survivor count above is a second, independent re-read after all teardown."
                  }
}