@capagents/forgeqe 3.1.2 → 3.1.3

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 (170) hide show
  1. package/HOW_TO_USE.md +5003 -2077
  2. package/README.md +155 -449
  3. package/dist/docs-site/docs/app-theme.css +30 -9
  4. package/dist/docs-site/docs/architecture/index.html +45 -515
  5. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  6. package/dist/docs-site/docs/area-api/index.html +257 -116
  7. package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
  8. package/dist/docs-site/docs/area-browser/index.html +167 -125
  9. package/dist/docs-site/docs/area-data/index.html +178 -188
  10. package/dist/docs-site/docs/area-desktop/index.html +329 -282
  11. package/dist/docs-site/docs/area-mobile/index.html +138 -86
  12. package/dist/docs-site/docs/area-operations/index.html +567 -393
  13. package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
  14. package/dist/docs-site/docs/area-quality/index.html +111 -49
  15. package/dist/docs-site/docs/area-release/index.html +180 -65
  16. package/dist/docs-site/docs/area-setup/index.html +742 -339
  17. package/dist/docs-site/docs/area-systems/index.html +32 -48
  18. package/dist/docs-site/docs/area-test-cases/index.html +387 -154
  19. package/dist/docs-site/docs/containers/index.html +87 -101
  20. package/dist/docs-site/docs/cost-architecture/index.html +4 -3
  21. package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
  22. package/dist/docs-site/docs/desktop/index.html +277 -297
  23. package/dist/docs-site/docs/desktop-ci/index.html +15 -5
  24. package/dist/docs-site/docs/docs-tabs.js +56 -0
  25. package/dist/docs-site/docs/evidence/index.html +50 -49
  26. package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
  27. package/dist/docs-site/docs/get-started/index.html +464 -168
  28. package/dist/docs-site/docs/graphify/index.html +8 -7
  29. package/dist/docs-site/docs/guardrails/index.html +20 -4
  30. package/dist/docs-site/docs/index.html +4 -3
  31. package/dist/docs-site/docs/mobile/index.html +96 -76
  32. package/dist/docs-site/docs/model-routing/index.html +44 -18
  33. package/dist/docs-site/docs/overview/index.html +23 -7
  34. package/dist/docs-site/docs/product-graph/index.html +13 -12
  35. package/dist/docs-site/docs/product-knowledge/index.html +16 -5
  36. package/dist/docs-site/docs/product-views/index.html +7 -6
  37. package/dist/docs-site/docs/reference/index.html +95 -65
  38. package/dist/docs-site/docs/search.js +1 -1
  39. package/dist/docs-site/docs/using/index.html +444 -126
  40. package/dist/docs-site/docs/web-app/index.html +54 -51
  41. package/dist/forgeqe.js +1822 -1822
  42. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  43. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  44. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  45. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  46. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  47. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  48. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  49. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  50. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  51. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  52. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  53. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  54. package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
  55. package/dist/web/assets/Features-haQchkhA.js +1 -0
  56. package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
  57. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  58. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  59. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  60. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  61. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  62. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  63. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  64. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  65. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  66. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  67. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  68. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  69. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  70. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  71. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  72. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  73. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  74. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  75. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  76. package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
  77. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  78. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  79. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  80. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  81. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  82. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  83. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  84. package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
  85. package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
  86. package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
  87. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  88. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  89. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  90. package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
  91. package/dist/web/assets/index-ClFOh63x.css +2 -0
  92. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  93. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  94. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  95. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  96. package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
  97. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  98. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  99. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  100. package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
  101. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  102. package/dist/web/index.html +6 -7
  103. package/docs/ARCHITECTURE.md +50 -563
  104. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  105. package/docs/CONTAINERS.md +87 -87
  106. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  107. package/docs/DESKTOP-CI.md +18 -3
  108. package/docs/DESKTOP.md +298 -297
  109. package/docs/MOBILE.md +103 -71
  110. package/docs/MODEL_ROUTING.md +48 -15
  111. package/docs/WEB_APP.md +49 -44
  112. package/docs/feature-test-prompts.md +29 -16
  113. package/docs/user-guide.html +5263 -2453
  114. package/guardrails/README.md +22 -2
  115. package/knowledge/README.md +15 -2
  116. package/package.json +1 -1
  117. package/prompts/brain.md +1 -0
  118. package/py/forgeqe_engine/recordsession.py +100 -24
  119. package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
  120. package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
  121. package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
  122. package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
  123. package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
  124. package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
  125. package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
  126. package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
  127. package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
  128. package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
  129. package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
  130. package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
  131. package/dist/web/assets/Features-CQzNo_WP.js +0 -1
  132. package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
  133. package/dist/web/assets/Impact-CfccsL_k.js +0 -3
  134. package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
  135. package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
  136. package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
  137. package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
  138. package/dist/web/assets/Product-nYV_scOV.js +0 -7
  139. package/dist/web/assets/Production-CGSbEWVa.js +0 -1
  140. package/dist/web/assets/Quality-BIypojZm.js +0 -1
  141. package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
  142. package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
  143. package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
  144. package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
  145. package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
  146. package/dist/web/assets/Response-mhBThq2b.js +0 -9
  147. package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
  148. package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
  149. package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
  150. package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
  151. package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
  152. package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
  153. package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
  154. package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
  155. package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
  156. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
  157. package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
  158. package/dist/web/assets/filters-CnAMr286.js +0 -1
  159. package/dist/web/assets/fold-D_O_VZui.js +0 -1
  160. package/dist/web/assets/head-CRo48rPt.js +0 -1
  161. package/dist/web/assets/index-B3JsM7tv.js +0 -64
  162. package/dist/web/assets/index-CafApcbZ.css +0 -2
  163. package/dist/web/assets/input-CtzK50ZF.js +0 -1
  164. package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
  165. package/dist/web/assets/logos-D4oVWzqa.js +0 -1
  166. package/dist/web/assets/palette-DAaGSao7.js +0 -1
  167. package/dist/web/assets/parts-D357Wolo.js +0 -1
  168. package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
  169. package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
  170. package/dist/web/assets/route-BloYJWgw.js +0 -1
@@ -4,13 +4,14 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
6
  <title>Desktop apps · ForgeQE docs</title>
7
- <meta name="description" content="Status:">
7
+ <meta name="description" content="ForgeQE tests web apps in Chrome.">
8
8
  <meta name="theme-color" content="#ffffff">
9
9
  <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/desktop/">
10
10
  <link rel="icon" type="image/png" href="../../img/favicon.png">
11
11
  <link rel="stylesheet" href="../docs.css">
12
12
  <script src="../search.js" defer></script>
13
13
  <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
14
15
  <link rel="stylesheet" href="../../app-look.css">
15
16
  <link rel="stylesheet" href="../app-theme.css">
16
17
  </head>
@@ -112,42 +113,63 @@
112
113
  <div class="container docs-layout">
113
114
  <nav class="docs-side" aria-label="Docs">
114
115
  <a class="side-home" href="../index.html"><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="../area-desktop/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
+ <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="../area-desktop/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></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>How ForgeQE works</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="../architecture-reference/index.html"><span>Architecture reference</span></a></li><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="../graphify/index.html"><span>Reading product code</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
117
  </nav>
117
118
  <main id="main" class="docs-main">
118
119
  <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="../area-desktop/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></div>
120
+ <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="../area-desktop/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></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>How ForgeQE works</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="../architecture-reference/index.html"><span>Architecture reference</span></a></li><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="../graphify/index.html"><span>Reading product code</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></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-desktop"/></svg>Desktop apps</h1>
121
122
  <article class="prose">
122
- <p>Status: runs on Windows. The live tests there install the engine and the pinned UFO², replay Notepad with the
123
- pywinauto driver and through <code>forgeqe desktop replay</code>, heal a moved control from the live window, and run a whole
124
- explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the
125
- control's AutomationId, and the recording replays. Not yet run: explore with a real model, and your own apps. See
123
+ <p>ForgeQE tests web apps in Chrome. It tests desktop thick clients the same way: Win32, WinForms, WPF, and the native parts
124
+ of Electron and WebView2 apps. Say what you want in plain language, ForgeQE's agent does it in the live app, and the run
125
+ is saved as a YAML workflow that replays later with no model.</p>
126
+ <div class="tbl tbl--cols-4"><table>
127
+ <thead>
128
+ <tr><th>Task</th><th>Windows</th><th>macOS</th><th>Linux</th></tr>
129
+ </thead>
130
+ <tbody>
131
+ <tr><td data-label="Task">Explore a goal with the agent</td><td data-label="Windows">yes</td><td data-label="macOS">no</td><td data-label="Linux">no</td></tr>
132
+ <tr><td data-label="Task">Record your own steps</td><td data-label="Windows">yes</td><td data-label="macOS">no</td><td data-label="Linux">no</td></tr>
133
+ <tr><td data-label="Task">Replay a workflow</td><td data-label="Windows">yes (also headless)</td><td data-label="macOS">yes, macOS 13+</td><td data-label="Linux">yes, Ubuntu 24.04+ (X11 or Wayland)</td></tr>
134
+ <tr><td data-label="Task">Check a workflow without running it</td><td data-label="Windows">yes</td><td data-label="macOS">yes</td><td data-label="Linux">yes</td></tr>
135
+ </tbody>
136
+ </table></div>
137
+ <p>Status: the Windows runs are tested end to end (setup, replay, healing a moved control, and a whole explore with a
138
+ scripted model). Not yet run by the ForgeQE team: explore with a real model, and your own apps. See
126
139
  <a href="#before-first-use-on-windows">Before first use on Windows</a>.</p>
