@capagents/forgeqe 3.1.1 → 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 (258) hide show
  1. package/HOW_TO_USE.md +5152 -1869
  2. package/README.md +155 -434
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +126 -13
  7. package/dist/docs-site/docs/architecture/index.html +56 -530
  8. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  9. package/dist/docs-site/docs/area-api/index.html +491 -0
  10. package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
  11. package/dist/docs-site/docs/area-browser/index.html +472 -0
  12. package/dist/docs-site/docs/area-data/index.html +595 -0
  13. package/dist/docs-site/docs/area-desktop/index.html +802 -0
  14. package/dist/docs-site/docs/area-mobile/index.html +683 -0
  15. package/dist/docs-site/docs/area-operations/index.html +1243 -0
  16. package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
  17. package/dist/docs-site/docs/area-quality/index.html +427 -0
  18. package/dist/docs-site/docs/area-release/index.html +435 -0
  19. package/dist/docs-site/docs/area-setup/index.html +1595 -0
  20. package/dist/docs-site/docs/area-systems/index.html +191 -0
  21. package/dist/docs-site/docs/area-test-cases/index.html +927 -0
  22. package/dist/docs-site/docs/containers/index.html +168 -189
  23. package/dist/docs-site/docs/cost-architecture/index.html +110 -113
  24. package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
  25. package/dist/docs-site/docs/desktop/index.html +363 -373
  26. package/dist/docs-site/docs/desktop-ci/index.html +39 -36
  27. package/dist/docs-site/docs/docs-tabs.js +56 -0
  28. package/dist/docs-site/docs/evidence/index.html +297 -300
  29. package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
  30. package/dist/docs-site/docs/get-started/index.html +791 -0
  31. package/dist/docs-site/docs/graphify/index.html +45 -48
  32. package/dist/docs-site/docs/guardrails/index.html +35 -23
  33. package/dist/docs-site/docs/index.html +18 -6729
  34. package/dist/docs-site/docs/mobile/index.html +223 -210
  35. package/dist/docs-site/docs/model-routing/index.html +84 -65
  36. package/dist/docs-site/docs/overview/index.html +192 -0
  37. package/dist/docs-site/docs/product-graph/index.html +60 -62
  38. package/dist/docs-site/docs/product-knowledge/index.html +24 -17
  39. package/dist/docs-site/docs/product-views/index.html +57 -60
  40. package/dist/docs-site/docs/reference/index.html +409 -0
  41. package/dist/docs-site/docs/search.js +1 -1
  42. package/dist/docs-site/docs/using/index.html +798 -0
  43. package/dist/docs-site/docs/web-app/index.html +168 -111
  44. package/dist/docs-site/security/index.html +930 -0
  45. package/dist/docs-site/security/security-theme.css +161 -0
  46. package/dist/docs-site/security/security.js +1465 -0
  47. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  48. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  49. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  50. package/dist/forgeqe.js +1903 -1896
  51. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  52. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  53. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  54. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  55. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  56. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  57. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  58. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  59. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  60. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  61. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  62. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  63. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  64. package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
  65. package/dist/web/assets/Features-haQchkhA.js +1 -0
  66. package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
  67. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  68. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  69. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  70. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  71. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  72. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  73. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  74. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  75. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  76. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  77. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  78. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  79. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  80. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  81. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  82. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  83. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  84. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  85. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  86. package/dist/web/assets/Steps-HYHK9psI.js +2 -0
  87. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  88. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  89. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  90. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  91. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  92. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  93. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  94. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  95. package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
  96. package/dist/web/assets/diff-CcNwLCX6.js +2 -0
  97. package/dist/web/assets/families-gkpkloLT.js +1 -0
  98. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  99. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  100. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  101. package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
  102. package/dist/web/assets/index-ClFOh63x.css +2 -0
  103. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  104. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  105. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  106. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  107. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  108. package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
  109. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  110. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  111. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  112. package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
  113. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  114. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  115. package/dist/web/index.html +11 -6
  116. package/docs/ARCHITECTURE.md +50 -563
  117. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  118. package/docs/BASAL.md +1 -1
  119. package/docs/CONTAINERS.md +87 -87
  120. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  121. package/docs/DESKTOP-CI.md +18 -3
  122. package/docs/DESKTOP.md +306 -286
  123. package/docs/EVIDENCE.md +1 -1
  124. package/docs/MOBILE.md +107 -75
  125. package/docs/MODEL_ROUTING.md +48 -15
  126. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  127. package/docs/WEB_APP.md +143 -75
  128. package/docs/feature-test-prompts.md +29 -16
  129. package/docs/user-guide.html +5402 -2269
  130. package/forgeqe.example.yaml +3 -3
  131. package/guardrails/README.md +22 -2
  132. package/knowledge/README.md +15 -2
  133. package/package.json +1 -1
  134. package/prompts/brain.md +1 -0
  135. package/prompts/page-differs.md +1 -1
  136. package/prompts/requests-rule.md +1 -1
  137. package/prompts/test-reviewer.md +1 -1
  138. package/prompts/test-rules.md +3 -4
  139. package/py/forgeqe_engine/recordsession.py +100 -24
  140. package/skills/web-guidance/LICENSE +202 -0
  141. package/skills/web-guidance/SKILL.md +76 -0
  142. package/skills/web-guidance/UPSTREAM +67 -0
  143. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  144. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  145. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  146. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  147. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  148. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  149. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  150. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  151. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  152. package/skills/web-guidance/references/forms/forms.md +415 -0
  153. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  154. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  155. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  156. package/skills/web-guidance/references/forms/slider.md +184 -0
  157. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  158. package/skills/web-guidance/references/forms/switch.md +60 -0
  159. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  160. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  161. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  162. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  163. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  164. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  165. package/skills/web-guidance/references/performance/performance.md +384 -0
  166. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  167. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  168. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  169. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  170. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  171. package/skills/web-guidance/references/security/passkeys.md +39 -0
  172. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  173. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  174. package/skills/web-guidance/references/security/security.md +390 -0
  175. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  176. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  177. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  178. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  179. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  180. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  181. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  182. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  183. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  184. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  185. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  186. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  187. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  188. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  189. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  190. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  191. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  192. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  193. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  194. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  195. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  196. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  197. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  198. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  199. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  200. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  201. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  202. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  203. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  204. package/skills/web-guidance/references/visual-design/color.md +43 -0
  205. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  206. package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
  207. package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
  208. package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
  209. package/dist/web/assets/Chat-B3uhI94O.js +0 -3
  210. package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
  211. package/dist/web/assets/Compare-CN75w1p9.js +0 -1
  212. package/dist/web/assets/Cost-QoxyjR95.js +0 -1
  213. package/dist/web/assets/Data-BAvkcBVt.js +0 -6
  214. package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
  215. package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
  216. package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
  217. package/dist/web/assets/Explore-D9AuyTip.js +0 -2
  218. package/dist/web/assets/Features-CusGMDR9.js +0 -1
  219. package/dist/web/assets/Flags-CycGFuUP.js +0 -2
  220. package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
  221. package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
  222. package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
  223. package/dist/web/assets/KindPage-BielEIej.js +0 -6
  224. package/dist/web/assets/Migration-NwanKpJg.js +0 -2
  225. package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
  226. package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
  227. package/dist/web/assets/Production-D3zsyNIS.js +0 -1
  228. package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
  229. package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
  230. package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
  231. package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
  232. package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
  233. package/dist/web/assets/Response-BP0UwQcW.js +0 -9
  234. package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
  235. package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
  236. package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
  237. package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
  238. package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
  239. package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
  240. package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
  241. package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
  242. package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
  243. package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
  244. package/dist/web/assets/families-DYlN5v0i.js +0 -1
  245. package/dist/web/assets/filters-faaSnoIq.js +0 -1
  246. package/dist/web/assets/fold-CUjwWAK3.js +0 -1
  247. package/dist/web/assets/frame-BLPdAXUq.js +0 -13
  248. package/dist/web/assets/head-CsTxBsO0.js +0 -1
  249. package/dist/web/assets/index-CxiCvGZq.js +0 -78
  250. package/dist/web/assets/index-dOIsrzhD.css +0 -2
  251. package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
  252. package/dist/web/assets/logos-dGuc1jIM.js +0 -1
  253. package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
  254. package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
  255. package/dist/web/assets/parts-CdF1f7yS.js +0 -1
  256. package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
  257. package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
  258. package/dist/web/assets/recordTest-P792aBUt.js +0 -1
