@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,54 +113,62 @@
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"><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" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../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" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
117
  </nav>
117
118
  <main id="main" class="docs-main">
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" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details></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" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-knowledge-base"/></svg>Containers</h1>
121
122
  <article class="prose">
122
- <p>Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config,
123
- compose files, mounts and secrets, the mock stubs, and tests in a container. <code>tests/containers.live.test.ts</code> runs on
124
- real Docker (and is skipped without it):</p>
125
- <ul>
126
- <li>Postgres from forgeqe.yaml and from a compose file.</li>
127
- <li>A WireMock mock that answers a recorded run's calls.</li>
128
- <li>A tests container that reaches the database by name and writes its results into the repository as this machine's
129
- user.</li>
130
- </ul>
123
+ <p>Status: tested on real Docker with Postgres from forgeqe.yaml and from a compose file, a WireMock mock that answers a
124
+ recorded run's calls, and a tests container that reaches the database by name and writes its results into the
125
+ repository as this machine's user.</p>
131
126
  <p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
132
127
  <ul>
133
128
  <li><strong>Services a test run needs:</strong> a database, a queue, a cache, or the API under test. The project declares them in
134
129
  forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
135
130
  <li><strong>Mocks of an API:</strong> WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so
136
131
  the tests can run without the real service.</li>
137
- <li><strong>The repository's tests in a container:</strong> <code>run_tests</code> runs the command the user confirmed in an image, instead of
132
+ <li><strong>The repository's tests in a container:</strong> ForgeQE runs the test command you confirmed in an image, instead of
138
133
  on this machine, after starting the services the tests need.</li>
139
134
  <li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Quill's shell commands (build, restore, run,
140
135
  git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.</li>
141
136
  <li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and Quill's live
142
- browser drive Chromium in a container of Microsoft's Playwright image.</li>
137
+ browser use Chromium in a container of Microsoft's Playwright image.</li>
143
138
  </ul>
144
139
  <p>Quill also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
145
- <p>ForgeQE's agent uses them through two tools, <code>services</code> and <code>mock_service</code>. The CLI has <code>forgeqe services</code>. When
146
- neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
140
+ <p>When neither Docker nor Podman is on PATH, ForgeQE's agent does not offer to start services or mocks.</p>
147
141
  <h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
142
+ <p><strong>Setting it up.</strong> Pick the runtime, declare the services, and choose which jobs use containers.</p>
143
+ <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>
144
+ <ol>
145
+ <li>Open <strong>Settings › Containers</strong>.</li>
146
+ <li>Under <strong>Runtime</strong>, pick the <strong>Runtime</strong> (empty: Docker, else Podman), and optionally <strong>Compose files</strong> and the
147
+ <strong>Mocks' image</strong>.</li>
148
+ <li>Add each service with its <strong>Image</strong>, <strong>Ports</strong>, <strong>Environment</strong>, <strong>Secrets</strong>, <strong>Mounts</strong>, <strong>Starts after</strong> and when it
149
+ is ready.</li>
150
+ <li>Fill in <strong>Tests in a container</strong>, <strong>The coding agents' workspace</strong> or <strong>Browser in a container</strong> for the jobs that
151
+ should use one.</li>
152
+ </ol>
153
+ <p>For the browser, also pick <strong>Chrome in Docker</strong> as the <strong>Browser</strong> in <strong>Settings › Browser</strong>.</p>
154
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
155
+ <p>Edit <code>containers:</code> in forgeqe.yaml (see <a href="#declaring-services">Declaring services</a>), and <code>browser.provider: docker</code>
156
+ for the browser.</p>
157
+ </div></div><p><strong>Starting and stopping services.</strong></p>
158
+ <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>
159
+ <p>In a chat, ask, for example: &quot;start the database&quot;, &quot;is the queue up?&quot;, &quot;stop the services&quot;. The agent asks before it
160
+ starts anything.</p>
161
+ </div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
148
162
  <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 services</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the declared services, what runs, whether the runtime answers
