@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,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" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
115
|
-
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="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="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 guide chapter-page">
|
|
118
119
|
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
|
|
119
|
-
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="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="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><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-containers">Services, mocks, workspace and browser in Docker or Podman</a></li><li><a href="#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">ForgeQE containers: services and mocks in Docker or Podman</a></li><li><a href="#doc-docs-containers-use">Use</a></li><li><a href="#doc-docs-containers-declaring-services">Declaring services</a></li><li><a href="#doc-docs-containers-compose-files">Compose files</a></li><li><a href="#doc-docs-containers-the-project-network">The project network</a></li><li><a href="#doc-docs-containers-tests-in-a-container">Tests in a container</a></li><li><a href="#doc-docs-containers-the-workspace">The workspace</a></li><li><a href="#doc-docs-containers-the-browser-in-a-container">The browser in a container</a></li><li><a href="#doc-docs-containers-testcontainers-quill">Testcontainers (Quill)</a></li><li><a href="#doc-docs-containers-mocks">Mocks</a></li><li><a href="#doc-docs-containers-lifetime">Lifetime</a></li><li><a href="#doc-docs-containers-security">Security</a></li><li><a href="#cap-production-errors">Production errors and the tests that cover them</a></li><li><a href="#cap-model-cost">Model cost and usage</a></li><li><a href="#cap-monitoring">Scheduled monitoring with alerts</a></li><li><a href="#cap-jobs">Background jobs on a schedule</a></li><li><a href="#cap-custom-agents">Your team's custom agents</a></li><li><a href="#cap-notifications">Teams and email notifications</a></li><li><a href="#cap-pipelines">CI pipelines</a></li></ul></nav></details></div>
|
|
120
121
|
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-network"/></svg>Operations and monitoring</h1>
|
|
121
122
|
<p class="guide-lead">Monitoring and CI pipelines</p>
|
|
122
123
|
<article class="spec feat" id="cap-containers">
|
|
@@ -128,13 +129,12 @@
|
|
|
128
129
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Starts only services declared in forgeqe.yaml containers.services; it never runs an image, flag or mount from a request</li><li>No privileged containers, host network, or access to the container runtime's socket; ports on 127.0.0.1 only; mounts read-only from inside the project</li><li>Mocks answer REST calls (WireMock); GraphQL, SOAP and gRPC are not mocked</li><li>Reads docker-compose files only for their services' image, ports, environment, bind mounts, command and depends_on; refuses build, privileged, network_mode, cap_add, devices and env_file; leaves named volumes out</li><li>The workspace mounts the repository with its credential files (.env, .npmrc, keys) covered; the agents and the model key stay on this machine; ForgeQE's own agent keeps this machine's shell</li><li>A browser in a container reaches this machine's apps as host.docker.internal, not localhost; it is headless, or visible on a virtual display, never on this screen</li></ul></div>
|
|
129
130
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>services</code> <code>mock_service</code></p></div>
|
|
130
131
|
</div>
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
|
|
133
|
+
</article>
|
|
134
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-containers-and-mock-services">
|
|
133
135
|
<h4>Containers and mock services</h4>
|
|
134
|
-
<div class="prose"><p>When Docker or Podman is installed, ForgeQE can start the services a test run needs, and mock an API the tests should
|
|
135
|
-
|
|
136
|
-
from openapi.yaml and point order-api at it", "show the db logs". Full reference: <a href="#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">docs/CONTAINERS.md</a>.</p>
|
|
137
|
-
<p>The project declares its services in forgeqe.yaml. ForgeQE starts only these, and builds each command itself:</p>
|
|
136
|
+
<div class="prose"><p>When Docker or Podman is installed, ForgeQE can start the services a test run needs, and mock an API the tests should not call. Full reference: <a href="#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">docs/CONTAINERS.md</a>.</p>
|
|
137
|
+
<p><strong>Declaring services.</strong> The project declares its services in forgeqe.yaml (<strong>Settings › Containers</strong>). ForgeQE starts only these, and builds each command itself:</p>
|
|
138
138
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">containers:
|
|
139
139
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> runtime: podman # default: docker, else podman, on PATH
|
|
140
140
|
</span></span><span class="ln"><span class="cmd"> services:
|
|
@@ -147,46 +147,42 @@ from openapi.yaml and point order-api at it", "show the db logs".
|
|
|
147
147
|
</span></span><span class="ln ln--pair"><span class="cmd"> ready: { tcp: 5432 }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or { http: /health, port: 8080 }
|
|
148
148
|
</span></span><span class="ln"><span class="cmd"> timeout: 90
|
|
149
149
|
</span></span></code></pre></div>
|
|
150
|
+
<p><strong>Starting and stopping services.</strong></p>
|
|
151
|
+
<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>
|
|
152
|
+
<ol>
|
|
153
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
154
|
+
<li>Ask in words: "start the database and the queue", "mock the payments API from the last run", "make a mock from openapi.yaml and point order-api at it", "show the db logs".</li>
|
|
155
|
+
<li>Agree when the agent asks before it starts anything.</li>
|
|
156
|
+
</ol>
|
|
157
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
150
158
|
<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> declared services, what runs, whether Docker answers
|
|
151
159
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe services up db</span><span class="pad"> </span><span class="cm"><span class="h">#</span> start and wait until ready; keeps running after the command
|
|
152
160
|
</span></span><span class="ln"><span class="cmd">forgeqe services logs db --lines 50
|
|
153
161
|
</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 this project's containers, mocks included
|
|
154
162
|
</span></span></code></pre></div>
|
|
163
|
+
<p>In the shell, ask in the same words as in the web app.</p>
|
|
164
|
+
</div></div><p><strong>Mocks, sessions and questions.</strong></p>
|
|
155
165
|
<ul>
|
|
156
|
-
<li><strong>Mocks
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
<code>.forgeqe/mocks/<name>/mappings</code>. With <code>for_app</code>, an API app of the active environment points at the mock for the
|
|
160
|
-
rest of the session, so API tests and the tests ForgeQE runs (<code>FORGEQE_APP_<APP>_URL</code>) use it.</li>
|
|
161
|
-
<li><strong>Session:</strong> what the agent starts (services or mocks) stops when the shell, <code>forgeqe run</code>, or <code>forgeqe mcp</code> ends.
|
|
162
|
-
<code>forgeqe services up</code> keeps its services running until <code>forgeqe services down</code>.</li>
|
|
163
|
-
<li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask before they start anything.</li>
|
|
166
|
+
<li><strong>Mocks</strong> are WireMock stubs. Made from a run, they answer what the app really got. Made from an OpenAPI or Swagger description, or a contract set, they answer with its examples, or values made from its schemas. The mock runs on a free port of 127.0.0.1 (<code>wiremock/wiremock:3.9.1</code>, or <code>containers.mock.image</code>), and its stubs are in <code>.forgeqe/mocks/<name>/mappings</code>. Asked to point an API app of the active environment at the mock, ForgeQE does so for the rest of the session, so API tests and the tests ForgeQE runs (<code>FORGEQE_APP_<APP>_URL</code>) use it.</li>
|
|
167
|
+
<li><strong>Session:</strong> what the agent starts (services or mocks) stops when the chat, the shell, <code>forgeqe run</code> or <code>forgeqe mcp</code> ends. <code>forgeqe services up</code> keeps its services running until <code>forgeqe services down</code>.</li>
|
|
168
|
+
<li><strong>Asked first:</strong> starting services and mocks asks before anything starts.</li>
|
|
164
169
|
</ul>
|
|
165
|
-
<p>Guard rails
|
|
170
|
+
<p><strong>Guard rails.</strong></p>
|
|
166
171
|
<ul>
|
|
167
|
-
<li><strong>Fixed run settings:</strong> every container gets no new privileges, a process limit, ports on 127.0.0.1, read-only
|
|
168
|
-
|
|
169
|
-
<li><strong>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<li><strong>Mounts:</strong> inside the project only. A mount that is or holds a hidden file (<code>.env</code>, <code>.git</code>), a file named like a key,
|
|
173
|
-
or a link is refused, because a container can send what it reads anywhere.</li>
|
|
174
|
-
<li><strong>The docker, podman and compose programs only see</strong> the variables they need to find their daemon, plus the service's
|
|
175
|
-
listed secrets.</li>
|
|
176
|
-
<li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code> and compose commands are refused for ForgeQE's agent and
|
|
177
|
-
Quill. Containers start only through these tools.</li>
|
|
172
|
+
<li><strong>Fixed run settings:</strong> every container gets no new privileges, a process limit, ports on 127.0.0.1, read-only mounts, and labels with the project, so ForgeQE stops only its own containers.</li>
|
|
173
|
+
<li><strong>Refused service settings:</strong> <code>privileged</code>, <code>network</code>, <code>cap_add</code>, <code>devices</code>, <code>user</code>, and anything else that is not a service setting. Also refused: a port bound to another address, an image without an exact version, and a secret that is one of ForgeQE's own keys.</li>
|
|
174
|
+
<li><strong>Mounts:</strong> inside the project only. A mount that is or holds a hidden file (<code>.env</code>, <code>.git</code>), a file named like a key, or a link is refused, because a container can send what it reads anywhere.</li>
|
|
175
|
+
<li><strong>The docker, podman and compose programs only see</strong> the variables they need to find their daemon, plus the service's listed secrets.</li>
|
|
176
|
+
<li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code> and compose commands are refused for ForgeQE's agent and Quill. Containers start only through ForgeQE.</li>
|
|
178
177
|
</ul>
|
|
179
|
-
<p><strong>Compose files.</strong> <code>containers.compose: docker-compose.yml</code> reads the file's services into the same list, checked by the
|
|
180
|
-
same rules (forgeqe.yaml's own declaration of a service wins):</p>
|
|
178
|
+
<p><strong>Compose files.</strong> <code>containers.compose: docker-compose.yml</code> reads the file's services into the same list, checked by the same rules (forgeqe.yaml's own declaration of a service wins):</p>
|
|
181
179
|
<ul>
|
|
182
|
-
<li><strong>Translated:</strong> <code>image</code>, <code>ports</code>, <code>environment</code>, bind mounts, <code>command</code> and <code>depends_on</code>. A <code>${NAME}</code> value becomes a
|
|
183
|
-
secret passed by name.</li>
|
|
180
|
+
<li><strong>Translated:</strong> <code>image</code>, <code>ports</code>, <code>environment</code>, bind mounts, <code>command</code> and <code>depends_on</code>. A <code>${NAME}</code> value becomes a secret passed by name.</li>
|
|
184
181
|
<li><strong>Left out:</strong> named volumes. Mounts made read-only are listed in the notes.</li>
|
|
185
182
|
<li><strong>Ignored:</strong> <code>container_name</code>, <code>restart</code>, <code>healthcheck</code> and <code>networks</code>.</li>
|
|
186
183
|
<li><strong>Refused:</strong> <code>build</code>, <code>privileged</code>, <code>network_mode</code>, <code>cap_add</code>, <code>devices</code>, <code>pid</code> and <code>env_file</code>.</li>
|
|
187
184
|
</ul>
|
|
188
|
-
<p><code>x-forgeqe: { ready: … }</code> sets the ready check. Without it, a service is ready when its first port takes connections.
|
|
189
|
-
The project's containers share their own network, so services reach each other by name (<code>db:5432</code>).</p>
|
|
185
|
+
<p><code>x-forgeqe: { ready: … }</code> sets the ready check. Without it, a service is ready when its first port takes connections. The project's containers share their own network, so services reach each other by name (<code>db:5432</code>).</p>
|
|
190
186
|
<p><strong>Docker as the workspace and the browser.</strong> Two settings move the rest of the work into containers:</p>
|
|
191
187
|
<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:
|
|
192
188
|
</span></span><span class="ln ln--pair"><span class="cmd"> provider: docker</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the browser agent, the replay and Quill's live browser use Chromium in a container
|
|
@@ -198,18 +194,11 @@ The project's containers share their own network, so services reach each other b
|
|
|
198
194
|
</span></span><span class="ln ln--pair"><span class="cmd"> headless: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> visible on a virtual display inside the container (some sites refuse headless)
|
|
199
195
|
</span></span></code></pre></div>
|
|
200
196
|
<ul>
|
|
201
|
-
<li><strong>Workspace:</strong> Quill builds, restores, runs and fixes tests in a Linux container of the project's image, with the
|
|
202
|
-
|
|
203
|
-
project's, so package caches outlive the session. The agents and the model key stay on this machine, and ForgeQE's
|
|
204
|
-
own agent keeps this machine's shell. <code>.env</code>, keys and other credential files in the repository are covered inside
|
|
205
|
-
the containers.</li>
|
|
206
|
-
<li><strong>Browser:</strong> each browser run gets a fresh container, reached through a gateway that wants a random token. A
|
|
207
|
-
declared service is reached by its name; an app on this machine is <code>host.docker.internal</code>, not <code>localhost</code>.
|
|
208
|
-
<code>--browser-provider docker</code> picks it for one run.</li>
|
|
197
|
+
<li><strong>Workspace:</strong> Quill builds, restores, runs and fixes tests in a Linux container of the project's image, with the repository at the same path. Each test run gets its own container from that image, and <code>HOME</code> is a volume of the project's, so package caches outlive the session. The agents and the model key stay on this machine, and ForgeQE's own agent keeps this machine's shell. <code>.env</code>, keys and other credential files in the repository are covered inside the containers.</li>
|
|
198
|
+
<li><strong>Browser:</strong> each browser run gets a fresh container, reached through a gateway that wants a random token. A declared service is reached by its name; an app on this machine is <code>host.docker.internal</code>, not <code>localhost</code>. <code>--browser-provider docker</code> picks it for one run.</li>
|
|
209
199
|
<li><code>FORGEQE_HOST_RUN=1</code> runs Quill's commands and the tests on this machine for a session.</li>
|
|
210
200
|
</ul>
|
|
211
|
-
<p><strong>Tests in a container.</strong> With <code>containers.tests</code>,
|
|
212
|
-
on this machine, after starting the services it lists:</p>
|
|
201
|
+
<p><strong>Tests in a container.</strong> With <code>containers.tests</code>, the repository's tests run in that image instead of on this machine, after the services it lists start:</p>
|
|
213
202
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">containers:
|
|
214
203
|
</span></span><span class="ln"><span class="cmd"> tests:
|
|
215
204
|
</span></span><span class="ln"><span class="cmd"> image: mcr.microsoft.com/playwright:v1.48.2-jammy
|
|
@@ -217,65 +206,69 @@ on this machine, after starting the services it lists:</p>
|
|
|
217
206
|
</span></span><span class="ln"><span class="cmd"> secrets: [TEST_DB_PASSWORD]
|
|
218
207
|
</span></span></code></pre></div>
|
|
219
208
|
<ul>
|
|
220
|
-
<li><strong>What runs:</strong> the command you confirmed, inside the container, in the repository (mounted at its own path, so the
|
|
221
|
-
result files land where ForgeQE reads them).</li>
|
|
209
|
+
<li><strong>What runs:</strong> the command you confirmed, inside the container, in the repository (mounted at its own path, so the result files land where ForgeQE reads them).</li>
|
|
222
210
|
<li><strong>User:</strong> your user.</li>
|
|
223
|
-
<li><strong>Variables:</strong> only the environment's <code>FORGEQE_*</code> variables, the saved logins' variables, and the listed env and
|
|
224
|
-
|
|
225
|
-
<li><strong>To run on this machine instead:</strong> ask to run the tests on this machine (<code>in_container: false</code>).</li>
|
|
211
|
+
<li><strong>Variables:</strong> only the environment's <code>FORGEQE_*</code> variables, the saved logins' variables, and the listed env and secrets.</li>
|
|
212
|
+
<li><strong>To run on this machine instead:</strong> ask to run the tests on this machine.</li>
|
|
226
213
|
<li><strong>Machines:</strong> Linux and macOS.</li>
|
|
227
214
|
</ul>
|
|
228
|
-
<p><strong>Testcontainers.</strong> When a test needs a real database or queue, or the repository already uses Testcontainers, Quill's
|
|
229
|
-
<code>testcontainers</code> skill writes the test to start it from code. It reuses the repository's fixtures, pins images, waits
|
|
230
|
-
for readiness, and uses the mapped port. It never uses privileged mode, the host network, or the Docker socket.</p>
|
|
215
|
+
<p><strong>Testcontainers.</strong> When a test needs a real database or queue, or the repository already uses Testcontainers, Quill's <code>testcontainers</code> skill writes the test to start it from code. It reuses the repository's fixtures, pins images, waits for readiness, and uses the mapped port. It never uses privileged mode, the host network, or the Docker socket.</p>
|
|
231
216
|
</div>
|
|
232
217
|
</section>
|
|
233
218
|
<section class="doc" id="doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">
|
|
234
219
|
<h4>ForgeQE containers: services and mocks in Docker or Podman</h4>
|
|
235
|
-
<div class="prose"><p>Status:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<ul>
|
|
239
|
-
<li>Postgres from forgeqe.yaml and from a compose file.</li>
|
|
240
|
-
<li>A WireMock mock that answers a recorded run's calls.</li>
|
|
241
|
-
<li>A tests container that reaches the database by name and writes its results into the repository as this machine's
|
|
242
|
-
user.</li>
|
|
243
|
-
</ul>
|
|
220
|
+
<div class="prose"><p>Status: tested on real Docker with Postgres from forgeqe.yaml and from a compose file, a WireMock mock that answers a
|
|
221
|
+
recorded run's calls, and a tests container that reaches the database by name and writes its results into the
|
|
222
|
+
repository as this machine's user.</p>
|
|
244
223
|
<p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
|
|
245
224
|
<ul>
|
|
246
225
|
<li><strong>Services a test run needs:</strong> a database, a queue, a cache, or the API under test. The project declares them in
|
|
247
226
|
forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
|
|
248
227
|
<li><strong>Mocks of an API:</strong> WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so
|
|
249
228
|
the tests can run without the real service.</li>
|
|
250
|
-
<li><strong>The repository's tests in a container:</strong>
|
|
229
|
+
<li><strong>The repository's tests in a container:</strong> ForgeQE runs the test command you confirmed in an image, instead of
|
|
251
230
|
on this machine, after starting the services the tests need.</li>
|
|
252
231
|
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Quill's shell commands (build, restore, run,
|
|
253
232
|
git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.</li>
|
|
254
233
|
<li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and Quill's live
|
|
255
|
-
browser
|
|
234
|
+
browser use Chromium in a container of Microsoft's Playwright image.</li>
|
|
256
235
|
</ul>
|
|
257
236
|
<p>Quill also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
|
|
258
|
-
<p>
|
|
259
|
-
neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
|
|
237
|
+
<p>When neither Docker nor Podman is on PATH, ForgeQE's agent does not offer to start services or mocks.</p>
|
|
260
238
|
</div>
|
|
261
239
|
</section>
|
|
262
240
|
<section class="doc" id="doc-docs-containers-use">
|
|
263
241
|
<h4>Use</h4>
|
|
264
|
-
<div class="prose"><
|
|
242
|
+
<div class="prose"><p><strong>Setting it up.</strong> Pick the runtime, declare the services, and choose which jobs use containers.</p>
|
|
243
|
+
<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>
|
|
244
|
+
<ol>
|
|
245
|
+
<li>Open <strong>Settings › Containers</strong>.</li>
|
|
246
|
+
<li>Under <strong>Runtime</strong>, pick the <strong>Runtime</strong> (empty: Docker, else Podman), and optionally <strong>Compose files</strong> and the
|
|
247
|
+
<strong>Mocks' image</strong>.</li>
|
|
248
|
+
<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
|
|
249
|
+
is ready.</li>
|
|
250
|
+
<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
|
|
251
|
+
should use one.</li>
|
|
252
|
+
</ol>
|
|
253
|
+
<p>For the browser, also pick <strong>Chrome in Docker</strong> as the <strong>Browser</strong> in <strong>Settings › Browser</strong>.</p>
|
|
254
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
255
|
+
<p>Edit <code>containers:</code> in forgeqe.yaml (see <a href="#doc-docs-containers-declaring-services">Declaring services</a>), and <code>browser.provider: docker</code>
|
|
256
|
+
for the browser.</p>
|
|
257
|
+
</div></div><p><strong>Starting and stopping services.</strong></p>
|
|
258
|
+
<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>
|
|
259
|
+
<p>In a chat, ask, for example: "start the database", "is the queue up?", "stop the services". The agent asks before it
|
|
260
|
+
starts anything.</p>
|
|
261
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
262
|
+
<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
|
|
265
263
|
</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
|
|
266
264
|
</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
|
|
267
265
|
</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
|
|
268
266
|
</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)
|
|
269
267
|
</span></span></code></pre></div>
|
|
270
|
-
<p>
|
|
271
|
-
<
|
|
272
|
-
|
|
273
|
-
<
|
|
274
|
-
<li>"mock the payments API from the last run"</li>
|
|
275
|
-
<li>"make a mock service from openapi.yaml and point order-api at it"</li>
|
|
276
|
-
<li>"stop the services"</li>
|
|
277
|
-
</ul>
|
|
278
|
-
<p>The agent asks before it starts anything.</p>
|
|
268
|
+
<p>The same requests work in <code>forgeqe start</code> or <code>forgeqe run</code>.</p>
|
|
269
|
+
</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
|
|
270
|
+
payments API from the last run", or "make a mock service from openapi.yaml and point order-api at it". See
|
|
271
|
+
<a href="#doc-docs-containers-mocks">Mocks</a>.</p>
|
|
279
272
|
</div>
|
|
280
273
|
</section>
|
|
281
274
|
<section class="doc" id="doc-docs-containers-declaring-services">
|
|
@@ -367,17 +360,16 @@ container is on the host's network. <code>forgeqe services down</code> with no n
|
|
|
367
360
|
</span></span><span class="ln"><span class="cmd"> env: { DB_HOST: db }
|
|
368
361
|
</span></span><span class="ln"><span class="cmd"> secrets: [TEST_DB_PASSWORD]
|
|
369
362
|
</span></span></code></pre></div>
|
|
370
|
-
<p>With <code>containers.tests</code> set
|
|
371
|
-
|
|
363
|
+
<p>With <code>containers.tests</code> set (<strong>Tests in a container</strong> in Settings › Containers), the repository's tests ForgeQE runs go
|
|
364
|
+
to that image, unless the agent is asked to run them on this machine. The confirmation says where the tests will run.
|
|
365
|
+
The container:</p>
|
|
372
366
|
<ul>
|
|
373
|
-
<li><strong>Runs the command
|
|
374
|
-
never on this machine.</li>
|
|
367
|
+
<li><strong>Runs the command you confirmed</strong> with the image's own shell, inside the container, never on this machine.</li>
|
|
375
368
|
<li><strong>Mounts the repository read-write at its own path</strong> and works in it, so results land where ForgeQE reads them.
|
|
376
369
|
On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is
|
|
377
370
|
mounted the same way.</li>
|
|
378
|
-
<li><strong>Runs as this machine's user</strong
|
|
379
|
-
|
|
380
|
-
stopped.</li>
|
|
371
|
+
<li><strong>Runs as this machine's user</strong>, so files it writes are yours. It cannot gain privileges, has a process limit, and
|
|
372
|
+
is removed when the run ends or is stopped.</li>
|
|
381
373
|
<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>,
|
|
382
374
|
<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>.
|
|
383
375
|
Secrets are passed by name. ForgeQE's own keys are never passed.</li>
|
|
@@ -398,40 +390,40 @@ workspace container.</p>
|
|
|
398
390
|
</span></span><span class="ln"><span class="cmd"> env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major }
|
|
399
391
|
</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
|
|
400
392
|
</span></span></code></pre></div>
|
|
401
|
-
<p>With <code>containers.workspace</code> set:</p>
|
|
393
|
+
<p>With <code>containers.workspace</code> set (<strong>The coding agents' workspace</strong> in Settings › Containers):</p>
|
|
402
394
|
<ul>
|
|
403
|
-
<li><strong>Quill's shell runs in the container.</strong>
|
|
404
|
-
|
|
405
|
-
in
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
on this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
|
|
395
|
+
<li><strong>Quill's shell runs in the container.</strong> Each command Quill runs goes to the workspace container, in the same folder.
|
|
396
|
+
A folder outside the repository is refused, since the container has only the repository. Quill is told its commands
|
|
397
|
+
run in a Linux container of that image.</li>
|
|
398
|
+
<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
|
|
399
|
+
tests you ask the agent to run. Each run gets its own container, so stopping a run removes it, with the browsers the
|
|
400
|
+
test started.</li>
|
|
401
|
+
<li><strong>What stays on this machine:</strong> the coding agents themselves, the model key, ForgeQE's other secrets, reading and
|
|
402
|
+
editing files (the repository is the same folder in both places), and ForgeQE's own agent, which works with you on
|
|
403
|
+
this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
|
|
413
404
|
<li><strong>The container:</strong>
|
|
414
405
|
<ul>
|
|
415
406
|
<li>one per ForgeQE process and project, <code>forgeqe-<project>-workspace-<id></code>, removed when ForgeQE ends;</li>
|
|
416
407
|
<li>the repository mounted read-write at its own path; credential files in it (<code>.env</code>, <code>.env.*</code> except templates,
|
|
417
408
|
<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>,
|
|
418
409
|
<code>.azure</code>, <code>.docker</code>, <code>.kube</code> and <code>.forgeqe/sessions</code> with an empty folder;</li>
|
|
419
|
-
<li><code>HOME</code> on the project's volume <code>forgeqe-<project>-home</code>, so NuGet, npm and pip caches outlive the session
|
|
420
|
-
|
|
421
|
-
<li>this machine's user (<code>--user uid:gid</code>), <code>no-new-privileges</code>, <code>--pids-limit 4096</code>, the project network;</li>
|
|
410
|
+
<li><code>HOME</code> on the project's volume <code>forgeqe-<project>-home</code>, so NuGet, npm and pip caches outlive the session;</li>
|
|
411
|
+
<li>this machine's user, no privilege gain, a process limit, the project network;</li>
|
|
422
412
|
<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
|
|
423
413
|
<code>FORGEQE_VAR_*</code> and the saved logins' variables, by name.</li>
|
|
424
414
|
</ul>
|
|
425
415
|
</li>
|
|
426
|
-
<li><strong><code>containers.tests</code></strong> still names the image
|
|
427
|
-
workspace's image.</li>
|
|
416
|
+
<li><strong><code>containers.tests</code></strong> still names the image for running the repository's tests when it is set. Without it, those
|
|
417
|
+
tests use the workspace's image.</li>
|
|
428
418
|
</ul>
|
|
429
419
|
<p>This needs a Linux or macOS machine, as tests in a container do.</p>
|
|
430
420
|
</div>
|
|
431
421
|
</section>
|
|
432
422
|
<section class="doc" id="doc-docs-containers-the-browser-in-a-container">
|
|
433
423
|
<h4>The browser in a container</h4>
|
|
434
|
-
<div class="prose"><
|
|
424
|
+
<div class="prose"><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
|
|
425
|
+
a window</strong> under <strong>Browser in a container</strong> in <strong>Settings › Containers</strong>. At a terminal:</p>
|
|
426
|
+
<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:
|
|
435
427
|
</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
|
|
436
428
|
</span></span><span class="ln"><span class="cmd">containers:
|
|
437
429
|
</span></span><span class="ln ln--pair"><span class="cmd"> browser:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional
|
|
@@ -441,19 +433,17 @@ workspace's image.</li>
|
|
|
441
433
|
<ul>
|
|
442
434
|
<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
|
|
443
435
|
gets one that its replay and live browser share. Each is removed when its run or job ends.</li>
|
|
444
|
-
<li><strong>Connection:</strong>
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
<
|
|
448
|
-
the live browser's MCP server through the environment, never a file or a command line.</li>
|
|
449
|
-
<li><strong>Visible or headless:</strong> a visible browser runs on Xvfb inside the container. Sites that turn headless browsers
|
|
436
|
+
<li><strong>Connection:</strong> the browser in the container accepts a connection only with a random token that ForgeQE makes for
|
|
437
|
+
that container, and only from this machine (its port is published on 127.0.0.1 only). The token is never written to
|
|
438
|
+
a file or a command line.</li>
|
|
439
|
+
<li><strong>Visible or headless:</strong> a visible browser runs on a virtual display inside the container. Sites that turn headless browsers
|
|
450
440
|
away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual.</li>
|
|
451
441
|
<li><strong>Reaching the app:</strong> the container joins the project network, so a declared service is reached by its name
|
|
452
442
|
(<code>http://order-api:8080</code>). An app this machine serves is <code>http://host.docker.internal:<port></code>; <code>localhost</code> is the
|
|
453
443
|
container itself, and ForgeQE warns when a run starts there.</li>
|
|
454
|
-
<li><strong>Replay:</strong> one pass, in a new browser context. The second pass
|
|
455
|
-
|
|
456
|
-
<li>A run explored in a container is replayed in one even when the provider is changed back later
|
|
444
|
+
<li><strong>Replay:</strong> one pass, in a new browser context. The second pass that replay tries on this machine (a browser that
|
|
445
|
+
looks less automated) needs a fresh browser start, which a container's running browser does not have.</li>
|
|
446
|
+
<li>A run explored in a container is replayed in one even when the provider is changed back later.</li>
|
|
457
447
|
</ul>
|
|
458
448
|
</div>
|
|
459
449
|
</section>
|
|
@@ -468,32 +458,34 @@ repository: the tests start and stop them, wherever they run.</p>
|
|
|
468
458
|
</section>
|
|
469
459
|
<section class="doc" id="doc-docs-containers-mocks">
|
|
470
460
|
<h4>Mocks</h4>
|
|
471
|
-
<div class="prose"><p
|
|
461
|
+
<div class="prose"><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
|
|
462
|
+
WireMock on a free port of 127.0.0.1:</p>
|
|
472
463
|
<ul>
|
|
473
|
-
<li><strong>From a run</strong> (the default: the latest run, or
|
|
464
|
+
<li><strong>From a run</strong> (the default: the latest run, or one you name):
|
|
474
465
|
<ul>
|
|
475
466
|
<li>One stub per method, path and query of the app's own API calls, answering with the last status, content type
|
|
476
467
|
and body the app got.</li>
|
|
477
|
-
<li>Other sites' calls are left out unless
|
|
468
|
+
<li>Other sites' calls are left out unless you ask for them.</li>
|
|
478
469
|
<li>Failed calls are left out.</li>
|
|
479
470
|
<li>Answers that were cut when recorded are listed under <code>skipped</code>.</li>
|
|
480
471
|
</ul>
|
|
481
472
|
</li>
|
|
482
|
-
<li><strong>From a description</strong> (
|
|
473
|
+
<li><strong>From a description</strong> (OpenAPI 3 or Swagger 2, a link or a file):
|
|
483
474
|
<ul>
|
|
484
475
|
<li>One stub per REST operation.</li>
|
|
485
476
|
<li>Each stub answers with the operation's first success status and a body from the schema's examples, or values
|
|
486
477
|
made from its types.</li>
|
|
487
478
|
<li>A path parameter (<code>/orders/{id}</code>) matches any one path segment.</li>
|
|
488
|
-
<li>Instead of a description, you can
|
|
479
|
+
<li>Instead of a description, you can name a saved API contract set.</li>
|
|
489
480
|
</ul>
|
|
490
481
|
</li>
|
|
491
482
|
<li><strong>GraphQL, SOAP and gRPC</strong> are listed under <code>skipped</code>, not mocked.</li>
|
|
492
483
|
</ul>
|
|
493
|
-
<p>A
|
|
484
|
+
<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
|
|
494
485
|
read-only at <code>/home/wiremock/mappings</code>. WireMock runs with <code>--enable-stub-cors</code>, so a web app on another local port
|
|
495
486
|
can call it.</p>
|
|
496
|
-
<p>
|
|
487
|
+
<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
|
|
488
|
+
at the mock for the rest of the session. That
|
|
497
489
|
covers the API tools, and the tests ForgeQE runs, which read <code>FORGEQE_APP_<APP>_URL</code>. env.yaml itself is not
|
|
498
490
|
changed.</p>
|
|
499
491
|
</div>
|
|
@@ -501,8 +493,8 @@ changed.</p>
|
|
|
501
493
|
<section class="doc" id="doc-docs-containers-lifetime">
|
|
502
494
|
<h4>Lifetime</h4>
|
|
503
495
|
<div class="prose"><ul>
|
|
504
|
-
<li><strong>Services and mocks the agent starts</strong> are removed when the
|
|
505
|
-
|
|
496
|
+
<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,
|
|
497
|
+
<code>forgeqe run</code>, or <code>forgeqe mcp</code>) ends, as are the workspace and browser containers. The home volume stays.</li>
|
|
506
498
|
<li><strong><code>forgeqe services up</code></strong> keeps its services running after the command ends, until <code>forgeqe services down</code>.</li>
|
|
507
499
|
<li><strong>Container names</strong> are <code>forgeqe-<project>-<service></code>. <code><project></code> is a hash of the project folder, so two projects
|
|
508
500
|
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
|
|
@@ -518,10 +510,11 @@ settings.</li>
|
|
|
518
510
|
text could mount the whole disk or run privileged, so:</p>
|
|
519
511
|
<ul>
|
|
520
512
|
<li><strong>No commands from the model.</strong> The agent names services that forgeqe.yaml declares, and ForgeQE builds the
|
|
521
|
-
|
|
522
|
-
<li><strong>The same restrictions for every container:</strong>
|
|
523
|
-
|
|
524
|
-
<li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only).
|
|
513
|
+
command itself, without a shell. Images, flags and mounts never come from a request.</li>
|
|
514
|
+
<li><strong>The same restrictions for every container:</strong> no privilege gain, a process limit, ports on 127.0.0.1, and
|
|
515
|
+
read-only mounts. There is no setting to turn these off.</li>
|
|
516
|
+
<li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only).
|
|
517
|
+
The real path, links followed, must be inside the project. A mount
|
|
525
518
|
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>,
|
|
526
519
|
<code>llms.json</code>) or a link is refused. A container can send what it reads anywhere.</li>
|
|
527
520
|
<li><strong>Environment:</strong>
|
|
@@ -533,13 +526,12 @@ that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>,
|
|
|
533
526
|
</ul>
|
|
534
527
|
</li>
|
|
535
528
|
<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
|
|
536
|
-
shell of ForgeQE's agent and of Quill. So the only way to start a container is
|
|
537
|
-
<li><strong>Asked first:</strong>
|
|
529
|
+
shell of ForgeQE's agent and of Quill. So the only way for an agent to start a container is through ForgeQE.</li>
|
|
530
|
+
<li><strong>Asked first:</strong> the agent asks you before it starts services or a mock, as it does before running tests.</li>
|
|
538
531
|
</ul>
|
|
539
532
|
</div>
|
|
540
533
|
</section>
|
|
541
534
|
</div>
|
|
542
|
-
</article>
|
|
543
535
|
<article class="spec feat" id="cap-production-errors">
|
|
544
536
|
<div class="hd"><span class="mono">Operations</span><h3>Production errors and the tests that cover them</h3></div>
|
|
545
537
|
<p class="ds">Reads the errors users hit in production from Sentry, Datadog and Application Insights, grouped by page, and says which have no test reproducing them; read only.</p>
|
|
@@ -548,14 +540,15 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
548
540
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need input">You give</span><span>integrations.sentry, datadog or appinsights in forgeqe.yaml</span></li></ul></div>
|
|
549
541
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>production_errors</code></p></div>
|
|
550
542
|
</div>
|
|
551
|
-
|
|
552
|
-
|
|
543
|
+
|
|
544
|
+
</article>
|
|
545
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-production-errors">
|
|
553
546
|
<h4>Production errors</h4>
|
|
554
|
-
<div class="prose"><p
|
|
547
|
+
<div class="prose"><p>ForgeQE reads the errors real users hit in the last 14 days from Sentry (<code>integrations.sentry</code>), Datadog (<code>integrations.datadog</code>) and Azure Application Insights (<code>integrations.appinsights</code>), and groups them by page. For each page it says which browser run or automated test already reaches it, or that no test does. It only reads.</p>
|
|
548
|
+
<p>In the web app, open <strong>Production signals</strong> (Delivery & Operations › Production). <strong>Record a repro</strong> opens the Record page at the same page on the active test environment. In a chat or the shell, ask "which production errors have no test?". Keys are environment variables named in forgeqe.yaml, saved in <strong>Settings › Integrations</strong>.</p>
|
|
555
549
|
</div>
|
|
556
550
|
</section>
|
|
557
551
|
</div>
|
|
558
|
-
</article>
|
|
559
552
|
<article class="spec feat" id="cap-model-cost">
|
|
560
553
|
<div class="hd"><span class="mono">Operations</span><h3>Model cost and usage</h3></div>
|
|
561
554
|
<p class="ds">Adds up what the project's model calls cost by agent, origin, job, model and day, with tokens of unknown price apart, the model router's picks, and each regression pack's cost per run.</p>
|
|
@@ -564,14 +557,20 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
564
557
|
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
565
558
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>model_cost</code></p></div>
|
|
566
559
|
</div>
|
|
567
|
-
|
|
568
|
-
|
|
560
|
+
|
|
561
|
+
</article>
|
|
562
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-model-cost">
|
|
569
563
|
<h4>Model cost</h4>
|
|
570
|
-
<div class="prose"><p
|
|
564
|
+
<div class="prose"><p>ForgeQE adds up what the project's model calls cost, from the session logs:</p>
|
|
565
|
+
<ul>
|
|
566
|
+
<li>by agent, by where the work started (a web chat, a job, a terminal, a page), by job and by model;</li>
|
|
567
|
+
<li>per day, over 7, 30 or 90 days;</li>
|
|
568
|
+
<li>priced from llms.json or the public price lists. Tokens with no known price are counted apart, never as free.</li>
|
|
569
|
+
</ul>
|
|
570
|
+
<p>It also shows the model router's ratings and picks, and what each regression pack costs per run. In the web app, open <strong>Cost</strong> (AI Assurance › Governance). In a chat or the shell, ask "what did the models cost this week?".</p>
|
|
571
571
|
</div>
|
|
572
572
|
</section>
|
|
573
573
|
</div>
|
|
574
|
-
</article>
|
|
575
574
|
<article class="spec feat" id="cap-monitoring">
|
|
576
575
|
<div class="hd"><span class="mono">Operations</span><h3>Scheduled monitoring with alerts</h3></div>
|
|
577
576
|
<p class="ds">Runs checks on a schedule and alerts Teams or email when one keeps failing, and again when it recovers.</p>
|
|
@@ -580,10 +579,22 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
580
579
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need opt">Optional</span><span>Alert channels: monitor.alerts.teams or monitor.alerts.email in forgeqe.yaml</span></li></ul></div>
|
|
581
580
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>monitor</code></p></div>
|
|
582
581
|
</div>
|
|
583
|
-
|
|
584
|
-
|
|
582
|
+
|
|
583
|
+
</article>
|
|
584
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-9-monitoring">
|
|
585
585
|
<h4>Monitoring</h4>
|
|
586
|
-
<div class="prose"><p
|
|
586
|
+
<div class="prose"><p>The monitor runs a set of checks on a schedule and alerts Microsoft Teams and email when one breaks. A check is any test case a suite takes (section 7): a YAML or Gherkin file, a folder, Jira keys or JQL, an Azure DevOps plan, TestRail, and so on.</p>
|
|
587
|
+
<p><strong>Setting up the monitor.</strong></p>
|
|
588
|
+
<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>
|
|
589
|
+
<ol>
|
|
590
|
+
<li>Open <strong>Settings › Monitor</strong> (under <strong>Data and operations</strong>).</li>
|
|
591
|
+
<li>Under <strong>What runs</strong>, fill in <strong>Checks</strong> (test case sources, comma separated), <strong>How often</strong> (<code>30s</code>, <code>15m</code>, <code>1h</code> or <code>1h30m</code>; at least 10s), <strong>Checking a recorded run</strong> (<strong>Verify</strong> or <strong>Trust</strong>), <strong>Checks at once</strong>, and <strong>Post each round's results</strong> if results should go back to the system each check came from.</li>
|
|
592
|
+
<li>Under <strong>When to alert</strong>, set <strong>Failing rounds before the first alert</strong>, <strong>Remind while it keeps failing</strong>, <strong>Where rounds are published</strong>, <strong>Rounds kept</strong> and <strong>Round folder</strong>.</li>
|
|
593
|
+
<li>Under <strong>Alerts</strong>, turn on <strong>Microsoft Teams</strong> and fill in <strong>Webhook address</strong>, or turn on <strong>Email</strong> and fill in <strong>Mail server</strong>, <strong>Port</strong>, <strong>User name variable</strong>, <strong>Password variable</strong>, <strong>From</strong> and <strong>To</strong>. Press <strong>Test</strong> under each to send a test message.</li>
|
|
594
|
+
</ol>
|
|
595
|
+
<p>Settings are saved as you change them.</p>
|
|
596
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
597
|
+
<p>Add <code>monitor:</code> to <code>forgeqe.yaml</code>:</p>
|
|
587
598
|
<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">monitor:
|
|
588
599
|
</span></span><span class="ln"><span class="cmd"> checks: [checks/smoke.yaml]
|
|
589
600
|
</span></span><span class="ln ln--pair"><span class="cmd"> every: 15m</span><span class="pad"> </span><span class="cm"><span class="h">#</span> 30s, 15m, 1h, 1h30m; at least 10s
|
|
@@ -607,21 +618,30 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
607
618
|
</span></span><span class="ln"><span class="cmd"> to: [qa-team@example.com, oncall@example.com]
|
|
608
619
|
</span></span></code></pre></div>
|
|
609
620
|
<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 monitor --test-alerts</span><span class="pad"> </span><span class="cm"><span class="h">#</span> send a sample alert through every channel
|
|
610
|
-
</span></span
|
|
621
|
+
</span></span></code></pre></div>
|
|
622
|
+
</div></div><p><strong>Running the monitor.</strong></p>
|
|
623
|
+
<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>
|
|
624
|
+
<ol>
|
|
625
|
+
<li>Open <strong>Jobs</strong> (under <strong>Agents</strong>). While the monitor is not scheduled, the page says <strong>The monitor in forgeqe.yaml is not scheduled</strong>.</li>
|
|
626
|
+
<li>Press <strong>Schedule</strong>. The <strong>Add a job</strong> form opens with the monitor filled in.</li>
|
|
627
|
+
<li>Press <strong>Add</strong>. The job runs one round each time it is due, with the page closed too. Open the job to see its <strong>Latest rounds</strong>.</li>
|
|
628
|
+
</ol>
|
|
629
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
630
|
+
<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 monitor</span><span class="pad"> </span><span class="cm"><span class="h">#</span> monitor.checks every monitor.every, until Ctrl+C
|
|
611
631
|
</span></span><span class="ln"><span class="cmd">forgeqe monitor checks/checkout.yaml --every 5m
|
|
612
632
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe monitor --once</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one round, then exit (cron, scheduled pipelines)
|
|
613
633
|
</span></span></code></pre></div>
|
|
614
|
-
|
|
634
|
+
</div></div><p><strong>Each round</strong> runs the checks like a suite, without writing tests, and replays the flows from page memory (section 5). A flow that passed before costs one model call to confirm the expected results (<code>replay: verify</code>), or none (<code>replay: trust</code>, which trusts the replay without checking). A new or changed flow is worked out by the agent again. Rounds start <code>every</code> apart; a round that overruns is followed by the next one straight away.</p>
|
|
615
635
|
<p><strong>Alerts</strong> go out when something changes, not every round:</p>
|
|
616
636
|
<ul>
|
|
617
637
|
<li>A check that fails <code>fail_after</code> rounds in a row gets an alert. With <code>fail_after: 2</code> a single flaky failure is never reported.</li>
|
|
618
638
|
<li>While it keeps failing, nothing more is sent, unless <code>remind_every</code> is set.</li>
|
|
619
639
|
<li>When it passes again, a recovery alert says how long it was down.</li>
|
|
620
|
-
<li>A round that cannot run at all (a test system is down, a source is empty, the
|
|
640
|
+
<li>A round that cannot run at all (a test system is down, a source is empty, the browser will not start) alerts as the check "ForgeQE monitor", and the other checks keep their state.</li>
|
|
621
641
|
</ul>
|
|
622
|
-
<p>All changes in one round go out as one message. Teams gets
|
|
623
|
-
<p>For Teams, create
|
|
624
|
-
<p>
|
|
642
|
+
<p>All changes in one round go out as one message. Teams gets a card with each check, why it failed and at which step, a link to the test case, and an <strong>Open report</strong> button. Email gets the same as text and HTML, with the failing checks' last screenshots attached (up to five).</p>
|
|
643
|
+
<p><strong>Teams and email.</strong> For Teams, create a Workflows flow on the channel with the trigger "When a Teams webhook request is received" and the action "Post card in a chat or channel", or an incoming webhook where your tenant still allows them. Put its URL in <code>TEAMS_WEBHOOK_URL</code> (or the <strong>Webhook address</strong> field). For email, any SMTP server works: Office 365 (<code>smtp.office365.com:587</code>, with SMTP AUTH allowed for the mailbox), Gmail with an app password, SendGrid, or a relay on your network (no username needed). The webhook URL and the SMTP password stay in the environment or the credential store; if a send fails, the error never contains them.</p>
|
|
644
|
+
<p><strong>In the terminal</strong>, the monitor shows one block per round:</p>
|
|
625
645
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">Monitoring checks/smoke.yaml every 15m · replay verify · alerts: Teams, email to qa-team@example.com · Ctrl+C stops
|
|
626
646
|
</span></span><span class="ln"><span class="cmd">[14:15] ✗ 4/5 passing · 38s · 6.2K tokens
|
|
627
647
|
</span></span><span class="ln"><span class="cmd"> ✗ SHOP-12 Checkout: failing since 14:15
|
|
@@ -634,13 +654,12 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
634
654
|
</span></span><span class="ln"><span class="cmd"> Report .forgeqe/reports/monitor/20260929-143000/report.html
|
|
635
655
|
</span></span><span class="ln"><span class="cmd"> Next round at 14:45
|
|
636
656
|
</span></span></code></pre></div>
|
|
637
|
-
<p><strong>Files.</strong> Each round is a suite folder in <code>.forgeqe/reports/monitor/<time>/</code> (<code>report.html</code>, <code>junit.xml</code>, <code>suite.json</code>, the runs, and <code>alerts.json</code> when it alerted), so the report's trends and flaky tests cover the rounds. Folders beyond <code>keep</code> are deleted. <code>state.json</code> in <code>.forgeqe/reports/monitor/</code> remembers which checks are failing, since when, and when they were last alerted; delete it to start fresh. Set <code>report_url</code> to where you publish <code>.forgeqe/reports/monitor/</code
|
|
638
|
-
<p><strong>Scheduling.</strong> Run <code>forgeqe monitor</code> in a long-lived session (tmux, a service, a container), or <code>forgeqe monitor --once</code> from cron or a scheduled pipeline. <code>--once</code> exits <code>0</code> when every check passed, <code>1</code> when any failed, and <code>2</code> when stopped. In a pipeline, cache <code>.forgeqe/reports/monitor/state.json</code> between runs; without it every run starts fresh, and a failure alerts every time. Only one monitor can use an <code>out_dir</code> at a time, so an overlapping cron run exits instead of racing.</p>
|
|
639
|
-
<p>
|
|
657
|
+
<p><strong>Files.</strong> Each round is a suite folder in <code>.forgeqe/reports/monitor/<time>/</code> (<code>report.html</code>, <code>junit.xml</code>, <code>suite.json</code>, the runs, and <code>alerts.json</code> when it alerted), so the report's trends and flaky tests cover the rounds. Folders beyond <code>keep</code> are deleted. <code>state.json</code> in <code>.forgeqe/reports/monitor/</code> remembers which checks are failing, since when, and when they were last alerted; delete it to start fresh. Set <code>report_url</code> to where you publish <code>.forgeqe/reports/monitor/</code>, and alerts link <code><report_url>/<round>/report.html</code>; without it they name the local file.</p>
|
|
658
|
+
<p><strong>Scheduling from the terminal.</strong> Run <code>forgeqe monitor</code> in a long-lived session (tmux, a service, a container), or <code>forgeqe monitor --once</code> from cron or a scheduled pipeline, or add it as a job (below). <code>--once</code> exits <code>0</code> when every check passed, <code>1</code> when any failed, and <code>2</code> when stopped. In a pipeline, cache <code>.forgeqe/reports/monitor/state.json</code> between runs; without it every run starts fresh, and a failure alerts every time. Only one monitor can use an <code>out_dir</code> at a time, so an overlapping cron run exits instead of racing.</p>
|
|
659
|
+
<p><strong>Asking the agent in the shell.</strong> "Check the smoke cases once" runs one round and shows it as a card. "Monitor the smoke cases every 10 minutes" starts a monitor in the background: you keep working, each round appears as a card, "is anything failing?" shows the state, and "stop monitoring" ends it. A background monitor lives as long as the shell (or <code>forgeqe mcp</code>) and stops when it closes; <code>forgeqe run</code> refuses to start one, because it would stop when the command exits. While one is running, a one-off round on the same <code>out_dir</code> is refused rather than run twice. For monitoring that keeps going after you close the shell, "monitor the smoke cases every 10 minutes and alert the QA channel in Teams, always on" makes the agent set up <code>monitor:</code> in <code>forgeqe.yaml</code>, send a test alert, and tell you how to keep the monitor running (or add a scheduled pipeline).</p>
|
|
640
660
|
</div>
|
|
641
661
|
</section>
|
|
642
662
|
</div>
|
|
643
|
-
</article>
|
|
644
663
|
<article class="spec feat" id="cap-jobs">
|
|
645
664
|
<div class="hd"><span class="mono">Operations</span><h3>Background jobs on a schedule</h3></div>
|
|
646
665
|
<p class="ds">Runs ForgeQE commands (suites, monitor rounds, regression packs, healing, pull-request tests, browser goals) on a schedule or once in the jobs service, apart from the conversation and after it closes, and watches an existing GitHub Actions or Azure DevOps pipeline (read-only). A failed pipeline run or pack run is investigated: the healing agent works on each failure on a local branch of its own (a fix for review, or an app bug), never pushing. Says how each job goes when asked, shows runs as they end, and sends failures, recoveries and findings to Teams or email.</p>
|
|
@@ -649,10 +668,20 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
649
668
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A notification channel: notify.channels in forgeqe.yaml, each a Teams Workflows webhook (in an environment variable) or email</span></li></ul></div>
|
|
650
669
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>jobs</code></p></div>
|
|
651
670
|
</div>
|
|
652
|
-
|
|
653
|
-
|
|
671
|
+
|
|
672
|
+
</article>
|
|
673
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell">
|
|
654
674
|
<h4>The jobs service: scheduled and long jobs apart from the shell</h4>
|
|
655
|
-
<div class="prose"><p
|
|
675
|
+
<div class="prose"><p>Jobs run ForgeQE commands on a schedule, or once, in a service of their own, so they keep going while you do something else, with the shell or the web app closed. Each run has its own output and session log; you can see how a job is going at any time, and its failures and recoveries go to Teams.</p>
|
|
676
|
+
<p><strong>Adding a job.</strong></p>
|
|
677
|
+
<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>
|
|
678
|
+
<ol>
|
|
679
|
+
<li>Open <strong>Jobs</strong> (under <strong>Agents</strong>).</li>
|
|
680
|
+
<li>On the <strong>Agent</strong> tab, say what should run and when ("run the release-2.3 pack every weekday at 2am"). The agent asks for what it still needs, shows the job, and adds it once you confirm its exact command and schedule.</li>
|
|
681
|
+
<li>Or, on the <strong>Jobs</strong> tab, press <strong>Add</strong> to fill in the form yourself: <strong>Name</strong> (letters, digits and dashes), <strong>Runs</strong> (the command), <strong>With</strong> (its sources and flags, as you would type them after the command), <strong>When</strong> (<strong>Every</strong> and an interval, <strong>On a schedule (cron, this machine's time)</strong>, or <strong>Once, now</strong>) and <strong>Tell the team</strong>. Press <strong>Add</strong>.</li>
|
|
682
|
+
<li>Open a job from the table for its runs and output. <strong>Run</strong> starts it now, <strong>Stop</strong> stops the run that is going, the <strong>Enabled</strong> switch turns it off and on, and <strong>Remove</strong> deletes it with its runs and logs. <strong>Ask</strong> asks the agent how the job is doing.</li>
|
|
683
|
+
</ol>
|
|
684
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
656
685
|
<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 jobs add nightly-pack --cron "0 2 * * 1-5" -- pack run release-2.3</span><span class="pad"> </span><span class="cm"><span class="h">#</span> weekdays at 02:00, this machine's time
|
|
657
686
|
</span></span><span class="ln"><span class="cmd">forgeqe jobs add smoke --every 30m -- suite checks/smoke.yaml
|
|
658
687
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs add heal-login --now -- heal --focus login</span><span class="pad"> </span><span class="cm"><span class="h">#</span> once, now
|
|
@@ -664,39 +693,42 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
664
693
|
</span></span><span class="ln"><span class="cmd">forgeqe jobs disable|enable|remove nightly-pack
|
|
665
694
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs shutdown</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop the service; scheduled jobs wait until it starts again
|
|
666
695
|
</span></span></code></pre></div>
|
|
667
|
-
<
|
|
668
|
-
|
|
669
|
-
<
|
|
670
|
-
<
|
|
671
|
-
<li><strong>The service.</strong> <code>forgeqe jobs add</code> and <code>forgeqe jobs run</code> start it when it is not running, as a process of its own that outlives the command and the shell; <code>forgeqe jobs serve</code> runs it in the foreground (for a container or a system service). It is one per project, on this machine, until you stop it or the machine restarts. It listens on 127.0.0.1 only, with a random token kept in your own ForgeQE folder (<code>~/.forgeqe/jobs/</code>, readable by your user only, never in the project, which others may read), and refuses requests from web pages. A second service for the same project is refused. <code>.forgeqe/jobs/</code> and <code>.forgeqe/pipelines/</code> get their own <code>.gitignore</code>, so runs and logs are never committed.</li>
|
|
672
|
-
<li><strong>Files.</strong> <code>.forgeqe/jobs/<job>/job.json</code> and, for each of its last 50 runs, <code>runs/<run>/run.json</code> and <code>output.log</code>; <code>.forgeqe/jobs/events.jsonl</code> lists what happened; <code>.forgeqe/jobs/service.log</code> is the service's own output. A run that was going when the service stopped is marked interrupted.</li>
|
|
673
|
-
<li><strong>Watching a CI pipeline.</strong> <code>forgeqe jobs add ci --every 10m -- pipeline watch --github org/app --workflow ci.yml --branch main</code> (or <code>--ado-project Shop --pipeline 12</code>) looks at the pipeline's latest completed run each time, read-only: it starts, re-runs and changes nothing. A new failed run is triaged like a pack's (the JUnit or TRX files in its artifacts on GitHub, the Test Runs API on Azure DevOps; without results, the job and step that failed), in <code>.forgeqe/reports/pipelines/</code>. The job fails while the latest run is failed, so the team hears once when the pipeline breaks and once when it is green again; a cancelled run changes nothing. <code>forgeqe pipeline watch …</code> on its own does one look. GitHub needs the <code>gh</code> CLI signed in; Azure DevOps the same sign-in as the rest of ForgeQE.</li>
|
|
674
|
-
<li><strong>Investigating failures.</strong> When a <code>pipeline watch</code> or <code>pack run</code> job fails, the failures that healing can decide (an element not found, an expected value that does not hold; not the environment, flaky tests or broken test code, and nothing while the environment is down) are investigated, at most 3 a run, <code>jobs.parallel</code> at once. Each goes to the healing agent in a git worktree of its own, on a new local branch <code>forgeqe/investigate/<test>-<time>-<n></code>, from the commit the failing run tested when this clone has it (fetched when it can be, else <code>HEAD</code>, which the finding says). The agent re-runs the flow in the browser: when the flow works it heals the test, and the fix is committed on that branch for you to review; when the browser fails at the same step it is an app bug, and no branch is kept. Your checkout, its branch and its files are never touched; nothing is pushed or merged; the worktree is removed at the end. <code>node_modules</code>, <code>.venv</code> and <code>venv</code> from your checkout are linked into the worktree so the tests can run, and never committed. The failure is told at once (<code>job_failed</code>), the findings when they are in (<code>job_investigated</code>); <code>forgeqe jobs status</code> lists them, <code>.forgeqe/jobs/<job>/runs/<run>/investigations.json</code> and <code>investigate.log</code> have the detail, and <code>forgeqe investigate <run folder></code> runs an investigation by hand. <code>--no-investigate</code> turns it off for a job.</li>
|
|
675
|
-
<li><strong>From the shell.</strong> Ask ForgeQE's agent: "run the release-2.3 pack every weekday at 2am in the background" makes it propose the job, and ForgeQE asks you to agree to its exact command and schedule before adding it (<strong>Add the job</strong> / <strong>Don't add it</strong>). You keep working; when a job's run ends, a line says so in the conversation ("Job nightly-pack failed: …"), and "how are my jobs?" or "show the end of the nightly-pack log" get answers from the service. The agent adds a job only when you ask for one, and never one that runs anything but the commands above.</li>
|
|
676
|
-
<li><strong>Notices.</strong> With <code>notify:</code> channels set up (section 17), a job that fails sends <code>job_failed</code> once (not every run while it keeps failing), <code>job_recovered</code> when it passes again, and a job that runs only when asked sends <code>job_done</code> when it ends. <code>--no-notify</code> keeps a job quiet.</li>
|
|
677
|
-
</ul>
|
|
696
|
+
<p>In the shell you can also ask: "run the release-2.3 pack every weekday at 2am in the background" makes the agent propose the job, and ForgeQE asks you to agree to its exact command and schedule (<strong>Add the job</strong> / <strong>Don't add it</strong>). When a job's run ends, a line says so in the conversation ("Job nightly-pack failed: …"), and "how are my jobs?" or "show the end of the nightly-pack log" get answers. The agent adds a job only when you ask for one.</p>
|
|
697
|
+
</div></div><p><strong>What a job runs.</strong> One ForgeQE command: <code>suite</code>, <code>monitor</code>, <code>run</code>, <code>heal</code>, <code>pr-tests</code>, <code>pack run</code>, <code>pack triage</code> or <code>pipeline watch</code>, with its arguments. Nobody is there to answer a question while a job runs, so a <code>run</code> job is a browser run of the goal (<code>--direct</code>), and a <code>pack run</code> job carries <code>--yes</code>: adding the job is your approval, and the command you agree to shows it. A job runs with the project's own <code>forgeqe.yaml</code>, model profile and approvals: it cannot set <code>--config</code>, <code>--profile</code> or <code>--yes</code>, and nothing else is started (no shell, no other program). A <code>monitor</code> job runs one round each time it is due (<code>--once</code>) and sends its own <code>monitor.alerts</code>, so the job itself is quiet unless you turn its notices on.</p>
|
|
698
|
+
<p><strong>When it runs.</strong> <code>--every 15m</code> (at least 1m), <code>--cron "0 2 * * 1-5"</code> (minute hour day month weekday, local time), or neither: it runs when asked, and adding it starts it at once. <code>--now</code> also runs a scheduled job straight away. A run missed while the service was down starts once when it is back. When several are due, the one that has waited longest goes first.</p>
|
|
699
|
+
<p><strong>How many at once.</strong> <code>jobs.parallel</code> in <code>forgeqe.yaml</code> (default 2) runs at once over all jobs, and never two runs of one job. A run past <code>--timeout</code> (default 6h, at most 24h) is stopped and marked timed out.</p>
|
|
678
700
|
<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">jobs:
|
|
679
701
|
</span></span><span class="ln"><span class="cmd"> parallel: 2
|
|
680
702
|
</span></span></code></pre></div>
|
|
703
|
+
<p><strong>The service.</strong> Adding or running a job starts the service when it is not running, as a process of its own that outlives the command, the shell and the web app; <code>forgeqe jobs serve</code> runs it in the foreground (for a container or a system service). There is one per project on this machine, until you stop it or the machine restarts. It listens on 127.0.0.1 only, with a random token kept in your own ForgeQE folder (<code>~/.forgeqe/jobs/</code>, readable by your user only, never in the project), and refuses requests from web pages. A second service for the same project is refused. <code>.forgeqe/jobs/</code> and <code>.forgeqe/pipelines/</code> get their own <code>.gitignore</code>, so runs and logs are never committed.</p>
|
|
704
|
+
<p><strong>Files.</strong> <code>.forgeqe/jobs/<job>/job.json</code> and, for each of its last 50 runs, <code>runs/<run>/run.json</code> and <code>output.log</code>; <code>.forgeqe/jobs/events.jsonl</code> lists what happened; <code>.forgeqe/jobs/service.log</code> is the service's own output. A run that was going when the service stopped is marked interrupted.</p>
|
|
705
|
+
<p><strong>Watching a CI pipeline.</strong> <code>forgeqe jobs add ci --every 10m -- pipeline watch --github org/app --workflow ci.yml --branch main</code> (or <code>--ado-project Shop --pipeline 12</code>) looks at the pipeline's latest completed run each time, read-only: it starts, re-runs and changes nothing. A new failed run is triaged like a pack's (the JUnit or TRX files in its artifacts on GitHub, the test runs on Azure DevOps; without results, the job and step that failed), in <code>.forgeqe/reports/pipelines/</code>. The job fails while the latest run is failed, so the team hears once when the pipeline breaks and once when it is green again; a cancelled run changes nothing. <code>forgeqe pipeline watch …</code> on its own does one look. GitHub needs the <code>gh</code> CLI signed in; Azure DevOps the same sign-in as the rest of ForgeQE.</p>
|
|
706
|
+
<p><strong>Investigating failures.</strong> When a <code>pipeline watch</code> or <code>pack run</code> job fails, the failures that healing can decide (an element not found, an expected value that does not hold; not the environment, flaky tests or broken test code, and nothing while the environment is down) are investigated, at most 3 a run, <code>jobs.parallel</code> at once.</p>
|
|
707
|
+
<ul>
|
|
708
|
+
<li>Each goes to the healing agent in a separate git worktree, on a new local branch <code>forgeqe/investigate/<test>-<time>-<n></code>, from the commit the failing run tested when this clone has it (fetched when it can be, else <code>HEAD</code>, which the finding says).</li>
|
|
709
|
+
<li>The agent re-runs the flow in the browser. When the flow works, it heals the test, and the fix is committed on that branch for you to review. When the browser fails at the same step, it is an app bug, and no branch is kept.</li>
|
|
710
|
+
<li>Your checkout, its branch and its files are never touched; nothing is pushed or merged; the worktree is removed at the end. <code>node_modules</code>, <code>.venv</code> and <code>venv</code> from your checkout are linked into the worktree so the tests can run, and never committed.</li>
|
|
711
|
+
<li>The failure is told at once (<code>job_failed</code>), the findings when they are in (<code>job_investigated</code>). The job's page in the web app and <code>forgeqe jobs status</code> list them; <code>.forgeqe/jobs/<job>/runs/<run>/investigations.json</code> and <code>investigate.log</code> have the detail. <code>forgeqe investigate <run folder></code> runs an investigation by hand, and <code>--no-investigate</code> turns it off for a job.</li>
|
|
712
|
+
</ul>
|
|
713
|
+
<p><strong>Notices.</strong> With notification channels set up (section 17), a job that fails sends <code>job_failed</code> once (not every run while it keeps failing), <code>job_recovered</code> when it passes again, and a job that runs only when asked sends <code>job_done</code> when it ends. Turn <strong>Tell the team</strong> off in the web app, or add the job with <code>--no-notify</code>, to keep it quiet.</p>
|
|
681
714
|
<p><strong>On company machines.</strong> Nothing here needs administrator rights:</p>
|
|
682
715
|
<div class="tbl tbl--cols-2"><table>
|
|
683
716
|
<thead>
|
|
684
717
|
<tr><th>What</th><th>Needs</th></tr>
|
|
685
718
|
</thead>
|
|
686
719
|
<tbody>
|
|
687
|
-
<tr><td data-label="What">The jobs service</td><td data-label="Needs">Runs as you, in your project and your ForgeQE folder. It listens on 127.0.0.1 only, so no firewall rule is needed. Endpoint security may see a background
|
|
720
|
+
<tr><td data-label="What">The jobs service</td><td data-label="Needs">Runs as you, in your project and your ForgeQE folder. It listens on 127.0.0.1 only, so no firewall rule is needed. Endpoint security may see a background process from ForgeQE's install folder, which IT can allow. Jobs pause while the machine sleeps or is off, and a missed run starts once when it is back. For always-on jobs, run <code>forgeqe jobs serve</code> on a VM or build agent under its service manager (systemd, a Windows Task Scheduler task "at log on", which needs no administrator, or a container).</td></tr>
|
|
688
721
|
<tr><td data-label="What"><code>pipeline watch</code> on GitHub</td><td data-label="Needs">The <code>gh</code> CLI signed in (<code>gh auth login</code>) with read access to the repository's Actions. A fine-grained token needs Actions: read and Contents: read; with SAML single sign-on, authorize the token for the organization. GitHub Enterprise Server: <code>--github host/owner/repo</code> and <code>gh auth login --hostname host</code>.</td></tr>
|
|
689
722
|
<tr><td data-label="What"><code>pipeline watch</code> on Azure DevOps</td><td data-label="Needs">The Azure DevOps sign-in ForgeQE already uses (<code>forgeqe auth login azure_devops</code>, or a token in <code>ADO_PAT</code>) with Build: read and Test Management: read. Azure DevOps Server works through its collection URL.</td></tr>
|
|
690
|
-
<tr><td data-label="What">Investigating failures</td><td data-label="Needs">git, read access to fetch the failing commit, the tests' dependencies installed in your checkout, and a model: a key-based profile, or GitHub Copilot where the organization's policy allows
|
|
723
|
+
<tr><td data-label="What">Investigating failures</td><td data-label="Needs">git, read access to fetch the failing commit, the tests' dependencies installed in your checkout, and a model: a key-based profile, or GitHub Copilot where the organization's policy allows it. Branches are local; nothing is pushed.</td></tr>
|
|
691
724
|
<tr><td data-label="What">Teams notices</td><td data-label="Needs">A Workflows webhook ("post to a channel when a webhook request is received"), or an incoming webhook where the tenant still allows them; where neither is allowed, email.</td></tr>
|
|
692
|
-
<tr><td data-label="What">Proxy and inspected HTTPS</td><td data-label="Needs">The same as the rest of ForgeQE (
|
|
725
|
+
<tr><td data-label="What">Proxy and inspected HTTPS</td><td data-label="Needs">The same as the rest of ForgeQE (see <a href="../index.html">Company networks</a>); <code>gh</code> uses <code>HTTPS_PROXY</code>. <code>forgeqe doctor</code> checks the machine and the network.</td></tr>
|
|
693
726
|
</tbody>
|
|
694
727
|
</table></div>
|
|
695
728
|
<p>On Windows, the dependency folders are linked into worktrees as junctions (no administrator or developer mode needed), a stopped run ends at once rather than being asked to finish, and the token file is protected by your user profile's permissions.</p>
|
|
696
729
|
</div>
|
|
697
730
|
</section>
|
|
698
731
|
</div>
|
|
699
|
-
</article>
|
|
700
732
|
<article class="spec feat" id="cap-custom-agents">
|
|
701
733
|
<div class="hd"><span class="mono">Operations</span><h3>Your team's custom agents</h3></div>
|
|
702
734
|
<p class="ds">Hands a request to one of the team's custom agents: ForgeQE's agent configured for one job in .forgeqe/agents, held in code to the environments, tools and actions its approved version allows. It runs in a session of its own and answers with its reply; each run is kept in the agent's history. Also makes a new one with the user from what it is for: it picks what the agent needs from what the project has, says why, and saves a draft when the user agrees.</p>
|
|
@@ -706,22 +738,49 @@ shell of ForgeQE's agent and of Quill. So the only way to start a container is t
|
|
|
706
738
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A custom agent runs only a version a person approved (forgeqe agent approve), and does only what that version allows; it cannot hand work to another custom agent.</li><li>ForgeQE's agent drafts and saves an agent only after the user agrees; it never approves one.</li></ul></div>
|
|
707
739
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>custom_agent</code> <code>request_approval</code> <code>hand_to_agent</code> <code>remember</code> <code>recall</code></p></div>
|
|
708
740
|
</div>
|
|
709
|
-
|
|
710
|
-
|
|
741
|
+
|
|
742
|
+
</article>
|
|
743
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-custom-agents">
|
|
711
744
|
<h4>Custom agents</h4>
|
|
712
745
|
<div class="prose"><p>A custom agent is ForgeQE's agent configured by your team for one job, kept in the repository as
|
|
713
|
-
<code>.forgeqe/agents/<id>.yaml</code
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
<
|
|
718
|
-
|
|
719
|
-
<p>
|
|
720
|
-
<code>
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
746
|
+
<code>.forgeqe/agents/<id>.yaml</code> (its manifest). It uses ForgeQE's own agents, capabilities, skills, knowledge and
|
|
747
|
+
environments, and is held, on every tool call, to what its manifest allows:</p>
|
|
748
|
+
<ul>
|
|
749
|
+
<li>which environments and addresses it works on, which capabilities it has, and which agents it may start;</li>
|
|
750
|
+
<li>which kinds of action it may take (read, run, change, external), and which a person approves first.</li>
|
|
751
|
+
</ul>
|
|
752
|
+
<p>An environment named like production is never allowed unless the manifest gives it (see below). The agent has no shell,
|
|
753
|
+
web fetch or web search unless its manifest says <code>shell: true</code>, and then a person approves each command. It uses only
|
|
754
|
+
the other systems <code>scope.systems</code> names. Writing and healing tests start a coding agent, which a person approves at each
|
|
755
|
+
call unless <code>permissions.trust</code> lists it.</p>
|
|
756
|
+
<p><strong>Making an agent.</strong></p>
|
|
757
|
+
<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>
|
|
758
|
+
<ol>
|
|
759
|
+
<li>Open <strong>Agents › Custom agents › Make an agent</strong> (or press <strong>New</strong> on the Agents page).</li>
|
|
760
|
+
<li>Say what the agent should do in your own words. The agent builder takes you through its steps, one page each:
|
|
761
|
+
<ul>
|
|
762
|
+
<li><strong>Understand</strong>: what it could not work out, with what it recommends and why;</li>
|
|
763
|
+
<li><strong>Plan</strong>: how the agent will work, and whether each part is set up here;</li>
|
|
764
|
+
<li><strong>Boundaries</strong>: where it works and what it may do, least privilege first; production never;</li>
|
|
765
|
+
<li><strong>Knowledge</strong>: what it should know: the project's knowledge that fits, and notes that become its own;</li>
|
|
766
|
+
<li><strong>Review</strong>: its name and first request; saving makes it a draft;</li>
|
|
767
|
+
<li><strong>Try</strong>: try it, then approve it.</li>
|
|
768
|
+
</ul>
|
|
769
|
+
</li>
|
|
770
|
+
<li>A draft can be picked up again later. Every setting by hand is under <strong>Advanced settings</strong>.</li>
|
|
771
|
+
</ol>
|
|
772
|
+
<p>The builder offers starters (defect retest, nightly smoke, pull request test check, release readiness, API contracts,
|
|
773
|
+
test case quality): a request to begin from, planned from what your project has. Under <strong>Or start from a template</strong>, a
|
|
774
|
+
template opens in the editor filled from this project, with what it brings and why; nothing is saved until you press
|
|
775
|
+
<strong>Save</strong>. A template that cannot be used here yet says why. To copy an existing agent, press <strong>Duplicate</strong> on its page.</p>
|
|
776
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
777
|
+
<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 agent new cloud-verifier</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a draft from a template, filled from this project (--envs qa,uat to pick)
|
|
778
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent copy <id> [<new-id>]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a new draft with another agent's settings, at 1.0.0
|
|
779
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent check <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> what it may reach, what its capabilities still need, what changed
|
|
780
|
+
</span></span></code></pre></div>
|
|
781
|
+
<p>The templates are <code>smoke-check</code>, <code>defect-retest</code>, <code>flaky-triage</code>, <code>release-readiness</code>, <code>pr-test-reviewer</code> and
|
|
782
|
+
<code>cloud-verifier</code>.</p>
|
|
783
|
+
</div></div><p><strong>A manifest.</strong></p>
|
|
725
784
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id: checkout-guard
|
|
726
785
|
</span></span><span class="ln"><span class="cmd">name: Checkout guard agent
|
|
727
786
|
</span></span><span class="ln"><span class="cmd">version: 1.0.0
|
|
@@ -735,138 +794,214 @@ needs.</p>
|
|
|
735
794
|
</span></span><span class="ln"><span class="cmd"> actions: [read, run]
|
|
736
795
|
</span></span><span class="ln"><span class="cmd"> approve: [run]
|
|
737
796
|
</span></span></code></pre></div>
|
|
738
|
-
<p><
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
797
|
+
<p><strong>The agents it may start.</strong> They are checked on every call, including the ones a tool starts for it: writing a test
|
|
798
|
+
starts <code>forgeqe-test</code> (and, from a recording, <code>forgeqe-test-plan</code>); asking for test data starts Miner (<code>forgeqe-data</code>);
|
|
799
|
+
the product knowledge tool starts <code>forgeqe-investigate</code> to answer a question and <code>forgeqe-knowledge</code> to read the product
|
|
800
|
+
with the model. A run that finds a new defect explains it with <code>forgeqe-defect-rca</code> only when the agent may use it;
|
|
801
|
+
otherwise the run goes ahead with the analysis that uses no model. <code>forgeqe agent check</code> and the editor say what each
|
|
802
|
+
capability needs.</p>
|
|
803
|
+
<p><strong>Its voice.</strong> <code>voice: { sound: light }</code> (or <code>deep</code>) sets how the agent sounds when you talk with it in its chat; without
|
|
804
|
+
it, it speaks in ForgeQE's own voice. The editor's <strong>Voice</strong> choice (<strong>Default</strong>, <strong>Light</strong>, <strong>Deep</strong>) writes it. ForgeQE
|
|
805
|
+
picks the voice from the speech set up on that computer.</p>
|
|
806
|
+
<p><strong>Approving a version.</strong> What runs is a version a person approved. Editing the manifest changes nothing that runs: the
|
|
807
|
+
agent shows as changed, keeps running its approved version, and the change waits for approval. Approvals, with every
|
|
808
|
+
disabling and rollback, are kept in <code>.forgeqe/agents/.releases/<id></code>, so the team reviews them with the code, and the
|
|
809
|
+
audit log keeps every change. Approving, disabling, enabling and rolling back each need the agent's id typed.</p>
|
|
810
|
+
<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>
|
|
811
|
+
<ol>
|
|
812
|
+
<li>Open the agent's page under <strong>Agents › Custom agents</strong>.</li>
|
|
813
|
+
<li>Press <strong>Try</strong> to try the manifest as it is now.</li>
|
|
814
|
+
<li>Under <strong>Details</strong>, <strong>Versions</strong>, press <strong>Approve</strong> and type the agent's id. The approve dialog lists what the version
|
|
815
|
+
may do, each line marked <strong>New</strong>, <strong>Changed</strong> (with what it was) or <strong>No longer</strong> against the version that runs.</li>
|
|
816
|
+
<li><strong>Disable</strong> or <strong>Enable</strong> it there, open any approved version to read it, or <strong>Roll back</strong> to one.</li>
|
|
817
|
+
<li>A change waiting for approval can be thrown away with <strong>Discard the change</strong>.</li>
|
|
818
|
+
<li>To disable or enable several at once, press <strong>Select agents</strong> on <strong>Agents › Custom agents</strong>.</li>
|
|
819
|
+
</ol>
|
|
820
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
744
821
|
<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 agent list</span><span class="pad"> </span><span class="cm"><span class="h">#</span> each agent and its state: draft, active, changed, disabled, broken
|
|
745
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent new cloud-verifier</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a draft from a template, filled from this project (--envs qa,uat to pick)
|
|
746
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent check <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> what it may reach, what its capabilities still need, what changed
|
|
747
822
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent try <id> "request"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the manifest as it is now: read and run only, every run asked first
|
|
748
823
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent approve <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> a person at the terminal approves this exact version
|
|
749
824
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent run <id> "request"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its approved version
|
|
750
|
-
</span></span><span class="ln
|
|
825
|
+
</span></span><span class="ln"><span class="cmd">forgeqe agent disable <id> | enable <id>
|
|
751
826
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent rollback <id> <version></span><span class="pad"> </span><span class="cm"><span class="h">#</span> an earlier approved version runs again
|
|
827
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent discard <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> throw away the change waiting for approval
|
|
752
828
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent history <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> its versions and its runs, with every tool call and the policy's decision
|
|
753
|
-
</span></span
|
|
754
|
-
</
|
|
755
|
-
|
|
756
|
-
|
|
829
|
+
</span></span></code></pre></div>
|
|
830
|
+
</div></div><p><strong>Its record.</strong> An agent's whole record (versions, runs, tool calls and decisions) can be downloaded as JSON lines for
|
|
831
|
+
audit.</p>
|
|
832
|
+
<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>
|
|
833
|
+
<ol>
|
|
834
|
+
<li>Open the agent's page.</li>
|
|
835
|
+
<li>Press <strong>Download</strong>.</li>
|
|
836
|
+
</ol>
|
|
837
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
838
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe agent export <id> --out a.jsonl
|
|
839
|
+
</span></span></code></pre></div>
|
|
840
|
+
</div></div><p><strong>Sharing an agent.</strong> Teams in the same repository commit <code>.forgeqe/agents</code> (and <code>.releases</code> after approving). A pack is
|
|
841
|
+
a shareable zip (the agent, its knowledge files and skills) for another project or computer; it is imported as a draft
|
|
842
|
+
that the recipient tries and approves. Environments and systems are not in the pack.</p>
|
|
843
|
+
<p><strong>The agent library.</strong> The agent library is a folder in ForgeQE's home (<code>agent-library/</code>) that every project on this
|
|
844
|
+
computer reads.</p>
|
|
845
|
+
<ul>
|
|
846
|
+
<li>Only an approved version is published, packed from its approved copy (an edit not yet approved stays out), as
|
|
847
|
+
<code><id>@<version>.forgeqe-agent.zip</code>.</li>
|
|
848
|
+
<li>A version already there is never replaced, so publish a new version for a change.</li>
|
|
849
|
+
<li>Anything on the computer can put a file there, so it is checked: one whose pack names another agent or version is
|
|
850
|
+
listed with that problem and cannot be installed.</li>
|
|
851
|
+
<li>Installing goes through the same checks as importing a pack, and makes a draft that a person tries and approves in that
|
|
852
|
+
project.</li>
|
|
853
|
+
</ul>
|
|
854
|
+
<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>
|
|
855
|
+
<ol>
|
|
856
|
+
<li>On the agent's page, press <strong>Export to share</strong> for a zip, or <strong>Publish</strong> to put its approved version in your library.</li>
|
|
857
|
+
<li>On <strong>Agents › Custom agents</strong>, press <strong>Import agent</strong> to import a zip, or <strong>From your library</strong> to install a library
|
|
858
|
+
entry as a draft.</li>
|
|
859
|
+
</ol>
|
|
860
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
861
|
+
<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 agent pack <id> --out a.zip</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a shareable zip: agent.json + knowledge files + skills
|
|
862
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent import a.zip [--id new]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> import that zip as a draft to edit and approve
|
|
863
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent publish <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> its approved version into this computer's agent library
|
|
757
864
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent library [--remove <entry>]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what the library holds; taking one out asks for its name typed
|
|
758
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent install <entry> [--id new]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a library entry as a draft here
|
|
759
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent run <id> "request" --unattended</span><span class="pad"> </span><span class="cm"><span class="h">#</span> as a schedule runs it: what it may not do alone waits for a person
|
|
760
|
-
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent approvals [<id>]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what agents running with nobody watching wait for; answer: approvals <id> <approval> allow | allow_run | deny
|
|
865
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent install <entry> [--id new]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a library entry as a draft here
|
|
761
866
|
</span></span></code></pre></div>
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
<
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
<
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
<
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
it says what it does.</p>
|
|
792
|
-
<p><code>permissions.trust</code> lifts ForgeQE's own question where you choose: <code>external</code> lets it change other systems without
|
|
793
|
-
asking, and a coding agent's tool (<code>write_test</code>, <code>heal_tests</code>, <code>write_api_tests</code>) lets it write and heal tests without
|
|
794
|
-
asking. The tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's
|
|
795
|
-
config and env files (<code>playwright.config.*</code>, <code>.env*</code>, <code>*.yaml</code> and the like), its tests (<code>*.spec.ts</code>, <code>test_*.py</code>,
|
|
796
|
-
<code>*Test.java</code>, <code>.feature</code> files…) and the code in its test folders (page objects, fixtures, helpers), and asks after all
|
|
867
|
+
</div></div><p><strong>Starting from the cloud verifier template.</strong> The cloud verifier checks, after a test run, that what the run should
|
|
868
|
+
have done in the cloud happened (a message on a queue, an object written, a row in a table, a function invoked), and
|
|
869
|
+
changes nothing. It is filled from this project: the clouds of <code>integrations:</code> whose server can start here, and the test
|
|
870
|
+
environments that have <code>cloud:</code> in env.yaml (<code>--envs qa,uat</code> to pick; never one named like production). It reads, with
|
|
871
|
+
no agent to start and no capability beyond the core. A cloud whose reading tool is not marked read-only (Google Cloud's
|
|
872
|
+
gcloud tool, or Azure or AWS with <code>read_only: false</code>) also needs <code>external</code>: ForgeQE then asks a person before each of its
|
|
873
|
+
calls, and the draft says so. Like any draft, it runs only once a person approves it; read it first.</p>
|
|
874
|
+
<p><strong>What it may be given.</strong> A custom agent may be given anything ForgeQE's agent has: every capability, other systems'
|
|
875
|
+
tools, the coding agent, jobs, ForgeQE's own commands and settings, the shell (<code>permissions.shell: true</code>), and
|
|
876
|
+
production. What goes beyond its limits call by call (the coding agent, ForgeQE commands and settings, a shell command,
|
|
877
|
+
a change in production) is approved by a person each time. A tool ForgeQE adds later reaches custom agents at once,
|
|
878
|
+
asking a person at each call until it says what it does.</p>
|
|
879
|
+
<p><strong>In production</strong>, what a call does decides:</p>
|
|
880
|
+
<ul>
|
|
881
|
+
<li>A read goes ahead without asking.</li>
|
|
882
|
+
<li>A run (a browser run, a test, an API call) is asked unless <code>permissions.production: [run]</code> says otherwise.</li>
|
|
883
|
+
<li>Every change is asked, on a schedule too, where it waits for a person and the team is told.</li>
|
|
884
|
+
<li>A question about a read or a run offers <strong>Allow for the rest of this run</strong> (that tool, in that environment); a change
|
|
885
|
+
is asked each time.</li>
|
|
886
|
+
<li>The agent also asks you itself before a step there that could reach real customers, such as an order or a payment. It
|
|
887
|
+
can add a question, never skip one.</li>
|
|
888
|
+
</ul>
|
|
889
|
+
<p><strong>Trusting a tool.</strong> <code>permissions.trust</code> lifts ForgeQE's own question where you choose:</p>
|
|
890
|
+
<ul>
|
|
891
|
+
<li><code>external</code> lets the agent change other systems without asking.</li>
|
|
892
|
+
<li>A coding agent's tool (<code>write_test</code>, <code>heal_tests</code>, <code>write_api_tests</code>) lets it write and heal tests without asking. The
|
|
893
|
+
tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's config and
|
|
894
|
+
env files (<code>playwright.config.*</code>, <code>.env*</code>, <code>*.yaml</code> and the like), its tests (<code>*.spec.ts</code>, <code>test_*.py</code>,
|
|
895
|
+
<code>*Test.java</code>, <code>.feature</code> files…) and the code in its test folders (page objects, fixtures, helpers). It asks after all
|
|
797
896
|
when they name an address of an environment the agent does not have. An address built at run time from pieces is not
|
|
798
|
-
seen
|
|
799
|
-
always asked
|
|
800
|
-
With nobody watching, a trusted tool still runs only when <code>permissions.unattended</code> lists it.</
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
<
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
897
|
+
seen.</li>
|
|
898
|
+
<li>A change in production, ForgeQE's own commands and settings, and jobs are always asked.</li>
|
|
899
|
+
<li>With nobody watching, a trusted tool still runs only when <code>permissions.unattended</code> lists it.</li>
|
|
900
|
+
</ul>
|
|
901
|
+
<p><strong>Schedules.</strong> An agent with a <code>schedule</code> (<code>every: 1d</code> or <code>cron: "0 7 * * 1-5"</code>, and the <code>request</code> it is given) runs as a
|
|
902
|
+
job once approved, always its approved version; disabling it pauses the job.</p>
|
|
903
|
+
<ul>
|
|
904
|
+
<li>With nobody watching, it does without asking only what <code>permissions.unattended</code> lists (kinds of action, or tools by
|
|
905
|
+
name), and in production only reads, and runs if <code>permissions.production</code> lists them.</li>
|
|
906
|
+
<li>Anything else, and anything it judges should be a person's decision, waits for a person: the team's channels are told
|
|
907
|
+
(<code>agent_waiting</code>), and the agent's page shows it with <strong>Allow</strong>, <strong>Deny</strong> and, for a read or a run, <strong>Allow for the
|
|
908
|
+
rest of this run</strong>. No answer in four hours is a no.</li>
|
|
909
|
+
<li>One run nobody watches of an agent goes at a time: a schedule that fires while the last run still waits does not start,
|
|
910
|
+
and its history says so.</li>
|
|
911
|
+
</ul>
|
|
912
|
+
<p><strong>Answering a waiting approval.</strong></p>
|
|
913
|
+
<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>
|
|
914
|
+
<ol>
|
|
915
|
+
<li>Open the agent's page.</li>
|
|
916
|
+
<li>Press <strong>Allow</strong>, <strong>Deny</strong> or <strong>Allow for the rest of this run</strong>.</li>
|
|
917
|
+
</ol>
|
|
918
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
919
|
+
<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 agent run <id> "request" --unattended</span><span class="pad"> </span><span class="cm"><span class="h">#</span> as a schedule runs it: what it may not do alone waits for a person
|
|
920
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent approvals [<id>]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> what agents running with nobody watching wait for
|
|
921
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent approvals <id> <approval> allow</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or allow_run, deny
|
|
922
|
+
</span></span></code></pre></div>
|
|
923
|
+
</div></div><p><strong>Limits on a run.</strong></p>
|
|
924
|
+
<ul>
|
|
925
|
+
<li><code>runtime.max_tokens</code> sets a budget per run: the run stops when it has used that many model tokens. When someone is
|
|
926
|
+
watching (<code>forgeqe agent run</code> in a terminal, a chat, the agent's page), the run asks first: carry on with as much again
|
|
927
|
+
(each yes is in its history), or stop. A run nobody watches is never asked, and stops.</li>
|
|
928
|
+
<li><code>runtime.max_minutes</code> stops a run that takes longer; a run nobody watches (a schedule, a trigger, another agent) stops
|
|
929
|
+
after 120 minutes when it sets none.</li>
|
|
930
|
+
</ul>
|
|
931
|
+
<p><strong>Notices.</strong> When a run nobody watches ends, the team's channels that take <code>agent_failed</code> hear when it did not finish.
|
|
932
|
+
With <code>runtime.notify: always</code>, the ones that take <code>agent_done</code> hear when it did; <code>never</code> tells nothing. The notice says the
|
|
933
|
+
outcome, how many calls its limits refused and how many steps a person did not approve, and where to read the run; it
|
|
934
|
+
never quotes the agent's reply. <code>runtime.channels: [qa-team]</code> sends its notices, and its approval questions on a run
|
|
935
|
+
nobody watches, only to those channels of <code>notify.channels</code> (each still only for the events it takes); unset, every
|
|
936
|
+
channel that takes them gets them. A channel the project does not have makes the manifest invalid.</p>
|
|
937
|
+
<p><strong>Triggers.</strong> <code>triggers</code> start its approved version by itself when something happens in ForgeQE, with nobody watching,
|
|
938
|
+
as a schedule does (<code>permissions.unattended</code> says what it may do alone):</p>
|
|
820
939
|
<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">triggers:
|
|
821
940
|
</span></span><span class="ln"><span class="cmd"> - { on: suite_failed, request: "Explain why the last suite failed, from its runs" }
|
|
822
941
|
</span></span><span class="ln"><span class="cmd"> - { on: job_failed, job: nightly-pack, request: "Find out why the nightly pack failed" }
|
|
823
942
|
</span></span></code></pre></div>
|
|
824
|
-
<
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
943
|
+
<ul>
|
|
944
|
+
<li>The events are <code>suite_failed</code>, <code>suite_passed</code>, <code>job_failed</code> and <code>job_recovered</code> (when a job's result changes, whether
|
|
945
|
+
or not the job sends notices; <code>job</code> narrows it to one job), and <code>eval_failed</code>.</li>
|
|
946
|
+
<li>Each starts a one-off job, <code>agent-<id>-on-<event></code>, replaced each time; one still running is not started again.</li>
|
|
947
|
+
<li>The request is the trigger's words and ForgeQE's own facts (the event, a job's name, the time), never text from the
|
|
948
|
+
suite or its runs: the agent finds the runs itself.</li>
|
|
949
|
+
<li>A custom agent's own jobs never start anything, so agents cannot start each other in a loop.</li>
|
|
950
|
+
</ul>
|
|
832
951
|
<p><strong>Outside triggers.</strong> A pull request or a push on GitHub or Azure DevOps can start an agent too:</p>
|
|
833
952
|
<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">triggers:
|
|
834
953
|
</span></span><span class="ln"><span class="cmd"> - { on: pr_opened, source: github, repo: acme/shop, branch: main, request: "Review the tests this pull request changes" }
|
|
835
954
|
</span></span><span class="ln"><span class="cmd"> - { on: pr_updated, source: github, repo: acme/shop, request: "Review the tests again" }
|
|
836
955
|
</span></span><span class="ln"><span class="cmd"> - { on: push, source: azure_devops, repo: Shop Team/web, branch: release, request: "Check what the push changed" }
|
|
837
956
|
</span></span></code></pre></div>
|
|
838
|
-
<
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
<
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
<
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
<
|
|
868
|
-
|
|
869
|
-
<
|
|
957
|
+
<ul>
|
|
958
|
+
<li><code>pr_opened</code> covers opened, reopened and ready for review; <code>pr_updated</code> new commits; <code>push</code> a branch pushed to (never a
|
|
959
|
+
tag or a deleted branch).</li>
|
|
960
|
+
<li><code>repo</code> is <code>owner/name</code> on GitHub and <code>project/repository</code> on Azure DevOps; <code>branch</code>, if given, is the pull request's
|
|
961
|
+
target or the branch pushed to.</li>
|
|
962
|
+
<li>Like the other triggers, it runs the approved version with nobody watching, as the one-off job
|
|
963
|
+
<code>agent-<id>-on-<event></code>, and one still running is not started again.</li>
|
|
964
|
+
</ul>
|
|
965
|
+
<p><strong>Receiving the host's webhooks.</strong> <code>forgeqe web</code> takes the deliveries at <code>POST /hooks/github</code> and
|
|
966
|
+
<code>POST /hooks/azure-devops</code>, and only once a webhook secret is saved: in <strong>Settings › Secrets</strong>, add
|
|
967
|
+
<code>FORGEQE_WEBHOOK_SECRET</code> (kept in the credential store, hidden from every program ForgeQE starts).</p>
|
|
968
|
+
<ul>
|
|
969
|
+
<li>On GitHub, make a webhook for <strong>Pull requests</strong> and <strong>Pushes</strong>, content type JSON, with that secret: each delivery is
|
|
970
|
+
signed and checked.</li>
|
|
971
|
+
<li>On Azure DevOps, make <strong>Web Hooks</strong> service hooks for <em>Pull request created</em>, <em>Pull request updated</em> and <em>Code pushed</em>,
|
|
972
|
+
with basic authentication whose password is the secret (its hooks cannot sign).</li>
|
|
973
|
+
<li>A delivery not signed with the secret, one sent from a browser, a body over 1 MB, a delivery id already taken, and more
|
|
974
|
+
than 30 deliveries a minute are refused.</li>
|
|
975
|
+
</ul>
|
|
976
|
+
<p><code>forgeqe web</code> still listens on 127.0.0.1 only and checks the Host it is asked for. The host reaches it through hosted
|
|
977
|
+
mode (<code>forgeqe web --public-url https://forgeqe.example.com</code>, behind your TLS proxy) or a tunnel you run that forwards
|
|
978
|
+
to it with the Host rewritten to <code>127.0.0.1</code>. Nothing of the pull request's text reaches the agent: its request is the
|
|
979
|
+
trigger's words plus the pull request's number, the repository and the branches, and the agent is told to read the pull
|
|
980
|
+
request itself, as the author's words and never instructions.</p>
|
|
981
|
+
<p><strong>Handing work to another custom agent.</strong> <code>scope.custom_agents</code> (the editor's <strong>Custom agents it may hand work to</strong>)
|
|
982
|
+
lists your team's other custom agents it may hand a request to.</p>
|
|
983
|
+
<ul>
|
|
984
|
+
<li>The other agent runs its approved version, within its own limits and the caller's: it works only in environments both
|
|
985
|
+
have, may do only what both may, asks a person for whatever either asks, and never uses a tool either denies.</li>
|
|
986
|
+
<li>An agent already working on the request is never handed it again, and a chain goes no deeper than the caller's
|
|
987
|
+
<code>max_delegation_depth</code> (at most 3; it needs at least 1).</li>
|
|
988
|
+
<li>With nobody watching the caller, nobody watches the callee.</li>
|
|
989
|
+
<li>Its run is kept in its own history as handed on by the caller, and its reply comes back as data.</li>
|
|
990
|
+
</ul>
|
|
991
|
+
<p>Only Atlas asks custom agents for work on your behalf, as it does its own agents. Each run is kept in
|
|
992
|
+
<code>.forgeqe/agent-runs/<id></code>.</p>
|
|
993
|
+
<p><strong>What the version knows.</strong> Approving pins what the version knows as well as its manifest: a fingerprint of each
|
|
994
|
+
knowledge file and skill it names (every file of the skill's folder) and of its model profile in <code>llms.json</code> (the fields
|
|
995
|
+
that change how it answers, never a key).</p>
|
|
996
|
+
<ul>
|
|
997
|
+
<li>If one of them changes afterwards, the agent is <strong>Knowledge changed</strong>: it does not run, for anyone or anything, until a
|
|
998
|
+
person reads what changed (its page, <code>forgeqe agent check</code>) and approves it again, which pins it anew.</li>
|
|
999
|
+
<li>A run nobody watches that cannot start for this tells the team (<code>agent_failed</code>).</li>
|
|
1000
|
+
<li>Rolling back pins what the chosen version knows now.</li>
|
|
1001
|
+
<li>An agent approved before this was kept runs, with a warning to approve it again.</li>
|
|
1002
|
+
</ul>
|
|
1003
|
+
<p><strong>Checks before approving.</strong> <code>checks</code> are requests to try a version on before it is approved, each graded by code from
|
|
1004
|
+
the run, never by a model:</p>
|
|
870
1005
|
<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">checks:
|
|
871
1006
|
</span></span><span class="ln"><span class="cmd"> - name: basket-total
|
|
872
1007
|
</span></span><span class="ln"><span class="cmd"> request: Check the basket total on qa
|
|
@@ -875,29 +1010,52 @@ after 120 minutes when it sets none.</p>
|
|
|
875
1010
|
</span></span><span class="ln"><span class="cmd"> request: Place an order on production
|
|
876
1011
|
</span></span><span class="ln"><span class="cmd"> expect: { outcome: needs_input }
|
|
877
1012
|
</span></span></code></pre></div>
|
|
878
|
-
<
|
|
879
|
-
|
|
880
|
-
<code>
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
<
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
<code
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
the
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
<
|
|
1013
|
+
<ul>
|
|
1014
|
+
<li><code>outcome</code> is how the run ended (<code>done</code> by default, <code>needs_input</code> or <code>failed</code>).</li>
|
|
1015
|
+
<li><code>says</code> and <code>never_says</code> are words its reply holds or not, matched as written (case aside, never as a pattern).</li>
|
|
1016
|
+
<li><code>uses</code> are tools it called and was allowed; <code>never_uses</code> tools it never called at all.</li>
|
|
1017
|
+
</ul>
|
|
1018
|
+
<p>The checks run on the manifest as it is (read and run only, each run asked), and the results are kept for that exact
|
|
1019
|
+
version. A version whose checks have not all passed is approved only with <code>--skip-checks</code>, or the approve dialog's
|
|
1020
|
+
<strong>Approve it without them</strong>, and its history says so.</p>
|
|
1021
|
+
<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>
|
|
1022
|
+
<ol>
|
|
1023
|
+
<li>On the agent's page, open <strong>Details</strong>, <strong>Checks</strong> for each check's last result, with why it failed.</li>
|
|
1024
|
+
<li>Press <strong>Run checks</strong>, and answer each run's question on the page.</li>
|
|
1025
|
+
</ol>
|
|
1026
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1027
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe agent test <id>
|
|
1028
|
+
</span></span></code></pre></div>
|
|
1029
|
+
</div></div><p><strong>Memory between runs.</strong> <code>memory: { notes: 50 }</code> (or <code>memory: true</code>, 50 notes; at most 200) lets an agent remember between
|
|
1030
|
+
runs. It can keep one short fact at a time (one line, at most 300 characters) and read its notes back, as data.</p>
|
|
1031
|
+
<ul>
|
|
1032
|
+
<li>A note is the model's own text, so it is kept with saved logins' values and key shapes hidden, and one that reads as
|
|
1033
|
+
instructions to an agent is refused.</li>
|
|
1034
|
+
<li>Past the limit, the oldest go. A helper the agent starts has no memory, and <code>deny: [remember]</code> takes the tool away.</li>
|
|
1035
|
+
<li>The notes are kept beside its runs (<code>memory.json</code>, readable only by you). Deleting the agent removes its notes with its
|
|
1036
|
+
runs.</li>
|
|
1037
|
+
</ul>
|
|
1038
|
+
<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>
|
|
1039
|
+
<ol>
|
|
1040
|
+
<li>On the agent's page, open <strong>Details</strong>, <strong>Memory</strong>.</li>
|
|
1041
|
+
<li>Forget one note, or <strong>Forget all</strong> with the agent's id typed. Each is audited.</li>
|
|
1042
|
+
</ol>
|
|
1043
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1044
|
+
<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 agent memory <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> list the notes
|
|
1045
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe agent memory <id> --forget-all</span><span class="pad"> </span><span class="cm"><span class="h">#</span> forget them all
|
|
1046
|
+
</span></span></code></pre></div>
|
|
1047
|
+
</div></div><p><strong>More than one approver.</strong> <code>approval: { people: 2, owners: [Ann Lee, Bo Chen] }</code> asks for more than one person.</p>
|
|
1048
|
+
<ul>
|
|
1049
|
+
<li>Each approval before the last is kept in its history as <strong>Signed</strong> and changes nothing that runs. Once that many
|
|
1050
|
+
different people have approved the exact manifest, it runs (the approval's note names the others).</li>
|
|
1051
|
+
<li>The same person twice, from the terminal or the page, is refused, and with <code>owners</code> only those people approve.</li>
|
|
1052
|
+
<li>A change is approved under the stricter of its own rule and the running version's, so it cannot lower the bar it is
|
|
1053
|
+
approved under.</li>
|
|
1054
|
+
<li>ForgeQE knows a person by git's <code>user.name</code> (else <code>user.email</code>) on their computer: this is an agreement the history
|
|
1055
|
+
keeps and the team reviews in the committed release file, not a sign-in.</li>
|
|
1056
|
+
<li>Disabling, enabling and rolling back to an approved version still take one person.</li>
|
|
1057
|
+
</ul>
|
|
1058
|
+
<p><strong>A result code can read.</strong> <code>output</code> gives its reply a result that code reads, not a model:</p>
|
|
901
1059
|
<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">output:
|
|
902
1060
|
</span></span><span class="ln ln--pair"><span class="cmd"> verdicts: [passed, failed, blocked]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> how a run came out
|
|
903
1061
|
</span></span><span class="ln ln--pair"><span class="cmd"> fail_on: [failed, blocked]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> verdicts that count as a failure
|
|
@@ -905,25 +1063,23 @@ release file, not a sign-in. Disabling, enabling and rolling back to an approved
|
|
|
905
1063
|
</span></span><span class="ln ln--pair"><span class="cmd"> - { name: defects, kind: number }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> number, text (one line) or yes_no
|
|
906
1064
|
</span></span></code></pre></div>
|
|
907
1065
|
<p>The agent is told to end each reply with one line, <code>RESULT {"verdict": "passed", "fields": {"defects": 0}}</code>. ForgeQE
|
|
908
|
-
reads the last such line
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
a
|
|
914
|
-
<
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
<
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
<code>
|
|
925
|
-
<p><code>inputs</code> are what its starters and its schedule's request leave open, written in them as <code>{name}</code>: <code>text</code> (one line),
|
|
926
|
-
<code>environment</code> (one of its environments) or <code>choice</code> (one of its <code>options</code>):</p>
|
|
1066
|
+
reads the last such line: a verdict only of its list, a field only one it names and of its kind (text clipped to 200
|
|
1067
|
+
characters), and says what it left out.</p>
|
|
1068
|
+
<ul>
|
|
1069
|
+
<li>The run keeps the result: its page shows it under <strong>Its result</strong>, and <code>forgeqe agent history</code> shows the verdict.</li>
|
|
1070
|
+
<li>A check can expect one (<code>expect: { verdict: passed }</code>), and another agent or Atlas gets it beside the reply.</li>
|
|
1071
|
+
<li><code>forgeqe agent run</code> prints it and exits 1 on a verdict of <code>fail_on</code>, or on none where verdicts are named.</li>
|
|
1072
|
+
<li>A run nobody watches tells the team such a verdict as a failure (<code>agent_failed</code>), naming the verdict and never quoting
|
|
1073
|
+
a field.</li>
|
|
1074
|
+
</ul>
|
|
1075
|
+
<p><strong>Its model and denied tools.</strong> <code>runtime.model</code> runs the agent on a profile of <code>llms.json</code> by its name (the editor's
|
|
1076
|
+
<strong>Model</strong>), in place of the one ForgeQE's agent would use. A name <code>llms.json</code> does not have is refused, and with
|
|
1077
|
+
<code>code.model</code> set, that model answers instead, which the run says. <code>permissions.deny</code> lists tools it never uses even
|
|
1078
|
+
though its capabilities have them (the editor lists each picked capability's tools), or a system's tools by name or as
|
|
1079
|
+
<code><system>_*</code>. They are not offered, and every call of them is refused, for helpers it hands work to too. It only takes
|
|
1080
|
+
away, and the agent's own approval question cannot be denied.</p>
|
|
1081
|
+
<p><strong>Inputs.</strong> <code>inputs</code> are what its starters and its schedule's request leave open, written in them as <code>{name}</code>: <code>text</code>
|
|
1082
|
+
(one line), <code>environment</code> (one of its environments) or <code>choice</code> (one of its <code>options</code>):</p>
|
|
927
1083
|
<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">inputs:
|
|
928
1084
|
</span></span><span class="ln"><span class="cmd"> - { name: env, label: Environment, kind: environment }
|
|
929
1085
|
</span></span><span class="ln"><span class="cmd"> - { name: build, label: Build, kind: text }
|
|
@@ -933,34 +1089,27 @@ offered and every call of them is refused, for helpers it hands work to too. It
|
|
|
933
1089
|
<p>A starter that names inputs asks for their values on the agent's page and fills the message, which you read before
|
|
934
1090
|
sending. A schedule's values (<code>with</code>) are checked when the manifest is read, and its job gets the finished request. A
|
|
935
1091
|
value is only ever words of the request: one line, at most 200 characters, never starting with a dash.</p>
|
|
936
|
-
<p>Other systems' tools
|
|
937
|
-
a name becomes <code>_</code>; a name too long
|
|
938
|
-
|
|
939
|
-
server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to check the
|
|
1092
|
+
<p><strong>Other systems' tools.</strong> Tools of Azure DevOps, Jira, GitHub and other systems come through ForgeQE with their names as
|
|
1093
|
+
<code><system>_<tool></code> (a dot in a name becomes <code>_</code>; a name too long, or not a plain name, is left out). A tool counts as
|
|
1094
|
+
read-only only when its server marks it read-only and not also destructive. A refused sign-in says to check the
|
|
940
1095
|
credential its settings name.</p>
|
|
941
|
-
<p>Before your team relies on custom agents
|
|
942
|
-
with the model, trying, approving, Atlas, another system, a schedule, production, turning off, and the
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
Custom agents). Then none runs, from the terminal, the web app, Atlas or a schedule; ForgeQE's agent is not
|
|
947
|
-
given the tool that reaches them, and the builder is closed. Their files, approvals and history are kept, so turning
|
|
1096
|
+
<p><strong>Before your team relies on custom agents,</strong> run <a href="../custom-agents-first-run/index.html">the first real run</a> once: building
|
|
1097
|
+
one with the model, trying, approving, Atlas, another system, a schedule, production, turning off, and the record, each
|
|
1098
|
+
with what you should see.</p>
|
|
1099
|
+
<p><strong>Turning custom agents off.</strong> With custom agents off, none runs, from the terminal, the web app, Atlas or a schedule;
|
|
1100
|
+
ForgeQE's agent cannot reach them, and the builder is closed. Their files, approvals and history are kept, so turning
|
|
948
1101
|
them back on restores everything as it was.</p>
|
|
949
|
-
<
|
|
950
|
-
|
|
951
|
-
<
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
manifest, shows the change waiting for approval, what it may reach, its versions with Approve, Disable, Enable and going
|
|
959
|
-
back to an earlier version (each confirmed by typing its id), and its runs with every tool call and the policy's decision.</p>
|
|
960
|
-
</div>
|
|
1102
|
+
<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>
|
|
1103
|
+
<ol>
|
|
1104
|
+
<li>Open <strong>Settings › Agents</strong>.</li>
|
|
1105
|
+
<li>Under <strong>Custom agents</strong>, turn off <strong>Custom agents on</strong>.</li>
|
|
1106
|
+
</ol>
|
|
1107
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1108
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">custom_agents: { enabled: false }</span><span class="pad"> </span><span class="cm"><span class="h">#</span> in forgeqe.yaml
|
|
1109
|
+
</span></span></code></pre></div>
|
|
1110
|
+
</div></div></div>
|
|
961
1111
|
</section>
|
|
962
1112
|
</div>
|
|
963
|
-
</article>
|
|
964
1113
|
<article class="spec feat" id="cap-notifications">
|
|
965
1114
|
<div class="hd"><span class="mono">Operations</span><h3>Teams and email notifications</h3></div>
|
|
966
1115
|
<p class="ds">Tells the team in Microsoft Teams channels or by email when a suite fails or passes, when a release readiness verdict is in, and when the domain evaluation falls below its gate, with the failing cases, their bugs, and links to the report and the CI build. Each channel picks its events; the agent also posts a summary to a channel when asked.</p>
|
|
@@ -970,10 +1119,24 @@ back to an earlier version (each confirmed by typing its id), and its runs with
|
|
|
970
1119
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Automatic notifications come from runs nobody is watching (forgeqe suite, forgeqe run, pipelines, the MCP server), not from the interactive shell, where the agent posts only when asked.</li></ul></div>
|
|
971
1120
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>notify</code></p></div>
|
|
972
1121
|
</div>
|
|
973
|
-
|
|
974
|
-
|
|
1122
|
+
|
|
1123
|
+
</article>
|
|
1124
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-17-notifications">
|
|
975
1125
|
<h4>Notifications</h4>
|
|
976
|
-
<div class="prose"><p>ForgeQE tells the team in Microsoft Teams channels, or by email, when something they should know happens. Each channel picks its events
|
|
1126
|
+
<div class="prose"><p>ForgeQE tells the team in Microsoft Teams channels, or by email, when something they should know happens. Each channel picks its events.</p>
|
|
1127
|
+
<p><strong>Adding a channel.</strong></p>
|
|
1128
|
+
<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>
|
|
1129
|
+
<ol>
|
|
1130
|
+
<li>Open <strong>Settings › Notifications</strong> (under <strong>Connections</strong>).</li>
|
|
1131
|
+
<li>Press <strong>Add</strong> and pick <strong>Microsoft Teams</strong> or <strong>Email</strong>.</li>
|
|
1132
|
+
<li>Fill in <strong>Name</strong> (a short name such as <code>qa</code> or <code>release</code>), then <strong>Webhook variable</strong> for Teams, or the mail server fields for email.</li>
|
|
1133
|
+
<li>Under <strong>Tell it when</strong>, tick the events the channel gets.</li>
|
|
1134
|
+
<li>Press <strong>Test</strong> to send a test message, then <strong>Connect</strong>.</li>
|
|
1135
|
+
<li>Fill in <strong>Where reports are published</strong> under <strong>Links in alerts</strong>, so cards link to each report.</li>
|
|
1136
|
+
<li>To check every channel later, use <strong>Send a test</strong>: pick a channel or <strong>Every channel</strong> and press <strong>Test</strong>.</li>
|
|
1137
|
+
</ol>
|
|
1138
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1139
|
+
<p>Add <code>notify:</code> to <code>forgeqe.yaml</code>:</p>
|
|
977
1140
|
<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">notify:
|
|
978
1141
|
</span></span><span class="ln ln--pair"><span class="cmd"> report_url: https://reports.example.com/forgeqe</span><span class="pad"> </span><span class="cm"><span class="h">#</span> where .forgeqe/reports is published, so cards link to each report
|
|
979
1142
|
</span></span><span class="ln"><span class="cmd"> channels:
|
|
@@ -987,39 +1150,42 @@ back to an earlier version (each confirmed by typing its id), and its runs with
|
|
|
987
1150
|
</span></span><span class="ln"><span class="cmd"> email: { host: smtp.office365.com, port: 587, username_env: SMTP_USERNAME, password_env: SMTP_PASSWORD, to: [qa-leads@example.com] }
|
|
988
1151
|
</span></span><span class="ln"><span class="cmd"> on: [suite_failed, release]
|
|
989
1152
|
</span></span></code></pre></div>
|
|
990
|
-
<div class="
|
|
1153
|
+
<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 notify test [channel]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> send a test card to check it arrives
|
|
1154
|
+
</span></span></code></pre></div>
|
|
1155
|
+
</div></div><p><strong>Events.</strong></p>
|
|
1156
|
+
<div class="tbl tbl--cols-4"><table>
|
|
991
1157
|
<thead>
|
|
992
|
-
<tr><th>Event</th><th>When</th><th>The card shows</th></tr>
|
|
1158
|
+
<tr><th>Event</th><th>In the web app</th><th>When</th><th>The card shows</th></tr>
|
|
993
1159
|
</thead>
|
|
994
1160
|
<tbody>
|
|
995
|
-
<tr><td data-label="Event"><code>suite_failed</code></td><td data-label="When">A suite ends with a case that did not pass, or a test that did not</td><td data-label="The card shows">Each failing case (up to 10) with its kind of failure, the test case and bug links, tests written, and the report and build</td></tr>
|
|
996
|
-
<tr><td data-label="Event"><code>suite_passed</code></td><td data-label="When">Every case passed</td><td data-label="The card shows">The count, how long it took, where it ran</td></tr>
|
|
997
|
-
<tr><td data-label="Event"><code>release</code></td><td data-label="When">A release readiness verdict</td><td data-label="The card shows">GO, GO WITH RISKS, or NO-GO, the counts, every blocker and risk, and the wiki page when published</td></tr>
|
|
998
|
-
<tr><td data-label="Event"><code>eval_failed</code></td><td data-label="When"><code>forgeqe eval domain --min</code> falls below its gate</td><td data-label="The card shows">Coverage for each variant and invented ids</td></tr>
|
|
999
|
-
<tr><td data-label="Event"><code>job_failed</code></td><td data-label="
|
|
1000
|
-
<tr><td data-label="Event"><code>job_recovered</code></td><td data-label="When">A job passes again after failing</td><td data-label="The card shows">The same, for the run that passed</td></tr>
|
|
1001
|
-
<tr><td data-label="Event"><code>job_done</code></td><td data-label="When">A job that runs only when asked ends</td><td data-label="The card shows">The same, whether it passed or failed</td></tr>
|
|
1002
|
-
<tr><td data-label="Event"><code>job_investigated</code></td><td data-label="When">The investigation of a job's failed run is done</td><td data-label="The card shows">Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons</td></tr>
|
|
1003
|
-
<tr><td data-label="Event"><code>agent_waiting</code></td><td data-label="When">A custom agent running with nobody watching waits for a person's approval</td><td data-label="The card shows">What it wants to do and why, until when it waits, and how to answer</td></tr>
|
|
1004
|
-
<tr><td data-label="Event"><code>agent_failed</code></td><td data-label="When">A custom agent's run with nobody watching does not finish (unless its <code>runtime.notify</code> is <code>never</code>)</td><td data-label="The card shows">The outcome, counts of refused calls and declined approvals, and where to read the run</td></tr>
|
|
1005
|
-
<tr><td data-label="Event"><code>agent_done</code></td><td data-label="When">A custom agent's run with nobody watching finishes, when its <code>runtime.notify</code> is <code>always</code></td><td data-label="The card shows">The same</td></tr>
|
|
1006
|
-
<tr><td data-label="Event"><code>evidence_drift</code></td><td data-label="When"><code>forgeqe evidence drift --notify</code> finds an agent changed since its baseline (a model, tool, document, check, its contract or judge), or trusted above what its evidence supports</td><td data-label="The card shows">Each alert, with the runs it rests on (only channels that list it get it)</td></tr>
|
|
1161
|
+
<tr><td data-label="Event"><code>suite_failed</code></td><td data-label="In the web app">A suite failed</td><td data-label="When">A suite ends with a case that did not pass, or a test that did not</td><td data-label="The card shows">Each failing case (up to 10) with its kind of failure, the test case and bug links, tests written, and the report and build</td></tr>
|
|
1162
|
+
<tr><td data-label="Event"><code>suite_passed</code></td><td data-label="In the web app">A suite passed</td><td data-label="When">Every case passed</td><td data-label="The card shows">The count, how long it took, where it ran</td></tr>
|
|
1163
|
+
<tr><td data-label="Event"><code>release</code></td><td data-label="In the web app">Release verdict</td><td data-label="When">A release readiness verdict</td><td data-label="The card shows">GO, GO WITH RISKS, or NO-GO, the counts, every blocker and risk, and the wiki page when published</td></tr>
|
|
1164
|
+
<tr><td data-label="Event"><code>eval_failed</code></td><td data-label="In the web app">An eval failed</td><td data-label="When"><code>forgeqe eval domain --min</code> falls below its gate</td><td data-label="The card shows">Coverage for each variant and invented ids</td></tr>
|
|
1165
|
+
<tr><td data-label="Event"><code>job_failed</code></td><td data-label="In the web app">A schedule failed</td><td data-label="When">A job fails or runs out of time, after passing or for the first time (not again while it keeps failing)</td><td data-label="The card shows">The job, its command and schedule, how long it ran, its last lines of output, and where its output is</td></tr>
|
|
1166
|
+
<tr><td data-label="Event"><code>job_recovered</code></td><td data-label="In the web app">A schedule recovered</td><td data-label="When">A job passes again after failing</td><td data-label="The card shows">The same, for the run that passed</td></tr>
|
|
1167
|
+
<tr><td data-label="Event"><code>job_done</code></td><td data-label="In the web app">A schedule finished</td><td data-label="When">A job that runs only when asked ends</td><td data-label="The card shows">The same, whether it passed or failed</td></tr>
|
|
1168
|
+
<tr><td data-label="Event"><code>job_investigated</code></td><td data-label="In the web app">A failure was investigated</td><td data-label="When">The investigation of a job's failed run is done</td><td data-label="The card shows">Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons</td></tr>
|
|
1169
|
+
<tr><td data-label="Event"><code>agent_waiting</code></td><td data-label="In the web app">A custom agent waits for a person's approval</td><td data-label="When">A custom agent running with nobody watching waits for a person's approval</td><td data-label="The card shows">What it wants to do and why, until when it waits, and how to answer</td></tr>
|
|
1170
|
+
<tr><td data-label="Event"><code>agent_failed</code></td><td data-label="In the web app">A custom agent's run with nobody watching did not finish</td><td data-label="When">A custom agent's run with nobody watching does not finish (unless its <code>runtime.notify</code> is <code>never</code>)</td><td data-label="The card shows">The outcome, counts of refused calls and declined approvals, and where to read the run</td></tr>
|
|
1171
|
+
<tr><td data-label="Event"><code>agent_done</code></td><td data-label="In the web app">A custom agent's run with nobody watching finished</td><td data-label="When">A custom agent's run with nobody watching finishes, when its <code>runtime.notify</code> is <code>always</code></td><td data-label="The card shows">The same</td></tr>
|
|
1172
|
+
<tr><td data-label="Event"><code>evidence_drift</code></td><td data-label="In the web app">An agent under test drifted from its baseline (Evidence)</td><td data-label="When"><code>forgeqe evidence drift --notify</code> finds an agent changed since its baseline (a model, tool, document, check, its contract or judge), or trusted above what its evidence supports</td><td data-label="The card shows">Each alert, with the runs it rests on (only channels that list it get it)</td></tr>
|
|
1173
|
+
<tr><td data-label="Event"><code>sign_in_waiting</code></td><td data-label="In the web app">A run waits for a person to approve a sign-in (a push to a phone)</td><td data-label="When">A run waits for someone to approve a sign-in on their phone</td><td data-label="The card shows">The login and how long the run waits (only channels that list it get it)</td></tr>
|
|
1007
1174
|
</tbody>
|
|
1008
1175
|
</table></div>
|
|
1009
|
-
<p>A channel without <code>on</code> gets <code>suite_failed</code>, <code>release</code>, <code>eval_failed</code>, <code>job_failed</code>, <code>job_recovered</code>, <code>job_investigated</code>, <code>agent_waiting</code> and <code>agent_failed</code>. Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own
|
|
1010
|
-
<p>Events are sent from runs nobody is watching: <code>forgeqe suite</code> in a pipeline or on a schedule, <code>forgeqe run</code>, and the MCP server. In the shell, where people try things out, nothing is sent on its own; ask instead ("post the results to the QA channel", "tell the release channel the verdict"), and ForgeQE's agent posts a card
|
|
1011
|
-
<p>Links
|
|
1012
|
-
<p><strong>Setting up a Teams channel
|
|
1176
|
+
<p>A channel without <code>on</code> gets <code>suite_failed</code>, <code>release</code>, <code>eval_failed</code>, <code>job_failed</code>, <code>job_recovered</code>, <code>job_investigated</code>, <code>agent_waiting</code> and <code>agent_failed</code>. A channel added in the web app starts with <strong>A suite failed</strong> and <strong>A schedule failed</strong> ticked. Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own alerts (section 9), with the same cards.</p>
|
|
1177
|
+
<p><strong>When events are sent.</strong> Events are sent from runs nobody is watching: <code>forgeqe suite</code> in a pipeline or on a schedule, jobs, <code>forgeqe run</code>, and the MCP server. In a chat or the shell, where people try things out, nothing is sent on its own; ask instead ("post the results to the QA channel", "tell the release channel the verdict"), and ForgeQE's agent posts a card.</p>
|
|
1178
|
+
<p><strong>Links.</strong> With <code>report_url</code> (<strong>Where reports are published</strong>), cards open the report where the reports folder is published. In Azure Pipelines and GitHub Actions they also open the build, where the report is an artifact. Without either, the card names the report's path.</p>
|
|
1179
|
+
<p><strong>Setting up a Teams channel.</strong></p>
|
|
1013
1180
|
<ol>
|
|
1014
1181
|
<li>In the channel, open <strong>Workflows</strong> and choose <strong>Post to a channel when a webhook request is received</strong>, then copy the URL it gives you. Microsoft is retiring the older Office 365 "Incoming Webhook" connectors; Workflows webhooks take the same cards.</li>
|
|
1015
|
-
<li>The URL is the secret (anyone with it can post): keep it in the environment, the system's credential store (<code>forgeqe auth login TEAMS_WEBHOOK_URL</code>), or a pipeline secret, never in <code>forgeqe.yaml</code>.</li>
|
|
1182
|
+
<li>The URL is the secret (anyone with it can post): keep it in the environment, the system's credential store (the web app's <strong>Webhook variable</strong> field, or <code>forgeqe auth login TEAMS_WEBHOOK_URL</code>), or a pipeline secret, never in <code>forgeqe.yaml</code>.</li>
|
|
1016
1183
|
<li>Create the workflow with a shared or service account: a workflow belongs to whoever made it and stops when they leave. Your tenant must allow the Workflows app.</li>
|
|
1017
|
-
<li
|
|
1184
|
+
<li>Send a test card (<strong>Send a test</strong> in the web app, or <code>forgeqe notify test [channel]</code>) to check it arrives.</li>
|
|
1018
1185
|
</ol>
|
|
1019
1186
|
</div>
|
|
1020
1187
|
</section>
|
|
1021
1188
|
</div>
|
|
1022
|
-
</article>
|
|
1023
1189
|
<article class="spec feat" id="cap-pipelines">
|
|
1024
1190
|
<div class="hd"><span class="mono">Operations</span><h3>CI pipelines</h3></div>
|
|
1025
1191
|
<p class="ds">Writes a GitHub Actions or Azure Pipelines workflow that runs ForgeQE, stores the secrets it needs, pushes a branch, and makes the pipeline green.</p>
|
|
@@ -1028,35 +1194,43 @@ back to an earlier version (each confirmed by typing its id), and its runs with
|
|
|
1028
1194
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>git on PATH</span></li><li><span class="need req">Required</span><span>gh on PATH, for GitHub Actions; or az on PATH, for Azure Pipelines</span></li></ul></div>
|
|
1029
1195
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>push_branch</code> <code>set_ci_secret</code></p></div>
|
|
1030
1196
|
</div>
|
|
1031
|
-
|
|
1032
|
-
|
|
1197
|
+
|
|
1198
|
+
</article>
|
|
1199
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-8-pipelines">
|
|
1033
1200
|
<h4>Pipelines</h4>
|
|
1034
|
-
<div class="prose"><p>ForgeQE's agent writes, runs
|
|
1201
|
+
<div class="prose"><p>ForgeQE's agent writes, runs and fixes GitHub Actions and Azure Pipelines. Ask for the pipeline you want in plain words.</p>
|
|
1202
|
+
<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>
|
|
1203
|
+
<ol>
|
|
1204
|
+
<li>Check that <strong>Settings › Code</strong> points at the repository the pipeline belongs to.</li>
|
|
1205
|
+
<li>Open <strong>New chat</strong>.</li>
|
|
1206
|
+
<li>Type the request, for example "Add a GitHub Actions workflow that runs the smoke cases in cases.yaml on every pull request", and send it.</li>
|
|
1207
|
+
</ol>
|
|
1208
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
1209
|
+
<p>Run it in the repository, or pass <code>--repo</code>:</p>
|
|
1035
1210
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe run "Add a GitHub Actions workflow that runs the smoke cases in cases.yaml on every pull request"
|
|
1036
1211
|
</span></span><span class="ln"><span class="cmd">forgeqe run "Set up an Azure DevOps pipeline that runs test plan 12 every night and posts results back"
|
|
1037
1212
|
</span></span><span class="ln"><span class="cmd">forgeqe run "The ForgeQE workflow is failing, fix it"
|
|
1038
1213
|
</span></span></code></pre></div>
|
|
1039
|
-
|
|
1214
|
+
</div></div><p><strong>What the agent does.</strong></p>
|
|
1040
1215
|
<ol>
|
|
1041
|
-
<li>
|
|
1042
|
-
<li>
|
|
1043
|
-
<li>
|
|
1044
|
-
<li>
|
|
1045
|
-
<li>
|
|
1046
|
-
<li>
|
|
1216
|
+
<li>It works out the platform from the git remote (github.com, or dev.azure.com / visualstudio.com) and reads the repository's existing CI, so it can add a job to it or write a new file.</li>
|
|
1217
|
+
<li>It writes the pipeline so it installs ForgeQE and <code>forgeqe setup</code>), runs <code>forgeqe suite <source...> --no-code --plain --out <dir></code>, and publishes <code>junit.xml</code> and the report folder. On GitHub the suite adds a results table to the job summary.</li>
|
|
1218
|
+
<li>It validates the file (with actionlint when it is installed, otherwise by reading the YAML) and commits it.</li>
|
|
1219
|
+
<li>It pushes to a new branch named <code>forgeqe/ci-<topic></code>. It never pushes to the default branch, <code>main</code> or <code>master</code>, and never forces a push. Merging stays with you.</li>
|
|
1220
|
+
<li>It stores the keys the pipeline needs as pipeline secrets: the model's key from <code>llms.json</code>, and <code>ADO_PAT</code>, <code>JIRA_EMAIL</code> and <code>JIRA_API_TOKEN</code>, or <code>XRAY_CLIENT_ID</code> and <code>XRAY_CLIENT_SECRET</code>. The agent only names the variable; ForgeQE passes the value from its own environment and never shows it. A variable that is not set in ForgeQE's environment is reported, not guessed.</li>
|
|
1221
|
+
<li>It starts the run, watches it, reads the logs of failed steps, fixes the pipeline (or the code), pushes again, and repeats until the run passes or <code>code.max_attempts</code> runs have failed. It reports the run link and the result.</li>
|
|
1047
1222
|
</ol>
|
|
1048
|
-
<p>
|
|
1223
|
+
<p><strong>What it needs.</strong> The GitHub CLI (<code>gh</code>) signed in for GitHub, or the Azure CLI (<code>az</code>) with the <code>azure-devops</code> extension signed in for Azure DevOps. Without them the agent still writes, validates and commits the pipeline, then tells you the commands to run. Set <code>llm.active</code> to a live profile in the committed <code>forgeqe.yaml</code>. With a <code>github_copilot</code> profile, the pipeline needs a GitHub token for Copilot in <code>COPILOT_GITHUB_TOKEN</code> (see <a href="../get-started/index.html#doc-how_to_use-github-copilot-seats-as-the-model">In pipelines</a>).</p>
|
|
1049
1224
|
</div>
|
|
1050
1225
|
</section>
|
|
1051
1226
|
</div>
|
|
1052
|
-
</article>
|
|
1053
1227
|
|
|
1054
1228
|
<nav class="pager" aria-label="Previous and next">
|
|
1055
1229
|
<a class="prev" href="../area-setup/index.html"><small>Previous</small><span>Setup and configuration</span></a>
|
|
1056
1230
|
<a class="next" href="../area-data/index.html"><small>Next</small><span>Test data and databases</span></a>
|
|
1057
1231
|
</nav>
|
|
1058
1232
|
</main>
|
|
1059
|
-
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-containers">Services, mocks, workspace and browser in Docker or Podman</a></li><li><a href="#doc-
|
|
1233
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-containers">Services, mocks, workspace and browser in Docker or Podman</a></li><li><a href="#doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">ForgeQE containers: services and mocks in Docker or Podman</a></li><li><a href="#doc-docs-containers-use">Use</a></li><li><a href="#doc-docs-containers-declaring-services">Declaring services</a></li><li><a href="#doc-docs-containers-compose-files">Compose files</a></li><li><a href="#doc-docs-containers-the-project-network">The project network</a></li><li><a href="#doc-docs-containers-tests-in-a-container">Tests in a container</a></li><li><a href="#doc-docs-containers-the-workspace">The workspace</a></li><li><a href="#doc-docs-containers-the-browser-in-a-container">The browser in a container</a></li><li><a href="#doc-docs-containers-testcontainers-quill">Testcontainers (Quill)</a></li><li><a href="#doc-docs-containers-mocks">Mocks</a></li><li><a href="#doc-docs-containers-lifetime">Lifetime</a></li><li><a href="#doc-docs-containers-security">Security</a></li><li><a href="#cap-production-errors">Production errors and the tests that cover them</a></li><li><a href="#cap-model-cost">Model cost and usage</a></li><li><a href="#cap-monitoring">Scheduled monitoring with alerts</a></li><li><a href="#cap-jobs">Background jobs on a schedule</a></li><li><a href="#cap-custom-agents">Your team's custom agents</a></li><li><a href="#cap-notifications">Teams and email notifications</a></li><li><a href="#cap-pipelines">CI pipelines</a></li></ul></aside>
|
|
1060
1234
|
</div>
|
|
1061
1235
|
<footer class="foot">
|
|
1062
1236
|
<div class="container foot__row">
|