127
- <p>ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms,
128
- WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live
129
- app, and the run is saved as a YAML workflow that replays later without a model.</p>
130
- <p>Workflows also replay on <strong>macOS and Linux</strong>, and headless on Windows, on Vercel Labs' agent-desktop. See
131
- <a href="#replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop</a>. Exploring and recording by hand
132
- still need Windows.</p>
133
140
  <h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
134
- <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²
135
- </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
136
- </span></span><span class="ln"><span class="cmd">forgeqe desktop explore &quot;Create an invoice for Contoso, net 30&quot; --app billing
137
- </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
138
- </span></span><span class="ln"><span class="cmd">forgeqe desktop replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam
139
- </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
140
- </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
141
- </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
142
- </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?
143
- </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
141
+ <p><strong>Setting up.</strong> Once per computer, ForgeQE downloads and sets up what desktop testing needs. On Windows, include the
142
+ part for exploring a goal. Off Windows, setup always includes the replay part for macOS and Linux.</p>
143
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
144
+ <ol>
145
+ <li>Open <strong>Desktop apps</strong> and the <strong>Machine and apps</strong> tab.</li>
146
+ <li>Press <strong>Set up</strong>.</li>
147
+ <li>On Windows, turn on the switch for exploring a goal if you will explore. Turn on <strong>Set it up again from scratch</strong> to
148
+ start over.</li>
149
+ <li>Press <strong>Set up</strong>.</li>
150
+ </ol>
151
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
152
+ <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> on Windows: replay, recording, and exploring a goal
153
+ </span></span><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: replay for macOS and Linux
154
+ </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 also replay headless (no mouse)
155
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop setup --force</span><span class="pad"> </span><span class="cm"><span class="h">#</span> set it up again from scratch
144
156
  </span></span></code></pre></div>
145
- <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;,
146
- 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>,
147
- <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
148
- changes a workflow. Where it cannot ask (an MCP client), the call answers <code>needs_confirmation</code> until the user agrees.</p>
149
- <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
150
- <code>desktop.apps</code> in <code>forgeqe.yaml</code>, which works without environments:</p>
157
+ </div></div><p><strong>Adding an app.</strong> Desktop apps come from the active environment in <code>env.yaml</code> (see HOW_TO_USE.md, &quot;Environments and
158
+ apps&quot;), or from <code>desktop.apps</code> in <code>forgeqe.yaml</code>, which works without environments. A workflow names an app only by its
159
+ name, never by a path or a command.</p>
160
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
161
+ <ol>
162
+ <li>Open <strong>Desktop apps</strong> and the <strong>Machine and apps</strong> tab.</li>
163
+ <li>Press <strong>Add an app</strong>.</li>
164
+ <li>Fill in <strong>Program</strong> (type its path, or press <strong>Browse…</strong>), <strong>Arguments</strong> (optional), <strong>Name</strong>, and <strong>What it is for</strong>
165
+ (optional: one line the agent reads to pick the app).</li>
166
+ <li>Press <strong>Add the app</strong>.</li>
167
+ </ol>
168
+ <p>Each app in the list has <strong>Change</strong> and <strong>Remove</strong> buttons. You can also add apps in <strong>Settings › Environments</strong>.</p>
169
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
170
+ <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 apps</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the apps and secrets of the active environment and desktop:
171
+ </span></span></code></pre></div>
172
+ <p>Edit <code>forgeqe.yaml</code> (or <code>env.yaml</code>) to add one:</p>
151
173
  <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:
152
174
  </span></span><span class="ln"><span class="cmd"> apps:
153
175
  </span></span><span class="ln"><span class="cmd"> billing:
@@ -158,114 +180,143 @@ changes a workflow. Where it cannot ask (an MCP client), the call answers <code>
158
180
  </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)
159
181
  </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)
160
182
  </span></span></code></pre></div>
161
- <p>Each run writes a folder under the reports folder (<code>desktop-explore-…</code> or <code>desktop-replay-…</code>): <code>run.json</code>,
162
- <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
163
- whose steps were healed also writes <code>heals.json</code> and asks whether to write the new locators into the workflow
164
- (<code>--accept-heals</code> writes them without asking; with no terminal they are never written).</p>
165
- <h2 id="decisions"><a href="#decisions" class="hash">#</a>Decisions</h2>
166
- <div class="tbl tbl--cols-3"><table>
167
- <thead>
168
- <tr><th>Question</th><th>Decision</th><th>Why</th></tr>
169
- </thead>
170
- <tbody>
171
- <tr><td data-label="Question">Agent that explores an app</td><td data-label="Decision">Microsoft UFO² (<code>microsoft/UFO</code>, MIT), pinned to commit <code>eae3c0a8d168</code> and never edited, behind one adapter (<code>ufo_runner.py</code>)</td><td data-label="Why">It already solves UI Automation (UIA) control detection, merging it with vision, and the per-app agent loop. Behind the adapter it can be swapped for our own engine without touching the CLI, the YAML or replay.</td></tr>
172
- <tr><td data-label="Question">Saved scripts</td><td data-label="Decision">ForgeQE's own YAML (<code>forgeqe-desktop-v1</code>), replayed on pywinauto (UIA backend)</td><td data-label="Why">UFO calls a model at every step. Replay must be fast, free, repeatable and fit for CI, so no model runs unless a step needs healing.</td></tr>
173
- <tr><td data-label="Question">Models</td><td data-label="Decision"><code>llms.json</code>, the same profiles as the browser engine. UFO never gets its own model config</td><td data-label="Why">One place to configure models, keys and Microsoft Entra ID.</td></tr>
174
- <tr><td data-label="Question">Python environment</td><td data-label="Decision">Its own (<code>~/.forgeqe/desktop/.venv</code>, Python 3.10), not the browser engine's</td><td data-label="Why">UFO pins <code>openai==1.66.2</code> and <code>pydantic</code>, which the browser engine's library does not run with, and <code>pandas==1.4.3</code>, which has Windows wheels up to Python 3.10. Replay's packages use UFO's pins, so one environment runs both.</td></tr>
175
- <tr><td data-label="Question">Replay off Windows, and headless</td><td data-label="Decision">Vercel Labs' agent-desktop (Apache-2.0), pinned to 1.2.0, as a second replay driver (<code>desktop.driver</code>) behind the same workflow, heal and memory</td><td data-label="Why">It reads the OS accessibility tree on macOS, Windows and Linux, acts without the mouse, and re-identifies every element before it acts, refusing a stale or ambiguous one. It has no model and no tests of its own, so ForgeQE keeps the workflow, the locator, healing and the reports.</td></tr>
176
- <tr><td data-label="Question">Not chosen: <code>windowsagent</code></td><td data-label="Decision">Reference only</td><td data-label="Why">Very early (v0.1.0), replay not built, and it exposes a model-driven <code>/shell</code> endpoint.</td></tr>
177
- </tbody>
178
- </table></div>
179
- <h2 id="how-a-run-flows"><a href="#how-a-run-flows" class="hash">#</a>How a run flows</h2>
180
- <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
181
- </span></span><span class="ln"><span class="cmd"> │ start the app from desktop.apps (no shell)
182
- </span></span><span class="ln"><span class="cmd"> │ UFO² in-process: model = llms.json profile,
183
- </span></span><span class="ln"><span class="cmd"> │ UI tools only, every action traced with its
184
- </span></span><span class="ln"><span class="cmd"> ▼ control's UIA properties
185
- </span></span><span class="ln"><span class="cmd"> record.py ──► workflow.yaml
186
- </span></span><span class="ln"><span class="cmd">forgeqe desktop replay ───► bridge ──► serve (replay.py on pywinauto, no model)
187
- </span></span><span class="ln"><span class="cmd"> │ a control is not found
188
- </span></span><span class="ln"><span class="cmd"> ▼
189
- </span></span><span class="ln"><span class="cmd"> heal.py: the model picks one of the window's real controls, by number
190
- </span></span><span class="ln"><span class="cmd"> ▼
191
- </span></span><span class="ln"><span class="cmd"> proposed locator → heals.json, written into the workflow only when accepted
183
+ <p>An app is an absolute <code>.exe</code> on Windows, an <code>.app</code> bundle on macOS (<code>/Applications/Notes.app</code>), or an executable on
184
+ Linux (<code>/usr/bin/gnome-calculator</code>, with <code>kind: desktop</code>).</p>
185
+ </div></div><p><strong>Exploring a goal.</strong> ForgeQE's agent does the goal in the app with the real mouse and keyboard, and saves the run as a
186
+ workflow with checks of the outcome. Windows only. Use a test machine or VM and a test account.</p>
187
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
188
+ <ol>
189
+ <li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
190
+ <li>Press <strong>Explore a goal</strong>.</li>
191
+ <li>Pick the <strong>App</strong>, type the <strong>Goal</strong> (one line, as you would ask a tester) and, optionally, a <strong>Name</strong>.</li>
192
+ <li>Press <strong>Start exploring</strong>.</li>
193
+ </ol>
194
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
195
+ <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 explore &quot;Create an invoice for Contoso, net 30&quot; --app billing
196
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop explore &quot;…&quot; --app billing --name &quot;Create an invoice&quot; --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> --yes: start without asking
192
197
  </span></span></code></pre></div>
