@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.
- package/HOW_TO_USE.md +5003 -2077
- package/README.md +155 -449
- package/dist/docs-site/docs/app-theme.css +30 -9
- package/dist/docs-site/docs/architecture/index.html +45 -515
- package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
- package/dist/docs-site/docs/area-api/index.html +257 -116
- package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
- package/dist/docs-site/docs/area-browser/index.html +167 -125
- package/dist/docs-site/docs/area-data/index.html +178 -188
- package/dist/docs-site/docs/area-desktop/index.html +329 -282
- package/dist/docs-site/docs/area-mobile/index.html +138 -86
- package/dist/docs-site/docs/area-operations/index.html +567 -393
- package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
- package/dist/docs-site/docs/area-quality/index.html +111 -49
- package/dist/docs-site/docs/area-release/index.html +180 -65
- package/dist/docs-site/docs/area-setup/index.html +742 -339
- package/dist/docs-site/docs/area-systems/index.html +32 -48
- package/dist/docs-site/docs/area-test-cases/index.html +387 -154
- package/dist/docs-site/docs/containers/index.html +87 -101
- package/dist/docs-site/docs/cost-architecture/index.html +4 -3
- package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
- package/dist/docs-site/docs/desktop/index.html +277 -297
- package/dist/docs-site/docs/desktop-ci/index.html +15 -5
- package/dist/docs-site/docs/docs-tabs.js +56 -0
- package/dist/docs-site/docs/evidence/index.html +50 -49
- package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
- package/dist/docs-site/docs/get-started/index.html +464 -168
- package/dist/docs-site/docs/graphify/index.html +8 -7
- package/dist/docs-site/docs/guardrails/index.html +20 -4
- package/dist/docs-site/docs/index.html +4 -3
- package/dist/docs-site/docs/mobile/index.html +96 -76
- package/dist/docs-site/docs/model-routing/index.html +44 -18
- package/dist/docs-site/docs/overview/index.html +23 -7
- package/dist/docs-site/docs/product-graph/index.html +13 -12
- package/dist/docs-site/docs/product-knowledge/index.html +16 -5
- package/dist/docs-site/docs/product-views/index.html +7 -6
- package/dist/docs-site/docs/reference/index.html +95 -65
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +444 -126
- package/dist/docs-site/docs/web-app/index.html +54 -51
- package/dist/forgeqe.js +1822 -1822
- package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
- package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
- package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
- package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
- package/dist/web/assets/Chat-DnBUm_97.js +3 -0
- package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
- package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
- package/dist/web/assets/Cost-CWrc4McH.js +1 -0
- package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
- package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
- package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
- package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
- package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
- package/dist/web/assets/Features-haQchkhA.js +1 -0
- package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
- package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
- package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
- package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
- package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
- package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
- package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
- package/dist/web/assets/Product-BQSiR28a.js +7 -0
- package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
- package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
- package/dist/web/assets/Readiness-CkknP87n.js +1 -0
- package/dist/web/assets/Record-09IsC9U-.js +1 -0
- package/dist/web/assets/Regression-BL4MfN47.js +5 -0
- package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
- package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
- package/dist/web/assets/Response-DTBFBeKB.js +9 -0
- package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
- package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
- package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
- package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
- package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
- package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
- package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
- package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
- package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
- package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
- package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
- package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
- package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
- package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
- package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
- package/dist/web/assets/filters-C7phIFfd.js +1 -0
- package/dist/web/assets/fold-i73P-EDV.js +1 -0
- package/dist/web/assets/head-BtTqyLlj.js +1 -0
- package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
- package/dist/web/assets/index-ClFOh63x.css +2 -0
- package/dist/web/assets/index-YGWJEkAT.js +64 -0
- package/dist/web/assets/input-C2vQ9O3a.js +1 -0
- package/dist/web/assets/logos-BmbNTDu2.js +1 -0
- package/dist/web/assets/palette-XFlqvgZl.js +1 -0
- package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
- package/dist/web/assets/parts-DEVx2Sea.js +1 -0
- package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
- package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
- package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
- package/dist/web/assets/route-Dg53WdFu.js +1 -0
- package/dist/web/index.html +6 -7
- package/docs/ARCHITECTURE.md +50 -563
- package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
- package/docs/CONTAINERS.md +87 -87
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
- package/docs/DESKTOP-CI.md +18 -3
- package/docs/DESKTOP.md +298 -297
- package/docs/MOBILE.md +103 -71
- package/docs/MODEL_ROUTING.md +48 -15
- package/docs/WEB_APP.md +49 -44
- package/docs/feature-test-prompts.md +29 -16
- package/docs/user-guide.html +5263 -2453
- package/guardrails/README.md +22 -2
- package/knowledge/README.md +15 -2
- package/package.json +1 -1
- package/prompts/brain.md +1 -0
- package/py/forgeqe_engine/recordsession.py +100 -24
- package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
- package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
- package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
- package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
- package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
- package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
- package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
- package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
- package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
- package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
- package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
- package/dist/web/assets/Features-CQzNo_WP.js +0 -1
- package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
- package/dist/web/assets/Impact-CfccsL_k.js +0 -3
- package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
- package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
- package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
- package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
- package/dist/web/assets/Product-nYV_scOV.js +0 -7
- package/dist/web/assets/Production-CGSbEWVa.js +0 -1
- package/dist/web/assets/Quality-BIypojZm.js +0 -1
- package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
- package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
- package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
- package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
- package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
- package/dist/web/assets/Response-mhBThq2b.js +0 -9
- package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
- package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
- package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
- package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
- package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
- package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
- package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
- package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
- package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
- package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
- package/dist/web/assets/filters-CnAMr286.js +0 -1
- package/dist/web/assets/fold-D_O_VZui.js +0 -1
- package/dist/web/assets/head-CRo48rPt.js +0 -1
- package/dist/web/assets/index-B3JsM7tv.js +0 -64
- package/dist/web/assets/index-CafApcbZ.css +0 -2
- package/dist/web/assets/input-CtzK50ZF.js +0 -1
- package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
- package/dist/web/assets/logos-D4oVWzqa.js +0 -1
- package/dist/web/assets/palette-DAaGSao7.js +0 -1
- package/dist/web/assets/parts-D357Wolo.js +0 -1
- package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
- package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
- 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
|
|
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
|
|
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:
|
|
123
|
-
|
|
124
|
-
|
|
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>
|
|
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
|
|
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>
|
|
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: "start the database", "is the queue up?", "stop the services". 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>
|
|
155
|
-
<
|
|
156
|
-
|
|
157
|
-
<
|
|
158
|
-
<li>"mock the payments API from the last run"</li>
|
|
159
|
-
<li>"make a mock service from openapi.yaml and point order-api at it"</li>
|
|
160
|
-
<li>"stop the services"</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>: "mock the
|
|
170
|
+
payments API from the last run", or "make a mock service from openapi.yaml and point order-api at it". 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:&
|
|
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:<digest>
|
|
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 -> 5432; "15432:5432" 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-&
|
|
240
|
+
<p>Each project's containers join their own network, <code>forgeqe-<project></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
|
|
243
|
-
|
|
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
|
|
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
|
|
251
|
-
|
|
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>
|
|
273
|
-
|
|
274
|
-
in
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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-&
|
|
291
|
+
<li>one per ForgeQE process and project, <code>forgeqe-<project>-workspace-<id></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-&
|
|
289
|
-
|
|
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-<project>-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
|
|
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>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
<
|
|
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:&
|
|
324
|
+
(<code>http://order-api:8080</code>). An app this machine serves is <code>http://host.docker.internal:<port></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
|
|
321
|
-
|
|
322
|
-
<li>A run explored in a container is replayed in one even when the provider is changed back later
|
|
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
|
|
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
|
|
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
|
|
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> (
|
|
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
|
|
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
|
|
360
|
+
<p>A description given as a link is fetched by ForgeQE itself, with no credentials. The stubs are written to <code>.forgeqe/mocks/<name>/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>
|
|
357
|
-
|
|
363
|
+
<p>Ask for an API app of env.yaml to use the mock ("point order-api at it"), 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_<APP>_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
|
|
362
|
-
|
|
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-&
|
|
372
|
+
<li><strong>Container names</strong> are <code>forgeqe-<project>-<service></code>. <code><project></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
|
-
|
|
376
|
-
<li><strong>The same restrictions for every container:</strong>
|
|
377
|
-
|
|
378
|
-
<li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only).
|
|
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
|
|
391
|
-
<li><strong>Asked first:</strong>
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|