149
163
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe services up</span><span class="pad"> </span><span class="cm"><span class="h">#</span> start every declared service and wait until each is ready
150
164
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe services up db queue</span><span class="pad"> </span><span class="cm"><span class="h">#</span> just these
151
165
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe services logs db --lines 50</span><span class="pad"> </span><span class="cm"><span class="h">#</span> last lines, secrets removed
152
166
  </span></span><span class="ln ln--pair"><span class="cmd">forgeqe services down</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop and remove this project's containers (mocks included)
153
167
  </span></span></code></pre></div>
154
- <p>In the shell or <code>forgeqe run</code>, you can ask, for example:</p>
155
- <ul>
156
- <li>&quot;start the database&quot;</li>
157
- <li>&quot;is the queue up?&quot;</li>
158
- <li>&quot;mock the payments API from the last run&quot;</li>
159
- <li>&quot;make a mock service from openapi.yaml and point order-api at it&quot;</li>
160
- <li>&quot;stop the services&quot;</li>
161
- </ul>
162
- <p>The agent asks before it starts anything.</p>
168
+ <p>The same requests work in <code>forgeqe start</code> or <code>forgeqe run</code>.</p>
169
+ </div></div><p><strong>Making a mock.</strong> This is done by asking ForgeQE's agent, in a web chat, <code>forgeqe start</code> or <code>forgeqe run</code>: &quot;mock the
170
+ payments API from the last run&quot;, or &quot;make a mock service from openapi.yaml and point order-api at it&quot;. See
171
+ <a href="#mocks">Mocks</a>.</p>
163
172
  <h2 id="declaring-services"><a href="#declaring-services" class="hash">#</a>Declaring services</h2>
164
173
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> forgeqe.yaml
165
174
  </span></span><span class="ln"><span class="cmd">containers:
@@ -167,7 +176,7 @@ neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
167
176
  </span></span><span class="ln"><span class="cmd"> services:
168
177
  </span></span><span class="ln"><span class="cmd"> db:
169
178
  </span></span><span class="ln"><span class="cmd"> description: Orders database for the API tests
170
- </span></span><span class="ln ln--pair"><span class="cmd"> image: postgres:16.4</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version, or name@sha256:&amp;lt;digest&gt;
179
+ </span></span><span class="ln ln--pair"><span class="cmd"> image: postgres:16.4</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version, or name@sha256:&lt;digest&gt;
171
180
  </span></span><span class="ln ln--pair"><span class="cmd"> ports: [5432]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> 127.0.0.1:5432 -&gt; 5432; &quot;15432:5432&quot; maps another port of this machine
172
181
  </span></span><span class="ln ln--pair"><span class="cmd"> env:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> plain values only
173
182
  </span></span><span class="ln"><span class="cmd"> POSTGRES_DB: shop
@@ -228,7 +237,7 @@ runs.</p>
228
237
  </table></div>
229
238
  <p>What was left out (a named volume, a mount made read-only) is listed in <code>notes</code>.</p>
230
239
  <h2 id="the-project-network"><a href="#the-project-network" class="hash">#</a>The project network</h2>
231
- <p>Each project's containers join their own network, <code>forgeqe-&amp;lt;project&gt;</code>, under their service name. So the API container
240
+ <p>Each project's containers join their own network, <code>forgeqe-&lt;project&gt;</code>, under their service name. So the API container
232
241
  reaches the database as <code>db:5432</code>, and the tests container reaches both. No other container joins the network, and no
233
242
  container is on the host's network. <code>forgeqe services down</code> with no names also removes the network.</p>
234
243
  <h2 id="tests-in-a-container"><a href="#tests-in-a-container" class="hash">#</a>Tests in a container</h2>
@@ -239,17 +248,16 @@ container is on the host's network. <code>forgeqe services down</code> with no n
239
248
  </span></span><span class="ln"><span class="cmd"> env: { DB_HOST: db }
240
249
  </span></span><span class="ln"><span class="cmd"> secrets: [TEST_DB_PASSWORD]