193
- <h2 id="replay-on-agent-desktop-macos-linux-and-headless-windows"><a href="#replay-on-agent-desktop-macos-linux-and-headless-windows" class="hash">#</a>Replay on agent-desktop (macOS, Linux, and headless Windows)</h2>
194
- <p><code>desktop.driver</code> picks what a workflow replays on:</p>
198
+ </div></div><p><strong>Recording your own steps.</strong> When you know the steps, do them yourself: no model is used, so it costs nothing and does
199
+ exactly what you did. Windows only. See <a href="#recording-by-hand">Recording by hand</a>.</p>
200
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
201
+ <ol>
202
+ <li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
203
+ <li>Pick the app (when there are several) and press <strong>Record by hand</strong>.</li>
204
+ </ol>
205
+ <p>Or open <strong>Record</strong>, pick <strong>Desktop app</strong>, pick the app and press <strong>Record</strong>. Press <strong>Stop</strong> when done.</p>
206
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
207
+ <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;
208
+ </span></span></code></pre></div>
209
+ </div></div><p><strong>Replaying a workflow.</strong> Replay runs the steps with no model and checks its <code>expect</code> steps. On Windows it takes over the
210
+ mouse and keyboard while it runs.</p>
211
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
212
+ <ol>
213
+ <li>Open <strong>Desktop apps</strong> and the <strong>Workflows</strong> tab.</li>
214
+ <li>Press the replay button on the workflow's row.</li>
215
+ <li>Fill in its <strong>Values</strong>, or pick <strong>Rows</strong> under <strong>Test data</strong> to replay once per row of a data file or kept request.</li>
216
+ <li>Under <strong>While it runs</strong>, choose <strong>Heal a step whose control moved</strong> and <strong>Take new image baselines</strong>.</li>
217
+ <li>Press <strong>Replay</strong>.</li>
218
+ </ol>
219
+ <p>The <strong>Runs</strong> tab lists each run with its <strong>Report</strong>. Its <strong>Failed</strong> filter shows failed runs, and a button on each asks
220
+ the agent why it failed.</p>
221
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
222
+ <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 replay .forgeqe/reports/desktop-explore-…/workflow.yaml customer=Fabrikam
223
+ </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
224
+ </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
225
+ </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
226
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe desktop replay workflow.yaml --no-heal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> do not heal a moved control
227
+ </span></span></code></pre></div>
228
+ <p><code>--data</code> takes a <code>.csv</code>, <code>.xlsx</code> or <code>.json</code> file; <code>--each-query q.sql --each-db NAME</code> takes the rows from a database
229
+ read instead.</p>
230
+ </div></div><p><strong>Accepting heals.</strong> When a control moved and replay found it again, the replay asks whether to write the new locator
231
+ into the workflow. Heals are offered only from a replay that passed.</p>
232
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
233
+ <ol>
234
+ <li>Open <strong>Desktop apps</strong> and the <strong>Runs</strong> tab (the <strong>Heals to accept</strong> filter lists them).</li>
235
+ <li>Press <strong>Accept</strong> on the run.</li>
236
+ </ol>
237
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
238
+ <p>At the end of the replay, answer the question. <code>--accept-heals</code> writes them without asking. With no terminal they are
239
+ never written.</p>
240
+ </div></div><p><strong>Checking a workflow or a machine.</strong> A workflow can be checked without running it, on any system. The machine check
241
+ says whether replay can run here unattended.</p>
242
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
243
+ <ol>
244
+ <li>To check a workflow: on the <strong>Workflows</strong> tab, press the check button on its row.</li>
245
+ <li>To check the machine: on the <strong>Machine and apps</strong> tab, press <strong>Check</strong>.</li>
246
+ </ol>
247
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
248
+ <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 validate workflow.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> any system
249
+ </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?
250
+ </span></span></code></pre></div>
251
+ </div></div><p><strong>Asking the agent.</strong> In a chat (the web app's <strong>New chat</strong>, <code>forgeqe start</code> or <code>forgeqe run</code>), ask: &quot;create an invoice
252
+ for Contoso in Billing and save it as a test&quot;, or &quot;I'll show you the steps in Billing, record them&quot;. The agent asks
253
+ before it starts the app or takes over the desktop, and before it changes a workflow. Where it cannot ask (an MCP
254
+ client), the call answers <code>needs_confirmation</code> until you agree.</p>
255
+ <p><strong>What a run keeps.</strong> Each run writes a folder under the reports folder (<code>desktop-explore-…</code> or <code>desktop-replay-…</code>):
256
+ <code>run.json</code>, <code>report.html</code>, <code>steps/NNN.png</code>, and for an explore <code>workflow.yaml</code> and <code>trace.json</code>. A replay whose steps
257
+ were healed also writes <code>heals.json</code>.</p>
258
+ <h2 id="how-a-run-flows"><a href="#how-a-run-flows" class="hash">#</a>How a run flows</h2>
259
+ <ol>
260
+ <li><strong>Explore:</strong> ForgeQE starts the app from its entry in your settings (never through a shell). The agent does the goal
261
+ with the app's controls only, and every action is kept with the control's properties. The result is <code>workflow.yaml</code>.</li>
262
+ <li><strong>Replay:</strong> ForgeQE plays the workflow's steps with no model.</li>
263
+ <li><strong>Healing:</strong> when a step's control is not found, one model call picks one of the window's real controls, by number.
264
+ The proposed locator goes to <code>heals.json</code> and is written into the workflow only when you accept it.</li>
265
+ </ol>
266
+ <h2 id="replay-on-macos-linux-and-headless-windows"><a href="#replay-on-macos-linux-and-headless-windows" class="hash">#</a>Replay on macOS, Linux, and headless Windows</h2>
267
+ <p><code>desktop.driver</code> sets how a workflow replays. In the web app it is <strong>Replay on</strong>, in <strong>Settings › Desktop</strong>.</p>
195
268
  <div class="tbl tbl--cols-3"><table>
196
269
  <thead>
197
- <tr><th><code>desktop.driver</code></th><th>Replays on</th><th>Where</th></tr>
270
+ <tr><th><code>desktop.driver</code></th><th>How it replays</th><th>Where</th></tr>
198
271
  </thead>
199
272
  <tbody>
200
- <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>
201
- <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>
202
- <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>
273
+ <tr><td data-label="desktop.driver"><code>auto</code> (default)</td><td data-label="How it replays">the mouse and keyboard on Windows, accessibility calls elsewhere</td><td data-label="Where">any</td></tr>
274
+ <tr><td data-label="desktop.driver"><code>pywinauto</code></td><td data-label="How it replays">the mouse and keyboard, like a person</td><td data-label="Where">Windows</td></tr>
275
+ <tr><td data-label="desktop.driver"><code>agent-desktop</code></td><td data-label="How it replays">accessibility calls, with no mouse and no focus</td><td data-label="Where">macOS 13+, Windows 10 1809+, Ubuntu 24.04+ (X11 or Wayland)</td></tr>
203
276
  </tbody>
204
277
  </table></div>
205
- <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
206
- </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
207
- </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
208
- </span></span><span class="ln"><span class="cmd">forgeqe desktop replay workflow.yaml
209
- </span></span></code></pre></div>
210
- <p>The workflow, its variables, secrets, checks, healing, app memory, reports and <code>--junit</code> are the same on either driver.
211
- A workflow recorded on Windows replays on agent-desktop as it is: its <code>control_type</code> (UI Automation's) is matched to the
212
- 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
213
- developer id (AutomationId, AXIdentifier, or the DOM id). A workflow written for macOS or Linux can name agent-desktop's
214
- roles (<code>textfield</code>, <code>checkbox</code>) as its <code>control_type</code>.</p>
215
- <p>How a step runs: ForgeQE's locator finds the control in a fresh snapshot of the launched app's own windows, and refuses
216
- when several match. agent-desktop then acts on that snapshot's ref, and re-identifies it against the live window first:
217
- an element that changed in between is refused, never guessed. A ref refused with nothing delivered is found again once.
218
- An action that may have landed (a click whose result agent-desktop could not confirm) is never sent again, so a replay
219
- never submits twice.</p>
278
+ <p>In <strong>Settings › Desktop</strong> › <strong>Replay on</strong> the same choices read <strong>Automatic</strong>, <strong>The mouse and keyboard</strong> and
279
+ <strong>Accessibility calls, no mouse</strong>.</p>
280
+ <p>Set up and check the machine as in <a href="#use">Use</a> (<code>forgeqe desktop setup</code>, then <code>forgeqe desktop doctor</code>, or <strong>Set up</strong>
281
+ and <strong>Check</strong> in the web app). Off Windows, the check also shows the platform and its permissions.</p>
282
+ <p>The workflow, its variables, secrets, checks, healing, app memory, reports and <code>--junit</code> are the same either way. A
283
+ workflow recorded on Windows replays with accessibility calls as it is: its <code>control_type</code> is matched to the roles the
284
+ system gives that control (a <code>Button</code> with a toggle is a <code>switch</code>), and <code>automation_id</code> to the control's developer id
285
+ (AutomationId, AXIdentifier, or the DOM id). A workflow written for macOS or Linux can name those roles (<code>textfield</code>,
286
+ <code>checkbox</code>) as its <code>control_type</code>.</p>
287
+ <p>How a step runs with accessibility calls: the locator finds the control in a fresh snapshot of the app's own windows,
288
+ and refuses when several match. The control is checked again against the live window before the action: one that
289
+ changed in between is refused, never guessed. An action that may have landed (a click whose result could not be
290
+ confirmed) is never sent again, so a replay never submits twice.</p>
220
291
  <p>What it does not do:</p>
221
292
  <ul>
222
- <li><code>double_click</code> moves the mouse: it replays only with <code>desktop.headed: true</code>.</li>
223
- <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
224
- <code>ctrl+s</code>; on macOS write <code>cmd+s</code> instead.</li>
225
- <li>Identical controls (two buttons named OK in one window) have no ref on Windows and Linux. Give the step a control
226
- that is unique in its window.</li>
227
- <li>On macOS, grant Accessibility to the app that runs forgeqe (Terminal, iTerm2, VS Code): <code>forgeqe desktop doctor</code>
228
- shows the state. On Linux, Chromium and Qt apps need their accessibility switched on to be seen (agent-desktop's
229
- Linux guide).</li>
230
- </ul>
231
- <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>;
232
- its <code>CFBundleExecutable</code> is started, and only when it is a file inside the bundle), or an executable on Linux
233
- (<code>/usr/bin/gnome-calculator</code>, with <code>kind: desktop</code>).</p>
234
- <p>What reaches agent-desktop (<code>py/forgeqe_desktop/agentdesktop_driver.py</code>):</p>
235
- <ul>
236
- <li>Only its own native executable, set up by ForgeQE at exactly 1.2.0 from npm (whose install step checks the release's
237
- SHA-256), started with an argument array: never its Node launcher, never a shell. The driver checks the version and
238
- refuses another.</li>
239
- <li>Its environment is system settings only: no model key, no <code>desktop.secrets</code>, no ForgeQE variable.</li>
240
- <li>Typed text, secrets included, goes on stdin (<code>set-value --stdin</code>), never in the command line other programs can see.</li>
241
- <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>
242
- <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>
243
- <li>Its replies are read as untrusted: anything but its JSON envelope, or over 64 MB, is refused, and its error text is
244
- cut to one plain line before it reaches a report or the heal prompt.</li>
245
- </ul>
246
- <h2 id="one-model-config-llmsjson--ufo"><a href="#one-model-config-llmsjson--ufo" class="hash">#</a>One model config: <code>llms.json</code> → UFO</h2>
247
- <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
248
- through (<code>ufo/llm/llm_call.py</code>). The adapter adds the type <code>forgeqe</code>:</p>
249
- <ul>
250
- <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,
251
- 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>
252
- <li><code>ufo_bridge.install</code> makes <code>get_service(&quot;forgeqe&quot;, …)</code> return <code>ForgeQEService</code>, which calls the profile through the
253
- <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>
254
- through its OpenAI-compatible <code>/v1</code>. Keys, Azure endpoints and Entra use the browser engine's own helpers
255
- (<code>forgeqe_engine.llm</code>), so a profile means the same thing in both. Keys stay in environment variables.</li>
256
- <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>
293
+ <li><code>double_click</code> moves the mouse: it replays only with <code>desktop.headed: true</code> (<strong>Let replay use the mouse and
294
+ keyboard</strong> in <strong>Settings › Desktop</strong>).</li>
295
+ <li><code>keys</code> are real key presses sent to the app's window. A workflow recorded on Windows says <code>ctrl+s</code>; on macOS write
296
+ <code>cmd+s</code> instead.</li>
297
+ <li>Identical controls (two buttons named OK in one window) cannot be told apart on Windows and Linux. Give the step a
298
+ control that is unique in its window.</li>
299
+ <li>On macOS, grant Accessibility (System Settings › Privacy &amp; Security › Accessibility) to the app that runs forgeqe
300
+ (Terminal, iTerm2, VS Code). <code>forgeqe desktop doctor</code> shows the state. On Linux, Chromium and Qt apps need their
301
+ accessibility switched on to be seen.</li>
257
302
  </ul>
303
+ <p>What ForgeQE keeps safe: typed text, secrets included, never appears on a command line other programs can see; no
304
+ model key or secret reaches the replay's helper; the app's text from each run is kept in a private folder that is
305
+ removed when the run ends.</p>
306
+ <h2 id="the-model-explore-and-healing-use"><a href="#the-model-explore-and-healing-use" class="hash">#</a>The model explore and healing use</h2>
307
+ <p>Explore and healing use the same model profiles as the browser agent, from <code>llms.json</code> (Settings › Models): Azure
308
+ OpenAI (key or Microsoft Entra ID), OpenAI, an OpenAI-compatible server, or Ollama. There is no separate model setting
309
+ for desktop. Keys stay in environment variables. Each call's time and tokens are counted in ForgeQE's usage (counts
310
+ only, never the prompt).</p>
258
311
  <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
259
312
  it, <code>ollama</code> profiles are refused and others accepted. Healing sends a screenshot only to a profile that takes images.</p>
260
- <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
261
- <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
262
- call, and when the API refuses a parameter (<code>max_tokens</code>, <code>temperature</code>, <code>frequency_penalty</code>, <code>response_format</code>, …) the
263
- call is sent again without it, and later calls to that model leave it out (<code>py/forgeqe_engine/model_params.py</code>). The
264
- browser agent does the same.</p>
313
+ <p>Request parameters suit the model by themselves: a reasoning model (o1, o3, o4, gpt-5, by the profile's <code>model</code> or
314
+ <code>deployment</code> name, or <code>&quot;reasoning&quot;: true</code> on the profile) gets no temperature from the first call, and when the API
315
+ refuses a parameter the call is sent again without it, and later calls to that model leave it out.</p>
265
316
  <h2 id="workflow-yaml-forgeqe-desktop-v1"><a href="#workflow-yaml-forgeqe-desktop-v1" class="hash">#</a>Workflow YAML (<code>forgeqe-desktop-v1</code>)</h2>
266
317
  <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
267
318
  </span></span><span class="ln"><span class="cmd">name: Create an invoice
268
- </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
319
+ </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 desktop.apps, never a path or a command
269
320
  </span></span><span class="ln"><span class="cmd">variables:
270
321
  </span></span><span class="ln"><span class="cmd"> customer: Contoso
271
322
  </span></span><span class="ln"><span class="cmd">steps:
@@ -291,35 +342,34 @@ browser agent does the same.</p>
291
342
  <ul>
292
343
  <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
293
344
  60 s), <code>wait_for</code>, <code>close</code>.</li>
