@capagents/forgeqe 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/HOW_TO_USE.md +435 -78
  2. package/README.md +21 -6
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +100 -8
  7. package/dist/docs-site/docs/architecture/index.html +210 -214
  8. package/dist/docs-site/docs/area-api/index.html +350 -0
  9. package/dist/docs-site/docs/area-automated-tests/index.html +967 -0
  10. package/dist/docs-site/docs/area-browser/index.html +430 -0
  11. package/dist/docs-site/docs/area-data/index.html +605 -0
  12. package/dist/docs-site/docs/area-desktop/index.html +755 -0
  13. package/dist/docs-site/docs/area-mobile/index.html +631 -0
  14. package/dist/docs-site/docs/area-operations/index.html +1069 -0
  15. package/dist/docs-site/docs/area-pull-requests/index.html +208 -0
  16. package/dist/docs-site/docs/area-quality/index.html +365 -0
  17. package/dist/docs-site/docs/area-release/index.html +320 -0
  18. package/dist/docs-site/docs/area-setup/index.html +1192 -0
  19. package/dist/docs-site/docs/area-systems/index.html +207 -0
  20. package/dist/docs-site/docs/area-test-cases/index.html +694 -0
  21. package/dist/docs-site/docs/containers/index.html +97 -104
  22. package/dist/docs-site/docs/cost-architecture/index.html +108 -112
  23. package/dist/docs-site/docs/custom-agents-first-run/index.html +19 -23
  24. package/dist/docs-site/docs/desktop/index.html +172 -162
  25. package/dist/docs-site/docs/desktop-ci/index.html +26 -33
  26. package/dist/docs-site/docs/evidence/index.html +253 -257
  27. package/dist/docs-site/docs/feature-test-prompts/index.html +66 -70
  28. package/dist/docs-site/docs/get-started/index.html +495 -0
  29. package/dist/docs-site/docs/graphify/index.html +42 -46
  30. package/dist/docs-site/docs/guardrails/index.html +17 -21
  31. package/dist/docs-site/docs/index.html +17 -6729
  32. package/dist/docs-site/docs/mobile/index.html +155 -162
  33. package/dist/docs-site/docs/model-routing/index.html +44 -51
  34. package/dist/docs-site/docs/overview/index.html +176 -0
  35. package/dist/docs-site/docs/product-graph/index.html +52 -55
  36. package/dist/docs-site/docs/product-knowledge/index.html +11 -15
  37. package/dist/docs-site/docs/product-views/index.html +53 -57
  38. package/dist/docs-site/docs/reference/index.html +379 -0
  39. package/dist/docs-site/docs/search.js +1 -1
  40. package/dist/docs-site/docs/using/index.html +480 -0
  41. package/dist/docs-site/docs/web-app/index.html +147 -93
  42. package/dist/docs-site/security/index.html +930 -0
  43. package/dist/docs-site/security/security-theme.css +161 -0
  44. package/dist/docs-site/security/security.js +1465 -0
  45. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  46. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  47. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  48. package/dist/forgeqe.js +1902 -1895
  49. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  50. package/dist/web/assets/Agent-CPhmZdFX.js +8 -0
  51. package/dist/web/assets/AgentWork-BXdN9xgi.js +2 -0
  52. package/dist/web/assets/ApiTests-Do3xLjfB.js +10 -0
  53. package/dist/web/assets/Browse-WVkJT6Bs.js +2 -0
  54. package/dist/web/assets/Chat-CDc9UcQX.js +3 -0
  55. package/dist/web/assets/CommandPalette-BAZm62lV.js +1 -0
  56. package/dist/web/assets/Compare-Br6n9T9L.js +1 -0
  57. package/dist/web/assets/Cost-BBUyBu3Y.js +1 -0
  58. package/dist/web/assets/Data-Ch2DPEWp.js +6 -0
  59. package/dist/web/assets/Desktop-Qzoq-cQv.js +1 -0
  60. package/dist/web/assets/DesktopReview-CF_jQYAM.js +1 -0
  61. package/dist/web/assets/Evidence-C72Lj5_Q.js +1 -0
  62. package/dist/web/assets/Explore-ObkEpUyS.js +2 -0
  63. package/dist/web/assets/Features-CQzNo_WP.js +1 -0
  64. package/dist/web/assets/Flags-0-RniPJm.js +2 -0
  65. package/dist/web/assets/Flaky-BPJvNLCA.js +1 -0
  66. package/dist/web/assets/Impact-CfccsL_k.js +3 -0
  67. package/dist/web/assets/Jobs-T6m4zhDy.js +5 -0
  68. package/dist/web/assets/KindPage-BDUvWe2p.js +6 -0
  69. package/dist/web/assets/Migration-Dqeh4x5u.js +2 -0
  70. package/dist/web/assets/PageAgent-DNjzIgeY.js +1 -0
  71. package/dist/web/assets/Product-nYV_scOV.js +7 -0
  72. package/dist/web/assets/Production-CGSbEWVa.js +1 -0
  73. package/dist/web/assets/Quality-BIypojZm.js +1 -0
  74. package/dist/web/assets/Readiness-BlRjwJRg.js +1 -0
  75. package/dist/web/assets/Record-v2KLI-_Z.js +1 -0
  76. package/dist/web/assets/Regression-B-jSt4Jz.js +5 -0
  77. package/dist/web/assets/RelationGraph-8J98lOVG.js +1 -0
  78. package/dist/web/assets/Reports-GI4u6SyW.js +2 -0
  79. package/dist/web/assets/Response-mhBThq2b.js +9 -0
  80. package/dist/web/assets/Responsive-DXu7Ra7K.js +3 -0
  81. package/dist/web/assets/RunDiff-D0SHDNp0.js +1 -0
  82. package/dist/web/assets/Runs-C1Gjdi9M.js +2 -0
  83. package/dist/web/assets/Settings-BGGeuvyF.js +21 -0
  84. package/dist/web/assets/Steps-D-YG0eJy.js +2 -0
  85. package/dist/web/assets/TestCases-DC4w77eQ.js +1 -0
  86. package/dist/web/assets/TestData-CvKWRVVV.js +2 -0
  87. package/dist/web/assets/TestDebt-D8YzN29_.js +1 -0
  88. package/dist/web/assets/TestManagement-C5cDCqrD.js +1 -0
  89. package/dist/web/assets/Tosca-BGUv3RiJ.js +3 -0
  90. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +1 -0
  91. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  92. package/dist/web/assets/coverage-BMP6ELFJ.js +5 -0
  93. package/dist/web/assets/dataParts-DbeCj9ga.js +3 -0
  94. package/dist/web/assets/diff-BStuTmsN.js +2 -0
  95. package/dist/web/assets/families-BBFFrUlo.js +1 -0
  96. package/dist/web/assets/filters-CnAMr286.js +1 -0
  97. package/dist/web/assets/fold-D_O_VZui.js +1 -0
  98. package/dist/web/assets/head-CRo48rPt.js +1 -0
  99. package/dist/web/assets/highlight-BcFZIf59.js +4 -0
  100. package/dist/web/assets/index-B3JsM7tv.js +64 -0
  101. package/dist/web/assets/index-CafApcbZ.css +2 -0
  102. package/dist/web/assets/input-CtzK50ZF.js +1 -0
  103. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  104. package/dist/web/assets/line-icons-rdF8DYDJ.js +1 -0
  105. package/dist/web/assets/logos-D4oVWzqa.js +1 -0
  106. package/dist/web/assets/palette-DAaGSao7.js +1 -0
  107. package/dist/web/assets/paletteCommands-Co-RlQ8q.js +1 -0
  108. package/dist/web/assets/parts-D357Wolo.js +1 -0
  109. package/dist/web/assets/productParts-B8oHRCJF.js +1 -0
  110. package/dist/web/assets/qualityParts-BLkmIfDY.js +1 -0
  111. package/dist/web/assets/recordTest-Cez2sDJO.js +1 -0
  112. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  113. package/dist/web/assets/route-BloYJWgw.js +1 -0
  114. package/dist/web/index.html +12 -6
  115. package/docs/ARCHITECTURE.md +1 -1
  116. package/docs/BASAL.md +1 -1
  117. package/docs/DESKTOP.md +20 -1
  118. package/docs/EVIDENCE.md +1 -1
  119. package/docs/MOBILE.md +4 -4
  120. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  121. package/docs/WEB_APP.md +114 -51
  122. package/docs/user-guide.html +404 -81
  123. package/forgeqe.example.yaml +3 -3
  124. package/package.json +1 -1
  125. package/prompts/page-differs.md +1 -1
  126. package/prompts/requests-rule.md +1 -1
  127. package/prompts/test-reviewer.md +1 -1
  128. package/prompts/test-rules.md +3 -4
  129. package/skills/web-guidance/LICENSE +202 -0
  130. package/skills/web-guidance/SKILL.md +76 -0
  131. package/skills/web-guidance/UPSTREAM +67 -0
  132. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  133. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  134. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  135. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  136. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  137. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  138. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  139. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  140. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  141. package/skills/web-guidance/references/forms/forms.md +415 -0
  142. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  143. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  144. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  145. package/skills/web-guidance/references/forms/slider.md +184 -0
  146. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  147. package/skills/web-guidance/references/forms/switch.md +60 -0
  148. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  149. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  150. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  151. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  152. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  153. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  154. package/skills/web-guidance/references/performance/performance.md +384 -0
  155. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  156. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  157. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  158. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  159. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  160. package/skills/web-guidance/references/security/passkeys.md +39 -0
  161. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  162. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  163. package/skills/web-guidance/references/security/security.md +390 -0
  164. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  165. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  166. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  167. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  168. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  169. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  170. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  171. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  172. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  173. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  174. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  175. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  176. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  177. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  178. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  179. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  180. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  181. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  182. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  183. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  184. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  185. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  186. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  187. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  188. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  189. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  190. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  191. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  192. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  193. package/skills/web-guidance/references/visual-design/color.md +43 -0
  194. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  195. package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
  196. package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
  197. package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
  198. package/dist/web/assets/Chat-B3uhI94O.js +0 -3
  199. package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
  200. package/dist/web/assets/Compare-CN75w1p9.js +0 -1
  201. package/dist/web/assets/Cost-QoxyjR95.js +0 -1
  202. package/dist/web/assets/Data-BAvkcBVt.js +0 -6
  203. package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
  204. package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
  205. package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
  206. package/dist/web/assets/Explore-D9AuyTip.js +0 -2
  207. package/dist/web/assets/Features-CusGMDR9.js +0 -1
  208. package/dist/web/assets/Flags-CycGFuUP.js +0 -2
  209. package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
  210. package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
  211. package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
  212. package/dist/web/assets/KindPage-BielEIej.js +0 -6
  213. package/dist/web/assets/Migration-NwanKpJg.js +0 -2
  214. package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
  215. package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
  216. package/dist/web/assets/Production-D3zsyNIS.js +0 -1
  217. package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
  218. package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
  219. package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
  220. package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
  221. package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
  222. package/dist/web/assets/Response-BP0UwQcW.js +0 -9
  223. package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
  224. package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
  225. package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
  226. package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
  227. package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
  228. package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
  229. package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
  230. package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
  231. package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
  232. package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
  233. package/dist/web/assets/families-DYlN5v0i.js +0 -1
  234. package/dist/web/assets/filters-faaSnoIq.js +0 -1
  235. package/dist/web/assets/fold-CUjwWAK3.js +0 -1
  236. package/dist/web/assets/frame-BLPdAXUq.js +0 -13
  237. package/dist/web/assets/head-CsTxBsO0.js +0 -1
  238. package/dist/web/assets/index-CxiCvGZq.js +0 -78
  239. package/dist/web/assets/index-dOIsrzhD.css +0 -2
  240. package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
  241. package/dist/web/assets/logos-dGuc1jIM.js +0 -1
  242. package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
  243. package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
  244. package/dist/web/assets/parts-CdF1f7yS.js +0 -1
  245. package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
  246. package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
  247. package/dist/web/assets/recordTest-P792aBUt.js +0 -1