241
250
  </span></span></code></pre></div>
242
- <p>With <code>containers.tests</code> set, <code>run_tests</code> runs the tests in that image unless it is called with <code>in_container: false</code>.
243
- Its confirmation says where the tests will run. The container:</p>
251
+ <p>With <code>containers.tests</code> set (<strong>Tests in a container</strong> in Settings › Containers), the repository's tests ForgeQE runs go
252
+ to that image, unless the agent is asked to run them on this machine. The confirmation says where the tests will run.
253
+ The container:</p>
244
254
  <ul>
245
- <li><strong>Runs the command the user confirmed</strong> with the image's own shell, <code>sh -c &quot;&amp;lt;command&gt;&quot;</code>, inside the container,
246
- never on this machine.</li>
255
+ <li><strong>Runs the command you confirmed</strong> with the image's own shell, inside the container, never on this machine.</li>
247
256
  <li><strong>Mounts the repository read-write at its own path</strong> and works in it, so results land where ForgeQE reads them.
248
257
  On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is
249
258
  mounted the same way.</li>
250
- <li><strong>Runs as this machine's user</strong> (<code>--user uid:gid</code>), so files it writes are yours. It also gets
251
- <code>--security-opt no-new-privileges</code>, <code>--pids-limit 4096</code> and <code>--rm</code>, and it is removed by name when the run ends or is
252
- stopped.</li>
259
+ <li><strong>Runs as this machine's user</strong>, so files it writes are yours. It cannot gain privileges, has a process limit, and
260
+ is removed when the run ends or is stopped.</li>
253
261
  <li><strong>Gets only these variables:</strong> <code>CI=1</code>, <code>NO_COLOR</code>, <code>HOME=/tmp</code>, the environment's <code>FORGEQE_ACTIVE_ENV</code>,
254
262
  <code>FORGEQE_APP_*</code> and <code>FORGEQE_VAR_*</code>, the saved logins' variables, and <code>containers.tests</code> <code>env</code> and <code>secrets</code>.
255
263
  Secrets are passed by name. ForgeQE's own keys are never passed.</li>
@@ -267,36 +275,36 @@ workspace container.</p>
267
275
  </span></span><span class="ln"><span class="cmd"> env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major }
268
276
  </span></span><span class="ln ln--pair"><span class="cmd"> secrets: [TEST_DB_PASSWORD]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> by name; values from the environment or .env
269
277
  </span></span></code></pre></div>
270
- <p>With <code>containers.workspace</code> set:</p>
278
+ <p>With <code>containers.workspace</code> set (<strong>The coding agents' workspace</strong> in Settings › Containers):</p>
271
279
  <ul>
272
- <li><strong>Quill's shell runs in the container.</strong> The agent runtime runs each command as <code>$SHELL -c &amp;lt;command&gt;</code>. ForgeQE
273
- sets <code>SHELL</code> to a script that runs the same command with <code>docker exec … sh -c &amp;lt;command&gt;</code>, in the same folder,
274
- in the workspace container. A folder outside the repository is refused, since the container has only the
275
- repository. The agent is told its commands run in a Linux container of that image.</li>
276
- <li><strong>Every test ForgeQE runs goes to the same image:</strong> the coding loop's runs, <code>heal</code>, <code>suite</code>'s existing tests and
277
- <code>run_tests</code>. Each run gets its own container (<code>docker run --rm</code>), so stopping a run removes it. Browsers the test
278
- starts are found with <code>docker top</code>, as ForgeQE finds them on this machine.</li>
279
- <li><strong>What stays on this machine:</strong> the agent runtime, the model key, ForgeQE's other secrets, the file tools (read,
280
- edit, write; the repository is the same folder in both places), and ForgeQE's own agent, which works with you
281
- on this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
280
+ <li><strong>Quill's shell runs in the container.</strong> Each command Quill runs goes to the workspace container, in the same folder.
281
+ A folder outside the repository is refused, since the container has only the repository. Quill is told its commands
282
+ run in a Linux container of that image.</li>
283
+ <li><strong>Every test ForgeQE runs goes to the same image:</strong> the coding loop's runs, healing, a suite's existing tests and the
284
+ tests you ask the agent to run. Each run gets its own container, so stopping a run removes it, with the browsers the
285
+ test started.</li>
286
+ <li><strong>What stays on this machine:</strong> the coding agents themselves, the model key, ForgeQE's other secrets, reading and
287
+ editing files (the repository is the same folder in both places), and ForgeQE's own agent, which works with you on
288
+ this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
282
289
  <li><strong>The container:</strong>