294
- <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>,
295
- <code>index</code> (when several match), and <code>path</code> (the ancestors' <code>control_type</code> and <code>name</code>). A target needs an
345
+ <li><strong>Locators</strong> use the control's properties, never screen coordinates: <code>automation_id</code>, <code>name</code>, <code>control_type</code>,
346
+ <code>class_name</code>, <code>index</code> (when several match), and <code>path</code> (the ancestors' <code>control_type</code> and <code>name</code>). A target needs an
296
347
  <code>automation_id</code> or a <code>name</code>. Replay looks in the launched app's own windows only.</li>
297
348
  <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
298
349
  the environment, only for names in <code>desktop.secrets</code>. A secret ForgeQE itself uses (a model key, a tracker token) is
299
- refused there. Values are substituted once and never expanded again. Targets take <code>{{name}}</code> too (a CSV row's
350
+ refused there. Values are filled in once and never expanded again. Targets take <code>{{name}}</code> too (a CSV row's
300
351
  <code>{{customer}}</code> as the control to click), never a secret.</li>
301
352
  <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
302
353
  and context-menu keys are refused: Win+R followed by typing runs any command.</li>
303
- <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
304
- <code>type</code> step clears the field and types the text key by key, like a person: some controls show text set through UI
305
- Automation but act only on typed input (the Windows Save and Open dialogs keep their default file name). Text with
306
- line breaks or tabs is set instead, so a line break never presses Enter in a form.</li>
307
- <li><strong>Only the app gets the input.</strong> pywinauto clicks at screen coordinates and keys go to the window in front, so before
308
- 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
309
- 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
310
- window behind it. A <code>dismiss</code> control that could not be clicked is named in the step's error.</li>
354
+ <li><strong>Typing</strong> is literal: special key characters in the text are typed as they are. On Windows a <code>type</code> step clears the
355
+ field and types the text key by key, like a person: some controls show text set directly but act only on typed input
356
+ (the Windows Save and Open dialogs keep their default file name). Text with line breaks or tabs is set instead, so a
357
+ line break never presses Enter in a form.</li>
358
+ <li><strong>Only the app gets the input.</strong> Before a click, <code>type</code> or <code>keys</code>, the app's window is brought forward, and nothing is
359
+ sent while another program's window covers the point or keeps the keyboard: the step fails and says so. <code>keys</code> go to
360
+ the app's open dialog, not its main window behind it. A <code>dismiss</code> control that could not be clicked is named in the
361
+ step's error.</li>
311
362
  </ul>
312
363
  <h2 id="recording-by-hand"><a href="#recording-by-hand" class="hash">#</a>Recording by hand</h2>
313
- <p>When you know the steps, do them yourself instead of describing a goal: no model and no UFO are involved, so it costs
314
- nothing and does exactly what you did.</p>
315
- <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;
316
- </span></span></code></pre></div>
317
- <p>ForgeQE starts the app and watches the mouse and keyboard (low-level Windows hooks), asking UI Automation which control
318
- each click and key went to. Do the steps, then:</p>
364
+ <p>When you know the steps, do them yourself instead of describing a goal: no model is involved, so it costs nothing and
365
+ does exactly what you did. Start it as in <a href="#use">Use</a> (&quot;Recording your own steps&quot;).</p>
366
+ <p>ForgeQE starts the app and watches the mouse and keyboard, asking Windows which control each click and key went to. Do
367
+ the steps, then:</p>
319
368
  <ul>
320
369
  <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
321
370
  status message, a saved total). Add one at the end, so the replay tests the outcome, not only the steps.</li>
322
- <li><strong>Ctrl+Shift+F12</strong>, or closing the app, finishes. The console shows each step as it is recorded.</li>
371
+ <li><strong>Ctrl+Shift+F12</strong>, or closing the app, finishes (in the web app, <strong>Stop</strong> too). The terminal shows each step as it
372
+ is recorded.</li>
323
373
  </ul>
324
374
  <p>What becomes a step:</p>
325
375
  <div class="tbl tbl--cols-2"><table>
@@ -336,40 +386,40 @@ status message, a saved total). Add one at the end, so the replay tests the outc
336
386
  </table></div>
337
387
  <ul>
338
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>,
339
- or <code>&amp;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
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
340
390
  placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
341
- <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,
342
- or controls with neither an AutomationId nor a name. The result lists what was left out.</li>
343
- <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
344
- under it and reads the field you typed in, so neither is lost when the dialog goes. Typed characters are looked up
345
- once per run of typing, not once per key.</li>
391
+ <li><strong>Only the app:</strong> clicks and keys outside the app are not recorded; nor are the Windows and menu keys, or controls
392
+ 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 still recorded, with the field you typed in.</li>
346
394
  <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
347
395
  cell like it (a password column's <code>********</code>).</li>
348
396
  <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
349
- (<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code>. Replay it with
350
- <code>forgeqe desktop replay</code>.</li>
397
+ (<code>steps/NNN.png</code> and <code>.json</code>), and <code>video.mp4</code> with <code>desktop.video: true</code>.</li>
351
398
  </ul>
352
399
  <h2 id="reviewing-a-recording-web-app"><a href="#reviewing-a-recording-web-app" class="hash">#</a>Reviewing a recording (web app)</h2>
353
- <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
354
- review:</p>
400
+ <p>In the web app only: a recording made from <strong>Record › Desktop app</strong> (Windows) opens in a review when you stop. Any other
401
+ workflow opens in the same review from the <strong>Workflows</strong> tab of <strong>Desktop apps</strong> (the open button on its row). It has
402
+ three tabs:</p>
355
403
  <ul>
356
404
  <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
357
405
  check that it shows its text (or that it is there). <strong>Change step N</strong> changes a step's control, text or seconds,
358
- or removes it (never the first, which starts the app). <strong>+</strong> after a step adds: a check that a control shows a
359
- 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
360
- first and written at the version shown.</li>
361
- <li><strong>Test data</strong>: where each typed or chosen value comes from: as typed, test data (a variable of the workflow), or a
362
- secret of <code>desktop.secrets</code> (what was typed then leaves the workflow).</li>
363
- <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
364
- <strong>Heal a moved control</strong> and <strong>New image baselines</strong>; its result, report and heals to accept.</li>
406
+ or removes it (never the first, which starts the app). <strong>+</strong> after a step adds: <strong>Check a control shows a text</strong>,
407
+ <strong>Check a control is there</strong>, <strong>Wait for a control</strong>, <strong>Wait until a control is gone</strong>, <strong>Wait some seconds</strong>, or
408
+ <strong>Press keys</strong>. Each change is shown first and written at the version shown.</li>
409
+ <li><strong>Test data</strong>: where each typed or chosen value comes from: <strong>As typed</strong>, <strong>Test data</strong> (a variable of the workflow),
410
+ or <strong>Secret</strong> (one of <code>desktop.secrets</code>; what was typed then leaves the workflow). Press <strong>Save</strong>.</li>
411
+ <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 <strong>Heal a
412
+ step whose control moved</strong> and <strong>Take new image baselines</strong>; its result, report and heals to <strong>Accept</strong>.</li>
365
413
  </ul>
366
- <p><strong>Improve</strong> asks DeskPilot what to fix or add; it changes the workflow only after showing you the change. A mobile
414
+ <p><strong>Improve</strong> asks the agent what to fix or add; it changes the workflow only after showing you the change. A mobile
367
415
  recording opens in the same review.</p>
416
+ <p>At a terminal, the same changes are made by editing the workflow file, or by asking the agent in a chat (see the next
417
+ section).</p>
368
418
  <h2 id="fixing-a-workflow-from-chat"><a href="#fixing-a-workflow-from-chat" class="hash">#</a>Fixing a workflow from chat</h2>
369
- <p>When a replayed step fails because the app was slow or a dialog was in the way, ForgeQE's agent fixes the workflow
370
- 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
371
- it, a dialog button in <code>dismiss</code>, a healed locator, a corrected text), shows you the diff, and writes the file only
372
- when you agree. For example, after &quot;step 4 timed out while the invoice list loaded&quot;:</p>
419
+ <p>When a replayed step fails because the app was slow or a dialog was in the way, ask ForgeQE's agent to fix it, in a web
420
+ chat (or <strong>Improve</strong> on the workflow) or in <code>forgeqe start</code>. It proposes the change (a longer <code>timeout</code> or <code>retries</code> on
421
+ the step, a <code>wait_for</code> before it, a dialog button in <code>dismiss</code>, a healed locator, a corrected text), shows you the diff,
422
+ and writes the file only when you agree. For example, after &quot;step 4 timed out while the invoice list loaded&quot;:</p>
373
423
  <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?
374
424
  </span></span><span class="ln"><span class="cmd">• new wait_for step before step 4
375
425
  </span></span><span class="ln"><span class="cmd">• step 4: retries 2
@@ -378,10 +428,10 @@ when you agree. For example, after &quot;step 4 timed out while the invoice list
378
428
  </span></span><span class="ln"><span class="cmd"> + retries: 2
379
429
  </span></span></code></pre></div>
380
430
  <ul>
381
- <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>,
382
- <code>set_variable</code>); step numbers are the replay report's. Anything else is refused.</li>
383
- <li>The changed workflow is checked by the engine's own validator before it is shown; one that would not run is not
384
- offered. Comments and layout are kept.</li>
431
+ <li>Each change has a fixed shape (set or unset a setting, change, insert or remove a step, add a dialog to <code>dismiss</code>,
432
+ set a variable); step numbers are the replay report's. Anything else is refused.</li>
433
+ <li>The changed workflow is checked before it is shown; one that would not run is not offered. Comments and layout are
434
+ kept.</li>
385
435
  <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
386
436
  not overwritten.</li>
387
437
  <li>The workflow must be a <code>.yaml</code> inside the working folder or the reports folder.</li>
@@ -418,20 +468,23 @@ tries, replay pauses (1 s, 2 s, … up to 5 s) and closes any <code>dismiss</cod
418
468
  missing variable) is not retried.</li>
