@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
@@ -11,6 +11,7 @@
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,11 +113,11 @@
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" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
- <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="index.html" aria-current="page"><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"><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="index.html" aria-current="page"><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"><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 guide chapter-page">
118
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</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="index.html" aria-current="page"><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"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-6-tests">Tests</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#doc-how_to_use-fixing-broken-tests">Fixing broken tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#doc-how_to_use-converting-tosca-tests">Converting Tosca tests</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-finding-and-running-existing-tests">Finding and running existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#doc-how_to_use-flaky-tests">Flaky tests</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#doc-how_to_use-comparing-two-runs">Comparing two runs</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#doc-how_to_use-test-debt-and-coverage-gaps">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li><li><a href="#doc-how_to_use-test-management">Test management</a></li></ul></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="index.html" aria-current="page"><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"><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><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li></ul></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-scribe"/></svg>Automated tests</h1>
121
122
  <p class="guide-lead">Write, heal, find, run, and stabilise tests in your repository</p>
122
123
  <article class="spec feat" id="cap-write-tests">
@@ -124,16 +125,37 @@
124
125
  <p class="ds">Quill, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it.</p>
125
126
  <div class="facts">
126
127
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Write a Playwright test for that run in ../app</li></ul></div>
127
- <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a repository to write the test in (default: the working directory)</span></li></ul></div>
128
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository to write the test in (default: the working directory)</span></li></ul></div>
128
129
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>write_test</code> <code>run_test</code></p></div>
129
130
  </div>
130
- <div class="detail"><span class="mono">In detail</span>
131
- <section class="doc" id="doc-how_to_use-6-tests">
131
+
132
+ </article>
133
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-6-tests">
132
134
  <h4>Tests</h4>
133
- <div class="prose"><p>After a run passes, <strong>Quill</strong>, ForgeQE's coding agent, turns it into a test in your repo.</p>
134
- <p>In the shell and <code>forgeqe run</code>, every passed run then becomes a test, and so does each test case that passes when you ask the shell to run test cases: in the current folder, or in the repo you give per run or in <code>forgeqe.yaml</code>. <code>--no-code</code> turns it off; you can still ask for a test (&quot;write a Playwright test for that run&quot;).</p>
135
+ <div class="prose"><p>After a run passes, <strong>Quill</strong>, ForgeQE's coding agent, turns it into a test in your repository.</p>
136
+ <p><strong>Writing a test after a run.</strong> Every passed run becomes a test. So does each test case that passes when you ask ForgeQE
137
+ to run test cases. The test goes into the repository you give for that run, else the one set in <strong>Settings › Code</strong>
138
+ (<code>code.repo</code> in <code>forgeqe.yaml</code>), else the current folder. You can turn this off for a chat or a request, and still ask
139
+ for a test later (&quot;write a Playwright test for that run&quot;).</p>
140
+ <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>
141
+ <ol>
142
+ <li>Open <strong>New chat</strong>.</li>
143
+ <li>Press <strong>Tools</strong> and keep <strong>Write the test</strong> on. It names the repository the test goes into. Turn it off for a chat
144
+ that writes no tests.</li>
145
+ <li>Ask for the run, for example <code>Log in and open the invoices page on staging.app.test</code>.</li>
146
+ </ol>
147
+ <p>For a recording you made by hand, open <strong>Record</strong>, open the recording and press <strong>Write the test</strong> (see
148
+ <a href="../area-browser/index.html#doc-how_to_use-recording-a-web-test-by-hand">Recording a web test by hand</a>).</p>
149
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
135
150
  <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 run &quot;Log in and open the invoices page on staging.app.test&quot; --repo ../app
151
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe run &quot;...&quot; --no-code</span><span class="pad"> </span><span class="cm"><span class="h">#</span> no tests for this request
152
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe start --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the shell writes its tests in that repository
153
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe start --no-code</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the shell writes no tests
136
154
  </span></span></code></pre></div>
155
+ <p>In the shell you can also just ask (&quot;write a test for the last run in ../app&quot;). Esc stops Quill the same way it stops a
156
+ run.</p>
157
+ </div></div><p><strong>Settings.</strong> In <strong>Settings › Code</strong> (groups <strong>Where tests go</strong>, <strong>How hard it tries</strong> and <strong>Help it gets</strong>), or under
158
+ <code>code:</code> in <code>forgeqe.yaml</code>:</p>
137
159
  <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">code:
138
160
  </span></span><span class="ln ln--pair"><span class="cmd"> repo: ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> relative to forgeqe.yaml
139
161
  </span></span><span class="ln ln--pair"><span class="cmd"> max_attempts: 5</span><span class="pad"> </span><span class="cm"><span class="h">#</span> test runs before giving up
@@ -145,32 +167,211 @@
145
167
  </span></span><span class="ln ln--pair"><span class="cmd"> live_browser: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once a step fails, the agent looks at that page in a Playwright browser
146
168
  </span></span><span class="ln ln--pair"><span class="cmd"> graph: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the code graph: find page objects without reading files, and reuse what already locates an element
147
169
  </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> model: anthropic/claude-sonnet-4-5
148
- </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> runtime: /path/to/agent-runtime # default: the runtime ForgeQE downloads
170
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> runtime: /path/to/coding-agent # default: the coding agent ForgeQE downloads
149
171
  </span></span></code></pre></div>
150
- <p>What happens after the run passes:</p>
172
+ <p><strong>What happens after the run passes.</strong></p>
151
173
  <ol>
152
174
  <li>
153
- <p>ForgeQE writes <code>handoff.md</code> into the run directory: the goal and result, how ForgeQE's browser was set up (browser and version, headless or headed, user agent, <code>navigator.webdriver</code>, launch switches, extra headers, language, time zone, viewport), every step in order with the value typed (secrets as <code>process.env.NAME</code>) and the JavaScript the browser agent ran, the browser agent's own note before each group of steps (what it saw and why it acted, so a sign-in pop-up it closed or steps it redid after a banner covered the page read as such), each element's best locator and the others with their confidence %, and a short table of each visited page's other elements for assertions (weak locators under 30% are left out, and elements the steps already use are listed with the steps, so the handoff stays small; the full lists are in the page-memory files it points to). The agent's result and the final URL are marked as coming from one run on live data, to be checked as rules (the results load, the order holds, the fields have the right format), not copied as expected values. Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the repository's helper), since the next run can show them at another moment or not at all; the agent's retries are not copied. A site can also serve different versions of a page to different visits (A/B tests, such as a classic search box or a free-text one), so the test handles every version the run or the agent saw, or waits for one control from either version.</p>
154
- <p>The handoff also lists the browser agent's <strong>checks</strong>: before it finishes, the browser agent records each result the goal asks to verify with the exact text the page showed (<code>record_check</code>; a text the page does not show is refused). They are saved in <code>workflow.yaml</code> under <code>checks:</code>. The test asserts these and nothing else.</p>
175
+ <p><strong>The handoff.</strong> ForgeQE writes <code>handoff.md</code> into the run folder. It holds:</p>
176
+ <ul>
177
+ <li>the goal and the result;</li>
178
+ <li>how ForgeQE's browser was set up: browser and version, headless or headed, user agent, <code>navigator.webdriver</code>,
179
+ launch switches, extra headers, language, time zone, viewport;</li>
180
+ <li>every step in order, with the value typed (secrets as <code>process.env.NAME</code>) and the JavaScript the browser agent ran;</li>
181
+ <li>the browser agent's own note before each group of steps: what it saw and why it acted. So a sign-in pop-up it
182
+ closed, or steps it redid after a banner covered the page, read as such;</li>
183
+ <li>each element's best locator and the others, with their confidence %;</li>
184
+ <li>a short table of each visited page's other elements, for assertions. Weak locators (under 30%) are left out, and
185
+ elements the steps already use are listed with the steps, so the handoff stays small. The full lists are in the
186
+ page-memory files it points to;</li>
187
+ <li>the browser agent's <strong>checks</strong>. Before it finishes, the browser agent records each result the goal asks to verify,
188
+ with the exact text the page showed (a text the page does not show is refused). They are saved in <code>workflow.yaml</code>
189
+ under <code>checks:</code>. The test asserts these and nothing else.</li>
190
+ </ul>
191
+ <p>The handoff also tells Quill what not to copy:</p>
192
+ <ul>
193
+ <li>The agent's result and the final URL come from one run on live data. They are checked as rules (the results load,
194
+ the order holds, the fields have the right format), not copied as expected values.</li>
195
+ <li>Pop-ups and banners the run met are handled wherever they appear (Playwright's locator handlers or the
196
+ repository's helper), since the next run can show them at another moment or not at all. The agent's retries are
197
+ not copied.</li>
198
+ <li>A site can serve different versions of a page to different visits (A/B tests, such as a classic search box or a
199
+ free-text one). The test handles every version the run or the agent saw, or waits for one control from either
200
+ version.</li>
201
+ </ul>
202
+ </li>
203
+ <li>
204
+ <p><strong>The replay.</strong> ForgeQE replays the run's steps as a Playwright script (<code>&lt;run&gt;/replay/flow.mjs</code>), in the run's browser
205
+ setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step.</p>
206
+ <ul>
207
+ <li>Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire.</li>
208
+ <li>If the replay does not reach the run's final page, it runs again without Playwright's automation switches
209
+ (<code>navigator.webdriver</code> false, as in ForgeQE's browser). When only this second launch got through, the handoff says
210
+ the browser setup is the difference and which launch settings fix it.</li>
211
+ <li>The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a
212
+ dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other
213
+ locators matched, and a screenshot and page snapshot.</li>
214
+ <li>It saves Playwright's page snapshot of each page the replay visited (roles, accessible names and text, as the
215
+ replay left the page; the last page once it stops changing). Quill takes locators for its steps and assertions
216
+ from these real pages instead of guessing them.</li>
217
+ <li>On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its
218
+ text into the handoff: a heading or text match, the container it sits in when there are several, or the form field
219
+ that holds it. So assertions come with a locator that worked.</li>
220
+ <li>For a heading it also gives the part of the page the heading names (an element labelled by it, the section it
221
+ heads, or the element right after it), with its locator and how many links and list items it holds. So a check
222
+ such as &quot;an In the news section with at least one item&quot; is asserted inside that part, not on the heading alone.</li>
223
+ <li>A step that fails while every step after it still works and the replay reaches the final page (a click that did
224
+ nothing on the run, or a control this version of the page doesn't have) does not count as a failed replay. Quill
225
+ decides from the step whether the goal needs it and ports the rest as it is.</li>
226
+ <li>The first time, Playwright (about 13 MB) is downloaded into <code>~/.forgeqe/tools</code>. It drives the installed Chrome.</li>
227
+ <li>A run that only opened a page still replays when it recorded checks, to look them up. With neither, the replay is
228
+ skipped. <code>replay: false</code> turns it off.</li>
229
+ </ul>
230
+ <p>While the replay runs, Quill first reads the repository as a read-only agent: it cannot change files or use the live
231
+ browser yet. What it learns (the framework, the command that runs one test, where page objects and config live, the
232
+ conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in
233
+ the same repository starts from those notes and that list instead of reading the repository again, and extends those
234
+ tests' page objects when its flow overlaps. Notes older than 30 days are read again.</p>
155
235
  </li>
156
236
  <li>
157
- <p>ForgeQE replays the run's steps as a Playwright script (<code>&lt;run&gt;/replay/flow.mjs</code>), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches (<code>navigator.webdriver</code> false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Quill takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as &quot;an In the news section with at least one item&quot; is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Quill decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into <code>~/.forgeqe/tools</code>; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and <code>replay: false</code> turns it off.</p>
158
- <p>Quill first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again.</p>
237
+ <p><strong>Quill writes the test in the repository.</strong></p>
238
+ <ul>
239
+ <li>It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures and helpers, and follows the
240
+ imports between them.</li>
241
+ <li>It writes the test in the repository's language and framework (a C# NUnit repository gets a C# NUnit test), to fit
242
+ its code: it extends an existing page object instead of duplicating it, and reuses the login flow, test data and
243
+ config. A repository with no tests gets Playwright Test in TypeScript.</li>
244
+ <li>When the test case names a framework (&quot;Framework: Cypress + TypeScript + Cucumber BDD&quot;), the test is written in
245
+ that one, in the folder that holds its setup. A test in another framework is not run and never kept as passed.</li>
246
+ <li>It never changes the test-runner configuration the whole suite shares (<code>playwright.config.*</code>, <code>cypress.config.*</code>,
247
+ <code>wdio.conf.*</code>, Nightwatch's config, a <code>.runsettings</code>). Browser options a test needs to get the page the run got go
248
+ in that test's own file, and only those it needs (Playwright Test: a top-level <code>test.use({ ... })</code> in the spec,
249
+ where <code>channel</code> and <code>launchOptions</code> must be). ForgeQE puts back its changes to those files after each turn (a
250
+ repository with none keeps the one it sets up) and tells it to move the options into the test.</li>
251
+ <li>It does not change a project's packages either: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code>
252
+ or <code>pyproject.toml</code> are put back, and its shell cannot run an installer.</li>
253
+ </ul>
254
+ <p>Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the
255
+ project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>,
256
+ <code>bun install --frozen-lockfile</code>; with no lockfile). It also installs Cypress's app or
257
+ a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry
258
+ unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run. It is
259
+ not tried again in that session until the project's files change.</p>
260
+ <p>What Quill may not do itself, it asks for: a package, a command its shell refuses, or a change to <code>package.json</code>,
261
+ <code>requirements.txt</code>, <code>pyproject.toml</code> or the suite's shared test-runner config. ForgeQE checks the request first:</p>
262
+ <ul>
263
+ <li>registry names and exact versions only;</li>
264
+ <li>a command only as an argument list: never a shell, push, container, process-ending, download or database
265
+ command, and nothing naming ForgeQE's secrets;</li>
266
+ <li>never <code>.npmrc</code> or a lockfile by hand.</li>
267
+ </ul>
268
+ <p>Then it asks you, with exactly what it would run or change. Only a yes does it. A no, or a run nobody watches,
269
+ changes nothing, and Quill reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and Link ask the same way,
270
+ and their own edits to package files and the shared test-runner config are put back before their tests run.</p>
271
+ <p><strong>Settings › Code › Help it gets › When an agent asks for more</strong> (<code>code.requests</code> in forgeqe.yaml) decides what
272
+ happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking,
273
+ also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a
274
+ lockfile by hand…) stays refused whatever it says.</p>
275
+ <p>Before Quill starts, ForgeQE reads the repository into a <strong>code graph</strong>, without a model: every class, page object,
276
+ method, property and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each
277
+ one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in
278
+ <code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed.</p>
279
+ <ul>
280
+ <li>The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test
281
+ id). So when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repository's <code>LoginPage.LoginButton</code>
282
+ uses <code>#login-button</code>, the handoff says under that step &quot;in this repository: LoginPage.LoginButton … used by
283
+ LoginPage.SignInAsync&quot;, and Quill calls the existing method instead of writing a second locator.</li>
284
+ <li>Quill gets tools that answer from the graph instead of searches and whole-file reads. They find classes, methods
285
+ and tests by name or by the text a locator uses; outline a file's or class's signatures and locators, or show the
286
+ source of one member; say which member already locates an element; say what calls a member, before it is changed;
287
+ and list the tests a change reaches, through flows and base classes, whatever the test files are called.</li>
288
+ <li>The handoff outlines the page objects its steps use and includes the repository's test that uses the most of them.
289
+ Quill takes the test conventions from that test instead of reading other tests, and reads a settings file only to
290
+ change it.</li>
291
+ <li><code>graph: false</code> turns the code graph off.</li>
292
+ </ul>
159
293
  </li>
160
294
  <li>
