@capagents/forgeqe 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/HOW_TO_USE.md +465 -95
  2. package/README.md +21 -6
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +100 -8
  7. package/dist/docs-site/docs/architecture/index.html +210 -214
  8. package/dist/docs-site/docs/area-api/index.html +350 -0
  9. package/dist/docs-site/docs/area-automated-tests/index.html +967 -0
  10. package/dist/docs-site/docs/area-browser/index.html +430 -0
  11. package/dist/docs-site/docs/area-data/index.html +605 -0
  12. package/dist/docs-site/docs/area-desktop/index.html +755 -0
  13. package/dist/docs-site/docs/area-mobile/index.html +631 -0
  14. package/dist/docs-site/docs/area-operations/index.html +1069 -0
  15. package/dist/docs-site/docs/area-pull-requests/index.html +208 -0
  16. package/dist/docs-site/docs/area-quality/index.html +365 -0
  17. package/dist/docs-site/docs/area-release/index.html +320 -0
  18. package/dist/docs-site/docs/area-setup/index.html +1192 -0
  19. package/dist/docs-site/docs/area-systems/index.html +207 -0
  20. package/dist/docs-site/docs/area-test-cases/index.html +694 -0
  21. package/dist/docs-site/docs/containers/index.html +97 -104
  22. package/dist/docs-site/docs/cost-architecture/index.html +108 -112
  23. package/dist/docs-site/docs/custom-agents-first-run/index.html +19 -23
  24. package/dist/docs-site/docs/desktop/index.html +172 -162
  25. package/dist/docs-site/docs/desktop-ci/index.html +26 -33
  26. package/dist/docs-site/docs/evidence/index.html +253 -257
  27. package/dist/docs-site/docs/feature-test-prompts/index.html +66 -70
  28. package/dist/docs-site/docs/get-started/index.html +495 -0
  29. package/dist/docs-site/docs/graphify/index.html +42 -46
  30. package/dist/docs-site/docs/guardrails/index.html +17 -21
  31. package/dist/docs-site/docs/index.html +17 -6708
  32. package/dist/docs-site/docs/mobile/index.html +155 -162
  33. package/dist/docs-site/docs/model-routing/index.html +44 -51
  34. package/dist/docs-site/docs/overview/index.html +176 -0
  35. package/dist/docs-site/docs/product-graph/index.html +52 -55
  36. package/dist/docs-site/docs/product-knowledge/index.html +11 -15
  37. package/dist/docs-site/docs/product-views/index.html +53 -57
  38. package/dist/docs-site/docs/reference/index.html +379 -0
  39. package/dist/docs-site/docs/search.js +1 -1
  40. package/dist/docs-site/docs/using/index.html +480 -0
  41. package/dist/docs-site/docs/web-app/index.html +147 -93
  42. package/dist/docs-site/security/index.html +930 -0
  43. package/dist/docs-site/security/security-theme.css +161 -0
  44. package/dist/docs-site/security/security.js +1465 -0
  45. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  46. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  47. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  48. package/dist/forgeqe.js +2251 -1886
  49. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  50. package/dist/web/assets/Agent-CPhmZdFX.js +8 -0
  51. package/dist/web/assets/AgentWork-BXdN9xgi.js +2 -0
  52. package/dist/web/assets/ApiTests-Do3xLjfB.js +10 -0
  53. package/dist/web/assets/Browse-WVkJT6Bs.js +2 -0
  54. package/dist/web/assets/Chat-CDc9UcQX.js +3 -0
  55. package/dist/web/assets/CommandPalette-BAZm62lV.js +1 -0
  56. package/dist/web/assets/Compare-Br6n9T9L.js +1 -0
  57. package/dist/web/assets/Cost-BBUyBu3Y.js +1 -0
  58. package/dist/web/assets/Data-Ch2DPEWp.js +6 -0
  59. package/dist/web/assets/Desktop-Qzoq-cQv.js +1 -0
  60. package/dist/web/assets/DesktopReview-CF_jQYAM.js +1 -0
  61. package/dist/web/assets/Evidence-C72Lj5_Q.js +1 -0
  62. package/dist/web/assets/Explore-ObkEpUyS.js +2 -0
  63. package/dist/web/assets/Features-CQzNo_WP.js +1 -0
  64. package/dist/web/assets/Flags-0-RniPJm.js +2 -0
  65. package/dist/web/assets/Flaky-BPJvNLCA.js +1 -0
  66. package/dist/web/assets/Impact-CfccsL_k.js +3 -0
  67. package/dist/web/assets/Jobs-T6m4zhDy.js +5 -0
  68. package/dist/web/assets/KindPage-BDUvWe2p.js +6 -0
  69. package/dist/web/assets/Migration-Dqeh4x5u.js +2 -0
  70. package/dist/web/assets/PageAgent-DNjzIgeY.js +1 -0
  71. package/dist/web/assets/Product-nYV_scOV.js +7 -0
  72. package/dist/web/assets/Production-CGSbEWVa.js +1 -0
  73. package/dist/web/assets/Quality-BIypojZm.js +1 -0
  74. package/dist/web/assets/Readiness-BlRjwJRg.js +1 -0
  75. package/dist/web/assets/Record-v2KLI-_Z.js +1 -0
  76. package/dist/web/assets/Regression-B-jSt4Jz.js +5 -0
  77. package/dist/web/assets/RelationGraph-8J98lOVG.js +1 -0
  78. package/dist/web/assets/Reports-GI4u6SyW.js +2 -0
  79. package/dist/web/assets/Response-mhBThq2b.js +9 -0
  80. package/dist/web/assets/Responsive-DXu7Ra7K.js +3 -0
  81. package/dist/web/assets/RunDiff-D0SHDNp0.js +1 -0
  82. package/dist/web/assets/Runs-C1Gjdi9M.js +2 -0
  83. package/dist/web/assets/Settings-BGGeuvyF.js +21 -0
  84. package/dist/web/assets/Steps-D-YG0eJy.js +2 -0
  85. package/dist/web/assets/TestCases-DC4w77eQ.js +1 -0
  86. package/dist/web/assets/TestData-CvKWRVVV.js +2 -0
  87. package/dist/web/assets/TestDebt-D8YzN29_.js +1 -0
  88. package/dist/web/assets/TestManagement-C5cDCqrD.js +1 -0
  89. package/dist/web/assets/Tosca-BGUv3RiJ.js +3 -0
  90. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +1 -0
  91. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  92. package/dist/web/assets/coverage-BMP6ELFJ.js +5 -0
  93. package/dist/web/assets/dataParts-DbeCj9ga.js +3 -0
  94. package/dist/web/assets/diff-BStuTmsN.js +2 -0
  95. package/dist/web/assets/families-BBFFrUlo.js +1 -0
  96. package/dist/web/assets/filters-CnAMr286.js +1 -0
  97. package/dist/web/assets/fold-D_O_VZui.js +1 -0
  98. package/dist/web/assets/head-CRo48rPt.js +1 -0
  99. package/dist/web/assets/highlight-BcFZIf59.js +4 -0
  100. package/dist/web/assets/index-B3JsM7tv.js +64 -0
  101. package/dist/web/assets/index-CafApcbZ.css +2 -0
  102. package/dist/web/assets/input-CtzK50ZF.js +1 -0
  103. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  104. package/dist/web/assets/line-icons-rdF8DYDJ.js +1 -0
  105. package/dist/web/assets/logos-D4oVWzqa.js +1 -0
  106. package/dist/web/assets/palette-DAaGSao7.js +1 -0
  107. package/dist/web/assets/paletteCommands-Co-RlQ8q.js +1 -0
  108. package/dist/web/assets/parts-D357Wolo.js +1 -0
  109. package/dist/web/assets/productParts-B8oHRCJF.js +1 -0
  110. package/dist/web/assets/qualityParts-BLkmIfDY.js +1 -0
  111. package/dist/web/assets/recordTest-Cez2sDJO.js +1 -0
  112. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  113. package/dist/web/assets/route-BloYJWgw.js +1 -0
  114. package/dist/web/index.html +12 -12
  115. package/docs/ARCHITECTURE.md +1 -1
  116. package/docs/BASAL.md +1 -1
  117. package/docs/DESKTOP.md +20 -1
  118. package/docs/EVIDENCE.md +1 -1
  119. package/docs/MOBILE.md +4 -4
  120. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  121. package/docs/WEB_APP.md +114 -51
  122. package/docs/user-guide.html +463 -87
  123. package/forgeqe.example.yaml +3 -3
  124. package/package.json +1 -1
  125. package/prompts/page-differs.md +1 -1
  126. package/prompts/requests-rule.md +1 -1
  127. package/prompts/responsive-review.md +38 -0
  128. package/prompts/responsive-split.md +40 -0
  129. package/prompts/responsive.md +42 -0
  130. package/prompts/test-reviewer.md +1 -1
  131. package/prompts/test-rules.md +3 -4
  132. package/skills/web-guidance/LICENSE +202 -0
  133. package/skills/web-guidance/SKILL.md +76 -0
  134. package/skills/web-guidance/UPSTREAM +67 -0
  135. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  136. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  137. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  138. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  139. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  140. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  141. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  142. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  143. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  144. package/skills/web-guidance/references/forms/forms.md +415 -0
  145. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  146. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  147. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  148. package/skills/web-guidance/references/forms/slider.md +184 -0
  149. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  150. package/skills/web-guidance/references/forms/switch.md +60 -0
  151. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  152. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  153. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  154. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  155. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  156. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  157. package/skills/web-guidance/references/performance/performance.md +384 -0
  158. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  159. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  160. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  161. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  162. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  163. package/skills/web-guidance/references/security/passkeys.md +39 -0
  164. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  165. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  166. package/skills/web-guidance/references/security/security.md +390 -0
  167. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  168. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  169. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  170. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  171. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  172. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  173. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  174. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  175. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  176. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  177. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  178. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  179. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  180. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  181. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  182. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  183. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  184. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  185. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  186. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  187. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  188. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  189. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  190. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  191. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  192. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  193. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  194. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  195. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  196. package/skills/web-guidance/references/visual-design/color.md +43 -0
  197. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  198. package/dist/web/assets/AgentWork-C3KdZh5M.js +0 -2
  199. package/dist/web/assets/ApiTests-BLnl7JGO.js +0 -10
  200. package/dist/web/assets/Browse-C-Enjpmd.js +0 -2
  201. package/dist/web/assets/Chat-Bt6jZI68.js +0 -3
  202. package/dist/web/assets/Choices-D5eTFinz.js +0 -3
  203. package/dist/web/assets/CommandPalette-D89NM2_E.js +0 -1
  204. package/dist/web/assets/Compare-YfFYHwfK.js +0 -1
  205. package/dist/web/assets/Cost-ClaDz0YR.js +0 -1
  206. package/dist/web/assets/Data-jSFgAfej.js +0 -6
  207. package/dist/web/assets/Desktop-BofKeLVf.js +0 -1
  208. package/dist/web/assets/DesktopReview--WjeZh3w.js +0 -1
  209. package/dist/web/assets/Evidence-CJNzSQpY.js +0 -1
  210. package/dist/web/assets/Explore-BdFvqgF4.js +0 -2
  211. package/dist/web/assets/Features-CIBbw6PG.js +0 -1
  212. package/dist/web/assets/Flags-B62v4uWR.js +0 -2
  213. package/dist/web/assets/Flaky-Cut1kZw6.js +0 -1
  214. package/dist/web/assets/Impact-jOSl5Q0k.js +0 -3
  215. package/dist/web/assets/Jobs-DMJGgWtQ.js +0 -5
  216. package/dist/web/assets/KindPage-BbQWH5wa.js +0 -6
  217. package/dist/web/assets/Migration-BBgv7xXo.js +0 -2
  218. package/dist/web/assets/PageAgent-txbNoP6u.js +0 -1
  219. package/dist/web/assets/Product-BrXH81Ns.js +0 -7
  220. package/dist/web/assets/Production-CCVtFNGQ.js +0 -1
  221. package/dist/web/assets/Quality-Dxh-60A8.js +0 -1
  222. package/dist/web/assets/Readiness-DyJvSOLN.js +0 -1
  223. package/dist/web/assets/Record-Dnlkimjb.js +0 -1
  224. package/dist/web/assets/Regression-D2DDTwzs.js +0 -5
  225. package/dist/web/assets/Reports-ClcY7M0Q.js +0 -2
  226. package/dist/web/assets/Response-D9FYUvHg.js +0 -9
  227. package/dist/web/assets/RunDiff-CNImaEdz.js +0 -1
  228. package/dist/web/assets/Runs-CFvmdULI.js +0 -2
  229. package/dist/web/assets/Steps-BS66s0E1.js +0 -2
  230. package/dist/web/assets/TestCases-CrQEUtfD.js +0 -1
  231. package/dist/web/assets/TestData-e3IX0xwG.js +0 -2
  232. package/dist/web/assets/TestDebt-tXPoexMF.js +0 -1
  233. package/dist/web/assets/TestManagement-wjGaoZzI.js +0 -1
  234. package/dist/web/assets/Tosca-C5YaMLS0.js +0 -3
  235. package/dist/web/assets/WhatsNew-CwnRbDnd.js +0 -1
  236. package/dist/web/assets/azuredevops-BcQ5AFOM.js +0 -1
  237. package/dist/web/assets/crew-CWfjZIxE.js +0 -1
  238. package/dist/web/assets/families-DWilSDct.js +0 -1
  239. package/dist/web/assets/filters-CVzIOjPG.js +0 -1
  240. package/dist/web/assets/fold-tvLGnxD1.js +0 -1
  241. package/dist/web/assets/frame-Deu1IqzV.js +0 -13
  242. package/dist/web/assets/index-BWMIKyPB.js +0 -76
  243. package/dist/web/assets/index-C2Yq55oT.css +0 -2
  244. package/dist/web/assets/line-icons-C_amZ5-o.js +0 -1
  245. package/dist/web/assets/logos-C1NBtBMc.js +0 -1
  246. package/dist/web/assets/logos-DFyhMw0i.js +0 -1
  247. package/dist/web/assets/markdown-DC2HA0yZ.js +0 -10
  248. package/dist/web/assets/paletteCommands-Qxm5DZIs.js +0 -1
  249. package/dist/web/assets/parts-BR6dUwqn.js +0 -1
  250. package/dist/web/assets/productParts-BxdHuSBa.js +0 -1
  251. package/dist/web/assets/qualityParts-lz6eYVxC.js +0 -1
  252. package/dist/web/assets/recordTest-CcplpTS6.js +0 -1
  253. package/dist/web/assets/today-DuQFapJM.js +0 -1
  254. package/dist/web/assets/when-CHnpLdYw.js +0 -1