419
469
  <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
420
470
  go away, replay clicks the <code>dismiss</code> controls that are on screen and looks again, up to 3 times per lookup. The
421
- report and the console name every dialog closed, and how many tries a step took.</li>
471
+ report and the terminal name every dialog closed, and how many tries a step took.</li>
422
472
  </ul>
473
+ <p>In the web app, the review's <strong>+</strong> adds the waits; <code>timeout</code>, <code>retries</code> and <code>dismiss</code> are edited in the file or through
474
+ the agent.</p>
423
475
  <h2 id="visual-checks-expect_image"><a href="#visual-checks-expect_image" class="hash">#</a>Visual checks (<code>expect_image</code>)</h2>
424
476
  <p><code>expect</code> compares text. When what matters is drawn (a chart, a signature, a colour, a layout), <code>expect_image</code>
425
477
  compares pixels with a baseline image:</p>
426
478
  <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
427
479
  </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
428
- </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 &amp;lt;workflow name&gt;.baselines/ next to the workflow
480
+ </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
429
481
  </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%)
430
482
  </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)
431
483
  </span></span></code></pre></div>
432
484
  <ul>
433
485
  <li><strong>The first run</strong> with no baseline saves what it captured and passes; the report says so. Commit the baselines
434
- folder with the workflow. <code>--update-baselines</code> replaces them after an intended change.</li>
486
+ folder with the workflow. After an intended change, replace them with <strong>Take new image baselines</strong> (web app) or
487
+ <code>--update-baselines</code> (terminal).</li>
435
488
  <li><strong>A pixel counts as different</strong> when a colour channel differs by more than 32 of 255, so anti-aliasing and ClearType