161
- <p>Quill starts in the repo. It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. When the test case names a framework (&quot;Framework: Cypress + TypeScript + Cucumber BDD&quot;), the test is written in that one, in the folder that holds its setup; a test in another framework is not run and never kept as passed. It never changes the test-runner configuration the whole suite shares (<code>playwright.config.*</code>, <code>cypress.config.*</code>, <code>wdio.conf.*</code>, Nightwatch's config, a <code>.runsettings</code>): browser options a test needs to get the page the run got go in that test's own file, and only those it needs (Playwright Test: a top-level <code>test.use({ ... })</code> in the spec, where <code>channel</code> and <code>launchOptions</code> must be). ForgeQE puts back its changes to those files after each turn (a repository with none keeps the one it sets up) and tells it to move the options into the test. Nor does it change a project's packages: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> are put back, and its shell cannot run an installer. Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>, <code>bun install --frozen-lockfile</code>; with no lockfile), and Cypress's app or a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run, and is not tried again in that session until the project's files change. What Quill may not do itself, it asks for: a package (<code>request_install</code>), a command its shell refuses (<code>request_run</code>), or a change to <code>package.json</code>, <code>requirements.txt</code>, <code>pyproject.toml</code> or the suite's shared test-runner config (<code>request_change</code>). ForgeQE checks the request (registry names and exact versions only; a command as an argument list, never a shell, push, container, process-ending, download or database command, and nothing naming ForgeQE's secrets; never <code>.npmrc</code> or a lockfile by hand), then asks you with exactly what it would run or change. Only a yes does it; a no, or a run nobody watches, changes nothing and Quill reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and Link ask the same way, and their own edits to package files and the shared test-runner config are put back before their tests run. <code>code.requests</code> in forgeqe.yaml (Settings › Code › Help it gets › When an agent asks for more) decides what happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking, also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a lockfile by hand…) stays refused whatever it says.</p>
162
- <p>Before Quill starts, ForgeQE reads the repo into a <strong>code graph</strong>, without a model: every class, page object, method, property, and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in <code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed. The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test id): so when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repo's <code>LoginPage.LoginButton</code> uses <code>#login-button</code>, the handoff says under that step &quot;in this repository: LoginPage.LoginButton … used by LoginPage.SignInAsync&quot;, and Quill calls the existing method instead of writing a second locator. Quill also gets tools that answer from the graph instead of grep and whole-file reads: <code>code_find</code> (classes, methods, and tests by name, or by the text a locator uses), <code>code_outline</code> (a file's or class's signatures and locators, or the source of one member), <code>code_element</code> (which member already locates an element), <code>code_references</code> (what calls a member, before it is changed), and <code>code_impact</code> (the tests a change reaches, through flows and base classes, whatever the test files are called). <code>graph: false</code> turns it off. The handoff also outlines the page objects its steps use and includes the repo's test that uses the most of them, so Quill takes the test conventions from that test instead of reading other tests, and reads a settings file only to change it.</p>
295
+ <p><strong>Porting the steps.</strong> Quill writes the test from the handoff and the replay script. Steps that worked are ported with
296
+ their locators; steps that failed are fixed first. Every locator, including those for assertions, comes from the
297
+ replay script, the page snapshots, page memory, or a check on the page. Steps where the browser agent ran JavaScript
298
+ to look around are left out. Quill does not walk the flow again or build tests to explore.</p>
299
+ <p>Once a step fails (in the replay, or in its test), ForgeQE switches on its <strong>live browser</strong>: a Chrome that Playwright
300
+ drives, set up like ForgeQE's. Quill looks at the failing step's page one action at a time (open, snapshot, click,
301
+ type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser is off, so no
302
+ tokens go into looking at pages that work. The live browser needs Node.js (<code>npx</code>), and its tools are downloaded on
303
+ first use. With <code>live_browser: false</code>, or without <code>npx</code>, Quill looks with a small throwaway script instead.</p>
304
+ <p>When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open),
305
+ Quill compares the two browsers (user agent, <code>navigator.webdriver</code>, headless, failed requests and CORS errors, headers
306
+ the framework adds, console errors) and fixes the difference in the repository's browser configuration. It never
307
+ judges the site with <code>curl</code> or a web fetch.</p>
163
308
  </li>
164
309
  <li>
165
- <p>It writes the test from the handoff and the replay script: steps that worked are ported with their locators, steps that failed are fixed first. Every locator, including those for assertions, comes from the replay script, the page snapshots, page memory, or a check on the page; steps where the browser agent ran JavaScript to look around are left out. It does not walk the flow again or build tests to explore. Once a step fails (in the replay, or in its test), ForgeQE switches on its live browser: a Chrome that Playwright drives, set up like ForgeQE's, where it looks at the failing step's page one tool call per action (open, snapshot, click, type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser tools are off, so no tokens go into looking at pages that work. The live browser needs Node.js (<code>npx</code>), and Microsoft's Playwright MCP server is downloaded on first use; with <code>live_browser: false</code>, or without <code>npx</code>, it looks with a small throwaway script instead. When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open), it compares the two browsers (user agent, <code>navigator.webdriver</code>, headless, failed requests and CORS errors, headers the framework adds, console errors) and fixes the difference in the repo's browser configuration. It never judges the site with <code>curl</code> or <code>webfetch</code>.</p>
310
+ <p><strong>Quill hands the test over.</strong> Quill does not run the test itself. It may build or compile, then reports the test file
311
+ and the command that runs only that test, and ForgeQE runs it.</p>
312
+ <ul>
313
+ <li>If one command it runs fails <code>stall_after</code> times in a row (the same build again and again, say), ForgeQE stops
314
+ that turn and sends the command and its last output back, asking it to change approach. If the same command stalls
315
+ again, the job stops as a failure with that output in the notes.</li>
316
+ <li>The same goes for going round in circles: re-reading files, outlines or <code>git diff</code> it has already seen, unchanged,
317
+ <code>repeat_after</code> times; changing files it already changed <code>edit_after</code> times without handing the test over; or making
318
+ 3 edits that fail because the file no longer has the lines it expected (it then reads the file once and edits from
319
+ that). Its turn stops and it is asked for the test, which ForgeQE then runs. If it does it again, the job stops.</li>
320
+ </ul>
321
+ <p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the
322
+ first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new
323
+ session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now.</p>
324
+ <ul>
325
+ <li>For a recording, what the planner already looked up in the code goes to Quill too, and the planner's tokens count
326
+ toward <code>max_tokens</code>.</li>
327
+ <li>When a session's calls are mostly re-sent in full rather than read from the model's cache, ForgeQE says so once.</li>
328
+ <li>At the token budget, the question says whether ForgeQE has run the test yet. An unattended write never asks and
329
+ stops there.</li>
330
+ <li>A job that stops says whether a test ever ran and which files it left changed in the repository.</li>
331
+ </ul>
166
332
  </li>
167
333
  <li>
168
- <p>Quill does not run the test itself: it may build or compile, then reports the test file and the command that runs only that test, and ForgeQE runs it. If one command it runs fails <code>stall_after</code> times in a row within its work (the same build again and again, say), ForgeQE stops that turn and sends the command and its last output back, asking it to change approach. If the same command stalls again, the job stops as a failure with that output in the notes. The same goes for going round in circles: re-reading files, outlines or <code>git diff</code> it has already seen, unchanged, <code>repeat_after</code> times, or changing files it already changed <code>edit_after</code> times without handing the test over, or making 3 edits that fail because the file no longer has the lines it expected (it then reads the file once and edits from that). Its turn stops and it is asked for the test, which ForgeQE then runs; if it does it again, the job stops.</p>
334
+ <p><strong>ForgeQE runs the test.</strong> It runs the command (with <code>CI=1</code>), checks the exit code, and watches the processes the
335
+ command starts for a browser launched by Playwright, Puppeteer, Selenium or Cypress.</p>
336
+ <ul>
337
+ <li>On a failure it sends the command, exit code and output back to Quill. The output is kept short so the error is
338
+ never cut off. The page dump Playwright puts into a failed assertion (&quot;Aria snapshot:&quot;, often thousands of lines)
339
+ is taken out and saved as <code>&lt;run&gt;/test-runs/attempt-N-page.aria.yml</code>. Then the start (where the first error and its
340
+ stack trace are) and the end (the summary) are sent. The full output is in <code>&lt;run&gt;/test-runs/attempt-N.log</code>, and the
341
+ prompt names both files.</li>
342
+ <li>A command that exits 0 without starting a browser also goes back: the test must drive the app in a browser. If the
343
+ repository's browser runs on another machine (Selenium Grid, a cloud service, a container), the agent says where
344
+ and the check is skipped.</li>
345
+ </ul>
346
+ </li>
347
+ <li>
348
+ <p><strong>A reviewer checks it.</strong> A passing test goes to a separate reviewer agent, which can read files and <code>git diff</code> but
349
+ not change anything.</p>
350
+ <ul>
351
+ <li>It checks the change against the goal and the test rules: every part of the goal done through the page and
352
+ asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in
353
+ the repository's configuration, no leftover files.</li>
354
+ <li>The changed files come inline in its prompt, so it reads nothing again. It does not ask to replace locators or
355
+ texts that came from the replay or the checks, since those matched the live site.</li>
356
+ <li>It judges only what this job changed. ForgeQE records the working tree before the job, so your uncommitted edits,
357
+ your untracked files and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the
358
+ review.</li>
359
+ <li>It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a
360
+ commented-out one, is a correctness problem.</li>
361
+ <li>Credentials come from the environment. The exception is a public demo login that the application itself shows to
362
+ anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repository's test data.</li>
363
+ <li>It gets the outlines of the classes the changed code uses, the repository's browser settings and the same
364
+ code-graph tools, so it checks reuse and settings without reading those files. The code graph also tells it what
365
+ the job added that it can check in the code: a new member that locates an element an existing member already
366
+ locates (to reuse instead), and new XPath or position-based locators.</li>
367
+ <li>If it finds problems, they go back to Quill as the next attempt.</li>
368
+ </ul>
369
+ <p>The terminal shows the exchange as it happens, in order: the reviewer's verdict with its reason and each issue
370
+ (✗ correctness, ~ coding standard) with the file and the fix it asks for; then why Quill tries again and what it is
371
+ fixing (the reviewer's issues, or the test's first error); then what Quill says it did and which files it changed;
372
+ then the next verdict:</p>
169
373
  </li>
170
374
  </ol>
171
- <p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now. For a recording, what the planner already looked up in the code goes to Quill too, and the planner's tokens count toward <code>max_tokens</code>. When a session's calls are mostly re-sent in full rather than read from the model's cache, ForgeQE says so once. At the token budget, the question says whether ForgeQE has run the test yet; an unattended write never asks and stops there. A job that stops says whether a test ever ran and which files it left changed in the repository.
172
- 6. ForgeQE runs that command (with <code>CI=1</code>) and checks the exit code, and it watches the processes the command starts for a browser launched by Playwright, Puppeteer, Selenium, or Cypress. On a failure it sends the command, exit code, and output back to Quill. The output is kept short so the error is never cut off: the page dump Playwright puts into a failed assertion (&quot;Aria snapshot:&quot;, often thousands of lines) is taken out and saved as <code>&lt;run&gt;/test-runs/attempt-N-page.aria.yml</code>, then the start (where the first error and its stack trace are) and the end (the summary) are sent; the full output is in <code>&lt;run&gt;/test-runs/attempt-N.log</code>, and the prompt names both files. A command that exits 0 without starting a browser also goes back: the test must drive the app in a browser. If the repo's browser runs on another machine (Selenium Grid, a cloud service, a container), the agent says where and the check is skipped.
173
- 7. A passing test then goes to a separate reviewer agent, which can read files and <code>git diff</code> but not change anything. It checks the change against the goal and the test rules: every part of the goal done through the page and asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in the repo's configuration, no leftover files. The changed files come inline in its prompt, so it reads nothing again, and it does not ask to replace locators or texts that came from the replay or the checks, since those matched the live site. It judges only what this job changed: ForgeQE records the working tree before the job, so your uncommitted edits, your untracked files, and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the review. It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a commented-out one, is a correctness problem. Credentials come from the environment, except a public demo login that the application itself shows to anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repo's test data. It gets the outlines of the classes the changed code uses, the repo's browser settings, and the same <code>code_*</code> tools, so it checks reuse and settings without reading those files. The code graph also tells it what the job added that it can check in the code: a new member that locates an element an existing member already locates (to reuse instead), and new XPath or position-based locators. If it finds problems, they go back to Quill as the next attempt. The terminal shows the exchange as it happens, in order: the reviewer's verdict with its reason and each issue (✗ correctness, ~ coding standard) with the file and the fix it asks for; then why Quill tries again and what it is fixing (the reviewer's issues, or the test's first error); then what Quill says it did and which files it changed; then the next verdict:</p>
174
375
  <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">⏺ Reviewer asked for changes attempt 1 of 5 · 1 to fix, 1 coding-standard
175
376
  </span></span><span class="ln"><span class="cmd"> ⎿ The test never checks that the pie chart is shown.
176
377
  </span></span><span class="ln"><span class="cmd"> ✗ Correctness · tests/PracticeTests.cs: No assertion on the SVG pie chart.
@@ -182,11 +383,30 @@
182
383
  </span></span><span class="ln"><span class="cmd"> ⎿ Quill (attempt 2): Added the pie chart assertion · changed tests/PracticeTests.cs, Pages/PracticePage.cs
183
384
  </span></span><span class="ln"><span class="cmd">⏺ Reviewer approved the test attempt 2 of 5
184
385
  </span></span></code></pre></div>
185
- <p>The Activities panel has one line for each verdict and attempt, and <code>forgeqe</code> commands outside the terminal UI print the same blocks.</p>
186
- <p>Quill cannot edit ForgeQE's files or run folders, and cannot run <code>git clean</code>, <code>git reset --hard</code>, <code>git stash</code>, <code>git restore</code>, or <code>git checkout -- &lt;path&gt;</code>. If it still removes a file that existed before the job, or reverts your uncommitted edits, ForgeQE puts the file back after that attempt and tells the agent.
187
- 8. The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (default 3; <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is told which run failed and why, and to make that step wait for the page. It stops as a failure after <code>max_attempts</code> attempts, when the job passes <code>code.max_tokens</code>, when the reviewer rejects a passing test twice, if the review cannot finish, when the test fails the same way three times in a row (the same output apart from numbers such as timings and line numbers; the second time, Quill is told its change did not change the failure and to look at the failing step before changing code), or straight away on an auth, API, or context-limit error from the model.</p>
188
- <p><code>blocked</code> is a last resort. The first time the agent reports that the app blocks it, ForgeQE sends it back to compare its browser with ForgeQE's and fix the difference; only a second blocked report, with what it compared, ends the job as blocked.</p>
189
- <p>The transcript shows the handover and Quill's work as it goes; files it writes or edits are marked ✎:</p>
386
+ <p>The Activities panel has one line for each verdict and attempt, and <code>forgeqe</code> commands outside the terminal UI print
387
+ the same blocks.</p>
388
+ <p>Quill cannot edit ForgeQE's files or run folders, and cannot run <code>git clean</code>, <code>git reset --hard</code>, <code>git stash</code>,
389
+ <code>git restore</code> or <code>git checkout -- &lt;path&gt;</code>. If it still removes a file that existed before the job, or reverts your
390
+ uncommitted edits, ForgeQE puts the file back after that attempt and tells the agent.
391
+ 8. <strong>Done, or stopped.</strong> The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test
392
+ passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (<strong>Settings › Code › Passes in a row
393
+ before a test counts</strong>; default 3, <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is
394
+ told which run failed and why, and to make that step wait for the page.</p>
395
+ <p>It stops as a failure:</p>
396
+ <ul>
397
+ <li>after <code>max_attempts</code> attempts;</li>
398
+ <li>when the job passes <code>code.max_tokens</code>;</li>
399
+ <li>when the reviewer rejects a passing test twice, or the review cannot finish;</li>
400
+ <li>when the test fails the same way three times in a row (the same output apart from numbers such as timings and line
401
+ numbers). The second time, Quill is told its change did not change the failure and to look at the failing step
402
+ before changing code;</li>
403
+ <li>straight away, on an auth, API or context-limit error from the model.</li>
404
+ </ul>
405
+ <p><strong>Blocked is a last resort.</strong> The first time the agent reports that the app blocks it, ForgeQE sends it back to compare
406
+ its browser with ForgeQE's and fix the difference. Only a second blocked report, with what it compared, ends the job as
407
+ blocked.</p>
408
+ <p><strong>What you see.</strong> In the web app, the chat shows each step under the agent doing it, with the handover between them. In
409
+ the terminal, the transcript shows the handover and Quill's work as it goes; files it writes or edits are marked ✎:</p>
190
410
  <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">┃
191
411
  </span></span><span class="ln"><span class="cmd">┃ ▸ Handing over to the coding agent browser agent → coding agent
192
412
  </span></span><span class="ln"><span class="cmd">┃
@@ -224,22 +444,56 @@
224
444
  </span></span><span class="ln"><span class="cmd">┃ Command npx playwright test tests/invoices.spec.ts
225
445
  </span></span><span class="ln"><span class="cmd">┃ Handoff .forgeqe/reports/20260928-172700/handoff.md
226
446
  </span></span></code></pre></div>
227
- <p>When no test was written, the Test row says why: the run did not pass, the session has <code>--no-code</code>, or the run was not handed to the coding agent.</p>
228
- <p>Quill uses the active <code>llms.json</code> profile, or, with <code>llm.routing: auto</code>, the profile the router picks for the <code>coding</code> area (<code>--profile</code> and <code>code.model</code> still win; see <a href="../area-setup/index.html#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>). The key stays in your environment: the agent runtime's config refers to it as <code>{env:WP_AZURE_API_KEY}</code> and never contains the value. An <code>auth: entra</code> profile reaches the model through ForgeQE's local token gateway (see <a href="../get-started/index.html#doc-how_to_use-signing-in-to-the-model-without-a-key-microsoft-entra-id">Signing in to the model without a key</a>). An Azure profile goes through the agent runtime's <code>azure</code> provider on <code>&lt;endpoint&gt;/openai/v1</code> (the Responses API, with the deployment as the model). <code>openai_compatible</code> and <code>ollama</code> profiles use their <code>base_url</code>. A <code>github_copilot</code> profile runs Quill through ForgeQE's Copilot gateway (see <a href="../get-started/index.html#doc-how_to_use-github-copilot-seats-as-the-model">GitHub Copilot seats as the model</a>). <code>code.model: github-copilot/...</code> is refused: the agent runtime's own Copilot provider signs in through a third-party app on your GitHub account. <code>code.model: provider/model</code> (or <code>--code-model</code>) uses one of the agent runtime's built-in providers instead, with that provider's usual key variable (for example <code>ANTHROPIC_API_KEY</code> for <code>anthropic/...</code>).</p>
229
- <p>Quill may edit files and run commands anywhere in the repo without asking. <code>git push</code> in any form is denied (pushing goes through ForgeQE's guarded <code>push_branch</code> tool, section 8), and it cannot touch files outside the repo except the run and memory directories, which it may read.</p>
230
- <p>More ways to run it:</p>
447
+ <p>When no test was written, the Test row says why: the run did not pass, the session has <code>--no-code</code>, or the run was not
448
+ handed to the coding agent.</p>
449
+ <p><strong>The model Quill uses.</strong> Quill uses the active <code>llms.json</code> profile, or, with <code>llm.routing: auto</code>, the profile the router
450
+ picks for the <code>coding</code> area (<code>--profile</code> and <code>code.model</code> still win; see <a href="../area-setup/index.html#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>).</p>
451
+ <ul>
452
+ <li>The key stays in your environment: Quill's settings refer to it by name (<code>{env:WP_AZURE_API_KEY}</code>) and never contain
453
+ the value.</li>
454
+ <li>An <code>auth: entra</code> profile reaches the model through ForgeQE's local token gateway (see
455
+ <a href="../get-started/index.html#doc-how_to_use-signing-in-to-the-model-without-a-key-microsoft-entra-id">Signing in to the model without a key</a>).</li>
456
+ <li>An Azure profile uses the Responses API on <code>&lt;endpoint&gt;/openai/v1</code>, with the deployment as the model.</li>
457
+ <li><code>openai_compatible</code> and <code>ollama</code> profiles use their <code>base_url</code>.</li>
458
+ <li>A <code>github_copilot</code> profile runs Quill through ForgeQE's Copilot gateway (see
459
+ <a href="../get-started/index.html#doc-how_to_use-github-copilot-seats-as-the-model">GitHub Copilot seats as the model</a>). <code>code.model: github-copilot/...</code> is refused,
460
+ because it would sign in through a third-party app on your GitHub account.</li>
461
+ <li><code>code.model: provider/model</code> (or <code>--code-model</code>) uses one of Quill's built-in providers instead, with that provider's
462
+ usual key variable (for example <code>ANTHROPIC_API_KEY</code> for <code>anthropic/...</code>).</li>
463
+ </ul>
464
+ <p><strong>What Quill may touch.</strong> Quill may edit files and run commands anywhere in the repository without asking. <code>git push</code> in
465
+ any form is denied (pushing goes through ForgeQE's guarded push, section 8). It cannot touch files outside the
466
+ repository, except the run and memory folders, which it may read.</p>
467
+ <p><strong>Writing a test for an earlier run.</strong> This is done at a terminal only:</p>
231
468
  <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 code --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the latest run in .forgeqe/reports/
232
469
  </span></span><span class="ln"><span class="cmd">forgeqe code .forgeqe/reports/20260928-172700 --repo ../app --attempts 3
233
- </span></span><span class="ln ln--pair"><span class="cmd">forgeqe run &quot;...&quot; --no-code</span><span class="pad"> </span><span class="cm"><span class="h">#</span> no tests for this request
234
470
  </span></span></code></pre></div>
235
- <p>In the shell, <code>forgeqe start --repo ../app</code> writes the tests in that repo instead of the current folder and <code>--no-code</code> turns them off; you can also just ask (&quot;write a test for the last run in ../app&quot;). Esc stops the agent the same way it stops a run.</p>
236
- <p>Exit codes for <code>forgeqe code</code> and for <code>forgeqe run --direct</code> with a repo: <code>0</code> test passed, <code>1</code> run or test failed, <code>2</code> stopped. The result (status, attempts, test file, command, what was reused and changed, the browsers ForgeQE saw, the review, the last test output, tokens) is saved as <code>code.json</code> in the run directory, next to <code>handoff.md</code>.</p>
237
- <p>If Quill's job is cut off (ForgeQE closed, the machine restarted, you stopped it, or the model could not be reached), run it again for the same run and repo, for example <code>forgeqe code .forgeqe/reports/20260928-172700 --repo ../app</code>. Quill reopens the same session, with everything it read and said, and carries on with the files it already wrote; it doesn't read the repo again, and ForgeQE uses the Playwright replay it already finished. The session is kept in <code>scribe-session.json</code> in the run folder until the job ends with a result.</p>
238
- </div>
471
+ <p>Exit codes for <code>forgeqe code</code>, and for <code>forgeqe run --direct</code> with a repository: <code>0</code> test passed, <code>1</code> run or test failed,
472
+ <code>2</code> stopped. The result (status, attempts, test file, command, what was reused and changed, the browsers ForgeQE saw,
473
+ the review, the last test output, tokens) is saved as <code>code.json</code> in the run folder, next to <code>handoff.md</code>.</p>
474
+ <p><strong>Carrying on after a cut-off.</strong> Quill's job can be cut off: ForgeQE closed, the machine restarted, you stopped it, or
475
+ the model could not be reached. Start it again for the same run and repository, and Quill reopens the same session, with
476
+ everything it read and said, and carries on with the files it already wrote. It does not read the repository again, and
477
+ ForgeQE uses the Playwright replay it already finished. The session is kept in <code>scribe-session.json</code> in the run folder
478
+ until the job ends with a result.</p>
479
+ <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>
480
+ <ol>
481
+ <li>Open <strong>Record</strong> and open the recording.</li>
482
+ <li>Press <strong>Write the test</strong> (or <strong>Update the test</strong>) again. It reopens Quill's session and carries on from there.</li>
483
+ </ol>
484
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
485
+ <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 code .forgeqe/reports/20260928-172700 --repo ../app
486
+ </span></span></code></pre></div>
487
+ </div></div></div>
239
488
  </section>
240
489
  <section class="doc" id="doc-how_to_use-how-quill-writes-a-test">
241
490
  <h4>How Quill writes a test</h4>
242
- <div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before Quill writes anything, <code>write_test</code> measures what the repository's tests already cover of the run, from evidence rather than guesswork: each step and check the browser agent made on an element is matched, through page memory, to the page-object member that locates it, and the code graph says which tests reach that member (through the page methods they call, or a property they assert, such as <code>Expect(practicePage.AjaxStatus)</code>). Steps on elements no page object locates yet are listed as not measured, since a test may do them its own way. Then:</p>
491
+ <div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before Quill writes anything, ForgeQE measures what the repository's
492
+ tests already cover of the run, from evidence rather than guesswork. Each step and check the browser agent made on an
493
+ element is matched, through page memory, to the page-object member that locates it, and the repository's code says which
494
+ tests reach that member (through the page methods they call, or a property they assert, such as
495
+ <code>Expect(practicePage.AjaxStatus)</code>). Steps on elements no page object locates yet are listed as not measured, since a test
496
+ may do them its own way. Then:</p>
243
497
  <div class="tbl tbl--cols-2"><table>
244
498
  <thead>
245
499
  <tr><th>What it finds</th><th>What happens</th></tr>
@@ -251,60 +505,173 @@
251
505
  <tr><td data-label="What it finds">Nothing covers much</td><td data-label="What happens"><strong>New</strong>: a new test, reusing the page objects and helpers as before</td></tr>
252
506
  </tbody>
253
507
  </table></div>
254
- <p>A card says which it did and why (<em>Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing</em>). Say how when you know (&quot;extend the login test&quot;, &quot;write a separate test&quot;, &quot;update it&quot;) and ForgeQE's agent passes that on without asking. In every mode Quill adds page-object members rather than changing what an existing member does for the other tests that use it.</p>
255
- <p><strong>Copied code is measured.</strong> Before Quill starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in the test (<code>tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26</code>), and judges it by the test rules: a copy that should reuse what is there is an issue Quill fixes. <code>code.duplicates: false</code> turns it off.</p>
256
- <p><strong>The same flow asked again.</strong> When a session writes tests and you ask for a flow an earlier job already wrote a test for, ForgeQE runs that test first, before any browser run. If it passes in a real browser, that is the answer: no browser run, no Quill, and no new test file, in the seconds the test takes (<em>✓ Existing test passed · 19s · no browser run or new test needed</em>). If it fails, the flow runs in the browser and Quill updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for &quot;a fresh run&quot; or &quot;a new test&quot; to skip the reuse.</p>
257
- <p><strong>The run as a test would do it.</strong> The browser agent works through the same page a test meets, and the handoff tells Quill everything it did on the way:</p>
258
- <ul>
259
- <li>A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so the agent closes it as a user would and that step is in the flow; the step after says what covered it, and &quot;What covered the page before a click&quot; lists them. The engine library would otherwise click the element from JavaScript, which a test cannot do. What it still does from a script (a click, typing to the page) is named on its step.</li>
260
- <li>Locators are the ones Playwright finds: no link role for an <code>&lt;a&gt;</code> without <code>href</code> (Chrome calls it a link, Playwright does not), icon-font characters kept out of names (a name with one becomes a <code>role_pattern</code>), and a control that repeats on every row or card gets a locator scoped to its row (<code>#product-1 a.cart_quantity_delete</code>).</li>
261
- <li>An element in a frame says which frame, and the replay reaches it through <code>frameLocator</code>. Advertisements (Google's full-page ads, ad frames) are marked, left out of the replay, and &quot;Ads on these pages&quot; says to block the ad hosts in the test instead of closing them.</li>
262
- <li>A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the test will (<code>suite.restore_sessions: true</code> keeps them; a login with no username and password to sign in with keeps its session, the only way in) and from the case's own start page (its URL, first step, description, or preconditions). When a run did start with saved sessions, &quot;State the run started with&quot; says so.</li>
263
- </ul>
264
- <p><strong>When the flow cannot be reproduced.</strong> If ForgeQE's own replay of the run could not reach the run's final page and Quill's test fails too, Quill is told where the replay stopped and what was open on the page, since that is usually a pop-up, consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart), and gets another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded.</p>
265
- <p><strong>Why a test failed.</strong> When ForgeQE's run of Quill's test fails, the ✗ line and the next attempt say why in the test's own words: dotnet test's Error Message, pytest's <code>E</code> lines, or the error with its Expected and Received values (Playwright, Jest, JUnit), not the runner's summary line.</p>
266
- <p><strong>Keeping Quill's cost down.</strong> ForgeQE reads the repository's test setup itself before Quill starts (stack, settings files and their browser values, the test id attribute, base classes, page objects and their methods, one test command) and hands it over, so Quill does not discover it with dozens of file reads. Each attempt after the first starts a fresh session from a summary of the job (handoff, files changed, what each attempt did, the latest failure), so later attempts cost about what the first did. The summary has a &quot;Tried already, and did not work&quot; list: for each failed attempt, what Quill said it did (it reports each change in <code>tried</code>), how it failed, the locator the test was waiting for and the element that covered it and took the click, both read from the test's output, and whether an earlier attempt already failed on that locator. Quill must not try those again in the same form and must say what it does differently. <code>forgeqe heal</code> keeps the same list across its attempts. <code>code.max_attempts</code> (default 3) and <code>code.max_tokens</code> (default 1,500,000; <code>0</code> turns it off) cap a job, and the token budget is checked during an attempt too, so one long attempt is stopped when the total passes it. Cached input counts at its share of the profile's input price (a session re-reads its own context, and that is most of its input), and in full when no cached price is known, such as with another <code>code.model</code>. The reviewer sorts its issues into correctness (the test does not test what the goal says, or not reliably) and coding standards (test data or credentials in a page object, naming, hard waits, leftovers). Coding standards never fail a test that works: it is accepted, and the coding agent gets one more round (not counted in <code>max_attempts</code>) to fix them; if that round breaks the test, ForgeQE puts back the version that passed and lists the standards issues in the notes (<code>code.tidy: false</code> skips the round). A test the reviewer rejects twice for correctness stops the job with its issues, since that usually means the test case and the page disagree. When a test passed and the reviewer sent it back, and the changes for the review then break it (or the attempts or the token budget run out first), ForgeQE puts back the version that passed: the result is passed but not approved, with the reviewer's issues in the notes, so you get a working test to finish instead of none. Under each step, the handoff shows that step's part of the page (its section and neighbours, from the replay's page snapshot) instead of whole snapshots. When a test fails, ForgeQE shows the failing element on the test's page at the failure and on the replay's page, so most failures are fixed without opening a browser. Quill's live browser is switched on only when the same failure repeats, or from the start when ForgeQE's own replay got through the flow in no setup (Quill would otherwise patch the failing steps blind until a test ran), and it does not send a page snapshot after every click or keystroke. <code>code.max_steps</code> (default 50) caps the tool calls in one of Quill's turns. <code>code.review_profile</code> runs the reviewer on a cheaper llms.json profile.</p>
267
- <p><strong>Quill's rulebook: the same mistake once.</strong> When a job passes after a failed test run or a reviewer's change, Quill's report gives up to three one-line rules that would have avoided the mistake (&quot;Wait for the cart badge with toHaveText before clicking Checkout; it updates after a request&quot;). ForgeQE keeps them in <code>.forgeqe/scribe-rules.json</code> in the repository, and every attempt of later jobs, and every healing session, starts with them. A lesson from a job that did not pass, or that passed at once, is not kept: only a fix that worked becomes a rule. The book stays small, since it is sent with each model call: at most 15 rules of one line each; a lesson learned again is merged into its rule (shown as &quot;learned 3 times&quot;) instead of added; when it is full, the rule confirmed least and longest ago goes, and a rule not learned again for 180 days expires. The rules are the coding agent's own words, so a rule with a link, something like a token, a destructive command, or wording that tells an agent to drop its instructions is refused, and the agents are told they are hints that never override their instructions or the team's guardrails. Commit the file to share the rules with the team and see each change in review; edit or delete a rule there (the agents cannot change <code>.forgeqe</code>). ForgeQE says each new rule as it learns it (<code>Learned for next time: …</code>). <code>code.rulebook: false</code> turns it off.</p>
508
+ <p>A card says which it did and why (<em>Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing</em>). Say how when you
509
+ know (&quot;extend the login test&quot;, &quot;write a separate test&quot;, &quot;update it&quot;) and ForgeQE's agent passes that on without asking.
510
+ In every mode, Quill adds page-object members rather than changing what an existing member does for the other tests that
511
+ use it.</p>
512
+ <p><strong>Copied code is measured.</strong> Before Quill starts, ForgeQE notes the copies the repository already has. When the test
513
+ passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in
514
+ the test (<code>tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26</code>), and judges it by the test rules: a
515
+ copy that should reuse what is there is an issue Quill fixes. To turn it off, set <code>code.duplicates: false</code> (in the web
516
+ app, <strong>Settings › Code</strong>, <strong>Check for copied code</strong>).</p>
517
+ <p><strong>The same flow asked again.</strong> When a session writes tests and you ask for a flow an earlier job already wrote a test for,
518
+ ForgeQE runs that test first, before any browser run.</p>
519
+ <ul>
520
+ <li>If it passes in a real browser, that is the answer: no browser run, no Quill, and no new test file, in the seconds the
521
+ test takes (<em>✓ Existing test passed · 19s · no browser run or new test needed</em>).</li>
522
+ <li>If it fails, the flow runs in the browser and Quill updates that test instead of writing another.</li>
523
+ <li>Goals count as the same flow when they share their content words (endings, case and phrasing aside) and the new goal
524
+ keeps everything the earlier one checked. The same steps with a different final check, a shorter flow, or another site
525
+ are a new flow. The agent also runs fresh when you ask for a check the earlier test does not have.</li>
526
+ <li>Ask for &quot;a fresh run&quot; or &quot;a new test&quot; to skip the reuse.</li>
527
+ </ul>
528
+ <p><strong>The run as a test would do it.</strong> The browser agent works through the same page a test meets, and the handoff tells
529
+ Quill everything it did on the way:</p>
530
+ <ul>
531
+ <li>A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so
532
+ the agent closes it as a user would and that step is in the flow. The step after says what covered it, and &quot;What
533
+ covered the page before a click&quot; lists them. What the agent still does from a script (a click, typing to the page) is
534
+ named on its step, since a test cannot do it that way.</li>
535
+ <li>Locators are the ones Playwright finds: no link role for an <code>&lt;a&gt;</code> without <code>href</code> (Chrome calls it a link, Playwright
536
+ does not), icon-font characters kept out of names (a name with one becomes a <code>role_pattern</code>), and a control that
537
+ repeats on every row or card gets a locator scoped to its row (<code>#product-1 a.cart_quantity_delete</code>).</li>
538
+ <li>An element in a frame says which frame, and the replay reaches it through <code>frameLocator</code>. Advertisements (Google's
539
+ full-page ads, ad frames) are marked and left out of the replay, and &quot;Ads on these pages&quot; says to block the ad hosts in
540
+ the test instead of closing them.</li>
541
+ <li>A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the
542
+ test will (<code>suite.restore_sessions: true</code> keeps them; a login with no username and password to sign in with keeps its
543
+ session, the only way in), and from the case's own start page (its URL, first step, description, or preconditions).
544
+ When a run did start with saved sessions, &quot;State the run started with&quot; says so.</li>
545
+ </ul>
546
+ <p><strong>When the flow cannot be reproduced.</strong> If ForgeQE's own replay of the run could not reach the run's final page and
547
+ Quill's test fails too, Quill is told where the replay stopped and what was open on the page. That is usually a pop-up,
548
+ consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart). Quill gets
549
+ another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails
550
+ the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded.</p>
551
+ <p><strong>Why a test failed.</strong> When ForgeQE's run of Quill's test fails, the ✗ line and the next attempt say why in the test's own
552
+ words: dotnet test's Error Message, pytest's <code>E</code> lines, or the error with its Expected and Received values (Playwright,
553
+ Jest, JUnit), not the runner's summary line.</p>
554
+ <p><strong>Keeping Quill's cost down.</strong></p>
555
+ <ul>
556
+ <li><strong>The setup, read for Quill.</strong> ForgeQE reads the repository's test setup itself before Quill starts (stack, settings
557
+ files and their browser values, the test id attribute, base classes, page objects and their methods, one test command)
558
+ and hands it over, so Quill does not discover it with dozens of file reads.</li>
559
+ <li><strong>A fresh session per attempt.</strong> Each attempt after the first starts from a summary of the job (handoff, files changed,
560
+ what each attempt did, the latest failure), so later attempts cost about what the first did.</li>
561
+ <li><strong>Tried already.</strong> The summary has a &quot;Tried already, and did not work&quot; list: for each failed attempt, what Quill said
562
+ it did, how it failed, the locator the test was waiting for and the element that covered it and took the click, and
563
+ whether an earlier attempt already failed on that locator. Quill must not try those again in the same form and must say
564
+ what it does differently. <code>forgeqe heal</code> keeps the same list across its attempts.</li>
565
+ <li><strong>Limits.</strong> <code>code.max_attempts</code> (default 3) and <code>code.max_tokens</code> (default 1,500,000; <code>0</code> turns it off) cap a job
566
+ (<strong>Settings › Code</strong>, <strong>Attempts</strong> and <strong>Token limit per job</strong>). The token budget is checked during an attempt too, so
567
+ one long attempt is stopped when the total passes it. Cached input counts at its share of the model's input price, and
568
+ in full when no cached price is known, such as with another <code>code.model</code>. <code>code.max_steps</code> (default 50) caps the tool
569
+ calls in one of Quill's turns.</li>
570
+ <li><strong>Correctness first.</strong> The reviewer sorts its issues into correctness (the test does not test what the goal says, or
571
+ not reliably) and coding standards (test data or credentials in a page object, naming, hard waits, leftovers). Coding
572
+ standards never fail a test that works: it is accepted, and Quill gets one more round (not counted in <code>max_attempts</code>)
573
+ to fix them. If that round breaks the test, ForgeQE puts back the version that passed and lists the standards issues in
574
+ the notes (<code>code.tidy: false</code> skips the round).</li>
575
+ <li><strong>Rejected twice.</strong> A test the reviewer rejects twice for correctness stops the job with its issues, since that usually
576
+ means the test case and the page disagree.</li>
577
+ <li><strong>A working test kept.</strong> When a test passed and the reviewer sent it back, and the changes for the review then break it
578
+ (or the attempts or the token budget run out first), ForgeQE puts back the version that passed. The result is passed
579
+ but not approved, with the reviewer's issues in the notes, so you get a working test to finish instead of none.</li>
580
+ <li><strong>Less to read.</strong> Under each step, the handoff shows that step's part of the page (its section and neighbours) instead
581
+ of whole snapshots. When a test fails, ForgeQE shows the failing element on the test's page at the failure and on the
582
+ replay's page, so most failures are fixed without opening a browser.</li>
583
+ <li><strong>A live browser only when needed.</strong> Quill's live browser is switched on only when the same failure repeats, or from
584
+ the start when ForgeQE's own replay got through the flow in no setup. It does not send a page snapshot after every click
585
+ or keystroke.</li>
586
+ <li><strong>A cheaper reviewer.</strong> <code>code.review_profile</code> runs the reviewer on a cheaper model (<strong>Settings › Code</strong>, <strong>Checker's
587
+ model</strong>).</li>
588
+ </ul>
589
+ <p><strong>Quill's rulebook: the same mistake once.</strong> When a job passes after a failed test run or a reviewer's change, Quill's
590
+ report gives up to three one-line rules that would have avoided the mistake (&quot;Wait for the cart badge with toHaveText
591
+ before clicking Checkout; it updates after a request&quot;). ForgeQE keeps them in <code>.forgeqe/scribe-rules.json</code> in the
592
+ repository, and every attempt of later jobs, and every healing session, starts with them.</p>
593
+ <ul>
594
+ <li>Only a fix that worked becomes a rule: a lesson from a job that did not pass, or that passed at once, is not kept.</li>
595
+ <li>The book stays small, since it is sent with each model call: at most 15 rules of one line each. A lesson learned again
596
+ is merged into its rule (shown as &quot;learned 3 times&quot;). When it is full, the rule confirmed least and longest ago goes,
597
+ and a rule not learned again for 180 days expires.</li>
598
+ <li>The rules are the coding agent's own words, so a rule with a link, something like a token, a destructive command, or
599
+ wording that tells an agent to drop its instructions is refused. The agents are told they are hints that never override
600
+ their instructions or the team's guardrails.</li>
601
+ <li>Commit the file to share the rules with the team and see each change in review; edit or delete a rule there (the agents
602
+ cannot change <code>.forgeqe</code>).</li>
603
+ <li>ForgeQE says each new rule as it learns it (<code>Learned for next time: …</code>).</li>
604
+ <li>To turn it off, set <code>code.rulebook: false</code> (<strong>Settings › Code</strong>, <strong>Learn from its own mistakes</strong>).</li>
605
+ </ul>
268
606
  </div>
269
607
  </section>
270
608
  <p class="see">See <a href="../area-setup/index.html#doc-how_to_use-generated-code">Generated code</a>.</p>
271
609
  </div>
272
- </article>
273
610
  <article class="spec feat" id="cap-heal-tests">
274
611
  <div class="hd"><span class="mono">Automated tests</span><h3>Heal failing tests</h3></div>
275
612
  <p class="ds">Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead.</p>
276
613
  <div class="facts">
277
614
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Heal the failing tests in ../app</li></ul></div>
278
- <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li></ul></div>
615
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li></ul></div>
279
616
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>heal_tests</code></p></div>
280
617
  </div>
281
- <div class="detail"><span class="mono">In detail</span>
282
- <section class="doc" id="doc-how_to_use-fixing-broken-tests">
618
+
619
+ </article>
620
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-fixing-broken-tests">
283
621
  <h4>Fixing broken tests</h4>
284
- <div class="prose"><p>When a redesign or a renamed button breaks tests, <code>forgeqe heal</code> fixes them, or tells you the app is what broke:</p>
622
+ <div class="prose"><p>When a redesign or a renamed button breaks tests, ForgeQE fixes them, or tells you the app is what broke.</p>
623
+ <p><strong>Healing failing tests.</strong> Give the command that runs the tests, or leave it to ForgeQE: it uses <strong>Settings › Code ›
624
+ Test command</strong> (<code>code.test_command</code>), or finds the command itself.</p>
625
+ <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>
626
+ <ol>
627
+ <li>Open <strong>New chat</strong>.</li>
628
+ <li>Say what is failing, for example <code>the checkout tests are failing after the redesign, fix them</code>.</li>
629
+ <li>Answer ForgeQE's questions in the chat as it works.</li>
630
+ </ol>
631
+ <p>The failures of a regression pack are healed from the pack's triage on the <strong>Regression</strong> page (see
632
+ <a href="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a>).</p>
633
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
285
634
  <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 heal --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the command from code.test_command, or the agent finds it
286
635
  </span></span><span class="ln"><span class="cmd">forgeqe heal &quot;npx playwright test tests/checkout&quot; --repo ../app
287
636
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe heal -- npx playwright test --project=chromium</span><span class="pad"> </span><span class="cm"><span class="h">#</span> everything after -- is the command
288
637
  </span></span></code></pre></div>
638
+ <p>In the shell or with <code>forgeqe run</code>, &quot;the checkout tests are failing after the redesign, fix them&quot; does the same through
639
+ ForgeQE's agent.</p>
640
+ </div></div><p><strong>Settings.</strong></p>
289
641
  <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">code:
290
642
  </span></span><span class="ln"><span class="cmd"> repo: ../app
291
643
  </span></span><span class="ln ln--pair"><span class="cmd"> test_command: npx playwright test</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional
292
644
  </span></span></code></pre></div>
645
+ <p><strong>How it heals.</strong></p>
293
646
  <ol>
294
647
  <li>ForgeQE runs the command. If it passes, there is nothing to heal and no model is called.</li>
295
- <li>Quill starts in the repo as a healing agent, with the failing output. For each failing test it reads the test and the page objects it uses, then re-runs the test's flow in the real browser with ForgeQE's <code>browser_run</code> (the goal in plain words, not the old selectors).</li>
296
- <li>If the browser run passes, the test is out of date. The agent reads that run's steps and locators with <code>run_details</code>, updates the test (in the page object when the locators live there), and runs it with <code>run_test</code>.</li>
297
- <li>If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the failure is reported as an app bug.</li>
648
+ <li>Quill starts in the repository as a healing agent, with the failing output. For each failing test it reads the test
649
+ and the page objects it uses. Then it runs the test's flow again in the real browser with ForgeQE's browser agent,
650
+ from the goal in plain words, not the old selectors.</li>
651
+ <li>If the browser run passes, the test is out of date. The agent reads that run's steps and locators, updates the test
652
+ (in the page object when the locators live there), and runs it.</li>
653
+ <li>If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the
654
+ failure is reported as an app bug.</li>
298
655
  <li>It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass.</li>
299
- <li>ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the agent with the output, and so does any other failure left in the whole run, until everything passes or <code>code.max_attempts</code> rounds are used.</li>
656
+ <li>ForgeQE runs each healed test's own command, then the whole command. A healed test that still fails goes back to the
657
+ agent with the output, and so does any other failure left in the whole run, until everything passes or
658
+ <code>code.max_attempts</code> rounds are used.</li>
300
659
  </ol>
301
- <p><strong>Limits.</strong> A heal is capped by <code>code.max_attempts</code>, by each attempt's deadline (one browser run and two test runs), and
302
- by <code>code.max_tokens</code> for the whole job, as a coding job is. At each of these, and at a browser run's steps or time, it
303
- asks whether to carry on when someone can answer: in a terminal, in a chat, or on the Regression page for
304
- <code>forgeqe pack heal</code> (the question shows under the job's output, with Carry on and Stop here). At the deadline or the
305
- token budget the agent carries on in the same session, keeping what it worked out; after the last attempt, a yes gives
306
- it as many attempts again, from what it changed so far. Stop keeps its changes. No answer in 10 minutes on the page is
307
- a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
660
+ <p><strong>Limits.</strong> A heal is capped, as a coding job is:</p>
661
+ <ul>
662
+ <li>by <code>code.max_attempts</code>;</li>
663
+ <li>by each attempt's deadline (one browser run and two test runs);</li>
664
+ <li>by <code>code.max_tokens</code> for the whole job.</li>
665
+ </ul>
666
+ <p>At each of these, and at a browser run's steps or time, it asks whether to carry on when someone can answer: in a
667
+ terminal, in a chat, or on the <strong>Regression</strong> page for a pack's heal (the question shows under the job's output, with
668
+ <strong>Carry on</strong> and <strong>Stop here</strong>).</p>
669
+ <ul>
670
+ <li>At the deadline or the token budget, the agent carries on in the same session, keeping what it worked out.</li>
671
+ <li>After the last attempt, a yes gives it as many attempts again, from what it changed so far.</li>
672
+ <li><strong>Stop here</strong> keeps its changes.</li>
673
+ <li>No answer in 10 minutes on the page is a stop. <code>--yes</code>, a schedule or CI stops at the limit.</li>
674
+ </ul>
308
675
  <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 runs the tests: npx playwright test
309
676
  </span></span><span class="ln"><span class="cmd"> ✗ Tests failed, exit 1 (41s)
310
677
  </span></span><span class="ln"><span class="cmd"> ▸ Quill (azure/gpt-5.4) is healing the failing tests in app
@@ -329,23 +696,52 @@ a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
329
696
  </span></span><span class="ln"><span class="cmd">┃ Changed tests/pages/LoginPage.ts
330
697
  </span></span><span class="ln"><span class="cmd">┃ Report .forgeqe/reports/heal/20260929-101500/heal.md
331
698
  </span></span></code></pre></div>
332
- <p>The report is <code>heal.md</code> and <code>heal.json</code> in <code>.forgeqe/reports/heal/&lt;time&gt;/</code>: each test's verdict and reason, the files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit codes: <code>0</code> the tests pass (or nothing needed healing), <code>1</code> some still fail, <code>2</code> stopped. In the shell or with <code>forgeqe run</code>, &quot;the checkout tests are failing after the redesign, fix them&quot; does the same through ForgeQE's agent.</p>
699
+ <p><strong>The report.</strong> <code>heal.md</code> and <code>heal.json</code> in <code>.forgeqe/reports/heal/&lt;time&gt;/</code> hold each test's verdict and reason, the
700
+ files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit
701
+ codes: <code>0</code> the tests pass (or nothing needed healing), <code>1</code> some still fail, <code>2</code> stopped.</p>
333
702
  </div>
334
703
  </section>
335
704
  </div>
336
- </article>
337
705
  <article class="spec feat" id="cap-migrate-tests">
338
706
  <div class="hd"><span class="mono">Automated tests</span><h3>Migrate a test suite</h3></div>
339
707
  <p class="ds">Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO, Selenium or Robot Framework), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working.</p>
340
708
  <div class="facts">
341
709
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Migrate the Selenium tests in tests/ to Playwright TypeScript</li></ul></div>
342
- <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a git repository with the tests to migrate</span></li></ul></div>
710
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a git repository with the tests to migrate</span></li></ul></div>
343
711
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>migrate_tests</code></p></div>
344
712
  </div>
345
- <div class="detail"><span class="mono">In detail</span>
346
- <section class="doc" id="doc-how_to_use-migrating-a-test-suite">
713
+
714
+ </article>
715
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-migrating-a-test-suite">
347
716
  <h4>Migrating a test suite</h4>
348
- <div class="prose"><p><code>forgeqe migrate</code> moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#) or Robot Framework (with the Browser library). <code>forgeqe migrate targets</code> lists them, and a project adds its own (below). It always starts with a plan, which writes nothing:</p>
717
+ <div class="prose"><p>ForgeQE moves a test suite to another framework or language.</p>
718
+ <div class="tbl tbl--cols-2"><table>
719
+ <thead>
720
+ <tr><th>From</th><th>To</th></tr>
721
+ </thead>
722
+ <tbody>
723
+ <tr><td data-label="From">Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework, Playwright</td><td data-label="To">Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#), Robot Framework (with the Browser library)</td></tr>
724
+ </tbody>
725
+ </table></div>
726
+ <p><code>forgeqe migrate targets</code> lists the targets, and a project can add its own (see &quot;A framework ForgeQE does not ship&quot;
727
+ below). A migration always starts with a plan, which writes
728
+ nothing. A person confirms the plan, then it runs.</p>
729
+ <p><strong>Planning and running a migration.</strong></p>
730
+ <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>
731
+ <ol>
732
+ <li>Open <strong>Migration</strong>. On <strong>Agent</strong>, describe the migration in your words; or open <strong>Migrations</strong> and press <strong>New</strong>.</li>
733
+ <li><strong>Source</strong>: pick <strong>This project</strong>, <strong>Git</strong>, <strong>Folder</strong>, <strong>Upload</strong> or <strong>Paste</strong>. For a private git repository, pick
734
+ the <strong>Access token</strong> by its saved name, or <strong>Add a token</strong>. The detected <strong>Framework</strong> shows here; for a stack
735
+ ForgeQE does not know, pick <strong>Other (name it)</strong>.</li>
736
+ <li><strong>Target</strong>: pick the framework and language the tests move to.</li>
737
+ <li><strong>Instructions</strong>: anything the agent should follow, such as &quot;Page objects go in pages/, one class per page&quot;.</li>
738
+ <li><strong>Review</strong>: read what is possible and accept the limits.</li>
739
+ <li>Press <strong>Start</strong>, type the plan's id, and press <strong>Start</strong> again.</li>
740
+ </ol>
741
+ <p>The migration's page follows the job: its stages, every file, the tests (<strong>Fix</strong> sends one to the fixing agent with a
742
+ note), <strong>Compare</strong> with the source and target side by side, and the activity as it happens. <strong>Run</strong> runs every migrated
743
+ test again.</p>
744
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
349
745
  <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 migrate plan --from tests --to playwright-typescript</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the source stack is detected
350
746
  </span></span><span class="ln"><span class="cmd">forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only &quot;checkout/**&quot; \
351
747
  </span></span><span class="ln"><span class="cmd"> --instructions &quot;Page objects go in pages/, one class per page&quot;
@@ -358,43 +754,104 @@ a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
358
754
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate verify mig-… [--workspace ws-…]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run every migrated test again (no model)
359
755
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate fix mig-… --unit u006 --note &quot;The payment page opens in a new tab&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the fixing agent on one file
360
756
  </span></span></code></pre></div>
361
- <p>The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that
362
- holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder
363
- anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into
364
- a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and
365
- dependency folders are not copied.</p>
366
- <p>A stack ForgeQE does not know is named with <code>--stack other</code> (on the Migration page, &quot;Other (name it)&quot; under Framework):
367
- <code>--tests</code> and <code>--support</code> give the file types of its tests and support code as plain extensions (<code>*.jmx</code>, <code>*.groovy</code>,
368
- never a pattern, a credential file or a binary), and <code>--source-name</code> what to call it. Those files become the units; test
369
- data they name is copied; nothing else is migrated. The agent reads each file as it is, and the plan names this as a
370
- limit to accept: ForgeQE runs none of its checks for known stacks first, and for a format it does not read itself, the
371
- checks after migration only ask that the test declares a test, skips none and passes. ForgeQE reads JMeter test plans
372
- (<code>.jmx</code>) itself, as untrusted XML (a document type or entity declaration is refused, sizes capped): the agent gets an
373
- outline of each request, assertion, capture, CSV data set and script beside the file, with credential headers and
374
- secret-named values never repeated and Groovy or BeanShell quoted as data, never run; each request becomes a call with
375
- the target's own HTTP client, and load settings (threads, ramp-up, timers) are named as a limit and dropped. The values
376
- the plan's assertions expect (never one under &quot;not&quot;) are what the mutation oracle below corrupts, so a migrated test
377
- that ignores them fails, and one that never mentions them is reported.</p>
757
+ <p>In the shell, &quot;migrate our Selenium tests to Playwright&quot; makes the plan and shows it. You confirm it yourself, and
758
+ ForgeQE's agent can then run it or add the job. Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none,
759
+ <code>2</code> stopped.</p>
760
+ </div></div><p><strong>Where the tests can come from.</strong></p>
761
+ <ul>
762
+ <li>This project.</li>
763
+ <li>A git repository (https or ssh). A token is named only by the credential that holds it. It is passed to git through
764
+ its environment, never in the URL, the command line or the clone's config.</li>
765
+ <li>A folder anywhere on this computer.</li>
766
+ <li>Files uploaded or pasted on the <strong>Migration</strong> page.</li>
767
+ </ul>
768
+ <p>A source outside the project is copied into a workspace of its own under ForgeQE's home and migrated there; the original
769
+ is never changed. Links, hidden files and dependency folders are not copied.</p>
770
+ <p><strong>A stack ForgeQE does not know.</strong> Name it with <code>--stack other</code> (on the page, <strong>Other (name it)</strong> under <strong>Framework</strong>):</p>
771
+ <ul>
772
+ <li><code>--tests</code> and <code>--support</code> give the file types of its tests and support code, as plain extensions (<code>*.jmx</code>,
773
+ <code>*.groovy</code>; never a pattern, a credential file or a binary).</li>
774
+ <li><code>--source-name</code> says what to call it.</li>
775
+ </ul>
776
+ <p>Those files become the units, and test data they name is copied; nothing else is migrated. The agent reads each file as
777
+ it is, and the plan names this as a limit to accept: ForgeQE runs none of its checks for known stacks first. For a
778
+ format it does not read itself, the checks after migration only ask that the test declares a test, skips none and
779
+ passes.</p>
780
+ <p>ForgeQE reads JMeter test plans (<code>.jmx</code>) itself, as untrusted XML (a document type or entity declaration is refused,
781
+ sizes capped). The agent gets an outline of each request, assertion, capture, CSV data set and script beside the file:
782
+ credential headers and secret-named values are never repeated, and Groovy or BeanShell is quoted as data, never run.
783
+ Each request becomes a call with the target's own HTTP client. Load settings (threads, ramp-up, timers) are named as a
784
+ limit and dropped. The values the plan's assertions expect (never one under &quot;not&quot;) are what the proof in step 5 below
785
+ makes wrong, so a migrated test that ignores them fails, and one that never mentions them is reported.</p>
786
+ <p><strong>How a migration goes.</strong></p>
378
787
  <ol>
379
- <li><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions (<code>test_login.py</code> for pytest, <code>LoginTest.java</code> for JUnit, <code>login.cy.ts</code> for Cypress), and checks what is possible.</li>
380
- <li><strong>What is possible.</strong> A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all.</li>
381
- <li><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the Migration page of <code>forgeqe web</code>. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.</li>
382
- <li><strong>Run.</strong> The setup step makes the target folder a project of its own (<code>package.json</code> and <code>playwright.config.ts</code>, <code>requirements.txt</code> and <code>conftest.py</code>, <code>pom.xml</code>, a <code>.csproj</code>). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>, <code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back to the agent with the output, up to <code>code.max_attempts</code> times.</li>
383
- <li><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
788
+ <li>
789
+ <p><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed,
790
+ never followed), test files, the support code they import, feature files and test data. It orders the files so
791
+ support code comes before the tests that use it, names each target file by the target's conventions
792
+ (<code>test_login.py</code> for pytest, <code>LoginTest.java</code> for JUnit, <code>login.cy.ts</code> for Cypress), and checks what is possible.</p>
793
+ </li>
794
+ <li>
795
+ <p><strong>What is possible.</strong></p>
796
+ <ul>
797
+ <li>A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to
798
+ migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn,
799
+ dotnet) missing on this computer.</li>
800
+ <li>A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium
801
+ cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried
802
+ over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit
803
+ names the files it affects; confirming accepts them all.</li>
804
+ </ul>
805
+ </li>
806
+ <li>
807
+ <p><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the <strong>Migration</strong> page. The
808
+ confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never
809
+ already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan
810
+ again from the source and refuses it if the files, targets or limits changed.</p>
811
+ </li>
812
+ <li>
813
+ <p><strong>Run.</strong> The setup step makes the target folder a project of its own (<code>package.json</code> and <code>playwright.config.ts</code>,
814
+ <code>requirements.txt</code> and <code>conftest.py</code>, <code>pom.xml</code>, a <code>.csproj</code>). Then a fresh agent session per file writes its target
815
+ version.</p>
816
+ <ul>
817
+ <li>The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes
818
+ symbolic links, and checks the file is at the planned path.</li>
819
+ <li>For a test it also checks that every test of the source file is there, none is skipped or focused, and the
820
+ assertions were kept.</li>
821
+ <li>Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>,
822
+ <code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back
823
+ to the agent with the output, up to <code>code.max_attempts</code> times.</li>
824
+ </ul>
825
+ </li>
826
+ <li>
827
+ <p><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
384
828
  counts its tests against the source. A test that passes is then <em>proved to check something</em>, by experiment rather
385
- than by reading its code: ForgeQE takes the values the source expected, writes a copy of the migrated test with each
386
- of them made wrong, and runs it once more. <strong>That run has to fail.</strong> A test that passes either way does not check
387
- what its source checked, whatever its framework and however its assertions are spelled, so it is not migrated — and
388
- a value the source checked that the migrated file never mentions at all is reported without a run. The copy is put
389
- back in every case, and the &quot;Checks proved&quot; column of <code>migrate.md</code> says which tests were proved this way. Where
390
- there is nothing to corrupt (the source checks only computed values), assertion lines are counted as before. Each
391
- test that fails goes to the fixing agent with its output, then runs again. From the page or with
392
- <code>forgeqe migrate fix</code>, you can send a test to the fixing agent yourself with a note.</li>
393
- <li><strong>Report.</strong> A test is <em>migrated</em> only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and <em>written</em> otherwise. A file the agent could not do is <em>failed</em> or <em>cannot be migrated</em>, with why. The run is <code>migrated</code> (every test), <code>partial</code> or <code>failed</code>. A model error never counts as a migrated file. The source tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/&lt;plan&gt;/</code>, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</li>
829
+ than by reading its code:</p>
830
+ <ul>
831
+ <li>ForgeQE takes the values the source expected, writes a copy of the migrated test with each of them made wrong, and
832
+ runs it once more. <strong>That run has to fail.</strong></li>
833
+ <li>A test that passes either way does not check what its source checked, whatever its framework and however its
834
+ assertions are spelled, so it is not migrated.</li>
835
+ <li>A value the source checked that the migrated file never mentions at all is reported without a run.</li>
836
+ <li>The copy is put back in every case, and the &quot;Checks proved&quot; column of <code>migrate.md</code> says which tests were proved
837
+ this way.</li>
838
+ <li>Where there is nothing to make wrong (the source checks only computed values), assertion lines are counted
839
+ instead.</li>
840
+ </ul>
841
+ <p>Each test that fails goes to the fixing agent with its output, then runs again. You can also send a test to the
842
+ fixing agent yourself with a note: <strong>Fix</strong> on the page, or <code>forgeqe migrate fix</code>.</p>
843
+ </li>
844
+ <li>
845
+ <p><strong>Report.</strong> A test is <em>migrated</em> only when ForgeQE's run of it passed. A support file is migrated when a test that uses
846
+ it passed, and <em>written</em> otherwise. A file the agent could not do is <em>failed</em> or <em>cannot be migrated</em>, with why. The
847
+ run is <code>migrated</code> (every test), <code>partial</code> or <code>failed</code>. A model error never counts as a migrated file. The source
848
+ tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/&lt;plan&gt;/</code>. The results are saved
849
+ after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</p>
850
+ </li>
394
851
  </ol>
395
- <p><strong>A framework ForgeQE does not ship.</strong> Every target above is data, not code, and a project adds its own the same way:
396
- a profile in <code>.forgeqe/migrate-targets/&lt;id&gt;.yaml</code>. So Karate, Gauge, Behave or anything else your team uses is a file
397
- you write, not a release you wait for.</p>
852
+ <p><strong>A framework ForgeQE does not ship.</strong> Every target above is data, not code, and a project adds its own the same way: a
853
+ profile in <code>.forgeqe/migrate-targets/&lt;id&gt;.yaml</code>. So Karate, Gauge, Behave or anything else your team uses is a file you
854
+ write, not a release you wait for.</p>
398
855
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> .forgeqe/migrate-targets/karate-java.yaml
399
856
  </span></span><span class="ln"><span class="cmd">id: karate-java
400
857
  </span></span><span class="ln"><span class="cmd">title: Karate (Java)
@@ -411,48 +868,72 @@ you write, not a release you wait for.</p>
411
868
  </span></span><span class="ln"><span class="cmd"> video: false
412
869
  </span></span></code></pre></div>
413
870
  <p>The same profiles serve a Tosca conversion (<code>forgeqe tosca plan --to karate-java</code>), so a framework you added is
414
- available to both. Then a person approves it at a terminal, by typing its id:</p>
871
+ available to both.</p>
872
+ <p><strong>Approving a target.</strong> This is done at a terminal only, by a person who types the target's id:</p>
415
873
  <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 migrate targets</span><span class="pad"> </span><span class="cm"><span class="h">#</span> lists it, and whether it is approved
416
874
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate target approve karate-java</span><span class="pad"> </span><span class="cm"><span class="h">#</span> shows the command it would run; you type the id
417
875
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe migrate plan --from tests --to karate-java</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a target like any other from here on
418
876
  </span></span></code></pre></div>
419
- <p>Why the approval: a profile can come with the repository, and it names a program ForgeQE will start. So it is read as
420
- untrusted (unknown keys, YAML aliases and anything but an argument list are refused, and a shell, downloader,
421
- container, database client or file-moving command is refused outright), and what migrates is the exact copy you
422
- approved, kept with its digest in <code>.approved/</code>. Edit the profile afterwards and the approved copy still runs, with
423
- <code>forgeqe migrate targets</code> saying it changed, until you approve it again. An unapproved profile cannot be migrated to at
424
- all, and a profile can never take one of ForgeQE's own ids.</p>
425
- <p>Nothing in a profile is ever run as a pattern or a command line: <code>ran_nothing</code> and <code>evidence.signs</code> are plain words
426
- ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.</p>
427
- <p>Whether a profile is <em>right</em> is settled by running it, not by trusting it: the validate stage runs every migrated test
877
+ <p>Why the approval: a profile can come with the repository, and it names a program ForgeQE will start.</p>
878
+ <ul>
879
+ <li>It is read as untrusted: unknown keys, YAML aliases and anything but an argument list are refused, and a shell,
880
+ downloader, container, database client or file-moving command is refused outright.</li>
881
+ <li>What migrates is the exact copy you approved, kept with its digest in <code>.approved/</code>. Edit the profile afterwards and the
882
+ approved copy still runs, with <code>forgeqe migrate targets</code> saying it changed, until you approve it again.</li>
883
+ <li>An unapproved profile cannot be migrated to at all, and a profile can never take one of ForgeQE's own ids.</li>
884
+ <li>Nothing in a profile is ever run as a pattern or a command line: <code>ran_nothing</code> and <code>evidence.signs</code> are plain words
885
+ ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.</li>
886
+ </ul>
887
+ <p>Whether a profile is <em>right</em> is settled by running it, not by trusting it. The validate stage runs every migrated test
428
888
  again with the values its source expected made wrong, so a command that does not really run the test, or never reports
429
889
  a failure, passes both times and fails the migration instead of signing it off.</p>
430
- <p>What a profile cannot do is invent a language: <code>language</code> is one of typescript, javascript, python, java, csharp, ruby
431
- or robot, because where a test file goes and what its class is called is code (a Java test is <code>src/test/java/&lt;Class&gt;.java</code>,
432
- a Python one <code>test_&lt;name&gt;.py</code>). A new framework in one of those languages is a profile; a new language still needs a
433
- change to ForgeQE. <code>naming</code> adjusts the rest where a language has no convention of its own:
890
+ <p>What a profile cannot do is invent a language. <code>language</code> is one of typescript, javascript, python, java, csharp, ruby or
891
+ robot, because where a test file goes and what its class is called is code (a Java test is
892
+ <code>src/test/java/&lt;Class&gt;.java</code>, a Python one <code>test_&lt;name&gt;.py</code>). A new framework in one of those languages is a profile; a
893
+ new language still needs a change to ForgeQE. <code>naming</code> adjusts the rest where a language has no convention of its own:
434
894
  <code>naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }</code> is how Cypress is described.</p>
435
- <p>Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code> does all of this in four steps (source, target, instructions, review), then follows
436
- the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
437
- In the shell, &quot;migrate our Selenium tests to Playwright&quot; makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.</p>
438
895
  </div>
439
896
  </section>
440
897
  </div>
441
- </article>
442
898
  <article class="spec feat" id="cap-tosca-convert">
443
899
  <div class="hd"><span class="mono">Automated tests</span><h3>Convert Tosca test cases</h3></div>
444
900
  <p class="ds">Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with Bridge, after a plan the user confirms; every Tosca step and check is marked in the converted test and checked, secrets become environment variables, and ForgeQE runs each test itself.</p>
445
901
  <div class="facts">
446
902
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</li></ul></div>
447
- <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a Tosca .tsu export inside a git repository</span></li></ul></div>
903
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a Tosca .tsu export inside a git repository</span></li></ul></div>
448
904
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>convert_tosca</code></p></div>
449
905
  </div>
450
- <div class="detail"><span class="mono">In detail</span>
451
- <section class="doc" id="doc-how_to_use-converting-tosca-tests">
906
+
907
+ </article>
908
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-converting-tosca-tests">
452
909
  <h4>Converting Tosca tests</h4>
453
- <div class="prose"><p><code>forgeqe tosca</code> converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with
454
- Bridge. It is a separate agent from <code>forgeqe migrate</code>: a Tosca export is not a folder of code but a graph of test
455
- cases, modules, reusable blocks and parameters. Put the export (<code>.tsu</code>) inside the repository, then:</p>
910
+ <div class="prose"><p>ForgeQE converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with <strong>Bridge</strong>, its
911
+ Tosca agent. Bridge is a separate agent from a migration: a Tosca export is not a folder of code but a graph of test
912
+ cases, modules, reusable blocks and parameters. Bridge knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value
913
+ tokens, expressions, locators, and how each maps to every target).</p>
914
+ <p>A Tosca conversion may target any framework a migration may. So a target profile of your own
915
+ (<code>.forgeqe/migrate-targets/&lt;id&gt;.yaml</code>, see <a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a>) is a Tosca target as soon
916
+ as a person has approved it: <code>forgeqe tosca plan --file shop.tsu --to karate-java</code>. <code>forgeqe tosca targets</code> says which of
917
+ your own are approved, and an unapproved one is refused here exactly as it is for a migration.</p>
918
+ <p><strong>Converting a Tosca export.</strong> Put the export (<code>.tsu</code>) inside the repository first.</p>
919
+ <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>
920
+ <ol>
921
+ <li>Open <strong>Migration</strong>, open <strong>Migrations</strong> and press <strong>New</strong>.</li>
922
+ <li><strong>Export</strong>: pick the <strong>Tosca</strong> source. ForgeQE lists the <code>.tsu</code> exports in the project; pick one or several, or a
923
+ folder, or clone a git repository of exports (<strong>From a git repository</strong>). It reads them and lets you choose their
924
+ test cases. Or press <strong>Help me choose</strong> and say what to convert in your words (see &quot;The assistant&quot; below).</li>
925
+ <li><strong>Target</strong> and <strong>Instructions</strong>, as for a migration.</li>
926
+ <li><strong>Review</strong>: what can be migrated, <strong>Before it runs</strong> (what running the tests needs) and the <strong>Estimate</strong>. Answer or
927
+ accept what is open; <strong>Check again</strong> reads it again after you install a program or set a variable.</li>
928
+ <li>Press <strong>Start</strong>, type the plan's id and accept every limit. Tick <strong>Convert in batches</strong> to convert a few test cases at
929
+ a time (see &quot;In batches&quot; below).</li>
930
+ </ol>
931
+ <p>The conversion's page follows the job: its stages; every file, with how many of its Tosca steps the test does and its
932
+ whole output (<strong>Fix</strong> sends one back to Bridge with a note); each test case's Tosca steps beside the converted code, with
933
+ a step's lines marked and the locators Tosca recorded; and the activity as it happens. <strong>Run</strong> runs every converted test
934
+ again, and each suite has a button that runs only its tests. <strong>Report</strong> opens the report. <strong>More</strong> has <strong>Re-import</strong>, <strong>CI</strong>, <strong>Pull request</strong> and
935
+ <strong>Delete</strong>. Every conversion is listed with the other migrations on <strong>Migrations</strong>.</p>
936
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
456
937
  <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 tosca inspect tosca/checkout.tsu</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the export holds; no model, nothing written
457
938
  </span></span><span class="ln"><span class="cmd">forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698_submit_order] [--test-attribute data-qa]
458
939
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a person at a terminal types the plan's id
@@ -468,255 +949,351 @@ cases, modules, reusable blocks and parameters. Put the export (<code>.tsu</code
468
949
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca fix tsc-… --unit u004 --note &quot;The cart badge is now a span&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one file back to Bridge
469
950
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe tosca targets</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the targets, this project's own included
470
951
  </span></span></code></pre></div>
471
- <p>A Tosca conversion may target any framework a migration may, so a target profile of your own
472
- (<code>.forgeqe/migrate-targets/&lt;id&gt;.yaml</code>, see <a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a>) is a Tosca target as soon
473
- as a person has approved it: <code>forgeqe tosca plan --file shop.tsu --to karate-java</code>. <code>forgeqe tosca targets</code> says which
474
- of your own are approved, and an unapproved one is refused here exactly as it is for a migration.</p>
952
+ <p>In the shell, &quot;convert tosca/checkout.tsu to Playwright&quot; inspects the export and makes the plan; you confirm it
953
+ yourself. Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped.</p>
954
+ </div></div><p><strong>How a conversion goes.</strong></p>
475
955
  <ol>
476
- <li><strong>Read.</strong> ForgeQE reads the export with no model, through <a href="https://github.com/bermudas/ToscaTSU" class="ext" rel="noopener">ToscaTSU</a>'s parser
477
- (MIT, included unchanged in <code>py/forgeqe_tosca/vendor/toscatsu</code>). It follows folders, reusable blocks with their
478
- parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
479
- with numbered steps (<code>.forgeqe/tosca/&lt;plan&gt;/read/</code>). The export is data: nothing in it is run, and its size is capped.</li>
480
- <li><strong>Secrets.</strong> Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They
481
- and configuration parameters (<code>{CP[…]}</code>) become environment variables; the plan and <code>.env.example</code> name each one and
482
- where it comes from in Tosca. Values never reach the agent, the plan or the code.</li>
483
- <li><strong>Plan.</strong> One page object per Tosca module and one test per web test case, named by the target's conventions and
956
+ <li>
957
+ <p><strong>Read.</strong> ForgeQE reads the export with no model. It follows folders, reusable blocks with their parameter layers, If
958
+ and Loop, buffers, and SelfHealingData, and writes each test case in a neutral form with numbered steps
959
+ (<code>.forgeqe/tosca/&lt;plan&gt;/read/</code>). The export is data: nothing in it is run, and its size is capped.</p>
960
+ </li>
961
+ <li>
962
+ <p><strong>Secrets.</strong> Tosca-encrypted values cannot be decrypted outside the Tosca workspace, and ForgeQE never tries. They and
963
+ configuration parameters (<code>{CP[…]}</code>) become environment variables; the plan and <code>.env.example</code> name each one and
964
+ where it comes from in Tosca. Values never reach the agent, the plan or the code.</p>
965
+ </li>
966
+ <li>
967
+ <p><strong>Plan.</strong> One page object per Tosca module and one test per web test case, named by the target's conventions and
484
968
  placed under the test case's Tosca folders (<code>tests/orders/cart/…</code>; Tosca's own <code>TestCases</code> and similar folders left
485
- out). Tosca's execution lists become suites: each test is tagged with the lists that run it (Playwright
969
+ out).</p>
970
+ <ul>
971
+ <li>Tosca's execution lists become suites. Each test is tagged with the lists that run it (Playwright
486
972
  <code>{ tag: ['@smoke'] }</code>, <code>@pytest.mark.smoke</code>, JUnit <code>@Tag</code>, NUnit <code>[Category]</code>, <code>@smoke</code> in a Cypress or WebdriverIO
487
- title), and ForgeQE checks the tags are there. Test
488
- cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
489
- (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
490
- comment for a person to finish.
491
- <strong>Several exports, or a git repository.</strong> A plan can read many <code>.tsu</code> files: picked on the page, named on the
492
- command line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged: a test
493
- case that two exports both hold (same id, name, folders and steps) is converted once and the plan says so; a
494
- different test case with the same id gets its export's number; a module of the same name becomes one page object;
495
- execution lists and variables join. Exports can come from a git repository instead of the project:
496
- <code>forgeqe tosca clone &lt;url&gt;</code> (or From a git repository on the page) makes a shallow copy under ForgeQE's home with
497
- Mover's checks (https or git@ only, no user name in the address, the token by its variable's name and
498
- only as a header, no hooks, submodules or links) and keeps it only when it holds an export; such a copy is a Tosca
499
- source, never listed as a migration's. Every file of a plan is checked by its digest before each run, so a changed
500
- or removed export (or a removed copy) stops it until a new plan is made.
501
- <strong>Back to Tosca.</strong> Each test case keeps Tosca's unique id (its surrogate). <code>tosca-map.json</code> in the target folder
502
- (beside <code>tosca-suites.json</code>, written by ForgeQE after each run and verify) lists every Tosca test case of the plan
503
- by that id, its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the
504
- test and those left for a person. <code>forgeqe tosca map &lt;plan&gt;</code> prints it; the report shows the id on each test case
505
- and downloads it as a Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.
506
- <strong>Reading the exports again.</strong> When Tosca changes, <code>forgeqe tosca reimport &lt;plan&gt;</code> (or Read exports again on the
507
- conversion's page) makes a new plan from the same exports, for the same target and folder, and compares each test
508
- case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:
509
- unchanged ones keep their tests (no agent call, as long as the file is still as it was converted), changed and new
510
- ones are converted, and ones no longer in the exports are listed with their tests left in place for a person to
511
- remove. Test cases left unpicked before stay unpicked. <code>--refresh</code> (or the page's option) clones each repository
512
- again for its newest commit, as before; the old copy stays for the old plan.
513
- <strong>What can be migrated.</strong> <code>forgeqe tosca inspect</code>, <code>show</code> and a Tosca migration's page (Migration) put every test case of the export in
514
- one kind: web (converted), web with steps for a person, API (converted), API with steps for a person, web and API
515
- (converted), web or API mixed with another engine (converted: its web and API steps, and each desktop, mobile or
516
- database step stays in the test as a marked comment saying what it does, for a person to code), desktop, mobile,
517
- database and files, steps nothing reads, nothing to convert, not picked. Each kind says what becomes of it and the Tosca
518
- modules (with their engine) behind it, or for steps left to a person the reasons; the page downloads it as a CSV
519
- per test case.
520
- <strong>Ready to run.</strong> Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is
521
- missing (<code>forgeqe tosca ready &lt;plan&gt;</code>, or the page's Before it runs): where the tests start (the address the export
522
- recorded, an app of env.yaml, never an environment named like production, or one given: http(s) only, no user name
523
- in it), every environment variable the tests read (set, or saved in the credential store from the page; never its
524
- value in a file), the programs the target runs with (<code>npx</code>, <code>mvn</code>, <code>dotnet</code>, looked up on PATH), and Tosca test
525
- data the export does not hold. A missing address or program blocks the start; a variable or the test data is
526
- answered or accepted (&quot;convert without it&quot;). Answers are kept in <code>.forgeqe/tosca/&lt;plan&gt;/ready.json</code>; <code>run</code>, <code>fix</code>
527
- and <code>verify</code> refuse until nothing is open, and the tests get the reviewed address as <code>BASE_URL</code>.
528
- <strong>What it may cost.</strong> Review's Estimate (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the
529
- files still to write, as a range, and their price with the model Bridge is routed to when that model has a
530
- price in <code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca
531
- conversions once they have written at least 5 files (tokens per file), else from defaults sized by each test case's
532
- steps; files already written are not counted again. An estimate, never a limit: a hard test case takes more tries.</li>
533
- <li><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
534
- ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</li>
535
- <li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of Bridge, which may edit
536
- only the target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's
537
- fidelity check needs every step and check marked (only the branch that runs of an If that is always true or false),
538
- no skipped test, and assertions where Tosca checked; then it runs the test with the target's own command. A failure
539
- goes back to the agent with the output, up to <code>code.max_attempts</code> times. At the end every converted test runs again
540
- with all files in place.</li>
541
- <li><strong>Check again.</strong> <code>forgeqe tosca verify &lt;plan&gt;</code> runs the converted tests again with no model: all of them, one
542
- Tosca execution list (<code>--suite</code>), or named tests (<code>--unit</code>). Each test's steps and tags are checked again, it is run
543
- with the target's own command, and its outcome and whole output are kept. <code>tosca-suites.json</code> in the target folder
544
- lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.</li>
545
- <li><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/&lt;plan&gt;/</code>: each test case's outcome and fidelity (steps marked of steps
973
+ title), and ForgeQE checks the tags are there.</li>
974
+ <li>Test cases whose steps are desktop, SAP, API or mobile are left out for now, and named.</li>
975
+ <li>A step ForgeQE cannot convert (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it
976
+ stays in the test as a marked comment for a person to finish.</li>
977
+ </ul>
978
+ </li>
979
+ <li>
980
+ <p><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal or on the page. The confirmation is kept
981
+ under ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</p>
982
+ </li>
983
+ <li>
984
+ <p><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of Bridge, which may edit only the
985
+ target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's fidelity
986
+ check needs every step and check marked (only the branch that runs, for an If that is always true or false), no
987
+ skipped test, and assertions where Tosca checked. Then it runs the test with the target's own command. A failure goes
988
+ back to the agent with the output, up to <code>code.max_attempts</code> times. At the end every converted test runs again with
989
+ all files in place.</p>
990
+ </li>
991
+ <li>
992
+ <p><strong>Check again.</strong> <strong>Run</strong> on the conversion's page, or <code>forgeqe tosca verify &lt;plan&gt;</code>, runs the converted tests again with
993
+ no model: all of them, one Tosca execution list (<code>--suite</code>), or named tests (<code>--unit</code>). Each test's steps and tags are
994
+ checked again, it is run with the target's own command, and its outcome and whole output are kept.
995
+ <code>tosca-suites.json</code> in the target folder lists each suite with its tag and test files, and each test with its Tosca
996
+ folders, suites and last outcome.</p>
997
+ </li>
998
+ <li>
999
+ <p><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/&lt;plan&gt;/</code> gives each test case's outcome and fidelity (steps marked of steps
546
1000
  required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
547
- files that are done and unchanged. <code>report.html</code> beside it is ForgeQE's HTML run report of the conversion, written
548
- when a run or <code>tosca verify</code> ends: one case per Tosca test case, its Tosca steps as passed, failed or left for a
549
- person, its problems and output, and its failure screenshot and video (in <code>report-cases/</code>, so the folder opens
550
- offline). The web app's report shows the totals, the model's tokens and cost, and where the tests came from and went
551
- to at the top; the test cases grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
552
- searchable; and the picked one's details beside them. Its HTML report button downloads <code>report.html</code> with the failure
553
- screenshots inside; Zip with videos downloads <code>report.zip</code> (<code>report.html</code> and <code>report-cases/</code> with every screenshot
554
- and video, made when asked and once the run has ended): unzip it and open <code>report.html</code>.</li>
555
- <li><strong>Screenshots and video, by default.</strong> Every test ForgeQE runs after the conversion (each try, the final run, and
1001
+ files that are done and unchanged.</p>
1002
+ <p><code>report.html</code> beside it is ForgeQE's HTML run report of the conversion, written when a run or <code>tosca verify</code> ends:
1003
+ one case per Tosca test case, its Tosca steps as passed, failed or left for a person, its problems and output, and
1004
+ its failure screenshot and video (in <code>report-cases/</code>, so the folder opens offline).</p>
1005
+ <p>The web app's <strong>Report</strong> shows the totals, the model's tokens and cost, and where the tests came from and went to at
1006
+ the top. The test cases are grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
1007
+ searchable, with the picked one's details beside them. <strong>HTML report</strong> downloads <code>report.html</code> with the failure
1008
+ screenshots inside. <strong>Zip with videos</strong> downloads <code>report.zip</code> (<code>report.html</code> and <code>report-cases/</code> with every
1009
+ screenshot and video, made when asked and once the run has ended): unzip it and open <code>report.html</code>.</p>
1010
+ </li>
1011
+ <li>
1012
+ <p><strong>Screenshots and video, by default.</strong> Every test ForgeQE runs after the conversion (each try, the final run, and
556
1013
  <code>tosca verify</code>) keeps a screenshot when it fails and a video of the run, under <code>test-results/</code> in the target folder
557
- (the run gets that folder as <code>FORGEQE_EVIDENCE_DIR</code>); they are copied to <code>.forgeqe/tosca/&lt;plan&gt;/evidence/&lt;unit&gt;/</code>
558
- and shown on the report page. Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
559
- <code>--screenshot=only-on-failure --video=on</code>, Cypress's <code>--config video=true,…</code>); elsewhere the setup step sets it up
560
- (<code>playwright.config</code>'s <code>screenshot: 'only-on-failure', video: 'on'</code>, a test base for Java and C#, an <code>afterTest</code>
561
- hook and wdio-video-reporter for WebdriverIO) and ForgeQE checks the project for it, setting it up again when it is
562
- missing. Selenium has no video recorder: its tests keep failure screenshots only.</li>
1014
+ (the run gets that folder as <code>FORGEQE_EVIDENCE_DIR</code>). They are copied to <code>.forgeqe/tosca/&lt;plan&gt;/evidence/&lt;unit&gt;/</code> and
1015
+ shown on the report page.</p>
1016
+ <ul>
1017
+ <li>Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
1018
+ <code>--screenshot=only-on-failure --video=on</code>, Cypress's <code>--config video=true,…</code>).</li>
1019
+ <li>Elsewhere the setup step sets it up (<code>playwright.config</code>'s <code>screenshot: 'only-on-failure', video: 'on'</code>, a test base
1020
+ for Java and C#, an <code>afterTest</code> hook and wdio-video-reporter for WebdriverIO), and ForgeQE checks the project for
1021
+ it, setting it up again when it is missing.</li>
1022
+ <li>Selenium has no video recorder: its tests keep failure screenshots only.</li>
1023
+ </ul>
1024
+ </li>
563
1025
  </ol>
564
- <p>Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code>
565
- (New, then the <em>Tosca</em> source) does the same in four steps (export, target, instructions, review): it lists the <code>.tsu</code> exports in
566
- the project, reads the one you pick and lets you choose its test cases, then follows the job: its stages, every file
567
- with how many of its Tosca steps the test does and its whole output (Fix sends one back to Bridge with a note),
568
- Run tests again for all of them or Run for one suite, each test case's
569
- Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
570
- happens.</p>
571
- <p><strong>Guide.</strong> Tosca exports are migrated on the Migration page of <code>forgeqe web</code>, listed with every other migration under its Migrations tab. New, then the <em>Tosca</em> source, offers <em>Help me choose</em>: say in your words what to migrate (&quot;checkout.tsu to
572
- Playwright in TypeScript on QA, into e2e/tosca&quot;) and the assistant asks only what it still needs, one thing at a time:
573
- the exports, the framework, the language, where the tests start, then a folder or rules for the code. Each question
574
- offers its options to pick; you can also type, and change anything you said. Open the prefilled wizard then reads the
575
- exports, makes the plan and opens it on Review with every stage filled in; nothing starts until you confirm, as before.
576
- ForgeQE's model (<code>forgeqe-tosca-assistant</code>: no tools, a fixed answer shape) only reads your words. ForgeQE keeps only
577
- what your project has (an export it lists, a target it runs, a web app of env.yaml outside production), an address only
578
- of http(s) that you wrote and that is not production's, and a folder only inside the repository; it chooses the next
579
- question itself. Without a model, ForgeQE's rules read the same words. The exports question lets you pick several, or
580
- clone a git repository of exports: paste its address (add &quot;branch <name>&quot; for a branch), and the assistant asks &quot;Clone
581
- it?&quot; first; it clones as the wizard does and picks the clone's exports. For a private repository, the question has an
582
- Access token field: pick a token already saved (in Settings › Secrets › Repository tokens, or a variable such as GITHUB_TOKEN;
583
- Check again reads the list once you have saved one there), or Add a token, which keeps the value in ForgeQE's
584
- credential store under its name. The chat and the model only ever see the name, Clone it waits until a value is saved, and a token typed into the
585
- chat itself is refused and never sent. Each conversation is kept in ForgeQE's home (<code>~/.forgeqe/tosca-assistant</code>, readable by you only,
586
- two weeks, the newest 30), so it survives <code>forgeqe web</code> starting again, and the page reopens the last one; New
587
- conversation removes it. Nothing is written to the project until the wizard makes the plan (or you agree to a clone).
588
- When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
589
- or mobile app their workflows start and which database their queries read (only the names Settings has, or &quot;Tell you
590
- later&quot;); the wizard puts the answers on Review.</p>
591
- <p><strong>API test cases.</strong> Test cases of Tosca's API engine (API Scan modules: one per call, its Method, Endpoint and
592
- Resource as the module's settings, the request and the response as attribute trees) are converted too, alone or in a
593
- test case with web steps. Each call becomes a request with the target's own HTTP client (Playwright's <code>request</code>,
594
- Cypress's <code>cy.request</code>, Node's <code>fetch</code> for WebdriverIO, the language's standard client for Selenium; no dependency is
595
- added for HTTP), then a check for each Tosca verify: the status, a header, a JSON value (Tosca's <code>==</code>, <code>!=</code>, <code>&lt;</code>, <code>&gt;</code>,
596
- <code>*</code> comparisons kept) or the body; a buffer keeps a response value for a later call. The API's address and any token
597
- in a header (<code>Bearer {CP[ApiToken]}</code>) are variables the tests read, the token a secret, never in the code. An
598
- attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity check
599
- counts every request and check as it does a web step. A plan of API test cases only needs no start address; a
600
- variable the tests read that holds an address of production in env.yaml blocks the start, since the tests change data.</p>
1026
+ <p><strong>Several exports, or a git repository.</strong> A plan can read many <code>.tsu</code> files: picked on the page, named on the command
1027
+ line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged:</p>
1028
+ <ul>
1029
+ <li>a test case that two exports both hold (same id, name, folders and steps) is converted once, and the plan says so;</li>
1030
+ <li>a different test case with the same id gets its export's number;</li>
1031
+ <li>a module of the same name becomes one page object;</li>
1032
+ <li>execution lists and variables join.</li>
1033
+ </ul>
1034
+ <p>Exports can come from a git repository instead of the project: <code>forgeqe tosca clone &lt;url&gt;</code> (or <strong>From a git
1035
+ repository</strong> on the page) makes a shallow copy under ForgeQE's home. The same checks as a migration's clone apply: https
1036
+ or git@ only, no user name in the address, the token by its variable's name and only as a header, no hooks, submodules or
1037
+ links. The copy is kept only when it holds an export, and it is a Tosca source, never listed as a migration's. Every file
1038
+ of a plan is checked by its digest before each run, so a changed or removed export (or a removed copy) stops it until a
1039
+ new plan is made.</p>
1040
+ <p><strong>Back to Tosca.</strong> Each test case keeps Tosca's unique id (its surrogate). <code>tosca-map.json</code> in the target folder (beside
1041
+ <code>tosca-suites.json</code>, written by ForgeQE after each run and verify) lists every Tosca test case of the plan by that id,
1042
+ its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the test and those
1043
+ left for a person. <code>forgeqe tosca map &lt;plan&gt;</code> prints it. The report shows the id on each test case and downloads it as a
1044
+ Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.</p>
1045
+ <p><strong>Reading the exports again.</strong> When Tosca changes, <strong>More › Re-import</strong> on the conversion's page (or
1046
+ <code>forgeqe tosca reimport &lt;plan&gt;</code>) makes a new plan from the same exports, for the same target and folder. It compares each
1047
+ test case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:</p>
1048
+ <ul>
1049
+ <li>unchanged ones keep their tests (no agent call, as long as the file is still as it was converted);</li>
1050
+ <li>changed and new ones are converted;</li>
1051
+ <li>ones no longer in the exports are listed, with their tests left in place for a person to remove;</li>
1052
+ <li>test cases left unpicked before stay unpicked.</li>
1053
+ </ul>
1054
+ <p><strong>Get the newest commit of the cloned repositories</strong> (or <code>--refresh</code>) clones each repository again for its newest
1055
+ commit; the old copy stays for the old plan.</p>
1056
+ <p><strong>What can be migrated.</strong> <code>forgeqe tosca inspect</code>, <code>show</code> and the page's <strong>What can be migrated</strong> put every test case of
1057
+ the export in one kind:</p>
1058
+ <ul>
1059
+ <li>web (converted), or web with steps for a person;</li>
1060
+ <li>API (converted), or API with steps for a person;</li>
1061
+ <li>web and API (converted);</li>
1062
+ <li>web or API mixed with another engine (converted: its web and API steps; each desktop, mobile or database step stays in
1063
+ the test as a marked comment saying what it does, for a person to code);</li>
1064
+ <li>desktop, mobile, database and files;</li>
1065
+ <li>steps nothing reads, nothing to convert, not picked.</li>
1066
+ </ul>
1067
+ <p>Each kind says what becomes of it and the Tosca modules (with their engine) behind it, or, for steps left to a person,
1068
+ the reasons. The page downloads it as a CSV per test case.</p>
1069
+ <p><strong>Ready to run.</strong> Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is missing
1070
+ (<strong>Before it runs</strong> on the page, or <code>forgeqe tosca ready &lt;plan&gt;</code>):</p>
1071
+ <ul>
1072
+ <li>where the tests start: the address the export recorded, an app of env.yaml (never an environment named like
1073
+ production), or one given (http(s) only, no user name in it);</li>
1074
+ <li>every environment variable the tests read: set, or saved in the credential store from the page, never its value in a
1075
+ file;</li>
1076
+ <li>the programs the target runs with (<code>npx</code>, <code>mvn</code>, <code>dotnet</code>, looked up on PATH);</li>
1077
+ <li>Tosca test data the export does not hold.</li>
1078
+ </ul>
1079
+ <p>A missing address or program blocks the start; a variable or the test data is answered or accepted (&quot;convert without
1080
+ it&quot;). Answers are kept in <code>.forgeqe/tosca/&lt;plan&gt;/ready.json</code>. <code>run</code>, <code>fix</code> and <code>verify</code> refuse until nothing is open, and
1081
+ the tests get the reviewed address as <code>BASE_URL</code>.</p>
1082
+ <p><strong>What it may cost.</strong> Review's <strong>Estimate</strong> (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the files
1083
+ still to write, as a range, and their price with the model Bridge is routed to, when that model has a price in
1084
+ <code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca conversions once they
1085
+ have written at least 5 files (tokens per file), else from defaults sized by each test case's steps. Files already
1086
+ written are not counted again. It is an estimate, never a limit: a hard test case takes more tries.</p>
1087
+ <p><strong>The assistant.</strong> <strong>Help me choose</strong> (under <strong>New</strong>, then the <strong>Tosca</strong> source) lets you say in your words what to
1088
+ convert (&quot;checkout.tsu to Playwright in TypeScript on QA, into e2e/tosca&quot;). The assistant asks only what it still needs,
1089
+ one thing at a time: the exports, the framework, the language, where the tests start, then a folder or rules for the
1090
+ code. Each question offers its options to pick; you can also type, and change anything you said. <strong>Open the prefilled
1091
+ wizard</strong> then reads the exports, makes the plan and opens it on Review with every stage filled in. Nothing starts until
1092
+ you confirm.</p>
1093
+ <ul>
1094
+ <li>A model with no tools only reads your words. ForgeQE keeps only what your project has (an export it lists, a target it
1095
+ runs, a web app of env.yaml outside production), an address only of http(s) that you wrote and that is not
1096
+ production's, and a folder only inside the repository. ForgeQE chooses the next question itself. Without a model,
1097
+ ForgeQE's rules read the same words.</li>
1098
+ <li>The exports question lets you pick several, or clone a git repository of exports: paste its address (add
1099
+ &quot;branch <name>&quot; for a branch), and the assistant asks <strong>Clone it</strong> first. It clones as the wizard does and picks the
1100
+ clone's exports.</li>
1101
+ <li>For a private repository, the question has an <strong>Access token</strong> field. Pick a token already saved (in <strong>Settings ›
1102
+ Secrets</strong> under Repository tokens, or a variable such as GITHUB_TOKEN; <strong>Check again</strong> reads the list once you have
1103
+ saved one there), or <strong>Add a token</strong>, which keeps the value in ForgeQE's credential store under its name. The chat and
1104
+ the model only ever see the name. <strong>Clone it</strong> waits until a value is saved, and a token typed into the chat itself is
1105
+ refused and never sent.</li>
1106
+ <li>When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
1107
+ or mobile app their workflows start and which database their queries read (only the names Settings has, or <strong>Tell you
1108
+ later</strong>). The wizard puts the answers on Review.</li>
1109
+ <li>Each conversation is kept in ForgeQE's home (<code>~/.forgeqe/tosca-assistant</code>, readable by you only, two weeks, the newest
1110
+ 30), so it survives <code>forgeqe web</code> starting again, and the page reopens the last one. <strong>New conversation</strong> removes it.
1111
+ Nothing is written to the project until the wizard makes the plan (or you agree to a clone).</li>
1112
+ </ul>
1113
+ <p><strong>API test cases.</strong> Test cases of Tosca's API engine are converted too, alone or in a test case with web steps. (They are
1114
+ API Scan modules: one per call, its Method, Endpoint and Resource as the module's settings, the request and the response
1115
+ as attribute trees.)</p>
1116
+ <ul>
1117
+ <li>Each call becomes a request with the target's own HTTP client (Playwright's <code>request</code>, Cypress's <code>cy.request</code>, Node's
1118
+ <code>fetch</code> for WebdriverIO, the language's standard client for Selenium); no dependency is added for HTTP.</li>
1119
+ <li>Then comes a check for each Tosca verify: the status, a header, a JSON value (Tosca's <code>==</code>, <code>!=</code>, <code>&lt;</code>, <code>&gt;</code>, <code>*</code>
1120
+ comparisons kept) or the body. A buffer keeps a response value for a later call.</li>
1121
+ <li>The API's address and any token in a header (<code>Bearer {CP[ApiToken]}</code>) are variables the tests read, the token a
1122
+ secret, never in the code.</li>
1123
+ <li>An attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity
1124
+ check counts every request and check as it does a web step.</li>
1125
+ <li>A plan of API test cases only needs no start address. A variable the tests read that holds an address of production
1126
+ in env.yaml blocks the start, since the tests change data.</li>
1127
+ </ul>
601
1128
  <p><strong>Tosca's test data.</strong> A template test case reads its values from a TestCaseDesign test sheet (<code>{XL[Name]}</code>), which a
602
- .tsu export does not hold. On Review's <strong>Test data from Tosca</strong> (or <code>forgeqe tosca data &lt;plan&gt; &lt;file&gt; [--sheet NAME]</code>),
603
- name a data file of the project: Tosca's Export to Excel of the test sheet, or any CSV, Excel or JSON with the values.
604
- ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
1129
+ <code>.tsu</code> export does not hold. Under <strong>Before it runs</strong>, pick <strong>A data file of the project</strong> and press <strong>Use it</strong> (or run
1130
+ <code>forgeqe tosca data &lt;plan&gt; &lt;file&gt; [--sheet NAME]</code>). The file is Tosca's Export to Excel of the test sheet, or any CSV,
1131
+ Excel or JSON with the values. Several files can be named, one per test sheet.</p>
1132
+ <ul>
1133
+ <li>ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
605
1134
  in either layout: one row per instance, or Tosca's own with the attributes down the first column and the instances
606
- across. Several files can be named, one per test sheet. At conversion each test case whose values are all found gets
607
- its rows in <code>tosca-data/&lt;case&gt;.json</code> in the target folder, with only the columns it reads, and its test runs once per
608
- row. A value named like a password or token is never written to that file (it would be committed): the test reads it
609
- from an environment variable, <code>TOSCA_DATA_&lt;NAME&gt;</code>, which Review lists to set like any other. The file is read with the
610
- project's own reader (inside the project, no hidden part, no link out, sizes capped, a formula never worked out), and
611
- the values never reach the agent: it is told the file and the names. A value still not found stays a marked spot for
612
- a person, or you accept leaving them all for a person. ForgeQE's reader now keeps <code>{XL[...]}</code> as test data even inside
613
- a longer value (<code>Welcome {XL[Customer.FirstName]}</code>); before, the parser's <code>$XL:</code> text could reach a test as typed text.</p>
1135
+ across.</li>
1136
+ <li>At conversion, each test case whose values are all found gets its rows in <code>tosca-data/&lt;case&gt;.json</code> in the target
1137
+ folder, with only the columns it reads, and its test runs once per row.</li>
1138
+ <li>A value named like a password or token is never written to that file (it would be committed). The test reads it from
1139
+ an environment variable, <code>TOSCA_DATA_&lt;NAME&gt;</code>, which Review lists to set like any other.</li>
1140
+ <li>The file is read with the project's own reader (inside the project, no hidden part, no link out, sizes capped, a
1141
+ formula never worked out), and the values never reach the agent: it is told the file and the names.</li>
1142
+ <li>A value still not found stays a marked spot for a person, or you accept leaving them all for a person (<strong>Leave them
1143
+ for a person</strong>).</li>
1144
+ <li><code>{XL[...]}</code> is kept as test data even inside a longer value (<code>Welcome {XL[Customer.FirstName]}</code>). Before, a <code>$XL:</code>
1145
+ text could reach a test as typed text.</li>
1146
+ </ul>
614
1147
  <p><strong>Database steps.</strong> A Tosca database step (a module of a database engine: an SQL statement and checks of its result)
615
- becomes code in the test that runs the statement with the target's own database client and asserts each checked cell
616
- (row and column) as Tosca did, beside the test's web and API steps; a test case of database checks alone is converted
617
- too. Only a statement that reads is converted: one <code>SELECT</code> (or <code>WITH … SELECT</code>), nothing that changes data or the
618
- schema, runs a procedure, writes a table or holds a second statement. A statement Tosca fills with its own values
619
- (<code>{B[...]}</code>, <code>{CP[...]}</code>, <code>{XL[...]}</code>) is converted with each value as a bound query parameter, never pasted into the
620
- statement; one whose value sits inside quotes, and any other statement, stays a marked comment for a person. Before it runs, Review asks which database:
621
- one of Settings › Databases whose connection string is in a variable (<code>url_env</code>), never one named like production
622
- (<code>forgeqe tosca ready &lt;plan&gt; --database NAME</code>). The test reads that connection string from <code>TOSCA_DB_URL</code>, which
623
- ForgeQE gives only the test run; the export's own connection string (and any password in it) is never read into the
624
- plan, the brief or the code. The CI pipeline names <code>TOSCA_DB_URL</code> as a secret.</p>
1148
+ becomes code in the test. The code runs the statement with the target's own database client and asserts each checked
1149
+ cell (row and column) as Tosca did, beside the test's web and API steps. A test case of database checks alone is
1150
+ converted too.</p>
1151
+ <ul>
1152
+ <li>Only a statement that reads is converted: one <code>SELECT</code> (or <code>WITH … SELECT</code>), nothing that changes data or the schema,
1153
+ runs a procedure, writes a table or holds a second statement.</li>
1154
+ <li>A statement Tosca fills with its own values (<code>{B[...]}</code>, <code>{CP[...]}</code>, <code>{XL[...]}</code>) is converted with each value as a
1155
+ bound query parameter, never pasted into the statement. One whose value sits inside quotes, and any other statement,
1156
+ stays a marked comment for a person.</li>
1157
+ <li>Before it runs, Review asks which database: one of <strong>Settings › Databases</strong> whose connection string is in a variable
1158
+ (<code>url_env</code>), never one named like production (<code>forgeqe tosca ready &lt;plan&gt; --database NAME</code>).</li>
1159
+ <li>The test reads that connection string from <code>TOSCA_DB_URL</code>, which ForgeQE gives only the test run. The export's own
1160
+ connection string (and any password in it) is never read into the plan, the brief or the code. The CI pipeline names
1161
+ <code>TOSCA_DB_URL</code> as a secret.</li>
1162
+ </ul>
625
1163
  <p><strong>File and Excel steps.</strong> A Tosca step that reads a file (a TBox file module: whether it is there, its text, two text
626
- files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the
627
- target's own code: read only, as database steps are. The file is found by its name, among the files the test
628
- downloaded or in the folder <code>TOSCA_FILES_DIR</code> names (Review asks for it), never at the Tosca machine's own path. A step
629
- that writes, copies, moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.</p>
630
- <p><strong>Desktop and mobile test cases.</strong> A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of
631
- mobile steps becomes one of ForgeQE's own workflows, <code>forgeqe-desktop-v1</code> or <code>forgeqe-mobile-v1</code>, written by code with
632
- no model: Tosca finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its
633
- resource id, accessibility id, text and class, which are what a workflow's targets are. Each step becomes a workflow
634
- step (type, click or tap, select, keys, expect, wait for), a Tosca-encrypted value <code>{{secret:NAME}}</code>, and test data
635
- <code>{{name}}</code>. With a data file picked on Review (see Tosca's test data), its rows go into <code>&lt;case&gt;.data.csv</code> beside the
636
- workflow, for <code>--data</code>; a value named like a secret is typed from <code>TOSCA_DATA_&lt;NAME&gt;</code> instead and never written. A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control
637
- with no id or name recorded) is left out and listed with why in the conversion's results, for a person to add. Before
638
- it runs, Review asks which app the workflows start: one of the desktop or mobile apps of Settings › Environments (or
639
- <code>desktop.apps</code>, <code>mobile.apps</code>); <code>forgeqe tosca ready &lt;plan&gt; --desktop-app NAME --mobile-app NAME</code> at a terminal. Review
640
- also checks that every secret the workflows type is listed in <code>desktop.secrets</code> (or <code>mobile.secrets</code>), which replay
641
- requires, and says which to add in Settings. They are
642
- written under <code>workflows/</code> in the target folder (so the pull request carries them) and checked again before they are
643
- written; replay them on a computer with the app or a device with <code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code>.
644
- A plan of workflows only needs no model and no setup. SAP GUI, Java Swing, Delphi and PowerBuilder controls are not
645
- ones UI Automation finds, so such cases stay out. In a case that also drives the web or an API, each run of desktop or
646
- mobile steps becomes a small workflow of its own (<code>workflows/&lt;case&gt;-part&lt;N&gt;.yaml</code>), and the test replays it at that
647
- point by starting <code>forgeqe desktop replay</code> (or <code>mobile replay</code>) with an argument list, failing when it fails. ForgeQE's
648
- own runs (and the CI file's tests job) set <code>TOSCA_SKIP_APP_STEPS=1</code>, so the test skips those parts on a computer
649
- without the app; a run on a machine with the app and ForgeQE installed leaves it unset. Steps a workflow cannot do
650
- (SAP GUI, Java Swing) stay marked comments.</p>
651
- <p><strong>In batches.</strong> A large export need not be one long run: tick <strong>Convert in batches</strong> when you start (or
652
- <code>forgeqe tosca run &lt;plan&gt; --batch N</code>) and ForgeQE converts the set-up, then the next N test cases not tried yet with
653
- the page objects they use, checks every converted test again, and stops. The others wait (&quot;Waiting for a later
654
- batch&quot;). Check the batch (fix a test, or accept it), then <strong>Continue with the next batch</strong> on the conversion's page
655
- (or run the same command again). What is done is kept; a test that failed is never tried again by a batch (fix it
656
- with Fix), so one hard case never stalls the rest. A run without <code>--batch</code> tries everything not done.</p>
657
- <p><strong>A CI pipeline per execution list.</strong> When a conversion has run, its page's <strong>CI pipeline</strong> (or
658
- <code>forgeqe tosca ci &lt;plan&gt; [--azure] [--write]</code>) gives a GitHub Actions workflow or an Azure Pipelines file that runs the
1164
+ files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the target's
1165
+ own code, read only, as database steps are. The file is found by its name, among the files the test downloaded or in the
1166
+ folder <code>TOSCA_FILES_DIR</code> names (Review asks for it), never at the Tosca machine's own path. A step that writes, copies,
1167
+ moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.</p>
1168
+ <p><strong>Desktop and mobile test cases.</strong> A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of mobile
1169
+ steps becomes one of ForgeQE's own workflows, <code>forgeqe-desktop-v1</code> or <code>forgeqe-mobile-v1</code>, written with no model. Tosca
1170
+ finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its resource id,
1171
+ accessibility id, text and class, which are what a workflow's targets are.</p>
1172
+ <ul>
1173
+ <li>Each step becomes a workflow step (type, click or tap, select, keys, expect, wait for); a Tosca-encrypted value becomes
1174
+ <code>{{secret:NAME}}</code>, and test data <code>{{name}}</code>.</li>
1175
+ <li>With a data file picked on Review (see Tosca's test data), its rows go into <code>&lt;case&gt;.data.csv</code> beside the workflow, for
1176
+ <code>--data</code>. A value named like a secret is typed from <code>TOSCA_DATA_&lt;NAME&gt;</code> instead and never written.</li>
1177
+ <li>A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control with no id or
1178
+ name recorded) is left out and listed with why in the conversion's results, for a person to add.</li>
1179
+ <li>Before it runs, Review asks which app the workflows start: one of the desktop or mobile apps of <strong>Settings ›
1180
+ Environments</strong> (or <code>desktop.apps</code>, <code>mobile.apps</code>); at a terminal,
1181
+ <code>forgeqe tosca ready &lt;plan&gt; --desktop-app NAME --mobile-app NAME</code>.</li>
1182
+ <li>Review also checks that every secret the workflows type is listed in <code>desktop.secrets</code> (or <code>mobile.secrets</code>), which
1183
+ replay requires, and says which to add in Settings.</li>
1184
+ <li>The workflows are written under <code>workflows/</code> in the target folder (so the pull request carries them) and checked again
1185
+ before they are written. Replay them on a computer with the app, or a device, with <code>forgeqe desktop replay</code> or
1186
+ <code>forgeqe mobile replay</code>.</li>
1187
+ <li>A plan of workflows only needs no model and no setup.</li>
1188
+ <li>SAP GUI, Java Swing, Delphi and PowerBuilder controls are not ones UI Automation finds, so such cases stay out.</li>
1189
+ </ul>
1190
+ <p>In a case that also drives the web or an API, each run of desktop or mobile steps becomes a small workflow of its own
1191
+ (<code>workflows/&lt;case&gt;-part&lt;N&gt;.yaml</code>). The test replays it at that point by starting <code>forgeqe desktop replay</code> (or
1192
+ <code>mobile replay</code>) with an argument list, failing when it fails. ForgeQE's own runs (and the CI file's tests job) set
1193
+ <code>TOSCA_SKIP_APP_STEPS=1</code>, so the test skips those parts on a computer without the app; a run on a machine with the app
1194
+ and ForgeQE installed leaves it unset. Steps a workflow cannot do (SAP GUI, Java Swing) stay marked comments.</p>
1195
+ <p><strong>In batches.</strong> A large export need not be one long run. Tick <strong>Convert in batches</strong> when you start (or
1196
+ <code>forgeqe tosca run &lt;plan&gt; --batch N</code>), and ForgeQE converts the set-up, then the next N test cases not tried yet with the
1197
+ page objects they use, checks every converted test again, and stops. The others wait for a later batch. Check the batch
1198
+ (fix a test, or accept it), then press <strong>Continue with the next batch</strong> on the conversion's page (or run the same command
1199
+ again). What is done is kept. A test that failed is never tried again by a batch (fix it with <strong>Fix</strong>), so one hard case
1200
+ never stalls the rest. A run without <code>--batch</code> tries everything not done.</p>
1201
+ <p><strong>A CI pipeline per execution list.</strong> When a conversion has run, <strong>More › CI</strong> on its page (or
1202
+ <code>forgeqe tosca ci &lt;plan&gt; [--azure] [--write]</code>) gives a GitHub Actions workflow or an Azure Pipelines file. It runs the
659
1203
  converted tests in your CI, one job per Tosca execution list with the runner's own filter (Playwright's <code>--grep @tag</code>,
660
1204
  pytest's <code>-m</code>, Maven's <code>-Dgroups</code>, <code>dotnet test --filter TestCategory=</code>), picked by hand (one list or all) or on a pull
661
- request that changes the target folder. It sets up the target's toolchain, installs the dependencies and browsers, keeps
662
- the failure screenshots and videos as artifacts, and names the variables the tests read: <code>BASE_URL</code> as a variable and
663
- the others as secrets, by name only (<code>${{ secrets.NAME }}</code>, <code>$(NAME)</code>), passed to the step that runs the tests and not
664
- to the installs. No value, address or Tosca text goes in the file. Copy or download it, or add it to the target
665
- folder's <code>ci/</code> (so the pull request carries it); GitHub runs a workflow only from <code>.github/workflows/</code>, so move it there.
666
- Desktop and mobile workflows replay in jobs of their own (<code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code> of each,
667
- with its <code>.data.csv</code>, results as JUnit), ForgeQE installed at this version: the desktop job on a self-hosted Windows
668
- runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in <code>forgeqe.yaml</code> (or
669
- your own Appium machine). Each replay step gets only the secrets its workflow types, by name.</p>
670
- <p><strong>A pull request of the conversion.</strong> When a conversion has run, its page's <strong>Pull request</strong> (or
671
- <code>forgeqe tosca pr &lt;plan&gt; [--base BRANCH] [--title TEXT] [--draft]</code> at a terminal, where you type the plan's id to
672
- confirm) shows what goes in, then commits the target folder on ForgeQE's own branch <code>forgeqe/tosca/&lt;plan&gt;</code> from the
673
- branch it merges into (the remote's default unless you name one), pushes it and opens the pull request: on GitHub with
674
- the GitHub CLI (<code>gh</code>), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must be in that organization).
675
- The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
676
- are, and the repository's git hooks do not run. Only the target folder's own files go in: never a link, a dependency,
677
- build or run-output folder (<code>node_modules</code>, <code>test-results</code>, …), a <code>.env</code> (its <code>.env.example</code> does), a file named like
678
- credentials, or one over 2 MB; the panel lists what was left out and why. The description lists each Tosca test case,
679
- its test and how it ran, and points to <code>tosca-map.json</code>. Pushing again updates the same branch and pull request;
680
- with nothing new, nothing is pushed. git uses the sign-in it already has on this computer (<code>gh auth setup-git</code>, Git
681
- Credential Manager or ssh). ForgeQE merges nothing.</p>
1205
+ request that changes the target folder.</p>
1206
+ <ul>
1207
+ <li>It sets up the target's toolchain, installs the dependencies and browsers, and keeps the failure screenshots and videos
1208
+ as artifacts.</li>
1209
+ <li>It names the variables the tests read: <code>BASE_URL</code> as a variable and the others as secrets, by name only
1210
+ (<code>${{ secrets.NAME }}</code>, <code>$(NAME)</code>), passed to the step that runs the tests and not to the installs. No value, address
1211
+ or Tosca text goes in the file.</li>
1212
+ <li>Copy it, <strong>Download</strong> it, or <strong>Add to the target folder</strong> (its <code>ci/</code>, so the pull request carries it). GitHub runs a
1213
+ workflow only from <code>.github/workflows/</code>, so move it there.</li>
1214
+ <li>Desktop and mobile workflows replay in jobs of their own (<code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code> of each,
1215
+ with its <code>.data.csv</code>, results as JUnit), with ForgeQE installed at this version: the desktop job on a self-hosted
1216
+ Windows runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in <code>forgeqe.yaml</code>
1217
+ (or your own Appium machine). Each replay step gets only the secrets its workflow types, by name.</li>
1218
+ </ul>
1219
+ <p><strong>A pull request of the conversion.</strong> When a conversion has run, <strong>More › Pull request</strong> on its page (or
1220
+ <code>forgeqe tosca pr &lt;plan&gt; [--base BRANCH] [--title TEXT] [--draft]</code> at a terminal, where you type the plan's id to confirm)
1221
+ shows what goes in. <strong>Push and open the pull request</strong> then commits the target folder on ForgeQE's own branch
1222
+ <code>forgeqe/tosca/&lt;plan&gt;</code> from the branch it merges into (the remote's default unless you name one), pushes it and opens the
1223
+ pull request: on GitHub with the GitHub CLI (<code>gh</code>), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must
1224
+ be in that organization).</p>
1225
+ <ul>
1226
+ <li>The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
1227
+ are, and the repository's git hooks do not run.</li>
1228
+ <li>Only the target folder's own files go in: never a link, a dependency, build or run-output folder (<code>node_modules</code>,
1229
+ <code>test-results</code>, …), a <code>.env</code> (its <code>.env.example</code> does), a file named like credentials, or one over 2 MB. The panel
1230
+ lists what was left out and why.</li>
1231
+ <li>The description lists each Tosca test case, its test and how it ran, and points to <code>tosca-map.json</code>.</li>
1232
+ <li>Pushing again updates the same branch and pull request; with nothing new, nothing is pushed.</li>
1233
+ <li>git uses the sign-in it already has on this computer (<code>gh auth setup-git</code>, Git Credential Manager or ssh). ForgeQE
1234
+ merges nothing.</li>
1235
+ </ul>
682
1236
  <p><strong>Secrets for the converted tests.</strong> A Tosca export's encrypted and <code>{CP[...]}</code> values become variables the tests read
683
1237
  (<code>USER_PWD</code>, <code>TOSCA_PASSWORD</code>). Once the exports are picked, the assistant reads which ones the tests need and, for each
684
- with no value, asks which saved secret holds it (Settings › Secrets: typed there or pulled from a vault), or leaves it
685
- for Review. Review's Before it runs offers the same: Save a value under the variable's name, or <strong>use a saved secret</strong>
686
- under another name. The tests then get that secret's value under the name they read; the agents see only names, and
687
- no model sees a secret's name. Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never
688
- in the plan's folder in the repository, and ForgeQE's own keys (its models', trackers') are never offered or given to a
689
- test. Conversions lists the plans. In the shell, &quot;convert
690
- tosca/checkout.tsu to Playwright&quot; inspects the export and makes the plan; you confirm it yourself. Bridge
691
- knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value tokens, expressions, locators, and how each maps to
692
- every target).</p>
1238
+ with no value, asks which saved secret holds it (<strong>Settings › Secrets</strong>: typed there or pulled from a vault), or leaves it
1239
+ for Review. <strong>Before it runs</strong> offers the same: <strong>Save</strong> a value under the variable's name, <strong>Or use a saved secret</strong>
1240
+ under another name.</p>
1241
+ <ul>
1242
+ <li>The tests then get that secret's value under the name they read. The agents see only names, and no model sees a
1243
+ secret's name.</li>
1244
+ <li>Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never in the plan's folder in the
1245
+ repository.</li>
1246
+ <li>ForgeQE's own keys (its models', trackers') are never offered or given to a test.</li>
1247
+ </ul>
693
1248
  </div>
694
1249
  </section>
695
1250
  </div>
696
- </article>
697
1251
  <article class="spec feat" id="cap-find-run-tests">
698
1252
  <div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
699
1253
  <p class="ds">Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test.</p>
700
1254
  <div class="facts">
701
1255
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Run the checkout tests</li><li>Run the tests added in sprint 12</li></ul></div>
702
- <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
1256
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: a live model profile (or code.model), and what forgeqe setup installs for it</span></li><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
703
1257
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>find_tests</code> <code>run_tests</code> <code>list_sprints</code></p></div>
704
1258
  </div>
705
- <div class="detail"><span class="mono">In detail</span>
706
- <section class="doc" id="doc-how_to_use-finding-and-running-existing-tests">
1259
+
1260
+ </article>
1261
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-finding-and-running-existing-tests">
707
1262
  <h4>Finding and running existing tests</h4>
708
- <div class="prose"><p>Ask for the tests you want in your own words, in the shell or with <code>forgeqe run</code>:</p>
1263
+ <div class="prose"><p>Ask for the tests you want in your own words:</p>
709
1264
  <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">Run all test cases related to login
710
1265
  </span></span><span class="ln"><span class="cmd">Run the tests added this sprint
711
1266
  </span></span><span class="ln"><span class="cmd">Which tests cover checkout? Don't run them
712
1267
  </span></span><span class="ln"><span class="cmd">Run the tests added since 2026-09-01
713
1268
  </span></span></code></pre></div>
1269
+ <p><strong>Finding and running tests.</strong></p>
1270
+ <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>
1271
+ <ol>
1272
+ <li>Open <strong>New chat</strong>.</li>
1273
+ <li>Ask for the tests, for example <code>Run all test cases related to login</code>.</li>
1274
+ <li>Read the list, then answer <strong>Run N tests?</strong> with <strong>Run</strong> or <strong>Don't run</strong>.</li>
1275
+ </ol>
1276
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1277
+ <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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then ask in the shell; the question is a dialog
1278
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe run &quot;Run all test cases related to login&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the question is a numbered prompt
1279
+ </span></span></code></pre></div>
1280
+ </div></div><p><strong>How it works.</strong></p>
714
1281
  <ol>
715
- <li>Quill starts read-only in the repo. It works out the test framework and decides each test by reading it: its body, and the page objects and helpers it calls. A test named <code>guest can pay</code> that signs in through <code>LoginPage</code> counts as a login test; a test that only mentions login in its name but checks something else does not. For a date range or sprint, it reads git history and selects the tests added in that range, including new test functions in files that already existed. It cannot change files or run anything.</li>
716
- <li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>, <code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and Quill checks the listing is exactly its selection, fixing the command when it is not (up to three rounds).</li>
717
- <li>The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the commands.</li>
718
- <li>Nothing runs until you say so. ForgeQE asks <strong>Run N tests?</strong> with <strong>Run</strong> and <strong>Don't run</strong> (in the shell a dialog; with <code>forgeqe run</code> a numbered prompt in the terminal). When you only asked which tests exist, it stops at the list.</li>
719
- <li>ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then the command, the result files, and the output. When tests fail, ForgeQE's agent offers to heal them with <code>heal_tests</code>.</li>
1282
+ <li>Quill starts read-only in the repository. It works out the test framework and decides each test by reading it: its
1283
+ body, and the page objects and helpers it calls. A test named <code>guest can pay</code> that signs in through <code>LoginPage</code> counts
1284
+ as a login test; a test that only mentions login in its name but checks something else does not. For a date range or
1285
+ sprint, it reads git history and selects the tests added in that range, including new test functions in files that
1286
+ already existed. It cannot change files or run anything.</li>
1287
+ <li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>,
1288
+ <code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results.
1289
+ ForgeQE runs the list command, and Quill checks the listing is exactly its selection, fixing the command when it is
1290
+ not (up to three rounds).</li>
1291
+ <li>The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the
1292
+ commands.</li>
1293
+ <li>Nothing runs until you say so. ForgeQE asks <strong>Run N tests?</strong> with <strong>Run</strong> and <strong>Don't run</strong>. When you only asked which
1294
+ tests exist, it stops at the list.</li>
1295
+ <li>ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then
1296
+ the command, the result files and the output. When tests fail, ForgeQE's agent offers to heal them.</li>
720
1297
  </ol>
721
1298
  <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">┃ ▸ 3 tests found for &quot;tests related to login&quot; · Playwright (TypeScript)
722
1299
  </span></span><span class="ln"><span class="cmd">┃
@@ -733,28 +1310,46 @@ every target).</p>
733
1310
  </span></span><span class="ln"><span class="cmd">┃ List npx playwright test --list --grep &quot;login|guest can pay&quot; (ForgeQE ran it: lists exactly these)
734
1311
  </span></span><span class="ln"><span class="cmd">┃ Run npx playwright test --grep &quot;login|guest can pay&quot; --reporter=junit
735
1312
  </span></span></code></pre></div>
736
- <p><strong>This sprint.</strong> For &quot;tests added this sprint&quot; or &quot;last sprint&quot;, ForgeQE fetches the sprints from the Azure DevOps team (<code>sources.azure_devops</code>, iterations of the project's default team unless you name one) and the Jira scrum boards (<code>sources.jira</code>), and asks which one you mean: the current, the three latest past, and the next sprint of each team or board, with their dates. The sprint's start and end dates become the range. Name a sprint (&quot;tests added in Sprint 41&quot;) and it is matched without asking; give dates (&quot;since 2026-09-01&quot;) and no sprint is fetched.</p>
737
- <p>The selection, the output, and the results are saved in <code>.forgeqe/reports/tests/&lt;time&gt;/</code>: <code>selection.json</code>, <code>output.log</code>, <code>results.json</code>, and the JUnit or TRX file. When a framework cannot write results (for example Jest without <code>jest-junit</code>), the exit code decides and the card shows the end of the output instead.</p>
738
- <p>Through <code>forgeqe mcp</code>, ForgeQE cannot ask you, so <code>run_tests</code> returns the list and runs only when called again with <code>confirmed: true</code>; the MCP client should ask you first.</p>
1313
+ <p><strong>This sprint.</strong> For &quot;tests added this sprint&quot; or &quot;last sprint&quot;, ForgeQE fetches the sprints from the Azure DevOps team
1314
+ (<code>sources.azure_devops</code>; iterations of the project's default team unless you name one) and the Jira scrum boards
1315
+ (<code>sources.jira</code>). It asks which one you mean: the current, the three latest past, and the next sprint of each team or
1316
+ board, with their dates. The sprint's start and end dates become the range. Name a sprint (&quot;tests added in Sprint 41&quot;)
1317
+ and it is matched without asking; give dates (&quot;since 2026-09-01&quot;) and no sprint is fetched.</p>
1318
+ <p><strong>What is kept.</strong> The selection, the output and the results are saved in <code>.forgeqe/reports/tests/&lt;time&gt;/</code>:
1319
+ <code>selection.json</code>, <code>output.log</code>, <code>results.json</code>, and the JUnit or TRX file. When a framework cannot write results (for
1320
+ example Jest without <code>jest-junit</code>), the exit code decides and the card shows the end of the output instead.</p>
1321
+ <p><strong>From another agent.</strong> Through <code>forgeqe mcp</code>, ForgeQE cannot ask you, so its <code>run_tests</code> tool returns the list and runs
1322
+ only when called again with <code>confirmed: true</code>. The MCP client should ask you first.</p>
739
1323
  </div>
740
1324
  </section>
741
1325
  <section class="doc" id="doc-how_to_use-reports-for-tests-run-outside-forgeqe">
742
1326
  <h4>Reports for tests run outside ForgeQE</h4>
743
- <div class="prose"><p>ForgeQE's HTML report is not only for runs it makes. <code>run_tests</code> and <code>pr-tests --run</code> write one, and so can any run in a terminal, an IDE's test runner, or CI:</p>
1327
+ <div class="prose"><p>ForgeQE's HTML report is not only for runs it makes. Running existing tests and <code>pr-tests --run</code> write one, and so can
1328
+ any run in a terminal, an IDE's test runner, or CI. This is set up at a terminal only:</p>
744
1329
  <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 report test-results/junit.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> from JUnit XML or TRX: any framework, after the run
745
1330
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe report setup</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a report after every Playwright or pytest run, automatically
746
1331
  </span></span></code></pre></div>
747
- <p><code>forgeqe report</code> reads JUnit XML or TRX files, or the folder they are in (Playwright <code>--reporter=junit</code>, pytest <code>--junitxml=results.xml</code>, <code>dotnet test --logger trx</code>), and exits 1 when a test failed. Each report is saved in <code>&lt;out_dir&gt;/results/&lt;time&gt;/</code>, so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries one line per failure; a skipped test is counted, not shown.</p>
748
- <p><code>forgeqe report setup</code> sets up the framework the repository uses:</p>
1332
+ <p><strong><code>forgeqe report</code></strong> reads JUnit XML or TRX files, or the folder they are in (Playwright <code>--reporter=junit</code>, pytest
1333
+ <code>--junitxml=results.xml</code>, <code>dotnet test --logger trx</code>), and exits 1 when a test failed. Each report is saved in
1334
+ <code>&lt;out_dir&gt;/results/&lt;time&gt;/</code>, so its Trends and Flaky tests pages cover the earlier runs, whoever ran them. JUnit carries
1335
+ one line per failure; a skipped test is counted, not shown.</p>
1336
+ <p><strong><code>forgeqe report setup</code></strong> sets up the framework the repository uses:</p>
749
1337
  <ul>
750
- <li><strong>Playwright</strong>: it copies a reporter to <code>.forgeqe/playwright-reporter.mjs</code> (commit it) and prints the line to add to <code>playwright.config</code>: <code>reporter: [[&quot;list&quot;], [&quot;./.forgeqe/playwright-reporter.mjs&quot;]]</code>. Every run then ends with a report, from <code>npx playwright test</code>, the VS Code Playwright extension, or CI. With <code>screenshot: &quot;only-on-failure&quot;</code> and <code>trace: &quot;retain-on-failure&quot;</code>, each failure shows its screenshot, the full error and stack, and the trace.</li>
751
- <li><strong>pytest</strong>: install ForgeQE in the environment that runs the tests. Its plugin loads by itself, from the terminal, VS Code's test explorer, or CI, in a folder with <code>forgeqe.yaml</code> or <code>.forgeqe/</code> (elsewhere with <code>pytest --forgeqe-report</code>). A test that passes when pytest-rerunfailures runs it again is reported as flaky.</li>
1338
+ <li><strong>Playwright</strong>: it copies a reporter to <code>.forgeqe/playwright-reporter.mjs</code> (commit it) and prints the line to add to
1339
+ <code>playwright.config</code>: <code>reporter: [[&quot;list&quot;], [&quot;./.forgeqe/playwright-reporter.mjs&quot;]]</code>. Every run then ends with a
1340
+ report, from <code>npx playwright test</code>, the VS Code Playwright extension, or CI. With <code>screenshot: &quot;only-on-failure&quot;</code> and
1341
+ <code>trace: &quot;retain-on-failure&quot;</code>, each failure shows its screenshot, the full error and stack, and the trace.</li>
1342
+ <li><strong>pytest</strong>: install ForgeQE in the environment that runs the tests. Its plugin loads
1343
+ by itself, from the terminal, VS Code's test explorer, or CI, in a folder with <code>forgeqe.yaml</code> or <code>.forgeqe/</code> (elsewhere
1344
+ with <code>pytest --forgeqe-report</code>). A test that passes when pytest-rerunfailures runs it again is reported as flaky.</li>
752
1345
  </ul>
753
- <p><code>FORGEQE_REPORT=0</code> turns the reporters off for a run (ForgeQE's own <code>run_tests</code> does this, as it writes its own report). The reporters call <code>forgeqe</code> on PATH, or <code>FORGEQE_BIN</code>; without it they keep the results file and print the command that builds the report. Screenshots and traces are copied into the report only from the working folder, never from a hidden folder or a file named like a key.</p>
1346
+ <p><strong>Turning them off.</strong> <code>FORGEQE_REPORT=0</code> turns the reporters off for a run (ForgeQE does this when it runs existing tests
1347
+ itself, as it writes its own report). The reporters call <code>forgeqe</code> on PATH, or <code>FORGEQE_BIN</code>; without it they keep the
1348
+ results file and print the command that builds the report. Screenshots and traces are copied into the report only from
1349
+ the working folder, never from a hidden folder or a file named like a key.</p>
754
1350
  </div>
755
1351
  </section>
756
1352
  </div>
757
- </article>
758
1353
  <article class="spec feat" id="cap-regression-packs">
759
1354
  <div class="hd"><span class="mono">Automated tests</span><h3>Regression packs for a release</h3></div>
760
1355
  <p class="ds">Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug.</p>
@@ -763,20 +1358,47 @@ every target).</p>
763
1358
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>a repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to read a sprint's or release's work items: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
764
1359
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>build_regression_pack</code> <code>run_regression_pack</code> <code>list_regression_packs</code> <code>regression_sources</code> <code>edit_regression_pack</code></p></div>
765
1360
  </div>
766
- <div class="detail"><span class="mono">In detail</span>
767
- <section class="doc" id="doc-how_to_use-regression-packs-for-a-release">
1361
+
1362
+ </article>
1363
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-regression-packs-for-a-release">
768
1364
  <h4>Regression packs for a release</h4>
769
- <div class="prose"><p>A regression pack is the set of your repository's tests that a release's changes can break, saved under a name so you can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words:</p>
1365
+ <div class="prose"><p>A regression pack is the set of your repository's tests that a release's changes can break, saved under a name so you
1366
+ can run it again (here, on TestMu AI, or in a pipeline) and compare runs. Ask in your own words:</p>
770
1367
  <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">Build a regression pack for sprint 12 and run it on TestMu
771
1368
  </span></span><span class="ln"><span class="cmd">Which tests should we run for the PRs merged this week?
772
1369
  </span></span><span class="ln"><span class="cmd">Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../shop-app
773
1370
  </span></span></code></pre></div>
774
- <p><strong>Where the changes come from.</strong> Any mix of:</p>
1371
+ <p><strong>Building a pack.</strong> None of the sources is required, and nothing runs until you say so.</p>
1372
+ <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>
1373
+ <ol>
1374
+ <li>Open <strong>Regression</strong>.</li>
1375
+ <li>On <strong>Agent</strong>, ask for a pack in a sentence (&quot;Create a regression pack for Release 22&quot;). The line at the top says which
1376
+ sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management,
1377
+ docs, a pipeline). The agent says what a missing one would add and offers to connect it.</li>
1378
+ <li>Answer the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then
1379
+ whether to save it and run it now or on a schedule. Above the message box, <em>The pack needs</em> ticks off each detail as
1380
+ it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it.</li>
1381
+ </ol>
1382
+ <p>To pick the sprint, commits or pull requests yourself (also without a model set up), press <strong>Build</strong> on <strong>Packs</strong>.</p>
1383
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1384
+ <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 pack build --name release-22 --sprint &quot;Sprint 12&quot; --release &quot;Release 22&quot;
1385
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --from release/2.3 --range-repo ../shop-app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the commits since a ref
1386
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --merged-days 7</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the pull requests merged this week
1387
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --refresh release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same changes read again
1388
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack build --based-on release-22 --sprint &quot;Sprint 13&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the next release, keeping the edits
1389
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack list</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the saved packs
1390
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack show release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one pack's tests and gaps
1391
+ </span></span></code></pre></div>
1392
+ <p>In the shell or with <code>forgeqe run</code>, the requests above do the same through ForgeQE's agent.</p>
1393
+ </div></div><p><strong>Where the changes come from.</strong> Any mix of:</p>
775
1394
  <ul>
776
- <li>an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested by, and the files their linked pull requests changed;</li>
777
- <li>the commits between two refs of a repository (<code>from</code> and <code>to</code>): the product's repository, or the test repository's own; work items the commit messages name (<code>AB#123</code>, <code>#123</code>, <code>PAY-12</code>) are read too;</li>
1395
+ <li>an Azure DevOps sprint, area, epic or feature, or work item ids: their stories and bugs, the test cases each is tested
1396
+ by, and the files their linked pull requests changed;</li>
1397
+ <li>the commits between two refs of a repository (<code>from</code> and <code>to</code>): the product's repository, or the test repository's
1398
+ own. Work items the commit messages name (<code>AB#123</code>, <code>#123</code>, <code>PAY-12</code>) are read too;</li>
778
1399
  <li>pull requests by number or URL, or the ones merged in the last N days (Azure DevOps or GitHub);</li>
779
- <li>anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release note): it reads the items and passes them in with their text and links.</li>
1400
+ <li>anything ForgeQE's agent can read through its connected tools (a Jira release, GitHub issues, a Confluence release
1401
+ note): it reads the items and passes them in with their text and links.</li>
780
1402
  </ul>
781
1403
  <p><strong>Why each test is in.</strong> A test can be in for more than one reason, and the card and <code>&lt;name&gt;.md</code> say each one:</p>
782
1404
  <div class="tbl tbl--cols-2"><table>
@@ -791,8 +1413,10 @@ every target).</p>
791
1413
  <tr><td data-label="Reason">smoke</td><td data-label="Meaning">the test is tagged smoke, so it is in every pack</td></tr>
792
1414
  </tbody>
793
1415
  </table></div>
794
- <p><strong>Gaps.</strong> Changes no test is in for are listed as <em>not covered</em>, each with the closest existing test and what it lacks, so you can extend that test rather than write a new one.</p>
795
- <p><strong>The plan: what the release needs.</strong> Besides the tests to run, a pack is a plan in four groups, so what is ready is never mixed up with what someone still has to do:</p>
1416
+ <p><strong>Gaps.</strong> Changes no test is in for are listed as <em>not covered</em>, each with the closest existing test and what it lacks,
1417
+ so you can extend that test rather than write a new one.</p>
1418
+ <p><strong>The plan: what the release needs.</strong> Besides the tests to run, a pack is a plan in four groups, so what is ready is
1419
+ never mixed up with what someone still has to do:</p>
796
1420
  <div class="tbl tbl--cols-3"><table>
797
1421
  <thead>
798
1422
  <tr><th>Group</th><th>What it is</th><th>Its script</th></tr>
@@ -804,23 +1428,69 @@ every target).</p>
804
1428
  <tr><td data-label="Group">D Exploratory</td><td data-label="What it is">the risk areas the release touches</td><td data-label="Its script">a session for a person</td></tr>
805
1429
  </tbody>
806
1430
  </table></div>
807
- <p>Each entry has a priority, says where it came from (<em>found</em> in the sources and the code, or <em>suggested</em> by ForgeQE or its agent) and keeps its evidence (the work item, pull request or defect history, with links). Change it in your words (&quot;take out the flaky ones&quot;, &quot;add a manual check of the invoice PDF&quot;, &quot;why is this in?&quot;) or on the page: priority, take out and put back, move between B, C and D, add an entry. An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the pack never claims a script it has not found. Every change is kept in the pack's history, with who made it.</p>
808
- <p>A pack starts as a <strong>draft</strong>; save it (a name, the release) when it is right, then run it now or on a schedule (a job that runs <code>forgeqe pack run</code>). Reuse it:</p>
1431
+ <p>Each entry has a priority, says where it came from (<em>found</em> in the sources and the code, or <em>suggested</em> by ForgeQE or its
1432
+ agent) and keeps its evidence (the work item, pull request or defect history, with links).</p>
1433
+ <ul>
1434
+ <li>Change it in your words (&quot;take out the flaky ones&quot;, &quot;add a manual check of the invoice PDF&quot;, &quot;why is this in?&quot;), or on
1435
+ the page: priority, take out and put back, move between B, C and D, add an entry.</li>
1436
+ <li>An automated test is added only when its file is in the test repository (no hidden file) and names the test, so the
1437
+ pack never claims a script it has not found.</li>
1438
+ <li>Every change is kept in the pack's history, with who made it.</li>
1439
+ </ul>
1440
+ <p><strong>Saving and reusing a pack.</strong> A pack starts as a <strong>Draft</strong>. Save it (a <strong>Name</strong> and the <strong>Release</strong>) when it is right,
1441
+ then run it now or on a schedule (a job that runs <code>forgeqe pack run</code>). Reuse it:</p>
809
1442
  <ul>
810
1443
  <li><strong>Refresh</strong>: the same changes read again (<code>forgeqe pack build --refresh release-22</code>); your edits and its runs stay.</li>
811
1444
  <li><strong>The next release</strong>: a new pack from new changes that keeps the edits of an earlier one (<code>--based-on release-22</code>).</li>
812
- <li><strong>Compare</strong> two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and the other not, and their last runs.</li>
1445
+ <li><strong>Compare</strong> two releases: what each has ready, manual, to automate and exploratory, the tests and changes one has and
1446
+ the other not, and their last runs.</li>
813
1447
  </ul>
814
1448
  <p><code>--release &quot;Release 22&quot;</code> names the release a pack is for.</p>
815
- <p><strong>On the Regression page</strong> there are two tabs. On <strong>Agent</strong> you ask for a pack in a sentence (&quot;Create a regression pack for Release 22&quot;). The agent reads which sources the project is connected to (the test and product repositories, Azure DevOps, Jira, GitHub, test management, docs, a pipeline: the line at the top says which), says what a missing one would add and offers to connect it, and asks for the details it still needs, one or two at a time: the release, where its changes are, what to leave out, then whether to save it and run it now or on a schedule. Above the message box, <em>The pack needs</em> ticks off each detail as it is given (sources, release, changes, plan, saved, run); click a missing one to start your answer to it. The tab looks and works like the API page's Agent tab. None of the sources is required, and nothing runs until you say so. On <strong>Packs</strong> the packs are a table, newest first: each with how many entries are ready to run, scripts missing, manual, to automate and exploratory, and its last run. A row opens the pack's page: one strip of numbers (ready to run, script missing, the four groups, high priority, coverage of the release's changes, the last run; click one to show those entries), the plan as a table (all or one group, high priority, script missing, flaky or taken out, a search over tests, files and features, 50 rows a page with the highest priority first; a row opens its evidence), and beside it the release's changes, risk areas, runs and triage, history and a comparison with another release. Without a model set up, <em>Choose the changes</em> picks the sprint, commits or pull requests yourself.</p>
816
- <p><strong>Running it.</strong> ForgeQE asks before it runs anything.</p>
1449
+ <p><strong>The Packs tab.</strong> The packs are a table, newest first: each with how many entries are ready to run, scripts missing,
1450
+ manual, to automate and exploratory, and its last run. A row opens the pack's page:</p>
1451
+ <ul>
1452
+ <li>one strip of numbers: ready to run, script missing, the four groups, high priority, coverage of the release's changes,
1453
+ the last run. Click one to show those entries;</li>
1454
+ <li>the plan as a table: all or one group, high priority, script missing, flaky or taken out, a search over tests, files
1455
+ and features, 50 rows a page with the highest priority first. A row opens its evidence;</li>
1456
+ <li>beside it, the release's changes, risk areas, runs and triage, history, and a comparison with another release;</li>
1457
+ <li><strong>Save</strong> (a draft), <strong>Run</strong>, <strong>Schedule</strong>, <strong>Refresh</strong>, and <strong>Ask</strong> for the agent.</li>
1458
+ </ul>
1459
+ <p>The Agent tab looks and works like the API tests page's Agent tab.</p>
1460
+ <p><strong>Running a pack.</strong> ForgeQE asks before it runs anything.</p>
817
1461
  <ul>
818
- <li><em>This machine</em>: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test (for .NET, a <code>--filter</code> with each test, the settings an earlier job used, TRX results), runs it, and reads each result. A failed test runs once more; one that then passes is flaky.</li>
819
- <li><em>A pipeline</em>: <code>forgeqe pack run &lt;name&gt; --on pipeline [--pipeline github|azure_devops] [--browsers local|testmu]</code> starts the pack in GitHub Actions or Azure Pipelines, waits for it, and reads its results. <code>forgeqe pack pipeline init [--github] [--azure-devops]</code> writes the workflow (<code>.github/workflows/forgeqe-pack.yml</code>) and the Azure DevOps pipeline; commit them, then name them under <code>packs.pipeline</code> in forgeqe.yaml (<code>default: github</code> or <code>azure_devops</code>; <code>github: { repo, workflow, ref }</code>; <code>azure_devops: { project, pipeline_id, ref }</code>; <code>timeout_minutes</code>, 60 by default). For TestMu AI, add the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> to the pipeline. The Azure DevOps PAT needs Build (read and execute) and Test Management (read).</li>
820
- <li><em>TestMu AI</em>: the same command, with the variable <code>FORGEQE_PW_WS_ENDPOINT</code> set to TestMu AI's Playwright endpoint for the browser and platform in <code>testmu.yaml</code> (the access key goes in the variable, never in the command, and is removed from the output). The tests must connect to it when it is set: for NUnit, override <code>ConnectOptionsAsync</code> in the test base class; for Playwright Test, set <code>connectOptions</code> from it in <code>playwright.config</code>. ForgeQE refuses a TestMu run when the tests do not read the variable, so a run never looks remote while it ran locally.</li>
1462
+ <li><em>This machine</em>: ForgeQE builds one command for exactly the pack's tests, the way the repository already runs a test
1463
+ (for .NET, a <code>--filter</code> with each test, the settings an earlier job used, TRX results), runs it, and reads each result.
1464
+ A failed test runs once more; one that then passes is flaky.</li>
1465
+ <li><em>TestMu AI</em>: the same command, with the variable <code>FORGEQE_PW_WS_ENDPOINT</code> set to TestMu AI's Playwright endpoint for
1466
+ the browser and platform in <code>testmu.yaml</code>. The access key goes in the variable, never in the command, and is removed
1467
+ from the output. The tests must connect to it when it is set: for NUnit, override <code>ConnectOptionsAsync</code> in the test
1468
+ base class; for Playwright Test, set <code>connectOptions</code> from it in <code>playwright.config</code>. ForgeQE refuses a TestMu run when
1469
+ the tests do not read the variable, so a run never looks remote while it ran locally.</li>
1470
+ <li><em>A pipeline</em> (at a terminal only): starts the pack in GitHub Actions or Azure Pipelines, waits for it, and reads its
1471
+ results. <code>forgeqe pack pipeline init</code> writes the workflow (<code>.github/workflows/forgeqe-pack.yml</code>) and the Azure DevOps
1472
+ pipeline. Commit them, then name them under <code>packs.pipeline</code> in forgeqe.yaml (<code>default: github</code> or <code>azure_devops</code>;
1473
+ <code>github: { repo, workflow, ref }</code>; <code>azure_devops: { project, pipeline_id, ref }</code>; <code>timeout_minutes</code>, 60 by default).
1474
+ For TestMu AI, add the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> to the pipeline. The Azure DevOps PAT needs Build
1475
+ (read and execute) and Test Management (read).</li>
821
1476
  </ul>
822
- <p>Each run is kept with the pack: the card says which tests fail now that passed in the last run, and which were fixed.</p>
823
- <p><strong>Triage: heal, re-run, or file a bug?</strong> After each run ForgeQE sorts every failed or flaky test into one route, from evidence that costs nothing first (the retry in the same run, the failure message, the test's history), so the AI is spent only where it decides something:</p>
1477
+ <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>
1478
+ <ol>
1479
+ <li>Open <strong>Regression</strong> › <strong>Packs</strong> and open the pack.</li>
1480
+ <li>Press <strong>Run</strong>, pick <strong>This machine</strong> or <strong>TestMu AI</strong>, and confirm. Or press <strong>Schedule</strong>, pick when and where, and
1481
+ confirm: the job is on the <strong>Jobs</strong> page.</li>
1482
+ </ol>
1483
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1484
+ <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 pack run release-22</span><span class="pad"> </span><span class="cm"><span class="h">#</span> this machine (asks first)
1485
+ </span></span><span class="ln"><span class="cmd">forgeqe pack run release-22 --on testmu
1486
+ </span></span><span class="ln"><span class="cmd">forgeqe pack run release-22 --on pipeline [--pipeline github|azure_devops] [--browsers local|testmu]
1487
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack pipeline init [--github] [--azure-devops]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> write the pipeline files once
1488
+ </span></span></code></pre></div>
1489
+ </div></div><p><strong>Each run is kept with the pack.</strong> The card says which tests fail now that passed in the last run, and which were
1490
+ fixed.</p>
1491
+ <p><strong>Triage: heal, re-run, or file a bug?</strong> After each run ForgeQE sorts every failed or flaky test into one route. It
1492
+ starts from evidence that costs nothing (the retry in the same run, the failure message, the test's history), so the AI
1493
+ is spent only where it decides something:</p>
824
1494
  <div class="tbl tbl--cols-3"><table>
825
1495
  <thead>
826
1496
  <tr><th>Route</th><th>When</th><th>What happens</th></tr>
@@ -833,12 +1503,28 @@ every target).</p>
833
1503
  <tr><td data-label="Route">AI re-run decides</td><td data-label="When">an expected value does not hold, a timeout, or something covers the element</td><td data-label="What happens">the healing agent re-runs the flow in the browser: heals the test when the flow works, reports an app bug when it fails at the same step</td></tr>
834
1504
  </tbody>
835
1505
  </table></div>
836
- <p>Failures that name the same element or the same message are shown as <strong>one cause</strong> (a page object or a shared step changed), so one fix can heal them together. When most failures are the environment, ForgeQE says to run the pack again before healing anything, and <code>heal_tests</code> refuses until you name the tests.</p>
837
- <p>The triage is on the run's card and in <code>triage.md</code> and <code>triage.json</code> in the run's folder. To heal only the tests it sent to healing, ask &quot;heal the failures of pack release-1.5&quot;, or run <code>forgeqe pack heal release-1.5</code> (<code>--tests</code> for some of them): ForgeQE builds a command for just those tests and the healing agent re-runs each flow in the browser before it changes anything. <code>forgeqe pack triage &lt;name&gt;</code> shows the last run's triage again. Packs are saved in <code>.forgeqe/packs/&lt;name&gt;.json</code> and <code>&lt;name&gt;.md</code>; run output and results in <code>.forgeqe/reports/packs/&lt;name&gt;/&lt;time&gt;/</code>.</p>
1506
+ <p>Failures that name the same element or the same message are shown as <strong>one cause</strong> (a page object or a shared step
1507
+ changed), so one fix can heal them together. When most failures are the environment, ForgeQE says to run the pack again
1508
+ before healing anything, and refuses to heal until you name the tests.</p>
1509
+ <p>The triage is on the run's card and in <code>triage.md</code> and <code>triage.json</code> in the run's folder. Healing the tests it sent to
1510
+ healing builds a command for just those tests, and the healing agent re-runs each flow in the browser before it changes
1511
+ anything.</p>
1512
+ <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>
1513
+ <ol>
1514
+ <li>Open the pack on <strong>Regression</strong> › <strong>Packs</strong>. <strong>Triage of the last run</strong> lists each route.</li>
1515
+ <li>Tick the tests to heal (or <strong>All</strong>) and press <strong>Heal</strong>.</li>
1516
+ <li>At a limit, answer <strong>Carry on</strong> or <strong>Stop here</strong> under the job's output.</li>
1517
+ </ol>
1518
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1519
+ <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 pack triage release-1.5</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the last run's triage again
1520
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe pack heal release-1.5 [--tests a,b]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> heal only the tests triage sent to healing
1521
+ </span></span></code></pre></div>
1522
+ <p>In the shell, &quot;heal the failures of pack release-1.5&quot; does the same.</p>
1523
+ </div></div><p><strong>Where packs are kept.</strong> Packs are saved in <code>.forgeqe/packs/&lt;name&gt;.json</code> and <code>&lt;name&gt;.md</code>; run output and results in
1524
+ <code>.forgeqe/reports/packs/&lt;name&gt;/&lt;time&gt;/</code>.</p>
838
1525
  </div>
839
1526
  </section>
840
1527
  </div>
841
- </article>
842
1528
  <article class="spec feat" id="cap-flaky-tests">
843
1529
  <div class="hd"><span class="mono">Automated tests</span><h3>Flaky test detection and quarantine</h3></div>
844
1530
  <p class="ds">Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees.</p>
@@ -847,11 +1533,18 @@ every target).</p>
847
1533
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>a repository whose tests ForgeQE has run</span></li></ul></div>
848
1534
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>flaky_tests</code> <code>quarantine_tests</code></p></div>
849
1535
  </div>
850
- <div class="detail"><span class="mono">In detail</span>
851
- <section class="doc" id="doc-how_to_use-flaky-tests">
1536
+
1537
+ </article>
1538
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-flaky-tests">
852
1539
  <h4>Flaky tests</h4>
853
- <div class="prose"><p>Every <code>run_tests</code> and <code>pr-tests</code> run keeps each test's result in <code>.forgeqe/test-history.json</code> in the repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in the same run, with the framework's own option (Playwright <code>--last-failed</code>, pytest <code>--lf</code>, Jest <code>--onlyFailures</code>; otherwise the whole command again when the selection is small): when it then passes it is <strong>flaky</strong>, not failed, and the run does not fail because of it.</p>
854
- <p>&quot;Which tests are flaky?&quot; (<code>flaky_tests</code>) reads the history: each test's last results (<code>✓✗✓↻✓</code>, where ↻ means it passed only when run again), its pass rate, a flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure messages, with an example:</p>
1540
+ <div class="prose"><p>Every run of existing tests and every <code>pr-tests</code> run keeps each test's result in <code>.forgeqe/test-history.json</code> in the
1541
+ repository (commit it to share the history, or keep it between CI runs as a cache). A test that fails runs once more in
1542
+ the same run, with the framework's own option (Playwright <code>--last-failed</code>, pytest <code>--lf</code>, Jest <code>--onlyFailures</code>;
1543
+ otherwise the whole command again when the selection is small). When it then passes it is <strong>flaky</strong>, not failed, and the
1544
+ run does not fail because of it.</p>
1545
+ <p>The history gives each test's last results (<code>✓✗✓↻✓</code>, where ↻ means it passed only when run again), its pass rate, a
1546
+ flakiness score (passes on retry plus pairs of flip-flops in the last 20 runs), and the likely cause from its failure
1547
+ messages, with an example:</p>
855
1548
  <div class="tbl tbl--cols-2"><table>
856
1549
  <thead>
857
1550
  <tr><th>Cause</th><th>From messages like</th></tr>
@@ -864,7 +1557,21 @@ every target).</p>
864
1557
  <tr><td data-label="Cause">Environment</td><td data-label="From messages like">the browser closed or crashed, the server was not ready</td></tr>
865
1558
  </tbody>
866
1559
  </table></div>
867
- <p>A test that only fails is broken, not flaky. <strong>Quarantine</strong> keeps a flaky test running, so its history goes on, but its failures stop failing the run and CI (<code>pr-tests --run</code> exits 0 when only quarantined tests fail); no test code changes. A quarantined test that passes 5 runs in a row is offered for release. The agent offers <code>quarantine_tests</code> (it asks you first) and <code>heal_tests</code> to fix the cause.</p>
1560
+ <p>A test that only fails is broken, not flaky. <strong>Quarantine</strong> keeps a flaky test running, so its history goes on, but its
1561
+ failures stop failing the run and CI (<code>pr-tests --run</code> exits 0 when only quarantined tests fail); no test code changes. A
1562
+ quarantined test that passes 5 runs in a row is offered for release.</p>
1563
+ <p><strong>Seeing and quarantining flaky tests.</strong></p>
1564
+ <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>
1565
+ <ol>
1566
+ <li>Open <strong>Flaky tests</strong>. Each test shows its last results, flips, retry passes, run time and likely cause.</li>
1567
+ <li>Pick tests and press <strong>Quarantine</strong> (or <strong>Release</strong> for quarantined ones), add a reason if you like, and confirm.</li>
1568
+ <li>To fix the cause, the heal button on a test's row heals it in the regression pack whose last run sent it to healing.</li>
1569
+ </ol>
1570
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1571
+ <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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: Which tests are flaky?
1572
+ </span></span></code></pre></div>
1573
+ <p>ForgeQE's agent offers to quarantine tests (it asks you first) and to heal them to fix the cause.</p>
1574
+ </div></div><p><strong>Settings.</strong> In <strong>Settings › Reports and memory</strong>, or in forgeqe.yaml:</p>
868
1575
  <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">flaky:
869
1576
  </span></span><span class="ln ln--pair"><span class="cmd"> retries: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> runs of a failed test in the same run (0 to 3)
870
1577
  </span></span><span class="ln ln--pair"><span class="cmd"> quarantine: suggest</span><span class="pad"> </span><span class="cm"><span class="h">#</span> suggest (the agent asks), auto (ForgeQE quarantines), or off (history only)
@@ -873,7 +1580,6 @@ every target).</p>
873
1580
  </div>
874
1581
  </section>
875
1582
  </div>
876
- </article>
877
1583
  <article class="spec feat" id="cap-run-diff">
878
1584
  <div class="hd"><span class="mono">Automated tests</span><h3>Compare two runs step by step</h3></div>
879
1585
  <p class="ds">Lines two browser runs up step by step and says where they first differ and what kind of difference it is: the server's answer, a missing element, another page, data, or timing; with calls, errors and screenshots.</p>
@@ -882,14 +1588,32 @@ every target).</p>
882
1588
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>two browser runs</span></li></ul></div>
883
1589
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>run_diff</code></p></div>
884
1590
  </div>
885
- <div class="detail"><span class="mono">In detail</span>
886
- <section class="doc" id="doc-how_to_use-comparing-two-runs">
1591
+
1592
+ </article>
1593
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-comparing-two-runs">
887
1594
  <h4>Comparing two runs</h4>
888
- <div class="prose"><p>&quot;Why does it fail today when it passed yesterday?&quot; (<code>run_diff</code>, and the <strong>Run diff</strong> page of <code>forgeqe web</code>) lines two browser runs up step by step, by page and action, so a step only one run did (a cookie banner, a retry) does not shift the rest. Each step shows how it ended, the API calls that answered otherwise (method, path and status only), new browser errors, its time and both screenshots. The step to look at first is marked with what it likely is: the server answered differently (likely a product change), an element was not found (the page changed: heal the test if the change was meant), another page or path, other data, or only timing (a slow environment or a race). Use it for a pass and a fail of one test, the same test on two environments or devices, or a test before and after it was healed.</p>
889
- </div>
1595
+ <div class="prose"><p>&quot;Why does it fail today when it passed yesterday?&quot; ForgeQE lines two browser runs up step by step, by page and action,
1596
+ so a step only one run did (a cookie banner, a retry) does not shift the rest.</p>
1597
+ <ul>
1598
+ <li>Each step shows how it ended, the API calls that answered otherwise (method, path and status only), new browser
1599
+ errors, its time and both screenshots.</li>
1600
+ <li>The step to look at first is marked with what it likely is: the server answered differently (likely a product change),
1601
+ an element was not found (the page changed: heal the test if the change was meant), another page or path, other data,
1602
+ or only timing (a slow environment or a race).</li>
1603
+ </ul>
1604
+ <p>Use it for a pass and a fail of one test, the same test on two environments or devices, or a test before and after it
1605
+ was healed.</p>
1606
+ <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>
1607
+ <ol>
1608
+ <li>Open <strong>Run diff</strong>.</li>
1609
+ <li>Pick the first run, then the run to compare.</li>
1610
+ </ol>
1611
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1612
+ <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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: Why does it fail today when it passed yesterday?
1613
+ </span></span></code></pre></div>
1614
+ </div></div></div>
890
1615
  </section>
891
1616
  </div>
892
- </article>
893
1617
  <article class="spec feat" id="cap-test-debt">
894
1618
  <div class="hd"><span class="mono">Automated tests</span><h3>Test debt and coverage gaps</h3></div>
895
1619
  <p class="ds">Lists code areas and business rules no test reaches, tests that never fail or whose file is gone, near-duplicate tests, and test cases not yet automated, each with a request to draft its test.</p>
@@ -898,14 +1622,31 @@ every target).</p>
898
1622
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The product's repositories: product.repos in forgeqe.yaml, a name and the path of a local clone each</span></li></ul></div>
899
1623
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_debt</code></p></div>
900
1624
  </div>
901
- <div class="detail"><span class="mono">In detail</span>
902
- <section class="doc" id="doc-how_to_use-test-debt-and-coverage-gaps">
1625
+
1626
+ </article>
1627
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-debt-and-coverage-gaps">
903
1628
  <h4>Test debt and coverage gaps</h4>
904
- <div class="prose"><p>&quot;What has no test?&quot; (<code>test_debt</code>, and the <strong>Test debt</strong> page) lists code areas and business rules no test reaches (from the product graph, <code>forgeqe knowledge build</code>, and the knowledge folder), tests that tell little (30 passes in a row, or whose file is gone from the repository), near-duplicate tests by their shared words, and each test case of the connected trackers with whether it is automated. Each gap can become a request to draft its test, which the agent offers and runs only when you agree.</p>
905
- </div>
1629
+ <div class="prose"><p>&quot;What has no test?&quot; ForgeQE lists:</p>
1630
+ <ul>
1631
+ <li>code areas and business rules no test reaches (from the product graph, <code>forgeqe knowledge build</code>, and the knowledge
1632
+ folder);</li>
1633
+ <li>tests that tell little: 30 passes in a row, or whose file is gone from the repository;</li>
1634
+ <li>near-duplicate tests, by their shared words;</li>
1635
+ <li>each test case of the connected trackers, with whether it is automated.</li>
1636
+ </ul>
1637
+ <p>Each gap can become a request to draft its test, which the agent offers and runs only when you agree.</p>
1638
+ <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>
1639
+ <ol>
1640
+ <li>Open <strong>Test debt</strong>.</li>
1641
+ <li>Pick <strong>Untested code and rules</strong>, <strong>Low-signal tests</strong>, <strong>Near-duplicates</strong> or <strong>Test cases</strong>.</li>
1642
+ <li>To draft a test for a gap, press its draft button: it asks in a chat, and nothing changes until you agree there.</li>
1643
+ </ol>
1644
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1645
+ <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 start</span><span class="pad"> </span><span class="cm"><span class="h">#</span> then: What has no test?
1646
+ </span></span></code></pre></div>
1647
+ </div></div></div>
906
1648
  </section>
907
1649
  </div>
908
- </article>
909
1650
  <article class="spec feat" id="cap-test-management">
910
1651
  <div class="hd"><span class="mono">Automated tests</span><h3>Test management</h3></div>
911
1652
  <p class="ds">Plans' test cases, their tests and runs; gaps; suites.</p>
@@ -914,47 +1655,116 @@ every target).</p>
914
1655
  <div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
915
1656
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>test_inventory</code></p></div>
916
1657
  </div>
917
- <div class="detail"><span class="mono">In detail</span>
918
- <section class="doc" id="doc-how_to_use-test-management">
1658
+
1659
+ </article>
1660
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-management">
919
1661
  <h4>Test management</h4>
920
- <div class="prose"><p>The <strong>Test management</strong> page (<code>#/test-management</code> in <code>forgeqe web</code>, and <code>test_inventory</code> for the agent) shows every test case of your test plans in one place, so you do not open the tracker or the repository to see them. Name the plans in Settings › Integrations, under each system's <strong>Test plans in Test management</strong> (<code>sources.azure_devops.test_plans: [plan=12]</code>, and the same for <code>xray</code>, <code>testrail</code>, <code>zephyr</code> and <code>qtest</code>), then press <strong>Sync</strong>.</p>
921
- <p><strong>Syncing on a schedule.</strong> The button beside <strong>Sync</strong> (<code>Sync: off</code>, <code>Sync: hourly</code>, <code>Sync: daily 07:00</code>) sets when ForgeQE reads the plans again, in the jobs service, while this computer is on. Each scheduled sync also reads again the stories Gaps shows. <strong>Also discover the tests first</strong> discovers the tests before each sync with the commands the sheet shows; if the test projects change, it stops discovering until you confirm again.</p>
1662
+ <div class="prose"><p>The <strong>Test management</strong> page shows every test case of your test plans in one place, so you do not open the tracker or
1663
+ the repository to see them. ForgeQE's agent can answer from the same list in a chat or the shell.</p>
1664
+ <p><strong>Connecting your test plans.</strong></p>
1665
+ <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>
1666
+ <ol>
1667
+ <li>Open <strong>Settings › Integrations</strong>. Under each system, fill <strong>Test plans in Test management</strong>
1668
+ (<code>sources.azure_devops.test_plans: [plan=12]</code>, and the same for <code>xray</code>, <code>testrail</code>, <code>zephyr</code> and <code>qtest</code>).</li>
1669
+ <li>Open <strong>Test management</strong> and press <strong>Sync</strong>.</li>
1670
+ </ol>
1671
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
1672
+ <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 testmgmt sync</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every case of the connected plans now
1673
+ </span></span></code></pre></div>
1674
+ </div></div><p><strong>What the page shows.</strong> In the web app only:</p>
1675
+ <ul>
1676
+ <li><strong>Dashboard</strong>: cases, automated, not automated, pending, failing and generated by ForgeQE, each with its change over
1677
+ the week; coverage over time; cases generated and automated each week; and each suite's last run, with <strong>Run</strong> and
1678
+ <strong>Rerun failed</strong>.</li>
1679
+ <li><strong>Test cases</strong>: every case with its automated test, last run, tags and suite, in views (not automated, failing,
1680
+ pending, generated, steps changed, tracker disagrees) and filters. Pick cases to <strong>Run</strong>, <strong>Tag</strong> or make a suite. A
1681
+ case opens on its own page with its steps, test and runs.</li>
1682
+ <li><strong>Automated</strong>: the repository's automated tests, as a test explorer lists them: each with ForgeQE's id (<code>T-…</code>), its
1683
+ framework's own id, its file and line, its tags, its last runs and the test cases it is linked to. Filter by <strong>No test
1684
+ case</strong>, <strong>Linked</strong> or <strong>Read from the code</strong>.</li>
1685
+ <li><strong>Gaps</strong>: cases not automated, ranked by priority, failures, packs and smoke tags, with why; pending, never run and
1686
+ failing cases; cases whose steps changed or whose tracker disagrees; tests with no case; and the release's <strong>Stories
1687
+ with no case</strong> and <strong>Criteria not covered</strong>. Say which stories with <strong>Read stories</strong>: in Azure DevOps a sprint,
1688
+ iteration path, area path, epic or feature, or work item ids; in Jira (also Xray and Zephyr Scale) a sprint, fix
1689
+ version, epic or story keys; in qTest a requirements module or requirement ids. Until you read some, the newest
1690
+ Release readiness report is used. Every sync reads them again.</li>
1691
+ <li><strong>Suites</strong>: tell the <strong>Suite agent</strong> (Sorter) what the suite is for, such as &quot;P1 payments and anything failing lately&quot;.
1692
+ It builds the suite from rules over your cases, which ForgeQE checks, and you save it. A suite runs as <code>forgeqe suite</code>
1693
+ on a test environment you pick, never one named like production.</li>
1694
+ <li><strong>Tags</strong>: tags from your trackers, your tests (<code>@smoke</code>) and ForgeQE (<code>.forgeqe/testmgmt/tags.json</code>), with which are
1695
+ out of step.</li>
1696
+ </ul>
1697
+ <p>The Test case and Gap agents, docked on the right, start a chat from what you picked: automate, find why they fail,
1698
+ suggest tags, <strong>Write tags into tests</strong> (the coding agent writes the cases' tags into their linked tests as the framework
1699
+ writes tags, and shows the diff before saving), and <strong>Cases for stories with none</strong> (test cases for the stories you
1700
+ picked in Gaps, shown before they are saved).</p>
1701
+ <p><strong>Syncing on a schedule.</strong> ForgeQE reads the plans again on a schedule you set, while this computer is on. Each scheduled sync also reads again the stories Gaps shows, and can discover the tests first.</p>
1702
+ <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>
1703
+ <ol>
1704
+ <li>Open <strong>Test management</strong>.</li>
1705
+ <li>Press the button beside <strong>Sync</strong> (it says <code>Sync: off</code>, <code>Sync: hourly</code> or <code>Sync: daily 07:00</code>).</li>
1706
+ <li>Pick <strong>Off</strong>, <strong>Every hour</strong> or <strong>Daily</strong> and its <strong>Time</strong> (this computer's clock).</li>
1707
+ <li>To discover the tests before each sync, tick <strong>Also discover the tests first</strong>; the sheet shows the commands that will run. If the test projects change, it stops discovering until you confirm again.</li>
1708
+ <li>Press <strong>Save</strong>.</li>
1709
+ </ol>
1710
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
922
1711
  <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 testmgmt sync</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read every case of the connected plans now
923
1712
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe testmgmt schedule</span><span class="pad"> </span><span class="cm"><span class="h">#</span> when they are synced
924
1713
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe testmgmt schedule daily 07:00</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or: hourly, off
925
1714
  </span></span></code></pre></div>
1715
+ </div></div><p><strong>Discovering the tests.</strong> In the web app only: on <strong>Automated</strong>, <strong>Discover tests</strong> asks each test project's own
1716
+ framework for its tests: pytest, .NET (NUnit, xUnit, MSTest), Playwright, Jest, Vitest, Mocha and Robot Framework.
1717
+ Gherkin <code>.feature</code> files are read as text.</p>
1718
+ <ul>
1719
+ <li>This runs the repository's code (pytest imports <code>conftest.py</code>, .NET builds the project), so the sheet shows the exact
1720
+ commands first and runs only those, without ForgeQE's secrets.</li>
1721
+ <li>A test its framework cannot list is read from the code instead.</li>
1722
+ <li>Each test gets ForgeQE's id (<code>T-</code> and hex), kept in <code>.forgeqe/testmgmt/tests.json</code>; commit it so the team shares the
1723
+ ids. A test keeps its id when it is renamed or moved.</li>
1724
+ </ul>
1725
+ <p><strong>Linking cases and tests.</strong> In the web app only. A case can have several tests, and a test several cases.</p>
926
1726
  <ul>
927
- <li><strong>Dashboard</strong>: cases, automated, not automated, pending, failing and generated by ForgeQE, each with its change over the week; coverage over time; cases generated and automated each week; and each suite's last run, with Run and Rerun failed.</li>
928
- <li><strong>Test cases</strong>: every case with its automated test, last run, tags and suite, in views (not automated, failing, pending, generated, steps changed, tracker disagrees) and filters. Pick cases to Run, Tag or make a suite. A case opens on its own page with its steps, test and runs.</li>
929
- <li><strong>Automated</strong>: the repository's automated tests, as a test explorer lists them: each with ForgeQE's id (<code>T-…</code>), its framework's own id, its file and line, its tags, its last runs and the test cases it is linked to. Filter by <strong>No test case</strong>, <strong>Linked</strong> or <strong>Read from the code</strong>.</li>
930
- <li><strong>Gaps</strong>: cases not automated, ranked by priority, failures, packs and smoke tags, with why; pending, never run and failing cases; cases whose steps changed or whose tracker disagrees; tests with no case; and the release's <strong>stories with no case</strong> and <strong>acceptance criteria not covered</strong>. Say which stories with <strong>Read stories</strong>: in Azure DevOps a sprint, iteration path, area path, epic or feature, or work item ids; in Jira (also Xray and Zephyr Scale) a sprint, fix version, epic or story keys; in qTest a requirements module or requirement ids. Until you read some, the newest Release readiness report is used. Every sync reads them again.</li>
931
- <li><strong>Suites</strong>: tell the <strong>Suite agent</strong> (Sorter) what the suite is for, such as &quot;P1 payments and anything failing lately&quot;. It builds the suite from rules over your cases, which ForgeQE checks, and you save it. A suite runs as <code>forgeqe suite</code> on a test environment you pick, never one named like production.</li>
932
- <li><strong>Tags</strong>: tags from your trackers, your tests (<code>@smoke</code>) and ForgeQE (<code>.forgeqe/testmgmt/tags.json</code>), with which are out of step.</li>
933
- </ul>
934
- <p>The Test case and Gap agents, docked on the right, start a chat from what you picked: automate, find why they fail, suggest tags, <strong>Write tags into tests</strong> (the coding agent writes the cases' tags into their linked tests as the framework writes tags, and shows the diff before saving), and <strong>Cases for stories with none</strong> (test cases for the stories you picked in Gaps, shown before they are saved).</p>
935
- <p><strong>Discovering the tests.</strong> On <strong>Automated</strong>, <strong>Discover tests</strong> asks each test project's own framework for its tests: pytest, .NET (NUnit, xUnit, MSTest), Playwright, Jest, Vitest, Mocha and Robot Framework. Gherkin <code>.feature</code> files are read as text. This runs the repository's code (pytest imports <code>conftest.py</code>, .NET builds the project), so the sheet shows the exact commands first and runs only those, without ForgeQE's secrets. A test its framework cannot list is read from the code instead. Each test gets ForgeQE's id (<code>T-</code> and hex), kept in <code>.forgeqe/testmgmt/tests.json</code>; commit it so the team shares the ids. A test keeps its id when it is renamed or moved.</p>
936
- <p><strong>Linking cases and tests.</strong> A case can have several tests, and a test several cases. ForgeQE links them by itself when a test's marker or attribute names the case (<code>@pytest.mark.testcase(&quot;C12&quot;)</code>, <code>[Property(&quot;TestCaseId&quot;, &quot;123&quot;)]</code>, <code>[WorkItem(123)]</code>, <code>@id:ADO-5</code>), when the case's tracker names the test, or when the case's id is in the test's name or tags (<code>TC-123 adds to the basket</code>). You can link by hand: <strong>Link to a test case</strong> on <strong>Automated</strong>, or <strong>Link a test</strong> on a case's page; <strong>Unlink</strong> removes one, and it is not linked again by itself. <strong>Link with the agent</strong> (or <strong>Ask the agent</strong> on a case's page) asks the mapping agent (Matchmaker) to find the tests for cases that have none. It links only when it is sure and the case and test share most of their words; the rest wait on the case's page as proposals to <strong>Accept</strong> or <strong>Refuse</strong>. Links, proposals and refusals are kept in <code>.forgeqe/testmgmt/links.json</code>; commit it to share them.</p>
937
- <p><strong>A case's main test.</strong> When a case has several tests, make one its <strong>Main test</strong> on the case's page. It is listed first, its tracker records it as the case's automated test, and a run uses it first.</p>
938
- <p><strong>Running linked tests.</strong> Run a case, or a suite, and ForgeQE first records the case's linked tests in its mapping (<code>.forgeqe/test-cases.json</code>) with one command that runs them all, so <code>forgeqe suite</code> runs them too. A Gherkin scenario runs through its feature's own runner, found from the project's files: Cucumber.js, Behave, pytest-bdd, Cucumber JVM (Maven or Gradle), or SpecFlow or Reqnroll. A scenario with no runner found cannot be run this way.</p>
939
- <p><strong>Writing back to the trackers.</strong> Test management can also change the trackers, always showing exactly what would change first and writing only that list:</p>
940
- <ul>
941
- <li><strong>Mark automated</strong> (picked cases, or <strong>Mark automated in its system</strong> on a case's page): each case whose test ForgeQE knows, from its mapping or a link, gets Azure DevOps' Associated Automation, or the <code>automated</code> label on its Jira or Xray test.</li>
942
- <li><strong>Write tags</strong> (picked cases, <strong>Write tags to its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's tags are added to the case's Azure DevOps tags or Jira labels. Tags the case already has stay.</li>
943
- <li><strong>Take tags off</strong> (<strong>Take tags off in its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's own tags are taken off the case's Azure DevOps tags or Jira labels. The tracker's other tags stay.</li>
944
- <li><strong>Keep in tracker</strong> (a suite): the suite is made as a static suite in a connected Azure DevOps plan, or as an Xray Test Set (Xray Cloud, or Xray Server/Data Center over https), with its cases. <strong>Keep in step</strong> later adds the cases it gained and takes out the ones it lost.</li>
1727
+ <li>ForgeQE links them by itself when a test's marker or attribute names the case (<code>@pytest.mark.testcase(&quot;C12&quot;)</code>,
1728
+ <code>[Property(&quot;TestCaseId&quot;, &quot;123&quot;)]</code>, <code>[WorkItem(123)]</code>, <code>@id:ADO-5</code>), when the case's tracker names the test, or when
1729
+ the case's id is in the test's name or tags (<code>TC-123 adds to the basket</code>).</li>
1730
+ <li>You can link by hand: <strong>Link to a test case</strong> on <strong>Automated</strong>, or <strong>Link a test</strong> on a case's page. <strong>Unlink</strong> removes
1731
+ one, and it is not linked again by itself.</li>
1732
+ <li><strong>Link with the agent</strong> (or <strong>Ask the agent</strong> on a case's page) asks the mapping agent (Matchmaker) to find the tests
1733
+ for cases that have none. It links only when it is sure and the case and test share most of their words; the rest
1734
+ wait on the case's page as proposals to <strong>Accept</strong> or <strong>Refuse</strong>.</li>
1735
+ <li>Links, proposals and refusals are kept in <code>.forgeqe/testmgmt/links.json</code>; commit it to share them.</li>
1736
+ </ul>
1737
+ <p><strong>A case's main test.</strong> When a case has several tests, make one its <strong>Main test</strong> on the case's page. It is listed first,
1738
+ its tracker records it as the case's automated test, and a run uses it first.</p>
1739
+ <p><strong>Running linked tests.</strong> Run a case, or a suite, and ForgeQE first records the case's linked tests in its mapping
1740
+ (<code>.forgeqe/test-cases.json</code>) with one command that runs them all, so <code>forgeqe suite</code> runs them too. A Gherkin scenario
1741
+ runs through its feature's own runner, found from the project's files: Cucumber.js, Behave, pytest-bdd, Cucumber JVM
1742
+ (Maven or Gradle), or SpecFlow or Reqnroll. A scenario with no runner found cannot be run this way.</p>
1743
+ <p><strong>Writing back to the trackers.</strong> In the web app only. Test management can also change the trackers. It always shows
1744
+ exactly what would change first, and writes only that list:</p>
1745
+ <ul>
1746
+ <li><strong>Mark automated</strong> (picked cases, or <strong>Mark automated in its system</strong> on a case's page): each case whose test ForgeQE
1747
+ knows, from its mapping or a link, gets Azure DevOps' Associated Automation, or the <code>automated</code> label on its Jira or
1748
+ Xray test.</li>
1749
+ <li><strong>Write tags</strong> (picked cases, <strong>Write tags to its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's tags
1750
+ are added to the case's Azure DevOps tags or Jira labels. Tags the case already has stay.</li>
1751
+ <li><strong>Take tags off</strong> (<strong>Take tags off in its system</strong> on a case's page, or a tag on the Tags page): ForgeQE's own tags are
1752
+ taken off the case's Azure DevOps tags or Jira labels. The tracker's other tags stay.</li>
1753
+ <li><strong>Keep in tracker</strong> (a suite): the suite is made as a static suite in a connected Azure DevOps plan, or as an Xray Test
1754
+ Set (Xray Cloud, or Xray Server/Data Center over https), with its cases. <strong>Keep in step</strong> later adds the cases it
1755
+ gained and takes out the ones it lost.</li>
945
1756
  </ul>
946
1757
  <p>Each write is audited. If a tracker refuses a case, the sheet says why for that case and the rest still go through.</p>
947
1758
  </div>
948
1759
  </section>
949
1760
  </div>
950
- </article>
951
1761
 
952
1762
  <nav class="pager" aria-label="Previous and next">
953
1763
  <a class="prev" href="../area-test-cases/index.html"><small>Previous</small><span>Test cases</span></a>
954
1764
  <a class="next" href="../feature-test-prompts/index.html"><small>Next</small><span>Feature test prompts</span></a>
955
1765
  </nav>
956
1766
  </main>
957
- <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-6-tests">Tests</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#doc-how_to_use-fixing-broken-tests">Fixing broken tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#doc-how_to_use-migrating-a-test-suite">Migrating a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#doc-how_to_use-converting-tosca-tests">Converting Tosca tests</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-finding-and-running-existing-tests">Finding and running existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#doc-how_to_use-regression-packs-for-a-release">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#doc-how_to_use-flaky-tests">Flaky tests</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#doc-how_to_use-comparing-two-runs">Comparing two runs</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#doc-how_to_use-test-debt-and-coverage-gaps">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li><li><a href="#doc-how_to_use-test-management">Test management</a></li></ul></aside>
1767
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-write-tests">Turn a passed run into an automated test</a></li><li><a href="#doc-how_to_use-how-quill-writes-a-test">How Quill writes a test</a></li><li><a href="#cap-heal-tests">Heal failing tests</a></li><li><a href="#cap-migrate-tests">Migrate a test suite</a></li><li><a href="#cap-tosca-convert">Convert Tosca test cases</a></li><li><a href="#cap-find-run-tests">Find and run existing tests</a></li><li><a href="#doc-how_to_use-reports-for-tests-run-outside-forgeqe">Reports for tests run outside ForgeQE</a></li><li><a href="#cap-regression-packs">Regression packs for a release</a></li><li><a href="#cap-flaky-tests">Flaky test detection and quarantine</a></li><li><a href="#cap-run-diff">Compare two runs step by step</a></li><li><a href="#cap-test-debt">Test debt and coverage gaps</a></li><li><a href="#cap-test-management">Test management</a></li></ul></aside>
958
1768
  </div>
959
1769
  <footer class="foot">
960
1770
  <div class="container foot__row">