@@ -0,0 +1,605 @@
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
+ <link rel="stylesheet" href="../../app-look.css">
15
+ <link rel="stylesheet" href="../app-theme.css">
16
+ </head>
17
+ <body class="docs">
18
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-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>
19
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
20
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
21
+ <line x1="8" x2="16" y1="21" y2="21" />
22
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
23
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
24
+ <path d="M12 18h.01" /></symbol>
25
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
26
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
27
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
28
+ <path d="M10 21.9V14L2.1 9.1" />
29
+ <path d="m10 14 11.9-6.9" />
30
+ <path d="M14 19.8v-8.1" />
31
+ <path d="M18 17.5V9.4" /></symbol>
32
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
33
+ <path d="m9 12 2 2 4-4" /></symbol>
34
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
35
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
36
+ <path d="M10 9H8" />
37
+ <path d="M16 13H8" />
38
+ <path d="M16 17H8" /></symbol>
39
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
40
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
41
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
42
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
43
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
44
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
45
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
46
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
47
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
48
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
49
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
50
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
51
+ <circle cx="18" cy="6" r="3" />
52
+ <circle cx="6" cy="18" r="3" />
53
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
54
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
55
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
56
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
57
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
58
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
59
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
60
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
61
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
62
+ <circle cx="12" cy="12" r="3" />
63
+ <path d="m16 16-1.9-1.9" /></symbol>
64
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
65
+ <path d="M14.12 3.88 16 2" />
66
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
67
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
68
+ <path d="M12 20v-9" />
69
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
70
+ <path d="M6 13H2" />
71
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
72
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
73
+ <path d="M22 13h-4" />
74
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
75
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
76
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
77
+ <path d="m7 22-4-4 4-4" />
78
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
79
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
80
+ <polyline points="8 6 2 12 8 18" /></symbol>
81
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
82
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
83
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
84
+ <path d="M9 8V2" />
85
+ <path d="M15 8V2" />
86
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
87
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
88
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
89
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
90
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
91
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
92
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
93
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
94
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
95
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
96
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
97
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
98
+ </svg>
99
+
100
+ <a class="skip" href="#main">Skip to content</a>
101
+ <header class="nav" id="navigation">
102
+ <div class="nav__bar">
103
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
104
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
105
+ <div class="nav__end">
106
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
107
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
108
+ </div>
109
+ </div>
110
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
111
+ </header>
112
+ <div class="container docs-layout">
113
+ <nav class="docs-side" aria-label="Docs">
114
+ <a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../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><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
+ </nav>
117
+ <main id="main" class="docs-main guide chapter-page">
118
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
119
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><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><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-databases">Ask a database in plain language</a></li><li><a href="#doc-how_to_use-databases">Databases</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#doc-how_to_use-test-data">Test data</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li><li><a href="#doc-how_to_use-data-flows">Data flows</a></li></ul></nav></details></div>
120
+ <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-knowledge-base"/></svg>Test data and databases</h1>
121
+ <p class="guide-lead">Databases: their schema, and SQL from plain language, checked before it runs</p>
122
+ <article class="spec feat" id="cap-databases">
123
+ <div class="hd"><span class="mono">Data</span><h3>Ask a database in plain language</h3></div>
124
+ <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 through DB-GPT's connectors 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>
125
+ <div class="facts">
126
+ <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>
127
+ <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>
128
+ <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>
129
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>databases</code> <code>database_schema</code> <code>run_sql</code></p></div>
130
+ </div>
131
+ <div class="detail"><span class="mono">In detail</span>
132
+ <section class="doc" id="doc-how_to_use-databases">
133
+ <h4>Databases</h4>
134
+ <div class="prose"><p>ForgeQE's agent can read your databases and answer questions from them in plain language: &quot;which customers in India
135
+ 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
136
+ reads the schema first (through <a href="https://github.com/eosphoros-ai/DB-GPT" class="ext" rel="noopener">DB-GPT</a>'s connectors), writes SQL in the
137
+ database's own dialect, runs it, and shows you the rows and the SQL.</p>
138
+ <p>Supported: PostgreSQL, MySQL, MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite,
139
+ DuckDB, and MongoDB. The first use sets up the data engine (its own Python, in <code>~/.forgeqe/data</code>) and that database's
140
+ driver.</p>
141
+ <p><strong>MongoDB</strong> (<code>engine: mongodb</code>, or <code>url_env</code> with a <code>mongodb://</code> or <code>mongodb+srv://</code> string): the agent lists the
142
+ collections with the fields of a sample of documents, and queries with find, aggregate, count and distinct, written as
143
+ JSON. Operators that run code on the server or write elsewhere (<code>$where</code>, <code>$function</code>, <code>$accumulator</code>, <code>$out</code>,
144
+ <code>$merge</code>) and <code>system.*</code> collections are refused; inserts, updates and deletes need <code>writable: true</code> and your
145
+ confirmation, and an update or delete needs a filter. MongoDB has no read-only session, so connect as a read-only
146
+ user. Test data is made for the SQL databases only.</p>
147
+ <p>Add the databases under <code>databases:</code> in forgeqe.yaml, or under an environment in env.yaml (the active environment's
148
+ entries win by name). No secret goes in either file: name the environment variables that hold them.</p>
149
+ <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:
150
+ </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
151
+ </span></span><span class="ln"><span class="cmd"> url_env: ORDERS_DB_URL
152
+ </span></span><span class="ln"><span class="cmd"> description: Orders written by the checkout app
153
+ </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
154
+ </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
155
+ </span></span><span class="ln"><span class="cmd"> host: reporting.postgres.database.azure.com
156
+ </span></span><span class="ln"><span class="cmd"> database: reporting
157
+ </span></span><span class="ln"><span class="cmd"> user: qa_reader
158
+ </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)
159
+ </span></span><span class="ln"><span class="cmd"> billing:
160
+ </span></span><span class="ln"><span class="cmd"> engine: mysql
161
+ </span></span><span class="ln"><span class="cmd"> host: billing.abc123.eu-west-1.rds.amazonaws.com
162
+ </span></span><span class="ln"><span class="cmd"> database: billing
163
+ </span></span><span class="ln"><span class="cmd"> user: qa_iam
164
+ </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
165
+ </span></span><span class="ln"><span class="cmd"> fixtures:
166
+ </span></span><span class="ln"><span class="cmd"> engine: postgres
167
+ </span></span><span class="ln"><span class="cmd"> host: localhost
168
+ </span></span><span class="ln"><span class="cmd"> port: 5432
169
+ </span></span><span class="ln"><span class="cmd"> database: test
170
+ </span></span><span class="ln"><span class="cmd"> user: qa
171
+ </span></span><span class="ln"><span class="cmd"> password_env: FIXTURES_DB_PASSWORD
172
+ </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
173
+ </span></span></code></pre></div>
174
+ <p>Save a secret once with <code>/auth ORDERS_DB_URL</code> in the shell (or set it in the environment).</p>
175
+ <p>In the shell, <code>/db</code> lists the databases, <code>/db test &lt;name&gt;</code> connects, <code>/db tables &lt;name&gt; [words]</code> shows the tables (or
176
+ those whose names, comments or columns hold the words), <code>/db refresh &lt;name&gt;</code> reads the schema again, <code>/db batches</code>
177
+ shows test data batches, and <code>/db examples &lt;name&gt;</code> the remembered queries. <code>/db add</code> sets one up with the agent: it asks
178
+ how to connect, writes the entry, and has you save the secret with <code>/auth</code>, so no password goes through the chat. The
179
+ same commands work outside the shell (<code>forgeqe db test orders</code>), and for scripts:</p>
180
+ <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 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
181
+ </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
182
+ </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)
183
+ </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
184
+ </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
185
+ </span></span></code></pre></div>
186
+ <p><strong>Drafts, files and examples.</strong> Ask for a query without running it (&quot;write the SQL for ...&quot;) and the agent validates
187
+ it with a dry run: the database resolves every table and column (and shows its plan where it can) without reading or
188
+ writing anything. Ask it to keep a query and it saves a <code>.sql</code> file in the project with the question as a comment. When
189
+ you confirm a result is right, the agent remembers the question and its SQL for that database
190
+ (<code>.forgeqe/data/&lt;name&gt;/examples.jsonl</code>) and follows it for similar questions: your names for things and your filters.</p>
191
+ <p>Other settings: <code>schema</code> (default: the user's), <code>port</code>, <code>path</code> (sqlite, duckdb), <code>timeout_seconds</code> (default 30),
192
+ <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>
193
+ (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
194
+ patterns to hide), and <code>options</code> (<code>warehouse</code> and <code>role</code> for Snowflake; <code>odbc_driver</code> for SQL Server with
195
+ <code>auth: azure</code>, which needs Microsoft's ODBC Driver 18).</p>
196
+ <p>What ForgeQE does with them:</p>
197
+ <ul>
198
+ <li><strong>Reads</strong> run in a read-only session where the database has one (PostgreSQL, MySQL, Oracle, SQLite, DuckDB), with a
199
+ statement timeout and a row cap (200 by default), and are rolled back. Use a read-only login all the same; SQL
200
+ Server and Snowflake have no read-only session, so there the login is the limit.</li>
201
+ <li><strong>Every statement is checked first.</strong> One statement only: SELECT (with CTEs, joins and set operations), SHOW,
202
+ DESCRIBE, or EXPLAIN of a SELECT. Refused: DDL, procedures, SELECT INTO, FOR UPDATE, MySQL's executable comments,
203
+ and functions that read files, sleep, or reach other sessions or servers (<code>pg_read_file</code>, <code>LOAD_FILE</code>,
204
+ <code>xp_cmdshell</code>, <code>OPENROWSET</code>, <code>UTL_HTTP</code>, ...).</li>
205
+ <li><strong>Writes</strong> run only on a database marked <code>writable: true</code>, and only after you confirm the exact statement: one
206
+ INSERT, or one UPDATE or DELETE with a WHERE clause.</li>
207
+ <li><strong>Masked values:</strong> columns named like passwords, tokens, hashes, card numbers, IBANs and tax ids show as <code>•••</code>.</li>
208
+ <li><strong>What the model sees:</strong> table and column names, types, keys and comments, and the rows of the queries it runs.
209
+ Passwords and tokens never reach it, its shell, or the tests. ForgeQE's agent cannot run database clients (<code>psql</code>,
210
+ <code>mysql</code>, <code>sqlcmd</code>, <code>sqlplus</code>, ...) in its shell.</li>
211
+ <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
212
+ the schema (its tables, columns and types) every few minutes and reads it again when a migration changed it, or
213
+ after a week; <code>/db refresh &lt;name&gt;</code> reads it at once. For a large database the agent gets the tables a question
214
+ names and the tables that join them.</li>
215
+ <li><strong><code>vector: true</code></strong> adds DB-GPT's schema index: a summary of every table, embedded by a small model that runs on this
216
+ machine, which can bring in tables a question describes without naming. Its hits add to the word matching rather
217
+ than replace it (on a 938-table ERP the words alone found the right tables more often). It installs about 400 MB
218
+ (Chroma and the ONNX runtime) and downloads an 80 MB model once; building the index of a large schema takes a few
219
+ minutes, once per schema change.</li>
220
+ </ul>
221
+ </div>
222
+ </section>
223
+ </div>
224
+ </article>
225
+ <article class="spec feat" id="cap-test-data">
226
+ <div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
227
+ <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>
228
+ <div class="facts">
229
+ <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>
230
+ <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>
231
+ <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>
232
+ <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>
233
+ </div>
234
+ <div class="detail"><span class="mono">In detail</span>
235
+ <section class="doc" id="doc-how_to_use-test-data">
236
+ <h4>Test data</h4>
237
+ <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
238
+ 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
239
+ the schema, writes a spec, shows you a preview, and then writes files or inserts the rows.</p>
240
+ <p>A spec is YAML you can keep in the project, so tests and pipelines make the same data again:</p>
241
+ <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
242
+ </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
243
+ </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
244
+ </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
245
+ </span></span><span class="ln"><span class="cmd">tables:
246
+ </span></span><span class="ln"><span class="cmd"> customers:
247
+ </span></span><span class="ln"><span class="cmd"> rows: 20
248
+ </span></span><span class="ln"><span class="cmd"> columns:
249
+ </span></span><span class="ln"><span class="cmd"> email: {faker: email, unique: true}
250
+ </span></span><span class="ln"><span class="cmd"> country: {one_of: [IN, UK, US], weights: [5, 3, 2]}
251
+ </span></span><span class="ln"><span class="cmd"> orders:
252
+ </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
253
+ </span></span><span class="ln"><span class="cmd"> columns:
254
+ </span></span><span class="ln"><span class="cmd"> status: {one_of: [NEW, PAID, SHIPPED]}
255
+ </span></span><span class="ln"><span class="cmd"> total: {range: [5, 500], decimals: 2}
256
+ </span></span><span class="ln"><span class="cmd"> placed_at: {date_between: [&quot;-90d&quot;, &quot;today&quot;]}
257
+ </span></span><span class="ln"><span class="cmd"> reference: {sequence: &quot;ORD-{n:05d}&quot;}
258
+ </span></span><span class="ln"><span class="cmd"> order_items:
259
+ </span></span><span class="ln"><span class="cmd"> per: {orders: [1, 4]}
260
+ </span></span><span class="ln"><span class="cmd"> columns:
261
+ </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
262
+ </span></span></code></pre></div>
263
+ <p>Rules: a plain value, <code>faker</code> (a <a href="https://faker.readthedocs.io/" class="ext" rel="noopener">Faker</a> method, with <code>args</code>), <code>one_of</code> (with
264
+ <code>weights</code>), <code>range</code> (with <code>decimals</code>), <code>date_between</code> (dates, <code>today</code>, or <code>-30d</code>, <code>-6m</code>, <code>+1y</code>), <code>sequence</code> (<code>{n}</code>
265
+ counts from 1), <code>bothify</code> (<code>#</code> a digit, <code>?</code> a letter), <code>ref</code> (<code>table.column</code>), <code>null_ratio</code>, and <code>unique</code>. Two rules
266
+ keep a row consistent: <code>{ref: products.price, via: product_id}</code> takes the price of the very product the row points
267
+ at, and <code>{template: &quot;{first_name}.{last_name}@shop.test&quot;}</code> builds a value from the row's other columns. Columns
268
+ without a rule are filled from the schema: their type and size, NOT NULL, unique keys, a CHECK constraint's list of
269
+ 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
270
+ (serial, identity, auto-increment) are left to it, and foreign keys point at rows the spec makes or rows already in
271
+ the database. A schema without declared foreign keys is matched by name (<code>orders.customer_id</code> to <code>customers</code>).</p>
272
+ <p>From the command line, for automation and pipelines (no model):</p>
273
+ <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
274
+ </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)
275
+ </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
276
+ </span></span><span class="ln"><span class="cmd">forgeqe data batches --db fixtures
277
+ </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
278
+ </span></span></code></pre></div>
279
+ <ul>
280
+ <li><strong>Inserts</strong> go only into a database marked <code>writable: true</code>, in one transaction: if the database refuses a row, none
281
+ are kept. In the shell, ForgeQE asks first; on the command line, <code>--yes</code> is needed.</li>
282
+ <li><strong>Batches:</strong> every insert records the keys it made in <code>.forgeqe/data/&lt;database&gt;/batches/</code>, so <code>clean</code> removes those
283
+ rows and nothing else.</li>
284
+ <li><strong>Files</strong> are written inside the project only, never to a hidden folder.</li>
285
+ </ul>
286
+ <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
287
+ before the case runs and come out after it (and after the test ForgeQE writes for it), and the case's text uses their
288
+ values:</p>
289
+ <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
290
+ </span></span><span class="ln"><span class="cmd"> title: A returning customer pays by card
291
+ </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}
292
+ </span></span><span class="ln"><span class="cmd"> steps:
293
+ </span></span><span class="ln"><span class="cmd"> - action: Log in as {{data.customers.0.email}}
294
+ </span></span><span class="ln"><span class="cmd"> - action: Open order {{data.orders.0.reference}} and pay it
295
+ </span></span><span class="ln"><span class="cmd"> expected: The order page shows Paid for {{data.customers.0.name}}
296
+ </span></span></code></pre></div>
297
+ <p><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
298
+ (<code>{{data.customers.email}}</code> is row 0). 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), or <code>data_spec</code> when the agent runs
299
+ cases. The data goes only into a database marked <code>writable</code>; these hooks do not ask first, because the team wrote them.</p>
300
+ <p><strong>In automation scripts.</strong> The tests ForgeQE runs, and the tests it writes, read the inserted rows from the JSON file
301
+ <code>FORGEQE_DATA_FILE</code> names. In a pipeline, make that file with the same spec:</p>
302
+ <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
303
+ </span></span><span class="ln"><span class="cmd">FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test
304
+ </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
305
+ </span></span></code></pre></div>
306
+ <p>Quill, ForgeQE's coding agent, writes tests that read their data from that file (its <code>test-data</code> skill), and can look
307
+ at the databases and preview test data through ForgeQE's data tools; it never changes a database itself.</p>
308
+ <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
309
+ pick, every row they point at (and the rows those point at), and the child tables you name, with personal data
310
+ replaced:</p>
311
+ <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
312
+ </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
313
+ </span></span><span class="ln"><span class="cmd">subset:
314
+ </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
315
+ </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}
316
+ </span></span><span class="ln"><span class="cmd"> children: [order_items, payments]
317
+ </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
318
+ </span></span><span class="ln"><span class="cmd"> customers.notes: paragraph
319
+ </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
320
+ </span></span></code></pre></div>
321
+ <ul>
322
+ <li><strong>Masked by name:</strong> names (in tables of people: customers, users, employees, contacts, ...), emails, phones,
323
+ addresses, post codes, cities, birth dates, national and tax ids, card numbers, IBANs, IP addresses, and passwords,
324
+ 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
326
+ masked column still match; a masked value in a unique column stays unique.</li>
327
+ <li><strong>The start condition</strong> is a filter of the start table only: one condition, no UNION, and only tables of the
328
+ source's schema. Rows are taken in key order, so the same spec takes the same rows.</li>
329
+ <li><strong>Into a database</strong>, keys the target makes are new and every reference follows them; a subset never goes back into
330
+ its source. As files, keys stay as they were.</li>
331
+ </ul>
332
+ <h5>Running a test once for each row</h5>
333
+ <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
334
+ <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
335
+ words (<code>Expected Message</code> is <code>{{row.expected_message}}</code>), and a row's expected result can be one of its columns:</p>
336
+ <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
337
+ </span></span><span class="ln"><span class="cmd"> title: Sign in as a {{row.role}}
338
+ </span></span><span class="ln"><span class="cmd"> each:
339
+ </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
340
+ </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)
341
+ </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)
342
+ </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)
343
+ </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)
344
+ </span></span><span class="ln"><span class="cmd"> steps:
345
+ </span></span><span class="ln"><span class="cmd"> - action: Sign in as {{row.email}}
346
+ </span></span><span class="ln"><span class="cmd"> expected: The home page shows {{row.expected_message}}
347
+ </span></span></code></pre></div>
348
+ <p>The rows can come from elsewhere too, with the same <code>where</code>, <code>limit</code> and <code>label</code>:</p>
349
+ <div class="tbl tbl--cols-3"><table>
350
+ <thead>
351
+ <tr><th>Source</th><th><code>each:</code></th><th>Rows</th></tr>
352
+ </thead>
353
+ <tbody>
354
+ <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>
355
+ <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>
356
+ <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>
357
+ <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>
358
+ </tbody>
359
+ </table></div>
360
+ <p>For a whole suite, the same on the command line: every case runs once per row, and a case's own <code>each:</code> wins.</p>
361
+ <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
362
+ </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
363
+ </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each-request active-users
364
+ </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
365
+ </span></span></code></pre></div>
366
+ <p>In the shell, ask in words (&quot;run the login cases for each row of test-data/users.xlsx&quot;): <code>run_test_cases</code> takes the same
367
+ source as <code>each</code>.</p>
368
+ <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
369
+ 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
370
+ word, such as an email address, is left alone, and a parameter the rows have no column for stays as written. A case's
371
+ own parameter table in Azure DevOps already gives one case per row with no <code>--each</code>.</p>
372
+ <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
373
+ </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
374
+ </span></span></code></pre></div>
375
+ <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>
376
+ <ul>
377
+ <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>
378
+ <li><strong>Another user on each row, in a recording or a desktop app.</strong> A recording's Re-run 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>
379
+ <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; 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>
380
+ <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>
381
+ <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>
382
+ <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>
383
+ <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>
384
+ <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>
385
+ <li><strong>Trying a recording with each row.</strong> On the Record page, the review's Last run 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>
386
+ </ul>
387
+ <h5>Test data on request: Miner</h5>
388
+ <p>Every agent can ask the <strong>Miner</strong> for the test data it needs before it runs: Atlas (<code>request_test_data</code>),
389
+ Quill, Link and the healer (<code>data_request_test_data</code>), and a test case (<code>data: {request: ...}</code>). The
390
+ request is in words; Miner reads the schema, then either finds <strong>existing rows</strong> with one read-only SELECT or
391
+ designs <strong>new rows</strong> as a test data spec. Its answer is the data itself and the script that gets it again:</p>
392
+ <div class="tbl tbl--cols-3"><table>
393
+ <thead>
394
+ <tr><th>Kind</th><th>The agent gets</th><th>Kept in <code>test-data/requests/&lt;name&gt;/</code></th></tr>
395
+ </thead>
396
+ <tbody>
397
+ <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>
398
+ <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>
399
+ </tbody>
400
+ </table></div>
401
+ <p><code>auto</code> (the default) lets Miner pick. Miner never writes to a database: a statement the data engine sees
402
+ as a write is refused, and new rows only go to files. Keys the database fills (serial, identity) are left out of
403
+ <code>data.sql</code>, so the script runs on a database that already has rows.</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">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
409
+ </span></span></code></pre></div>
410
+ <p>In the web app, Data, Ask asks the same way, and the Test data page logs every request: which agent asked, what for, when, and the answer (also <code>forgeqe data log</code>), with the kept requests to fetch again. Without a model the request takes your own SQL or spec (<code>sql:</code> or <code>spec:</code> on the tool). In a test case:</p>
411
+ <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
412
+ </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}
413
+ </span></span><span class="ln"><span class="cmd"> steps:
414
+ </span></span><span class="ln"><span class="cmd"> - action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
415
+ </span></span></code></pre></div>
416
+ <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
417
+ 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
418
+ batch before the case and are removed after it when the database is marked <code>writable</code>.</p>
419
+ <p><strong>Ask in words.</strong> Data, Ask (or <code>forgeqe data ask &quot;&lt;question&gt;&quot; --db NAME --as query|checks|script</code>) has Miner
420
+ turn a question into a checked read-only query and its rows (kept in <code>test-data/queries</code>), data checks (each a SELECT
421
+ that returns the rows breaking one rule; kept in <code>test-data/checks</code>, run again with <code>forgeqe data checks &lt;name&gt;</code>), or a
422
+ database test for pytest or Playwright (kept in <code>test-data/scripts</code>, never run by ForgeQE; it reads its connection
423
+ string from an environment variable, and a script holding a password or a connection string is refused).</p>
424
+ <p><strong>Databases from Docker images.</strong> The databases Miner reads can run in containers that <code>forgeqe services up</code>
425
+ 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
426
+ Database Agent in test-agent-nexus (<code>docker-compose.yml</code>, profile <code>db-agent-demos</code>). The container's password and the
427
+ connection's <code>password_env</code> are different variables: a database's secrets are ForgeQE's own and never go to a container.</p>
428
+ <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:
429
+ </span></span><span class="ln"><span class="cmd"> services:
430
+ </span></span><span class="ln"><span class="cmd"> imdb:
431
+ </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
432
+ </span></span><span class="ln"><span class="cmd"> ports: [&quot;5437:5432&quot;]
433
+ </span></span><span class="ln"><span class="cmd"> env: { POSTGRES_DB: imdb, POSTGRES_USER: nexus }
434
+ </span></span><span class="ln"><span class="cmd"> secrets: [POSTGRES_PASSWORD]
435
+ </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
436
+ </span></span><span class="ln"><span class="cmd"> ready: { tcp: 5432 }
437
+ </span></span><span class="ln"><span class="cmd">databases:
438
+ </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 }
439
+ </span></span></code></pre></div>
440
+ <p><code>tests/data-request.live.test.ts</code> runs Miner against that database in Docker.</p>
441
+ </div>
442
+ </section>
443
+ </div>
444
+ </article>
445
+ <article class="spec feat" id="cap-data-flows">
446
+ <div class="hd"><span class="mono">Data</span><h3>Data flows between systems</h3></div>
447
+ <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>
448
+ <div class="facts">
449
+ <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>
450
+ <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>
451
+ <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>
452
+ <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>
453
+ </div>
454
+ <div class="detail"><span class="mono">In detail</span>
455
+ <section class="doc" id="doc-how_to_use-data-flows">
456
+ <h4>Data flows</h4>
457
+ <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
458
+ contact, billing gets an account), ForgeQE checks each hop: ask &quot;check that customers reach the CRM correctly&quot;, &quot;trace
459
+ customer 42 from digital to billing&quot;, or &quot;what does a change to digital.customers.email affect downstream?&quot;.</p>
460
+ <p>The hops are in <code>flows.yaml</code>, beside forgeqe.yaml. ForgeQE writes it from your mapping documents, wherever they are (a
461
+ spreadsheet in the project, a Confluence page, a Jira or Azure DevOps item, a text file), or suggests flows from the
462
+ schemas and a sample of keys when there are none; it shows you each flow and saves the ones you confirm. You can write
463
+ it by hand too:</p>
464
+ <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:
465
+ </span></span><span class="ln"><span class="cmd"> signup_to_crm:
466
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id, changed: updated_at}
467
+ </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
468
+ </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)
469
+ </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
470
+ </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
471
+ </span></span><span class="ln"><span class="cmd"> columns:
472
+ </span></span><span class="ln"><span class="cmd"> email: {to: email_address, rule: lower}
473
+ </span></span><span class="ln"><span class="cmd"> full_name: {to: full_name, template: &quot;{first_name} {last_name}&quot;}
474
+ </span></span><span class="ln"><span class="cmd"> country: {to: country_code, map: {India: IN, United Kingdom: GB}}
475
+ </span></span><span class="ln"><span class="cmd"> orders_to_crm:
476
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: orders, key: id}
477
+ </span></span><span class="ln"><span class="cmd"> to: {db: crm, table: crm_orders, key: source_order_id}
478
+ </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
479
+ </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
480
+ </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)
481
+ </span></span><span class="ln"><span class="cmd"> columns:
482
+ </span></span><span class="ln"><span class="cmd"> total: {to: amount, rule: &quot;round(2)&quot;}
483
+ </span></span><span class="ln"><span class="cmd"> status: {to: status_code, map: {PAID: P, NEW: N}}
484
+ </span></span></code></pre></div>
485
+ <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>,
486
+ <code>string</code>, <code>map</code>, <code>template</code> (from the source row's columns), and <code>default</code> (for a null).</p>
487
+ <p><strong>Kafka and APIs.</strong> A hop's side can also be a Kafka topic or an API:</p>
488
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">databases:
489
+ </span></span><span class="ln"><span class="cmd"> events:
490
+ </span></span><span class="ln"><span class="cmd"> engine: kafka
491
+ </span></span><span class="ln"><span class="cmd"> host: broker1:9092,broker2:9092
492
+ </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
493
+ </span></span><span class="ln"><span class="cmd"> password_env: KAFKA_PASSWORD
494
+ </span></span><span class="ln"><span class="cmd"> options: {security_protocol: SASL_SSL, sasl_mechanism: SCRAM-SHA-512}
495
+ </span></span></code></pre></div>
496
+ <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:
497
+ </span></span><span class="ln"><span class="cmd"> signup_events:
498
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id, changed: updated_at}
499
+ </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
500
+ </span></span><span class="ln"><span class="cmd"> mode: realtime
501
+ </span></span><span class="ln"><span class="cmd"> sla: 5m
502
+ </span></span><span class="ln"><span class="cmd"> columns:
503
+ </span></span><span class="ln"><span class="cmd"> email: {to: email, rule: lower}
504
+ </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
505
+ </span></span><span class="ln"><span class="cmd"> contacts_api:
506
+ </span></span><span class="ln"><span class="cmd"> from: {db: crm, table: contacts, key: contact_id}
507
+ </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)
508
+ </span></span><span class="ln"><span class="cmd"> columns:
509
+ </span></span><span class="ln"><span class="cmd"> email_address: email
510
+ </span></span><span class="ln"><span class="cmd"> web_signups:
511
+ </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}
512
+ </span></span><span class="ln"><span class="cmd"> to: {db: crm, table: contacts, key: contact_id}
513
+ </span></span><span class="ln"><span class="cmd"> columns:
514
+ </span></span><span class="ln"><span class="cmd"> email: email_address
515
+ </span></span><span class="ln"><span class="cmd"> contacts_graphql:
516
+ </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id}
517
+ </span></span><span class="ln"><span class="cmd"> to:
518
+ </span></span><span class="ln"><span class="cmd"> api: crm_api
519
+ </span></span><span class="ln"><span class="cmd"> path: /graphql
520
+ </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
521
+ </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;}}
522
+ </span></span><span class="ln"><span class="cmd"> items: data.contact
523
+ </span></span><span class="ln"><span class="cmd"> key: id
524
+ </span></span><span class="ln"><span class="cmd"> columns:
525
+ </span></span><span class="ln"><span class="cmd"> email: email
526
+ </span></span></code></pre></div>
527
+ <ul>
528
+ <li><strong>Topics</strong> are read without a consumer group, so no offset is committed and no other consumer is affected; a read
529
+ 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
530
+ record changed) or a target. <code>/db test events</code> checks the brokers, and <code>/db tables events</code> lists the topics with the
531
+ fields of their latest messages.</li>
532
+ <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
533
+ forgeqe.yaml (<code>Authorization: Bearer ${CRM_API_TOKEN}</code>). As a <strong>target</strong>, an API answers for one key: <code>{key}</code> goes in
534
+ its path (<code>/contacts/{key}</code>) or its body, one call a key; a 404 counts as missing; at most 500 keys a check, so
535
+ narrow a large source with <code>since:</code>. As a <strong>source</strong>, it is a list endpoint (no <code>{key}</code>), read page by page through
536
+ 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
537
+ record can be followed (<code>flows trace</code>, <code>trace:</code>) from an API list too.</li>
538
+ <li><code>items</code> says where the records are in a response (<code>data.items</code>); without it, ForgeQE takes the response itself, or
539
+ its first list among <code>items</code>, <code>data</code>, <code>results</code>, <code>value</code>, <code>records</code> and <code>content</code>.</li>
540
+ <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
541
+ are refused. Redirects are not followed, and a <code>next</code> link that leaves the API's host is refused, so the headers
542
+ never reach another server.</li>
543
+ </ul>
544
+ <p>What a check reports for each flow:</p>
545
+ <ul>
546
+ <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
547
+ older than the SLA, and <strong>still in flight</strong> before that (not a failure).</li>
548
+ <li><strong>Wrong:</strong> rows where a mapped column does not hold the expected value, with the key, the source value, the value
549
+ expected after the rule, and the value found. Numbers compare as numbers (12.5 and 12.50), date-times to the second,
550
+ and trailing spaces of fixed-width text do not count.</li>
551
+ <li><strong>Duplicated:</strong> target keys that appear more than once; with <code>extra: true</code>, target rows with no source row.</li>
552
+ <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
553
+ so when it had to check the last run's rows.</li>
554
+ </ul>
555
+ <p><strong>Following what a test case created.</strong> A case in a case file can follow the record its steps made through the
556
+ flows; the case passes only when the record arrived, right, at every hop:</p>
557
+ <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
558
+ </span></span><span class="ln"><span class="cmd"> title: A new customer reaches the CRM and billing
559
+ </span></span><span class="ln"><span class="cmd"> steps:
560
+ </span></span><span class="ln"><span class="cmd"> - action: Sign up with the email qa+{{unique}}@shop.test
561
+ </span></span><span class="ln"><span class="cmd"> expected: The welcome page shows
562
+ </span></span><span class="ln"><span class="cmd"> trace:
563
+ </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]
564
+ </span></span><span class="ln"><span class="cmd"> where: {email: &quot;qa+{{unique}}@shop.test&quot;}
565
+ </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
566
+ </span></span></code></pre></div>
567
+ <p><code>{{unique}}</code> is a token made for each run of the case, so what it creates can be found again; data placeholders
568
+ (<code>{{data.customers.0.email}}</code>) work in <code>where</code> too. A record that does not arrive, arrives twice, or arrives with a
569
+ wrong value fails the case as a functional defect, with the hop and the values in its summary, the report, JUnit, and
570
+ the result posted to Azure DevOps or Jira.</p>
571
+ <p>From the command line, for pipelines (no model):</p>
572
+ <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
573
+ </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
574
+ </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
575
+ </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
576
+ </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
577
+ </span></span></code></pre></div>
578
+ <p>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
579
+ map of your systems, left to right in the order data reaches them, with each hop coloured by health; a hop opens what
580
+ is missing, late, wrong or duplicated, key by key. A record you follow (<code>flows trace</code>) is kept the same way, hop by
581
+ hop. 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
582
+ 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>
583
+ <p>Everything is a read in a read-only session; keys go to each database as bound values. Masked columns (passwords,
584
+ tokens and the like) show as <code>•••</code> in results. A check compares up to 200,000 source rows a flow, by key.</p>
585
+ </div>
586
+ </section>
587
+ </div>
588
+ </article>
589
+
590
+ <nav class="pager" aria-label="Previous and next">
591
+ <a class="prev" href="../area-operations/index.html"><small>Previous</small><span>Operations and monitoring</span></a>
592
+ <a class="next" href="../area-pull-requests/index.html"><small>Next</small><span>Pull requests</span></a>
593
+ </nav>
594
+ </main>
595
+ <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="#doc-how_to_use-databases">Databases</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#doc-how_to_use-test-data">Test data</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li><li><a href="#doc-how_to_use-data-flows">Data flows</a></li></ul></aside>
596
+ </div>
597
+ <footer class="foot">
598
+ <div class="container foot__row">
599
+ <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>
600
+ <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>
601
+ </div>
602
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
603
+ </footer>
604
+ </body>
605
+ </html>