436
489
  do not fail a check. A different size (another screen scale or window size) fails with both sizes named.</li>
437
490
  <li><strong>The report</strong> shows the baseline, what was captured, and the differences in red, with the share of pixels that
@@ -441,152 +494,79 @@ out of the baselines folder is refused.</li>
441
494
  <li>Run visual checks on one machine with a fixed resolution and scale (see <a href="../desktop-ci/index.html">DESKTOP-CI.md</a>).</li>
442
495
  </ul>
443
496
  <h2 id="unattended-runs"><a href="#unattended-runs" class="hash">#</a>Unattended runs</h2>
444
- <p>Replay needs a signed-in, unlocked Windows session. Before it starts the app, it checks the session and fails at once
445
- with the reason if it is a Windows service (session 0), a locked screen, or a disconnected Remote Desktop session.
446
- <code>forgeqe desktop doctor</code> runs the same check. To run the suite every night on a machine of your own, see
447
- <a href="../desktop-ci/index.html">DESKTOP-CI.md</a>: a runner set up in the user's session (<code>ci/desktop-runner/prepare-runner.ps1</code>), a
448
- nightly workflow (<code>ci/desktop-runner/desktop-nightly.example.yml</code>), and <code>--junit</code> results.</p>
449
- <h2 id="updating-ufo²"><a href="#updating-ufo²" class="hash">#</a>Updating UFO²</h2>
450
- <p>UFO² is pinned to one commit. Moving it is checked before it is pinned:</p>
451
- <ol>
452
- <li>Set up that UFO on Windows (<code>FORGEQE_UFO_COMMIT</code>, which takes a full 40-character commit id only), then run the
453
- adapter tests against its real code and a scripted explore of Notepad.</li>
454
- <li>When it passed: <code>bun scripts/ufo-bump.ts &amp;lt;commit&gt;</code> writes the new pin into <code>src/desktop/setup.ts</code>,
455
- <code>py/forgeqe_desktop/ufo_runner.py</code> and this page. Run the tests on Windows again before pushing.</li>
456
- </ol>
457
- <p>When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the
458
- adapter wraps). Keep the pin until the adapter is updated for it.</p>
497
+ <p>Replay on Windows with the mouse and keyboard needs a signed-in, unlocked Windows session. Before it starts the app, it
498
+ checks the session and fails at once with the reason if it is a Windows service (session 0), a locked screen, or a
499
+ disconnected Remote Desktop session. The machine check (<strong>Check</strong> on <strong>Machine and apps</strong>, or <code>forgeqe desktop doctor</code>)
500
+ runs the same check. To run the suite every night on a machine of your own, see <a href="../desktop-ci/index.html">DESKTOP-CI.md</a>: a
501
+ runner set up in the user's session (<code>ci/desktop-runner/prepare-runner.ps1</code>), a nightly workflow
502
+ (<code>ci/desktop-runner/desktop-nightly.example.yml</code>), and <code>--junit</code> results.</p>
459
503
  <h2 id="checks-of-the-outcome"><a href="#checks-of-the-outcome" class="hash">#</a>Checks of the outcome</h2>
460
- <p>A recording of actions only proves the steps run. When UFO has finished, and before the app closes, explore shows the
461
- model the goal and the app's controls with the text each shows now, and the model picks up to three whose text proves
462
- the goal (a status message, a saved value), by number, with the part of the text to expect. A check is kept only when
463
- that text really is in that control, so the model can choose among what is on screen but never invent it; text holding
464
- 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
465
- report says how many there are. With none, the report and the agent say so: add <code>expect</code> steps by hand.</p>
466
- <h2 id="recording"><a href="#recording" class="hash">#</a>Recording</h2>
467
- <p>UFO's own step log names the control and a per-step id, not its AutomationId, so the adapter wraps UFO's
468
- <code>ActionExecutor.execute</code> and records each action with the UIA properties of the control it acted on. <code>record.py</code> turns
469
- 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
470
- allowed chord) or <code>type</code>, <code>select</code> → <code>select</code>. Coordinate clicks, scrolls and anything else are listed as not recorded
471
- in the report. A typed value equal to a <code>desktop.secrets</code> value is written as its placeholder; typed text that only
472
- looks like <code>{{…}}</code> is kept literal, so a model told to type <code>{{secret:X}}</code> cannot make replay type the secret.</p>
504
+ <p>A recording of actions only proves the steps run. When the agent has finished exploring, and before the app closes,
505
+ ForgeQE shows the model the goal and the app's controls with the text each shows now, and the model picks up to three
506
+ whose text proves the goal (a status message, a saved value), with the part of the text to expect. A check is kept only
507
+ when that text really is in that control, so the model can choose among what is on screen but never invent it; text
508
+ holding a <code>desktop.secrets</code> value is never offered. The checks are saved as <code>expect</code> steps at the end of the workflow,
509
+ and the report says how many there are. With none, the report and the agent say so, and the web app marks the workflow
510
+ as having no checks of the outcome: add <code>expect</code> steps (in the review, or by hand).</p>
511
+ <h2 id="what-an-explore-records"><a href="#what-an-explore-records" class="hash">#</a>What an explore records</h2>
512
+ <p>Each action of the agent is recorded with the properties of the control it acted on, and becomes a step: a click (or
513
+ double-click), typing into a field, a key chord (<code>keys</code>, when it is one allowed chord, else <code>type</code>), and picking an
514
+ item (<code>select</code>). Clicks at screen positions, scrolls and anything else are listed as not recorded in the report. A
515
+ typed value equal to a <code>desktop.secrets</code> value is written as its placeholder; typed text that only looks like <code>{{…}}</code>
516
+ is kept literal, so a model told to type <code>{{secret:X}}</code> cannot make replay type the secret.</p>
473
517
  <h2 id="security"><a href="#security" class="hash">#</a>Security</h2>
474
- <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
475
- repository's <code>CLAUDE.md</code> apply; for this engine:</p>
518
+ <p>The YAML, the app's screen text and the model's replies can all be written by someone else. ForgeQE treats them as
519
+ untrusted:</p>
476
520
  <ul>
