@capagents/forgeqe 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/HOW_TO_USE.md +5003 -2077
  2. package/README.md +155 -449
  3. package/dist/docs-site/docs/app-theme.css +30 -9
  4. package/dist/docs-site/docs/architecture/index.html +45 -515
  5. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  6. package/dist/docs-site/docs/area-api/index.html +257 -116
  7. package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
  8. package/dist/docs-site/docs/area-browser/index.html +167 -125
  9. package/dist/docs-site/docs/area-data/index.html +178 -188
  10. package/dist/docs-site/docs/area-desktop/index.html +329 -282
  11. package/dist/docs-site/docs/area-mobile/index.html +138 -86
  12. package/dist/docs-site/docs/area-operations/index.html +567 -393
  13. package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
  14. package/dist/docs-site/docs/area-quality/index.html +111 -49
  15. package/dist/docs-site/docs/area-release/index.html +180 -65
  16. package/dist/docs-site/docs/area-setup/index.html +742 -339
  17. package/dist/docs-site/docs/area-systems/index.html +32 -48
  18. package/dist/docs-site/docs/area-test-cases/index.html +387 -154
  19. package/dist/docs-site/docs/containers/index.html +87 -101
  20. package/dist/docs-site/docs/cost-architecture/index.html +4 -3
  21. package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
  22. package/dist/docs-site/docs/desktop/index.html +277 -297
  23. package/dist/docs-site/docs/desktop-ci/index.html +15 -5
  24. package/dist/docs-site/docs/docs-tabs.js +56 -0
  25. package/dist/docs-site/docs/evidence/index.html +50 -49
  26. package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
  27. package/dist/docs-site/docs/get-started/index.html +464 -168
  28. package/dist/docs-site/docs/graphify/index.html +8 -7
  29. package/dist/docs-site/docs/guardrails/index.html +20 -4
  30. package/dist/docs-site/docs/index.html +4 -3
  31. package/dist/docs-site/docs/mobile/index.html +96 -76
  32. package/dist/docs-site/docs/model-routing/index.html +44 -18
  33. package/dist/docs-site/docs/overview/index.html +23 -7
  34. package/dist/docs-site/docs/product-graph/index.html +13 -12
  35. package/dist/docs-site/docs/product-knowledge/index.html +16 -5
  36. package/dist/docs-site/docs/product-views/index.html +7 -6
  37. package/dist/docs-site/docs/reference/index.html +95 -65
  38. package/dist/docs-site/docs/search.js +1 -1
  39. package/dist/docs-site/docs/using/index.html +444 -126
  40. package/dist/docs-site/docs/web-app/index.html +54 -51
  41. package/dist/forgeqe.js +1822 -1822
  42. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  43. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  44. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  45. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  46. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  47. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  48. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  49. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  50. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  51. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  52. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  53. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  54. package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
  55. package/dist/web/assets/Features-haQchkhA.js +1 -0
  56. package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
  57. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  58. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  59. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  60. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  61. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  62. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  63. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  64. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  65. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  66. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  67. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  68. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  69. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  70. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  71. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  72. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  73. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  74. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  75. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  76. package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
  77. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  78. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  79. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  80. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  81. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  82. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  83. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  84. package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
  85. package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
  86. package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
  87. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  88. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  89. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  90. package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
  91. package/dist/web/assets/index-ClFOh63x.css +2 -0
  92. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  93. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  94. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  95. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  96. package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
  97. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  98. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  99. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  100. package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
  101. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  102. package/dist/web/index.html +6 -7
  103. package/docs/ARCHITECTURE.md +50 -563
  104. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  105. package/docs/CONTAINERS.md +87 -87
  106. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  107. package/docs/DESKTOP-CI.md +18 -3
  108. package/docs/DESKTOP.md +298 -297
  109. package/docs/MOBILE.md +103 -71
  110. package/docs/MODEL_ROUTING.md +48 -15
  111. package/docs/WEB_APP.md +49 -44
  112. package/docs/feature-test-prompts.md +29 -16
  113. package/docs/user-guide.html +5263 -2453
  114. package/guardrails/README.md +22 -2
  115. package/knowledge/README.md +15 -2
  116. package/package.json +1 -1
  117. package/prompts/brain.md +1 -0
  118. package/py/forgeqe_engine/recordsession.py +100 -24
  119. package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
  120. package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
  121. package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
  122. package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
  123. package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
  124. package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
  125. package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
  126. package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
  127. package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
  128. package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
  129. package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
  130. package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
  131. package/dist/web/assets/Features-CQzNo_WP.js +0 -1
  132. package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
  133. package/dist/web/assets/Impact-CfccsL_k.js +0 -3
  134. package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
  135. package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
  136. package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
  137. package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
  138. package/dist/web/assets/Product-nYV_scOV.js +0 -7
  139. package/dist/web/assets/Production-CGSbEWVa.js +0 -1
  140. package/dist/web/assets/Quality-BIypojZm.js +0 -1
  141. package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
  142. package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
  143. package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
  144. package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
  145. package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
  146. package/dist/web/assets/Response-mhBThq2b.js +0 -9
  147. package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
  148. package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
  149. package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
  150. package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
  151. package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
  152. package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
  153. package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
  154. package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
  155. package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
  156. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
  157. package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
  158. package/dist/web/assets/filters-CnAMr286.js +0 -1
  159. package/dist/web/assets/fold-D_O_VZui.js +0 -1
  160. package/dist/web/assets/head-CRo48rPt.js +0 -1
  161. package/dist/web/assets/index-B3JsM7tv.js +0 -64
  162. package/dist/web/assets/index-CafApcbZ.css +0 -2
  163. package/dist/web/assets/input-CtzK50ZF.js +0 -1
  164. package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
  165. package/dist/web/assets/logos-D4oVWzqa.js +0 -1
  166. package/dist/web/assets/palette-DAaGSao7.js +0 -1
  167. package/dist/web/assets/parts-D357Wolo.js +0 -1
  168. package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
  169. package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
  170. package/dist/web/assets/route-BloYJWgw.js +0 -1
@@ -11,6 +11,7 @@
11
11
  <link rel="stylesheet" href="../docs.css">
12
12
  <script src="../search.js" defer></script>
13
13
  <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