package/docs/EVIDENCE.md CHANGED
@@ -881,7 +881,7 @@ While the agent is being built (the build-time half):
881
881
 
882
882
  ## Its own section in ForgeQE
883
883
 
884
- Evidence is a section of its own, not pages inside Product or Agents: in `forgeqe web` a sidebar group of its own,
884
+ Evidence is a section of its own, not pages inside Product or Agents: in `forgeqe web` a sidebar category of its own, **AI Assurance**,
885
885
  and on the command line `forgeqe evidence …`. Each page arrives with the phase that fills it, never empty ahead of it:
886
886
 
887
887
  | Page | Shows | Arrives with |
package/docs/MOBILE.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # ForgeQE mobile: Android and iOS apps
2
2
 
3
- Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. On an
4
- Android emulator the live tests go further: Appium explores and replays the emulator's Settings app, and Maestro
5
- replays the same workflow. iOS runs the same code with the XCUITest driver, but is untested (it needs a macOS machine
6
- with a simulator).
3
+ Status: tested on an Android emulator, where ForgeQE explores and replays the emulator's Settings app with Appium, and
4
+ replays the same workflow with Maestro. iOS works the same way through Appium's XCUITest driver, but is not yet tested
5
+ by the ForgeQE team (it needs a Mac with a simulator).
7
6
 