477
- <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
478
- through <code>cmd.exe</code>, which reparses its arguments) and an argument list, started with <code>subprocess.Popen([path, *args])</code>.</li>
479
- <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
480
- <code>AppUIExecutor</code>. UFO's default <code>CommandLineExecutor</code>, which runs shell commands, and its Word, Excel, PowerPoint and
481
- PDF executors are left out. The adapter starts the app, so UFO never launches a program.</li>
482
- <li><strong>Keys:</strong> during explore the adapter refuses UFO's Windows and menu keys too, and the report lists what it refused.</li>
483
- <li><strong>No one at the console:</strong> UFO's safe guard asks before sensitive actions; explore answers no, since nobody is there.</li>
484
- <li><strong>Environment:</strong> the engine process gets system settings, the profile's key variable (or Entra's) and
485
- <code>desktop.secrets</code>, nothing else (<code>desktopEnvNames</code>).</li>
521
+ <li><strong>No command in the workflow.</strong> <code>app:</code> names an app of your settings: an absolute <code>.exe</code> (never a <code>.bat</code> or <code>.cmd</code>)
522
+ and an argument list, started without a shell.</li>
523
+ <li><strong>The agent gets UI actions only.</strong> While exploring it can click, type and read controls in the app. It cannot run
524
+ shell commands or start programs; ForgeQE starts the app.</li>
525
+ <li><strong>Keys:</strong> the Windows and menu keys are refused during explore too, and the report lists what was refused.</li>
526
+ <li><strong>No one at the console:</strong> when the agent would ask before a sensitive action, explore answers no.</li>
527
+ <li><strong>Environment:</strong> the desktop process gets system settings, the model profile's key and <code>desktop.secrets</code>, nothing
528
+ else.</li>
486
529
  <li><strong>Explore controls the real mouse and keyboard.</strong> It asks before starting (<code>--yes</code> to skip; required with no
487
530
  terminal). Use a test machine or VM and a test account.</li>
488
- <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
489
- path, so a link out is refused); variables are names and text only; heals are reported, never written.</li>
531
+ <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
532
+ (links out are refused); variables are names and text only; heals are reported, never written by the agent.</li>
490
533
  <li><strong>Healing:</strong> the model picks one of the window's real controls by number; control text is passed as data, and any
491
534
  other answer heals nothing. Heals are written into the workflow only when accepted.</li>
492
- <li><strong>Report:</strong> every value is escaped; images are only the engine's own <code>steps/NNN.png</code> and
493
- <code>images/NNN-baseline|actual|diff.png</code>.</li>
494
- <li><strong>Baselines:</strong> <code>expect_image</code> names are file names, and their real path must be inside the workflow's baselines
495
- folder, so a workflow cannot read or overwrite another file.</li>
535
+ <li><strong>Report:</strong> every value is escaped; images are only the run's own step pictures and image comparisons.</li>
536
+ <li><strong>Baselines:</strong> <code>expect_image</code> names are file names inside the workflow's baselines folder, so a workflow cannot read
537
+ or overwrite another file.</li>
496
538
  <li><strong>Unattended machines:</strong> <code>prepare-runner.ps1</code> never handles a password; automatic sign-in uses Sysinternals
497
539
  Autologon, which stores it encrypted.</li>
498
- <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),
499
- and the checkout's <code>HEAD</code> is verified; replay's packages are pinned to exact versions.</li>
540
+ <li><strong>Install:</strong> what setup downloads is pinned to exact versions and checked.</li>
500
541
  </ul>
501
- <h2 id="code"><a href="#code" class="hash">#</a>Code</h2>
502
- <div class="tbl tbl--cols-2"><table>
503
- <thead>
504
- <tr><th>File</th><th>Contents</th></tr>
505
- </thead>
506
- <tbody>
507
- <tr><td data-label="File"><code>src/desktop/command.ts</code></td><td data-label="Contents"><code>forgeqe desktop</code>: setup, apps, doctor, validate, explore, record, replay (folders, <code>--data</code>, <code>--junit</code>, <code>--update-baselines</code>); heal acceptance</td></tr>
508
- <tr><td data-label="File"><code>src/desktop/junit.ts</code></td><td data-label="Contents">JUnit XML for a suite</td></tr>
509
- <tr><td data-label="File"><code>src/desktop/edit.ts</code></td><td data-label="Contents">Changes to a workflow from chat: shapes, applied with comments kept, validated, diff, backup</td></tr>
510
- <tr><td data-label="File"><code>src/desktop/run.ts</code></td><td data-label="Contents">Explore and replay as the CLI and the agent's tools run them; variables, CSV rows, workflow paths</td></tr>
511
- <tr><td data-label="File"><code>src/mcp/desktoptools.ts</code></td><td data-label="Contents">ForgeQE's agent's <code>test_apps</code>, <code>desktop_explore</code>, <code>desktop_record</code>, <code>desktop_replay</code>, <code>desktop_edit_workflow</code></td></tr>
512
- <tr><td data-label="File"><code>src/desktop/bridge.ts</code></td><td data-label="Contents">Starts <code>python -m forgeqe_desktop serve</code>, passes events on, records model calls in the usage ledger</td></tr>
513
- <tr><td data-label="File"><code>src/desktop/setup.ts</code></td><td data-label="Contents">The desktop environment, the pinned UFO checkout (<code>ufoCommit</code>), <code>desktopDoctor</code></td></tr>
514
- <tr><td data-label="File"><code>scripts/ufo-bump.ts</code></td><td data-label="Contents">Pins a new UFO commit in every place that names it</td></tr>
515
- <tr><td data-label="File"><code>ci/desktop-runner/</code></td><td data-label="Contents"><code>prepare-runner.ps1</code> and the nightly workflow example for unattended runs</td></tr>
516
- <tr><td data-label="File"><code>src/desktop/report.ts</code></td><td data-label="Contents"><code>report.html</code> for a run</td></tr>
517
- <tr><td data-label="File"><code>py/forgeqe_desktop/service.py</code></td><td data-label="Contents"><code>serve</code>: the JSON-lines protocol, replay and explore runs, <code>run.json</code></td></tr>
518
- <tr><td data-label="File"><code>py/forgeqe_desktop/workflow.py</code></td><td data-label="Contents">Load, validate and save workflows; variables and secrets; the key-chord grammar</td></tr>
519
- <tr><td data-label="File"><code>py/forgeqe_desktop/apps.py</code></td><td data-label="Contents"><code>desktop.apps</code>: the app allowlist and the argument array a launch uses</td></tr>
520
- <tr><td data-label="File"><code>py/forgeqe_desktop/models.py</code></td><td data-label="Contents">The profile through the <code>openai</code> SDK; image checks</td></tr>
521
- <tr><td data-label="File"><code>py/forgeqe_desktop/ufo_bridge.py</code></td><td data-label="Contents">UFO's model blocks, and the <code>forgeqe</code> model service</td></tr>
522
- <tr><td data-label="File"><code>py/forgeqe_desktop/ufo_runner.py</code></td><td data-label="Contents">UFO's config, the action trace and key guard, running UFO in-process</td></tr>
523
- <tr><td data-label="File"><code>py/forgeqe_desktop/record.py</code></td><td data-label="Contents">Trace to workflow steps</td></tr>
524
- <tr><td data-label="File"><code>py/forgeqe_desktop/replay.py</code></td><td data-label="Contents">Runs a workflow on a <code>Driver</code>: timeouts, retries, <code>wait_for</code>, dismissing dialogs, heal and stop</td></tr>
525
- <tr><td data-label="File"><code>py/forgeqe_desktop/handrecord.py</code></td><td data-label="Contents">Recording by hand: clicks, typing, chords and checks as steps; secrets</td></tr>
526
- <tr><td data-label="File"><code>py/forgeqe_desktop/handhooks.py</code></td><td data-label="Contents">The Windows hooks and UI Automation lookups that feed it</td></tr>
527
- <tr><td data-label="File"><code>py/forgeqe_desktop/visual.py</code></td><td data-label="Contents"><code>expect_image</code>: baselines, pixel comparison, diff images</td></tr>
528
- <tr><td data-label="File"><code>py/forgeqe_desktop/session.py</code></td><td data-label="Contents">Whether this Windows session can be driven (service, locked, no screen)</td></tr>
529
- <tr><td data-label="File"><code>py/forgeqe_desktop/heal.py</code></td><td data-label="Contents">One model call to re-find a moved control</td></tr>
530
- <tr><td data-label="File"><code>py/forgeqe_desktop/memory.py</code></td><td data-label="Contents">App memory: an explore replays what earlier ones did before calling the model, and a heal found once is reused (mobile too)</td></tr>
531
- <tr><td data-label="File"><code>py/forgeqe_desktop/checks.py</code></td><td data-label="Contents">One model call for checks of the outcome, kept only when on screen</td></tr>
532
- <tr><td data-label="File"><code>py/forgeqe_desktop/pywinauto_driver.py</code></td><td data-label="Contents">The Windows <code>Driver</code></td></tr>
533
- </tbody>
534
- </table></div>
535
- <p>Tests: <code>bun test tests/desktop.test.ts</code>, and <code>&amp;lt;engine-python&gt; -m pytest tests/desktop -q</code> (needs <code>openai==1.66.2</code>
536
- and PyYAML; they use a fake driver and a fake UFO, so they run on any OS).</p>
537
542
  <h2 id="before-first-use-on-windows"><a href="#before-first-use-on-windows" class="hash">#</a>Before first use on Windows</h2>