283
290
  <ul>
284
- <li>one per ForgeQE process and project, <code>forgeqe-&amp;lt;project&gt;-workspace-&amp;lt;id&gt;</code>, removed when ForgeQE ends;</li>
291
+ <li>one per ForgeQE process and project, <code>forgeqe-&lt;project&gt;-workspace-&lt;id&gt;</code>, removed when ForgeQE ends;</li>
285
292
  <li>the repository mounted read-write at its own path; credential files in it (<code>.env</code>, <code>.env.*</code> except templates,
286
293
  <code>.npmrc</code>, <code>.netrc</code>, <code>*.pem</code>, <code>*.key</code>, <code>id_*</code> keys) covered with an empty read-only file, and <code>.ssh</code>, <code>.aws</code>,
287
294
  <code>.azure</code>, <code>.docker</code>, <code>.kube</code> and <code>.forgeqe/sessions</code> with an empty folder;</li>
288
- <li><code>HOME</code> on the project's volume <code>forgeqe-&amp;lt;project&gt;-home</code>, so NuGet, npm and pip caches outlive the session. Docker
289
- creates the volume for root, so ForgeQE runs <code>chown</code> in it once, with a fixed command;</li>
290
- <li>this machine's user (<code>--user uid:gid</code>), <code>no-new-privileges</code>, <code>--pids-limit 4096</code>, the project network;</li>
295
+ <li><code>HOME</code> on the project's volume <code>forgeqe-&lt;project&gt;-home</code>, so NuGet, npm and pip caches outlive the session;</li>
296
+ <li>this machine's user, no privilege gain, a process limit, the project network;</li>
291
297
  <li>only <code>CI=1</code>, <code>HOME</code>, the <code>env</code> and <code>secrets</code> listed, and, in each command, the environment's <code>FORGEQE_APP_*</code> and
292
298
  <code>FORGEQE_VAR_*</code> and the saved logins' variables, by name.</li>
293
299
  </ul>
294
300
  </li>
295
- <li><strong><code>containers.tests</code></strong> still names the image <code>run_tests</code> uses when it is set. Without it, <code>run_tests</code> uses the
296
- workspace's image.</li>
301
+ <li><strong><code>containers.tests</code></strong> still names the image for running the repository's tests when it is set. Without it, those
302
+ tests use the workspace's image.</li>
297
303
  </ul>
298
304
  <p>This needs a Linux or macOS machine, as tests in a container do.</p>
299
305
  <h2 id="the-browser-in-a-container"><a href="#the-browser-in-a-container" class="hash">#</a>The browser in a container</h2>
306
+ <p>In the web app, pick <strong>Chrome in Docker</strong> as the <strong>Browser</strong> in <strong>Settings › Browser</strong>, and set the image and <strong>Without
307
+ a window</strong> under <strong>Browser in a container</strong> in <strong>Settings › Containers</strong>. At a terminal:</p>
300
308
  <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">browser:
301
309
  </span></span><span class="ln ln--pair"><span class="cmd"> provider: docker</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or per run: --browser-provider docker
302
310
  </span></span><span class="ln"><span class="cmd">containers:
@@ -307,19 +315,17 @@ workspace's image.</li>
307
315
  <ul>
308
316
  <li><strong>One container per use:</strong> each browser run (a suite runs <code>suite.parallel</code> at once) gets its own, and a coding job
309
317
  gets one that its replay and live browser share. Each is removed when its run or job ends.</li>