@@ -0,0 +1,755 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Desktop apps · ForgeQE docs</title>
7
+ <meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
8
+ <meta name="theme-color" content="#ffffff">
9
+ <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
10
+ <link rel="icon" type="image/png" href="../../img/favicon.png">
11
+ <link rel="stylesheet" href="../docs.css">
12
+ <script src="../search.js" defer></script>
13
+ <script src="../docs.js" defer></script>
14
+ <link rel="stylesheet" href="../../app-look.css">
15
+ <link rel="stylesheet" href="../app-theme.css">
16
+ </head>
17
+ <body class="docs">
18
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-desktop" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 64v88H32V64a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16" opacity=".2"/><path d="M208 40H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h72v16H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16h-24v-16h72a24 24 0 0 0 24-24V64a24 24 0 0 0-24-24M48 56h160a8 8 0 0 1 8 8v80H40V64a8 8 0 0 1 8-8m160 128H48a8 8 0 0 1-8-8v-16h176v16a8 8 0 0 1-8 8"/></g></symbol></svg>
19
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
20
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
21
+ <line x1="8" x2="16" y1="21" y2="21" />
22
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
23
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
24
+ <path d="M12 18h.01" /></symbol>
25
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
26
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
27
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
28
+ <path d="M10 21.9V14L2.1 9.1" />
29
+ <path d="m10 14 11.9-6.9" />
30
+ <path d="M14 19.8v-8.1" />
31
+ <path d="M18 17.5V9.4" /></symbol>
32
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
33
+ <path d="m9 12 2 2 4-4" /></symbol>
34
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
35
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
36
+ <path d="M10 9H8" />
37
+ <path d="M16 13H8" />
38
+ <path d="M16 17H8" /></symbol>
39
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
40
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
41
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
42
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
43
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
44
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
45
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
46
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
47
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
48
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
49
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
50
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
51
+ <circle cx="18" cy="6" r="3" />
52
+ <circle cx="6" cy="18" r="3" />
53
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
54
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
55
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
56
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
57
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
58
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
59
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
60
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
61
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
62
+ <circle cx="12" cy="12" r="3" />
63
+ <path d="m16 16-1.9-1.9" /></symbol>
64
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
65
+ <path d="M14.12 3.88 16 2" />
66
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
67
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
68
+ <path d="M12 20v-9" />
69
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
70
+ <path d="M6 13H2" />
71
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
72
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
73
+ <path d="M22 13h-4" />
74
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
75
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
76
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
77
+ <path d="m7 22-4-4 4-4" />
78
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
79
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
80
+ <polyline points="8 6 2 12 8 18" /></symbol>
81
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
82
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
83
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
84
+ <path d="M9 8V2" />
85
+ <path d="M15 8V2" />
86
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
87
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
88
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
89
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
90
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
91
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
92
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
93
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
94
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
95
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
96
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
97
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
98
+ </svg>
99
+
100
+ <a class="skip" href="#main">Skip to content</a>
101
+ <header class="nav" id="navigation">
102
+ <div class="nav__bar">
103
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
104
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
105
+ <div class="nav__end">
106
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
107
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
108
+ </div>
109
+ </div>
110
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
111
+ </header>
112
+ <div class="container docs-layout">
113
+ <nav class="docs-side" aria-label="Docs">
114
+ <a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="index.html" aria-current="page"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
+ </nav>
117
+ <main id="main" class="docs-main guide chapter-page">
118
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Desktop and mobile</p>
119
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="index.html" aria-current="page"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-desktop-apps">Automate Windows desktop apps</a></li><li><a href="#doc-how_to_use-desktop-apps-windows">Desktop apps (Windows)</a></li><li><a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">ForgeQE desktop: thick-client automation</a></li><li><a href="#doc-docs-desktop-use">Use</a></li><li><a href="#doc-docs-desktop-how-a-run-flows">How a run flows</a></li><li><a href="#doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop (macOS, Linux, and headless Windows)</a></li><li><a href="#doc-docs-desktop-one-model-config-llmsjson--ufo">One model config: llms.json → UFO</a></li><li><a href="#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#doc-docs-desktop-recording-by-hand">Recording by hand</a></li><li><a href="#doc-docs-desktop-reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#doc-docs-desktop-fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#doc-docs-desktop-waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#doc-docs-desktop-visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#doc-docs-desktop-unattended-runs">Unattended runs</a></li><li><a href="#doc-docs-desktop-updating-ufo²">Updating UFO²</a></li><li><a href="#doc-docs-desktop-checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#doc-docs-desktop-recording">Recording</a></li><li><a href="#doc-docs-desktop-security">Security</a></li><li><a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#doc-docs-desktop-next-steps">Next steps</a></li><li><a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">Running desktop workflows unattended (nightly CI)</a></li><li><a href="#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">What breaks a desktop run, and how ForgeQE tells you</a></li><li><a href="#doc-docs-desktop-ci-set-up-the-test-machine">Set up the test machine</a></li><li><a href="#doc-docs-desktop-ci-the-nightly-job">The nightly job</a></li></ul></nav></details></div>
120
+ <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-desktop"/></svg>Desktop apps</h1>
121
+ <p class="guide-lead">Windows thick-client apps: explore a goal, record by hand, replay the saved workflow</p>
122
+ <article class="spec feat" id="cap-desktop-apps">
123
+ <div class="hd"><span class="mono">Desktop</span><h3>Automate Windows desktop apps</h3></div>
124
+ <p class="ds">Carries out a plain-language goal in a Windows thick-client app with UFO² and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:.</p>
125
+ <div class="facts">
126
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create an invoice for Contoso in the Billing app and save it as a test</li><li>I'll show you the steps in Billing: record them</li><li>Replay the billing workflow with customer Fabrikam</li><li>Step 4 timed out while the list loaded: fix the workflow</li></ul></div>
127
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need req">Required</span><span>Windows desktop apps: env.yaml (kind: desktop) or desktop.apps in forgeqe.yaml</span></li><li><span class="need input">You give</span><span>a Windows machine, and the app in forgeqe.yaml desktop.apps</span></li></ul></div>
128
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Windows only, one run at a time per desktop</li><li>Apps whose controls UI Automation cannot see (Citrix, some Java and custom-drawn apps) are not supported yet</li></ul></div>
129
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>desktop_explore</code> <code>desktop_record</code> <code>desktop_replay</code> <code>desktop_edit_workflow</code> <code>desktop_manage</code></p></div>
130
+ </div>
131
+ <div class="detail"><span class="mono">In detail</span>
132
+ <section class="doc" id="doc-how_to_use-desktop-apps-windows">
133
+ <h4>Desktop apps (Windows)</h4>
134
+ <div class="prose"><p>ForgeQE also automates Windows thick-client apps (Win32, WinForms, WPF). In the shell, ask for a goal in the app
135
+ (&quot;create an invoice for Contoso in Billing&quot;) and ForgeQE's agent uses UFO² to do it, saves the run as a workflow with
136
+ checks of the outcome, and can replay it with no model. The same from the command line:</p>
137
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe desktop setup --ufo
138
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop explore &quot;Create an invoice for Contoso, net 30&quot; --app billing
139
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop record --app billing</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or do the steps yourself; no model
140
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop replay &lt;run folder&gt;/workflow.yaml customer=Fabrikam
141
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --data customers.csv</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once per row; columns are variable names
142
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay desktop-tests/ --junit results.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every workflow in a folder, results for CI
143
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> can this machine replay unattended?
144
+ </span></span></code></pre></div>
145
+ <p>Explore and recording run on Windows. A saved workflow also replays on macOS and Linux, on agent-desktop (the default
146
+ there; <code>forgeqe desktop setup</code> installs it), and on Windows with <code>desktop.driver: agent-desktop</code>: it acts through
147
+ accessibility calls, with no mouse or focus. See
148
+ <a href="#doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">docs/DESKTOP.md</a>. In <code>forgeqe web</code>,
149
+ Record → <strong>Desktop app</strong> records on Windows, and a recording opens in a review: steps with their pictures (click a
150
+ control to add a check), changes to a step, checks, waits and keys added after one, where each typed value comes from,
151
+ and <strong>Replay</strong> with no model (<a href="#doc-docs-desktop-reviewing-a-recording-web-app">docs/DESKTOP.md</a>).</p>
152
+ <p>Workflows wait for slow apps without fixed sleeps: a <code>timeout</code> and <code>retries</code> for the workflow or a step, <code>wait_for</code> a
153
+ control to appear, show a text or go away (a splash screen), and a <code>dismiss</code> list of dialog buttons to click whenever
154
+ they are in the way. <code>expect_image</code> compares a control or window with a baseline image (saved on the first run, kept
155
+ next to the workflow), with a tolerance and regions to ignore. When you know the steps, <code>forgeqe desktop record</code> (or
156
+ &quot;I'll show you, record it&quot; in the shell) saves what you do by hand: Ctrl+Shift+F11 over a control adds a check of its
157
+ text, Ctrl+Shift+F12 finishes. After a failed replay, ForgeQE's agent can fix the workflow (a longer timeout, a
158
+ <code>wait_for</code>, a dialog to dismiss): it shows the diff and writes it only when you agree. For nightly runs on a machine
159
+ of your own, see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">docs/DESKTOP-CI.md</a>.</p>
160
+ <p>Apps come from <code>desktop.apps</code> in forgeqe.yaml (an absolute <code>.exe</code> and an argument list), and <code>{{secret:NAME}}</code> reads
161
+ only the variables listed in <code>desktop.secrets</code>. Explore and replay take over the desktop's mouse and keyboard and ask
162
+ first; use a test machine and a test account. Details: <a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">docs/DESKTOP.md</a>.</p>
163
+ <p>Workflows replay with <code>desktop.driver</code>: <code>auto</code> (the default) uses pywinauto on Windows and agent-desktop elsewhere (macOS, Linux), or name <code>pywinauto</code> or <code>agent-desktop</code>. agent-desktop does not use the mouse and keyboard unless <code>desktop.headed: true</code> (a double-click needs it). <code>desktop.video: false</code> stops the <code>video.mp4</code> each run keeps.</p>
164
+ </div>
165
+ </section>
166
+ <section class="doc" id="doc-docs-desktop-forgeqe-desktop-thick-client-automation">
167
+ <h4>ForgeQE desktop: thick-client automation</h4>
168
+ <div class="prose"><p>Status: runs on Windows. The live tests there install the engine and the pinned UFO², replay Notepad with the
169
+ pywinauto driver and through <code>forgeqe desktop replay</code>, heal a moved control from the live window, and run a whole
170
+ explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the
171
+ control's AutomationId, and the recording replays. Not yet run: explore with a real model, and your own apps. See
172
+ <a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a>.</p>
173
+ <p>ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms,
174
+ WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live
175
+ app, and the run is saved as a YAML workflow that replays later without a model.</p>
176
+ <p>Workflows also replay on <strong>macOS and Linux</strong>, and headless on Windows, on Vercel Labs' agent-desktop. See
177
+ <a href="#doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop</a>. Exploring and recording by hand
178
+ still need Windows.</p>
179
+ </div>
180
+ </section>
181
+ <section class="doc" id="doc-docs-desktop-use">
182
+ <h4>Use</h4>
183
+ <div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup --ufo</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once, on Windows: the engine, pywinauto, and the pinned UFO²
184
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop apps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what forgeqe.yaml allows
185
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop explore &quot;Create an invoice for Contoso, net 30&quot; --app billing
186
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop record --app billing</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or do the steps yourself: no model, no UFO
187
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam
188
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --data customers.csv</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once per row; the header names the variables
189
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay desktop-tests/ --junit results.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every workflow in a folder, results for CI
190
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --update-baselines</span><span class="pad"> </span><span class="cm"><span class="h">#</span> save new baselines for its expect_image steps
191
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> can this machine run replay unattended?
192
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop validate workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> any OS
193
+ </span></span></code></pre></div>
194
+ <p>Or ask ForgeQE's agent in the shell or <code>forgeqe run</code>: &quot;create an invoice for Contoso in Billing and save it as a test&quot;,
195
+ or &quot;I'll show you the steps in Billing, record them&quot;. Its tools are <code>test_apps</code>, <code>desktop_explore</code>, <code>desktop_record</code>,
196
+ <code>desktop_replay</code> and <code>desktop_edit_workflow</code>. It asks before it starts the app or takes over the desktop, and before it
197
+ changes a workflow. Where it cannot ask (an MCP client), the call answers <code>needs_confirmation</code> until the user agrees.</p>
198
+ <p>Desktop apps come from the active environment in <code>env.yaml</code> (see HOW_TO_USE.md, &quot;Environments and apps&quot;), or from
199
+ <code>desktop.apps</code> in <code>forgeqe.yaml</code>, which works without environments:</p>
200
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">desktop:
201
+ </span></span><span class="ln"><span class="cmd"> apps:
202
+ </span></span><span class="ln"><span class="cmd"> billing:
203
+ </span></span><span class="ln"><span class="cmd"> path: C:\Program Files\Contoso\Billing\Billing.exe
204
+ </span></span><span class="ln"><span class="cmd"> args: [&quot;--profile&quot;, &quot;test&quot;]
205
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> window: &quot;Billing.*&quot; # for a launcher that starts the real app and exits: connect by title
206
+ </span></span><span class="ln ln--pair"><span class="cmd"> secrets: [BILLING_PASSWORD]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the only environment variables {{secret:…}} may read
207
+ </span></span><span class="ln ln--pair"><span class="cmd"> heal: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> replay asks the model to re-find a control that moved (default on)
208
+ </span></span><span class="ln ln--pair"><span class="cmd"> screenshots: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one screenshot per replayed step (default on)
209
+ </span></span></code></pre></div>
210
+ <p>Each run writes a folder under the reports folder (<code>desktop-explore-…</code> or <code>desktop-replay-…</code>): <code>run.json</code>,
211
+ <code>report.html</code>, <code>steps/NNN.png</code>, and for explore <code>workflow.yaml</code>, <code>trace.json</code> and UFO's own logs in <code>ufo/</code>. A replay
212
+ whose steps were healed also writes <code>heals.json</code> and asks whether to write the new locators into the workflow
213
+ (<code>--accept-heals</code> writes them without asking; with no terminal they are never written).</p>
214
+ </div>
215
+ </section>
216
+ <section class="doc" id="doc-docs-desktop-how-a-run-flows">
217
+ <h4>How a run flows</h4>
218
+ <div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe desktop explore ──► src/desktop/bridge.ts ──JSON lines──► python -m forgeqe_desktop serve
219
+ </span></span><span class="ln"><span class="cmd"> │ start the app from desktop.apps (no shell)
220
+ </span></span><span class="ln"><span class="cmd"> │ UFO² in-process: model = llms.json profile,
221
+ </span></span><span class="ln"><span class="cmd"> │ UI tools only, every action traced with its
222
+ </span></span><span class="ln"><span class="cmd"> ▼ control's UIA properties
223
+ </span></span><span class="ln"><span class="cmd"> record.py ──► workflow.yaml
224
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop replay ───► bridge ──► serve (replay.py on pywinauto, no model)
225
+ </span></span><span class="ln"><span class="cmd"> │ a control is not found
226
+ </span></span><span class="ln"><span class="cmd"> ▼
227
+ </span></span><span class="ln"><span class="cmd"> heal.py: the model picks one of the window's real controls, by number
228
+ </span></span><span class="ln"><span class="cmd"> ▼
229
+ </span></span><span class="ln"><span class="cmd"> proposed locator → heals.json, written into the workflow only when accepted
230
+ </span></span></code></pre></div>
231
+ </div>
232
+ </section>
233
+ <section class="doc" id="doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">
234
+ <h4>Replay on agent-desktop (macOS, Linux, and headless Windows)</h4>
235
+ <div class="prose"><p><code>desktop.driver</code> picks what a workflow replays on:</p>
236
+ <div class="tbl tbl--cols-3"><table>
237
+ <thead>
238
+ <tr><th><code>desktop.driver</code></th><th>Replays on</th><th>Where</th></tr>
239
+ </thead>
240
+ <tbody>
241
+ <tr><td data-label="desktop.driver"><code>auto</code> (default)</td><td data-label="Replays on">pywinauto on Windows, agent-desktop elsewhere</td><td data-label="Where">any</td></tr>
242
+ <tr><td data-label="desktop.driver"><code>pywinauto</code></td><td data-label="Replays on">pywinauto, with the UIA backend: the mouse and keyboard, like a person</td><td data-label="Where">Windows</td></tr>
243
+ <tr><td data-label="desktop.driver"><code>agent-desktop</code></td><td data-label="Replays on"><a href="https://github.com/vercel-labs/agent-desktop" class="ext" rel="noopener">agent-desktop</a> 1.2.0: accessibility calls, no mouse and no focus</td><td data-label="Where">macOS 13+, Windows 10 1809+, Ubuntu 24.04+ (X11 or Wayland)</td></tr>
244
+ </tbody>
245
+ </table></div>
246
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> off Windows: the engine and agent-desktop 1.2.0
247
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup --agent-desktop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> on Windows, to replay on agent-desktop too
248
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop doctor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> off Windows: agent-desktop's platform and permissions
249
+ </span></span><span class="ln"><span class="cmd">forgeqe desktop replay workflow.yaml
250
+ </span></span></code></pre></div>
251
+ <p>The workflow, its variables, secrets, checks, healing, app memory, reports and <code>--junit</code> are the same on either driver.
252
+ A workflow recorded on Windows replays on agent-desktop as it is: its <code>control_type</code> (UI Automation's) is matched to the
253
+ roles agent-desktop gives that control (a <code>Button</code> with a toggle is a <code>switch</code>), and <code>automation_id</code> to the control's
254
+ developer id (AutomationId, AXIdentifier, or the DOM id). A workflow written for macOS or Linux can name agent-desktop's
255
+ roles (<code>textfield</code>, <code>checkbox</code>) as its <code>control_type</code>.</p>
256
+ <p>How a step runs: ForgeQE's locator finds the control in a fresh snapshot of the launched app's own windows, and refuses
257
+ when several match. agent-desktop then acts on that snapshot's ref, and re-identifies it against the live window first:
258
+ an element that changed in between is refused, never guessed. A ref refused with nothing delivered is found again once.
259
+ An action that may have landed (a click whose result agent-desktop could not confirm) is never sent again, so a replay
260
+ never submits twice.</p>
261
+ <p>What it does not do:</p>
262
+ <ul>
263
+ <li><code>double_click</code> moves the mouse: it replays only with <code>desktop.headed: true</code>.</li>
264
+ <li><code>keys</code> are real key presses sent to the app's window (agent-desktop's <code>press</code>). A workflow recorded on Windows says
265
+ <code>ctrl+s</code>; on macOS write <code>cmd+s</code> instead.</li>
266
+ <li>Identical controls (two buttons named OK in one window) have no ref on Windows and Linux. Give the step a control
267
+ that is unique in its window.</li>
268
+ <li>On macOS, grant Accessibility to the app that runs forgeqe (Terminal, iTerm2, VS Code): <code>forgeqe desktop doctor</code>
269
+ shows the state. On Linux, Chromium and Qt apps need their accessibility switched on to be seen (agent-desktop's
270
+ Linux guide).</li>
271
+ </ul>
272
+ <p>Apps in env.yaml or <code>desktop.apps</code>: an absolute <code>.exe</code> on Windows, an <code>.app</code> bundle on macOS (<code>/Applications/Notes.app</code>;
273
+ its <code>CFBundleExecutable</code> is started, and only when it is a file inside the bundle), or an executable on Linux
274
+ (<code>/usr/bin/gnome-calculator</code>, with <code>kind: desktop</code>).</p>
275
+ <p>What reaches agent-desktop (<code>py/forgeqe_desktop/agentdesktop_driver.py</code>):</p>
276
+ <ul>
277
+ <li>Only its own native executable, set up by ForgeQE at exactly 1.2.0 from npm (whose install step checks the release's
278
+ SHA-256), started with an argument array: never its Node launcher, never a shell. The driver checks the version and
279
+ refuses another.</li>
280
+ <li>Its environment is system settings only: no model key, no <code>desktop.secrets</code>, no ForgeQE variable.</li>
281
+ <li>Typed text, secrets included, goes on stdin (<code>set-value --stdin</code>), never in the command line other programs can see.</li>
282
+ <li>Refs and window ids only in their own shapes; a <code>select</code> value after <code>--</code>, so it is never read as a flag.</li>
283
+ <li>Its state (snapshots hold the app's text) is in a private folder for the run (mode 0700), removed when the run ends.</li>
284
+ <li>Its replies are read as untrusted: anything but its JSON envelope, or over 64 MB, is refused, and its error text is
285
+ cut to one plain line before it reaches a report or the heal prompt.</li>
286
+ </ul>
287
+ </div>
288
+ </section>
289
+ <section class="doc" id="doc-docs-desktop-one-model-config-llmsjson--ufo">
290
+ <h4>One model config: <code>llms.json</code> → UFO</h4>
291
+ <div class="prose"><p>UFO picks its model client by <code>API_TYPE</code> through <code>ufo.llm.base.BaseService.get_service</code>, which every model call goes
292
+ through (<code>ufo/llm/llm_call.py</code>). The adapter adds the type <code>forgeqe</code>:</p>
293
+ <ul>
294
+ <li><code>write_ufo_config</code> writes UFO's <code>config/ufo/agents.yaml</code> from its template, with <code>API_TYPE: forgeqe</code>, the model's name,
295
+ and no endpoint and no key, for <code>HOST_AGENT</code>, <code>APP_AGENT</code>, <code>BACKUP_AGENT</code> and <code>EVALUATION_AGENT</code>.</li>
296
+ <li><code>ufo_bridge.install</code> makes <code>get_service(&quot;forgeqe&quot;, …)</code> return <code>ForgeQEService</code>, which calls the profile through the
297
+ <code>openai</code> SDK (<code>models.py</code>): <code>azure</code> (key or <code>auth: entra</code>), <code>openai</code>, <code>openai_compatible</code> (key or Entra), and <code>ollama</code>
298
+ through its OpenAI-compatible <code>/v1</code>. Keys, Azure endpoints and Entra use the browser engine's own helpers
299
+ (<code>forgeqe_engine.llm</code>), so a profile means the same thing in both. Keys stay in environment variables.</li>
300
+ <li>Each call's time and tokens go to ForgeQE's usage ledger as the &quot;desktop agent&quot; (counts only, never the prompt).</li>
301
+ </ul>
302
+ <p>Explore sends screenshots, so its profile must take images: <code>&quot;vision&quot;: true</code> or <code>false</code> on the profile says so; without
303
+ it, <code>ollama</code> profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images.</p>
304
+ <p>The request parameters suit the model by themselves: a reasoning model (o1, o3, o4, gpt-5, by the profile's <code>model</code> or
305
+ <code>deployment</code> name, or <code>&quot;reasoning&quot;: true</code> on the profile) gets <code>max_completion_tokens</code> and no temperature from the first
306
+ call, and when the API refuses a parameter (<code>max_tokens</code>, <code>temperature</code>, <code>frequency_penalty</code>, <code>response_format</code>, …) the
307
+ call is sent again without it, and later calls to that model leave it out (<code>py/forgeqe_engine/model_params.py</code>). The
308
+ browser agent does the same.</p>
309
+ </div>
310
+ </section>
311
+ <section class="doc" id="doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">
312
+ <h4>Workflow YAML (<code>forgeqe-desktop-v1</code>)</h4>
313
+ <div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">format: forgeqe-desktop-v1
314
+ </span></span><span class="ln"><span class="cmd">name: Create an invoice
315
+ </span></span><span class="ln ln--pair"><span class="cmd">app: billing</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a name from forgeqe.yaml desktop.apps, never a path or a command
316
+ </span></span><span class="ln"><span class="cmd">variables:
317
+ </span></span><span class="ln"><span class="cmd"> customer: Contoso
318
+ </span></span><span class="ln"><span class="cmd">steps:
319
+ </span></span><span class="ln"><span class="cmd"> - op: launch
320
+ </span></span><span class="ln"><span class="cmd"> - op: click
321
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: btnNewInvoice, control_type: Button, name: New invoice}
322
+ </span></span><span class="ln"><span class="cmd"> - op: type
323
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: txtCustomer, control_type: Edit}
324
+ </span></span><span class="ln"><span class="cmd"> text: &quot;{{customer}}&quot;
325
+ </span></span><span class="ln"><span class="cmd"> - op: type
326
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: txtPassword, control_type: Edit}
327
+ </span></span><span class="ln"><span class="cmd"> text: &quot;{{secret:BILLING_PASSWORD}}&quot;
328
+ </span></span><span class="ln"><span class="cmd"> - op: select
329
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: cmbTerms, control_type: ComboBox}
330
+ </span></span><span class="ln"><span class="cmd"> value: Net 30
331
+ </span></span><span class="ln"><span class="cmd"> - op: keys
332
+ </span></span><span class="ln"><span class="cmd"> keys: ctrl+s
333
+ </span></span><span class="ln"><span class="cmd"> - op: expect
334
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: lblStatus}
335
+ </span></span><span class="ln"><span class="cmd"> text: Saved
336
+ </span></span><span class="ln"><span class="cmd"> - op: close
337
+ </span></span></code></pre></div>
338
+ <ul>
339
+ <li><strong>Ops:</strong> <code>launch</code>, <code>click</code>, <code>double_click</code>, <code>type</code>, <code>select</code>, <code>keys</code>, <code>expect</code>, <code>expect_image</code>, <code>wait</code> (at most
340
+ 60 s), <code>wait_for</code>, <code>close</code>.</li>
341
+ <li><strong>Locators</strong> use UIA properties, never screen coordinates: <code>automation_id</code>, <code>name</code>, <code>control_type</code>, <code>class_name</code>,
342
+ <code>index</code> (when several match), and <code>path</code> (the ancestors' <code>control_type</code> and <code>name</code>). A target needs an
343
+ <code>automation_id</code> or a <code>name</code>. Replay looks in the launched app's own windows only.</li>
344
+ <li><strong>Variables:</strong> <code>{{name}}</code> from the workflow's <code>variables</code> or <code>name=value</code> on the command line; <code>{{secret:NAME}}</code> from
345
+ the environment, only for names in <code>desktop.secrets</code>. A secret ForgeQE itself uses (a model key, a tracker token) is
346
+ refused there. Values are substituted once and never expanded again. Targets take <code>{{name}}</code> too (a CSV row's
347
+ <code>{{customer}}</code> as the control to click), never a secret.</li>
348
+ <li><strong>Keys:</strong> <code>ctrl</code>, <code>shift</code> and <code>alt</code> with one named key or character (<code>ctrl+s</code>, <code>alt+f4</code>, <code>enter</code>, <code>f5</code>). The Windows
349
+ and context-menu keys are refused: Win+R followed by typing runs any command.</li>
350
+ <li><strong>Typing</strong> is literal: pywinauto's key syntax (<code>^</code>, <code>%</code>, <code>+</code>, <code>~</code>, <code>{ENTER}</code>) in the text is escaped. On Windows a
351
+ <code>type</code> step clears the field and types the text key by key, like a person: some controls show text set through UI
352
+ Automation but act only on typed input (the Windows Save and Open dialogs keep their default file name). Text with
353
+ line breaks or tabs is set instead, so a line break never presses Enter in a form.</li>
354
+ <li><strong>Only the app gets the input.</strong> pywinauto clicks at screen coordinates and keys go to the window in front, so before
355
+ a click, <code>type</code> or <code>keys</code> the app's window is brought forward, and nothing is sent while another program's window
356
+ covers the point or keeps the keyboard: the step fails and says so. <code>keys</code> go to the app's open dialog, not its main
357
+ window behind it. A <code>dismiss</code> control that could not be clicked is named in the step's error.</li>
358
+ </ul>
359
+ </div>
360
+ </section>
361
+ <section class="doc" id="doc-docs-desktop-recording-by-hand">
362
+ <h4>Recording by hand</h4>
363
+ <div class="prose"><p>When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs
364
+ nothing and does exactly what you did.</p>
365
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe desktop record --app billing --name &quot;Create an invoice&quot;
366
+ </span></span></code></pre></div>
367
+ <p>ForgeQE starts the app and watches the mouse and keyboard (low-level Windows hooks), asking UI Automation which control
368
+ each click and key went to. Do the steps, then:</p>
369
+ <ul>
370
+ <li><strong>Ctrl+Shift+F11</strong> with the mouse over a control adds a check: an <code>expect</code> step with the text it shows now (a
371
+ status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps.</li>
372
+ <li><strong>Ctrl+Shift+F12</strong>, or closing the app, finishes. The console shows each step as it is recorded.</li>
373
+ </ul>
374
+ <p>What becomes a step:</p>
375
+ <div class="tbl tbl--cols-2"><table>
376
+ <thead>
377
+ <tr><th>You do</th><th>Step</th></tr>
378
+ </thead>
379
+ <tbody>
380
+ <tr><td data-label="You do">Click a control (two quick clicks: <code>double_click</code>)</td><td data-label="Step"><code>click</code> with its AutomationId, name and control type</td></tr>
381
+ <tr><td data-label="You do">Pick an item in a drop-down</td><td data-label="Step"><code>select</code> on the drop-down, with the item's name</td></tr>
382
+ <tr><td data-label="You do">Type into a field (corrections and pastes included)</td><td data-label="Step">one <code>type</code> with the field's text when you move on, read from the field</td></tr>
383
+ <tr><td data-label="You do">A key chord outside a text field (<code>ctrl+s</code>, <code>enter</code>, <code>f5</code>)</td><td data-label="Step"><code>keys</code></td></tr>
384
+ <tr><td data-label="You do">Ctrl+Shift+F11 over a control</td><td data-label="Step"><code>expect</code> with its text</td></tr>
385
+ </tbody>
386
+ </table></div>
387
+ <ul>
388
+ <li><strong>Passwords:</strong> a password field is never read; its step types <code>{{secret:NAME}}</code> (the one name in <code>desktop.secrets</code>,
389
+ or <code>&lt;APP&gt;_PASSWORD</code>, which the result tells you to set). Text equal to a <code>desktop.secrets</code> value is written as its
390
+ placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
391
+ <li><strong>Only the app:</strong> clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys,
392
+ or controls with neither an AutomationId nor a name. The result lists what was left out.</li>
393
+ <li><strong>A click that closes a dialog</strong> (OK after typing a password) is held for up to 0.2 s while ForgeQE finds the control
394
+ under it and reads the field you typed in, so neither is lost when the dialog goes. Typed characters are looked up
395
+ once per run of typing, not once per key.</li>
396
+ <li><strong>A cell in a list or grid row</strong> is recorded inside its row (<code>path</code>: the row's type and name), since every row has a
397
+ cell like it (a password column's <code>********</code>).</li>
398
+ <li>The run folder has <code>workflow.yaml</code>, <code>run.json</code>, <code>report.html</code>, a picture of each step with the controls it shows
399
+ (<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code>. Replay it with
400
+ <code>forgeqe desktop replay</code>.</li>
401
+ </ul>
402
+ </div>
403
+ </section>
404
+ <section class="doc" id="doc-docs-desktop-reviewing-a-recording-web-app">
405
+ <h4>Reviewing a recording (web app)</h4>
406
+ <div class="prose"><p>Record → <strong>Desktop app</strong> in <code>forgeqe web</code> (Windows) records the same way, and when you stop, the workflow opens in a
407
+ review:</p>
408
+ <ul>
409
+ <li><strong>Steps</strong>: each step with its picture, as recorded or on the last replay. Click a control on a picture to add a
410
+ check that it shows its text (or that it is there). <strong>Change step N</strong> changes a step's control, text or seconds,
411
+ or removes it (never the first, which starts the app). <strong>+</strong> after a step adds: a check that a control shows a
412
+ text or is there, a wait for a control or until it is gone, a wait of some seconds, or keys. Each change is shown
413
+ first and written at the version shown.</li>
414
+ <li><strong>Test data</strong>: where each typed or chosen value comes from: as typed, test data (a variable of the workflow), or a
415
+ secret of <code>desktop.secrets</code> (what was typed then leaves the workflow).</li>
416
+ <li><strong>Last run</strong>: <strong>Replay</strong> with the values above or once for each row of a data file or kept request, with
417
+ <strong>Heal a moved control</strong> and <strong>New image baselines</strong>; its result, report and heals to accept.</li>
418
+ </ul>
419
+ <p><strong>Improve</strong> asks DeskPilot what to fix or add; it changes the workflow only after showing you the change. A mobile
420
+ recording opens in the same review.</p>
421
+ </div>
422
+ </section>
423
+ <section class="doc" id="doc-docs-desktop-fixing-a-workflow-from-chat">
424
+ <h4>Fixing a workflow from chat</h4>
425
+ <div class="prose"><p>When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow
426
+ with <code>desktop_edit_workflow</code>: it proposes the change (a longer <code>timeout</code> or <code>retries</code> on the step, a <code>wait_for</code> before
427
+ it, a dialog button in <code>dismiss</code>, a healed locator, a corrected text), shows you the diff, and writes the file only
428
+ when you agree. For example, after &quot;step 4 timed out while the invoice list loaded&quot;:</p>
429
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">Change invoice.yaml?
430
+ </span></span><span class="ln"><span class="cmd">• new wait_for step before step 4
431
+ </span></span><span class="ln"><span class="cmd">• step 4: retries 2
432
+ </span></span><span class="ln"><span class="cmd"> - op: click
433
+ </span></span><span class="ln"><span class="cmd"> + target: {automation_id: btnPost}
434
+ </span></span><span class="ln"><span class="cmd"> + retries: 2
435
+ </span></span></code></pre></div>
436
+ <ul>
437
+ <li>Each change has a fixed shape (<code>set</code>, <code>unset</code>, <code>set_step</code>, <code>add_dismiss</code>, <code>insert_step</code>, <code>remove_step</code>,
438
+ <code>set_variable</code>); step numbers are the replay report's. Anything else is refused.</li>
439
+ <li>The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not
440
+ offered. Comments and layout are kept.</li>
441
+ <li>The old text is kept in the reports folder (<code>desktop-edits/</code>), and a file that changed since the edit was proposed is
442
+ not overwritten.</li>
443
+ <li>The workflow must be a <code>.yaml</code> inside the working folder or the reports folder.</li>
444
+ </ul>
445
+ </div>
446
+ </section>
447
+ <section class="doc" id="doc-docs-desktop-waits-retries-and-dialogs">
448
+ <h4>Waits, retries and dialogs</h4>
449
+ <div class="prose"><p>Real apps are slow in places: a splash screen, a form that loads its data, a &quot;Tip of the day&quot; or &quot;Save changes?&quot;
450
+ dialog. A workflow says how to wait for them, without fixed <code>wait</code> steps:</p>
451
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">timeout: 20</span><span class="pad"> </span><span class="cm"><span class="h">#</span> seconds a step waits for its control (default 10, at most 300)
452
+ </span></span><span class="ln ln--pair"><span class="cmd">retries: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> tries a failed action again, after a short pause (default 0, at most 5)
453
+ </span></span><span class="ln ln--pair"><span class="cmd">dismiss:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> clicked whenever one of them is in the way
454
+ </span></span><span class="ln"><span class="cmd"> - {name: OK, control_type: Button, automation_id: btnTipClose}
455
+ </span></span><span class="ln"><span class="cmd"> - {name: &quot;Don't Save&quot;, control_type: Button}
456
+ </span></span><span class="ln"><span class="cmd">steps:
457
+ </span></span><span class="ln"><span class="cmd"> - op: launch
458
+ </span></span><span class="ln ln--pair"><span class="cmd"> timeout: 90</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a slow start: how long to wait for the app's window
459
+ </span></span><span class="ln ln--pair"><span class="cmd"> - op: wait_for</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the splash screen goes away
460
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: splashForm}
461
+ </span></span><span class="ln"><span class="cmd"> gone: true
462
+ </span></span><span class="ln"><span class="cmd"> timeout: 120
463
+ </span></span><span class="ln ln--pair"><span class="cmd"> - op: wait_for</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the form has loaded its data
464
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: lblStatus}
465
+ </span></span><span class="ln"><span class="cmd"> text: Ready
466
+ </span></span><span class="ln"><span class="cmd"> - op: click
467
+ </span></span><span class="ln"><span class="cmd"> target: {automation_id: btnPost}
468
+ </span></span><span class="ln ln--pair"><span class="cmd"> timeout: 60</span><span class="pad"> </span><span class="cm"><span class="h">#</span> per step, over the workflow's timeout
469
+ </span></span><span class="ln"><span class="cmd"> retries: 3
470
+ </span></span></code></pre></div>
471
+ <ul>
472
+ <li><strong>Each step waits</strong> for its control up to its <code>timeout</code>. <code>click</code>, <code>type</code> and <code>select</code> also wait until the control is
473
+ enabled and visible (a form that is still loading greys its buttons out).</li>
474
+ <li><strong><code>wait_for</code></strong> waits until a control is there, shows a <code>text</code>, or with <code>gone: true</code> has gone.</li>
475
+ <li><strong><code>retries</code></strong> applies to <code>click</code>, <code>double_click</code>, <code>type</code>, <code>select</code>, <code>keys</code>, <code>expect</code> and <code>expect_image</code>. Between
476
+ tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any <code>dismiss</code> dialog. An error in the workflow itself (a
477
+ missing variable) is not retried.</li>
478
+ <li><strong><code>dismiss</code></strong> lists at most 10 targets, checked like any target. When a control is not found, or something waits to
479
+ go away, replay clicks the <code>dismiss</code> controls that are on screen and looks again, up to 3 times per lookup. The
480
+ report and the console name every dialog closed, and how many tries a step took.</li>
481
+ </ul>
482
+ </div>
483
+ </section>
484
+ <section class="doc" id="doc-docs-desktop-visual-checks-expect_image">
485
+ <h4>Visual checks (<code>expect_image</code>)</h4>
486
+ <div class="prose"><p><code>expect</code> compares text. When what matters is drawn (a chart, a signature, a colour, a layout), <code>expect_image</code>
487
+ compares pixels with a baseline image:</p>
488
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd"> - op: expect_image
489
+ </span></span><span class="ln ln--pair"><span class="cmd"> target: {automation_id: chartRevenue}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> without a target: the app's top window
490
+ </span></span><span class="ln ln--pair"><span class="cmd"> image: revenue-chart.png</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a file name in &lt;workflow name&gt;.baselines/ next to the workflow
491
+ </span></span><span class="ln ln--pair"><span class="cmd"> tolerance: 0.01</span><span class="pad"> </span><span class="cm"><span class="h">#</span> share of pixels that may differ (default 0.01, i.e. 1%)
492
+ </span></span><span class="ln ln--pair"><span class="cmd"> ignore: [[0, 0, 120, 24]]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> regions [x, y, width, height] that change every run (a date, a clock)
493
+ </span></span></code></pre></div>
494
+ <ul>
495
+ <li><strong>The first run</strong> with no baseline saves what it captured and passes; the report says so. Commit the baselines
496
+ folder with the workflow. <code>--update-baselines</code> replaces them after an intended change.</li>
497
+ <li><strong>A pixel counts as different</strong> when a colour channel differs by more than 32 of 255, so anti-aliasing and ClearType
498
+ do not fail a check. A different size (another screen scale or window size) fails with both sizes named.</li>
499
+ <li><strong>The report</strong> shows the baseline, what was captured, and the differences in red, with the share of pixels that
500
+ differ (<code>images/NNN-baseline|actual|diff.png</code> in the run folder).</li>
501
+ <li><strong>Image names</strong> are file names only (letters, digits, <code>_</code>, <code>-</code>, ending <code>.png</code>). A path, <code>..</code>, or a link that leads
502
+ out of the baselines folder is refused.</li>
503
+ <li>Run visual checks on one machine with a fixed resolution and scale (see <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">DESKTOP-CI.md</a>).</li>
504
+ </ul>
505
+ </div>
506
+ </section>
507
+ <section class="doc" id="doc-docs-desktop-unattended-runs">
508
+ <h4>Unattended runs</h4>
509
+ <div class="prose"><p>Replay needs a signed-in, unlocked Windows session. Before it starts the app, it checks the session and fails at once
510
+ with the reason if it is a Windows service (session 0), a locked screen, or a disconnected Remote Desktop session.
511
+ <code>forgeqe desktop doctor</code> runs the same check. To run the suite every night on a machine of your own, see
512
+ <a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">DESKTOP-CI.md</a>: a runner set up in the user's session (<code>ci/desktop-runner/prepare-runner.ps1</code>), a
513
+ nightly workflow (<code>ci/desktop-runner/desktop-nightly.example.yml</code>), and <code>--junit</code> results.</p>
514
+ </div>
515
+ </section>
516
+ <section class="doc" id="doc-docs-desktop-updating-ufo²">
517
+ <h4>Updating UFO²</h4>
518
+ <div class="prose"><p>UFO² is pinned to one commit. Moving it is checked before it is pinned:</p>
519
+ <ol>
520
+ <li>Set up that UFO on Windows (<code>FORGEQE_UFO_COMMIT</code>, which takes a full 40-character commit id only), then run the
521
+ adapter tests against its real code and a scripted explore of Notepad.</li>
522
+ <li>When it passed: <code>bun scripts/ufo-bump.ts &lt;commit&gt;</code> writes the new pin into <code>src/desktop/setup.ts</code>,
523
+ <code>py/forgeqe_desktop/ufo_runner.py</code> and this page. Run the tests on Windows again before pushing.</li>
524
+ </ol>
525
+ <p>When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the
526
+ adapter wraps). Keep the pin until the adapter is updated for it.</p>
527
+ </div>
528
+ </section>
529
+ <section class="doc" id="doc-docs-desktop-checks-of-the-outcome">
530
+ <h4>Checks of the outcome</h4>
531
+ <div class="prose"><p>A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the
532
+ model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves
533
+ the goal (a status message, a saved value), by number, with the part of the text to expect. A check is kept only when
534
+ that text really is in that control, so the model can choose among what is on screen but never invent it; text holding
535
+ a <code>desktop.secrets</code> value is never offered. The checks are saved as <code>expect</code> steps at the end of the workflow, and the
536
+ report says how many there are. With none, the report and the agent say so: add <code>expect</code> steps by hand.</p>
537
+ </div>
538
+ </section>
539
+ <section class="doc" id="doc-docs-desktop-recording">
540
+ <h4>Recording</h4>
541
+ <div class="prose"><p>UFO's own step log names the control and a per-step id, not its AutomationId, so the adapter wraps UFO's
542
+ <code>ActionExecutor.execute</code> and records each action with the UIA properties of the control it acted on. <code>record.py</code> turns
543
+ that trace into steps: <code>click_input</code> → <code>click</code>/<code>double_click</code>, <code>set_edit_text</code> → <code>type</code>, <code>keyboard_input</code> → <code>keys</code> (one
544
+ allowed chord) or <code>type</code>, <code>select</code> → <code>select</code>. Coordinate clicks, scrolls and anything else are listed as not recorded
545
+ in the report. A typed value equal to a <code>desktop.secrets</code> value is written as its placeholder; typed text that only
546
+ looks like <code>{{…}}</code> is kept literal, so a model told to type <code>{{secret:X}}</code> cannot make replay type the secret.</p>
547
+ </div>
548
+ </section>
549
+ <section class="doc" id="doc-docs-desktop-security">
550
+ <h4>Security</h4>
551
+ <div class="prose"><p>The YAML, the trace, the app's screen text and the model's replies can all be written by someone else. The rules in the
552
+ repository's <code>CLAUDE.md</code> apply; for this engine:</p>
553
+ <ul>
554
+ <li><strong>No command in the workflow.</strong> <code>app:</code> names a <code>desktop.apps</code> entry: an absolute <code>.exe</code> (a <code>.bat</code> or <code>.cmd</code> would run
555
+ through <code>cmd.exe</code>, which reparses its arguments) and an argument list, started with <code>subprocess.Popen([path, *args])</code>.</li>
556
+ <li><strong>UFO gets UI tools only.</strong> Each explore writes UFO's <code>mcp.yaml</code> with <code>UICollector</code>, <code>HostUIExecutor</code> and
557
+ <code>AppUIExecutor</code>. UFO's default <code>CommandLineExecutor</code>, which runs shell commands, and its Word, Excel, PowerPoint and
558
+ PDF executors are left out. The adapter starts the app, so UFO never launches a program.</li>
559
+ <li><strong>Keys:</strong> during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused.</li>
560
+ <li><strong>No one at the console:</strong> UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there.</li>
561
+ <li><strong>Environment:</strong> the engine process gets system settings, the profile's key variable (or Entra's) and
562
+ <code>desktop.secrets</code>, nothing else (<code>desktopEnvNames</code>).</li>
563
+ <li><strong>Explore controls the real mouse and keyboard.</strong> It asks before starting (<code>--yes</code> to skip; required with no
564
+ terminal). Use a test machine or VM and a test account.</li>
565
+ <li><strong>Agent tools:</strong> a workflow path the agent gives must be a <code>.yaml</code> inside the working folder or the reports folder (real
566
+ path, so a link out is refused); variables are names and text only; heals are reported, never written.</li>
567
+ <li><strong>Healing:</strong> the model picks one of the window's real controls by number; control text is passed as data, and any
568
+ other answer heals nothing. Heals are written into the workflow only when accepted.</li>
569
+ <li><strong>Report:</strong> every value is escaped; images are only the engine's own <code>steps/NNN.png</code> and
570
+ <code>images/NNN-baseline|actual|diff.png</code>.</li>
571
+ <li><strong>Baselines:</strong> <code>expect_image</code> names are file names, and their real path must be inside the workflow's baselines
572
+ folder, so a workflow cannot read or overwrite another file.</li>
573
+ <li><strong>Unattended machines:</strong> <code>prepare-runner.ps1</code> never handles a password; automatic sign-in uses Sysinternals
574
+ Autologon, which stores it encrypted.</li>
575
+ <li><strong>Install:</strong> UFO is cloned and checked out at the pinned commit (or <code>FORGEQE_UFO_COMMIT</code>, a full commit id only),
576
+ and the checkout's <code>HEAD</code> is verified; replay's packages are pinned to exact versions.</li>
577
+ </ul>
578
+ </div>
579
+ </section>
580
+ <section class="doc" id="doc-docs-desktop-before-first-use-on-windows">
581
+ <h4>Before first use on Windows</h4>
582
+ <div class="prose"><p>Verified in CI: setup with and without <code>--ufo</code>, replay, healing, the CLI, and UFO's own code with the adapter (its
583
+ config, its model calls routed to the profile, the action trace, UI tools only). Still to check, on a Windows test
584
+ machine with your apps:</p>
585
+ <ol>
586
+ <li><strong>UIA coverage:</strong> <code>Inspect.exe</code> shows the controls that matter with stable <code>AutomationId</code>s. Custom grids, Java
587
+ (needs Java Access Bridge), Delphi, SAP GUI and Citrix (vision only) are where UIA falls short.</li>
588
+ <li><strong>Explore with your model:</strong> one goal with an Azure profile and one with <code>auth: entra</code>; <code>trace.json</code> has the
589
+ controls' AutomationIds, and <code>ufo/</code> has UFO's logs.</li>
590
+ <li><strong>Replay:</strong> the recorded workflow passes 10 runs out of 10; a renamed control is healed.</li>
591
+ <li><strong>Cost and time</strong> of one explore, from <code>forgeqe</code> usage.</li>
592
+ </ol>
593
+ <p>Found by the Windows runs and fixed: UFO's pins need Python 3.10 (pandas 1.4.3); UFO prints emoji panels to stdout, which
594
+ is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in
595
+ UFO's own evaluation lost the recorded actions (the trace is now kept and saved).</p>
596
+ <p>Found by replaying KeePass 2 on Windows 11 ARM64 (a Parallels VM, runs started from a scheduled task) and fixed: text
597
+ set through UI Automation was shown by the Save dialog but not used, so the database was saved under the default name
598
+ while every step passed (now typed); with the app behind another window, clicks went to that window, <code>dismiss</code>
599
+ reported nothing, and <code>keys</code> went to the main window instead of the dialog (now the app is brought forward, the click
600
+ point and the keyboard are checked, and keys go to the open dialog); a dialog closing while its window was searched
601
+ failed the next step with a COM error (now searched again). On that VM a synthetic double-click did not register;
602
+ check <code>double_click</code> on real hardware. The x64 Python the engine runs in needs the x64 Visual C++ runtime (<code>win32ui</code>).
603
+ On agent-desktop there: npm 11.20 refuses <code>--allow-scripts</code> with <code>--prefix</code> (the install script is now allowed for the
604
+ pinned version in the folder's <code>package.json</code>); the state folder's Windows ACL (Administrators, OWNER RIGHTS) was
605
+ refused by agent-desktop (now this user and SYSTEM only); and a dialog listed as its own window and inside its main
606
+ window's snapshot matched twice (now one control). Still open: a button whose click opens a modal message box times out
607
+ in UI Automation's Invoke, and the step fails without sending it again, so such steps need the pywinauto driver.</p>
608
+ <p>Found by exploring and healing KeePass there with Azure OpenAI gpt-5.4 and fixed: a drop-down menu's items are listed
609
+ twice by UI Automation, so a recorded menu click was &quot;several controls match&quot; and could not replay (now one control
610
+ seen twice, the same runtime id, is that control); a check of the app's main window could never be found, as replay
611
+ searched only inside windows (now a target equal to the window is the window); the heal model, given only the old
612
+ target, replaced a renamed menu item by the menu itself (that step passed and the next one failed), and the heal was
613
+ remembered and offered for the workflow (now the model is told the step and the one before it, and a heal is
614
+ remembered, written or offered only from a replay that passed; a remembered heal used in a failed replay is
615
+ forgotten); and the offer to write heals waited for an answer with no terminal (now never asked without one). Explore
616
+ ran 4 steps for $0.12 when the app opened at its main window.</p>
617
+ <p>Also found there and fixed: an app that opens with a start-up dialog (KeePass's update question) left UFO on that
618
+ dialog's window after it closed, so every later click went to (0, 0) until the step limit ($1.22 for nothing); now a
619
+ closed window UFO chose is replaced by the app's live window (<code>follow_live_window</code>, <code>ufo_runner.py</code>), and the same
620
+ explore passes for $0.18. In recording by hand, the OK that closed a dialog right after typing was lost, since the
621
+ control under the click was looked up after a lookup per typed key (now the click is held while it is looked up, and
622
+ typing is one lookup). A click on a list row's <code>********</code> cell was recorded as that cell alone, which every row has (now
623
+ inside its row). App memory borrowed another goal's whole flow as a &quot;shared start&quot;; that flow ended where it began (a
624
+ dialog opened and closed again), so UFO, seeing the screen it started from, did it all again and the workflow held it
625
+ twice. Now the note lists the replayed steps and says to finish if they do the goal (UFO then made no click, $0.02),
626
+ and steps that exactly repeat the replayed block are kept once. A replay with <code>--no-heal</code>, or with a model whose key
627
+ is not set, stopped at &quot;No model in llms.json can …&quot; (now healing is off for that replay, and it runs).</p>
628
+ </div>
629
+ </section>
630
+ <section class="doc" id="doc-docs-desktop-next-steps">
631
+ <h4>Next steps</h4>
632
+ <div class="prose"><ol>
633
+ <li>The checks above.</li>
634
+ <li><code>forgeqe suite</code> and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.</li>
635
+ <li>Quill: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo.</li>
636
+ <li>App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix.</li>
637
+ <li>A pipeline template for a self-hosted Windows runner signed in to a desktop session.</li>
638
+ </ol>
639
+ </div>
640
+ </section>
641
+ <section class="doc" id="doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">
642
+ <h4>Running desktop workflows unattended (nightly CI)</h4>
643
+ <div class="prose"><p>Desktop replay clicks and types into real windows. It needs what a person at the machine would have: a signed-in
644
+ Windows session, unlocked, with a screen. GitHub's hosted <code>windows-2022</code> runners have that, and ForgeQE's own CI runs
645
+ Notepad there. Your own apps usually need a machine of your own, with the app installed, its test database, and a
646
+ network route to its servers. This page sets one up as a GitHub Actions self-hosted runner. The same rules apply to
647
+ Azure DevOps agents and Jenkins nodes.</p>
648
+ </div>
649
+ </section>
650
+ <section class="doc" id="doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">
651
+ <h4>What breaks a desktop run, and how ForgeQE tells you</h4>
652
+ <div class="prose"><div class="tbl tbl--cols-3"><table>
653
+ <thead>
654
+ <tr><th>Situation</th><th>Effect</th><th>Fix</th></tr>
655
+ </thead>
656
+ <tbody>
657
+ <tr><td data-label="Situation">The runner is a Windows service</td><td data-label="Effect">Session 0 has no desktop; every control lookup times out</td><td data-label="Fix">Run the runner in the user's session (below)</td></tr>
658
+ <tr><td data-label="Situation">The screen is locked</td><td data-label="Effect">Windows sends no input to apps</td><td data-label="Fix">No inactivity lock, no screen-saver lock</td></tr>
659
+ <tr><td data-label="Situation">A Remote Desktop session was disconnected</td><td data-label="Effect">The session is locked</td><td data-label="Fix">Leave Remote Desktop with <code>tscon</code> (below), or don't use it on the test machine</td></tr>
660
+ <tr><td data-label="Situation">The machine slept or the screen turned off</td><td data-label="Effect">Input and screenshots stop</td><td data-label="Fix">Power plan: never sleep, never turn off the screen</td></tr>
661
+ <tr><td data-label="Situation">After a restart nobody signs in</td><td data-label="Effect">No session at all</td><td data-label="Fix">Sysinternals Autologon</td></tr>
662
+ </tbody>
663
+ </table></div>
664
+ <p>Before each replay or explore, the engine checks the session (<code>py/forgeqe_desktop/session.py</code>). On a session it cannot
665
+ drive, the run fails at once with the reason, instead of timing out step by step. <code>forgeqe desktop doctor</code> runs the
666
+ same check from a shell or a job:</p>
667
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">engine ready (C:\Users\qa\.forgeqe\desktop\.venv\Scripts\python.exe)
668
+ </span></span><span class="ln"><span class="cmd">explore not set up (forgeqe desktop setup --ufo)
669
+ </span></span><span class="ln"><span class="cmd">session 1, screen 1920x1080
670
+ </span></span><span class="ln"><span class="cmd">desktop logged in and unlocked
671
+ </span></span></code></pre></div>
672
+ <p>It exits with 1 when the desktop cannot be driven, so a job stops before the suite runs.</p>
673
+ </div>
674
+ </section>
675
+ <section class="doc" id="doc-docs-desktop-ci-set-up-the-test-machine">
676
+ <h4>Set up the test machine</h4>
677
+ <div class="prose"><p>Use a test machine or VM, and a test account: the runner's jobs control its mouse and keyboard.</p>
678
+ <ol>
679
+ <li>
680
+ <p><strong>Sign in</strong> as the account the tests will run as.</p>
681
+ </li>
682
+ <li>
683
+ <p><strong>Install the runner</strong> (GitHub: Settings → Actions → Runners → New self-hosted runner). Give it the label
684
+ <code>forgeqe-desktop</code>. When <code>config.cmd</code> asks whether to run as a service, answer <strong>no</strong>.</p>
685
+ </li>
686
+ <li>
687
+ <p><strong>Run <code>ci/desktop-runner/prepare-runner.ps1</code></strong> in an elevated PowerShell (<code>-WhatIf</code> first to see the changes):</p>
688
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>powershell</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">.\prepare-runner.ps1 -RunnerDir C:\actions-runner -WhatIf
689
+ </span></span><span class="ln"><span class="cmd">.\prepare-runner.ps1 -RunnerDir C:\actions-runner
690
+ </span></span></code></pre></div>
691
+ <p>It stops sleep, screen-off and the screen-saver lock. It turns the inactivity lock off and registers a logon task
692
+ that starts <code>run.cmd</code> in this account's session. It warns you if the runner is also installed as a service. It
693
+ never handles a password.</p>
694
+ </li>
695
+ <li>
696
+ <p><strong>Sign in automatically after a restart</strong> with
697
+ <a href="https://learn.microsoft.com/sysinternals/downloads/autologon" class="ext" rel="noopener">Sysinternals Autologon</a>, run as the test account.
698
+ It stores the password encrypted by Windows. Never put the password in a script, a registry value you write
699
+ yourself, or the repository.</p>
700
+ </li>
701
+ <li>
702
+ <p><strong>Fix the screen size.</strong> A visual check (<code>expect_image</code>) compares pixels, so the resolution and scale (100%, 125%)
703
+ must match the machine where its baselines were saved. Set them once and leave them.</p>
704
+ </li>
705
+ <li>
706
+ <p><strong>Restart</strong> and check that the runner shows as idle on GitHub. Then run <code>forgeqe desktop doctor</code> from a job.</p>
707
+ </li>
708
+ </ol>
709
+ </div>
710
+ <section class="doc sub" id="doc-docs-desktop-ci-leaving-remote-desktop-without-locking-the-session"><h5>Leaving Remote Desktop without locking the session</h5><div class="prose"><p>Closing a Remote Desktop window disconnects the session, and Windows locks it. To leave it running instead, hand the
711
+ session back to the machine's console. In an elevated prompt inside the Remote Desktop session:</p>
712
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bat</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">for /f &quot;skip=1 tokens=3&quot; %s in ('query user %USERNAME%') do tscon %s /dest:console
713
+ </span></span></code></pre></div>
714
+ <p>On a VM, the hypervisor's console (Hyper-V, VMware, VirtualBox) needs no such step.</p>
715
+ </div></section>
716
+ </section>
717
+ <section class="doc" id="doc-docs-desktop-ci-the-nightly-job">
718
+ <h4>The nightly job</h4>
719
+ <div class="prose"><p><code>ci/desktop-runner/desktop-nightly.example.yml</code> is a ready workflow. Copy it into <code>.github/workflows/</code> in the
720
+ repository that holds your desktop workflows. It:</p>
721
+ <ul>
722
+ <li>runs at night on <code>[self-hosted, windows, forgeqe-desktop]</code>, one run at a time;</li>
723
+ <li>installs a pinned ForgeQE and runs <code>forgeqe desktop setup</code> and <code>forgeqe desktop doctor</code>;</li>
724
+ <li>replays every workflow in a folder: <code>forgeqe desktop replay desktop-tests/ --junit results/desktop.xml</code>;</li>
725
+ <li>keeps the reports, screenshots and image diffs as an artifact.</li>
726
+ </ul>
727
+ <p><code>--junit</code> writes one test case per workflow (and per CSV row with <code>--data</code>), which CI servers show as test results.
728
+ <code>runs.json</code> in the output folder has the same, with the path of each report.</p>
729
+ <p>Secrets the workflows type (<code>{{secret:NAME}}</code>) come from the CI's secret store as environment variables, and must be
730
+ listed in <code>desktop.secrets</code> or the environment's <code>secrets</code> in <code>env.yaml</code>. Pick the environment with <code>FORGEQE_ENV</code> or
731
+ <code>--env</code>.</p>
732
+ <p>Healing calls the model. In a nightly run, either give the job the model's key so moved controls are healed and
733
+ reported in <code>heals.json</code> (never written into the workflow without <code>--accept-heals</code>), or pass <code>--no-heal</code> so a moved
734
+ control fails the run.</p>
735
+ </div>
736
+ </section>
737
+ </div>
738
+ </article>
739
+
740
+ <nav class="pager" aria-label="Previous and next">
741
+ <a class="prev" href="../area-quality/index.html"><small>Previous</small><span>Quality checks</span></a>
742
+ <a class="next" href="../area-mobile/index.html"><small>Next</small><span>Mobile apps</span></a>
743
+ </nav>
744
+ </main>
745
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-desktop-apps">Automate Windows desktop apps</a></li><li><a href="#doc-how_to_use-desktop-apps-windows">Desktop apps (Windows)</a></li><li><a href="#doc-docs-desktop-forgeqe-desktop-thick-client-automation">ForgeQE desktop: thick-client automation</a></li><li><a href="#doc-docs-desktop-use">Use</a></li><li><a href="#doc-docs-desktop-how-a-run-flows">How a run flows</a></li><li><a href="#doc-docs-desktop-replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop (macOS, Linux, and headless Windows)</a></li><li><a href="#doc-docs-desktop-one-model-config-llmsjson--ufo">One model config: llms.json → UFO</a></li><li><a href="#doc-docs-desktop-workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#doc-docs-desktop-recording-by-hand">Recording by hand</a></li><li><a href="#doc-docs-desktop-reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#doc-docs-desktop-fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#doc-docs-desktop-waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#doc-docs-desktop-visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#doc-docs-desktop-unattended-runs">Unattended runs</a></li><li><a href="#doc-docs-desktop-updating-ufo²">Updating UFO²</a></li><li><a href="#doc-docs-desktop-checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#doc-docs-desktop-recording">Recording</a></li><li><a href="#doc-docs-desktop-security">Security</a></li><li><a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#doc-docs-desktop-next-steps">Next steps</a></li><li><a href="#doc-docs-desktop-ci-running-desktop-workflows-unattended-nightly-ci">Running desktop workflows unattended (nightly CI)</a></li><li><a href="#doc-docs-desktop-ci-what-breaks-a-desktop-run-and-how-forgeqe-tells-you">What breaks a desktop run, and how ForgeQE tells you</a></li><li><a href="#doc-docs-desktop-ci-set-up-the-test-machine">Set up the test machine</a></li><li><a href="#doc-docs-desktop-ci-the-nightly-job">The nightly job</a></li></ul></aside>
746
+ </div>
747
+ <footer class="foot">
748
+ <div class="container foot__row">
749
+ <a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
750
+ <nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
751
+ </div>
752
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
753
+ </footer>
754
+ </body>
755
+ </html>