538
- <p>Verified in CI: setup with and without <code>--ufo</code>, replay, healing, the CLI, and UFO's own code with the adapter (its
539
- config, its model calls routed to the profile, the action trace, UI tools only). Still to check, on a Windows test
540
- machine with your apps:</p>
543
+ <p>Tested by the ForgeQE team: setup with and without the explore part, replay, healing, and recording. Still to check, on
544
+ a Windows test machine with your apps:</p>
541
545
  <ol>
542
- <li><strong>UIA coverage:</strong> <code>Inspect.exe</code> shows the controls that matter with stable <code>AutomationId</code>s. Custom grids, Java
543
- (needs Java Access Bridge), Delphi, SAP GUI and Citrix (vision only) are where UIA falls short.</li>
546
+ <li><strong>Control coverage:</strong> Windows' <code>Inspect.exe</code> shows the controls that matter with stable <code>AutomationId</code>s. Custom
547
+ grids, Java (needs Java Access Bridge), Delphi, SAP GUI and Citrix are where Windows' control information falls
548
+ short.</li>
544
549
  <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
545
- controls' AutomationIds, and <code>ufo/</code> has UFO's logs.</li>
550
+ controls' AutomationIds.</li>
546
551
  <li><strong>Replay:</strong> the recorded workflow passes 10 runs out of 10; a renamed control is healed.</li>
547
- <li><strong>Cost and time</strong> of one explore, from <code>forgeqe</code> usage.</li>
552
+ <li><strong>Cost and time</strong> of one explore, from ForgeQE's usage.</li>
548
553
  </ol>
549
- <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
550
- is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in
551
- UFO's own evaluation lost the recorded actions (the trace is now kept and saved).</p>
552
- <p>Found by replaying KeePass 2 on Windows 11 ARM64 (a Parallels VM, runs started from a scheduled task) and fixed: text
553
- set through UI Automation was shown by the Save dialog but not used, so the database was saved under the default name
554
- while every step passed (now typed); with the app behind another window, clicks went to that window, <code>dismiss</code>
555
- reported nothing, and <code>keys</code> went to the main window instead of the dialog (now the app is brought forward, the click
556
- point and the keyboard are checked, and keys go to the open dialog); a dialog closing while its window was searched
557
- failed the next step with a COM error (now searched again). On that VM a synthetic double-click did not register;
558
- check <code>double_click</code> on real hardware. The x64 Python the engine runs in needs the x64 Visual C++ runtime (<code>win32ui</code>).
559
- On agent-desktop there: npm 11.20 refuses <code>--allow-scripts</code> with <code>--prefix</code> (the install script is now allowed for the
560
- pinned version in the folder's <code>package.json</code>); the state folder's Windows ACL (Administrators, OWNER RIGHTS) was
561
- refused by agent-desktop (now this user and SYSTEM only); and a dialog listed as its own window and inside its main
562
- window's snapshot matched twice (now one control). Still open: a button whose click opens a modal message box times out
563
- in UI Automation's Invoke, and the step fails without sending it again, so such steps need the pywinauto driver.</p>
564
- <p>Found by exploring and healing KeePass there with Azure OpenAI gpt-5.4 and fixed: a drop-down menu's items are listed
565
- twice by UI Automation, so a recorded menu click was &quot;several controls match&quot; and could not replay (now one control
566
- seen twice, the same runtime id, is that control); a check of the app's main window could never be found, as replay
567
- searched only inside windows (now a target equal to the window is the window); the heal model, given only the old
568
- target, replaced a renamed menu item by the menu itself (that step passed and the next one failed), and the heal was
569
- remembered and offered for the workflow (now the model is told the step and the one before it, and a heal is
570
- remembered, written or offered only from a replay that passed; a remembered heal used in a failed replay is
571
- forgotten); and the offer to write heals waited for an answer with no terminal (now never asked without one). Explore
572
- ran 4 steps for $0.12 when the app opened at its main window.</p>
573
- <p>Also found there and fixed: an app that opens with a start-up dialog (KeePass's update question) left UFO on that
574
- dialog's window after it closed, so every later click went to (0, 0) until the step limit ($1.22 for nothing); now a
575
- 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
576
- explore passes for $0.18. In recording by hand, the OK that closed a dialog right after typing was lost, since the
577
- control under the click was looked up after a lookup per typed key (now the click is held while it is looked up, and
578
- 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
579
- inside its row). App memory borrowed another goal's whole flow as a &quot;shared start&quot;; that flow ended where it began (a
580
- dialog opened and closed again), so UFO, seeing the screen it started from, did it all again and the workflow held it
581
- twice. Now the note lists the replayed steps and says to finish if they do the goal (UFO then made no click, $0.02),
582
- and steps that exactly repeat the replayed block are kept once. A replay with <code>--no-heal</code>, or with a model whose key
583
- is not set, stopped at &quot;No model in llms.json can …&quot; (now healing is off for that replay, and it runs).</p>
554
+ <p>Known limits:</p>
555
+ <ul>
556
+ <li>In a virtual machine, a synthetic double-click may not register; check <code>double_click</code> on real hardware.</li>
557
+ <li>On Windows on ARM, the x64 Visual C++ runtime must be installed.</li>
558
+ <li>With <code>desktop.driver: agent-desktop</code>, a button whose click opens a modal message box times out, and the step fails
559
+ without sending the click again. Replay such workflows with the mouse and keyboard (<code>pywinauto</code> or <code>auto</code> on
560
+ Windows).</li>
561
+ <li>An explore makes model calls, so it costs what your model charges; a replay makes none. Each run's report and Cost
562
+ show what it used.</li>
563
+ </ul>
584
564
  <h2 id="next-steps"><a href="#next-steps" class="hash">#</a>Next steps</h2>
585
565
  <ol>
586
566
  <li>The checks above.</li>
587
567
  <li><code>forgeqe suite</code> and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.</li>
588
- <li>Quill: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo.</li>
589
- <li>App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix.</li>
568
+ <li>Quill: export a workflow as code in the user's repository.</li>
569
+ <li>Better support where Windows' control information falls short: Java, SAP GUI, and vision only for Citrix.</li>
590
570
  <li>A pipeline template for a self-hosted Windows runner signed in to a desktop session.</li>
591
571
  </ol>
592
572
 
@@ -594,7 +574,7 @@ is not set, stopped at &quot;No model in llms.json can …&quot; (now healing is
594
574
 
595
575
  </main>
596
576
  <aside class="docs-toc" aria-label="On this page">
597
- <p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#decisions">Decisions</a></li><li><a href="#how-a-run-flows">How a run flows</a></li><li><a href="#replay-on-agent-desktop-macos-linux-and-headless-windows">Replay on agent-desktop (macOS, Linux, and headless Windows)</a></li><li><a href="#one-model-config-llmsjson--ufo">One model config: llms.json → UFO</a></li><li><a href="#workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#recording-by-hand">Recording by hand</a></li><li><a href="#reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#unattended-runs">Unattended runs</a></li><li><a href="#updating-ufo²">Updating UFO²</a></li><li><a href="#checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#recording">Recording</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li><li><a href="#before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#next-steps">Next steps</a></li></ul>
577
+ <p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#how-a-run-flows">How a run flows</a></li><li><a href="#replay-on-macos-linux-and-headless-windows">Replay on macOS, Linux, and headless Windows</a></li><li><a href="#the-model-explore-and-healing-use">The model explore and healing use</a></li><li><a href="#workflow-yaml-forgeqe-desktop-v1">Workflow YAML (forgeqe-desktop-v1)</a></li><li><a href="#recording-by-hand">Recording by hand</a></li><li><a href="#reviewing-a-recording-web-app">Reviewing a recording (web app)</a></li><li><a href="#fixing-a-workflow-from-chat">Fixing a workflow from chat</a></li><li><a href="#waits-retries-and-dialogs">Waits, retries and dialogs</a></li><li><a href="#visual-checks-expect_image">Visual checks (expect_image)</a></li><li><a href="#unattended-runs">Unattended runs</a></li><li><a href="#checks-of-the-outcome">Checks of the outcome</a></li><li><a href="#what-an-explore-records">What an explore records</a></li><li><a href="#security">Security</a></li><li><a href="#before-first-use-on-windows">Before first use on Windows</a></li><li><a href="#next-steps">Next steps</a></li></ul>
598
578
  </aside>
599
579
  </div>
600
580
  <footer class="foot">