14
15
  <link rel="stylesheet" href="../../app-look.css">
15
16
  <link rel="stylesheet" href="../app-theme.css">
16
17
  </head>
@@ -112,40 +113,37 @@
112
113
  <div class="container docs-layout">
113
114
  <nav class="docs-side" aria-label="Docs">
114
115
  <a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
- <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../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
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="index.html" aria-current="page"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
117
  </nav>
117
118
  <main id="main" class="docs-main guide chapter-page">
118
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>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
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="index.html" aria-current="page"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-databases">Ask a database in plain language</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li></ul></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-knowledge-base"/></svg>Test data and databases</h1>
121
122
  <p class="guide-lead">Databases: their schema, and SQL from plain language, checked before it runs</p>
122
123
  <article class="spec feat" id="cap-databases">
123
124
  <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
+ <p class="ds">Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them.</p>
125
126
  <div class="facts">
126
127
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Which customers in India have paid orders? Ask the orders database</li><li>Show me the tables in the shop database</li><li>Write the SQL for revenue per country last month and run it</li><li>Check the connection to the reporting database</li></ul></div>
127
128
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in</span></li></ul></div>
128
129
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>One statement at a time: SELECT (with CTEs and set operations), SHOW, DESCRIBE and EXPLAIN SELECT anywhere; INSERT, and UPDATE or DELETE with a WHERE clause, only on databases marked writable and after you confirm</li><li>Never DDL (CREATE, ALTER, DROP, TRUNCATE), procedures, or functions that read files, sleep or reach other servers</li><li>MongoDB is queried with find, aggregate, count and distinct (JSON operations); its test data is not made yet; other non-SQL stores are not supported</li></ul></div>
129
130
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>databases</code> <code>database_schema</code> <code>run_sql</code></p></div>
130
131
  </div>
131
- <div class="detail"><span class="mono">In detail</span>
132
- <section class="doc" id="doc-how_to_use-databases">
132
+
133
+ </article>
134
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-databases">
133
135
  <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>
