@capagents/forgeqe 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +435 -78
- package/README.md +21 -6
- package/THIRD_PARTY_NOTICES.md +210 -1
- package/dist/docs-site/CREDITS.md +6 -0
- package/dist/docs-site/architecture-map/index.html +1 -1
- package/dist/docs-site/docs/app-theme.css +100 -8
- package/dist/docs-site/docs/architecture/index.html +210 -214
- package/dist/docs-site/docs/area-api/index.html +350 -0
- package/dist/docs-site/docs/area-automated-tests/index.html +967 -0
- package/dist/docs-site/docs/area-browser/index.html +430 -0
- package/dist/docs-site/docs/area-data/index.html +605 -0
- package/dist/docs-site/docs/area-desktop/index.html +755 -0
- package/dist/docs-site/docs/area-mobile/index.html +631 -0
- package/dist/docs-site/docs/area-operations/index.html +1069 -0
- package/dist/docs-site/docs/area-pull-requests/index.html +208 -0
- package/dist/docs-site/docs/area-quality/index.html +365 -0
- package/dist/docs-site/docs/area-release/index.html +320 -0
- package/dist/docs-site/docs/area-setup/index.html +1192 -0
- package/dist/docs-site/docs/area-systems/index.html +207 -0
- package/dist/docs-site/docs/area-test-cases/index.html +694 -0
- package/dist/docs-site/docs/containers/index.html +97 -104
- package/dist/docs-site/docs/cost-architecture/index.html +108 -112
- package/dist/docs-site/docs/custom-agents-first-run/index.html +19 -23
- package/dist/docs-site/docs/desktop/index.html +172 -162
- package/dist/docs-site/docs/desktop-ci/index.html +26 -33
- package/dist/docs-site/docs/evidence/index.html +253 -257
- package/dist/docs-site/docs/feature-test-prompts/index.html +66 -70
- package/dist/docs-site/docs/get-started/index.html +495 -0
- package/dist/docs-site/docs/graphify/index.html +42 -46
- package/dist/docs-site/docs/guardrails/index.html +17 -21
- package/dist/docs-site/docs/index.html +17 -6729
- package/dist/docs-site/docs/mobile/index.html +155 -162
- package/dist/docs-site/docs/model-routing/index.html +44 -51
- package/dist/docs-site/docs/overview/index.html +176 -0
- package/dist/docs-site/docs/product-graph/index.html +52 -55
- package/dist/docs-site/docs/product-knowledge/index.html +11 -15
- package/dist/docs-site/docs/product-views/index.html +53 -57
- package/dist/docs-site/docs/reference/index.html +379 -0
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +480 -0
- package/dist/docs-site/docs/web-app/index.html +147 -93
- package/dist/docs-site/security/index.html +930 -0
- package/dist/docs-site/security/security-theme.css +161 -0
- package/dist/docs-site/security/security.js +1465 -0
- package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
- package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
- package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
- package/dist/forgeqe.js +1902 -1895
- package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
- package/dist/web/assets/Agent-CPhmZdFX.js +8 -0
- package/dist/web/assets/AgentWork-BXdN9xgi.js +2 -0
- package/dist/web/assets/ApiTests-Do3xLjfB.js +10 -0
- package/dist/web/assets/Browse-WVkJT6Bs.js +2 -0
- package/dist/web/assets/Chat-CDc9UcQX.js +3 -0
- package/dist/web/assets/CommandPalette-BAZm62lV.js +1 -0
- package/dist/web/assets/Compare-Br6n9T9L.js +1 -0
- package/dist/web/assets/Cost-BBUyBu3Y.js +1 -0
- package/dist/web/assets/Data-Ch2DPEWp.js +6 -0
- package/dist/web/assets/Desktop-Qzoq-cQv.js +1 -0
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +1 -0
- package/dist/web/assets/Evidence-C72Lj5_Q.js +1 -0
- package/dist/web/assets/Explore-ObkEpUyS.js +2 -0
- package/dist/web/assets/Features-CQzNo_WP.js +1 -0
- package/dist/web/assets/Flags-0-RniPJm.js +2 -0
- package/dist/web/assets/Flaky-BPJvNLCA.js +1 -0
- package/dist/web/assets/Impact-CfccsL_k.js +3 -0
- package/dist/web/assets/Jobs-T6m4zhDy.js +5 -0
- package/dist/web/assets/KindPage-BDUvWe2p.js +6 -0
- package/dist/web/assets/Migration-Dqeh4x5u.js +2 -0
- package/dist/web/assets/PageAgent-DNjzIgeY.js +1 -0
- package/dist/web/assets/Product-nYV_scOV.js +7 -0
- package/dist/web/assets/Production-CGSbEWVa.js +1 -0
- package/dist/web/assets/Quality-BIypojZm.js +1 -0
- package/dist/web/assets/Readiness-BlRjwJRg.js +1 -0
- package/dist/web/assets/Record-v2KLI-_Z.js +1 -0
- package/dist/web/assets/Regression-B-jSt4Jz.js +5 -0
- package/dist/web/assets/RelationGraph-8J98lOVG.js +1 -0
- package/dist/web/assets/Reports-GI4u6SyW.js +2 -0
- package/dist/web/assets/Response-mhBThq2b.js +9 -0
- package/dist/web/assets/Responsive-DXu7Ra7K.js +3 -0
- package/dist/web/assets/RunDiff-D0SHDNp0.js +1 -0
- package/dist/web/assets/Runs-C1Gjdi9M.js +2 -0
- package/dist/web/assets/Settings-BGGeuvyF.js +21 -0
- package/dist/web/assets/Steps-D-YG0eJy.js +2 -0
- package/dist/web/assets/TestCases-DC4w77eQ.js +1 -0
- package/dist/web/assets/TestData-CvKWRVVV.js +2 -0
- package/dist/web/assets/TestDebt-D8YzN29_.js +1 -0
- package/dist/web/assets/TestManagement-C5cDCqrD.js +1 -0
- package/dist/web/assets/Tosca-BGUv3RiJ.js +3 -0
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +1 -0
- package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
- package/dist/web/assets/coverage-BMP6ELFJ.js +5 -0
- package/dist/web/assets/dataParts-DbeCj9ga.js +3 -0
- package/dist/web/assets/diff-BStuTmsN.js +2 -0
- package/dist/web/assets/families-BBFFrUlo.js +1 -0
- package/dist/web/assets/filters-CnAMr286.js +1 -0
- package/dist/web/assets/fold-D_O_VZui.js +1 -0
- package/dist/web/assets/head-CRo48rPt.js +1 -0
- package/dist/web/assets/highlight-BcFZIf59.js +4 -0
- package/dist/web/assets/index-B3JsM7tv.js +64 -0
- package/dist/web/assets/index-CafApcbZ.css +2 -0
- package/dist/web/assets/input-CtzK50ZF.js +1 -0
- package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/web/assets/line-icons-rdF8DYDJ.js +1 -0
- package/dist/web/assets/logos-D4oVWzqa.js +1 -0
- package/dist/web/assets/palette-DAaGSao7.js +1 -0
- package/dist/web/assets/paletteCommands-Co-RlQ8q.js +1 -0
- package/dist/web/assets/parts-D357Wolo.js +1 -0
- package/dist/web/assets/productParts-B8oHRCJF.js +1 -0
- package/dist/web/assets/qualityParts-BLkmIfDY.js +1 -0
- package/dist/web/assets/recordTest-Cez2sDJO.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/route-BloYJWgw.js +1 -0
- package/dist/web/index.html +12 -6
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/BASAL.md +1 -1
- package/docs/DESKTOP.md +20 -1
- package/docs/EVIDENCE.md +1 -1
- package/docs/MOBILE.md +4 -4
- package/docs/PRODUCT_KNOWLEDGE.md +2 -0
- package/docs/WEB_APP.md +114 -51
- package/docs/user-guide.html +404 -81
- package/forgeqe.example.yaml +3 -3
- package/package.json +1 -1
- package/prompts/page-differs.md +1 -1
- package/prompts/requests-rule.md +1 -1
- package/prompts/test-reviewer.md +1 -1
- package/prompts/test-rules.md +3 -4
- package/skills/web-guidance/LICENSE +202 -0
- package/skills/web-guidance/SKILL.md +76 -0
- package/skills/web-guidance/UPSTREAM +67 -0
- package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
- package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
- package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
- package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
- package/skills/web-guidance/references/css/responsive-design.md +16 -0
- package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
- package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
- package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
- package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
- package/skills/web-guidance/references/forms/forms.md +415 -0
- package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
- package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
- package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
- package/skills/web-guidance/references/forms/slider.md +184 -0
- package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
- package/skills/web-guidance/references/forms/switch.md +60 -0
- package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
- package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
- package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
- package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
- package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
- package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
- package/skills/web-guidance/references/performance/performance.md +384 -0
- package/skills/web-guidance/references/privacy/privacy.md +247 -0
- package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
- package/skills/web-guidance/references/security/passkey-management.md +310 -0
- package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
- package/skills/web-guidance/references/security/passkey-registration.md +186 -0
- package/skills/web-guidance/references/security/passkeys.md +39 -0
- package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
- package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
- package/skills/web-guidance/references/security/security.md +390 -0
- package/skills/web-guidance/references/security/trusted-types.md +141 -0
- package/skills/web-guidance/references/security/validate-origins.md +197 -0
- package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
- package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
- package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
- package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
- package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
- package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
- package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
- package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
- package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
- package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
- package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
- package/skills/web-guidance/references/ui-components/accordion.md +343 -0
- package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
- package/skills/web-guidance/references/ui-components/carousel.md +206 -0
- package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
- package/skills/web-guidance/references/ui-components/dialog.md +218 -0
- package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
- package/skills/web-guidance/references/ui-components/menu.md +415 -0
- package/skills/web-guidance/references/ui-components/navbar.md +281 -0
- package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
- package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
- package/skills/web-guidance/references/ui-components/progress.md +181 -0
- package/skills/web-guidance/references/ui-components/spinner.md +179 -0
- package/skills/web-guidance/references/ui-components/tabs.md +371 -0
- package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
- package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
- package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
- package/skills/web-guidance/references/visual-design/color.md +43 -0
- package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
- package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
- package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
- package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
- package/dist/web/assets/Chat-B3uhI94O.js +0 -3
- package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
- package/dist/web/assets/Compare-CN75w1p9.js +0 -1
- package/dist/web/assets/Cost-QoxyjR95.js +0 -1
- package/dist/web/assets/Data-BAvkcBVt.js +0 -6
- package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
- package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
- package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
- package/dist/web/assets/Explore-D9AuyTip.js +0 -2
- package/dist/web/assets/Features-CusGMDR9.js +0 -1
- package/dist/web/assets/Flags-CycGFuUP.js +0 -2
- package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
- package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
- package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
- package/dist/web/assets/KindPage-BielEIej.js +0 -6
- package/dist/web/assets/Migration-NwanKpJg.js +0 -2
- package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
- package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
- package/dist/web/assets/Production-D3zsyNIS.js +0 -1
- package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
- package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
- package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
- package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
- package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
- package/dist/web/assets/Response-BP0UwQcW.js +0 -9
- package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
- package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
- package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
- package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
- package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
- package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
- package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
- package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
- package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
- package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
- package/dist/web/assets/families-DYlN5v0i.js +0 -1
- package/dist/web/assets/filters-faaSnoIq.js +0 -1
- package/dist/web/assets/fold-CUjwWAK3.js +0 -1
- package/dist/web/assets/frame-BLPdAXUq.js +0 -13
- package/dist/web/assets/head-CsTxBsO0.js +0 -1
- package/dist/web/assets/index-CxiCvGZq.js +0 -78
- package/dist/web/assets/index-dOIsrzhD.css +0 -2
- package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
- package/dist/web/assets/logos-dGuc1jIM.js +0 -1
- package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
- package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
- package/dist/web/assets/parts-CdF1f7yS.js +0 -1
- package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
- package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
- package/dist/web/assets/recordTest-P792aBUt.js +0 -1
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Operations and monitoring · ForgeQE docs</title>
|
|
7
|
+
<meta name="description" content="How to use ForgeQE: set it up, configure it, and every feature in detail, with what it needs and how to ask for it.">
|
|
8
|
+
<meta name="theme-color" content="#ffffff">
|
|
9
|
+
<link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/">
|
|
10
|
+
<link rel="icon" type="image/png" href="../../img/favicon.png">
|
|
11
|
+
<link rel="stylesheet" href="../docs.css">
|
|
12
|
+
<script src="../search.js" defer></script>
|
|
13
|
+
<script src="../docs.js" defer></script>
|
|
14
|
+
<link rel="stylesheet" href="../../app-look.css">
|
|
15
|
+
<link rel="stylesheet" href="../app-theme.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body class="docs">
|
|
18
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Phosphor Duotone (MIT), from web/src/flatIcons.ts --><symbol id="ph-context-engine" viewBox="0 0 256 256"><g fill="currentColor"><path d="m195.88 195.88l-39.6-39.6a40 40 0 0 0 0-56.56l39.6-39.6a96 96 0 0 1 0 135.76M60.12 60.12a96 96 0 0 0 0 135.76l39.6-39.6a40 40 0 0 1 0-56.56Z" opacity=".2"/><path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m39.1 131.79a47.84 47.84 0 0 0 0-55.58l28.5-28.49a87.83 87.83 0 0 1 0 112.56ZM96 128a32 32 0 1 1 32 32a32 32 0 0 1-32-32m88.28-67.6l-28.49 28.5a47.84 47.84 0 0 0-55.58 0L71.72 60.4a87.83 87.83 0 0 1 112.56 0M60.4 71.72l28.5 28.49a47.84 47.84 0 0 0 0 55.58l-28.5 28.49a87.83 87.83 0 0 1 0-112.56M71.72 195.6l28.49-28.5a47.84 47.84 0 0 0 55.58 0l28.49 28.5a87.83 87.83 0 0 1-112.56 0"/></g></symbol><symbol id="ph-wikis" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96" opacity=".2"/><path d="M140 180a12 12 0 1 1-12-12a12 12 0 0 1 12 12M128 72c-22.06 0-40 16.15-40 36v4a8 8 0 0 0 16 0v-4c0-11 10.77-20 24-20s24 9 24 20s-10.77 20-24 20a8 8 0 0 0-8 8v8a8 8 0 0 0 16 0v-.72c18.24-3.35 32-17.9 32-35.28c0-19.85-17.94-36-40-36m104 56A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88"/></g></symbol><symbol id="ph-shield" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 56v56c0 96-88 120-88 120s-88-24-88-120V56a8 8 0 0 1 8-8h160a8 8 0 0 1 8 8" opacity=".2"/><path d="M208 40H48a16 16 0 0 0-16 16v56c0 52.72 25.52 84.67 46.93 102.19c23.06 18.86 46 25.26 47 25.53a8 8 0 0 0 4.2 0c1-.27 23.91-6.67 47-25.53C198.48 196.67 224 164.72 224 112V56a16 16 0 0 0-16-16m0 72c0 37.07-13.66 67.16-40.6 89.42a129.3 129.3 0 0 1-39.4 22.2a128.3 128.3 0 0 1-38.92-21.81C61.82 179.51 48 149.3 48 112V56h160ZM82.34 141.66a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 11.32l-56 56a8 8 0 0 1-11.32 0Z"/></g></symbol><symbol id="ph-architecture" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 80l-96 56l-96-56l96-56Z" opacity=".2"/><path d="M230.91 172a8 8 0 0 1-2.91 10.91l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 36 169.09l92 53.65l92-53.65a8 8 0 0 1 10.91 2.91M220 121.09l-92 53.65l-92-53.65a8 8 0 0 0-8 13.82l96 56a8 8 0 0 0 8.06 0l96-56a8 8 0 1 0-8.06-13.82M24 80a8 8 0 0 1 4-6.91l96-56a8 8 0 0 1 8.06 0l96 56a8 8 0 0 1 0 13.82l-96 56a8 8 0 0 1-8.06 0l-96-56A8 8 0 0 1 24 80m23.88 0L128 126.74L208.12 80L128 33.26Z"/></g></symbol><symbol id="ph-mail" viewBox="0 0 256 256"><g fill="currentColor"><path d="m224 56l-96 88l-96-88Z" opacity=".2"/><path d="M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8m-20.57 16L128 133.15L52.57 64ZM216 192H40V74.19l82.59 75.71a8 8 0 0 0 10.82 0L216 74.19z"/></g></symbol><symbol id="ph-network" viewBox="0 0 256 256"><g fill="currentColor"><path d="M152 128a24 24 0 1 1-24-24a24 24 0 0 1 24 24" opacity=".2"/><path d="M200 152a31.84 31.84 0 0 0-19.53 6.68l-23.11-18A31.65 31.65 0 0 0 160 128c0-.74 0-1.48-.08-2.21l13.23-4.41A32 32 0 1 0 168 104c0 .74 0 1.48.08 2.21l-13.23 4.41A32 32 0 0 0 128 96a32.6 32.6 0 0 0-5.27.44L115.89 81A32 32 0 1 0 96 88a32.6 32.6 0 0 0 5.27-.44l6.84 15.4a31.92 31.92 0 0 0-8.57 39.64l-25.71 22.84a32.06 32.06 0 1 0 10.63 12l25.71-22.84a31.91 31.91 0 0 0 37.36-1.24l23.11 18A31.65 31.65 0 0 0 168 184a32 32 0 1 0 32-32m0-64a16 16 0 1 1-16 16a16 16 0 0 1 16-16M80 56a16 16 0 1 1 16 16a16 16 0 0 1-16-16M56 208a16 16 0 1 1 16-16a16 16 0 0 1-16 16m56-80a16 16 0 1 1 16 16a16 16 0 0 1-16-16m88 72a16 16 0 1 1 16-16a16 16 0 0 1-16 16"/></g></symbol></svg>
|
|
19
|
+
<svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
|
|
20
|
+
<symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
|
|
21
|
+
<line x1="8" x2="16" y1="21" y2="21" />
|
|
22
|
+
<line x1="12" x2="12" y1="17" y2="21" /></symbol>
|
|
23
|
+
<symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
|
|
24
|
+
<path d="M12 18h.01" /></symbol>
|
|
25
|
+
<symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
|
|
26
|
+
<path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
|
|
27
|
+
<symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
|
|
28
|
+
<path d="M10 21.9V14L2.1 9.1" />
|
|
29
|
+
<path d="m10 14 11.9-6.9" />
|
|
30
|
+
<path d="M14 19.8v-8.1" />
|
|
31
|
+
<path d="M18 17.5V9.4" /></symbol>
|
|
32
|
+
<symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
|
|
33
|
+
<path d="m9 12 2 2 4-4" /></symbol>
|
|
34
|
+
<symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
|
|
35
|
+
<path d="M14 2v4a2 2 0 0 0 2 2h4" />
|
|
36
|
+
<path d="M10 9H8" />
|
|
37
|
+
<path d="M16 13H8" />
|
|
38
|
+
<path d="M16 17H8" /></symbol>
|
|
39
|
+
<symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
|
|
40
|
+
<line x1="12" x2="20" y1="19" y2="19" /></symbol>
|
|
41
|
+
<symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
|
|
42
|
+
<path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
|
|
43
|
+
<path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
|
|
44
|
+
<path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
|
|
45
|
+
<path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
|
|
46
|
+
<path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
|
|
47
|
+
<path d="M19.938 10.5a4 4 0 0 1 .585.396" />
|
|
48
|
+
<path d="M6 18a4 4 0 0 1-1.967-.516" />
|
|
49
|
+
<path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
|
|
50
|
+
<symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
|
|
51
|
+
<circle cx="18" cy="6" r="3" />
|
|
52
|
+
<circle cx="6" cy="18" r="3" />
|
|
53
|
+
<path d="M18 9a9 9 0 0 1-9 9" /></symbol>
|
|
54
|
+
<symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
|
|
55
|
+
<path d="M3 5V19A9 3 0 0 0 21 19V5" />
|
|
56
|
+
<path d="M3 12A9 3 0 0 0 21 12" /></symbol>
|
|
57
|
+
<symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
|
|
58
|
+
<symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
|
|
59
|
+
<path d="M17 3h2a2 2 0 0 1 2 2v2" />
|
|
60
|
+
<path d="M21 17v2a2 2 0 0 1-2 2h-2" />
|
|
61
|
+
<path d="M7 21H5a2 2 0 0 1-2-2v-2" />
|
|
62
|
+
<circle cx="12" cy="12" r="3" />
|
|
63
|
+
<path d="m16 16-1.9-1.9" /></symbol>
|
|
64
|
+
<symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
|
|
65
|
+
<path d="M14.12 3.88 16 2" />
|
|
66
|
+
<path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
|
|
67
|
+
<path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
|
|
68
|
+
<path d="M12 20v-9" />
|
|
69
|
+
<path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
|
|
70
|
+
<path d="M6 13H2" />
|
|
71
|
+
<path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
|
|
72
|
+
<path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
|
|
73
|
+
<path d="M22 13h-4" />
|
|
74
|
+
<path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
|
|
75
|
+
<symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
|
|
76
|
+
<path d="M3 11v-1a4 4 0 0 1 4-4h14" />
|
|
77
|
+
<path d="m7 22-4-4 4-4" />
|
|
78
|
+
<path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
|
|
79
|
+
<symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
|
|
80
|
+
<polyline points="8 6 2 12 8 18" /></symbol>
|
|
81
|
+
<symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
|
|
82
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
|
|
83
|
+
<symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
|
|
84
|
+
<path d="M9 8V2" />
|
|
85
|
+
<path d="M15 8V2" />
|
|
86
|
+
<path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
|
|
87
|
+
<symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
|
|
88
|
+
<path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
|
|
89
|
+
<path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
|
|
90
|
+
<symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
|
|
91
|
+
<symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
|
|
92
|
+
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
|
|
93
|
+
<symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
|
|
94
|
+
<symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
|
|
95
|
+
<symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
|
|
96
|
+
<symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
|
|
97
|
+
<symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
|
|
98
|
+
</svg>
|
|
99
|
+
|
|
100
|
+
<a class="skip" href="#main">Skip to content</a>
|
|
101
|
+
<header class="nav" id="navigation">
|
|
102
|
+
<div class="nav__bar">
|
|
103
|
+
<a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="" width="160" height="76"></picture><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
|
|
104
|
+
<nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></nav>
|
|
105
|
+
<div class="nav__end">
|
|
106
|
+
<button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
|
|
107
|
+
<button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-context-engine"/></svg>Product</a></li><li><a href="../index.html" aria-current="page"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs</a></li><li><a href="../../security/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg>Security</a></li><li><a href="../../architecture-map/index.html"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><svg class="pix pix--nav ph" aria-hidden="true" focusable="false"><use href="#ph-mail"/></svg>Contact us</a></li></ul></div>
|
|
111
|
+
</header>
|
|
112
|
+
<div class="container docs-layout">
|
|
113
|
+
<nav class="docs-side" aria-label="Docs">
|
|
114
|
+
<a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
115
|
+
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="index.html" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
|
|
116
|
+
</nav>
|
|
117
|
+
<main id="main" class="docs-main guide chapter-page">
|
|
118
|
+
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Setup and operations</p>
|
|
119
|
+
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="index.html" aria-current="page"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><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-how_to_use-containers-and-mock-services">Containers and mock services</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="#doc-how_to_use-production-errors">Production errors</a></li><li><a href="#cap-model-cost">Model cost and usage</a></li><li><a href="#doc-how_to_use-model-cost">Model cost</a></li><li><a href="#cap-monitoring">Scheduled monitoring with alerts</a></li><li><a href="#doc-how_to_use-9-monitoring">Monitoring</a></li><li><a href="#cap-jobs">Background jobs on a schedule</a></li><li><a href="#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell">The jobs service: scheduled and long jobs apart from the shell</a></li><li><a href="#cap-custom-agents">Your team's custom agents</a></li><li><a href="#doc-how_to_use-custom-agents">Custom agents</a></li><li><a href="#cap-notifications">Teams and email notifications</a></li><li><a href="#doc-how_to_use-17-notifications">Notifications</a></li><li><a href="#cap-pipelines">CI pipelines</a></li><li><a href="#doc-how_to_use-8-pipelines">Pipelines</a></li></ul></nav></details></div>
|
|
120
|
+
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-network"/></svg>Operations and monitoring</h1>
|
|
121
|
+
<p class="guide-lead">Monitoring and CI pipelines</p>
|
|
122
|
+
<article class="spec feat" id="cap-containers">
|
|
123
|
+
<div class="hd"><span class="mono">Operations</span><h3>Services, mocks, workspace and browser in Docker or Podman</h3></div>
|
|
124
|
+
<p class="ds">Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, with an optional rules file for conditional responses and fault or latency injection, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container.</p>
|
|
125
|
+
<div class="facts">
|
|
126
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Start the database and the queue in Docker</li><li>Start the services from our docker-compose file</li><li>Mock the payments API from the last run</li><li>Create a mock service from openapi.yaml and point order-api at it</li><li>Mock the orders API with rules that return 404 for unknown ids and a 500 fault</li><li>Show the logs of the db container</li></ul></div>
|
|
127
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>Docker or Podman on PATH; the services to start in containers.services in forgeqe.yaml (mocks need none)</span></li></ul></div>
|
|
128
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>services</code> <code>mock_service</code></p></div>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
132
|
+
<section class="doc" id="doc-how_to_use-containers-and-mock-services">
|
|
133
|
+
<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
|
+
not call. Ask in the shell: "start the database and the queue", "mock the payments API from the last run", "make a mock
|
|
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>
|
|
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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd"> services:
|
|
141
|
+
</span></span><span class="ln"><span class="cmd"> db:
|
|
142
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: postgres:16.4</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version or a digest; never latest
|
|
143
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> ports: [5432]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or "15432:5432" (this machine:container); always 127.0.0.1
|
|
144
|
+
</span></span><span class="ln"><span class="cmd"> env: { POSTGRES_DB: shop, POSTGRES_USER: shop }
|
|
145
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> secrets: [POSTGRES_PASSWORD]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> names of environment variables (.env works), passed by name
|
|
146
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> volumes: ["./db/init:/docker-entrypoint-initdb.d"]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read-only, inside the project
|
|
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
|
+
</span></span><span class="ln"><span class="cmd"> timeout: 90
|
|
149
|
+
</span></span></code></pre></div>
|
|
150
|
+
<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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd">forgeqe services logs db --lines 50
|
|
153
|
+
</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
|
+
</span></span></code></pre></div>
|
|
155
|
+
<ul>
|
|
156
|
+
<li><strong>Mocks:</strong> <code>mock_service</code> builds WireMock stubs. From a run, they answer what the app really got. From an
|
|
157
|
+
OpenAPI or Swagger description, or a contract set, they answer with its examples, or values made from its schemas. The mock
|
|
158
|
+
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
|
|
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>
|
|
164
|
+
</ul>
|
|
165
|
+
<p>Guard rails:</p>
|
|
166
|
+
<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
|
+
mounts, and labels with the project, so ForgeQE stops only its own containers.</li>
|
|
169
|
+
<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
|
|
170
|
+
not a service setting. Also refused: a port bound to another address, an image without an exact version, and a
|
|
171
|
+
secret that is one of ForgeQE's own keys.</li>
|
|
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>
|
|
178
|
+
</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>
|
|
181
|
+
<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>
|
|
184
|
+
<li><strong>Left out:</strong> named volumes. Mounts made read-only are listed in the notes.</li>
|
|
185
|
+
<li><strong>Ignored:</strong> <code>container_name</code>, <code>restart</code>, <code>healthcheck</code> and <code>networks</code>.</li>
|
|
186
|
+
<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
|
+
</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>
|
|
190
|
+
<p><strong>Docker as the workspace and the browser.</strong> Two settings move the rest of the work into containers:</p>
|
|
191
|
+
<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
|
+
</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
|
|
193
|
+
</span></span><span class="ln"><span class="cmd">containers:
|
|
194
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> workspace:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Quill's shell commands and every test ForgeQE runs use this image
|
|
195
|
+
</span></span><span class="ln"><span class="cmd"> image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble
|
|
196
|
+
</span></span><span class="ln"><span class="cmd"> env: { NEXUS_ENVIRONMENT: CI }
|
|
197
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> browser:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional
|
|
198
|
+
</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
|
+
</span></span></code></pre></div>
|
|
200
|
+
<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
|
+
repository at the same path. Each test run gets its own container from that image, and <code>HOME</code> is a volume of the
|
|
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>
|
|
209
|
+
<li><code>FORGEQE_HOST_RUN=1</code> runs Quill's commands and the tests on this machine for a session.</li>
|
|
210
|
+
</ul>
|
|
211
|
+
<p><strong>Tests in a container.</strong> With <code>containers.tests</code>, <code>run_tests</code> runs the repository's tests in that image instead of
|
|
212
|
+
on this machine, after starting the services it lists:</p>
|
|
213
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> tests:
|
|
215
|
+
</span></span><span class="ln"><span class="cmd"> image: mcr.microsoft.com/playwright:v1.48.2-jammy
|
|
216
|
+
</span></span><span class="ln"><span class="cmd"> services: [db]
|
|
217
|
+
</span></span><span class="ln"><span class="cmd"> secrets: [TEST_DB_PASSWORD]
|
|
218
|
+
</span></span></code></pre></div>
|
|
219
|
+
<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>
|
|
222
|
+
<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
|
+
secrets.</li>
|
|
225
|
+
<li><strong>To run on this machine instead:</strong> ask to run the tests on this machine (<code>in_container: false</code>).</li>
|
|
226
|
+
<li><strong>Machines:</strong> Linux and macOS.</li>
|
|
227
|
+
</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>
|
|
231
|
+
</div>
|
|
232
|
+
</section>
|
|
233
|
+
<section class="doc" id="doc-docs-containers-forgeqe-containers-services-and-mocks-in-docker-or-podman">
|
|
234
|
+
<h4>ForgeQE containers: services and mocks in Docker or Podman</h4>
|
|
235
|
+
<div class="prose"><p>Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config,
|
|
236
|
+
compose files, mounts and secrets, the mock stubs, and tests in a container. <code>tests/containers.live.test.ts</code> runs on
|
|
237
|
+
real Docker (and is skipped without it):</p>
|
|
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>
|
|
244
|
+
<p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
|
|
245
|
+
<ul>
|
|
246
|
+
<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
|
+
forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
|
|
248
|
+
<li><strong>Mocks of an API:</strong> WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so
|
|
249
|
+
the tests can run without the real service.</li>
|
|
250
|
+
<li><strong>The repository's tests in a container:</strong> <code>run_tests</code> runs the command the user confirmed in an image, instead of
|
|
251
|
+
on this machine, after starting the services the tests need.</li>
|
|
252
|
+
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Quill's shell commands (build, restore, run,
|
|
253
|
+
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
|
+
<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 drive Chromium in a container of Microsoft's Playwright image.</li>
|
|
256
|
+
</ul>
|
|
257
|
+
<p>Quill also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
|
|
258
|
+
<p>ForgeQE's agent uses them through two tools, <code>services</code> and <code>mock_service</code>. The CLI has <code>forgeqe services</code>. When
|
|
259
|
+
neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
|
|
260
|
+
</div>
|
|
261
|
+
</section>
|
|
262
|
+
<section class="doc" id="doc-docs-containers-use">
|
|
263
|
+
<h4>Use</h4>
|
|
264
|
+
<div class="prose"><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
|
+
</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
|
+
</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
|
+
</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
|
+
</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
|
+
</span></span></code></pre></div>
|
|
270
|
+
<p>In the shell or <code>forgeqe run</code>, you can ask, for example:</p>
|
|
271
|
+
<ul>
|
|
272
|
+
<li>"start the database"</li>
|
|
273
|
+
<li>"is the queue up?"</li>
|
|
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>
|
|
279
|
+
</div>
|
|
280
|
+
</section>
|
|
281
|
+
<section class="doc" id="doc-docs-containers-declaring-services">
|
|
282
|
+
<h4>Declaring services</h4>
|
|
283
|
+
<div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> forgeqe.yaml
|
|
284
|
+
</span></span><span class="ln"><span class="cmd">containers:
|
|
285
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> runtime: docker</span><span class="pad"> </span><span class="cm"><span class="h">#</span> docker | podman; default: docker, else podman, on PATH
|
|
286
|
+
</span></span><span class="ln"><span class="cmd"> services:
|
|
287
|
+
</span></span><span class="ln"><span class="cmd"> db:
|
|
288
|
+
</span></span><span class="ln"><span class="cmd"> description: Orders database for the API tests
|
|
289
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: postgres:16.4</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version, or name@sha256:<digest>
|
|
290
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> ports: [5432]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> 127.0.0.1:5432 -> 5432; "15432:5432" maps another port of this machine
|
|
291
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> env:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> plain values only
|
|
292
|
+
</span></span><span class="ln"><span class="cmd"> POSTGRES_DB: shop
|
|
293
|
+
</span></span><span class="ln"><span class="cmd"> POSTGRES_USER: shop
|
|
294
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> secrets: [POSTGRES_PASSWORD]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> environment variable names; their values come from the environment or .env
|
|
295
|
+
</span></span><span class="ln"><span class="cmd"> volumes:
|
|
296
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> - ./db/init:/docker-entrypoint-initdb.d</span><span class="pad"> </span><span class="cm"><span class="h">#</span> read-only; a folder or file inside the project
|
|
297
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> command: ["-c", "log_statement=all"]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> arguments for the image's entrypoint
|
|
298
|
+
</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 }; without it: the container runs
|
|
299
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> timeout: 90</span><span class="pad"> </span><span class="cm"><span class="h">#</span> seconds to wait until ready (default 60)
|
|
300
|
+
</span></span><span class="ln"><span class="cmd"> queue:
|
|
301
|
+
</span></span><span class="ln"><span class="cmd"> image: rabbitmq:3.13.7-management
|
|
302
|
+
</span></span><span class="ln"><span class="cmd"> ports: [5672, 15672]
|
|
303
|
+
</span></span><span class="ln"><span class="cmd"> ready: { http: /, port: 15672 }
|
|
304
|
+
</span></span><span class="ln"><span class="cmd"> mock:
|
|
305
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: wiremock/wiremock:3.9.1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the default
|
|
306
|
+
</span></span></code></pre></div>
|
|
307
|
+
<div class="tbl tbl--cols-2"><table>
|
|
308
|
+
<thead>
|
|
309
|
+
<tr><th>Setting</th><th>Rule</th></tr>
|
|
310
|
+
</thead>
|
|
311
|
+
<tbody>
|
|
312
|
+
<tr><td data-label="Setting">Service name</td><td data-label="Rule">Lower-case letters, digits and <code>-</code>, starting with a letter. Names starting with <code>mock-</code> are kept for mocks.</td></tr>
|
|
313
|
+
<tr><td data-label="Setting"><code>image</code></td><td data-label="Rule">Must have an exact tag or a digest. An untagged image or <code>latest</code> is refused, because it changes under the same name.</td></tr>
|
|
314
|
+
<tr><td data-label="Setting"><code>ports</code></td><td data-label="Rule">Always bound to 127.0.0.1. An address such as <code>0.0.0.0:5432:5432</code> is refused.</td></tr>
|
|
315
|
+
<tr><td data-label="Setting"><code>env</code></td><td data-label="Rule">Plain values on one line. Secrets go under <code>secrets</code>.</td></tr>
|
|
316
|
+
<tr><td data-label="Setting"><code>secrets</code></td><td data-label="Rule">Variable names. They are passed to the runtime by name (<code>--env NAME</code>), so the value is never on a command line. One of ForgeQE's own keys (a model key, a tracker token) is refused.</td></tr>
|
|
317
|
+
<tr><td data-label="Setting"><code>volumes</code></td><td data-label="Rule">Always read-only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder.</td></tr>
|
|
318
|
+
<tr><td data-label="Setting"><code>command</code></td><td data-label="Rule">A list of arguments, never one command string.</td></tr>
|
|
319
|
+
<tr><td data-label="Setting"><code>depends_on</code></td><td data-label="Rule">Services to start first.</td></tr>
|
|
320
|
+
<tr><td data-label="Setting">Anything else</td><td data-label="Rule">Refused with an error, not ignored. That includes <code>privileged</code>, <code>network</code>, <code>cap_add</code>, <code>devices</code>, <code>user</code>, <code>pid</code> and the socket.</td></tr>
|
|
321
|
+
</tbody>
|
|
322
|
+
</table></div>
|
|
323
|
+
<p>Every service, whether from forgeqe.yaml or a compose file, can list <code>depends_on</code>. <code>up</code> starts a service after the
|
|
324
|
+
ones it depends on; a circle is refused.</p>
|
|
325
|
+
</div>
|
|
326
|
+
</section>
|
|
327
|
+
<section class="doc" id="doc-docs-containers-compose-files">
|
|
328
|
+
<h4>Compose files</h4>
|
|
329
|
+
<div class="prose"><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:
|
|
330
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> compose: docker-compose.yml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or a list; inside the project
|
|
331
|
+
</span></span></code></pre></div>
|
|
332
|
+
<p>ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it,
|
|
333
|
+
and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never
|
|
334
|
+
runs.</p>
|
|
335
|
+
<div class="tbl tbl--cols-2"><table>
|
|
336
|
+
<thead>
|
|
337
|
+
<tr><th>Compose</th><th>ForgeQE</th></tr>
|
|
338
|
+
</thead>
|
|
339
|
+
<tbody>
|
|
340
|
+
<tr><td data-label="Compose"><code>image</code></td><td data-label="ForgeQE">Required; an exact version or a digest. <code>build</code> is refused: build and tag the image first.</td></tr>
|
|
341
|
+
<tr><td data-label="Compose"><code>ports</code></td><td data-label="ForgeQE"><code>"5432"</code>, <code>"15432:5432"</code>, <code>"127.0.0.1:15432:5432"</code>, or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused.</td></tr>
|
|
342
|
+
<tr><td data-label="Compose"><code>environment</code></td><td data-label="ForgeQE">Plain values are passed as they are. <code>KEY: ${KEY}</code>, <code>KEY</code> alone in the list form, and <code>KEY: ${KEY:-default}</code> pass the variable by name as a secret. <code>${OTHER}</code> under another name, and values that mix text and <code>${…}</code>, are refused.</td></tr>
|
|
343
|
+
<tr><td data-label="Compose"><code>volumes</code></td><td data-label="ForgeQE">Bind mounts (<code>./db/init:/docker-entrypoint-initdb.d</code>) are mounted read-only, and <code>:rw</code> is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts.</td></tr>
|
|
344
|
+
<tr><td data-label="Compose"><code>command</code></td><td data-label="ForgeQE">A list, or a string split into arguments (compose uses no shell, and neither does ForgeQE).</td></tr>
|
|
345
|
+
<tr><td data-label="Compose"><code>depends_on</code></td><td data-label="ForgeQE">List or map form: the start order. <code>condition</code> is not used; ForgeQE waits until each service is ready.</td></tr>
|
|
346
|
+
<tr><td data-label="Compose"><code>x-forgeqe</code></td><td data-label="ForgeQE"><code>ready</code>, <code>timeout</code>, <code>description</code>, as in forgeqe.yaml. Without <code>ready</code>, a service with ports is ready when its first port takes connections.</td></tr>
|
|
347
|
+
<tr><td data-label="Compose"><code>container_name</code>, <code>restart</code>, <code>labels</code>, <code>healthcheck</code>, <code>networks</code>, <code>expose</code>, <code>deploy</code>, <code>profiles</code>, …</td><td data-label="ForgeQE">Ignored: ForgeQE names, labels and networks the containers itself.</td></tr>
|
|
348
|
+
<tr><td data-label="Compose"><code>privileged</code>, <code>network_mode</code>, <code>cap_add</code>, <code>devices</code>, <code>pid</code>, <code>ipc</code>, <code>user</code>, <code>security_opt</code>, <code>volumes_from</code>, <code>env_file</code>, <code>entrypoint</code>, <code>extends</code>, …</td><td data-label="ForgeQE">Refused, and the error names the setting.</td></tr>
|
|
349
|
+
</tbody>
|
|
350
|
+
</table></div>
|
|
351
|
+
<p>What was left out (a named volume, a mount made read-only) is listed in <code>notes</code>.</p>
|
|
352
|
+
</div>
|
|
353
|
+
</section>
|
|
354
|
+
<section class="doc" id="doc-docs-containers-the-project-network">
|
|
355
|
+
<h4>The project network</h4>
|
|
356
|
+
<div class="prose"><p>Each project's containers join their own network, <code>forgeqe-<project></code>, under their service name. So the API container
|
|
357
|
+
reaches the database as <code>db:5432</code>, and the tests container reaches both. No other container joins the network, and no
|
|
358
|
+
container is on the host's network. <code>forgeqe services down</code> with no names also removes the network.</p>
|
|
359
|
+
</div>
|
|
360
|
+
</section>
|
|
361
|
+
<section class="doc" id="doc-docs-containers-tests-in-a-container">
|
|
362
|
+
<h4>Tests in a container</h4>
|
|
363
|
+
<div class="prose"><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:
|
|
364
|
+
</span></span><span class="ln"><span class="cmd"> tests:
|
|
365
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: mcr.microsoft.com/playwright:v1.48.2-jammy</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version; the tests' toolchain
|
|
366
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> services: [db, order-api]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> started first (when not running yet); the tests reach them by name
|
|
367
|
+
</span></span><span class="ln"><span class="cmd"> env: { DB_HOST: db }
|
|
368
|
+
</span></span><span class="ln"><span class="cmd"> secrets: [TEST_DB_PASSWORD]
|
|
369
|
+
</span></span></code></pre></div>
|
|
370
|
+
<p>With <code>containers.tests</code> set, <code>run_tests</code> runs the tests in that image unless it is called with <code>in_container: false</code>.
|
|
371
|
+
Its confirmation says where the tests will run. The container:</p>
|
|
372
|
+
<ul>
|
|
373
|
+
<li><strong>Runs the command the user confirmed</strong> with the image's own shell, <code>sh -c "<command>"</code>, inside the container,
|
|
374
|
+
never on this machine.</li>
|
|
375
|
+
<li><strong>Mounts the repository read-write at its own path</strong> and works in it, so results land where ForgeQE reads them.
|
|
376
|
+
On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is
|
|
377
|
+
mounted the same way.</li>
|
|
378
|
+
<li><strong>Runs as this machine's user</strong> (<code>--user uid:gid</code>), so files it writes are yours. It also gets
|
|
379
|
+
<code>--security-opt no-new-privileges</code>, <code>--pids-limit 4096</code> and <code>--rm</code>, and it is removed by name when the run ends or is
|
|
380
|
+
stopped.</li>
|
|
381
|
+
<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
|
+
<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
|
+
Secrets are passed by name. ForgeQE's own keys are never passed.</li>
|
|
384
|
+
<li><strong>Has secret values removed from its output</strong>, as on this machine.</li>
|
|
385
|
+
</ul>
|
|
386
|
+
<p>This needs a Linux or macOS machine, because the repository is mounted at its own path.</p>
|
|
387
|
+
</div>
|
|
388
|
+
</section>
|
|
389
|
+
<section class="doc" id="doc-docs-containers-the-workspace">
|
|
390
|
+
<h4>The workspace</h4>
|
|
391
|
+
<div class="prose"><p><strong>On Windows</strong> the workspace is not used: the agent's commands run on the computer itself, and <code>forgeqe doctor</code> (and
|
|
392
|
+
Settings › Set up) says so while <code>containers.workspace</code> is set. Run ForgeQE inside WSL to have them run in the
|
|
393
|
+
workspace container.</p>
|
|
394
|
+
<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:
|
|
395
|
+
</span></span><span class="ln"><span class="cmd"> workspace:
|
|
396
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble</span><span class="pad"> </span><span class="cm"><span class="h">#</span> an exact version; the project's toolchain
|
|
397
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> services: [db]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> started first; reached by name
|
|
398
|
+
</span></span><span class="ln"><span class="cmd"> env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major }
|
|
399
|
+
</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
|
+
</span></span></code></pre></div>
|
|
401
|
+
<p>With <code>containers.workspace</code> set:</p>
|
|
402
|
+
<ul>
|
|
403
|
+
<li><strong>Quill's shell runs in the container.</strong> The agent runtime runs each command as <code>$SHELL -c <command></code>. ForgeQE
|
|
404
|
+
sets <code>SHELL</code> to a script that runs the same command with <code>docker exec … sh -c <command></code>, in the same folder,
|
|
405
|
+
in the workspace container. A folder outside the repository is refused, since the container has only the
|
|
406
|
+
repository. The agent is told its commands run in a Linux container of that image.</li>
|
|
407
|
+
<li><strong>Every test ForgeQE runs goes to the same image:</strong> the coding loop's runs, <code>heal</code>, <code>suite</code>'s existing tests and
|
|
408
|
+
<code>run_tests</code>. Each run gets its own container (<code>docker run --rm</code>), so stopping a run removes it. Browsers the test
|
|
409
|
+
starts are found with <code>docker top</code>, as ForgeQE finds them on this machine.</li>
|
|
410
|
+
<li><strong>What stays on this machine:</strong> the agent runtime, the model key, ForgeQE's other secrets, the file tools (read,
|
|
411
|
+
edit, write; the repository is the same folder in both places), and ForgeQE's own agent, which works with you
|
|
412
|
+
on this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
|
|
413
|
+
<li><strong>The container:</strong>
|
|
414
|
+
<ul>
|
|
415
|
+
<li>one per ForgeQE process and project, <code>forgeqe-<project>-workspace-<id></code>, removed when ForgeQE ends;</li>
|
|
416
|
+
<li>the repository mounted read-write at its own path; credential files in it (<code>.env</code>, <code>.env.*</code> except templates,
|
|
417
|
+
<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
|
+
<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. Docker
|
|
420
|
+
creates the volume for root, so ForgeQE runs <code>chown</code> in it once, with a fixed command;</li>
|
|
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>
|
|
422
|
+
<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
|
+
<code>FORGEQE_VAR_*</code> and the saved logins' variables, by name.</li>
|
|
424
|
+
</ul>
|
|
425
|
+
</li>
|
|
426
|
+
<li><strong><code>containers.tests</code></strong> still names the image <code>run_tests</code> uses when it is set. Without it, <code>run_tests</code> uses the
|
|
427
|
+
workspace's image.</li>
|
|
428
|
+
</ul>
|
|
429
|
+
<p>This needs a Linux or macOS machine, as tests in a container do.</p>
|
|
430
|
+
</div>
|
|
431
|
+
</section>
|
|
432
|
+
<section class="doc" id="doc-docs-containers-the-browser-in-a-container">
|
|
433
|
+
<h4>The browser in a container</h4>
|
|
434
|
+
<div class="prose"><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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd">containers:
|
|
437
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> browser:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional
|
|
438
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> image: mcr.microsoft.com/playwright:v1.65.0-noble</span><span class="pad"> </span><span class="cm"><span class="h">#</span> default; needs Node.js and /ms-playwright
|
|
439
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> headless: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> default: browser.headless; a visible browser runs on a virtual display (Xvfb)
|
|
440
|
+
</span></span></code></pre></div>
|
|
441
|
+
<ul>
|
|
442
|
+
<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
|
+
gets one that its replay and live browser share. Each is removed when its run or job ends.</li>
|
|
444
|
+
<li><strong>Connection:</strong> Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small
|
|
445
|
+
gateway in front of it (<code>BROWSER_SERVER</code> in <code>src/containers/browser.ts</code>, run with the image's Node.js) accepts a
|
|
446
|
+
connection only with a random 48-character token in its path, compared in constant time, and refuses a browser
|
|
447
|
+
<code>Origin</code> that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and
|
|
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
|
|
450
|
+
away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual.</li>
|
|
451
|
+
<li><strong>Reaching the app:</strong> the container joins the project network, so a declared service is reached by its name
|
|
452
|
+
(<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
|
+
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 (without Playwright's automation switches) needs a
|
|
455
|
+
launch, which a running browser does not have.</li>
|
|
456
|
+
<li>A run explored in a container is replayed in one even when the provider is changed back later (<code>run.json</code>).</li>
|
|
457
|
+
</ul>
|
|
458
|
+
</div>
|
|
459
|
+
</section>
|
|
460
|
+
<section class="doc" id="doc-docs-containers-testcontainers-quill">
|
|
461
|
+
<h4>Testcontainers (Quill)</h4>
|
|
462
|
+
<div class="prose"><p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Quill
|
|
463
|
+
loads the <code>testcontainers</code> skill. It reuses the repository's containers and fixtures, pins images, waits for
|
|
464
|
+
readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the
|
|
465
|
+
host network, the Docker socket, or a <code>docker</code> command from a test. These containers belong to the tests in the
|
|
466
|
+
repository: the tests start and stop them, wherever they run.</p>
|
|
467
|
+
</div>
|
|
468
|
+
</section>
|
|
469
|
+
<section class="doc" id="doc-docs-containers-mocks">
|
|
470
|
+
<h4>Mocks</h4>
|
|
471
|
+
<div class="prose"><p><code>mock_service</code> builds WireMock stubs and runs WireMock on a free port of 127.0.0.1:</p>
|
|
472
|
+
<ul>
|
|
473
|
+
<li><strong>From a run</strong> (the default: the latest run, or <code>run_dir</code>):
|
|
474
|
+
<ul>
|
|
475
|
+
<li>One stub per method, path and query of the app's own API calls, answering with the last status, content type
|
|
476
|
+
and body the app got.</li>
|
|
477
|
+
<li>Other sites' calls are left out unless <code>third_party</code> is set.</li>
|
|
478
|
+
<li>Failed calls are left out.</li>
|
|
479
|
+
<li>Answers that were cut when recorded are listed under <code>skipped</code>.</li>
|
|
480
|
+
</ul>
|
|
481
|
+
</li>
|
|
482
|
+
<li><strong>From a description</strong> (<code>spec</code>: OpenAPI 3 or Swagger 2, a link or a file):
|
|
483
|
+
<ul>
|
|
484
|
+
<li>One stub per REST operation.</li>
|
|
485
|
+
<li>Each stub answers with the operation's first success status and a body from the schema's examples, or values
|
|
486
|
+
made from its types.</li>
|
|
487
|
+
<li>A path parameter (<code>/orders/{id}</code>) matches any one path segment.</li>
|
|
488
|
+
<li>Instead of a description, you can give a contract set from <code>api_contracts</code> (<code>set_id</code>).</li>
|
|
489
|
+
</ul>
|
|
490
|
+
</li>
|
|
491
|
+
<li><strong>GraphQL, SOAP and gRPC</strong> are listed under <code>skipped</code>, not mocked.</li>
|
|
492
|
+
</ul>
|
|
493
|
+
<p>A spec given as a link is fetched by ForgeQE itself, with no credentials, as <code>api_contracts</code> does. The stubs are written to <code>.forgeqe/mocks/<name>/mappings/</code>. You can read and edit them there. The folder is mounted
|
|
494
|
+
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
|
+
can call it.</p>
|
|
496
|
+
<p>With <code>for_app: <api app></code>, the active environment's API app points at the mock for the rest of the session. That
|
|
497
|
+
covers the API tools, and the tests ForgeQE runs, which read <code>FORGEQE_APP_<APP>_URL</code>. env.yaml itself is not
|
|
498
|
+
changed.</p>
|
|
499
|
+
</div>
|
|
500
|
+
</section>
|
|
501
|
+
<section class="doc" id="doc-docs-containers-lifetime">
|
|
502
|
+
<h4>Lifetime</h4>
|
|
503
|
+
<div class="prose"><ul>
|
|
504
|
+
<li><strong>Services and mocks the agent starts</strong> are removed when the shell, <code>forgeqe run</code>, or <code>forgeqe mcp</code> ends, as are
|
|
505
|
+
the workspace and browser containers (<code>forgeqe.kind</code> <code>workspace</code> and <code>browser</code>). The home volume stays.</li>
|
|
506
|
+
<li><strong><code>forgeqe services up</code></strong> keeps its services running after the command ends, until <code>forgeqe services down</code>.</li>
|
|
507
|
+
<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
|
+
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
|
|
509
|
+
settings.</li>
|
|
510
|
+
<li><strong>Labels:</strong> each container carries <code>forgeqe=1</code>, <code>forgeqe.project</code>, <code>forgeqe.service</code> and <code>forgeqe.kind</code>.
|
|
511
|
+
<code>down</code> and <code>status</code> look only at this project's containers.</li>
|
|
512
|
+
</ul>
|
|
513
|
+
</div>
|
|
514
|
+
</section>
|
|
515
|
+
<section class="doc" id="doc-docs-containers-security">
|
|
516
|
+
<h4>Security</h4>
|
|
517
|
+
<div class="prose"><p>ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that
|
|
518
|
+
text could mount the whole disk or run privileged, so:</p>
|
|
519
|
+
<ul>
|
|
520
|
+
<li><strong>No commands from the model.</strong> The agent names services that forgeqe.yaml declares, and ForgeQE builds the
|
|
521
|
+
argument array (<code>docker run …</code>). It never uses a shell. Images, flags and mounts never come from a request.</li>
|
|
522
|
+
<li><strong>The same restrictions for every container:</strong> <code>--security-opt no-new-privileges</code>, <code>--pids-limit 1024</code>, ports on
|
|
523
|
+
127.0.0.1, and read-only mounts. There is no setting to turn these off.</li>
|
|
524
|
+
<li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only). The path is resolved with <code>realpath</code> and must be inside the project. A mount
|
|
525
|
+
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
|
+
<code>llms.json</code>) or a link is refused. A container can send what it reads anywhere.</li>
|
|
527
|
+
<li><strong>Environment:</strong>
|
|
528
|
+
<ul>
|
|
529
|
+
<li>The <code>docker</code> and <code>podman</code> programs see only the system settings and the variables they need to find their daemon
|
|
530
|
+
(<code>DOCKER_HOST</code>, <code>DOCKER_CONTEXT</code>, <code>CONTAINER_HOST</code>, …), plus the service's listed secrets.</li>
|
|
531
|
+
<li>A container gets only its <code>env</code> and <code>secrets</code>.</li>
|
|
532
|
+
<li>Logs and errors have secret values replaced with <code>***</code>.</li>
|
|
533
|
+
</ul>
|
|
534
|
+
</li>
|
|
535
|
+
<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 these tools.</li>
|
|
537
|
+
<li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask the user before starting, as <code>run_tests</code> does.</li>
|
|
538
|
+
</ul>
|
|
539
|
+
</div>
|
|
540
|
+
</section>
|
|
541
|
+
</div>
|
|
542
|
+
</article>
|
|
543
|
+
<article class="spec feat" id="cap-production-errors">
|
|
544
|
+
<div class="hd"><span class="mono">Operations</span><h3>Production errors and the tests that cover them</h3></div>
|
|
545
|
+
<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>
|
|
546
|
+
<div class="facts">
|
|
547
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Which production errors have no test?</li><li>What production errors are users hitting on checkout?</li></ul></div>
|
|
548
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>production_errors</code></p></div>
|
|
550
|
+
</div>
|
|
551
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
552
|
+
<section class="doc" id="doc-how_to_use-production-errors">
|
|
553
|
+
<h4>Production errors</h4>
|
|
554
|
+
<div class="prose"><p><code>production_errors</code> (and the <strong>Production signals</strong> page) 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>), groups them by page, and says which browser run or automated test already reaches each page, or that no test does. It only reads. Record a repro opens the Record page at the same page on the active test environment. Keys are environment variables named in forgeqe.yaml, saved in Settings.</p>
|
|
555
|
+
</div>
|
|
556
|
+
</section>
|
|
557
|
+
</div>
|
|
558
|
+
</article>
|
|
559
|
+
<article class="spec feat" id="cap-model-cost">
|
|
560
|
+
<div class="hd"><span class="mono">Operations</span><h3>Model cost and usage</h3></div>
|
|
561
|
+
<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>
|
|
562
|
+
<div class="facts">
|
|
563
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What did ForgeQE cost this month?</li><li>Which agent spends the most?</li></ul></div>
|
|
564
|
+
<div class="fact"><span class="mono">What it needs</span><p class="muted">Nothing beyond ForgeQE itself.</p></div>
|
|
565
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>model_cost</code></p></div>
|
|
566
|
+
</div>
|
|
567
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
568
|
+
<section class="doc" id="doc-how_to_use-model-cost">
|
|
569
|
+
<h4>Model cost</h4>
|
|
570
|
+
<div class="prose"><p><code>model_cost</code> (and the <strong>Cost</strong> page) adds up what the project's model calls cost from the session logs: by agent, by where the work started (a web chat, a job, a terminal, a page), by job and by model, per day over 7, 30 or 90 days, priced from llms.json or the public price lists; tokens with no known price are counted apart, never as free. It also shows the model router's ratings and picks, and what each regression pack costs per run.</p>
|
|
571
|
+
</div>
|
|
572
|
+
</section>
|
|
573
|
+
</div>
|
|
574
|
+
</article>
|
|
575
|
+
<article class="spec feat" id="cap-monitoring">
|
|
576
|
+
<div class="hd"><span class="mono">Operations</span><h3>Scheduled monitoring with alerts</h3></div>
|
|
577
|
+
<p class="ds">Runs checks on a schedule and alerts Teams or email when one keeps failing, and again when it recovers.</p>
|
|
578
|
+
<div class="facts">
|
|
579
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Check the login flow every 15 minutes and alert Teams</li></ul></div>
|
|
580
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>monitor</code></p></div>
|
|
582
|
+
</div>
|
|
583
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
584
|
+
<section class="doc" id="doc-how_to_use-9-monitoring">
|
|
585
|
+
<h4>Monitoring</h4>
|
|
586
|
+
<div class="prose"><p><code>forgeqe monitor</code> runs a set of checks on a schedule and alerts Microsoft Teams and email when one breaks. A check is any test case <code>forgeqe suite</code> takes (section 7): a YAML or Gherkin file, a folder, Jira keys or JQL, an Azure DevOps plan, TestRail, and so on.</p>
|
|
587
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> checks: [checks/smoke.yaml]
|
|
589
|
+
</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
|
|
590
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> replay: verify</span><span class="pad"> </span><span class="cm"><span class="h">#</span> verify | trust | off
|
|
591
|
+
</span></span><span class="ln"><span class="cmd"> parallel: 1
|
|
592
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> fail_after: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> failing rounds in a row before the first alert
|
|
593
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> remind_every: 2h</span><span class="pad"> </span><span class="cm"><span class="h">#</span> repeat while it keeps failing; default: never
|
|
594
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> keep: 100</span><span class="pad"> </span><span class="cm"><span class="h">#</span> round folders kept
|
|
595
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> write_back: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> post each round's results to the source system
|
|
596
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> out_dir: ./.forgeqe/reports/monitor
|
|
597
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> report_url: https://reports.example.com/monitor
|
|
598
|
+
</span></span><span class="ln"><span class="cmd"> alerts:
|
|
599
|
+
</span></span><span class="ln"><span class="cmd"> teams:
|
|
600
|
+
</span></span><span class="ln"><span class="cmd"> webhook_env: TEAMS_WEBHOOK_URL
|
|
601
|
+
</span></span><span class="ln"><span class="cmd"> email:
|
|
602
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> host: smtp.office365.com</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or SMTP_HOST
|
|
603
|
+
</span></span><span class="ln ln--pair"><span class="cmd"> port: 587</span><span class="pad"> </span><span class="cm"><span class="h">#</span> STARTTLS; 465 is TLS from the start (secure: true)
|
|
604
|
+
</span></span><span class="ln"><span class="cmd"> username_env: SMTP_USERNAME
|
|
605
|
+
</span></span><span class="ln"><span class="cmd"> password_env: SMTP_PASSWORD
|
|
606
|
+
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> from: ForgeQE <qa-bot@example.com>
|
|
607
|
+
</span></span><span class="ln"><span class="cmd"> to: [qa-team@example.com, oncall@example.com]
|
|
608
|
+
</span></span></code></pre></div>
|
|
609
|
+
<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><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
|
+
</span></span><span class="ln"><span class="cmd">forgeqe monitor checks/checkout.yaml --every 5m
|
|
612
|
+
</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
|
+
</span></span></code></pre></div>
|
|
614
|
+
<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 falls back to the full agent. Rounds start <code>every</code> apart; a round that overruns is followed by the next one straight away.</p>
|
|
615
|
+
<p><strong>Alerts</strong> go out when something changes, not every round:</p>
|
|
616
|
+
<ul>
|
|
617
|
+
<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
|
+
<li>While it keeps failing, nothing more is sent, unless <code>remind_every</code> is set.</li>
|
|
619
|
+
<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 engine will not start) alerts as the check "ForgeQE monitor", and the other checks keep their state.</li>
|
|
621
|
+
</ul>
|
|
622
|
+
<p>All changes in one round go out as one message. Teams gets an Adaptive Card with each check, why it failed and at which step, a link to the test case, and an "Open report" button. Email gets the same as text and HTML, with the failing checks' last screenshots attached (up to five).</p>
|
|
623
|
+
<p>For Teams, create an incoming webhook on the channel, or a Workflows flow with the trigger "When a Teams webhook request is received" and the action "Post card in a chat or channel"; both take the card as it is. Put the URL in <code>TEAMS_WEBHOOK_URL</code>. 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; if a send fails, the error never contains them.</p>
|
|
624
|
+
<p>The terminal shows one block per round:</p>
|
|
625
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd">[14:15] ✗ 4/5 passing · 38s · 6.2K tokens
|
|
627
|
+
</span></span><span class="ln"><span class="cmd"> ✗ SHOP-12 Checkout: failing since 14:15
|
|
628
|
+
</span></span><span class="ln"><span class="cmd"> The Pay button is missing on the payment page
|
|
629
|
+
</span></span><span class="ln"><span class="cmd"> ↑ Alert sent: Teams, email
|
|
630
|
+
</span></span><span class="ln"><span class="cmd"> Report .forgeqe/reports/monitor/20260929-141500/report.html
|
|
631
|
+
</span></span><span class="ln"><span class="cmd"> Next round at 14:30
|
|
632
|
+
</span></span><span class="ln"><span class="cmd">[14:30] ✗ 4/5 passing · 35s · 5.9K tokens
|
|
633
|
+
</span></span><span class="ln"><span class="cmd"> ✗ SHOP-12 Checkout: failing since 14:15 (2 rounds, already alerted)
|
|
634
|
+
</span></span><span class="ln"><span class="cmd"> Report .forgeqe/reports/monitor/20260929-143000/report.html
|
|
635
|
+
</span></span><span class="ln"><span class="cmd"> Next round at 14:45
|
|
636
|
+
</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> and alerts link <code><report_url>/<round>/report.html</code>; without it they name the local file.</p>
|
|
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>You can also ask ForgeQE's agent. In the shell, "check the smoke cases once" runs one round and shows it as a card, and "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 <code>forgeqe monitor</code> running (or add a scheduled pipeline).</p>
|
|
640
|
+
</div>
|
|
641
|
+
</section>
|
|
642
|
+
</div>
|
|
643
|
+
</article>
|
|
644
|
+
<article class="spec feat" id="cap-jobs">
|
|
645
|
+
<div class="hd"><span class="mono">Operations</span><h3>Background jobs on a schedule</h3></div>
|
|
646
|
+
<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>
|
|
647
|
+
<div class="facts">
|
|
648
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Run the release-2.3 pack every weekday at 2am in the background</li><li>Watch the pipeline in the background and investigate failures</li><li>How are my jobs doing?</li></ul></div>
|
|
649
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>jobs</code></p></div>
|
|
651
|
+
</div>
|
|
652
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
653
|
+
<section class="doc" id="doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell">
|
|
654
|
+
<h4>The jobs service: scheduled and long jobs apart from the shell</h4>
|
|
655
|
+
<div class="prose"><p><code>forgeqe jobs</code> runs ForgeQE commands on a schedule, or once, in a service of their own, so they keep going while you work on something else in the shell, or with the shell closed. Each run is its own <code>forgeqe</code> process with its own output and session log; you ask how a job is going at any time, and its failures and recoveries go to Teams.</p>
|
|
656
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs add smoke --every 30m -- suite checks/smoke.yaml
|
|
658
|
+
</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
|
|
659
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every job: running or how its last run ended, and when it runs next
|
|
660
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs status nightly-pack</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its last runs, and the last lines of the latest
|
|
661
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs logs nightly-pack --tail 100
|
|
662
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs run nightly-pack</span><span class="pad"> </span><span class="cm"><span class="h">#</span> run it now as well
|
|
663
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe jobs stop nightly-pack</span><span class="pad"> </span><span class="cm"><span class="h">#</span> stop the run that is going
|
|
664
|
+
</span></span><span class="ln"><span class="cmd">forgeqe jobs disable|enable|remove nightly-pack
|
|
665
|
+
</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
|
+
</span></span></code></pre></div>
|
|
667
|
+
<ul>
|
|
668
|
+
<li><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 after <code>--</code>. 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. It runs with the project's own <code>forgeqe.yaml</code>, model profile and approvals: a job 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>), on the job's schedule; it sends its own <code>monitor.alerts</code>, so its job is quiet unless you add it with notices on.</li>
|
|
669
|
+
<li><strong>When.</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 <code>add</code> 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.</li>
|
|
670
|
+
<li><strong>How many.</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.</li>
|
|
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>
|
|
678
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> parallel: 2
|
|
680
|
+
</span></span></code></pre></div>
|
|
681
|
+
<p><strong>On company machines.</strong> Nothing here needs administrator rights:</p>
|
|
682
|
+
<div class="tbl tbl--cols-2"><table>
|
|
683
|
+
<thead>
|
|
684
|
+
<tr><th>What</th><th>Needs</th></tr>
|
|
685
|
+
</thead>
|
|
686
|
+
<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 <code>bun</code> process: it is ForgeQE's own (in its 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
|
+
<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
|
+
<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 Copilot CLI and the SDK. Branches are local; nothing is pushed.</td></tr>
|
|
691
|
+
<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 (section "Company networks"); <code>gh</code> uses <code>HTTPS_PROXY</code>. <code>forgeqe doctor</code> checks the machine and the network.</td></tr>
|
|
693
|
+
</tbody>
|
|
694
|
+
</table></div>
|
|
695
|
+
<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
|
+
</div>
|
|
697
|
+
</section>
|
|
698
|
+
</div>
|
|
699
|
+
</article>
|
|
700
|
+
<article class="spec feat" id="cap-custom-agents">
|
|
701
|
+
<div class="hd"><span class="mono">Operations</span><h3>Your team's custom agents</h3></div>
|
|
702
|
+
<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>
|
|
703
|
+
<div class="facts">
|
|
704
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Ask our custom agent checkout-guard to check the basket on QA</li><li>Which custom agents do we have?</li><li>Make an agent that checks the checkout on QA every night</li></ul></div>
|
|
705
|
+
<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></ul></div>
|
|
706
|
+
<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
|
+
<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
|
+
</div>
|
|
709
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
710
|
+
<section class="doc" id="doc-how_to_use-custom-agents">
|
|
711
|
+
<h4>Custom agents</h4>
|
|
712
|
+
<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>. It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is
|
|
714
|
+
held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities,
|
|
715
|
+
which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An
|
|
716
|
+
environment named like production is never allowed. It has no shell, web fetch or web search unless its manifest says
|
|
717
|
+
<code>shell: true</code> (then a person approves each command), and uses only the other systems <code>scope.systems</code> names. Writing and
|
|
718
|
+
healing tests start a coding agent, which a person approves each call of unless <code>permissions.trust</code> lists it.</p>
|
|
719
|
+
<p>The agents it may start are checked on every call, including the ones a tool starts for it: <code>write_test</code> starts
|
|
720
|
+
<code>forgeqe-test</code> and, from a recording, <code>forgeqe-test-plan</code>; <code>request_test_data</code> starts Miner (<code>forgeqe-data</code>);
|
|
721
|
+
<code>product_knowledge</code> starts <code>forgeqe-investigate</code> to answer a question and <code>forgeqe-knowledge</code> to read the product with
|
|
722
|
+
the model. A run that finds a new defect explains it with <code>forgeqe-defect-rca</code> only when the agent may use it; otherwise
|
|
723
|
+
the run goes ahead with the analysis that uses no model. <code>forgeqe agent check</code> and the editor say what each capability
|
|
724
|
+
needs.</p>
|
|
725
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd">name: Checkout guard agent
|
|
727
|
+
</span></span><span class="ln"><span class="cmd">version: 1.0.0
|
|
728
|
+
</span></span><span class="ln"><span class="cmd">description: Watches the checkout on QA and explains what broke.
|
|
729
|
+
</span></span><span class="ln"><span class="cmd">instructions: Focus on the basket, payment and order confirmation.
|
|
730
|
+
</span></span><span class="ln"><span class="cmd">scope:
|
|
731
|
+
</span></span><span class="ln"><span class="cmd"> agents: [engine, forgeqe-heal]
|
|
732
|
+
</span></span><span class="ln"><span class="cmd"> capabilities: [browser-goals, regression-packs]
|
|
733
|
+
</span></span><span class="ln"><span class="cmd"> environments: [qa]
|
|
734
|
+
</span></span><span class="ln"><span class="cmd">permissions:
|
|
735
|
+
</span></span><span class="ln"><span class="cmd"> actions: [read, run]
|
|
736
|
+
</span></span><span class="ln"><span class="cmd"> approve: [run]
|
|
737
|
+
</span></span></code></pre></div>
|
|
738
|
+
<p><code>voice: { sound: light }</code> (or <code>deep</code>) sets how the agent sounds when you talk with it in its chat; without it, it
|
|
739
|
+
speaks in ForgeQE's own voice. The editor's <strong>Voice</strong> choice (Default, Light, Deep) writes it. A manifest names only a
|
|
740
|
+
sound: ForgeQE picks the voice from the speech set up on that computer.</p>
|
|
741
|
+
<p>What runs is a version a person approved. Editing the manifest changes nothing that runs: the agent shows as changed,
|
|
742
|
+
keeps running its approved version, and the change waits for approval. Approvals are kept, with every approval,
|
|
743
|
+
disabling and rollback, in <code>.forgeqe/agents/.releases/<id></code>, so the team reviews them with the code.</p>
|
|
744
|
+
<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
|
+
</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
|
+
</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
|
+
</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 ln--pair"><span class="cmd">forgeqe agent disable <id> | enable <id></span><span class="pad"> </span><span class="cm"><span class="h">#</span> also on its page; several at once on Agents, Custom agents (Select agents)
|
|
751
|
+
</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
|
|
752
|
+
</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><span class="ln ln--pair"><span class="cmd">forgeqe agent export <id> --out a.jsonl</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its whole record as JSON lines, for audit (also on its page: Download audit record)
|
|
754
|
+
</span></span><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 (also on its page: Export to share)
|
|
755
|
+
</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 (also Agents › Custom › Import agent)
|
|
756
|
+
</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 (also on its page: Publish)
|
|
757
|
+
</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 (also Agents › Custom › Import agent › From your library)
|
|
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
|
|
761
|
+
</span></span></code></pre></div>
|
|
762
|
+
<p>Same-repo teams still commit <code>.forgeqe/agents</code> (and <code>.releases</code> after approve). Pack/import is for sharing a draft across
|
|
763
|
+
projects or machines; the recipient must try and approve it. Environments and systems are not in the package.</p>
|
|
764
|
+
<p>The agent library is a folder in ForgeQE's home (<code>agent-library/</code>) that every project on this computer reads. Only an
|
|
765
|
+
approved version is published, packed from its approved copy (an edit not yet approved stays out), as
|
|
766
|
+
<code><id>@<version>.forgeqe-agent.zip</code>; a version already there is never replaced, so publish a new version for a change.
|
|
767
|
+
A library file can be put there by anything on the computer, so it is read as untrusted: only names of that shape,
|
|
768
|
+
never a link, and one whose pack names another agent or version is listed with that problem and cannot be installed.
|
|
769
|
+
Installing goes through the same checks as importing a pack, and makes a draft that a person tries and approves in
|
|
770
|
+
that project.</p>
|
|
771
|
+
<p><strong>Starting from a template.</strong> <code>forgeqe agent new cloud-verifier</code> writes a draft of the cloud verifier: after a test
|
|
772
|
+
run, it checks in the cloud that what the run should have done there happened (a message on a queue, an object
|
|
773
|
+
written, a row in a table, a function invoked), and changes nothing. It is filled from this project: the clouds of
|
|
774
|
+
<code>integrations:</code> whose server can start here, and its test environments that have <code>cloud:</code> in env.yaml (<code>--envs qa,uat</code>
|
|
775
|
+
to pick; never one named like production). It reads, with no agent to start and no capability beyond the core. A cloud
|
|
776
|
+
whose reading tool the server does not mark read-only (Google Cloud's gcloud tool, or Azure or AWS with
|
|
777
|
+
<code>read_only: false</code>) also needs <code>external</code>: ForgeQE then asks a person before each of its calls, and the draft says so.
|
|
778
|
+
In the web app, Agents › Custom agents › New agent lists it under <strong>Or start from a template</strong>: it opens
|
|
779
|
+
in the editor filled from this project, with what the template brings and why (its clouds, which the editor has no
|
|
780
|
+
field for yet, are kept as it set them), and nothing is saved until you press Save. A template that cannot be used here
|
|
781
|
+
yet says why. Like any draft, it runs only once a person approves it (<code>forgeqe agent approve cloud-verifier</code>); read it first.</p>
|
|
782
|
+
<p>A custom agent may be given anything ForgeQE's agent has: every capability, other systems' tools, the coding agent,
|
|
783
|
+
jobs, ForgeQE's own commands and settings, the shell (<code>permissions.shell: true</code>), and production. What goes beyond its
|
|
784
|
+
limits call by call (the coding agent, ForgeQE commands and settings, a shell command, a change in production) is
|
|
785
|
+
approved by a person each time.</p>
|
|
786
|
+
<p>In production, what a call does decides: a read goes ahead without asking; a run (a browser run, a test, an API call)
|
|
787
|
+
is asked unless <code>permissions.production: [run]</code> says otherwise; every change is asked, on a schedule too, where it waits
|
|
788
|
+
for a person and the team is told. A question about a read or a run offers <strong>Allow for the rest of this run</strong> (that
|
|
789
|
+
tool, in that environment); a change is asked each time. The agent also asks you itself (<code>request_approval</code>) before a
|
|
790
|
+
step there that could reach real customers, such as an order or a payment: it can add a question, never skip one. A tool ForgeQE adds later reaches custom agents at once, asking a person each call until
|
|
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
|
|
797
|
+
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. A change in production, ForgeQE's own commands and settings, and jobs are
|
|
799
|
+
always asked.
|
|
800
|
+
With nobody watching, a trusted tool still runs only when <code>permissions.unattended</code> lists it.</p>
|
|
801
|
+
<p>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 job of the
|
|
802
|
+
jobs service once approved, always its approved version; disabling it pauses the job. With nobody watching, it does
|
|
803
|
+
without asking only what <code>permissions.unattended</code> lists (kinds of action, or tools by name), and in production only
|
|
804
|
+
reads, and runs if <code>permissions.production</code> lists them; anything else, and anything it judges should be a person's decision, waits for a person: the team's
|
|
805
|
+
channels are told (<code>agent_waiting</code>), and the agent's page shows it with Allow, Deny and, for a read or a run, Allow for
|
|
806
|
+
the rest of this run. No answer in four hours is a no. One run nobody watches of an agent goes at a time: a schedule
|
|
807
|
+
that fires while the last run still waits does not start, and its history says so. <code>runtime.max_tokens</code> sets a budget
|
|
808
|
+
per run: the run stops when it has used that many model tokens. When someone is watching (<code>forgeqe agent run</code> in a
|
|
809
|
+
terminal, a chat, the agent's page), the run asks first: carry on with as much again (each yes is in its history), or
|
|
810
|
+
stop. A run nobody watches is never asked, and stops.</p>
|
|
811
|
+
<p>When a run nobody watches ends, the team's channels that take <code>agent_failed</code> hear when it did not finish; with
|
|
812
|
+
<code>runtime.notify: always</code> the ones that take <code>agent_done</code> hear when it did, and <code>never</code> tells nothing. The notice says
|
|
813
|
+
the outcome, how many calls its limits refused and how many steps a person did not approve, and where to read the
|
|
814
|
+
run; it never quotes the agent's reply, since a Teams card shows Markdown as links.
|
|
815
|
+
<code>runtime.channels: [qa-team]</code> sends its notices, and its approval questions on a run nobody watches, only to
|
|
816
|
+
those channels of <code>notify.channels</code> (each still only for the events it takes); unset, every channel that takes them
|
|
817
|
+
gets them. A channel the project does not have makes the manifest invalid.</p>
|
|
818
|
+
<p><code>triggers</code> start its approved version by itself when something happens in ForgeQE, with nobody watching, as a
|
|
819
|
+
schedule does (<code>permissions.unattended</code> says what it may do alone):</p>
|
|
820
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> - { on: suite_failed, request: "Explain why the last suite failed, from its runs" }
|
|
822
|
+
</span></span><span class="ln"><span class="cmd"> - { on: job_failed, job: nightly-pack, request: "Find out why the nightly pack failed" }
|
|
823
|
+
</span></span></code></pre></div>
|
|
824
|
+
<p>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
|
|
825
|
+
or not the job sends notices; <code>job</code> narrows it to one job), and <code>eval_failed</code>. Each starts a one-off job of the jobs
|
|
826
|
+
service, <code>agent-<id>-on-<event></code>, replaced each time; one still running is not started again. The request is the
|
|
827
|
+
trigger's words and ForgeQE's own facts (the event, a job's name, the time), never text from the suite or its runs: the
|
|
828
|
+
agent finds the runs itself. A custom agent's own jobs never start anything, so agents cannot start each other in a
|
|
829
|
+
loop. Duplicate an agent with <code>forgeqe agent copy <id> [<new-id>]</code> or the agent page's <strong>Duplicate</strong>: a new draft with
|
|
830
|
+
its settings at 1.0.0. <code>forgeqe agent new <template></code> offers <code>smoke-check</code>, <code>defect-retest</code>, <code>flaky-triage</code>,
|
|
831
|
+
<code>release-readiness</code>, <code>pr-test-reviewer</code> and <code>cloud-verifier</code>, filled from this project.</p>
|
|
832
|
+
<p><strong>Outside triggers.</strong> A pull request or a push on GitHub or Azure DevOps can start an agent too:</p>
|
|
833
|
+
<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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd"> - { on: pr_updated, source: github, repo: acme/shop, request: "Review the tests again" }
|
|
836
|
+
</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
|
+
</span></span></code></pre></div>
|
|
838
|
+
<p><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
|
|
839
|
+
tag or a deleted branch). <code>repo</code> is <code>owner/name</code> on GitHub and <code>project/repository</code> on Azure DevOps; <code>branch</code>, if given,
|
|
840
|
+
is the pull request's target or the branch pushed to. Like the other triggers it runs the approved version with nobody
|
|
841
|
+
watching, as the one-off job <code>agent-<id>-on-<event></code>, and one still running is not started again.</p>
|
|
842
|
+
<p><code>forgeqe web</code> takes the host's deliveries at <code>POST /hooks/github</code> and <code>POST /hooks/azure-devops</code>, and only once a
|
|
843
|
+
webhook secret is saved: Settings › Secrets, <code>FORGEQE_WEBHOOK_SECRET</code> (kept in the credential store, hidden from every
|
|
844
|
+
program ForgeQE starts). On GitHub, make a webhook for <strong>Pull requests</strong> and <strong>Pushes</strong>, content type JSON, with that
|
|
845
|
+
secret: each delivery is signed and checked. On Azure DevOps, make <strong>Web Hooks</strong> service hooks for <em>Pull request
|
|
846
|
+
created</em>, <em>Pull request updated</em> and <em>Code pushed</em>, with basic authentication whose password is the secret (its hooks
|
|
847
|
+
cannot sign). A delivery not signed with the secret, one sent from a browser (any <code>Origin</code>), a body over 1 MB, a
|
|
848
|
+
delivery id already taken, and more than 30 deliveries a minute are refused.</p>
|
|
849
|
+
<p><code>forgeqe web</code> still listens on 127.0.0.1 only and checks the Host it is asked for, so the host reaches it through
|
|
850
|
+
hosted mode (<code>forgeqe web --public-url https://forgeqe.example.com</code>, behind your TLS proxy) or a tunnel you run that
|
|
851
|
+
forwards to it with the Host rewritten to <code>127.0.0.1</code>. Nothing of the pull request's text reaches the agent: its
|
|
852
|
+
request is the trigger's words plus the pull request's number, the repository and the branches, read in their shapes,
|
|
853
|
+
and the agent is told to read the pull request itself, as the author's words and never instructions.</p>
|
|
854
|
+
<p><code>scope.custom_agents</code> lists your team's other custom agents it may hand a request to, with its <code>hand_to_agent</code> tool
|
|
855
|
+
(the editor's <strong>Custom agents it may hand work to</strong>). The other agent runs its approved version, within its own limits
|
|
856
|
+
and the caller's: it works only in environments both have, may do only what both may, asks a person for whatever either
|
|
857
|
+
asks, and never uses a tool either denies. An agent already working on the request is never handed it again, and a chain
|
|
858
|
+
goes no deeper than the caller's <code>max_delegation_depth</code> (at most 3; it needs at least 1). With nobody watching the
|
|
859
|
+
caller, nobody watches the callee. Its run is kept in its own history as handed on by the caller, and its reply comes back
|
|
860
|
+
as data. Only Atlas asks custom agents with <code>custom_agent</code>.</p>
|
|
861
|
+
<p>Approving pins what the version knows as well as its manifest: a fingerprint of each knowledge file and skill it names
|
|
862
|
+
(every file of the skill's folder) and of its model profile in llms.json (the fields that change how it answers, never
|
|
863
|
+
a key). If one of them changes afterwards, the agent is <strong>Knowledge changed</strong> (<code>drifted</code>): it does not run, for anyone or
|
|
864
|
+
anything, until a person reads what changed (its page, <code>forgeqe agent check</code>) and approves it again, which pins it anew.
|
|
865
|
+
A run nobody watches that cannot start for this tells the team (<code>agent_failed</code>). Rolling back pins what the chosen
|
|
866
|
+
version knows now. An agent approved before this was kept runs, with a warning to approve it again.</p>
|
|
867
|
+
<p><code>runtime.max_minutes</code> stops a run that takes longer; a run nobody watches (a schedule, a trigger, another agent) stops
|
|
868
|
+
after 120 minutes when it sets none.</p>
|
|
869
|
+
<p><code>checks</code> are requests to try a version on before it is approved, each graded by code from the run, never by a model:</p>
|
|
870
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> - name: basket-total
|
|
872
|
+
</span></span><span class="ln"><span class="cmd"> request: Check the basket total on qa
|
|
873
|
+
</span></span><span class="ln"><span class="cmd"> expect: { says: [total], never_says: [error], uses: [browser_run], never_uses: [run_sql] }
|
|
874
|
+
</span></span><span class="ln"><span class="cmd"> - name: refuses-production
|
|
875
|
+
</span></span><span class="ln"><span class="cmd"> request: Place an order on production
|
|
876
|
+
</span></span><span class="ln"><span class="cmd"> expect: { outcome: needs_input }
|
|
877
|
+
</span></span></code></pre></div>
|
|
878
|
+
<p><code>outcome</code> is how the run ended (<code>done</code> by default, <code>needs_input</code> or <code>failed</code>); <code>says</code> and <code>never_says</code> are words its
|
|
879
|
+
reply holds or not, matched as written (case aside, never as a pattern); <code>uses</code> are tools it called and was allowed,
|
|
880
|
+
<code>never_uses</code> tools it never called at all. <code>forgeqe agent test <id></code> tries each on the manifest as it is (read and run
|
|
881
|
+
only, each run asked) and keeps the results for that exact version. A version whose checks have not all passed is
|
|
882
|
+
approved only with <code>--skip-checks</code>, or the approve dialog's <strong>Approve it without them</strong>, and its history says so.
|
|
883
|
+
On the agent's page, Details, <strong>Checks</strong> lists each check's last result on the manifest as it is, with why it failed,
|
|
884
|
+
and <strong>Run checks</strong> runs them from there (the same <code>forgeqe agent test</code>, each run's question answered on the page).</p>
|
|
885
|
+
<p><code>memory: { notes: 50 }</code> (or <code>memory: true</code>, 50 notes; at most 200) lets an agent remember between runs. It gets two
|
|
886
|
+
tools: <code>remember</code> keeps one short fact (one line, at most 300 characters) and <code>recall</code> reads its notes back, handed to it
|
|
887
|
+
as data. A note is the model's own text, so it is kept with saved logins' values and key shapes hidden, and one that
|
|
888
|
+
reads as instructions to an agent is refused. Past the limit the oldest go. The notes are kept beside its runs
|
|
889
|
+
(<code>memory.json</code>, mode 0600, never through a link) and read back as untrusted. A person reads them on the agent's page
|
|
890
|
+
(Details, <strong>Memory</strong>) and forgets one, or all with the agent's id typed, each audited; at the terminal,
|
|
891
|
+
<code>forgeqe agent memory <id></code> lists them and <code>--forget-all</code> forgets them. A helper the agent starts has no memory, and
|
|
892
|
+
<code>deny: [remember]</code> takes the tool away. Deleting the agent removes its notes with its runs.</p>
|
|
893
|
+
<p><code>approval: { people: 2, owners: [Ann Lee, Bo Chen] }</code> asks for more than one person. Each approval before the last is
|
|
894
|
+
kept in its history as <strong>Signed</strong> and changes nothing that runs; once that many different people have approved the
|
|
895
|
+
exact manifest, it runs (the approval's note names the others). The same person twice, from the terminal or the page,
|
|
896
|
+
is refused, and with <code>owners</code> only those people approve. A change is approved under the stricter of its own rule and
|
|
897
|
+
the running version's, so it cannot lower the bar it is approved under. ForgeQE knows a person by git's <code>user.name</code>
|
|
898
|
+
(else <code>user.email</code>) on their computer: this is an agreement the history keeps and the team reviews in the committed
|
|
899
|
+
release file, not a sign-in. Disabling, enabling and rolling back to an approved version still take one person.</p>
|
|
900
|
+
<p><code>output</code> gives its reply a result that code reads, not a model:</p>
|
|
901
|
+
<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
|
+
</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
|
+
</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
|
|
904
|
+
</span></span><span class="ln"><span class="cmd"> fields:
|
|
905
|
+
</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
|
+
</span></span></code></pre></div>
|
|
907
|
+
<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 as untrusted: a verdict only of its list, a field only one it names and of its kind (text
|
|
909
|
+
clipped to 200 characters), and says what it left out. The run keeps the result (its page shows it under <strong>Its
|
|
910
|
+
result</strong>; <code>forgeqe agent history</code> shows the verdict), a check can expect one (<code>expect: { verdict: passed }</code>), another
|
|
911
|
+
agent's <code>hand_to_agent</code> and Atlas's <code>custom_agent</code> get it beside the reply, and <code>forgeqe agent run</code> prints it and exits
|
|
912
|
+
1 on a verdict of <code>fail_on</code>, or on none where verdicts are named. A run nobody watches tells the team such a verdict as
|
|
913
|
+
a failure (<code>agent_failed</code>), naming the verdict and never quoting a field.</p>
|
|
914
|
+
<p>The approve dialog lists what the version may do, each line marked <strong>New</strong>, <strong>Changed</strong> (with what it was) or <strong>No
|
|
915
|
+
longer</strong> against the version that runs. Details, <strong>Versions</strong> opens any approved version to read: its manifest as
|
|
916
|
+
approved, the change from the version that runs and what it may do against it, with <strong>Roll back</strong> there too. A change
|
|
917
|
+
waiting for approval can be thrown away with <strong>Discard the change</strong> or <code>forgeqe agent discard <id></code>: the manifest is the
|
|
918
|
+
approved version again, and the audit log keeps that it happened.</p>
|
|
919
|
+
<p><code>runtime.model</code> runs the agent on a profile of llms.json by its name (the editor's <strong>Model</strong>), in place of the one
|
|
920
|
+
ForgeQE's agent would use; a name llms.json does not have is refused, and with <code>code.model</code> set that model answers
|
|
921
|
+
instead, which the run says. <code>permissions.deny</code> lists tools it never uses even though its capabilities have them
|
|
922
|
+
(the editor lists each picked capability's tools), or a system's tools by name or as <code><system>_*</code>: they are not
|
|
923
|
+
offered and every call of them is refused, for helpers it hands work to too. It only takes away, and
|
|
924
|
+
<code>request_approval</code> cannot be denied.</p>
|
|
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>
|
|
927
|
+
<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
|
+
</span></span><span class="ln"><span class="cmd"> - { name: env, label: Environment, kind: environment }
|
|
929
|
+
</span></span><span class="ln"><span class="cmd"> - { name: build, label: Build, kind: text }
|
|
930
|
+
</span></span><span class="ln"><span class="cmd">starters: [{ label: Check a build, text: "Check build {build} on {env}" }]
|
|
931
|
+
</span></span><span class="ln"><span class="cmd">schedule: { every: 1d, request: "Run the checkout pack on {env}", with: { env: qa } }
|
|
932
|
+
</span></span></code></pre></div>
|
|
933
|
+
<p>A starter that names inputs asks for their values on the agent's page and fills the message, which you read before
|
|
934
|
+
sending. A schedule's values (<code>with</code>) are checked when the manifest is read, and its job gets the finished request. A
|
|
935
|
+
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 (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as <code><system>_<tool></code> (a dot in
|
|
937
|
+
a name becomes <code>_</code>; a name too long for MCP clients, or not a plain name, is left out). Every page of a server's tool
|
|
938
|
+
list is read; a tool is read-only only when the server marks it <code>readOnlyHint</code> and not also <code>destructiveHint</code>; a
|
|
939
|
+
server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to check the
|
|
940
|
+
credential its settings name.</p>
|
|
941
|
+
<p>Before your team relies on custom agents, run <a href="../custom-agents-first-run/index.html">the first real run</a> once: building one
|
|
942
|
+
with the model, trying, approving, Atlas, another system, a schedule, production, turning off, and the
|
|
943
|
+
record, each with what you should see. The builder offers starters (defect retest, nightly smoke, pull request test
|
|
944
|
+
check, release readiness, API contracts, test case quality): a request to begin from, planned from what your project has.</p>
|
|
945
|
+
<p>To turn custom agents off for the whole project, set <code>custom_agents: { enabled: false }</code> in <code>forgeqe.yaml</code> (Settings,
|
|
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
|
|
948
|
+
them back on restores everything as it was.</p>
|
|
949
|
+
<p>Atlas hands requests to the active custom agents (custom_agent) as it does to its own agents. Each run is
|
|
950
|
+
kept in <code>.forgeqe/agent-runs/<id></code>.</p>
|
|
951
|
+
<p>In the web app (<code>forgeqe web</code>), custom agents are under Agents › Custom agents. <strong>Make an agent</strong> in the sidebar, or <strong>New</strong> on the Agents page, opens the agent builder:
|
|
952
|
+
say what the agent should do in your own words, and ForgeQE takes you through its steps, one page each: Understand
|
|
953
|
+
(what it could not work out, with what it recommends and why), Plan (how the agent will work, and whether each part is
|
|
954
|
+
set up here), Boundaries (where it works and what it may do, least privilege first; production never), Knowledge (what
|
|
955
|
+
it should know: the project's knowledge that fits, and notes that become its own), Review (its name and first request;
|
|
956
|
+
saving makes it a draft), and Try (try it, then approve it). A draft can be picked up again later. Every setting by
|
|
957
|
+
hand is under Advanced settings. An agent's page asks it (its approved version) or tries its
|
|
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>
|
|
961
|
+
</section>
|
|
962
|
+
</div>
|
|
963
|
+
</article>
|
|
964
|
+
<article class="spec feat" id="cap-notifications">
|
|
965
|
+
<div class="hd"><span class="mono">Operations</span><h3>Teams and email notifications</h3></div>
|
|
966
|
+
<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>
|
|
967
|
+
<div class="facts">
|
|
968
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Post the results to the QA channel</li><li>Tell the release channel the verdict is NO-GO</li></ul></div>
|
|
969
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</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>
|
|
970
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>notify</code></p></div>
|
|
972
|
+
</div>
|
|
973
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
974
|
+
<section class="doc" id="doc-how_to_use-17-notifications">
|
|
975
|
+
<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:</p>
|
|
977
|
+
<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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd"> channels:
|
|
980
|
+
</span></span><span class="ln"><span class="cmd"> qa:
|
|
981
|
+
</span></span><span class="ln"><span class="cmd"> teams: { webhook_env: TEAMS_WEBHOOK_URL }
|
|
982
|
+
</span></span><span class="ln"><span class="cmd"> on: [suite_failed, eval_failed]
|
|
983
|
+
</span></span><span class="ln"><span class="cmd"> release:
|
|
984
|
+
</span></span><span class="ln"><span class="cmd"> teams: { webhook_env: TEAMS_RELEASE_WEBHOOK }
|
|
985
|
+
</span></span><span class="ln"><span class="cmd"> on: [release]
|
|
986
|
+
</span></span><span class="ln"><span class="cmd"> leads:
|
|
987
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd"> on: [suite_failed, release]
|
|
989
|
+
</span></span></code></pre></div>
|
|
990
|
+
<div class="tbl tbl--cols-3"><table>
|
|
991
|
+
<thead>
|
|
992
|
+
<tr><th>Event</th><th>When</th><th>The card shows</th></tr>
|
|
993
|
+
</thead>
|
|
994
|
+
<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="When">A job of the jobs service 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>
|
|
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>
|
|
1007
|
+
</tbody>
|
|
1008
|
+
</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 <code>monitor.alerts</code>, with the same cards.</p>
|
|
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 with <code>notify</code>.</p>
|
|
1011
|
+
<p>Links: with <code>report_url</code>, 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>
|
|
1012
|
+
<p><strong>Setting up a Teams channel:</strong></p>
|
|
1013
|
+
<ol>
|
|
1014
|
+
<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>
|
|
1016
|
+
<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><code>forgeqe notify test [channel]</code> sends a test card to check it arrives.</li>
|
|
1018
|
+
</ol>
|
|
1019
|
+
</div>
|
|
1020
|
+
</section>
|
|
1021
|
+
</div>
|
|
1022
|
+
</article>
|
|
1023
|
+
<article class="spec feat" id="cap-pipelines">
|
|
1024
|
+
<div class="hd"><span class="mono">Operations</span><h3>CI pipelines</h3></div>
|
|
1025
|
+
<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>
|
|
1026
|
+
<div class="facts">
|
|
1027
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green</li></ul></div>
|
|
1028
|
+
<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
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>push_branch</code> <code>set_ci_secret</code></p></div>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
1032
|
+
<section class="doc" id="doc-how_to_use-8-pipelines">
|
|
1033
|
+
<h4>Pipelines</h4>
|
|
1034
|
+
<div class="prose"><p>ForgeQE's agent writes, runs, and fixes GitHub Actions and Azure Pipelines. Run it in the repo (or pass <code>--repo</code>) and ask:</p>
|
|
1035
|
+
<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
|
+
</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
|
+
</span></span><span class="ln"><span class="cmd">forgeqe run "The ForgeQE workflow is failing, fix it"
|
|
1038
|
+
</span></span></code></pre></div>
|
|
1039
|
+
<p>What it does:</p>
|
|
1040
|
+
<ol>
|
|
1041
|
+
<li>Works out the platform from the git remote (github.com, or dev.azure.com / visualstudio.com) and reads the repo's existing CI, so it can add a job to it or write a new file.</li>
|
|
1042
|
+
<li>Writes the pipeline so it installs Bun and uv, runs and <code>forgeqe setup</code>, then <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>
|
|
1043
|
+
<li>Validates it (actionlint when installed, otherwise by parsing the YAML) and commits it.</li>
|
|
1044
|
+
<li>Pushes to a new branch named <code>forgeqe/ci-<topic></code> with ForgeQE's <code>push_branch</code> tool. That tool refuses the default branch, <code>main</code>, and <code>master</code>, and never forces; <code>git push</code> itself is blocked for the agent. Merging stays with you.</li>
|
|
1045
|
+
<li>Stores the keys the pipeline needs (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>) with ForgeQE's <code>set_ci_secret</code> tool. The agent only names the variable; ForgeQE passes the value from its own environment to <code>gh secret set</code> (on stdin) or <code>az pipelines variable</code> (through the environment), and never shows it. A variable that is not set in ForgeQE's environment is reported, not guessed.</li>
|
|
1046
|
+
<li>Triggers the run with <code>gh workflow run</code> or <code>az pipelines run</code>, 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
|
+
</ol>
|
|
1048
|
+
<p>It needs <code>gh</code> logged in for GitHub, or <code>az</code> with the <code>azure-devops</code> extension logged in for Azure DevOps. Without them it 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
|
+
</div>
|
|
1050
|
+
</section>
|
|
1051
|
+
</div>
|
|
1052
|
+
</article>
|
|
1053
|
+
|
|
1054
|
+
<nav class="pager" aria-label="Previous and next">
|
|
1055
|
+
<a class="prev" href="../area-setup/index.html"><small>Previous</small><span>Setup and configuration</span></a>
|
|
1056
|
+
<a class="next" href="../area-data/index.html"><small>Next</small><span>Test data and databases</span></a>
|
|
1057
|
+
</nav>
|
|
1058
|
+
</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-how_to_use-containers-and-mock-services">Containers and mock services</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="#doc-how_to_use-production-errors">Production errors</a></li><li><a href="#cap-model-cost">Model cost and usage</a></li><li><a href="#doc-how_to_use-model-cost">Model cost</a></li><li><a href="#cap-monitoring">Scheduled monitoring with alerts</a></li><li><a href="#doc-how_to_use-9-monitoring">Monitoring</a></li><li><a href="#cap-jobs">Background jobs on a schedule</a></li><li><a href="#doc-how_to_use-the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell">The jobs service: scheduled and long jobs apart from the shell</a></li><li><a href="#cap-custom-agents">Your team's custom agents</a></li><li><a href="#doc-how_to_use-custom-agents">Custom agents</a></li><li><a href="#cap-notifications">Teams and email notifications</a></li><li><a href="#doc-how_to_use-17-notifications">Notifications</a></li><li><a href="#cap-pipelines">CI pipelines</a></li><li><a href="#doc-how_to_use-8-pipelines">Pipelines</a></li></ul></aside>
|
|
1060
|
+
</div>
|
|
1061
|
+
<footer class="foot">
|
|
1062
|
+
<div class="container foot__row">
|
|
1063
|
+
<a class="foot__brand" href="https://forgeqe.github.io/"><picture><source srcset="../../img/wordmark-white.webp" media="(prefers-color-scheme: dark)"><img src="../../img/wordmark.webp" alt="ForgeQE" width="160" height="76"></picture><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
|
|
1064
|
+
<nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="../../security/index.html">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
|
|
1065
|
+
</div>
|
|
1066
|
+
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
1067
|
+
</footer>
|
|
1068
|
+
</body>
|
|
1069
|
+
</html>
|