8
7
  ForgeQE drives mobile apps two ways, and one workflow format runs on both:
9
8
 
@@ -18,26 +17,64 @@ ForgeQE drives mobile apps two ways, and one workflow format runs on both:
18
17
 
19
18
  ## Use
20
19
 
20
+ What the web app and the terminal each offer:
21
+
22
+ | Task | Web app | Terminal |
23
+ |---|---|---|
24
+ | Set up Appium on this computer | **Settings › Set up** | `forgeqe mobile setup` |
25
+ | Devices and drivers | **Settings › Mobile** | `forgeqe.yaml`, `forgeqe mobile devices` |
26
+ | Record your own steps | **Record › Mobile app** | not available |
27
+ | Review and replay a recording | the recording's review | `forgeqe mobile replay` |
28
+ | Explore a goal with the model | in a chat | `forgeqe mobile explore` |
29
+ | Run your team's Maestro flows | in a chat | `forgeqe mobile maestro` |
30
+ | Upload a build to TestMu AI | in a chat | `forgeqe mobile upload` |
31
+
32
+ **Setting up.** For an emulator or phone on this computer, ForgeQE installs Appium and its drivers once (see
33
+ [Appium on this computer](#appium-on-this-computer)). A device cloud needs none of it.
34
+
35
+ **Web app**
36
+
37
+ 1. Open **Settings › Set up**.
38
+ 2. Press **Install what's missing**.
39
+
40
+ **Terminal**
41
+
42
+ ```bash
43
+ forgeqe mobile setup # Appium and its drivers, pinned, into ForgeQE's tools folder (once)
44
+ forgeqe mobile doctor # does the Appium server answer (the cloud's hub and sign-in when every device in use is
45
+ # on TestMu or BrowserStack), is maestro installed? (or, with mobile.maestro.testmu:
46
+ # is the hyperexecute CLI there, are the user and key set?)
47
+ forgeqe mobile apps # the mobile apps of the active environment
48
+ forgeqe mobile devices --like "Pixel 8-14" # the devices TestMu or BrowserStack has, most like one first
49
+ ```
50
+
51
+ **Replaying a workflow.** Replay runs the steps with no model, on Appium or Maestro.
52
+
53
+ **Web app**
54
+
55
+ 1. Open **Record** and open the recording (the list's filter has **Mobile apps**).
56
+ 2. Open the **Last run** tab and press **Replay**, once or for each row of a data file.
57
+
58
+ **Terminal**
59
+
21
60
  ```bash
22
- forgeqe mobile setup # Appium and its drivers, pinned, into ForgeQE's tools folder (once)
23
- forgeqe mobile doctor # does the Appium server answer (the cloud's hub and sign-in when every
24
- # device in use is on TestMu or BrowserStack), is maestro installed? (or, with
25
- # mobile.maestro.testmu: is the hyperexecute CLI there, are the user and key set?)
26
- forgeqe mobile apps # the mobile apps of the active environment
27
- forgeqe mobile devices --like "Pixel 8-14" # the devices TestMu or BrowserStack has, most like one first
28
- forgeqe mobile explore "Sign in as the courier and accept the first delivery" --app courier
29
61
  forgeqe mobile replay .forgeqe/reports/mobile-explore-…/workflow.yaml
30
62
  forgeqe mobile replay workflow.yaml --driver maestro
31
63
  forgeqe mobile replay mobile-tests/ --data couriers.csv --junit results.xml
32
- forgeqe mobile maestro .maestro/ # the team's flows
33
- forgeqe mobile flow workflow.yaml # print a workflow as a Maestro flow
34
- forgeqe mobile validate workflow.yaml
64
+ forgeqe mobile validate workflow.yaml # check it without running it
65
+ forgeqe mobile flow workflow.yaml # print a workflow as a Maestro flow
35
66
  ```
36
67
 
37
- Or ask ForgeQE's agent in the shell or `forgeqe run`: "sign in to the courier app and save it as a test", "replay the
38
- courier login on Maestro", "run our Maestro flows". Its tools are `mobile_explore`, `mobile_replay` and
39
- `mobile_maestro`. It asks before each one starts, and `desktop_edit_workflow` fixes a mobile workflow after a failed
40
- replay, the same way as a desktop one.
68
+ **Exploring a goal, and the team's flows.** The model does a goal in the app and the run is saved as a workflow; your
69
+ team's own Maestro flows run after an allowlist check. In the web app these are asked for in a chat ("sign in to the
70
+ courier app and save it as a test", "replay the courier login on Maestro", "run our Maestro flows"); the agent asks
71
+ before each one starts, and it fixes a mobile workflow after a failed replay after showing you the change, as for a
72
+ desktop one. At a terminal, ask the same in `forgeqe start`, or run:
73
+
74
+ ```bash
75
+ forgeqe mobile explore "Sign in as the courier and accept the first delivery" --app courier
76
+ forgeqe mobile maestro .maestro/ # the team's flows
77
+ ```
41
78
 
42
79
  ## Apps and settings
43
80
 
@@ -81,11 +118,20 @@ Each run writes a folder under the reports folder (`mobile-explore-…`, `mobile
81
118
 
82
119
  ## Devices
83
120
 
84
- Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and
85
- the cloud need from that and the app: the W3C capabilities (`platformName`, `appium:udid`, `bstack:options`,
86
- `LT:Options`, …), the cloud's hub address, Maestro's `--device`, and TestMu's HyperExecute YAML. Nobody types
121
+ Say what each device is and where it runs. ForgeQE builds what Appium, Maestro and the cloud need from that and the
122
+ app (Appium's capabilities, the cloud's hub address, Maestro's device, TestMu's HyperExecute file). Nobody types
87
123
  capabilities.
88
124
 
125
+ **Adding a device.**
126
+
127
+ **Web app**
128
+
129
+ 1. Open **Settings › Mobile**.
130
+ 2. Add the device with its **Type**, **Platform**, **Device model**, **OS version** (and, on this computer, **Device id**
131
+ or **Emulator to start**), and **Use in runs**.
132
+
133
+ **Terminal**
134
+
89
135
  Devices on this computer are in forgeqe.yaml:
90
136
 
91
137
  ```yaml
@@ -107,7 +153,7 @@ mobile:
107
153
  os_version: "17.2"
108
154
  ```
109
155
 
110
- `avd` names an Android emulator for Appium to start for the run, instead of one already running. With
156
+ **What a device's settings mean.** `avd` names an Android emulator for Appium to start for the run, instead of one already running. With
111
157
  `mobile.headless: true` (Settings → Mobile, Emulators without a window) Appium starts those emulators, and iOS
112
158
  simulators, without a window (`appium:isHeadless`); a real device and a cloud's devices are never affected.
113
159
 
@@ -134,9 +180,8 @@ mobile:
134
180
 
135
181
  - **Which devices run.** Every device with `enabled` on (the default), of the app's platform: an Android workflow
136
182
  skips the iOS devices. `--devices pixel8,galaxy` (or the agent's `devices`) names some for one run.
137
- - **At once.** `mobile.parallel` of them at a time. Devices on this computer running at once get their own driver
138
- ports (`appium:systemPort` 8200+, `appium:wdaLocalPort` 8100+, `appium:mjpegServerPort` 9100+) on the one Appium
139
- server. On TestMu, `mobile.parallel` also caps HyperExecute's concurrency.
183
+ - **At once.** `mobile.parallel` of them at a time (**Devices at once** in Settings › Mobile). Devices on this computer
184
+ running at once get their own ports on the one Appium server. On TestMu, `mobile.parallel` also caps HyperExecute's concurrency.
140
185
  - **Maestro** runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
141
186
  for its emulators). It does not run on BrowserStack here: replay those with Appium.
142
187
  - **Results.** Each device's run is in a folder of its own inside the run's folder, with `devices.json` listing each
@@ -234,17 +279,16 @@ control that is on screen. The app's text is passed as data.
234
279
  it as it was is told to the model as such, is not counted as progress, and a swipe or scroll that moved nothing is
235
280
  not saved. After 4 such actions in a row (or the same check again) the run stops and says why, instead of spending
236
281
  the step budget.
237
- - **Gestures.** On Android a swipe is a finger drag (W3C actions), kept clear of the screen's edges, where a swipe is
238
- the system's. A scroll is a drag inside the screen's scrolling view, checked: when the content did not move (the
239
- drag started on a carousel, which took it), it is tried again from another point. iOS uses XCUITest's own `swipe` and
240
- `scroll`.
282
+ - **Gestures.** On Android a swipe is a finger drag, kept clear of the screen's edges, where a swipe is the system's.
283
+ A scroll is a drag inside the screen's scrolling view, checked: when the content did not move (the drag started on a
284
+ carousel, which took it), it is tried again from another point. iOS uses its own swipe and scroll.
241
285
  - **Memory.** A failed explore of a goal is resumed from its last action (a tap, a type), never through the swipes
242
286
  and backs after it, which are the search that failed.
243
287
 
244
288
  ## Appium on this computer
245
289
 
246
- For an emulator or a phone on this computer, `forgeqe mobile setup` (or Settings › Set up › Install what's missing,
247
- when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
290
+ For an emulator or a phone on this computer, `forgeqe mobile setup` (or **Install what's missing** in **Settings › Set
291
+ up**, when a device in use is on this computer) installs Appium 3.9.0 with the UiAutomator2 driver (and XCUITest on a Mac)
248
292
  into ForgeQE's tools folder, pinned, with no install script run. A run on a device here then starts that Appium by
249
293
  itself when nothing answers at `mobile.appium.url`, on 127.0.0.1, and stops it when ForgeQE exits; an Appium already
250
294
  running there (your own) is used as it is. It finds the Android SDK (`ANDROID_HOME`, else Android Studio's folder) and
@@ -253,21 +297,27 @@ says what is missing. A device cloud (TestMu AI, BrowserStack) needs none of it:
253
297
 
254
298
  ## Record by hand
255
299
 
256
- Record → **Mobile app** in `forgeqe web` records a test with no model: pick the app and a device (one of this
257
- computer's, or TestMu AI's or BrowserStack's), and the device's screen appears on the page with its controls outlined.
300
+ In the web app only: recording a mobile test by hand has no terminal command.
301
+
302
+ 1. Open **Record** and pick **Mobile app**.
303
+ 2. Pick the app and a device (one of this computer's, or TestMu AI's or BrowserStack's).
304
+ 3. Press **Record**. The device's screen appears on the page with its controls outlined.
305
+ 4. Press **Stop** when done.
306
+
307
+ **What you can do while recording.**
308
+
258
309
 
259
310
  - **Tap** a control on the screen and it is tapped on the device; a field opens a box to type into it (plain text, or a
260
- saved secret by its name). **Check** adds a check of what a control shows now, **Long-press** and **Wait for** do
261
- what they say. Under the screen: scroll, swipe, Back, Enter, hide the keyboard, wait.
311
+ saved secret by its name). **Check** adds a check of what a control shows now, **Hold** (a long press) and **Wait for** do
312
+ what they say (pick what a click on the screen does above it). Under the screen: scroll, swipe, Back, Enter, hide the keyboard, wait.
262
313
  - Each action is done on the device through the locator ForgeQE records for it, so a step a replay could not find is
263
- never kept. Locators come from the app's own tree (UiAutomator2 on Android, XCUITest on iOS), ranked as Playwright
264
- ranks a web page's: the resource id or accessibility identifier, the accessibility label, what the control is and
314
+ never kept. Locators come from the app's own controls, ranked as Playwright ranks a web page's: the resource id or accessibility identifier, the accessibility label, what the control is and
265
315
  says, its text (a field's text and text that reads as data last). Only one that matches that control alone on the
266
316
  screen is kept; alike rows are found inside their uniquely named parent, a position among them only as the last
267
317
  resort; up to three more become fallbacks. Android's own ids (`android:id/button1`) come after the text. The Steps
268
318
  list shows each step's locators, the one a replay uses first. A control with neither an id nor a text is not
269
- offered; **Point** taps a spot where the app draws something with no control (a canvas, a chart), kept inside the
270
- nearest control that can be found.
319
+ offered; **Point** taps a spot where the app draws something with no control (a canvas, a chart), kept as a place inside
320
+ the smallest control there that can be found; where none can be, the tap is refused.
271
321
  - Scrolls made just before acting on a control become one `scroll_to` it. A tap on a checkbox, switch or radio button
272
322
  is a `set_checked`; **Check** on one checks whether it is on.
273
323
  - **Open magic link** (under the screen, for a login whose one-time codes come by email: `code: email` with its
@@ -295,9 +345,10 @@ computer's, or TestMu AI's or BrowserStack's), and the device's screen appears o
295
345
  - Stop saves `workflow.yaml`, a picture of each step with the controls it shows, and a report in
296
346
  `.forgeqe/reports/mobile-record-…/`, and opens the workflow's review, as a desktop recording does: change a step's
297
347
  control, add a check by clicking a control on a step's picture, make a typed value test data or a secret
298
- (`mobile.secrets`), and replay it there (`forgeqe mobile replay`, rows from a data file).
348
+ (`mobile.secrets`), and replay it there (rows from a data file). At a terminal, replay it with `forgeqe mobile
349
+ replay`.
299
350
 
300
- It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
351
+ **Devices and app start.** It runs through Appium on every device, so a cloud device is recorded the same way as an emulator. An Android app that
301
352
  hands its first screen over at once (a splash, then a sign-in) starts fine: sessions wait for any of the app's
302
353
  screens (`appium:appWaitActivity: "*"`, which `mobile.appium.capabilities` can change).
303
354
 
@@ -327,17 +378,24 @@ A refused flow does not run, and the error names the command.
327
378
 
328
379
  ## TestMu AI (formerly LambdaTest)
329
380
 
330
- Both drivers run on TestMu's devices. Upload the app once, then use the `lt://` id it returns as the app's `app`:
381
+ Both drivers run on TestMu's devices. Upload the app once, then use the `lt://` id it returns as the app's `app`.
382
+
383
+ **Uploading a build.**
384
+
385
+ **Web app**
386
+
387
+ In a chat, ask in words ("upload builds/courier.apk to TestMu for courier"). The agent asks first, uploads the build (it
388
+ must be inside the working folder), and saves the `lt://` id as that app's `app:` in forgeqe.yaml.
389
+
390
+ **Terminal**
331
391
 
332
392
  ```bash
333
393
  forgeqe mobile upload courier.apk # → lt://APP… (--virtual for TestMu's emulators)
334
394
  ```
335
395
 
336
- From the shell, ask in words ("upload builds/courier.apk to TestMu for courier"): `mobile_upload` asks first, uploads
337
- the build (it must be inside the working folder), and saves the `lt://` id as that app's `app:` in forgeqe.yaml.
338
-
339
- The user and key come from `LT_USERNAME` and `LT_ACCESS_KEY` (or the variables the config names), for example in a
340
- `.env` file in the project folder. `samples/mobile-testmu/` is a ready project with TestMu's Wikipedia sample app.
396
+ **Signing in to TestMu AI.** The user and key come from `LT_USERNAME` and `LT_ACCESS_KEY` (or the variables the config names), for example in a
397
+ `.env` file in the project folder (in the web app, **TestMu AI user** and **TestMu AI key** in Settings › Mobile name
398
+ the variables). `samples/mobile-testmu/` is a ready project with TestMu's Wikipedia sample app.
341
399
 
342
400
  ```yaml
343
401
  mobile:
@@ -390,7 +448,7 @@ mobile:
390
448
  - The access key is passed to the CLI as an argument. It is removed from the CLI's output and from every file in the
391
449
  run folder. Neither the user name nor the key is passed to the flows' environment.
392
450
  - `maestro` and the `hyperexecute` CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
393
- their environment; only the mobile engine itself holds them.
451
+ their environment.
394
452
  - `samples/mobile-testmu` runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
395
453
  Wikipedia sample app, once `LT_USERNAME` and `LT_ACCESS_KEY` are set.
396
454
 
@@ -401,35 +459,9 @@ mobile:
401
459
  - **Locators** go into XPath as quoted literals, so a target cannot change the query.
402
460
  - **Secrets:** `{{secret:NAME}}` reads only `mobile.secrets` and the environment's secrets, and ForgeQE's own keys are
403
461
  refused there. Explore types a secret from its placeholder, so the model never sees the value.
404
- - **The engine's environment** holds system settings, the profile's key, the listed secrets, the cloud's user and key,
462
+ - **The mobile runner's environment** holds system settings, the profile's key, the listed secrets, the cloud's user and key,
405
463
  and `JAVA_HOME` / `ANDROID_HOME`, nothing else.
406
464
  - **Cloud credentials** come from the variables `mobile.appium.username_env` and `access_key_env` name; a user or key in
407
465
  the URL is refused. TLS is verified as usual.
408
466
  - **App builds** are absolute paths to an app file, https URLs, or a device cloud's own upload ids (`bs://`, `lt://`,
409
467
  `storage:filename=`); `file://` and other schemes are refused.
410
-
411
- ## Code
412
-
413
- | File | Contents |
414
- |---|---|
415
- | `src/mobile/command.ts` | `forgeqe mobile`: apps, doctor, explore, replay (folders, `--data`, `--junit`, `--driver`), maestro, flow, validate |
416
- | `src/mobile/run.ts` | Requests to the mobile engine, its environment, Maestro flow paths, the doctor |
417
- | `src/mcp/mobiletools.ts` | ForgeQE's agent's `mobile_explore`, `mobile_replay`, `mobile_maestro` |
418
- | `py/forgeqe_mobile/appium_driver.py` | The Appium driver: W3C WebDriver over HTTP, the replay `Driver` |
419
- | `py/forgeqe_mobile/maestro.py` | Workflows as Maestro flows, the allowlist for team flows, running `maestro test` |
420
- | `py/forgeqe_mobile/hyperexecute.py` | Maestro on TestMu: the HyperExecute project and running its CLI |
421
- | `py/forgeqe_mobile/explore.py` | The model's action loop on Appium |
422
- | `py/forgeqe_mobile/record.py` | Recording by hand: the screen's controls and their locators, the page's commands as steps |
423
- | `py/forgeqe_mobile/locators.py` | How a recorded control is found again: ranked candidates, unique on the screen, fallbacks |
424
- | `py/forgeqe_mobile/webview.py` | A web page inside the app: the element at a spot, its web locators, their queries |
425
- | `py/forgeqe_mobile/magiclink.py` | Magic links: the logins with a mailbox, the newest link read and opened on the device |
426
- | `src/mobile/record.ts` | The commands the Record page may send a mobile recording, checked |
427
- | `src/mobile/setup.ts` | `forgeqe mobile setup`: the pinned Appium and drivers, finding the SDK and Java, starting Appium here |
428
- | `py/forgeqe_mobile/service.py` | `serve`: replay, explore and maestro runs, `run.json` |
429
- | `py/forgeqe_mobile/apps.py` | The mobile app allowlist and its capabilities |
430
-
431
- The rest is shared with the desktop engine: `forgeqe_desktop.workflow` validates both formats, and `replay.py`,
432
- `heal.py`, `checks.py` and `visual.py` run on either driver. `memory.py` (app memory, under `<memory dir>/mobile/`) lets an explore replay what earlier explores of the app did before it calls the model, and a replay reuse a target an earlier heal found.
433
-
434
- Tests: `<engine-python> -m pytest tests/desktop/test_mobile.py -q` (a fake Appium server and a stand-in Maestro; any
435
- OS), and `bun test tests/mobile.test.ts`.
@@ -8,6 +8,18 @@ model can do: ForgeQE finds out.
8
8
 
9
9
  ## Turn it on
10
10
 
11
+ **Choosing how models are routed.**
12
+
13
+ **Web app**
14
+
15
+ 1. Open **Settings › Routing**.
16
+ 2. Set **Routing** to **Off: the profile in use**, **Auto** or **Shadow (log only)**.
17
+ 3. Set **Strategy** to **Balanced: capability weighed against price**, **Most capable for every area** or **Cheapest:
18
+ good enough for each area**.
19
+ 4. Leave **Fall back to a working model** on to use a working model when one has no key or its sign-in is refused.
20
+
21
+ **Terminal**
22
+
11
23
  In `forgeqe.yaml`:
12
24
 
13
25
  ```yaml
@@ -17,7 +29,7 @@ llm:
17
29
  strategy: balanced # balanced (the default) | capability | cost
18
30
  ```
19
31
 
20
- `forgeqe init` writes `routing: auto` for new projects. With no `routing` line it is off. `shadow` decides and logs each pick in the session log
32
+ **What each setting does.** `forgeqe init` writes `routing: auto` for new projects. With no `routing` line it is off. `shadow` decides and logs each pick in the session log
21
33
  (`model.route`) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the
22
34
  live checks and the rating call described below.
23
35
 
@@ -28,9 +40,15 @@ profile first, and ForgeQE says why and how to fix the first. When none works, t
28
40
  Only `--profile` skips this. With `auto`, a GitHub Copilot seat counts as costing nothing more per call, so it is picked
29
41
  whenever it is rated good enough.
30
42
 
31
- See the picks, and every model's check with its fix:
43
+ **Seeing the picks.** Each area's pick, and every model's check with its fix.
32
44
 
33
- ```
45
+ **Web app**
46
+
47
+ Open **Cost** and look at **Model router**: each area's pick and the models that actually answered for it.
48
+
49
+ **Terminal**
50
+
51
+ ```bash
34
52
  forgeqe models --routes
35
53
  ```
36
54
 
@@ -47,8 +65,16 @@ forgeqe models --routes
47
65
 
48
66
  ## A default model for each agent
49
67
 
50
- To give one agent its own model whatever `routing` says, name an `llms.json` profile for it under `llm.agents`
51
- (Settings → Routing → Areas of work, under each area, does the same):
68
+ To give one agent its own model whatever `routing` says, name an `llms.json` profile for it.
69
+
70
+ **Web app**
71
+
72
+ 1. Open **Settings › Routing**.
73
+ 2. Under **Areas of work**, open the area and pick the agent's model (**The area's model** leaves it to the area).
74
+
75
+ **Terminal**
76
+
77
+ Name the profile under `llm.agents` in `forgeqe.yaml`:
52
78
 
53
79
  ```yaml
54
80
  llm:
@@ -59,7 +85,7 @@ llm:
59
85
  forgeqe-review: azure-mini # its reviewer
60
86
  ```
61
87
 
62
- An agent left out uses its area's pick. The agents are `forgeqe`, `engine`, `forgeqe-test`, `forgeqe-heal`,
88
+ **Which agents can have their own model.** An agent left out uses its area's pick. The agents are `forgeqe`, `engine`, `forgeqe-test`, `forgeqe-heal`,
63
89
  `forgeqe-migrate`, `forgeqe-api`, `forgeqe-review`, `forgeqe-pr-review`, `forgeqe-judge`, `forgeqe-defect-rca`,
64
90
  `forgeqe-refine`, `forgeqe-find`, `forgeqe-test-plan`, `forgeqe-api-plan`, `forgeqe-explore-plan`, `forgeqe-data`,
65
91
  `forgeqe-agent-builder` and `forgeqe-bug-report`; `forgeqe models --routes` lists each with the model it gets. An unknown agent or a profile not
@@ -105,7 +131,7 @@ size of the prompt change. Each pick is shown once ("Model for planning: mini (
105
131
 
106
132
  The first routed call in a project with two or more usable profiles does this once:
107
133
 
108
- 1. **A live check of each model** (`python -m forgeqe_engine probe`): one short structured answer and one image.
134
+ 1. **A live check of each model:** one short structured answer and one image.
109
135
  This finds a deployment that does not exist, a wrong key, and whether the model really takes images. It also
110
136
  measures how fast the model answers.
111
137
  2. **One rating call.** The active profile's model receives the facts of every model, never a key, an endpoint or an
@@ -120,14 +146,22 @@ The live checks reach every profile in `llms.json` that has a key, whatever `llm
120
146
  data on one deployment; the checks carry nothing from your runs. To send nothing to the other profiles at all, use
121
147
  `routing: off`, keep one profile with a key, or pass `--profile`.
122
148
 
123
- To check and rate again (for example, after a deployment changed its model):
149
+ **Checking and rating again** (for example, after a deployment changed its model). This is done at a terminal only:
124
150
 
125
- ```
151
+ ```bash
126
152
  forgeqe models --routes --profile-models
127
153
  ```
128
154
 
129
155
  ## Limit what an area may use
130
156
 
157
+ **Web app**
158
+
159
+ 1. Open **Settings › Routing**.
160
+ 2. Under **Areas of work**, pick one or more models for the area. None picked means any configured model; one model
161
+ picked pins the area to it.
162
+
163
+ **Terminal**
164
+
131
165
  ```yaml
132
166
  llm:
133
167
  routing: auto
@@ -137,7 +171,7 @@ llm:
137
171
  planning: auto # any configured model (the default)
138
172
  ```
139
173
 
140
- A name in `routes` must be a profile in `llms.json`, and an area must be one of the six above. Anything else stops
174
+ **What is checked.** A name in `routes` must be a profile in `llms.json`, and an area must be one of the six above. Anything else stops
141
175
  ForgeQE at start with a message that names it.
142
176
 
143
177
  ## What routing cost, and what it saved
@@ -147,13 +181,12 @@ Every model call is recorded with the area it was made for and what chose its mo
147
181
  or an escalation. It goes in the usage ledger beside the tokens, so the question "which model wrote the tests, and
148
182
  what did that cost" is answered from the calls themselves and not from the logs.
149
183
 
150
- Where to see it:
184
+ Where to see it, in the web app only (at a terminal, `forgeqe models --routes` shows the picks themselves):
151
185
 
152
- - **Cost › By area of work** — what each area spent.
153
- - **Cost › Routing** — each area's pick, and a *Ran on* column with the models that actually answered for it.
154
- - **Cost › What routing cost** — each area against running everything on `llm.active`, which is what `routing: off`
186
+ - **Cost › By area of work**: what each area spent.
187
+ - **Cost › Model router**: each area's pick, and a **Ran on** column with the models that actually answered for it.
188
+ - **Cost › What routing cost**: each area against running everything on `llm.active`, which is what `routing: off`
155
189
  does. Both sides are priced at today's prices, so the difference is the models' and not a price that moved since.
156
- - `forgeqe models --routes` still shows the picks themselves.
157
190
 
158
191
  Two things to read carefully:
159
192
 
@@ -85,6 +85,8 @@ Every option gets a field on the web app's Settings page (`tests/settings-covera
85
85
  The generated pages sit in the knowledge folder, so today's matching (`relevantKnowledge`) picks them up with no change.
86
86
  The team's own notes stay beside them and win where the two disagree.
87
87
 
88
+ With `graph:` set (default `store: auto`), each build also syncs the merged graph into ForgeQE's Neo4j (`forgeqe graph setup`); the JSON files above stay the product pages' source and the fallback.
89
+
88
90
  ## Model
89
91
 
90
92
  The model steps use the profiles already in `llms.json`: `github_copilot` (through ForgeQE's Copilot gateway on