136
+ <div class="prose"><p>ForgeQE's agent can read your databases and answer questions from them in plain language: &quot;which customers in India have paid orders?&quot;, &quot;show me the tables in the shop database&quot;, &quot;write the SQL for revenue per country and run it&quot;. It reads the schema first, writes SQL in the database's own dialect, runs it, and shows you the rows and the SQL.</p>
137
+ <p><strong>Supported:</strong> PostgreSQL, MySQL, MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB. The first use sets up the data engine (in <code>~/.forgeqe/data</code>) and that database's driver.</p>
138
+ <p><strong>MongoDB</strong> (<code>engine: mongodb</code>, or <code>url_env</code> with a <code>mongodb://</code> or <code>mongodb+srv://</code> string):</p>
139
+ <ul>
140
+ <li>The agent lists the collections with the fields of a sample of documents, and queries with find, aggregate, count and distinct, written as JSON.</li>
141
+ <li>Operators that run code on the server or write elsewhere (<code>$where</code>, <code>$function</code>, <code>$accumulator</code>, <code>$out</code>, <code>$merge</code>) and <code>system.*</code> collections are refused.</li>
142
+ <li>Inserts, updates and deletes need <code>writable: true</code> and your confirmation, and an update or delete needs a filter.</li>
143
+ <li>MongoDB has no read-only session, so connect as a read-only user.</li>
144
+ <li>Test data is made for the SQL databases only.</li>
145
+ </ul>
146
+ <p><strong>Adding a database.</strong> Add the databases under <code>databases:</code> in forgeqe.yaml, or under an environment in env.yaml (the active environment's entries win by name). No secret goes in either file: name the environment variables that hold them.</p>
149
147
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">databases:
150
148
  </span></span><span class="ln ln--pair"><span class="cmd"> orders:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a whole connection string in a variable: URI, JDBC, or ADO.NET as Azure shows it
151
149
  </span></span><span class="ln"><span class="cmd"> url_env: ORDERS_DB_URL
@@ -171,57 +169,57 @@ entries win by name). No secret goes in either file: name the environment variab
171
169
  </span></span><span class="ln"><span class="cmd"> password_env: FIXTURES_DB_PASSWORD
172
170
  </span></span><span class="ln ln--pair"><span class="cmd"> writable: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> allows confirmed INSERT, and UPDATE or DELETE with a WHERE clause
173
171
  </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
172
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
173
+ <ol>
174
+ <li>Open <strong>Settings › Databases</strong> and add the database with its fields.</li>
175
+ <li>Save its secret in <strong>Settings › Secrets</strong>, under the variable's name.</li>
176
+ </ol>
177
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
178
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe db</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the databases
179
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db test orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> connect
180
+ </span></span></code></pre></div>
181
+ <p>In the shell, <code>/db add</code> sets one up with the agent: it asks how to connect, writes the entry, and has you save the secret with <code>/auth ORDERS_DB_URL</code>, so no password goes through the chat. You can also set the secret in the environment.</p>
182
+ </div></div><p><strong>Looking at a database and querying it.</strong></p>
183
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
184
+ <ol>
185
+ <li>Open <strong>Databases</strong> (Data › Databases).</li>
186
+ <li>Pick a database. <strong>Test</strong> checks the connection.</li>
187
+ <li>Under <strong>Tables</strong>, type words to find the tables whose names, comments or columns hold them.</li>
188
+ <li>Under <strong>Query</strong>, write one read in the database's own dialect, and press <strong>Run</strong>, or <strong>Check</strong> to have the database check it without running it.</li>
189
+ <li>To write the SQL from a question, press <strong>Ask</strong> (see <a href="../index.html">Test data on request: Miner</a>).</li>
190
+ </ol>
191
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
192
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe db tables orders [words]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the tables, or those whose names, comments or columns hold the words
193
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db refresh orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read the schema again
194
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db batches</span><span class="pad"> </span><span class="cm"><span class="h">#</span> test data batches
195
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db examples orders</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the remembered queries
196
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT status, COUNT(*) FROM orders GROUP BY status&quot; --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one checked read
181
197
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT ...&quot; --dry-run</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the database checks every name; no rows are read
182
198
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe db query orders &quot;SELECT * FROM orders&quot; --max-rows 1000</span><span class="pad"> </span><span class="cm"><span class="h">#</span> rows to read (default 200, at most 5000)
183
199
  </span></span><span class="ln"><span class="cmd">forgeqe db ask &quot;paid revenue per country last month&quot; --db orders --save queries/revenue.sql
184
200
  </span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> the agent writes and validates it; stdout is only the SQL
185
201
  </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>
202
+ <p>In the shell, the same commands start with <code>/db</code> (<code>/db tables orders</code>).</p>
203
+ </div></div><p><strong>Drafts, files and examples.</strong></p>
204
+ <ul>
205
+ <li><strong>Drafts.</strong> Ask for a query without running it (&quot;write the SQL for ...&quot;) and the agent validates it with a dry run: the database resolves every table and column (and shows its plan where it can) without reading or writing anything.</li>
206
+ <li><strong>Files.</strong> Ask it to keep a query and it saves a <code>.sql</code> file in the project, with the question as a comment.</li>
207
+ <li><strong>Examples.</strong> When you confirm a result is right, the agent remembers the question and its SQL for that database (<code>.forgeqe/data/&lt;name&gt;/examples.jsonl</code>) and follows it for similar questions: your names for things and your filters.</li>
208
+ </ul>
209
+ <p><strong>Other settings:</strong> <code>schema</code> (default: the user's), <code>port</code>, <code>path</code> (sqlite, duckdb), <code>timeout_seconds</code> (default 30), <code>ssl</code> (<code>verify</code>, the default for Azure, AWS and GCP hosts; <code>require</code>; <code>disable</code>), <code>ssl_ca</code> (a CA file), <code>region</code> (aws_iam), <code>sample_rows</code> (0 to 5 sample rows per table shown to the model; default 0), <code>mask</code> (more column name patterns to hide), and <code>options</code> (<code>warehouse</code> and <code>role</code> for Snowflake; <code>odbc_driver</code> for SQL Server with <code>auth: azure</code>, which needs Microsoft's ODBC Driver 18).</p>
210
+ <p><strong>What ForgeQE does with them.</strong></p>
197
211
  <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>
212
+ <li><strong>Reads</strong> run in a read-only session where the database has one (PostgreSQL, MySQL, Oracle, SQLite, DuckDB), with a statement timeout and a row cap (200 by default), and are rolled back. Use a read-only login all the same: SQL Server and Snowflake have no read-only session, so there the login is the limit.</li>
213
+ <li><strong>Every statement is checked first.</strong> One statement only: SELECT (with CTEs, joins and set operations), SHOW, DESCRIBE, or EXPLAIN of a SELECT. Refused: DDL, procedures, SELECT INTO, FOR UPDATE, MySQL's executable comments, and functions that read files, sleep, or reach other sessions or servers (<code>pg_read_file</code>, <code>LOAD_FILE</code>, <code>xp_cmdshell</code>, <code>OPENROWSET</code>, <code>UTL_HTTP</code>, ...).</li>
214
+ <li><strong>Writes</strong> run only on a database marked <code>writable: true</code>, and only after you confirm the exact statement: one INSERT, or one UPDATE or DELETE with a WHERE clause.</li>
207
215
  <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>
216
+ <li><strong>What the model sees:</strong> table and column names, types, keys and comments, and the rows of the queries it runs. Passwords and tokens never reach it, its shell, or the tests. ForgeQE's agent cannot run database clients (<code>psql</code>, <code>mysql</code>, <code>sqlcmd</code>, <code>sqlplus</code>, ...) in its shell.</li>
217
+ <li><strong>The schema</strong> is read once and kept in <code>.forgeqe/data/&lt;name&gt;/catalog.json</code>. ForgeQE checks a cheap fingerprint of the schema (its tables, columns and types) every few minutes, and reads it again when a migration changed it, or after a week; <code>forgeqe db refresh &lt;name&gt;</code> reads it at once. For a large database the agent gets the tables a question names and the tables that join them.</li>
218
+ <li><strong><code>vector: true</code></strong> adds a schema index: a summary of every table, embedded by a small model that runs on this machine, which can bring in tables a question describes without naming. Its hits add to the word matching rather than replace it (on a 938-table ERP the words alone found the right tables more often). It installs about 400 MB and downloads an 80 MB model once. Building the index of a large schema takes a few minutes, once per schema change.</li>
220
219
  </ul>
221
220
  </div>
222
221
  </section>
223
222
  </div>
224
- </article>
225
223
  <article class="spec feat" id="cap-test-data">
226
224
  <div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
227
225
  <p class="ds">Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask Miner for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch.</p>
@@ -231,13 +229,12 @@ minutes, once per schema change.</li>
231
229
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Inserts only into databases marked writable, after you confirm; removes only rows of a batch it inserted</li><li>A subset reads its source in read-only sessions; its start condition is a filter of one table, and personal columns are found by name (mask: adds others)</li><li>Simple CHECK constraints (a list of values, bounds) are read; other rules the database enforces may refuse rows, and then nothing is kept</li></ul></div>
232
230
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>generate_test_data</code> <code>test_data_batches</code> <code>request_test_data</code></p></div>
233
231
  </div>
234
- <div class="detail"><span class="mono">In detail</span>
235
- <section class="doc" id="doc-how_to_use-test-data">
232
+
233
+ </article>
234
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-test-data">
236
235
  <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>
236
+ <div class="prose"><p>ForgeQE makes test data that fits your schema. Ask &quot;generate 20 customers with 1 to 3 orders each in the shop database&quot;, &quot;make the orders tables as CSV for our automation&quot;, or &quot;insert 50 test users into fixtures&quot;. The agent reads the schema, writes a spec, shows you a preview, and then writes files or inserts the rows.</p>
237
+ <p><strong>A spec</strong> is YAML you can keep in the project, so tests and pipelines make the same data again:</p>
241
238
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">database: fixtures</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: else --db, or the only database
242
239
  </span></span><span class="ln ln--pair"><span class="cmd">seed: 42</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same seed makes the same rows
243
240
  </span></span><span class="ln ln--pair"><span class="cmd">locale: en_IN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Faker's locale for names, addresses, phone numbers
@@ -260,32 +257,39 @@ the schema, writes a spec, shows you a preview, and then writes files or inserts
260
257
  </span></span><span class="ln"><span class="cmd"> columns:
261
258
  </span></span><span class="ln ln--pair"><span class="cmd"> product_id: {ref: products.id}</span><span class="pad"> </span><span class="cm"><span class="h">#</span> rows already in the database
262
259
  </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>
260
+ <p><strong>Rules for a column:</strong></p>
261
+ <ul>
262
+ <li>a plain value;</li>
263
+ <li><code>faker</code>: a <a href="https://faker.readthedocs.io/" class="ext" rel="noopener">Faker</a> method, with <code>args</code>;</li>
264
+ <li><code>one_of</code> (with <code>weights</code>), <code>range</code> (with <code>decimals</code>);</li>
265
+ <li><code>date_between</code>: dates, <code>today</code>, or <code>-30d</code>, <code>-6m</code>, <code>+1y</code>;</li>
266
+ <li><code>sequence</code> (<code>{n}</code> counts from 1), <code>bothify</code> (<code>#</code> a digit, <code>?</code> a letter);</li>
267
+ <li><code>ref</code> (<code>table.column</code>), <code>null_ratio</code>, and <code>unique</code>.</li>
268
+ </ul>
269
+ <p>Two rules keep a row consistent: <code>{ref: products.price, via: product_id}</code> takes the price of the very product the row points at, and <code>{template: &quot;{first_name}.{last_name}@shop.test&quot;}</code> builds a value from the row's other columns.</p>
270
+ <p><strong>Columns without a rule</strong> are filled from the schema: their type and size, NOT NULL, unique keys, a CHECK constraint's list of values or bounds, enum types, and their name (<code>email</code>, <code>phone</code>, <code>city</code>, <code>created_at</code>, ...). Keys the database makes (serial, identity, auto-increment) are left to it. Foreign keys point at rows the spec makes or rows already in the database; a schema without declared foreign keys is matched by name (<code>orders.customer_id</code> to <code>customers</code>).</p>
271
+ <p><strong>Making data from a spec.</strong> No model is used.</p>
272
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
273
+ <ol>
274
+ <li>Open <strong>Data specs</strong> (Data › Test data).</li>
275
+ <li>Under <strong>Make test data from a spec</strong>, pick the <strong>Spec</strong>, the <strong>Database</strong> (or <strong>The spec's own</strong>) and a <strong>Seed</strong>.</li>
276
+ <li>Press <strong>Preview</strong> to see the rows, <strong>Export</strong> to write them as files in a <strong>File format</strong>, or <strong>Insert</strong> (then <strong>Insert</strong> again to confirm) to put them in a writable database as one batch.</li>
277
+ <li>Under <strong>Inserted batches</strong>, pick a database and press <strong>Show</strong>; <strong>Remove</strong> takes a batch's rows out again.</li>
278
+ </ol>
279
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
273
280
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe data gen test-data/shop.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what it makes
274
281
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data gen test-data/shop.yaml --format csv --out test-data/shop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> csv, json or sql (INSERTs in the database's dialect)
275
282
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data gen test-data/shop.yaml --insert --yes --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> into a writable database; prints the batch id
276
283
  </span></span><span class="ln"><span class="cmd">forgeqe data batches --db fixtures
277
284
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data clean 20261019-173810-9f5b5f --db fixtures --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> removes exactly that batch, children first
278
285
  </span></span></code></pre></div>
286
+ </div></div><p><strong>What is written where.</strong></p>
279
287
  <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>
288
+ <li><strong>Inserts</strong> go only into a database marked <code>writable: true</code>, in one transaction: if the database refuses a row, none are kept. In a chat, ForgeQE asks first; on the command line, <code>--yes</code> is needed.</li>
289
+ <li><strong>Batches:</strong> every insert records the keys it made in <code>.forgeqe/data/&lt;database&gt;/batches/</code>, so removing a batch removes those rows and nothing else.</li>
284
290
  <li><strong>Files</strong> are written inside the project only, never to a hidden folder.</li>
285
291
  </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>
292
+ <p><strong>Test data in test cases and suites.</strong> A test case in a YAML or JSON case file can bring its own data. The rows go in before the case runs and come out after it (and after the test ForgeQE writes for it), and the case's text uses their values:</p>
289
293
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- id: CHECKOUT-7
290
294
  </span></span><span class="ln"><span class="cmd"> title: A returning customer pays by card
291
295
  </span></span><span class="ln ln--pair"><span class="cmd"> data: test-data/checkout.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or {spec: ..., database: fixtures, keep: true}
@@ -294,20 +298,18 @@ values:</p>
294
298
  </span></span><span class="ln"><span class="cmd"> - action: Open order {{data.orders.0.reference}} and pay it
295
299
  </span></span><span class="ln"><span class="cmd"> expected: The order page shows Paid for {{data.customers.0.name}}
296
300
  </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>
301
+ <ul>
302
+ <li><code>{{data.&lt;table&gt;.&lt;row&gt;.&lt;column&gt;}}</code> takes a value of the rows as inserted, keys the database made included (<code>{{data.customers.email}}</code> is row 0).</li>
303
+ <li>A whole suite can have data too: <code>forgeqe suite cases.yaml --data test-data/shop.yaml</code> (<code>--data-db NAME</code>, <code>--keep-data</code> to leave it for a look). When the agent runs cases, give it the spec.</li>
304
+ <li>The data goes only into a database marked <code>writable</code>. These hooks do not ask first, because the team wrote them.</li>
305
+ </ul>
306
+ <p><strong>In automation scripts.</strong> The tests ForgeQE runs, and the tests it writes, read the inserted rows from the JSON file <code>FORGEQE_DATA_FILE</code> names. In a pipeline, make that file with the same spec:</p>
302
307
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe data gen test-data/checkout.yaml --insert --yes --json --export test-data/.run/checkout.json &gt; batch.json
303
308
  </span></span><span class="ln"><span class="cmd">FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test
304
309
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data clean &quot;$(jq -r .batch batch.json)&quot; --db fixtures --yes</span><span class="pad"> </span><span class="cm"><span class="h">#</span> in an always() step
305
310
  </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
+ <p>Quill, ForgeQE's coding agent, writes tests that read their data from that file (its <code>test-data</code> skill). It can look at the databases and preview test data through ForgeQE's data tools, and it never changes a database itself.</p>
312
+ <p><strong>A masked subset of real data.</strong> Instead of <code>tables:</code>, a spec can take real rows from another database: the rows you pick, every row they point at (and the rows those point at), and the child tables you name, with personal data replaced:</p>
311
313
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">database: fixtures</span><span class="pad"> </span><span class="cm"><span class="h">#</span> where the rows go (or --db); leave it out for files
312
314
  </span></span><span class="ln ln--pair"><span class="cmd">seed: 7</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same seed masks the same way
313
315
  </span></span><span class="ln"><span class="cmd">subset:
@@ -319,20 +321,13 @@ replaced:</p>
319
321
  </span></span><span class="ln ln--pair"><span class="cmd">keep: [customers.country]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> columns whose names look personal but are not
320
322
  </span></span></code></pre></div>
321
323
  <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>
324
+ <li><strong>Masked by name:</strong> names (in tables of people: customers, users, employees, contacts, ...), emails, phones, addresses, post codes, cities, birth dates, national and tax ids, card numbers, IBANs, IP addresses, and passwords, hashes and tokens. Keys are never masked.</li>
325
+ <li><strong>The same everywhere:</strong> a value always becomes the same fake value, in every table and every run, so joins on a masked column still match. A masked value in a unique column stays unique.</li>
326
+ <li><strong>The start condition</strong> is a filter of the start table only: one condition, no UNION, and only tables of the source's schema. Rows are taken in key order, so the same spec takes the same rows.</li>
327
+ <li><strong>Into a database,</strong> keys the target makes are new and every reference follows them; a subset never goes back into its source. As files, keys stay as they were.</li>
331
328
  </ul>
332
329
  <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>
330
+ <p>A test case can run once for each row of its test data: the same steps, a row's values each time. Give the rows with <code>each:</code> and write <code>{{row.&lt;column&gt;}}</code> where a value goes. A column's name is written in lower case with <code>_</code> between its words (<code>Expected Message</code> is <code>{{row.expected_message}}</code>), and a row's expected result can be one of its columns:</p>
336
331
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- id: LOGIN-3
337
332
  </span></span><span class="ln"><span class="cmd"> title: Sign in as a {{row.role}}
338
333
  </span></span><span class="ln"><span class="cmd"> each:
@@ -357,38 +352,31 @@ words (<code>Expected Message</code> is <code>{{row.expected_message}}</code>),
357
352
  <tr><td data-label="Source">A spec</td><td data-label="each:"><code>spec: test-data/users.yaml</code> (<code>table:</code> when it makes several)</td><td data-label="Rows">The rows the spec makes, not inserted anywhere</td></tr>
358
353
  </tbody>
359
354
  </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>
355
+ <p><strong>For a whole suite.</strong> Every case runs once per row, and a case's own <code>each:</code> wins. In a chat or the shell, ask in words (&quot;run the login cases for each row of test-data/users.xlsx&quot;); the agent takes the same sources. On the command line:</p>
361
356
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each test-data/users.xlsx --each-sheet Users --each-where role=admin
362
357
  </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each-query test-data/queries/active-users.sql --each-db shop --each-limit 20
363
358
  </span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --each-request active-users
364
359
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data rows --each test-data/users.xlsx --export test-data/.run/rows.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what a pipeline gives the tests
365
360
  </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>
361
+ <p><strong>Test cases kept in Azure DevOps</strong> run with rows as they are written there. A step's parameter (<code>@email</code>, as Azure DevOps writes them) takes the row's column of that name (<code>Email</code> or <code>email</code>), as <code>{{row.email}}</code> would. An <code>@</code> inside a word, such as an email address, is left alone, and a parameter the rows have no column for stays as written. A case's own parameter table in Azure DevOps already gives one case per row with no <code>--each</code>.</p>
372
362
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe suite ado:2238,2239 --each test-data/users.xlsx
373
363
  </span></span><span class="ln"><span class="cmd">forgeqe suite ado:plan=12/suite=34 --each-query test-data/queries/active-users.sql --each-db shop
374
364
  </span></span></code></pre></div>
375
365
  <p>The result goes back to the test point (or the work item) once, failed when any row failed, with every row in the comment.</p>
366
+ <p><strong>How rows are used.</strong></p>
376
367
  <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>
368
+ <li><strong>Cases written in words.</strong> A case needs no <code>{{row.&lt;column&gt;}}</code> to use its row. Each run's browser agent is given the row's values (&quot;Test data for this run: email, role, expected_message …&quot;) and uses them wherever the case needs test data. So &quot;Sign in as the test user and check the welcome message&quot; takes each row's user and message. Columns named like a secret (password, token, API key, PIN, card number and the like) are never shown to the model this way, nor used to name a row; a case that needs one says <code>{{row.password}}</code>, or the login comes from <code>logins</code>.</li>
369
+ <li><strong>Another user on each row.</strong> A <code>login</code> column names the saved login (<code>logins:</code> in forgeqe.yaml) a row signs in with: <code>shop_admin</code>, <code>shop_viewer</code>, each with its own <code>username_env</code>, <code>password_env</code> and <code>totp_env</code>. The data file holds only the names; the passwords and authenticator secrets stay in environment variables. That row's run gets that login and no other of the same site, and a row naming a login forgeqe.yaml does not have stops with the reason. The test written from the rows reads each row's credentials from its login's variables, named in the rows file (<code>logins</code>), and makes its own one-time codes.</li>
370
+ <li><strong>Another user on each row, in a recording or a desktop app.</strong> A recording's <strong>Re-run</strong> with rows that have a <code>login</code> column signs in as each row's login: the recording's sign-in steps read the row's login's variables in place of the login it was recorded with. A desktop workflow's <code>{{secret:NAME}}</code> does the same with <code>forgeqe desktop replay --data users.csv</code>, for logins that name the app (<code>app: billing</code> in place of a site), and <code>{{totp:NAME}}</code> types an authenticator code made from NAME, never the secret. A row whose login lacks a variable the recording types stops with the reason.</li>
380
371
  <li><strong>One result per row.</strong> Each row is a run of its own, <code>LOGIN-3[2]</code> with the row in its title (<code>· row 2 (email=bob@shop.test, role=viewer)</code>), in the report, the history and the terminal. Results posted back to Azure DevOps, Jira and the others are one per test case: it fails when any row fails, and the comment lists every row.</li>
381
372
  <li><strong>One test for every row.</strong> The coding agent writes one parameterised test from the first row that passes (Playwright <code>for (const row of rows) test(...)</code>, <code>@pytest.mark.parametrize</code>, NUnit <code>TestCaseSource</code>, JUnit <code>@MethodSource</code>). It reads the rows at run time from the JSON file <code>FORGEQE_ROWS_FILE</code> names (<code>{&quot;columns&quot;: [...], &quot;rows&quot;: [{...}]}</code>). In a pipeline, make that file with <code>forgeqe data rows ... --export</code>, and set <code>FORGEQE_ROWS_FILE</code> to it.</li>
382
373
  <li><strong>Values are data.</strong> Each value is one line of text, at most 1,000 characters. An Excel formula is never worked out: the value Excel saved is taken, and a cell's text such as <code>=cmd|...</code> stays text. Macros are never read.</li>
383
374
  <li><strong>Files stay in the project.</strong> A file outside it, in a hidden folder, or reached through a link out of it is refused, and so is a file larger than 20 MB.</li>
384
375
  <li><strong>Desktop replay</strong> takes the same rows: <code>forgeqe desktop replay workflow.yaml --data customers.xlsx</code>, or <code>--each-query ... --each-db NAME</code>. A <code>--data</code> CSV keeps its column names as written.</li>
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>
376
+ <li><strong>Trying a recording with each row.</strong> On the Record page, the review's <strong>Runs</strong> tab has <strong>Test data</strong>: the values typed there, or each row of a data file in <code>test-data/</code> (or an environment's <code>data:</code>) or of a kept request. The steps play once per row, up to 20 rows, one after another. A column named like the recording's test data gives that value, and other columns are left out. The result lists every row, then the steps of the first row that failed.</li>
386
377
  </ul>
387
378
  <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>
379
+ <p>Every agent can ask the <strong>Miner</strong> for the test data it needs before it runs: Atlas, Quill, Link and the healer, and a test case (<code>data: {request: ...}</code>). The request is in words. Miner reads the schema, then either finds <strong>existing rows</strong> with one read-only SELECT, or designs <strong>new rows</strong> as a test data spec. Its answer is the data itself and the script that gets it again:</p>
392
380
  <div class="tbl tbl--cols-3"><table>
393
381
  <thead>
394
382
  <tr><th>Kind</th><th>The agent gets</th><th>Kept in <code>test-data/requests/&lt;name&gt;/</code></th></tr>
@@ -398,33 +386,54 @@ designs <strong>new rows</strong> as a test data spec. Its answer is the data it
398
386
  <tr><td data-label="Kind">New rows (<code>kind: new</code>)</td><td data-label="The agent gets">The rows, and their INSERT statements in the database's dialect</td><td data-label="Kept in test-data/requests/&lt;name&gt;/"><code>spec.yaml</code> (with its seed), <code>data.sql</code>, <code>data.json</code>, <code>rows.json</code>, <code>request.yaml</code></td></tr>
399
387
  </tbody>
400
388
  </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>
389
+ <ul>
390
+ <li><code>auto</code> (the default) lets Miner pick.</li>
391
+ <li>Miner never writes to a database: a statement the data engine sees as a write is refused, and new rows only go to files.</li>
392
+ <li>Keys the database fills (serial, identity) are left out of <code>data.sql</code>, so the script runs on a database that already has rows.</li>
393
+ <li>Without a model, a request takes your own SQL or spec.</li>
394
+ </ul>
395
+ <p><strong>Asking Miner for test data.</strong></p>
396
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
397
+ <ol>
398
+ <li>Open <strong>Ask</strong> (Data › Databases).</li>
399
+ <li>Pick <strong>Test data</strong>, the <strong>Database</strong>, whether you want <strong>Existing rows</strong>, <strong>New rows</strong> or <strong>Miner picks</strong>, and how many rows.</li>
400
+ <li>Write what you need, optionally a name to keep it as, and press <strong>Ask</strong>.</li>
401
+ <li>Open <strong>Test data</strong> (Data › Test data) to see every request: which agent asked, what for, when, and the answer, with the kept requests to fetch again.</li>
402
+ </ol>
403
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
404
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
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
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
407
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data fetch queued-watchlist --json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the same data again, no model: the query runs again, the spec makes the same rows
408
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data log</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every request: who asked, what for, when, the answer
408
409
  </span></span><span class="ln ln--pair"><span class="cmd">psql &quot;$IMDB_URL&quot; -f test-data/requests/queued-watchlist/data.sql</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or insert as a batch: forgeqe data gen test-data/requests/queued-watchlist/spec.yaml --insert --yes
409
410
  </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></div><p><strong>In a test case.</strong></p>
411
412
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- title: Watchlist shows a queued title
412
413
  </span></span><span class="ln"><span class="cmd"> data: {request: &quot;a queued watchlist entry for a new viewer&quot;, kind: new, name: queued-watchlist}
413
414
  </span></span><span class="ln"><span class="cmd"> steps:
414
415
  </span></span><span class="ln"><span class="cmd"> - action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
415
416
  </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>
417
+ <p>The first run asks Miner and keeps the request; later runs fetch it from <code>test-data/requests/&lt;name&gt;</code> with no model. Existing rows are used as they are (<code>{{data.result.0.&lt;column&gt;}}</code>, nothing to remove after). New rows go in as a batch before the case and are removed after it, when the database is marked <code>writable</code>.</p>
418
+ <p><strong>Ask in words.</strong> Miner turns a question into one of three things:</p>
419
+ <ul>
420
+ <li><strong>a checked read-only query and its rows,</strong> kept in <code>test-data/queries</code>;</li>
421
+ <li><strong>data checks:</strong> each a SELECT that returns the rows breaking one rule, kept in <code>test-data/checks</code> and run again with <code>forgeqe data checks &lt;name&gt;</code>;</li>
422
+ <li><strong>a database test</strong> for pytest or Playwright, kept in <code>test-data/scripts</code> and never run by ForgeQE. It reads its connection string from an environment variable, and a script holding a password or a connection string is refused.</li>
423
+ </ul>
424
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
425
+ <ol>
426
+ <li>Open <strong>Ask</strong> (Data › Databases).</li>
427
+ <li>Pick <strong>Query and rows</strong>, <strong>Data checks</strong> or <strong>Test script</strong> (with its <strong>Framework</strong>), and the <strong>Database</strong>.</li>
428
+ <li>Write the question and press <strong>Ask</strong>.</li>
429
+ </ol>
430
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
431
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe data ask &quot;Which titles have more than 100 votes?&quot; --db imdb --as query
432
+ </span></span><span class="ln"><span class="cmd">forgeqe data ask &quot;Every rating belongs to a title&quot; --db imdb --as checks --name ratings
433
+ </span></span><span class="ln"><span class="cmd">forgeqe data ask &quot;Votes are never negative&quot; --db imdb --as script --framework pytest
434
+ </span></span><span class="ln ln--pair"><span class="cmd">forgeqe data checks ratings</span><span class="pad"> </span><span class="cm"><span class="h">#</span> kept checks run again, no model
435
+ </span></span></code></pre></div>
436
+ </div></div><p><strong>Databases from Docker images.</strong> The databases Miner reads can run in containers that <code>forgeqe services up</code> starts (see <a href="../area-operations/index.html#doc-how_to_use-containers-and-mock-services">Containers and mock services</a>), for example the sample databases of the Database Agent in test-agent-nexus (<code>docker-compose.yml</code>, profile <code>db-agent-demos</code>). The container's password and the connection's <code>password_env</code> are different variables: a database's secrets are ForgeQE's own and never go to a container.</p>
428
437
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">containers:
429
438
  </span></span><span class="ln"><span class="cmd"> services:
430
439
  </span></span><span class="ln"><span class="cmd"> imdb:
@@ -437,11 +446,9 @@ connection's <code>password_env</code> are different variables: a database's sec
437
446
  </span></span><span class="ln"><span class="cmd">databases:
438
447
  </span></span><span class="ln"><span class="cmd"> imdb: { engine: postgres, host: 127.0.0.1, port: 5437, database: imdb, user: nexus, password_env: IMDB_DB_PASSWORD, ssl: disable, writable: true }
439
448
  </span></span></code></pre></div>
440
- <p><code>tests/data-request.live.test.ts</code> runs Miner against that database in Docker.</p>
441
449
  </div>
442
450
  </section>
443
451
  </div>
444
- </article>
445
452
  <article class="spec feat" id="cap-data-flows">
446
453
  <div class="hd"><span class="mono">Data</span><h3>Data flows between systems</h3></div>
447
454
  <p class="ds">Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas.</p>
@@ -451,16 +458,12 @@ connection's <code>password_env</code> are different variables: a database's sec
451
458
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Hops between SQL tables, Kafka topics, and APIs (a target by key, a source by its list; GET or POST only); MongoDB is not checked</li><li>At most 200,000 source rows a flow per check, compared by key</li><li>Reads only; flows are written into flows.yaml, and nothing in the databases changes</li></ul></div>
452
459
  <div class="fact"><span class="mono">Tools</span><p class="tools"><code>data_flows</code> <code>check_flows</code> <code>trace_record</code> <code>read_mapping_file</code></p></div>
453
460
  </div>
454
- <div class="detail"><span class="mono">In detail</span>
455
- <section class="doc" id="doc-how_to_use-data-flows">
461
+
462
+ </article>
463
+ <div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-data-flows">
456
464
  <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>
465
+ <div class="prose"><p>When your systems pass data to each other (a customer signs up in the digital channel's database, the CRM gets a contact, billing gets an account), ForgeQE checks each hop. Ask &quot;check that customers reach the CRM correctly&quot;, &quot;trace customer 42 from digital to billing&quot;, or &quot;what does a change to digital.customers.email affect downstream?&quot;.</p>
466
+ <p><strong>Where the hops come from.</strong> The hops are in <code>flows.yaml</code>, beside forgeqe.yaml. ForgeQE writes it from your mapping documents, wherever they are (a spreadsheet in the project, a Confluence page, a Jira or Azure DevOps item, a text file). When there are none, it suggests flows from the schemas and a sample of keys. It shows you each flow and saves the ones you confirm. You can write it by hand too:</p>
464
467
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">flows:
465
468
  </span></span><span class="ln"><span class="cmd"> signup_to_crm:
466
469
  </span></span><span class="ln"><span class="cmd"> from: {db: digital, table: customers, key: id, changed: updated_at}
@@ -482,8 +485,7 @@ it by hand too:</p>
482
485
  </span></span><span class="ln"><span class="cmd"> total: {to: amount, rule: &quot;round(2)&quot;}
483
486
  </span></span><span class="ln"><span class="cmd"> status: {to: status_code, map: {PAID: P, NEW: N}}
484
487
  </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>
488
+ <p>Rules: <code>same</code> (the default), <code>lower</code>, <code>upper</code>, <code>trim</code>, <code>round(n)</code> (half up, as databases round), <code>date</code>, <code>number</code>, <code>string</code>, <code>map</code>, <code>template</code> (from the source row's columns), and <code>default</code> (for a null).</p>
487
489
  <p><strong>Kafka and APIs.</strong> A hop's side can also be a Kafka topic or an API:</p>
488
490
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">databases:
489
491
  </span></span><span class="ln"><span class="cmd"> events:
@@ -525,35 +527,24 @@ it by hand too:</p>
525
527
  </span></span><span class="ln"><span class="cmd"> email: email
526
528
  </span></span></code></pre></div>
527
529
  <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>
530
+ <li><strong>Topics</strong> are read without a consumer group, so no offset is committed and no other consumer is affected. A read stops at the end of the topic as it was when the check began. A topic can be a source (its message time is when a record changed) or a target. <code>forgeqe db test events</code> checks the brokers, and <code>forgeqe db tables events</code> lists the topics with the fields of their latest messages.</li>
531
+ <li><strong>APIs</strong> are called at the base URL of the environment's API app, with the headers <code>api.headers</code> gives in forgeqe.yaml (<code>Authorization: Bearer ${CRM_API_TOKEN}</code>).
532
+ <ul>
533
+ <li>As a <strong>target</strong>, an API answers for one key: <code>{key}</code> goes in its path (<code>/contacts/{key}</code>) or its body, one call a key. A 404 counts as missing. At most 500 keys are checked, so narrow a large source with <code>since:</code>.</li>
534
+ <li>As a <strong>source</strong>, it is a list endpoint (no <code>{key}</code>), read page by page through the response's <code>next</code> link. <code>changed</code> names the field that says when a record changed, for <code>since:</code> and SLAs. A record can be followed (<code>flows trace</code>, <code>trace:</code>) from an API list too.</li>
535
+ </ul>
536
+ </li>
537
+ <li><code>items</code> says where the records are in a response (<code>data.items</code>). Without it, ForgeQE takes the response itself, or its first list among <code>items</code>, <code>data</code>, <code>results</code>, <code>value</code>, <code>records</code> and <code>content</code>.</li>
538
+ <li>Calls are <strong>GET or POST</strong> (a lookup, a search, a GraphQL query): a check never changes data, so PUT, PATCH and DELETE are refused. Redirects are not followed, and a <code>next</code> link that leaves the API's host is refused, so the headers never reach another server.</li>
543
539
  </ul>
544
- <p>What a check reports for each flow:</p>
540
+ <p><strong>What a check reports for each flow.</strong></p>
545
541
  <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>
542
+ <li><strong>Missing:</strong> source rows whose key is not in the target. For a realtime flow, a row is <strong>late</strong> once its change is older than the SLA, and <strong>still in flight</strong> before that (not a failure).</li>
543
+ <li><strong>Wrong:</strong> rows where a mapped column does not hold the expected value, with the key, the source value, the value expected after the rule, and the value found. Numbers compare as numbers (12.5 and 12.50), date-times to the second, and trailing spaces of fixed-width text do not count.</li>
551
544
  <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>
545
+ <li><strong>Batch:</strong> with <code>ready</code>, the check waits for a run of the job that finished after it began (up to <code>wait</code>), and says so when it had to check the last run's rows.</li>
554
546
  </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>
547
+ <p><strong>Following what a test case created.</strong> A case in a case file can follow the record its steps made through the flows. The case passes only when the record arrived, right, at every hop:</p>
557
548
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">- id: SIGNUP-3
558
549
  </span></span><span class="ln"><span class="cmd"> title: A new customer reaches the CRM and billing
559
550
  </span></span><span class="ln"><span class="cmd"> steps:
@@ -564,35 +555,34 @@ flows; the case passes only when the record arrived, right, at every hop:</p>
564
555
  </span></span><span class="ln"><span class="cmd"> where: {email: &quot;qa+{{unique}}@shop.test&quot;}
565
556
  </span></span><span class="ln ln--pair"><span class="cmd"> wait: 120</span><span class="pad"> </span><span class="cm"><span class="h">#</span> seconds each hop may take
566
557
  </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>
558
+ <p><code>{{unique}}</code> is a token made for each run of the case, so what it creates can be found again; data placeholders (<code>{{data.customers.0.email}}</code>) work in <code>where</code> too. A record that does not arrive, arrives twice, or arrives with a wrong value fails the case as a functional defect, with the hop and the values in its summary, the report, JUnit, and the result posted to Azure DevOps or Jira.</p>
559
+ <p><strong>Checking flows and following a record.</strong> No model is used.</p>
560
+ <div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
561
+ <ol>
562
+ <li>Open <strong>Data flows</strong> (Data › Databases). The map shows what feeds what.</li>
563
+ <li>Tick flows and press <strong>Check</strong>, or press <strong>Check all</strong>. <strong>Report</strong> opens the check's report.</li>
564
+ <li>Under <strong>Follow one record</strong>, pick where it starts (<strong>From</strong>: a table or a flow), type <strong>Its key</strong>, optionally <strong>Wait up to (s)</strong>, and press <strong>Follow</strong>.</li>
565
+ </ol>
566
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
572
567
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe flows map</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what feeds what
573
568
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows check --junit flows.xml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 when a flow fails
574
569
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows check --post-ado --run-name &quot;Nightly data flows&quot;</span><span class="pad"> </span><span class="cm"><span class="h">#</span> also an Azure DevOps test run
575
570
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows trace digital.customers 42 --wait 120</span><span class="pad"> </span><span class="cm"><span class="h">#</span> follow customer 42 hop by hop
576
571
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe flows impact digital.customers.email</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every column it becomes downstream
577
572
  </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>
573
+ </div></div><p><strong>Reports and Azure DevOps.</strong> Each check is also kept in the reports folder, as <code>flows-&lt;time&gt;/report.html</code> and <code>flows.json</code>. The report opens on a map of your systems, left to right in the order data reaches them, with each hop coloured by health; a hop opens what is missing, late, wrong or duplicated, key by key. A record you follow is kept the same way, hop by hop.</p>
574
+ <p>With <code>--post-ado</code> (or when you ask the agent to record the results), the check becomes an automated Azure DevOps test run with one result per flow, failed with what is missing, late, wrong or duplicated. A flow with <code>ado_test_case: &lt;id&gt;</code> records its result against that test case.</p>
575
+ <p><strong>Reads only.</strong> Everything is a read in a read-only session, and keys go to each database as bound values. Masked columns (passwords, tokens and the like) show as <code>•••</code> in results. A check compares up to 200,000 source rows a flow, by key.</p>
585
576
  </div>
586
577
  </section>
587
578
  </div>
588
- </article>
589
579
 
590
580
  <nav class="pager" aria-label="Previous and next">
591
581
  <a class="prev" href="../area-operations/index.html"><small>Previous</small><span>Operations and monitoring</span></a>
592
582
  <a class="next" href="../area-pull-requests/index.html"><small>Next</small><span>Pull requests</span></a>
593
583
  </nav>
594
584
  </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>
585
+ <aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-databases">Ask a database in plain language</a></li><li><a href="#cap-test-data">Test data on demand</a></li><li><a href="#cap-data-flows">Data flows between systems</a></li></ul></aside>
596
586
  </div>
597
587
  <footer class="foot">
598
588
  <div class="container foot__row">