310
- <li><strong>Connection:</strong> Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small
311
- gateway in front of it (<code>BROWSER_SERVER</code> in <code>src/containers/browser.ts</code>, run with the image's Node.js) accepts a
312
- connection only with a random 48-character token in its path, compared in constant time, and refuses a browser
313
- <code>Origin</code> that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and
314
- the live browser's MCP server through the environment, never a file or a command line.</li>
315
- <li><strong>Visible or headless:</strong> a visible browser runs on Xvfb inside the container. Sites that turn headless browsers
318
+ <li><strong>Connection:</strong> the browser in the container accepts a connection only with a random token that ForgeQE makes for
319
+ that container, and only from this machine (its port is published on 127.0.0.1 only). The token is never written to
320
+ a file or a command line.</li>
321
+ <li><strong>Visible or headless:</strong> a visible browser runs on a virtual display inside the container. Sites that turn headless browsers
316
322
  away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual.</li>
317
323
  <li><strong>Reaching the app:</strong> the container joins the project network, so a declared service is reached by its name
318
- (<code>http://order-api:8080</code>). An app this machine serves is <code>http://host.docker.internal:&amp;lt;port&gt;</code>; <code>localhost</code> is the
324
+ (<code>http://order-api:8080</code>). An app this machine serves is <code>http://host.docker.internal:&lt;port&gt;</code>; <code>localhost</code> is the
319
325
  container itself, and ForgeQE warns when a run starts there.</li>
320
- <li><strong>Replay:</strong> one pass, in a new browser context. The second pass (without Playwright's automation switches) needs a
321
- launch, which a running browser does not have.</li>
322
- <li>A run explored in a container is replayed in one even when the provider is changed back later (<code>run.json</code>).</li>
326
+ <li><strong>Replay:</strong> one pass, in a new browser context. The second pass that replay tries on this machine (a browser that
327
+ looks less automated) needs a fresh browser start, which a container's running browser does not have.</li>
328
+ <li>A run explored in a container is replayed in one even when the provider is changed back later.</li>
323
329
  </ul>
324
330
  <h2 id="testcontainers-quill"><a href="#testcontainers-quill" class="hash">#</a>Testcontainers (Quill)</h2>
325
331
  <p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Quill
@@ -328,40 +334,42 @@ readiness, uses the mapped port, and sets the app's own configuration from it. I
328
334
  host network, the Docker socket, or a <code>docker</code> command from a test. These containers belong to the tests in the
329
335
  repository: the tests start and stop them, wherever they run.</p>
330
336
  <h2 id="mocks"><a href="#mocks" class="hash">#</a>Mocks</h2>
331
- <p><code>mock_service</code> builds WireMock stubs and runs WireMock on a free port of 127.0.0.1:</p>
337
+ <p>Ask ForgeQE's agent for a mock (in a web chat, <code>forgeqe start</code> or <code>forgeqe run</code>). It builds WireMock stubs and runs
338
+ WireMock on a free port of 127.0.0.1:</p>
332
339
  <ul>
333
- <li><strong>From a run</strong> (the default: the latest run, or <code>run_dir</code>):
340
+ <li><strong>From a run</strong> (the default: the latest run, or one you name):
334
341
  <ul>
335
342
  <li>One stub per method, path and query of the app's own API calls, answering with the last status, content type
336
343
  and body the app got.</li>
337
- <li>Other sites' calls are left out unless <code>third_party</code> is set.</li>
344
+ <li>Other sites' calls are left out unless you ask for them.</li>
338
345
  <li>Failed calls are left out.</li>
339
346
  <li>Answers that were cut when recorded are listed under <code>skipped</code>.</li>
340
347
  </ul>
341
348
  </li>
342
- <li><strong>From a description</strong> (<code>spec</code>: OpenAPI 3 or Swagger 2, a link or a file):
349
+ <li><strong>From a description</strong> (OpenAPI 3 or Swagger 2, a link or a file):
343
350
  <ul>
344
351
  <li>One stub per REST operation.</li>
345
352
  <li>Each stub answers with the operation's first success status and a body from the schema's examples, or values
346
353
  made from its types.</li>
347
354
  <li>A path parameter (<code>/orders/{id}</code>) matches any one path segment.</li>
348
- <li>Instead of a description, you can give a contract set from <code>api_contracts</code> (<code>set_id</code>).</li>
355
+ <li>Instead of a description, you can name a saved API contract set.</li>
349
356
  </ul>
350
357
  </li>
351
358
  <li><strong>GraphQL, SOAP and gRPC</strong> are listed under <code>skipped</code>, not mocked.</li>
352
359
  </ul>
353
- <p>A spec given as a link is fetched by ForgeQE itself, with no credentials, as <code>api_contracts</code> does. The stubs are written to <code>.forgeqe/mocks/&amp;lt;name&gt;/mappings/</code>. You can read and edit them there. The folder is mounted
360
+ <p>A description given as a link is fetched by ForgeQE itself, with no credentials. The stubs are written to <code>.forgeqe/mocks/&lt;name&gt;/mappings/</code>. You can read and edit them there. The folder is mounted
354
361
  read-only at <code>/home/wiremock/mappings</code>. WireMock runs with <code>--enable-stub-cors</code>, so a web app on another local port
355
362
  can call it.</p>
356
- <p>With <code>for_app: &amp;lt;api app&gt;</code>, the active environment's API app points at the mock for the rest of the session. That
357
- covers the API tools, and the tests ForgeQE runs, which read <code>FORGEQE_APP_&amp;lt;APP&gt;_URL</code>. env.yaml itself is not
363
+ <p>Ask for an API app of env.yaml to use the mock (&quot;point order-api at it&quot;), and the active environment's API app points
364
+ at the mock for the rest of the session. That
365
+ covers the API tools, and the tests ForgeQE runs, which read <code>FORGEQE_APP_&lt;APP&gt;_URL</code>. env.yaml itself is not
358
366
  changed.</p>
359
367
  <h2 id="lifetime"><a href="#lifetime" class="hash">#</a>Lifetime</h2>
360
368
  <ul>
361
- <li><strong>Services and mocks the agent starts</strong> are removed when the shell, <code>forgeqe run</code>, or <code>forgeqe mcp</code> ends, as are
362
- the workspace and browser containers (<code>forgeqe.kind</code> <code>workspace</code> and <code>browser</code>). The home volume stays.</li>
369
+ <li><strong>Services and mocks the agent starts</strong> are removed when the chat session (<code>forgeqe start</code>, <code>forgeqe web</code>'s chat,
370
+ <code>forgeqe run</code>, or <code>forgeqe mcp</code>) ends, as are the workspace and browser containers. The home volume stays.</li>
363
371
  <li><strong><code>forgeqe services up</code></strong> keeps its services running after the command ends, until <code>forgeqe services down</code>.</li>
364
- <li><strong>Container names</strong> are <code>forgeqe-&amp;lt;project&gt;-&amp;lt;service&gt;</code>. <code>&amp;lt;project&gt;</code> is a hash of the project folder, so two projects
372
+ <li><strong>Container names</strong> are <code>forgeqe-&lt;project&gt;-&lt;service&gt;</code>. <code>&lt;project&gt;</code> is a hash of the project folder, so two projects
365
373
  never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares (a database's data folder), so nothing is left on the machine. A container is never reused with old
366
374
  settings.</li>
367
375
  <li><strong>Labels:</strong> each container carries <code>forgeqe=1</code>, <code>forgeqe.project</code>, <code>forgeqe.service</code> and <code>forgeqe.kind</code>.
@@ -372,10 +380,11 @@ settings.</li>
372
380
  text could mount the whole disk or run privileged, so:</p>
373
381
  <ul>
374
382
  <li><strong>No commands from the model.</strong> The agent names services that forgeqe.yaml declares, and ForgeQE builds the
375
- argument array (<code>docker run …</code>). It never uses a shell. Images, flags and mounts never come from a request.</li>
376
- <li><strong>The same restrictions for every container:</strong> <code>--security-opt no-new-privileges</code>, <code>--pids-limit 1024</code>, ports on
377
- 127.0.0.1, and read-only mounts. There is no setting to turn these off.</li>
378
- <li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only). The path is resolved with <code>realpath</code> and must be inside the project. A mount
383
+ command itself, without a shell. Images, flags and mounts never come from a request.</li>
384
+ <li><strong>The same restrictions for every container:</strong> no privilege gain, a process limit, ports on 127.0.0.1, and
385
+ read-only mounts. There is no setting to turn these off.</li>
386
+ <li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only).
387
+ The real path, links followed, must be inside the project. A mount
379
388
  that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>, <code>.npmrc</code>), a file named like a key (<code>*.pem</code>, <code>id_rsa</code>,
380
389
  <code>llms.json</code>) or a link is refused. A container can send what it reads anywhere.</li>
381
390
  <li><strong>Environment:</strong>
@@ -387,38 +396,15 @@ that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>,
387
396
  </ul>
388
397
  </li>
389
398
  <li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code>, <code>docker-compose</code> and <code>podman-compose</code> are denied in the
390
- shell of ForgeQE's agent and of Quill. So the only way to start a container is these tools.</li>
391
- <li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask the user before starting, as <code>run_tests</code> does.</li>
399
+ shell of ForgeQE's agent and of Quill. So the only way for an agent to start a container is through ForgeQE.</li>
400
+ <li><strong>Asked first:</strong> the agent asks you before it starts services or a mock, as it does before running tests.</li>
392
401
  </ul>
393
- <h2 id="code"><a href="#code" class="hash">#</a>Code</h2>
394
- <div class="tbl tbl--cols-2"><table>
395
- <thead>
396
- <tr><th>File</th><th>Contents</th></tr>
397
- </thead>
398
- <tbody>
399
- <tr><td data-label="File"><code>src/containers/config.ts</code></td><td data-label="Contents"><code>containers:</code> in forgeqe.yaml: services, images, ports, env, secrets, mounts, ready checks</td></tr>
400
- <tr><td data-label="File"><code>src/containers/run.ts</code></td><td data-label="Contents">The runtime (docker or podman), <code>run</code> arguments, mount and secret checks, start and wait, status, logs, stop, the session's containers</td></tr>
401
- <tr><td data-label="File"><code>src/containers/mock.ts</code></td><td data-label="Contents">WireMock stubs from run traffic and from contract sets; values from JSON schemas</td></tr>
402
- <tr><td data-label="File"><code>src/containers/compose.ts</code></td><td data-label="Contents">docker-compose files as services: what is translated, ignored, left out or refused</td></tr>
403
- <tr><td data-label="File"><code>src/containers/tests.ts</code></td><td data-label="Contents"><code>run_tests</code> in a container: arguments, environment, mounts, output, browsers from <code>docker top</code></td></tr>
404
- <tr><td data-label="File"><code>src/containers/workspace.ts</code></td><td data-label="Contents"><code>containers.workspace</code>: the container, its home volume, the agent's shell script, its test runner</td></tr>
405
- <tr><td data-label="File"><code>src/containers/active.ts</code></td><td data-label="Contents">The registered workspaces, by repository: <code>runTestCommand</code> and <code>openSession</code> look them up</td></tr>
406
- <tr><td data-label="File"><code>src/containers/masks.ts</code></td><td data-label="Contents">The repository's credential files and folders, covered in every container that mounts it</td></tr>
407
- <tr><td data-label="File"><code>src/containers/browser.ts</code></td><td data-label="Contents"><code>browser.provider: docker</code>: the browser container, its token gateway, the endpoint</td></tr>
408
- <tr><td data-label="File"><code>src/containers/command.ts</code></td><td data-label="Contents"><code>forgeqe services</code></td></tr>
409
- <tr><td data-label="File"><code>skills/testcontainers/SKILL.md</code></td><td data-label="Contents">Quill's Testcontainers skill</td></tr>
410
- <tr><td data-label="File"><code>src/mcp/containertools.ts</code></td><td data-label="Contents">The agent's <code>services</code> and <code>mock_service</code></td></tr>
411
- </tbody>
412
- </table></div>
413
- <p>Tests: <code>bun test tests/containers.test.ts tests/workspace.test.ts</code>, which use a fake runtime that records each command
414
- (<code>workspace.test.ts</code> also runs the gateway against a stand-in browser, and the agent runtime against the workspace's
415
- script). <code>tests/containers.live.test.ts</code> uses real Docker.</p>
416
402
 
417
403
  </article>
418
404
 
419
405
  </main>
420
406
  <aside class="docs-toc" aria-label="On this page">
421
- <p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#declaring-services">Declaring services</a></li><li><a href="#compose-files">Compose files</a></li><li><a href="#the-project-network">The project network</a></li><li><a href="#tests-in-a-container">Tests in a container</a></li><li><a href="#the-workspace">The workspace</a></li><li><a href="#the-browser-in-a-container">The browser in a container</a></li><li><a href="#testcontainers-quill">Testcontainers (Quill)</a></li><li><a href="#mocks">Mocks</a></li><li><a href="#lifetime">Lifetime</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li></ul>
407
+ <p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#declaring-services">Declaring services</a></li><li><a href="#compose-files">Compose files</a></li><li><a href="#the-project-network">The project network</a></li><li><a href="#tests-in-a-container">Tests in a container</a></li><li><a href="#the-workspace">The workspace</a></li><li><a href="#the-browser-in-a-container">The browser in a container</a></li><li><a href="#testcontainers-quill">Testcontainers (Quill)</a></li><li><a href="#mocks">Mocks</a></li><li><a href="#lifetime">Lifetime</a></li><li><a href="#security">Security</a></li></ul>
422
408
  </aside>
423
409
  </div>
424
410
  <footer class="foot">
@@ -11,6 +11,7 @@
11
11
  <link rel="stylesheet" href="../docs.css">
12
12
  <script src="../search.js" defer></script>
13
13
  <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
14
15
  <link rel="stylesheet" href="../../app-look.css">
15
16
  <link rel="stylesheet" href="../app-theme.css">
16
17
  </head>
@@ -112,11 +113,11 @@
112
113
  <div class="container docs-layout">
113
114
  <nav class="docs-side" aria-label="Docs">
114
115
  <a class="side-home" href="../index.html"><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="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="index.html" aria-current="page"><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="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="index.html" aria-current="page"><span>Cost-aware execution</span></a></li></ul></div>
116
117
  </nav>
117
118
  <main id="main" class="docs-main">
118
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>For contributors</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="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="index.html" aria-current="page"><span>Cost-aware execution</span></a></li></ul></div></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="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="index.html" aria-current="page"><span>Cost-aware execution</span></a></li></ul></div></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-speed"/></svg>Cost-aware execution</h1>
121
122
  <article class="prose">
122
123
  <p>Status: proposal · 2026-10-15</p>
@@ -416,7 +417,7 @@ different state. Flows like that stay with the agent until replay can repeat tho
416
417
  <p>Tool definitions are part of the fixed overhead in section 1, and they grew with the desktop, mobile and
417
418
  TestMu tools. The forgeqe agent's fixed context went past its budget. ForgeQE's agent now gets the tools of
418
419
  the capabilities a turn needs, not all of them (<code>src/mcp/scope.ts</code>; see
419
- <a href="../architecture/index.html#tool-scope-srcmcpscopets-srccapabilities">ARCHITECTURE.md</a>):</p>
420
+ <a href="../architecture/index.html">ARCHITECTURE.md</a>):</p>
420
421
  <ul>
421
422
  <li><strong>Every turn:</strong> the core (help and setup, <code>use_capabilities</code>, the test environments and their apps).</li>
422
423
  <li><strong>Picked without a model call:</strong> up to four capabilities matched from the request's words, the apps it