@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
@@ -0,0 +1,595 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Test data and databases · ForgeQE docs</title>
7
+ <meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
8
+ <meta name="theme-color" content="#ffffff">
9
+ <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
10
+ <link rel="icon" type="image/png" href="../../img/favicon.png">
11
+ <link rel="stylesheet" href="../docs.css">
12
+ <script src="../search.js" defer></script>
13
+ <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
15
+ <link rel="stylesheet" href="../../app-look.css">
16
+ <link rel="stylesheet" href="../app-theme.css">
17
+ </head>
18
+ <body class="docs">
19
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-knowledge-base" viewBox="0 0 256 256"><g fill="currentColor"><path d="M48 72h64v112H48Zm142.64-33.61a8 8 0 0 0-9.5-6.21l-46.81 10a8.07 8.07 0 0 0-6.15 9.57L139.79 107l62.46-13.42Z" opacity=".2"/><path d="m231.65 194.55l-33.19-157.8a16 16 0 0 0-19-12.39l-46.81 10.06a16.08 16.08 0 0 0-12.3 19l33.19 157.8A16 16 0 0 0 169.16 224a16.3 16.3 0 0 0 3.38-.36l46.81-10.06a16.09 16.09 0 0 0 12.3-19.03M136 50.15v-.09l46.8-10l3.33 15.87L139.33 66Zm6.62 31.47l46.82-10.05l3.34 15.9L146 97.53Zm6.64 31.57l46.82-10.06l13.3 63.24l-46.82 10.06ZM216 197.94l-46.8 10l-3.33-15.87l46.8-10.07l3.33 15.85zM104 32H56a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16M56 48h48v16H56Zm0 32h48v96H56Zm48 128H56v-16h48z"/></g></symbol></svg>
20
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
21
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
22
+ <line x1="8" x2="16" y1="21" y2="21" />
23
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
24
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
25
+ <path d="M12 18h.01" /></symbol>
26
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
27
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
28
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
29
+ <path d="M10 21.9V14L2.1 9.1" />
30
+ <path d="m10 14 11.9-6.9" />
31
+ <path d="M14 19.8v-8.1" />
32
+ <path d="M18 17.5V9.4" /></symbol>
33
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
34
+ <path d="m9 12 2 2 4-4" /></symbol>
35
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
36
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
37
+ <path d="M10 9H8" />
38
+ <path d="M16 13H8" />
39
+ <path d="M16 17H8" /></symbol>
40
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
41
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
42
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
43
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
44
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
45
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
46
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
47
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
48
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
49
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
50
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
51
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
52
+ <circle cx="18" cy="6" r="3" />
53
+ <circle cx="6" cy="18" r="3" />
54
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
55
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
56
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
57
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
58
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
59
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
60
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
61
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
62
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
63
+ <circle cx="12" cy="12" r="3" />
64
+ <path d="m16 16-1.9-1.9" /></symbol>
65
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
66
+ <path d="M14.12 3.88 16 2" />
67
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
68
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
69
+ <path d="M12 20v-9" />
70
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
71
+ <path d="M6 13H2" />
72
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
73
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
74
+ <path d="M22 13h-4" />
75
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
76
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
77
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
78
+ <path d="m7 22-4-4 4-4" />
79
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
80
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
81
+ <polyline points="8 6 2 12 8 18" /></symbol>
82
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
83
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
84
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
85
+ <path d="M9 8V2" />
86
+ <path d="M15 8V2" />
87
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
88
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
89
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
90
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
91
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
92
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
93
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
94
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
95
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
96
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
97
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
98
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
99
+ </svg>
100
+
101
+ <a class="skip" href="#main">Skip to content</a>
102
+ <header class="nav" id="navigation">
103
+ <div class="nav__bar">
104
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
105
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
106
+ <div class="nav__end">
107
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
108
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
109
+ </div>
110
+ </div>
111
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
112
+ </header>
113
+ <div class="container docs-layout">
114
+ <nav class="docs-side" aria-label="Docs">
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>
116
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><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="index.html" aria-current="page"><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>
117
+ </nav>
118
+ <main id="main" class="docs-main guide chapter-page">
119
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
120
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><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="index.html" aria-current="page"><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-databases">Ask a database in plain language</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li></ul></nav></details></div>
121
+ <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-knowledge-base"/></svg>Test data and databases</h1>
122
+ <p class="guide-lead">Databases: their schema, and SQL from plain language, checked before it runs</p>
123
+ <article class="spec feat" id="cap-databases">
124
+ <div class="hd"><span class="mono">Data</span><h3>Ask a database in plain language</h3></div>
125
+ <p class="ds">Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them.</p>
126
+ <div class="facts">
127
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Which customers in India have paid orders? Ask the orders database</li><li>Show me the tables in the shop database</li><li>Write the SQL for revenue per country last month and run it</li><li>Check the connection to the reporting database</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>A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in</span></li></ul></div>
129
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>One statement at a time: SELECT (with CTEs and set operations), SHOW, DESCRIBE and EXPLAIN SELECT anywhere; INSERT, and UPDATE or DELETE with a WHERE clause, only on databases marked writable and after you confirm</li><li>Never DDL (CREATE, ALTER, DROP, TRUNCATE), procedures, or functions that read files, sleep or reach other servers</li><li>MongoDB is queried with find, aggregate, count and distinct (JSON operations); its test data is not made yet; other non-SQL stores are not supported</li></ul></div>
130
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>databases</code> <code>database_schema</code> <code>run_sql</code></p></div>
131
+ </div>
132
+
133
+ </article>
134
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-databases">
135
+ <h4>Databases</h4>
136
+ <div class="prose"><p>ForgeQE's agent can read your databases and answer questions from them in plain language: &quot;which customers in India have paid orders?&quot;, &quot;show me the tables in the shop database&quot;, &quot;write the SQL for revenue per country and run it&quot;. It reads the schema first, writes SQL in the database's own dialect, runs it, and shows you the rows and the SQL.</p>
137
+ <p><strong>Supported:</strong> PostgreSQL, MySQL, MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB. The first use sets up the data engine (in <code>~/.forgeqe/data</code>) and that database's driver.</p>
138
+ <p><strong>MongoDB</strong> (<code>engine: mongodb</code>, or <code>url_env</code> with a <code>mongodb://</code> or <code>mongodb+srv://</code> string):</p>
139
+ <ul>
140
+ <li>The agent lists the collections with the fields of a sample of documents, and queries with find, aggregate, count and distinct, written as JSON.</li>
141
+ <li>Operators that run code on the server or write elsewhere (<code>$where</code>, <code>$function</code>, <code>$accumulator</code>, <code>$out</code>, <code>$merge</code>) and <code>system.*</code> collections are refused.</li>
142
+ <li>Inserts, updates and deletes need <code>writable: true</code> and your confirmation, and an update or delete needs a filter.</li>
143
+ <li>MongoDB has no read-only session, so connect as a read-only user.</li>
144
+ <li>Test data is made for the SQL databases only.</li>
145
+ </ul>
146
+ <p><strong>Adding a database.</strong> Add the databases under <code>databases:</code> in forgeqe.yaml, or under an environment in env.yaml (the active environment's entries win by name). No secret goes in either file: name the environment variables that hold them.</p>
147
+ <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">databases:
148
+ </span></span><span class="ln ln--pair"><span class="cmd"> orders:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a whole connection string in a variable: URI, JDBC, or ADO.NET as Azure shows it
149
+ </span></span><span class="ln"><span class="cmd"> url_env: ORDERS_DB_URL
150
+ </span></span><span class="ln"><span class="cmd"> description: Orders written by the checkout app
151
+ </span></span><span class="ln ln--pair"><span class="cmd"> reporting:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or the parts
152
+ </span></span><span class="ln ln--pair"><span class="cmd"> engine: postgres</span><span class="pad"> </span><span class="cm"><span class="h">#</span> postgres, mysql, mariadb, mssql, oracle, snowflake, redshift, cockroachdb, sqlite, duckdb
153
+ </span></span><span class="ln"><span class="cmd"> host: reporting.postgres.database.azure.com
154
+ </span></span><span class="ln"><span class="cmd"> database: reporting
155
+ </span></span><span class="ln"><span class="cmd"> user: qa_reader
156
+ </span></span><span class="ln ln--pair"><span class="cmd"> auth: azure</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a Microsoft Entra ID token (az login, managed identity, service principal)
157
+ </span></span><span class="ln"><span class="cmd"> billing:
158
+ </span></span><span class="ln"><span class="cmd"> engine: mysql
159
+ </span></span><span class="ln"><span class="cmd"> host: billing.abc123.eu-west-1.rds.amazonaws.com
160
+ </span></span><span class="ln"><span class="cmd"> database: billing
161
+ </span></span><span class="ln"><span class="cmd"> user: qa_iam
162
+ </span></span><span class="ln ln--pair"><span class="cmd"> auth: aws_iam</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an RDS IAM token from your AWS profile; the region is read from the host
163
+ </span></span><span class="ln"><span class="cmd"> fixtures:
164
+ </span></span><span class="ln"><span class="cmd"> engine: postgres
165
+ </span></span><span class="ln"><span class="cmd"> host: localhost
166
+ </span></span><span class="ln"><span class="cmd"> port: 5432
167
+ </span></span><span class="ln"><span class="cmd"> database: test
168
+ </span></span><span class="ln"><span class="cmd"> user: qa
169
+ </span></span><span class="ln"><span class="cmd"> password_env: FIXTURES_DB_PASSWORD
170
+ </span></span><span class="ln ln--pair"><span class="cmd"> writable: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> allows confirmed INSERT, and UPDATE or DELETE with a WHERE clause
171
+ </span></span></code></pre></div>
172
+ <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>
173
+ <ol>
174
+ <li>Open <strong>Settings › Databases</strong> and add the database with its fields.</li>
175
+ <li>Save its secret in <strong>Settings › Secrets</strong>, under the variable's name.</li>
176
+ </ol>
177
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
178
+ <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 db</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the databases
179
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db test orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> connect
180
+ </span></span></code></pre></div>
181
+ <p>In the shell, <code>/db add</code> sets one up with the agent: it asks how to connect, writes the entry, and has you save the secret with <code>/auth ORDERS_DB_URL</code>, so no password goes through the chat. You can also set the secret in the environment.</p>
182
+ </div></div><p><strong>Looking at a database and querying it.</strong></p>
183
+ <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>
184
+ <ol>
185
+ <li>Open <strong>Databases</strong> (Data › Databases).</li>
186
+ <li>Pick a database. <strong>Test</strong> checks the connection.</li>
187
+ <li>Under <strong>Tables</strong>, type words to find the tables whose names, comments or columns hold them.</li>
188
+ <li>Under <strong>Query</strong>, write one read in the database's own dialect, and press <strong>Run</strong>, or <strong>Check</strong> to have the database check it without running it.</li>
189
+ <li>To write the SQL from a question, press <strong>Ask</strong> (see <a href="../index.html">Test data on request: Miner</a>).</li>
190
+ </ol>
191
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
192
+ <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 db tables orders [words]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the tables, or those whose names, comments or columns hold the words
193
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db refresh orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read the schema again
194
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db batches</span><span class="pad"> </span><span class="cm"><span class="h">#</span> test data batches
195
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db examples orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the remembered queries
196
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT status, COUNT(*) FROM orders GROUP BY status&quot; --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one checked read
197
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT ...&quot; --dry-run</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the database checks every name; no rows are read
198
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT * FROM orders&quot; --max-rows 1000</span><span class="pad"> </span><span class="cm"><span class="h">#</span> rows to read (default 200, at most 5000)
199
+ </span></span><span class="ln"><span class="cmd">forgeqe db ask &quot;paid revenue per country last month&quot; --db orders --save queries/revenue.sql
200
+ </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> the agent writes and validates it; stdout is only the SQL
201
+ </span></span></code></pre></div>
202
+ <p>In the shell, the same commands start with <code>/db</code> (<code>/db tables orders</code>).</p>
203
+ </div></div><p><strong>Drafts, files and examples.</strong></p>
204
+ <ul>
205
+ <li><strong>Drafts.</strong> Ask for a query without running it (&quot;write the SQL for ...&quot;) and the agent validates it with a dry run: the database resolves every table and column (and shows its plan where it can) without reading or writing anything.</li>
206
+ <li><strong>Files.</strong> Ask it to keep a query and it saves a <code>.sql</code> file in the project, with the question as a comment.</li>
207
+ <li><strong>Examples.</strong> When you confirm a result is right, the agent remembers the question and its SQL for that database (<code>.forgeqe/data/&lt;name&gt;/examples.jsonl</code>) and follows it for similar questions: your names for things and your filters.</li>
208
+ </ul>
209
+ <p><strong>Other settings:</strong> <code>schema</code> (default: the user's), <code>port</code>, <code>path</code> (sqlite, duckdb), <code>timeout_seconds</code> (default 30), <code>ssl</code> (<code>verify</code>, the default for Azure, AWS and GCP hosts; <code>require</code>; <code>disable</code>), <code>ssl_ca</code> (a CA file), <code>region</code> (aws_iam), <code>sample_rows</code> (0 to 5 sample rows per table shown to the model; default 0), <code>mask</code> (more column name patterns to hide), and <code>options</code> (<code>warehouse</code> and <code>role</code> for Snowflake; <code>odbc_driver</code> for SQL Server with <code>auth: azure</code>, which needs Microsoft's ODBC Driver 18).</p>
210
+ <p><strong>What ForgeQE does with them.</strong></p>
211
+ <ul>
212
+ <li><strong>Reads</strong> run in a read-only session where the database has one (PostgreSQL, MySQL, Oracle, SQLite, DuckDB), with a statement timeout and a row cap (200 by default), and are rolled back. Use a read-only login all the same: SQL Server and Snowflake have no read-only session, so there the login is the limit.</li>
213
+ <li><strong>Every statement is checked first.</strong> One statement only: SELECT (with CTEs, joins and set operations), SHOW, DESCRIBE, or EXPLAIN of a SELECT. Refused: DDL, procedures, SELECT INTO, FOR UPDATE, MySQL's executable comments, and functions that read files, sleep, or reach other sessions or servers (<code>pg_read_file</code>, <code>LOAD_FILE</code>, <code>xp_cmdshell</code>, <code>OPENROWSET</code>, <code>UTL_HTTP</code>, ...).</li>
214
+ <li><strong>Writes</strong> run only on a database marked <code>writable: true</code>, and only after you confirm the exact statement: one INSERT, or one UPDATE or DELETE with a WHERE clause.</li>
215
+ <li><strong>Masked values:</strong> columns named like passwords, tokens, hashes, card numbers, IBANs and tax ids show as <code>•••</code>.</li>
216
+ <li><strong>What the model sees:</strong> table and column names, types, keys and comments, and the rows of the queries it runs. Passwords and tokens never reach it, its shell, or the tests. ForgeQE's agent cannot run database clients (<code>psql</code>, <code>mysql</code>, <code>sqlcmd</code>, <code>sqlplus</code>, ...) in its shell.</li>
217
+ <li><strong>The schema</strong> is read once and kept in <code>.forgeqe/data/&lt;name&gt;/catalog.json</code>. ForgeQE checks a cheap fingerprint of the schema (its tables, columns and types) every few minutes, and reads it again when a migration changed it, or after a week; <code>forgeqe db refresh &lt;name&gt;</code> reads it at once. For a large database the agent gets the tables a question names and the tables that join them.</li>
218
+ <li><strong><code>vector: true</code></strong> adds a schema index: a summary of every table, embedded by a small model that runs on this machine, which can bring in tables a question describes without naming. Its hits add to the word matching rather than replace it (on a 938-table ERP the words alone found the right tables more often). It installs about 400 MB and downloads an 80 MB model once. Building the index of a large schema takes a few minutes, once per schema change.</li>
219
+ </ul>
220
+ </div>
221
+ </section>
222
+ </div>
223
+ <article class="spec feat" id="cap-test-data">
224
+ <div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
225
+ <p class="ds">Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask Miner for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch.</p>
226
+ <div class="facts">
227
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Generate test data: 20 customers with 1 to 3 orders each in the shop database</li><li>Make test data for the orders tables as CSV files for our automation</li><li>Insert 50 test users into the fixtures database</li><li>Copy 100 paid orders from prod into fixtures as a masked subset</li><li>Remove the test data batch we inserted yesterday</li><li>Ask Miner for a customer with two paid orders for the checkout test</li></ul></div>
228
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in</span></li></ul></div>
229
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Inserts only into databases marked writable, after you confirm; removes only rows of a batch it inserted</li><li>A subset reads its source in read-only sessions; its start condition is a filter of one table, and personal columns are found by name (mask: adds others)</li><li>Simple CHECK constraints (a list of values, bounds) are read; other rules the database enforces may refuse rows, and then nothing is kept</li></ul></div>
230
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>generate_test_data</code> <code>test_data_batches</code> <code>request_test_data</code></p></div>
231
+ </div>
232
+
233
+ </article>
234
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-data">
235
+ <h4>Test data</h4>
236
+ <div class="prose"><p>ForgeQE makes test data that fits your schema. Ask &quot;generate 20 customers with 1 to 3 orders each in the shop database&quot;, &quot;make the orders tables as CSV for our automation&quot;, or &quot;insert 50 test users into fixtures&quot;. The agent reads the schema, writes a spec, shows you a preview, and then writes files or inserts the rows.</p>
237
+ <p><strong>A spec</strong> is YAML you can keep in the project, so tests and pipelines make the same data again:</p>
238
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">database: fixtures</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: else --db, or the only database
239
+ </span></span><span class="ln ln--pair"><span class="cmd">seed: 42</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same seed makes the same rows
240
+ </span></span><span class="ln ln--pair"><span class="cmd">locale: en_IN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Faker's locale for names, addresses, phone numbers
241
+ </span></span><span class="ln ln--pair"><span class="cmd">edge_cases: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a few rows per table at the limits: longest text, unicode, nulls where allowed
242
+ </span></span><span class="ln"><span class="cmd">tables:
243
+ </span></span><span class="ln"><span class="cmd"> customers:
244
+ </span></span><span class="ln"><span class="cmd"> rows: 20
245
+ </span></span><span class="ln"><span class="cmd"> columns:
246
+ </span></span><span class="ln"><span class="cmd"> email: {faker: email, unique: true}
247
+ </span></span><span class="ln"><span class="cmd"> country: {one_of: [IN, UK, US], weights: [5, 3, 2]}
248
+ </span></span><span class="ln"><span class="cmd"> orders:
249
+ </span></span><span class="ln ln--pair"><span class="cmd"> per: {customers: [1, 3]}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each customer gets 1 to 3 orders
250
+ </span></span><span class="ln"><span class="cmd"> columns:
251
+ </span></span><span class="ln"><span class="cmd"> status: {one_of: [NEW, PAID, SHIPPED]}
252
+ </span></span><span class="ln"><span class="cmd"> total: {range: [5, 500], decimals: 2}
253
+ </span></span><span class="ln"><span class="cmd"> placed_at: {date_between: [&quot;-90d&quot;, &quot;today&quot;]}
254
+ </span></span><span class="ln"><span class="cmd"> reference: {sequence: &quot;ORD-{n:05d}&quot;}
255
+ </span></span><span class="ln"><span class="cmd"> order_items:
256
+ </span></span><span class="ln"><span class="cmd"> per: {orders: [1, 4]}
257
+ </span></span><span class="ln"><span class="cmd"> columns:
258
+ </span></span><span class="ln ln--pair"><span class="cmd"> product_id: {ref: products.id}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> rows already in the database
259
+ </span></span></code></pre></div>
260
+ <p><strong>Rules for a column:</strong></p>
261
+ <ul>
262
+ <li>a plain value;</li>
263
+ <li><code>faker</code>: a <a href="https://faker.readthedocs.io/" class="ext" rel="noopener">Faker</a> method, with <code>args</code>;</li>
264
+ <li><code>one_of</code> (with <code>weights</code>), <code>range</code> (with <code>decimals</code>);</li>
265
+ <li><code>date_between</code>: dates, <code>today</code>, or <code>-30d</code>, <code>-6m</code>, <code>+1y</code>;</li>
266
+ <li><code>sequence</code> (<code>{n}</code> counts from 1), <code>bothify</code> (<code>#</code> a digit, <code>?</code> a letter);</li>
267
+ <li><code>ref</code> (<code>table.column</code>), <code>null_ratio</code>, and <code>unique</code>.</li>
268
+ </ul>
269
+ <p>Two rules keep a row consistent: <code>{ref: products.price, via: product_id}</code> takes the price of the very product the row points at, and <code>{template: &quot;{first_name}.{last_name}@shop.test&quot;}</code> builds a value from the row's other columns.</p>
270
+ <p><strong>Columns without a rule</strong> are filled from the schema: their type and size, NOT NULL, unique keys, a CHECK constraint's list of values or bounds, enum types, and their name (<code>email</code>, <code>phone</code>, <code>city</code>, <code>created_at</code>, ...). Keys the database makes (serial, identity, auto-increment) are left to it. Foreign keys point at rows the spec makes or rows already in the database; a schema without declared foreign keys is matched by name (<code>orders.customer_id</code> to <code>customers</code>).</p>
271
+ <p><strong>Making data from a spec.</strong> No model is used.</p>
272
+ <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>
273
+ <ol>
274
+ <li>Open <strong>Data specs</strong> (Data › Test data).</li>
275
+ <li>Under <strong>Make test data from a spec</strong>, pick the <strong>Spec</strong>, the <strong>Database</strong> (or <strong>The spec's own</strong>) and a <strong>Seed</strong>.</li>
276
+ <li>Press <strong>Preview</strong> to see the rows, <strong>Export</strong> to write them as files in a <strong>File format</strong>, or <strong>Insert</strong> (then <strong>Insert</strong> again to confirm) to put them in a writable database as one batch.</li>
277
+ <li>Under <strong>Inserted batches</strong>, pick a database and press <strong>Show</strong>; <strong>Remove</strong> takes a batch's rows out again.</li>
278
+ </ol>
279
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
280
+ <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 data gen test-data/shop.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what it makes
281
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data gen test-data/shop.yaml --format csv --out test-data/shop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> csv, json or sql (INSERTs in the database's dialect)
282
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data gen test-data/shop.yaml --insert --yes --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> into a writable database; prints the batch id
283
+ </span></span><span class="ln"><span class="cmd">forgeqe data batches --db fixtures
284
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data clean 20261019-173810-9f5b5f --db fixtures --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> removes exactly that batch, children first
285
+ </span></span></code></pre></div>
286
+ </div></div><p><strong>What is written where.</strong></p>
287
+ <ul>
288
+ <li><strong>Inserts</strong> go only into a database marked <code>writable: true</code>, in one transaction: if the database refuses a row, none are kept. In a chat, ForgeQE asks first; on the command line, <code>--yes</code> is needed.</li>
289
+ <li><strong>Batches:</strong> every insert records the keys it made in <code>.forgeqe/data/&lt;database&gt;/batches/</code>, so removing a batch removes those rows and nothing else.</li>
290
+ <li><strong>Files</strong> are written inside the project only, never to a hidden folder.</li>
291
+ </ul>
292
+ <p><strong>Test data in test cases and suites.</strong> A test case in a YAML or JSON case file can bring its own data. The rows go in before the case runs and come out after it (and after the test ForgeQE writes for it), and the case's text uses their values:</p>
293
+ <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">- id: CHECKOUT-7
294
+ </span></span><span class="ln"><span class="cmd"> title: A returning customer pays by card
295
+ </span></span><span class="ln ln--pair"><span class="cmd"> data: test-data/checkout.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or {spec: ..., database: fixtures, keep: true}
296
+ </span></span><span class="ln"><span class="cmd"> steps:
297
+ </span></span><span class="ln"><span class="cmd"> - action: Log in as {{data.customers.0.email}}
298
+ </span></span><span class="ln"><span class="cmd"> - action: Open order {{data.orders.0.reference}} and pay it
299
+ </span></span><span class="ln"><span class="cmd"> expected: The order page shows Paid for {{data.customers.0.name}}
300
+ </span></span></code></pre></div>
301
+ <ul>
302
+ <li><code>{{data.&lt;table&gt;.&lt;row&gt;.&lt;column&gt;}}</code> takes a value of the rows as inserted, keys the database made included (<code>{{data.customers.email}}</code> is row 0).</li>
303
+ <li>A whole suite can have data too: <code>forgeqe suite cases.yaml --data test-data/shop.yaml</code> (<code>--data-db NAME</code>, <code>--keep-data</code> to leave it for a look). When the agent runs cases, give it the spec.</li>
304
+ <li>The data goes only into a database marked <code>writable</code>. These hooks do not ask first, because the team wrote them.</li>
305
+ </ul>
306
+ <p><strong>In automation scripts.</strong> The tests ForgeQE runs, and the tests it writes, read the inserted rows from the JSON file <code>FORGEQE_DATA_FILE</code> names. In a pipeline, make that file with the same spec:</p>
307
+ <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 data gen test-data/checkout.yaml --insert --yes --json --export test-data/.run/checkout.json &gt; batch.json
308
+ </span></span><span class="ln"><span class="cmd">FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test
309
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data clean &quot;$(jq -r .batch batch.json)&quot; --db fixtures --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> in an always() step
310
+ </span></span></code></pre></div>
311
+ <p>Quill, ForgeQE's coding agent, writes tests that read their data from that file (its <code>test-data</code> skill). It can look at the databases and preview test data through ForgeQE's data tools, and it never changes a database itself.</p>
312
+ <p><strong>A masked subset of real data.</strong> Instead of <code>tables:</code>, a spec can take real rows from another database: the rows you pick, every row they point at (and the rows those point at), and the child tables you name, with personal data replaced:</p>
313
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">database: fixtures</span><span class="pad"> </span><span class="cm"><span class="h">#</span> where the rows go (or --db); leave it out for files
314
+ </span></span><span class="ln ln--pair"><span class="cmd">seed: 7</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same seed masks the same way
315
+ </span></span><span class="ln"><span class="cmd">subset:
316
+ </span></span><span class="ln ln--pair"><span class="cmd"> from: prod_copy</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a databases: entry, read in read-only sessions
317
+ </span></span><span class="ln"><span class="cmd"> start: {table: orders, where: &quot;status = 'PAID' AND created_at &gt;= '2026-01-01'&quot;, limit: 100}
318
+ </span></span><span class="ln"><span class="cmd"> children: [order_items, payments]
319
+ </span></span><span class="ln ln--pair"><span class="cmd">mask:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> more columns to mask: a Faker method, or null to empty them
320
+ </span></span><span class="ln"><span class="cmd"> customers.notes: paragraph
321
+ </span></span><span class="ln ln--pair"><span class="cmd">keep: [customers.country]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> columns whose names look personal but are not
322
+ </span></span></code></pre></div>
323
+ <ul>
324
+ <li><strong>Masked by name:</strong> names (in tables of people: customers, users, employees, contacts, ...), emails, phones, addresses, post codes, cities, birth dates, national and tax ids, card numbers, IBANs, IP addresses, and passwords, hashes and tokens. Keys are never masked.</li>
325
+ <li><strong>The same everywhere:</strong> a value always becomes the same fake value, in every table and every run, so joins on a masked column still match. A masked value in a unique column stays unique.</li>
326
+ <li><strong>The start condition</strong> is a filter of the start table only: one condition, no UNION, and only tables of the source's schema. Rows are taken in key order, so the same spec takes the same rows.</li>
327
+ <li><strong>Into a database,</strong> keys the target makes are new and every reference follows them; a subset never goes back into its source. As files, keys stay as they were.</li>
328
+ </ul>
329
+ <h5>Running a test once for each row</h5>
330
+ <p>A test case can run once for each row of its test data: the same steps, a row's values each time. Give the rows with <code>each:</code> and write <code>{{row.&lt;column&gt;}}</code> where a value goes. A column's name is written in lower case with <code>_</code> between its words (<code>Expected Message</code> is <code>{{row.expected_message}}</code>), and a row's expected result can be one of its columns:</p>
331
+ <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">- id: LOGIN-3
332
+ </span></span><span class="ln"><span class="cmd"> title: Sign in as a {{row.role}}
333
+ </span></span><span class="ln"><span class="cmd"> each:
334
+ </span></span><span class="ln ln--pair"><span class="cmd"> file: test-data/users.xlsx</span><span class="pad"> </span><span class="cm"><span class="h">#</span> .csv, .tsv, .xlsx, .xlsm or .json, inside the project
335
+ </span></span><span class="ln ln--pair"><span class="cmd"> sheet: Users</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Excel: the sheet (the first one otherwise)
336
+ </span></span><span class="ln ln--pair"><span class="cmd"> where: {active: &quot;yes&quot;}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> only these rows (optional)
337
+ </span></span><span class="ln ln--pair"><span class="cmd"> limit: 50</span><span class="pad"> </span><span class="cm"><span class="h">#</span> at most this many (default 100, at most 1000)
338
+ </span></span><span class="ln ln--pair"><span class="cmd"> label: email</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the column that names a row in results (optional)
339
+ </span></span><span class="ln"><span class="cmd"> steps:
340
+ </span></span><span class="ln"><span class="cmd"> - action: Sign in as {{row.email}}
341
+ </span></span><span class="ln"><span class="cmd"> expected: The home page shows {{row.expected_message}}
342
+ </span></span></code></pre></div>
343
+ <p>The rows can come from elsewhere too, with the same <code>where</code>, <code>limit</code> and <code>label</code>:</p>
344
+ <div class="tbl tbl--cols-3"><table>
345
+ <thead>
346
+ <tr><th>Source</th><th><code>each:</code></th><th>Rows</th></tr>
347
+ </thead>
348
+ <tbody>
349
+ <tr><td data-label="Source">A file</td><td data-label="each:"><code>file: test-data/users.csv</code> (<code>sheet:</code> for Excel)</td><td data-label="Rows">The header row names the columns. A JSON file is a list of objects, or <code>{rows: [...]}</code></td></tr>
350
+ <tr><td data-label="Source">A query</td><td data-label="each:"><code>query: test-data/queries/active-users.sql</code> or <code>query: &quot;SELECT email, role FROM users WHERE active&quot;</code>, with <code>database: shop</code></td><td data-label="Rows">The query's rows, read only: a statement that would change the database is refused</td></tr>
351
+ <tr><td data-label="Source">A kept request</td><td data-label="each:"><code>request: active-users</code> (<code>table:</code> when it has several)</td><td data-label="Rows">Miner's kept request, fetched again with no model (<code>forgeqe data fetch</code>)</td></tr>
352
+ <tr><td data-label="Source">A spec</td><td data-label="each:"><code>spec: test-data/users.yaml</code> (<code>table:</code> when it makes several)</td><td data-label="Rows">The rows the spec makes, not inserted anywhere</td></tr>
353
+ </tbody>
354
+ </table></div>
355
+ <p><strong>For a whole suite.</strong> Every case runs once per row, and a case's own <code>each:</code> wins. In a chat or the shell, ask in words (&quot;run the login cases for each row of test-data/users.xlsx&quot;); the agent takes the same sources. On the command line:</p>
356
+ <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 suite cases.yaml --each test-data/users.xlsx --each-sheet Users --each-where role=admin
357
+ </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each-query test-data/queries/active-users.sql --each-db shop --each-limit 20
358
+ </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each-request active-users
359
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data rows --each test-data/users.xlsx --export test-data/.run/rows.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what a pipeline gives the tests
360
+ </span></span></code></pre></div>
361
+ <p><strong>Test cases kept in Azure DevOps</strong> run with rows as they are written there. A step's parameter (<code>@email</code>, as Azure DevOps writes them) takes the row's column of that name (<code>Email</code> or <code>email</code>), as <code>{{row.email}}</code> would. An <code>@</code> inside a word, such as an email address, is left alone, and a parameter the rows have no column for stays as written. A case's own parameter table in Azure DevOps already gives one case per row with no <code>--each</code>.</p>
362
+ <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 suite ado:2238,2239 --each test-data/users.xlsx
363
+ </span></span><span class="ln"><span class="cmd">forgeqe suite ado:plan=12/suite=34 --each-query test-data/queries/active-users.sql --each-db shop
364
+ </span></span></code></pre></div>
365
+ <p>The result goes back to the test point (or the work item) once, failed when any row failed, with every row in the comment.</p>
366
+ <p><strong>How rows are used.</strong></p>
367
+ <ul>
368
+ <li><strong>Cases written in words.</strong> A case needs no <code>{{row.&lt;column&gt;}}</code> to use its row. Each run's browser agent is given the row's values (&quot;Test data for this run: email, role, expected_message …&quot;) and uses them wherever the case needs test data. So &quot;Sign in as the test user and check the welcome message&quot; takes each row's user and message. Columns named like a secret (password, token, API key, PIN, card number and the like) are never shown to the model this way, nor used to name a row; a case that needs one says <code>{{row.password}}</code>, or the login comes from <code>logins</code>.</li>
369
+ <li><strong>Another user on each row.</strong> A <code>login</code> column names the saved login (<code>logins:</code> in forgeqe.yaml) a row signs in with: <code>shop_admin</code>, <code>shop_viewer</code>, each with its own <code>username_env</code>, <code>password_env</code> and <code>totp_env</code>. The data file holds only the names; the passwords and authenticator secrets stay in environment variables. That row's run gets that login and no other of the same site, and a row naming a login forgeqe.yaml does not have stops with the reason. The test written from the rows reads each row's credentials from its login's variables, named in the rows file (<code>logins</code>), and makes its own one-time codes.</li>
370
+ <li><strong>Another user on each row, in a recording or a desktop app.</strong> A recording's <strong>Re-run</strong> with rows that have a <code>login</code> column signs in as each row's login: the recording's sign-in steps read the row's login's variables in place of the login it was recorded with. A desktop workflow's <code>{{secret:NAME}}</code> does the same with <code>forgeqe desktop replay --data users.csv</code>, for logins that name the app (<code>app: billing</code> in place of a site), and <code>{{totp:NAME}}</code> types an authenticator code made from NAME, never the secret. A row whose login lacks a variable the recording types stops with the reason.</li>
371
+ <li><strong>One result per row.</strong> Each row is a run of its own, <code>LOGIN-3[2]</code> with the row in its title (<code>· row 2 (email=bob@shop.test, role=viewer)</code>), in the report, the history and the terminal. Results posted back to Azure DevOps, Jira and the others are one per test case: it fails when any row fails, and the comment lists every row.</li>
372
+ <li><strong>One test for every row.</strong> The coding agent writes one parameterised test from the first row that passes (Playwright <code>for (const row of rows) test(...)</code>, <code>@pytest.mark.parametrize</code>, NUnit <code>TestCaseSource</code>, JUnit <code>@MethodSource</code>). It reads the rows at run time from the JSON file <code>FORGEQE_ROWS_FILE</code> names (<code>{&quot;columns&quot;: [...], &quot;rows&quot;: [{...}]}</code>). In a pipeline, make that file with <code>forgeqe data rows ... --export</code>, and set <code>FORGEQE_ROWS_FILE</code> to it.</li>
373
+ <li><strong>Values are data.</strong> Each value is one line of text, at most 1,000 characters. An Excel formula is never worked out: the value Excel saved is taken, and a cell's text such as <code>=cmd|...</code> stays text. Macros are never read.</li>
374
+ <li><strong>Files stay in the project.</strong> A file outside it, in a hidden folder, or reached through a link out of it is refused, and so is a file larger than 20 MB.</li>
375
+ <li><strong>Desktop replay</strong> takes the same rows: <code>forgeqe desktop replay workflow.yaml --data customers.xlsx</code>, or <code>--each-query ... --each-db NAME</code>. A <code>--data</code> CSV keeps its column names as written.</li>
376
+ <li><strong>Trying a recording with each row.</strong> On the Record page, the review's <strong>Runs</strong> tab has <strong>Test data</strong>: the values typed there, or each row of a data file in <code>test-data/</code> (or an environment's <code>data:</code>) or of a kept request. The steps play once per row, up to 20 rows, one after another. A column named like the recording's test data gives that value, and other columns are left out. The result lists every row, then the steps of the first row that failed.</li>
377
+ </ul>
378
+ <h5>Test data on request: Miner</h5>
379
+ <p>Every agent can ask the <strong>Miner</strong> for the test data it needs before it runs: Atlas, Quill, Link and the healer, and a test case (<code>data: {request: ...}</code>). The request is in words. Miner reads the schema, then either finds <strong>existing rows</strong> with one read-only SELECT, or designs <strong>new rows</strong> as a test data spec. Its answer is the data itself and the script that gets it again:</p>
380
+ <div class="tbl tbl--cols-3"><table>
381
+ <thead>
382
+ <tr><th>Kind</th><th>The agent gets</th><th>Kept in <code>test-data/requests/&lt;name&gt;/</code></th></tr>
383
+ </thead>
384
+ <tbody>
385
+ <tr><td data-label="Kind">Existing rows (<code>kind: existing</code>)</td><td data-label="The agent gets">The rows, and the SELECT as the data engine checked it</td><td data-label="Kept in test-data/requests/&lt;name&gt;/"><code>query.sql</code>, <code>rows.json</code>, <code>request.yaml</code></td></tr>
386
+ <tr><td data-label="Kind">New rows (<code>kind: new</code>)</td><td data-label="The agent gets">The rows, and their INSERT statements in the database's dialect</td><td data-label="Kept in test-data/requests/&lt;name&gt;/"><code>spec.yaml</code> (with its seed), <code>data.sql</code>, <code>data.json</code>, <code>rows.json</code>, <code>request.yaml</code></td></tr>
387
+ </tbody>
388
+ </table></div>
389
+ <ul>
390
+ <li><code>auto</code> (the default) lets Miner pick.</li>
391
+ <li>Miner never writes to a database: a statement the data engine sees as a write is refused, and new rows only go to files.</li>
392
+ <li>Keys the database fills (serial, identity) are left out of <code>data.sql</code>, so the script runs on a database that already has rows.</li>
393
+ <li>Without a model, a request takes your own SQL or spec.</li>
394
+ </ul>
395
+ <p><strong>Asking Miner for test data.</strong></p>
396
+ <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>
397
+ <ol>
398
+ <li>Open <strong>Ask</strong> (Data › Databases).</li>
399
+ <li>Pick <strong>Test data</strong>, the <strong>Database</strong>, whether you want <strong>Existing rows</strong>, <strong>New rows</strong> or <strong>Miner picks</strong>, and how many rows.</li>
400
+ <li>Write what you need, optionally a name to keep it as, and press <strong>Ask</strong>.</li>
401
+ <li>Open <strong>Test data</strong> (Data › Test data) to see every request: which agent asked, what for, when, and the answer, with the kept requests to fetch again.</li>
402
+ </ol>
403
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
404
+ <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 data request &quot;two movies with more than 100 votes&quot; --db imdb --kind existing --rows 2
405
+ </span></span><span class="ln"><span class="cmd">forgeqe data request &quot;a queued watchlist entry for a new viewer&quot; --db imdb --kind new --name queued-watchlist
406
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data requests</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the kept requests
407
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data fetch queued-watchlist --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same data again, no model: the query runs again, the spec makes the same rows
408
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data log</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every request: who asked, what for, when, the answer
409
+ </span></span><span class="ln ln--pair"><span class="cmd">psql &quot;$IMDB_URL&quot; -f test-data/requests/queued-watchlist/data.sql</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or insert as a batch: forgeqe data gen test-data/requests/queued-watchlist/spec.yaml --insert --yes
410
+ </span></span></code></pre></div>
411
+ </div></div><p><strong>In a test case.</strong></p>
412
+ <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">- title: Watchlist shows a queued title
413
+ </span></span><span class="ln"><span class="cmd"> data: {request: &quot;a queued watchlist entry for a new viewer&quot;, kind: new, name: queued-watchlist}
414
+ </span></span><span class="ln"><span class="cmd"> steps:
415
+ </span></span><span class="ln"><span class="cmd"> - action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
416
+ </span></span></code></pre></div>
417
+ <p>The first run asks Miner and keeps the request; later runs fetch it from <code>test-data/requests/&lt;name&gt;</code> with no model. Existing rows are used as they are (<code>{{data.result.0.&lt;column&gt;}}</code>, nothing to remove after). New rows go in as a batch before the case and are removed after it, when the database is marked <code>writable</code>.</p>
418
+ <p><strong>Ask in words.</strong> Miner turns a question into one of three things:</p>
419
+ <ul>
420
+ <li><strong>a checked read-only query and its rows,</strong> kept in <code>test-data/queries</code>;</li>
421
+ <li><strong>data checks:</strong> each a SELECT that returns the rows breaking one rule, kept in <code>test-data/checks</code> and run again with <code>forgeqe data checks &lt;name&gt;</code>;</li>
422
+ <li><strong>a database test</strong> for pytest or Playwright, kept in <code>test-data/scripts</code> and never run by ForgeQE. It reads its connection string from an environment variable, and a script holding a password or a connection string is refused.</li>
423
+ </ul>
424
+ <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>
425
+ <ol>
426
+ <li>Open <strong>Ask</strong> (Data › Databases).</li>
427
+ <li>Pick <strong>Query and rows</strong>, <strong>Data checks</strong> or <strong>Test script</strong> (with its <strong>Framework</strong>), and the <strong>Database</strong>.</li>
428
+ <li>Write the question and press <strong>Ask</strong>.</li>
429
+ </ol>
430
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
431
+ <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 data ask &quot;Which titles have more than 100 votes?&quot; --db imdb --as query
432
+ </span></span><span class="ln"><span class="cmd">forgeqe data ask &quot;Every rating belongs to a title&quot; --db imdb --as checks --name ratings
433
+ </span></span><span class="ln"><span class="cmd">forgeqe data ask &quot;Votes are never negative&quot; --db imdb --as script --framework pytest
434
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data checks ratings</span><span class="pad"> </span><span class="cm"><span class="h">#</span> kept checks run again, no model
435
+ </span></span></code></pre></div>
436
+ </div></div><p><strong>Databases from Docker images.</strong> The databases Miner reads can run in containers that <code>forgeqe services up</code> starts (see <a href="../area-operations/index.html#doc-how_to_use-containers-and-mock-services">Containers and mock services</a>), for example the sample databases of the Database Agent in test-agent-nexus (<code>docker-compose.yml</code>, profile <code>db-agent-demos</code>). The container's password and the connection's <code>password_env</code> are different variables: a database's secrets are ForgeQE's own and never go to a container.</p>
437
+ <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">containers:
438
+ </span></span><span class="ln"><span class="cmd"> services:
439
+ </span></span><span class="ln"><span class="cmd"> imdb:
440
+ </span></span><span class="ln ln--pair"><span class="cmd"> image: postgres:16.4-alpine</span><span class="pad"> </span><span class="cm"><span class="h">#</span> test-agent-nexus' demo-imdb, pinned
441
+ </span></span><span class="ln"><span class="cmd"> ports: [&quot;5437:5432&quot;]
442
+ </span></span><span class="ln"><span class="cmd"> env: { POSTGRES_DB: imdb, POSTGRES_USER: nexus }
443
+ </span></span><span class="ln"><span class="cmd"> secrets: [POSTGRES_PASSWORD]
444
+ </span></span><span class="ln ln--pair"><span class="cmd"> volumes: [&quot;./db/imdb:/docker-entrypoint-initdb.d&quot;]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> 01_schema.sql, 02_seed.sql from test-agent-nexus
445
+ </span></span><span class="ln"><span class="cmd"> ready: { tcp: 5432 }
446
+ </span></span><span class="ln"><span class="cmd">databases:
447
+ </span></span><span class="ln"><span class="cmd"> imdb: { engine: postgres, host: 127.0.0.1, port: 5437, database: imdb, user: nexus, password_env: IMDB_DB_PASSWORD, ssl: disable, writable: true }
448
+ </span></span></code></pre></div>
449
+ </div>
450
+ </section>
451
+ </div>
452
+ <article class="spec feat" id="cap-data-flows">
453
+ <div class="hd"><span class="mono">Data</span><h3>Data flows between systems</h3></div>
454
+ <p class="ds">Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas.</p>
455
+ <div class="facts">
456
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Check that customers from the digital database reach the CRM correctly</li><li>Trace customer 42 from digital through CRM to billing</li><li>What does a change to digital.customers.email affect downstream?</li><li>Write the data flows from mapping.xlsx</li><li>Reconcile yesterday's orders between the ERP and the warehouse</li></ul></div>
457
+ <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in</span></li></ul></div>
458
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Hops between SQL tables, Kafka topics, and APIs (a target by key, a source by its list; GET or POST only); MongoDB is not checked</li><li>At most 200,000 source rows a flow per check, compared by key</li><li>Reads only; flows are written into flows.yaml, and nothing in the databases changes</li></ul></div>
459
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>data_flows</code> <code>check_flows</code> <code>trace_record</code> <code>read_mapping_file</code></p></div>
460
+ </div>
461
+
462
+ </article>
463
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-data-flows">
464
+ <h4>Data flows</h4>
465
+ <div class="prose"><p>When your systems pass data to each other (a customer signs up in the digital channel's database, the CRM gets a contact, billing gets an account), ForgeQE checks each hop. Ask &quot;check that customers reach the CRM correctly&quot;, &quot;trace customer 42 from digital to billing&quot;, or &quot;what does a change to digital.customers.email affect downstream?&quot;.</p>
466
+ <p><strong>Where the hops come from.</strong> The hops are in <code>flows.yaml</code>, beside forgeqe.yaml. ForgeQE writes it from your mapping documents, wherever they are (a spreadsheet in the project, a Confluence page, a Jira or Azure DevOps item, a text file). When there are none, it suggests flows from the schemas and a sample of keys. It shows you each flow and saves the ones you confirm. You can write it by hand too:</p>
467
+ <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">flows:
468
+ </span></span><span class="ln"><span class="cmd"> signup_to_crm:
469
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id, changed: updated_at}
470
+ </span></span><span class="ln ln--pair"><span class="cmd"> to: {db: crm, table: contacts, key: source_customer_id}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the target column that holds the source key
471
+ </span></span><span class="ln ln--pair"><span class="cmd"> mode: realtime</span><span class="pad"> </span><span class="cm"><span class="h">#</span> it moves as it changes (API, queue, CDC)
472
+ </span></span><span class="ln ln--pair"><span class="cmd"> sla: 15m</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a source row changed longer ago than this must have arrived
473
+ </span></span><span class="ln ln--pair"><span class="cmd"> extra: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> also report target rows with no source row
474
+ </span></span><span class="ln"><span class="cmd"> columns:
475
+ </span></span><span class="ln"><span class="cmd"> email: {to: email_address, rule: lower}
476
+ </span></span><span class="ln"><span class="cmd"> full_name: {to: full_name, template: &quot;{first_name} {last_name}&quot;}
477
+ </span></span><span class="ln"><span class="cmd"> country: {to: country_code, map: {India: IN, United Kingdom: GB}}
478
+ </span></span><span class="ln"><span class="cmd"> orders_to_crm:
479
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: orders, key: id}
480
+ </span></span><span class="ln"><span class="cmd"> to: {db: crm, table: crm_orders, key: source_order_id}
481
+ </span></span><span class="ln ln--pair"><span class="cmd"> mode: batch</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an ETL job copies it
482
+ </span></span><span class="ln ln--pair"><span class="cmd"> ready: {sql: &quot;SELECT MAX(finished_at) FROM etl_runs WHERE job = 'orders'&quot;, wait: 10m}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> wait for a run to finish
483
+ </span></span><span class="ln ln--pair"><span class="cmd"> since: 7d</span><span class="pad"> </span><span class="cm"><span class="h">#</span> only rows changed in the last week (needs from.changed)
484
+ </span></span><span class="ln"><span class="cmd"> columns:
485
+ </span></span><span class="ln"><span class="cmd"> total: {to: amount, rule: &quot;round(2)&quot;}
486
+ </span></span><span class="ln"><span class="cmd"> status: {to: status_code, map: {PAID: P, NEW: N}}
487
+ </span></span></code></pre></div>
488
+ <p>Rules: <code>same</code> (the default), <code>lower</code>, <code>upper</code>, <code>trim</code>, <code>round(n)</code> (half up, as databases round), <code>date</code>, <code>number</code>, <code>string</code>, <code>map</code>, <code>template</code> (from the source row's columns), and <code>default</code> (for a null).</p>
489
+ <p><strong>Kafka and APIs.</strong> A hop's side can also be a Kafka topic or an API:</p>
490
+ <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">databases:
491
+ </span></span><span class="ln"><span class="cmd"> events:
492
+ </span></span><span class="ln"><span class="cmd"> engine: kafka
493
+ </span></span><span class="ln"><span class="cmd"> host: broker1:9092,broker2:9092
494
+ </span></span><span class="ln ln--pair"><span class="cmd"> user: qa-reader</span><span class="pad"> </span><span class="cm"><span class="h">#</span> SASL; leave out for a broker without sign-in
495
+ </span></span><span class="ln"><span class="cmd"> password_env: KAFKA_PASSWORD
496
+ </span></span><span class="ln"><span class="cmd"> options: {security_protocol: SASL_SSL, sasl_mechanism: SCRAM-SHA-512}
497
+ </span></span></code></pre></div>
498
+ <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">flows:
499
+ </span></span><span class="ln"><span class="cmd"> signup_events:
500
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id, changed: updated_at}
501
+ </span></span><span class="ln ln--pair"><span class="cmd"> to: {db: events, topic: customer-created, key: customerId}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a field of the message; $key for the message key
502
+ </span></span><span class="ln"><span class="cmd"> mode: realtime
503
+ </span></span><span class="ln"><span class="cmd"> sla: 5m
504
+ </span></span><span class="ln"><span class="cmd"> columns:
505
+ </span></span><span class="ln"><span class="cmd"> email: {to: email, rule: lower}
506
+ </span></span><span class="ln ln--pair"><span class="cmd"> country: {to: address.country, map: {India: IN}}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> nested fields by their dotted names
507
+ </span></span><span class="ln"><span class="cmd"> contacts_api:
508
+ </span></span><span class="ln"><span class="cmd"> from: {db: crm, table: contacts, key: contact_id}
509
+ </span></span><span class="ln ln--pair"><span class="cmd"> to: {api: crm_api, path: &quot;/contacts/{key}&quot;, key: id}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an API app of the environment (kind: api)
510
+ </span></span><span class="ln"><span class="cmd"> columns:
511
+ </span></span><span class="ln"><span class="cmd"> email_address: email
512
+ </span></span><span class="ln"><span class="cmd"> web_signups:
513
+ </span></span><span class="ln"><span class="cmd"> from: {api: web_api, path: &quot;/signups?status=new&quot;, key: id, items: data.items, next: links.next, changed: createdAt}
514
+ </span></span><span class="ln"><span class="cmd"> to: {db: crm, table: contacts, key: contact_id}
515
+ </span></span><span class="ln"><span class="cmd"> columns:
516
+ </span></span><span class="ln"><span class="cmd"> email: email_address
517
+ </span></span><span class="ln"><span class="cmd"> contacts_graphql:
518
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id}
519
+ </span></span><span class="ln"><span class="cmd"> to:
520
+ </span></span><span class="ln"><span class="cmd"> api: crm_api
521
+ </span></span><span class="ln"><span class="cmd"> path: /graphql
522
+ </span></span><span class="ln ln--pair"><span class="cmd"> method: POST</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a lookup or a search: GET or POST only
523
+ </span></span><span class="ln"><span class="cmd"> body: {query: &quot;query($id: ID!) { contact(id: $id) { id email } }&quot;, variables: {id: &quot;{key}&quot;}}
524
+ </span></span><span class="ln"><span class="cmd"> items: data.contact
525
+ </span></span><span class="ln"><span class="cmd"> key: id
526
+ </span></span><span class="ln"><span class="cmd"> columns:
527
+ </span></span><span class="ln"><span class="cmd"> email: email
528
+ </span></span></code></pre></div>
529
+ <ul>
530
+ <li><strong>Topics</strong> are read without a consumer group, so no offset is committed and no other consumer is affected. A read stops at the end of the topic as it was when the check began. A topic can be a source (its message time is when a record changed) or a target. <code>forgeqe db test events</code> checks the brokers, and <code>forgeqe db tables events</code> lists the topics with the fields of their latest messages.</li>
531
+ <li><strong>APIs</strong> are called at the base URL of the environment's API app, with the headers <code>api.headers</code> gives in forgeqe.yaml (<code>Authorization: Bearer ${CRM_API_TOKEN}</code>).
532
+ <ul>
533
+ <li>As a <strong>target</strong>, an API answers for one key: <code>{key}</code> goes in its path (<code>/contacts/{key}</code>) or its body, one call a key. A 404 counts as missing. At most 500 keys are checked, so narrow a large source with <code>since:</code>.</li>
534
+ <li>As a <strong>source</strong>, it is a list endpoint (no <code>{key}</code>), read page by page through the response's <code>next</code> link. <code>changed</code> names the field that says when a record changed, for <code>since:</code> and SLAs. A record can be followed (<code>flows trace</code>, <code>trace:</code>) from an API list too.</li>
535
+ </ul>
536
+ </li>
537
+ <li><code>items</code> says where the records are in a response (<code>data.items</code>). Without it, ForgeQE takes the response itself, or its first list among <code>items</code>, <code>data</code>, <code>results</code>, <code>value</code>, <code>records</code> and <code>content</code>.</li>
538
+ <li>Calls are <strong>GET or POST</strong> (a lookup, a search, a GraphQL query): a check never changes data, so PUT, PATCH and DELETE are refused. Redirects are not followed, and a <code>next</code> link that leaves the API's host is refused, so the headers never reach another server.</li>
539
+ </ul>
540
+ <p><strong>What a check reports for each flow.</strong></p>
541
+ <ul>
542
+ <li><strong>Missing:</strong> source rows whose key is not in the target. For a realtime flow, a row is <strong>late</strong> once its change is older than the SLA, and <strong>still in flight</strong> before that (not a failure).</li>
543
+ <li><strong>Wrong:</strong> rows where a mapped column does not hold the expected value, with the key, the source value, the value expected after the rule, and the value found. Numbers compare as numbers (12.5 and 12.50), date-times to the second, and trailing spaces of fixed-width text do not count.</li>
544
+ <li><strong>Duplicated:</strong> target keys that appear more than once; with <code>extra: true</code>, target rows with no source row.</li>
545
+ <li><strong>Batch:</strong> with <code>ready</code>, the check waits for a run of the job that finished after it began (up to <code>wait</code>), and says so when it had to check the last run's rows.</li>
546
+ </ul>
547
+ <p><strong>Following what a test case created.</strong> A case in a case file can follow the record its steps made through the flows. The case passes only when the record arrived, right, at every hop:</p>
548
+ <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">- id: SIGNUP-3
549
+ </span></span><span class="ln"><span class="cmd"> title: A new customer reaches the CRM and billing
550
+ </span></span><span class="ln"><span class="cmd"> steps:
551
+ </span></span><span class="ln"><span class="cmd"> - action: Sign up with the email qa+{{unique}}@shop.test
552
+ </span></span><span class="ln"><span class="cmd"> expected: The welcome page shows
553
+ </span></span><span class="ln"><span class="cmd"> trace:
554
+ </span></span><span class="ln ln--pair"><span class="cmd"> from: digital.customers</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or flows: [signup_to_crm, crm_to_billing]
555
+ </span></span><span class="ln"><span class="cmd"> where: {email: &quot;qa+{{unique}}@shop.test&quot;}
556
+ </span></span><span class="ln ln--pair"><span class="cmd"> wait: 120</span><span class="pad"> </span><span class="cm"><span class="h">#</span> seconds each hop may take
557
+ </span></span></code></pre></div>
558
+ <p><code>{{unique}}</code> is a token made for each run of the case, so what it creates can be found again; data placeholders (<code>{{data.customers.0.email}}</code>) work in <code>where</code> too. A record that does not arrive, arrives twice, or arrives with a wrong value fails the case as a functional defect, with the hop and the values in its summary, the report, JUnit, and the result posted to Azure DevOps or Jira.</p>
559
+ <p><strong>Checking flows and following a record.</strong> No model is used.</p>
560
+ <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>
561
+ <ol>
562
+ <li>Open <strong>Data flows</strong> (Data › Databases). The map shows what feeds what.</li>
563
+ <li>Tick flows and press <strong>Check</strong>, or press <strong>Check all</strong>. <strong>Report</strong> opens the check's report.</li>
564
+ <li>Under <strong>Follow one record</strong>, pick where it starts (<strong>From</strong>: a table or a flow), type <strong>Its key</strong>, optionally <strong>Wait up to (s)</strong>, and press <strong>Follow</strong>.</li>
565
+ </ol>
566
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
567
+ <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 flows map</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what feeds what
568
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows check --junit flows.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 when a flow fails
569
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows check --post-ado --run-name &quot;Nightly data flows&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> also an Azure DevOps test run
570
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows trace digital.customers 42 --wait 120</span><span class="pad"> </span><span class="cm"><span class="h">#</span> follow customer 42 hop by hop
571
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows impact digital.customers.email</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every column it becomes downstream
572
+ </span></span></code></pre></div>
573
+ </div></div><p><strong>Reports and Azure DevOps.</strong> Each check is also kept in the reports folder, as <code>flows-&lt;time&gt;/report.html</code> and <code>flows.json</code>. The report opens on a map of your systems, left to right in the order data reaches them, with each hop coloured by health; a hop opens what is missing, late, wrong or duplicated, key by key. A record you follow is kept the same way, hop by hop.</p>
574
+ <p>With <code>--post-ado</code> (or when you ask the agent to record the results), the check becomes an automated Azure DevOps test run with one result per flow, failed with what is missing, late, wrong or duplicated. A flow with <code>ado_test_case: &lt;id&gt;</code> records its result against that test case.</p>
575
+ <p><strong>Reads only.</strong> Everything is a read in a read-only session, and keys go to each database as bound values. Masked columns (passwords, tokens and the like) show as <code>•••</code> in results. A check compares up to 200,000 source rows a flow, by key.</p>
576
+ </div>
577
+ </section>
578
+ </div>
579
+
580
+ <nav class="pager" aria-label="Previous and next">
581
+ <a class="prev" href="../area-operations/index.html"><small>Previous</small><span>Operations and monitoring</span></a>
582
+ <a class="next" href="../area-pull-requests/index.html"><small>Next</small><span>Pull requests</span></a>
583
+ </nav>
584
+ </main>
585
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-databases">Ask a database in plain language</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li></ul></aside>
586
+ </div>
587
+ <footer class="foot">
588
+ <div class="container foot__row">
589
+ <a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
590
+ <nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
591
+ </div>
592
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
593
+ </footer>
594
+ </body>
595
+ </html>