@capagents/forgeqe 3.1.0 → 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 +465 -95
- 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 -6708
- 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 +2251 -1886
- 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 -12
- 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 +463 -87
- 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/responsive-review.md +38 -0
- package/prompts/responsive-split.md +40 -0
- package/prompts/responsive.md +42 -0
- 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-C3KdZh5M.js +0 -2
- package/dist/web/assets/ApiTests-BLnl7JGO.js +0 -10
- package/dist/web/assets/Browse-C-Enjpmd.js +0 -2
- package/dist/web/assets/Chat-Bt6jZI68.js +0 -3
- package/dist/web/assets/Choices-D5eTFinz.js +0 -3
- package/dist/web/assets/CommandPalette-D89NM2_E.js +0 -1
- package/dist/web/assets/Compare-YfFYHwfK.js +0 -1
- package/dist/web/assets/Cost-ClaDz0YR.js +0 -1
- package/dist/web/assets/Data-jSFgAfej.js +0 -6
- package/dist/web/assets/Desktop-BofKeLVf.js +0 -1
- package/dist/web/assets/DesktopReview--WjeZh3w.js +0 -1
- package/dist/web/assets/Evidence-CJNzSQpY.js +0 -1
- package/dist/web/assets/Explore-BdFvqgF4.js +0 -2
- package/dist/web/assets/Features-CIBbw6PG.js +0 -1
- package/dist/web/assets/Flags-B62v4uWR.js +0 -2
- package/dist/web/assets/Flaky-Cut1kZw6.js +0 -1
- package/dist/web/assets/Impact-jOSl5Q0k.js +0 -3
- package/dist/web/assets/Jobs-DMJGgWtQ.js +0 -5
- package/dist/web/assets/KindPage-BbQWH5wa.js +0 -6
- package/dist/web/assets/Migration-BBgv7xXo.js +0 -2
- package/dist/web/assets/PageAgent-txbNoP6u.js +0 -1
- package/dist/web/assets/Product-BrXH81Ns.js +0 -7
- package/dist/web/assets/Production-CCVtFNGQ.js +0 -1
- package/dist/web/assets/Quality-Dxh-60A8.js +0 -1
- package/dist/web/assets/Readiness-DyJvSOLN.js +0 -1
- package/dist/web/assets/Record-Dnlkimjb.js +0 -1
- package/dist/web/assets/Regression-D2DDTwzs.js +0 -5
- package/dist/web/assets/Reports-ClcY7M0Q.js +0 -2
- package/dist/web/assets/Response-D9FYUvHg.js +0 -9
- package/dist/web/assets/RunDiff-CNImaEdz.js +0 -1
- package/dist/web/assets/Runs-CFvmdULI.js +0 -2
- package/dist/web/assets/Steps-BS66s0E1.js +0 -2
- package/dist/web/assets/TestCases-CrQEUtfD.js +0 -1
- package/dist/web/assets/TestData-e3IX0xwG.js +0 -2
- package/dist/web/assets/TestDebt-tXPoexMF.js +0 -1
- package/dist/web/assets/TestManagement-wjGaoZzI.js +0 -1
- package/dist/web/assets/Tosca-C5YaMLS0.js +0 -3
- package/dist/web/assets/WhatsNew-CwnRbDnd.js +0 -1
- package/dist/web/assets/azuredevops-BcQ5AFOM.js +0 -1
- package/dist/web/assets/crew-CWfjZIxE.js +0 -1
- package/dist/web/assets/families-DWilSDct.js +0 -1
- package/dist/web/assets/filters-CVzIOjPG.js +0 -1
- package/dist/web/assets/fold-tvLGnxD1.js +0 -1
- package/dist/web/assets/frame-Deu1IqzV.js +0 -13
- package/dist/web/assets/index-BWMIKyPB.js +0 -76
- package/dist/web/assets/index-C2Yq55oT.css +0 -2
- package/dist/web/assets/line-icons-C_amZ5-o.js +0 -1
- package/dist/web/assets/logos-C1NBtBMc.js +0 -1
- package/dist/web/assets/logos-DFyhMw0i.js +0 -1
- package/dist/web/assets/markdown-DC2HA0yZ.js +0 -10
- package/dist/web/assets/paletteCommands-Qxm5DZIs.js +0 -1
- package/dist/web/assets/parts-BR6dUwqn.js +0 -1
- package/dist/web/assets/productParts-BxdHuSBa.js +0 -1
- package/dist/web/assets/qualityParts-lz6eYVxC.js +0 -1
- package/dist/web/assets/recordTest-CcplpTS6.js +0 -1
- package/dist/web/assets/today-DuQFapJM.js +0 -1
- package/dist/web/assets/when-CHnpLdYw.js +0 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<link rel="stylesheet" href="../app-theme.css">
|
|
16
16
|
</head>
|
|
17
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-download" viewBox="0 0 256 256"><g fill="currentColor"><path d="M216 48v160H40V48a16 16 0 0 1 16-16h144a16 16 0 0 1 16 16" opacity=".2"/><path d="M224 144v64a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8v-64a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0m-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 124.69V32a8 8 0 0 0-16 0v92.69L93.66 98.34a8 8 0 0 0-11.32 11.32Z"/></g></symbol><symbol id="ph-orchestrator" viewBox="0 0 256 256"><g fill="currentColor"><path d="M64 112v32a8 8 0 0 1-8 8H24a8 8 0 0 1-8-8v-32a8 8 0 0 1 8-8h32a8 8 0 0 1 8 8m144-72h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8m0 112h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8" opacity=".2"/><path d="M160 112h48a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v16h-16a24 24 0 0 0-24 24v32H72v-8a16 16 0 0 0-16-16H24a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-8h32v32a24 24 0 0 0 24 24h16v16a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v16h-16a8 8 0 0 1-8-8V88a8 8 0 0 1 8-8h16v16a16 16 0 0 0 16 16M56 144H24v-32h32zm104 16h48v48h-48Zm0-112h48v48h-48Z"/></g></symbol><symbol id="ph-browser-agent" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 56v40H32V56a8 8 0 0 1 8-8h176a8 8 0 0 1 8 8" opacity=".2"/><path d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 16v32H40V56Zm0 144H40v-96h176z"/></g></symbol><symbol id="ph-case" viewBox="0 0 256 256"><g fill="currentColor"><path d="M80 40v176H48a8 8 0 0 1-8-8V48a8 8 0 0 1 8-8Z" opacity=".2"/><path d="M184 112a8 8 0 0 1-8 8h-64a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8m-8 24h-64a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16m48-88v160a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16M48 208h24V48H48Zm160 0V48H88v160z"/></g></symbol><symbol id="ph-healer" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 72v128a8 8 0 0 1-8 8H40a8 8 0 0 1-8-8V72a8 8 0 0 1 8-8h176a8 8 0 0 1 8 8" opacity=".2"/><path d="M216 56h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V72a16 16 0 0 0-16-16M96 48a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm120 152H40V72h176zm-56-64a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8"/></g></symbol><symbol id="ph-desktop" viewBox="0 0 256 256"><g fill="currentColor"><path d="M224 64v88H32V64a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16" opacity=".2"/><path d="M208 40H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h72v16H96a8 8 0 0 0 0 16h64a8 8 0 0 0 0-16h-24v-16h72a24 24 0 0 0 24-24V64a24 24 0 0 0-24-24M48 56h160a8 8 0 0 1 8 8v80H40V64a8 8 0 0 1 8-8m160 128H48a8 8 0 0 1-8-8v-16h176v16a8 8 0 0 1-8 8"/></g></symbol><symbol id="ph-mobile" viewBox="0 0 256 256"><g fill="currentColor"><path d="M192 56v144H64V56Z" opacity=".2"/><path d="M176 16H80a24 24 0 0 0-24 24v176a24 24 0 0 0 24 24h96a24 24 0 0 0 24-24V40a24 24 0 0 0-24-24M72 64h112v128H72Zm8-32h96a8 8 0 0 1 8 8v8H72v-8a8 8 0 0 1 8-8m96 192H80a8 8 0 0 1-8-8v-8h112v8a8 8 0 0 1-8 8"/></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><symbol id="ph-knowledge-base" viewBox="0 0 256 256"><g fill="currentColor"><path d="M48 72h64v112H48Zm142.64-33.61a8 8 0 0 0-9.5-6.21l-46.81 10a8.07 8.07 0 0 0-6.15 9.57L139.79 107l62.46-13.42Z" opacity=".2"/><path d="m231.65 194.55l-33.19-157.8a16 16 0 0 0-19-12.39l-46.81 10.06a16.08 16.08 0 0 0-12.3 19l33.19 157.8A16 16 0 0 0 169.16 224a16.3 16.3 0 0 0 3.38-.36l46.81-10.06a16.09 16.09 0 0 0 12.3-19.03M136 50.15v-.09l46.8-10l3.33 15.87L139.33 66Zm6.62 31.47l46.82-10.05l3.34 15.9L146 97.53Zm6.64 31.57l46.82-10.06l13.3 63.24l-46.82 10.06ZM216 197.94l-46.8 10l-3.33-15.87l46.8-10.07l3.33 15.85zM104 32H56a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16M56 48h48v16H56Zm0 32h48v96H56Zm48 128H56v-16h48z"/></g></symbol><symbol id="ph-scribe" viewBox="0 0 256 256"><g fill="currentColor"><path d="M208 88h-56V32Z" opacity=".2"/><path d="M181.66 146.34a8 8 0 0 1 0 11.32l-24 24a8 8 0 0 1-11.32-11.32L164.69 152l-18.35-18.34a8 8 0 0 1 11.32-11.32Zm-72-24a8 8 0 0 0-11.32 0l-24 24a8 8 0 0 0 0 11.32l24 24a8 8 0 0 0 11.32-11.32L91.31 152l18.35-18.34a8 8 0 0 0 0-11.32M216 88v128a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V40a16 16 0 0 1 16-16h96a8 8 0 0 1 5.66 2.34l56 56A8 8 0 0 1 216 88m-56-8h28.69L160 51.31Zm40 136V96h-48a8 8 0 0 1-8-8V40H56v176z"/></g></symbol><symbol id="ph-pr-reviewer" viewBox="0 0 256 256"><g fill="currentColor"><path d="M96 64a24 24 0 1 1-24-24a24 24 0 0 1 24 24m104 104a24 24 0 1 0 24 24a24 24 0 0 0-24-24" opacity=".2"/><path d="M104 64a32 32 0 1 0-40 31v66a32 32 0 1 0 16 0V95a32.06 32.06 0 0 0 24-31m-48 0a16 16 0 1 1 16 16a16 16 0 0 1-16-16m32 128a16 16 0 1 1-16-16a16 16 0 0 1 16 16m120-31v-50.37a23.85 23.85 0 0 0-7-17L163.31 56H192a8 8 0 0 0 0-16h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 16 0V67.31L189.66 105a8 8 0 0 1 2.34 5.66V161a32 32 0 1 0 16 0m-8 47a16 16 0 1 1 16-16a16 16 0 0 1-16 16"/></g></symbol><symbol id="ph-api" viewBox="0 0 256 256"><g fill="currentColor"><path d="M240 128c-64 0 0 88-64 88H80c-64 0 0-88-64-88c64 0 0-88 64-88h96c64 0 0 88 64 88" opacity=".2"/><path d="M43.18 128a29.8 29.8 0 0 1 8 10.26c4.8 9.9 4.8 22 4.8 33.74c0 24.31 1 36 24 36a8 8 0 0 1 0 16c-17.48 0-29.32-6.14-35.2-18.26c-4.8-9.9-4.8-22-4.8-33.74c0-24.31-1-36-24-36a8 8 0 0 1 0-16c23 0 24-11.69 24-36c0-11.72 0-23.84 4.8-33.74C50.68 38.14 62.52 32 80 32a8 8 0 0 1 0 16c-23 0-24 11.69-24 36c0 11.72 0 23.84-4.8 33.74A29.8 29.8 0 0 1 43.18 128M240 120c-23 0-24-11.69-24-36c0-11.72 0-23.84-4.8-33.74C205.32 38.14 193.48 32 176 32a8 8 0 0 0 0 16c23 0 24 11.69 24 36c0 11.72 0 23.84 4.8 33.74a29.8 29.8 0 0 0 8 10.26a29.8 29.8 0 0 0-8 10.26c-4.8 9.9-4.8 22-4.8 33.74c0 24.31-1 36-24 36a8 8 0 0 0 0 16c17.48 0 29.32-6.14 35.2-18.26c4.8-9.9 4.8-22 4.8-33.74c0-24.31 1-36 24-36a8 8 0 0 0 0-16"/></g></symbol><symbol id="ph-result" viewBox="0 0 256 256"><g fill="currentColor"><path d="M232 128c0 12.51-17.82 21.95-22.68 33.69c-4.68 11.32 1.42 30.65-7.78 39.85s-28.53 3.1-39.85 7.78C150 214.18 140.5 232 128 232s-22-17.82-33.69-22.68c-11.32-4.68-30.65 1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82 150 24 140.5 24 128s17.82-22 22.68-33.69c4.68-11.31-1.42-30.65 7.78-39.85s28.54-3.1 39.85-7.78C106.05 41.82 115.5 24 128 24s22 17.82 33.69 22.68c11.32 4.68 30.65-1.42 39.85 7.78s3.1 28.53 7.78 39.85C214.18 106.05 232 115.5 232 128" opacity=".2"/><path d="M225.86 102.82c-3.77-3.94-7.67-8-9.14-11.57c-1.36-3.27-1.44-8.69-1.52-13.94c-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52c-3.56-1.47-7.63-5.37-11.57-9.14C146.28 23.51 138.44 16 128 16s-18.27 7.51-25.18 14.14c-3.94 3.77-8 7.67-11.57 9.14c-3.25 1.36-8.69 1.44-13.94 1.52c-9.76.15-20.82.31-28.51 8s-7.8 18.75-8 28.51c-.08 5.25-.16 10.67-1.52 13.94c-1.47 3.56-5.37 7.63-9.14 11.57C23.51 109.72 16 117.56 16 128s7.51 18.27 14.14 25.18c3.77 3.94 7.67 8 9.14 11.57c1.36 3.27 1.44 8.69 1.52 13.94c.15 9.76.31 20.82 8 28.51s18.75 7.85 28.51 8c5.25.08 10.67.16 13.94 1.52c3.56 1.47 7.63 5.37 11.57 9.14c6.9 6.63 14.74 14.14 25.18 14.14s18.27-7.51 25.18-14.14c3.94-3.77 8-7.67 11.57-9.14c3.27-1.36 8.69-1.44 13.94-1.52c9.76-.15 20.82-.31 28.51-8s7.85-18.75 8-28.51c.08-5.25.16-10.67 1.52-13.94c1.47-3.56 5.37-7.63 9.14-11.57c6.63-6.9 14.14-14.74 14.14-25.18s-7.51-18.27-14.14-25.18m-11.55 39.29c-4.79 5-9.75 10.17-12.38 16.52c-2.52 6.1-2.63 13.07-2.73 19.82c-.1 7-.21 14.33-3.32 17.43s-10.39 3.22-17.43 3.32c-6.75.1-13.72.21-19.82 2.73c-6.35 2.63-11.52 7.59-16.52 12.38S132 224 128 224s-9.15-4.92-14.11-9.69s-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73c-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82c-2.63-6.35-7.59-11.52-12.38-16.52S32 132 32 128s4.92-9.15 9.69-14.11s9.75-10.17 12.38-16.52c2.52-6.1 2.63-13.07 2.73-19.82c.1-7 .21-14.33 3.32-17.43s10.39-3.22 17.43-3.32c6.75-.1 13.72-.21 19.82-2.73c6.35-2.63 11.52-7.59 16.52-12.38S124 32 128 32s9.15 4.92 14.11 9.69s10.17 9.75 16.52 12.38c6.1 2.52 13.07 2.63 19.82 2.73c7 .1 14.33.21 17.43 3.32s3.22 10.39 3.32 17.43c.1 6.75.21 13.72 2.73 19.82c2.63 6.35 7.59 11.52 12.38 16.52S224 124 224 128s-4.92 9.15-9.69 14.11m-40.65-43.77a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0"/></g></symbol><symbol id="ph-speed" 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="M232 136.66A104.12 104.12 0 1 1 119.34 24a8 8 0 0 1 1.32 16A88.12 88.12 0 1 0 216 135.34a8 8 0 0 1 16 1.32M120 72v56a8 8 0 0 0 8 8h56a8 8 0 0 0 0-16h-48V72a8 8 0 0 0-16 0m40-24a12 12 0 1 0-12-12a12 12 0 0 0 12 12m36 24a12 12 0 1 0-12-12a12 12 0 0 0 12 12m24 36a12 12 0 1 0-12-12a12 12 0 0 0 12 12"/></g></symbol></svg>
|
|
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></svg>
|
|
19
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
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
21
|
<line x1="8" x2="16" y1="21" y2="21" />
|
|
@@ -101,73 +101,69 @@
|
|
|
101
101
|
<header class="nav" id="navigation">
|
|
102
102
|
<div class="nav__bar">
|
|
103
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="
|
|
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
105
|
<div class="nav__end">
|
|
106
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
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
108
|
</div>
|
|
109
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="
|
|
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
111
|
</header>
|
|
112
112
|
<div class="container docs-layout">
|
|
113
113
|
<nav class="docs-side" aria-label="Docs">
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<div class="side-group"><p class="side-head">Pages of their own</p><ul>
|
|
118
|
-
<li><a href="https://forgeqe.github.io/security/"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-shield"/></svg><span>Security and data flows</span></a></li>
|
|
119
|
-
<li><a href="../../architecture-map/index.html"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg><span>Architecture map</span></a></li>
|
|
120
|
-
</ul></div>
|
|
121
|
-
</nav>
|
|
114
|
+
<a class="side-home" href="../index.html"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
115
|
+
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="index.html" aria-current="page"><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>
|
|
122
117
|
<main id="main" class="docs-main">
|
|
123
|
-
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>
|
|
118
|
+
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>How ForgeQE works</p>
|
|
119
|
+
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="index.html" aria-current="page"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details></div>
|
|
124
120
|
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-architecture"/></svg>Architecture</h1>
|
|
125
121
|
<article class="prose">
|
|
126
122
|
<p>Three processes. The Bun CLI owns the shell, config, profiles, and ForgeQE's tools. ForgeQE's agent runs on the agent runtime, reads each request, and calls those tools over MCP. Quill, the coding agent, runs on the same runtime and writes, heals, and reviews tests. A Python engine drives Chrome; three more drive Windows apps (<code>py/forgeqe_desktop</code>, on UFO² and pywinauto), Android and iOS apps (<code>py/forgeqe_mobile</code>, on Appium and Maestro), and the team's databases (<code>py/forgeqe_data</code>, on SQLAlchemy, sqlglot and DB-GPT, in its own environment). There is no FastAPI server, and ForgeQE keeps no database of its own: the databases it reads, and writes to when one is marked writable and the user confirms, are the ones <code>databases:</code> names.</p>
|
|
127
123
|
<p>The single-view map of subagents, tools, and capabilities is <a href="https://forgeqe.github.io/architecture-map/components/"><code>forgeqe-architecture.html</code></a> (<code>forgeqe docs --open</code>). Suite <code>report.html</code> includes the browser agent's token counts, and a cost in the machine's currency when the profile has a price.</p>
|
|
128
|
-
<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><code>┌───────────────────────────────────────────────┐ ┌──────────────────────────────┐
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
stdin: request JSON, later "stop"
|
|
136
|
-
stdout: JSON events (log, memory, step, result, usage, done)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
│
|
|
143
|
-
.forgeqe/reports/&lt;run-id>/: run.json workflow.yaml trace.md steps/ failure.png
|
|
144
|
-
</code></pre></div>
|
|
124
|
+
<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">┌───────────────────────────────────────────────┐ ┌──────────────────────────────┐
|
|
125
|
+
</span></span><span class="ln"><span class="cmd">│ OpenTUI shell or forgeqe run --plain │ MCP │ Agent runtime │
|
|
126
|
+
</span></span><span class="ln"><span class="cmd">│ config, llms.json profile, /stop, transcript │◄──────►│ "forgeqe" agent: decides, │
|
|
127
|
+
</span></span><span class="ln"><span class="cmd">│ ForgeQE tools (src/mcp), 127.0.0.1 + token │ HTTP │ edits files, runs commands │
|
|
128
|
+
</span></span><span class="ln"><span class="cmd">│ write_test / heal_tests open Quill sessions │ │ Quill: writes, heals, and │
|
|
129
|
+
</span></span><span class="ln"><span class="cmd">│ │ │ reviews tests in your repo │
|
|
130
|
+
</span></span><span class="ln"><span class="cmd">└─────────────────────┬─────────────────────────┘ └──────────────────────────────┘
|
|
131
|
+
</span></span><span class="ln"><span class="cmd"> stdin: request JSON, later "stop"
|
|
132
|
+
</span></span><span class="ln"><span class="cmd"> stdout: JSON events (log, memory, step, result, usage, done)
|
|
133
|
+
</span></span><span class="ln"><span class="cmd">┌─────────────────────▼─────────────────────────┐
|
|
134
|
+
</span></span><span class="ln"><span class="cmd">│ python -m forgeqe_engine run │ ~/.forgeqe/engine/.venv
|
|
135
|
+
</span></span><span class="ln"><span class="cmd">│ Engine agent + browser (Chrome) │ (py/forgeqe_engine)
|
|
136
|
+
</span></span><span class="ln"><span class="cmd">│ nexus recovery prompt, tuning, loop breaker │
|
|
137
|
+
</span></span><span class="ln"><span class="cmd">└─────────────────────┬─────────────────────────┘
|
|
138
|
+
</span></span><span class="ln"><span class="cmd"> │
|
|
139
|
+
</span></span><span class="ln"><span class="cmd"> .forgeqe/reports/&lt;run-id>/: run.json workflow.yaml trace.md steps/ failure.png
|
|
140
|
+
</span></span></code></pre></div>
|
|
145
141
|
<h2 id="engine-pyforgeqe_engine"><a href="#engine-pyforgeqe_engine" class="hash">#</a>Engine (<code>py/forgeqe_engine</code>)</h2>
|
|
146
142
|
<p>Copied from test-agent-nexus and trimmed to what a CLI run needs:</p>
|
|
147
|
-
<div class="tbl"><table>
|
|
143
|
+
<div class="tbl tbl--cols-3"><table>
|
|
148
144
|
<thead>
|
|
149
145
|
<tr><th>Module</th><th>From nexus</th><th>Contents</th></tr>
|
|
150
146
|
</thead>
|
|
151
147
|
<tbody>
|
|
152
|
-
<tr><td><code>service.py</code></td><td>nexus browser service</td><td><code>RunRequest</code>, <code>run_browser_task</code> (memory replay, Agent construction fallbacks, the step callbacks, timeout and stop handling, one <code>_save</code> for every way a run ends), error-recovery system prompt, <code>MemoryRun</code>, artifact writing</td></tr>
|
|
153
|
-
<tr><td><code>llm.py</code></td><td>nexus browser service</td><td>LLM construction (azure, openai, openai_compatible, ollama), model-call timing, token usage</td></tr>
|
|
154
|
-
<tr><td><code>browser.py</code></td><td>nexus browser service</td><td>Chrome launch kwargs, waiting for a page to settle, browser and agent shutdown, the browser profile recorded in <code>run.json</code></td></tr>
|
|
155
|
-
<tr><td><code>settings.py</code></td><td>nexus browser service</td><td>Fast-mode tuning, headless mode, the default-login block</td></tr>
|
|
156
|
-
<tr><td><code>urls.py</code></td><td>nexus browser service</td><td>Start URL normalisation and the allowed-hosts checks</td></tr>
|
|
157
|
-
<tr><td><code>loops.py</code></td><td>nexus browser service</td><td>Progress checks, the repeated-control nudge then stop, and the resume point after a failure</td></tr>
|
|
158
|
-
<tr><td><code>capture.py</code></td><td>new</td><td>Live capture for the test the run becomes: what each action changed on the page (<code>install_effects</code> wraps the agent's <code>tools.act</code>), the control a user acts on (<code>actionable_node</code>), locators checked on the live page (<code>verify_locators</code>: role and name through Chrome's accessibility tree, the rest in the page), the element and section behind each check (<code>locate_check</code>), and <code>click_selector</code>, a real mouse click on a CSS-selected element</td></tr>
|
|
159
|
-
<tr><td><code>summary.py</code></td><td>nexus browser service</td><td>Result markdown (the agent's own final answer and the checks it recorded; no filtering of what it read), fallback summaries, failure trace and screenshot, the judge's verdict</td></tr>
|
|
160
|
-
<tr><td><code>workflow_yaml.py</code></td><td><code>browser_workflow_yaml.py</code></td><td><code>forgeqe-v2-compact</code> steps from history (or the live trace after a stop), semantic locators, execution metadata</td></tr>
|
|
161
|
-
<tr><td><code>cli.py</code></td><td>new</td><td>The stdin/stdout protocol above</td></tr>
|
|
162
|
-
<tr><td><code>memory.py</code></td><td>new</td><td>Page memory: element facts from the engine library's DOM, ranked locators with confidence, element identity across visits, recorded flows, prompt hints. Locators follow Playwright: <code>playwright_role_ok</code> (no link role for an <code>&lt;a></code> without <code>href</code>), <code>strip_icons</code> (icon-font characters out of names and text; such a name becomes a <code>role_pattern</code>), a <code>scope</code> (the nearest ancestor id) for a css locator scoped to a repeating item, and the <code>frame</code> an element sits in</td></tr>
|
|
163
|
-
<tr><td><code>userlike.py</code></td><td>new</td><td>The agent clicks as a user can: the library's occlusion check raises <code>Covered</code> with what covers the element instead of clicking it from JavaScript, and script clicks (<code>this.click()</code> through <code>Runtime.callFunctionOn</code>) and page typing (<code>_type_to_page</code>) it still makes are recorded. <code>install_effects</code> puts <code>take()</code> on each action; <code>_record_memory_results</code> keeps <code>covered_by</code> for the click that then worked, and <code>bypass</code> and <code>frame</code> on the step</td></tr>
|
|
164
|
-
<tr><td><code>replay.py</code></td><td>new</td><td>Replays a recorded flow through the engine library's <code>Tools</code> and writes the hand-off task for the agent</td></tr>
|
|
165
|
-
<tr><td><code>logins.py</code></td><td>new</td><td>Saved logins: the engine library's <code>sensitive_data</code> per domain, TOTP codes, session files (load, split by host, save when changed), and the interactive <code>login</code> command</td></tr>
|
|
166
|
-
<tr><td><code>report.py</code></td><td>new</td><td><code>CaseReport</code> (per-step verdicts through the engine library's <code>output_model_schema</code>) and <code>steps.json</code> with step screenshots</td></tr>
|
|
167
|
-
<tr><td><code>checks.py</code></td><td>new</td><td><code>record_check</code>, the browser agent's action for each result the goal asks to verify: <code>expected</code> and the exact <code>text</code> on the page, refused when the page (visible text or form values, over CDP) does not show it; <code>service.py</code> registers it on the agent's <code>Tools</code>, adds <code>CHECKS_SYSTEM_MESSAGE</code>, and on success passes the checks to <code>run.json</code> and <code>workflow.yaml</code> <code>checks</code></td></tr>
|
|
168
|
-
<tr><td><code>diagnostics.py</code></td><td>new</td><td>Console errors, uncaught exceptions, failed and slow requests, and accessibility checks per page, over CDP</td></tr>
|
|
169
|
-
<tr><td><code>skills.py</code></td><td>new</td><td>Browser skills: <code>choose_skills</code> (one structured model call picks at most 3 by name and description; never raises) and <code>skills_block</code> (the chosen skills' text under a header, within <code>skills_max_chars</code>). <code>run_browser_task</code> appends the block to the extended system prompt and records what it decided in <code>run.json</code> <code>skills</code>; the choice's tokens are added to the run's usage</td></tr>
|
|
170
|
-
<tr><td><code>brand.py</code>, <code>brand_assets.py</code></td><td>new</td><td>ForgeQE start page and overlay in a visible browser; the icon made by <code>scripts/brand.py</code> from <code>assets/forgeqe-icon.png</code></td></tr>
|
|
148
|
+
<tr><td data-label="Module"><code>service.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents"><code>RunRequest</code>, <code>run_browser_task</code> (memory replay, Agent construction fallbacks, the step callbacks, timeout and stop handling, one <code>_save</code> for every way a run ends), error-recovery system prompt, <code>MemoryRun</code>, artifact writing</td></tr>
|
|
149
|
+
<tr><td data-label="Module"><code>llm.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">LLM construction (azure, openai, openai_compatible, ollama), model-call timing, token usage</td></tr>
|
|
150
|
+
<tr><td data-label="Module"><code>browser.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">Chrome launch kwargs, waiting for a page to settle, browser and agent shutdown, the browser profile recorded in <code>run.json</code></td></tr>
|
|
151
|
+
<tr><td data-label="Module"><code>settings.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">Fast-mode tuning, headless mode, the default-login block</td></tr>
|
|
152
|
+
<tr><td data-label="Module"><code>urls.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">Start URL normalisation and the allowed-hosts checks</td></tr>
|
|
153
|
+
<tr><td data-label="Module"><code>loops.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">Progress checks, the repeated-control nudge then stop, and the resume point after a failure</td></tr>
|
|
154
|
+
<tr><td data-label="Module"><code>capture.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Live capture for the test the run becomes: what each action changed on the page (<code>install_effects</code> wraps the agent's <code>tools.act</code>), the control a user acts on (<code>actionable_node</code>), locators checked on the live page (<code>verify_locators</code>: role and name through Chrome's accessibility tree, the rest in the page), the element and section behind each check (<code>locate_check</code>), and <code>click_selector</code>, a real mouse click on a CSS-selected element</td></tr>
|
|
155
|
+
<tr><td data-label="Module"><code>summary.py</code></td><td data-label="From nexus">nexus browser service</td><td data-label="Contents">Result markdown (the agent's own final answer and the checks it recorded; no filtering of what it read), fallback summaries, failure trace and screenshot, the judge's verdict</td></tr>
|
|
156
|
+
<tr><td data-label="Module"><code>workflow_yaml.py</code></td><td data-label="From nexus"><code>browser_workflow_yaml.py</code></td><td data-label="Contents"><code>forgeqe-v2-compact</code> steps from history (or the live trace after a stop), semantic locators, execution metadata</td></tr>
|
|
157
|
+
<tr><td data-label="Module"><code>cli.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">The stdin/stdout protocol above</td></tr>
|
|
158
|
+
<tr><td data-label="Module"><code>memory.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Page memory: element facts from the engine library's DOM, ranked locators with confidence, element identity across visits, recorded flows, prompt hints. Locators follow Playwright: <code>playwright_role_ok</code> (no link role for an <code>&lt;a></code> without <code>href</code>), <code>strip_icons</code> (icon-font characters out of names and text; such a name becomes a <code>role_pattern</code>), a <code>scope</code> (the nearest ancestor id) for a css locator scoped to a repeating item, and the <code>frame</code> an element sits in</td></tr>
|
|
159
|
+
<tr><td data-label="Module"><code>userlike.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">The agent clicks as a user can: the library's occlusion check raises <code>Covered</code> with what covers the element instead of clicking it from JavaScript, and script clicks (<code>this.click()</code> through <code>Runtime.callFunctionOn</code>) and page typing (<code>_type_to_page</code>) it still makes are recorded. <code>install_effects</code> puts <code>take()</code> on each action; <code>_record_memory_results</code> keeps <code>covered_by</code> for the click that then worked, and <code>bypass</code> and <code>frame</code> on the step</td></tr>
|
|
160
|
+
<tr><td data-label="Module"><code>replay.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Replays a recorded flow through the engine library's <code>Tools</code> and writes the hand-off task for the agent</td></tr>
|
|
161
|
+
<tr><td data-label="Module"><code>logins.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Saved logins: the engine library's <code>sensitive_data</code> per domain, TOTP codes, session files (load, split by host, save when changed), and the interactive <code>login</code> command</td></tr>
|
|
162
|
+
<tr><td data-label="Module"><code>report.py</code></td><td data-label="From nexus">new</td><td data-label="Contents"><code>CaseReport</code> (per-step verdicts through the engine library's <code>output_model_schema</code>) and <code>steps.json</code> with step screenshots</td></tr>
|
|
163
|
+
<tr><td data-label="Module"><code>checks.py</code></td><td data-label="From nexus">new</td><td data-label="Contents"><code>record_check</code>, the browser agent's action for each result the goal asks to verify: <code>expected</code> and the exact <code>text</code> on the page, refused when the page (visible text or form values, over CDP) does not show it; <code>service.py</code> registers it on the agent's <code>Tools</code>, adds <code>CHECKS_SYSTEM_MESSAGE</code>, and on success passes the checks to <code>run.json</code> and <code>workflow.yaml</code> <code>checks</code></td></tr>
|
|
164
|
+
<tr><td data-label="Module"><code>diagnostics.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Console errors, uncaught exceptions, failed and slow requests, and accessibility checks per page, over CDP</td></tr>
|
|
165
|
+
<tr><td data-label="Module"><code>skills.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">Browser skills: <code>choose_skills</code> (one structured model call picks at most 3 by name and description; never raises) and <code>skills_block</code> (the chosen skills' text under a header, within <code>skills_max_chars</code>). <code>run_browser_task</code> appends the block to the extended system prompt and records what it decided in <code>run.json</code> <code>skills</code>; the choice's tokens are added to the run's usage</td></tr>
|
|
166
|
+
<tr><td data-label="Module"><code>brand.py</code>, <code>brand_assets.py</code></td><td data-label="From nexus">new</td><td data-label="Contents">ForgeQE start page and overlay in a visible browser; the icon made by <code>scripts/brand.py</code> from <code>assets/forgeqe-icon.png</code></td></tr>
|
|
171
167
|
</tbody>
|
|
172
168
|
</table></div>
|
|
173
169
|
<p><strong>Saved logins.</strong> The request carries each login's name, domains, and environment variable names; values cross stdin only for logins remembered this session (<code>values</code>), and are never logged. <code>use_logins</code> builds the engine library's domain-scoped <code>sensitive_data</code> (<code>{domain: {shop_username: …, shop_password: …, shop_bu_2fa_code: &lt;TOTP secret>}}</code>), so the model sees placeholders, the engine fills values only on matching domains, masks them in page text, and turns <code>bu_2fa_code</code> into a fresh pyotp code when typed. Session files for the run's logins are merged into <code>Browser(storage_state=…)</code>. Because the agent closes the browser when <code>run()</code> returns, <code>_on_step_end</code> saves each login's cookies and origins (<code>_cdp_get_storage_state</code>, split by host) whenever they change, mode 0600, with a <code>.gitignore</code> in the folder. Page memory records <code>text_env</code> / <code>totp_env</code> instead of values, so replays and the handoff to the coding agent (<code>process.env.X</code>) use the current secrets.</p>
|
|
@@ -209,15 +205,15 @@
|
|
|
209
205
|
</ul>
|
|
210
206
|
<p><strong>Observe.</strong> Before each agent step, <code>_on_new_step</code> passes the engine library's <code>selector_map</code> (<code>EnhancedDOMTreeNode</code>s) to <code>MemoryStore.observe</code>. For every element it builds the locator candidates, counts how many elements on the page each one matches, and merges them into the page file. An element keeps its identity across visits through a strong locator (test id, id, name, role, label, placeholder, href), then its XPath, then a hash of tag and anchor text. An XPath match counts only when the role and accessible name (or text) agree too, because sites reuse one popup container for different widgets; an element whose label changed becomes a new entry. When replay resolves a step on a different entry than the one recorded, <code>record_stale</code> marks the recorded entry's dead locators as missed and failed, and the flow is saved against the new entry. <code>flow_step</code> lists the locators that matched on the page at that moment ahead of those only seen on earlier visits.</p>
|
|
211
207
|
<p><strong>Confidence</strong> is <code>100 × base × uniqueness × stability × reliability</code>, clamped to 1–99:</p>
|
|
212
|
-
<div class="tbl"><table>
|
|
208
|
+
<div class="tbl tbl--cols-2"><table>
|
|
213
209
|
<thead>
|
|
214
210
|
<tr><th>Factor</th><th>Value</th></tr>
|
|
215
211
|
</thead>
|
|
216
212
|
<tbody>
|
|
217
|
-
<tr><td>base</td><td>by kind: test id .96, id .90, role .88, name .86, label .84, placeholder .82, alt .78, href .74, title .72, text .70, CSS .50, XPath .30; ×0.4 when the value looks generated</td></tr>
|
|
218
|
-
<tr><td>uniqueness</td><td>1 when it matches one element, else 0.5 / (matches − 1)</td></tr>
|
|
219
|
-
<tr><td>stability</td><td>(0.75 + 0.25 × min(seen, 4) / 4) × seen / (seen + missed)</td></tr>
|
|
220
|
-
<tr><td>reliability</td><td>(successes + 1) / (successes + failures + 1)</td></tr>
|
|
213
|
+
<tr><td data-label="Factor">base</td><td data-label="Value">by kind: test id .96, id .90, role .88, name .86, label .84, placeholder .82, alt .78, href .74, title .72, text .70, CSS .50, XPath .30; ×0.4 when the value looks generated</td></tr>
|
|
214
|
+
<tr><td data-label="Factor">uniqueness</td><td data-label="Value">1 when it matches one element, else 0.5 / (matches − 1)</td></tr>
|
|
215
|
+
<tr><td data-label="Factor">stability</td><td data-label="Value">(0.75 + 0.25 × min(seen, 4) / 4) × seen / (seen + missed)</td></tr>
|
|
216
|
+
<tr><td data-label="Factor">reliability</td><td data-label="Value">(successes + 1) / (successes + failures + 1)</td></tr>
|
|
221
217
|
</tbody>
|
|
222
218
|
</table></div>
|
|
223
219
|
<p><strong>Record.</strong> <code>_on_step_end</code> pairs each action's result with the element it targeted. It records success or failure against the element and the locator, and adds non-read-only actions to the run's flow. At the end, a complete run replaces the flow's steps, a failed run only counts a failure, and a stopped run leaves the flow alone.</p>
|
|
@@ -231,48 +227,48 @@
|
|
|
231
227
|
<p><code>src/tools.ts</code> downloads a release archive into <code>~/.forgeqe/tools/&lt;name>-&lt;version></code>, checks its SHA-256 (from the release's checksum file, or the digest GitHub's release API records), unpacks it with <code>tar</code> (System32's bsdtar on Windows, which reads zip), and removes older versions. uv and the agent runtime use it; the launchers carry their own copy for Bun because they run before any TypeScript. <code>code/runtime.ts</code> uses the runtime from <code>code.runtime</code>, PATH, or an existing install, else downloads the pinned runtime, whose version matches the agent runtime SDK in <code>package.json</code> (a test checks this). <code>forgeqe setup</code> calls it, and so does every command that can start the agent.</p>
|
|
232
228
|
<p><code>setup.ts</code> finds or creates the engine environment: <code>FORGEQE_PYTHON</code> when that Python passes the engine check (otherwise it logs why and skips it), else <code>~/.forgeqe/engine/.venv</code>, which is rebuilt when its engine check fails (created with <code>uv venv --python ">=3.11"</code>, or <code>python3.11+ -m venv</code> when no uv can be found or downloaded). uv is the system one, else the pinned <code>UV_VERSION</code> downloaded from uv's GitHub releases into <code>~/.forgeqe/tools/uv-&lt;version></code> (checked against its <code>.sha256</code>, unpacked with <code>tar</code>, which on Windows is System32's bsdtar). A downloaded uv keeps the Pythons it fetches in <code>~/.forgeqe/tools/python</code>. It installs the engine's pinned Python libraries and records the version in <code>installed.json</code>, so later runs skip setup. When Google Chrome is missing it installs Chromium through Playwright.</p>
|
|
233
229
|
<p><code>bridge.ts</code> spawns the engine with <code>PYTHONPATH</code> pointing at the packaged <code>py/</code>, sends the request (goal, profile, start URL, headed, max steps, allowed hosts, extra system prompt, browser skills with <code>skills_pick</code> and <code>skills_max_chars</code>), and maps events:</p>
|
|
234
|
-
<div class="tbl"><table>
|
|
230
|
+
<div class="tbl tbl--cols-2"><table>
|
|
235
231
|
<thead>
|
|
236
232
|
<tr><th>Engine event</th><th>Transcript</th></tr>
|
|
237
233
|
</thead>
|
|
238
234
|
<tbody>
|
|
239
|
-
<tr><td><code>log</code></td><td>grey line</td></tr>
|
|
240
|
-
<tr><td><code>memory</code></td><td><code>↻</code> line, e.g. <code>Replaying 4 remembered steps</code></td></tr>
|
|
241
|
-
<tr><td><code>step</code></td><td>step counter, the model's next goal; <code>(memory)</code> for replayed steps</td></tr>
|
|
242
|
-
<tr><td><code>result</code></td><td>✓ / ✗ per action, e.g. <code>click "Search": element not found</code></td></tr>
|
|
243
|
-
<tr><td><code>usage</code></td><td>token counter</td></tr>
|
|
244
|
-
<tr><td><code>done</code></td><td>final status, summary, artifact list, memory counts (<code>Memory</code> row in the summary)</td></tr>
|
|
235
|
+
<tr><td data-label="Engine event"><code>log</code></td><td data-label="Transcript">grey line</td></tr>
|
|
236
|
+
<tr><td data-label="Engine event"><code>memory</code></td><td data-label="Transcript"><code>↻</code> line, e.g. <code>Replaying 4 remembered steps</code></td></tr>
|
|
237
|
+
<tr><td data-label="Engine event"><code>step</code></td><td data-label="Transcript">step counter, the model's next goal; <code>(memory)</code> for replayed steps</td></tr>
|
|
238
|
+
<tr><td data-label="Engine event"><code>result</code></td><td data-label="Transcript">✓ / ✗ per action, e.g. <code>click "Search": element not found</code></td></tr>
|
|
239
|
+
<tr><td data-label="Engine event"><code>usage</code></td><td data-label="Transcript">token counter</td></tr>
|
|
240
|
+
<tr><td data-label="Engine event"><code>done</code></td><td data-label="Transcript">final status, summary, artifact list, memory counts (<code>Memory</code> row in the summary)</td></tr>
|
|
245
241
|
</tbody>
|
|
246
242
|
</table></div>
|
|
247
243
|
<p>Esc or <code>/stop</code> writes <code>stop</code>; the engine stops the agent and still writes artifacts from the live trace. An engine still running <code>STOP_GRACE_MS</code> (30 s) later gets SIGTERM, then SIGKILL <code>KILL_AFTER_MS</code> (10 s) after that, and the run reports stopped with a note that its artifacts may be incomplete. <code>executeRun</code> also gives the bridge a hard deadline (<code>engineDeadlineMs</code>: twice <code>browser.timeout_seconds</code> plus five minutes), because the engine's own timeout covers only the agent, not browser start-up, skill choice (itself capped at 60 s), or memory replay; a run past it is stopped the same way and reported as failed.</p>
|
|
248
244
|
<p><strong>Environment.</strong> The engine is spawned with an allow-list (<code>allowListEnv</code> in <code>src/childEnv.ts</code>): system settings (PATH, HOME, locale, display, temp folders, proxies, certificates, Windows system variables), <code>BROWSER_USE_*</code>, <code>FORGEQE_ENGINE_*</code>, Python and uv settings, the key variable of the profile the run uses (the active one, or the router's pick for <code>browser</code>), and the saved logins' variables. Other secrets in the terminal, such as tracker tokens, never reach the browser agent.</p>
|
|
249
245
|
<h2 id="forgeqes-agent-srcbrain-srcmcp"><a href="#forgeqes-agent-srcbrain-srcmcp" class="hash">#</a>ForgeQE's agent (<code>src/brain</code>, <code>src/mcp</code>)</h2>
|
|
250
246
|
<p>Every message in the shell and every <code>forgeqe run "&lt;request>"</code> goes to one agent runtime session running the <code>forgeqe</code> agent. Nothing is parsed before it: the agent decides whether the text is a browser goal, test case references, a test to write, or a pipeline task, and asks (outcome <code>needs_input</code>) when it cannot tell. The only slash commands left are session controls (<code>src/commands.ts</code>: <code>/stop</code>, <code>/headed</code>, <code>/profile</code>, <code>/logs</code>, <code>/skills</code>, <code>/clear</code>, <code>/help</code>, <code>/exit</code>); any other line, including one starting with <code>/</code>, is text for the agent.</p>
|
|
251
|
-
<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><code>shell / forgeqe run ──► openBrain ──► agent runtime session (forgeqe agent, BRAIN_PROMPT + environment notes)
|
|
252
|
-
▲ │ │ forgeqe_* tool calls (MCP, Streamable HTTP, bearer token)
|
|
253
|
-
│ ToolEvents └── createMcpServer ◄┘
|
|
254
|
-
└──────────────────────── TOOLS: browser_run, run_test_cases, … (same process)
|
|
255
|
-
</code></pre></div>
|
|
256
|
-
<div class="tbl"><table>
|
|
247
|
+
<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">shell / forgeqe run ──► openBrain ──► agent runtime session (forgeqe agent, BRAIN_PROMPT + environment notes)
|
|
248
|
+
</span></span><span class="ln"><span class="cmd"> ▲ │ │ forgeqe_* tool calls (MCP, Streamable HTTP, bearer token)
|
|
249
|
+
</span></span><span class="ln"><span class="cmd"> │ ToolEvents └── createMcpServer ◄┘
|
|
250
|
+
</span></span><span class="ln"><span class="cmd"> └──────────────────────── TOOLS: browser_run, run_test_cases, … (same process)
|
|
251
|
+
</span></span></code></pre></div>
|
|
252
|
+
<div class="tbl tbl--cols-2"><table>
|
|
257
253
|
<thead>
|
|
258
254
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
259
255
|
</thead>
|
|
260
256
|
<tbody>
|
|
261
|
-
<tr><td><code>brain/prompt.ts</code></td><td><code>BRAIN_PROMPT</code>: the tools (every CLI command is one, so the agent uses the tool instead of telling the user to run a command), how to choose a source, find vs run, signing in, writing tests (<code>write_test</code>; small hand edits verified with <code>run_test</code>), the CI pipeline procedure, fixing broken tests (<code>heal_tests</code>), running existing repo tests (<code>find_tests</code> then <code>run_tests</code>, never without the user's confirmation; sprint dates only from <code>sprint</code>), monitoring, ForgeQE's own docs and setup, and the rules (no secret values, push only with <code>push_branch</code>, stay in the working directory). The reply is plain text, so it streams to the shell as it is written (the runtime's <code>message.part.delta</code> events, relayed as <code>stream</code> events); it ends with a hidden line <code>&lt;!--forgeqe {"outcome": done | failed | needs_input, "next": […]}--></code> that <code>splitReply</code> reads and <code>visibleReply</code> holds back while the reply streams</td></tr>
|
|
262
|
-
<tr><td><code>brain/index.ts</code></td><td><code>openBrain</code> starts the MCP server on 127.0.0.1 with a random token (<code>localToolServer</code>), then an agent runtime session with the prompt, the session notes, the schema, and the server as a remote MCP entry (6 h tool timeout). <code>ask</code> returns the reply and outcome, <code>abort</code> stops the session and every running tool call. <code>brainUnavailable</code> is why it cannot run (no model set up and no <code>code.model</code>, or no agent runtime); callers then run the text as one browser goal. <code>sessionSetup</code> picks the working directory and whether passed runs become tests from <code>--repo</code>, <code>--no-code</code>, and <code>code.repo</code> (default: tests in the current folder)</td></tr>
|
|
263
|
-
<tr><td><code>mcp/tools.ts</code></td><td><code>TOOLS</code> and <code>environmentNotes</code> (working directory, run and memory folders, configured test case systems, suite defaults, timeouts, the profile, and the names, never values, of keys set in the environment). Each tool reports <code>ToolEvent</code>s (run-start/event/done, suite-start/event/done, info, <code>agent</code> for a nested coding or healing session's events, <code>card</code> for a result panel) to whoever shows them. <code>ToolContext</code> carries <code>session</code> (<code>shell</code>, <code>once</code> for <code>forgeqe run</code>, <code>server</code> for <code>forgeqe mcp</code>), <code>waitForUser</code> and <code>ask</code> when a person can answer, and <code>openSession</code> so tests can script the nested agent runtime sessions</td></tr>
|
|
264
|
-
<tr><td><code>cases/save.ts</code></td><td><code>save_test_cases</code>: <code>saveAdoCases</code> creates Test Case work items (<code>adoStepsXml</code> writes <code>Microsoft.VSTS.TCM.Steps</code> the way <code>adoCases</code> reads it) linked to the story with <code>TestedBy-Reverse</code> in its area and iteration; <code>saveJiraCases</code> creates issues (type Test by default) with the steps in the description and an issue link. Both reuse a case already linked to the story under the same title, then compare with the story's scope (<code>cases/scope.ts</code>: <code>test_cases</code> maps an area path or project to a plan, suite, area or JQL filter, values checked before they reach WIQL or JQL, at most <code>MAX_SCOPE</code> cases read, steps only for the <code>shortlist</code>): the same steps are <code>reuse</code>, a case adding steps is <code>extends</code> with its <code>insert</code>; nothing is written to an existing case there. <code>planLinks</code> checks ids, type and project before <code>link_test_case</code> or <code>update_test_case</code>'s <code>story</code> asks; <code>insertSteps</code> applies an <code>insert</code>. <code>saveTestrailCases</code>, <code>saveZephyrCases</code>, Xray mode in <code>saveJiraCases</code> (<code>createXrayTest</code>, <code>setXraySteps</code> in <code>cases/xray.ts</code>), <code>saveAdoCasesInArea</code> and <code>saveJiraCasesInProject</code> for cases with no story, and <code>existingCases</code> for <code>check_test_cases</code>' <code>against</code>. <code>cases/fields.ts</code> checks <code>new_cases</code>; <code>cases/adodata.ts</code> writes shared steps references and parameters; <code>cases/staleness.ts</code> reads a story's history; <code>cases/retire.ts</code> retires a case; <code>cases/jirareadiness.ts</code> is release readiness for Jira. <code>cases/caseindex.ts</code> keeps a project's index of scope cases' steps; <code>cases/bulk.ts</code> prepares several changes for one question (apply_case_changes and the web gateway <code>web/testcases.ts</code>); <code>cases/targets.ts</code> names a case's system by its id; <code>cases/changelog.ts</code>, <code>cases/trace.ts</code> and <code>cases/proposals.ts</code> keep the project's change log, criteria trace and pending proposals; <code>cases/requirementsfile.ts</code> reads Requirements Agent's requirements.json; <code>cases/scopecheck.ts</code> checks the settings Settings saves and tries a test_cases line. On unless <code>sources.save_cases: false</code>; <code>environmentNotes</code> tells the agent which</td></tr>
|
|
265
|
-
<tr><td><code>mcp/commands.ts</code></td><td><code>COMMAND_TOOLS</code>, one tool per CLI command, appended to <code>TOOLS</code>. <code>write_test</code> runs the coding loop (<code>runCodeAgent</code>) and <code>heal_tests</code> runs <code>runHeal</code>, forwarding their events as <code>agent</code> events and ending with a card; each opens its own agent runtime server on port 0, so it nests inside the brain's session. <code>monitor</code>: <code>round</code> (one <code>runMonitor --once</code>, refused while a background monitor uses the folder), <code>start</code>/<code>stop</code>/<code>status</code> (background monitors, only in <code>shell</code> and <code>server</code> sessions), <code>test_alerts</code>. <code>browser_run</code> takes <code>purpose</code> (<code>test</code> or <code>task</code>); <code>taskReason</code> treats a <code>task</code>, or a run that starts on, ends on, or names a configured source system's host (Azure DevOps, Jira, Confluence, TestRail, Zephyr, qTest, Xray), as a task: it writes <code>task.json</code> (<code>TASK_FILE</code>) in the run folder, returns no <code>write_test</code> next step, and <code>write_test</code> refuses that folder. <code>browser_run</code> also takes <code>resume_from</code> (a failed run's folder or name, read by <code>loadResume</code> in <code>run.ts</code>) and, after a failure with resume steps, returns them with a <code>next_step</code> naming the folder; the brain's prompt says to retry with it and say what to do differently. <code>logins</code>: <code>remember</code> (session logins), list (configured and remembered), clear (a saved session, and a remembered login's credentials and session file), and <code>sign_in</code> through <code>signIn</code> and <code>ctx.waitForUser</code> (refused without it). <code>forgeqe_setup</code>: profiles, MCP servers, <code>docsAbout</code> (README and HOW_TO_USE split at headings and scored against the topic, since the agent's <code>external_directory</code> rule keeps it out of the package folder), <code>install_engine</code>, <code>init</code>, <code>skills</code> (<code>op</code> list, show, or new: <code>newSkill</code> into the project's or the user's skills folder)</td></tr>
|
|
266
|
-
<tr><td><code>card.ts</code></td><td><code>Card</code> (<code>status</code>, <code>title</code>, <code>stats</code>, <code>body</code>) and <code>cardText</code>. <code>codeCard</code>, <code>healCard</code>, and <code>roundCard</code> build cards from the same lines as the terminal summaries</td></tr>
|
|
267
|
-
<tr><td><code>mcp/server.ts</code></td><td>JSON-RPC for MCP by hand: <code>initialize</code> (protocol 2025-06-18, 2025-03-26, 2024-11-05, with <code>instructions</code>), <code>ping</code>, <code>tools/list</code>, <code>tools/call</code>, <code>notifications/cancelled</code>. <code>serveHttp</code>: Streamable HTTP on 127.0.0.1, checking the bearer token in constant time (<code>tokenMatches</code>) and refusing requests whose <code>Origin</code> is not this machine (<code>originAllowed</code>), so a web page cannot call the tools; tool calls answer as an event stream with a progress notification every 10 s and a keep-alive every 15 s, so the agent runtime's per-call timeout (which resets on progress) never fires during a long suite. <code>serveStdio</code>: newline-delimited JSON-RPC for <code>forgeqe mcp</code>; closing stdin aborts running calls. <code>localToolServer</code>: a server over HTTP with a fresh token and the agent runtime's MCP entry for it, shared by the brain and the healing session</td></tr>
|
|
268
|
-
<tr><td><code>mcp/git.ts</code></td><td><code>pushBranch</code>: finds the default branch (<code>symbolic-ref refs/remotes/&lt;remote>/HEAD</code>, else <code>ls-remote --symref</code>), refuses it and <code>main</code>/<code>master</code>, checks the name with <code>git check-ref-format</code>, and runs <code>git push --set-upstream &lt;remote> HEAD:refs/heads/&lt;name></code> without force. <code>setCiSecret</code>: <code>gh secret set NAME</code> with the value on stdin, or <code>az pipelines variable create|update --secret true</code> with the value in <code>AZURE_DEVOPS_EXT_PIPELINE_VAR_&lt;NAME></code>; the value is scrubbed from any error</td></tr>
|
|
269
|
-
<tr><td><code>auth/mcpOAuth.ts</code></td><td>Browser sign-in to an MCP server (<code>oauthSignIn</code>): protected-resource metadata (RFC 9728) → authorization server metadata (RFC 8414, issuer checked, S256 required) → dynamic client registration as a public client (RFC 7591) → the authorization page with PKCE, <code>state</code> and <code>resource</code> → the code on a one-time <code>Bun.serve</code> listener on <code>127.0.0.1:0</code> (<code>/callback</code>, state compared in constant time, plain-text page) → token exchange. Every endpoint must be https. The grant is one credential-store entry (<code>FORGEQE_MCP_OAUTH_&lt;SYSTEM></code>), with <code>mcp:&lt;system></code> in auth.json. <code>refreshMcpSignIns</code> runs when a session opens (<code>openBrain</code>), for <code>forgeqe mcp list</code> and when the web app starts: it clears <code>FORGEQE_&lt;SYSTEM>_MCP_OAUTH</code>, then exports a current access token (renewed within a minute of expiry) only for the server the settings name now (<code>oauthResource</code>, <code>auth/oauthNames.ts</code>). <code>external.ts</code> and <code>integrations.ts</code> use that variable when no token variable is set</td></tr>
|
|
270
|
-
<tr><td><code>web/signins.ts</code></td><td>Settings' sign-in for every system but Copilot: <code>signIn</code> with the page as its terminal (one job at a time, an id of <code>SIGNIN_SYSTEMS</code> only, answers only to the question waiting, typed secrets scrubbed from lines, links only https). Routes <code>/api/signin</code>, <code>/api/signin/answer</code>, <code>/api/signin/cancel</code>, <code>/api/signout</code></td></tr>
|
|
271
|
-
<tr><td><code>mcp/external.ts</code></td><td><code>externalMcp</code> turns <code>sources:</code> and <code>mcp:</code> into agent runtime MCP entries: <code>azure_devops</code> (<code>npx -y @azure-devops/mcp@2.11.0 &lt;org> -a pat|azcli -d &lt;every group in ADO_GROUPS></code>, with <code>hints</code> from <code>adoHints</code>: each prefix's words and keywords, and the <code>mcp_domains</code> prefixes on every turn), <code>atlassian</code> (<code>uvx mcp-atlassian</code> with <code>JIRA_URL</code> and <code>JIRA_USERNAME</code> + <code>JIRA_API_TOKEN</code> or <code>JIRA_PERSONAL_TOKEN</code>, plus <code>CONFLUENCE_*</code> when <code>sources.confluence</code> is set, <code>TOOLSETS=all</code>; or the hosted Rovo server at <code>mcp.atlassian.com/v2/mcp</code> with Basic auth, which also covers Confluence on the same site), <code>confluence</code> (<code>uvx mcp-atlassian</code> for Confluence alone when Jira's server doesn't cover it), the servers of <code>integrations:</code> (<code>mcp/integrations.ts</code>: <code>integrationsConfig</code> checks each block, <code>integrationServers</code> gives <code>gitlab</code> (remote <code>&lt;url>/api/v4/mcp</code>, Bearer <code>{env:token_env}</code>), <code>postman</code> (remote <code>mcp.postman.com</code> or <code>mcp.eu.postman.com</code>), and <code>browserstack</code>, <code>azure</code> (<code>--read-only</code> by default, <code>--namespace</code> per service), <code>dataverse</code> and <code>sentry</code> started by <code>npx</code> with credentials as <code>{env:}</code> references), and every <code>mcp:</code> server, which replaces a built-in one of the same name. Secrets are <code>{env:NAME}</code> references that the agent runtime substitutes; values that must be derived (base64 of <code>forgeqe:&lt;PAT></code> for Azure DevOps, of <code>email:token</code> for Rovo) are put in <code>FORGEQE_*</code> variables of ForgeQE's own environment before the agent runtime server starts. A system whose server can't start here (no npx or uvx, missing token, Azure DevOps Server, Rovo on Server/DC) is listed with the reason. The servers get a 120 s timeout, which also covers the first <code>npx</code>/<code>uvx</code> download</td></tr>
|
|
272
|
-
<tr><td><code>cases/dashboards.ts</code></td><td><code>createAdoDashboard</code> for the <code>create_ado_dashboard</code> tool, since Microsoft's Azure DevOps MCP server has no dashboard or saved-query tools: runs each widget's WIQL once (<code>$top=1</code>) so a bad query fails before anything is written, saves it under <code>Shared Queries/ForgeQE</code> (creating the folder, PATCHing a query of the same name), then POSTs the dashboard (<code>7.1-preview.3</code>, team-scoped when a team is given) with count tiles (<code>QueryScalarWidget</code>, <code>{queryId, queryName}</code>) across the top, then work item lists (<code>WitViewWidget</code>, <code>{query: {queryId, queryName}}</code>) and markdown two to a row. Widget <code>settings</code> are JSON strings, as the API requires</td></tr>
|
|
273
|
-
<tr><td><code>cases/adopr.ts</code></td><td><code>createAdoPullRequest</code> for the <code>create_ado_pull_request</code> tool, since the default MCP tool groups leave out <code>repositories</code> and <code>query_api</code> only reads: <code>branchRef</code> checks each branch against git's ref-name rules before anything is sent, the repository is read by name or id, both refs must exist (<code>refs?filter=heads/…</code>), an active pull request between the same refs is returned (<code>existing: true</code>) instead of a second one, then it POSTs <code>pullrequests</code> with a default title of "Merge <source> into <target>"</td></tr>
|
|
274
|
-
<tr><td><code>cases/wiki.ts</code></td><td><code>writeAdoWikiPage</code> for the <code>write_ado_wiki_page</code> tool, since the MCP server's wiki tools need an existing wiki: picks the named wiki or the project wiki, creating <code>&lt;Project>.wiki</code> (<code>type: projectWiki</code>, project id from <code>_apis/projects</code>) when the project has none, PUTs missing parent pages empty, then PUTs the page with <code>If-Match</code> set to its ETag when it already exists. Code wikis get <code>versionDescriptor</code> for their first published branch</td></tr>
|
|
275
|
-
<tr><td><code>cases/api.ts</code></td><td><code>queryApi</code> for the <code>query_api</code> tool: GET under the Azure DevOps organization (and its <code>vsrm</code>/<code>vssps</code>/<code>almsearch</code> hosts, with <code>api-version=7.1</code> added) or the Jira site, and Xray Cloud GraphQL queries (mutations refused). Absolute URLs on other hosts are refused, so credentials only go to their own system. Answers over 40,000 characters are cut</td></tr>
|
|
257
|
+
<tr><td data-label="Module"><code>brain/prompt.ts</code></td><td data-label="Contents"><code>BRAIN_PROMPT</code>: the tools (every CLI command is one, so the agent uses the tool instead of telling the user to run a command), how to choose a source, find vs run, signing in, writing tests (<code>write_test</code>; small hand edits verified with <code>run_test</code>), the CI pipeline procedure, fixing broken tests (<code>heal_tests</code>), running existing repo tests (<code>find_tests</code> then <code>run_tests</code>, never without the user's confirmation; sprint dates only from <code>sprint</code>), monitoring, ForgeQE's own docs and setup, and the rules (no secret values, push only with <code>push_branch</code>, stay in the working directory). The reply is plain text, so it streams to the shell as it is written (the runtime's <code>message.part.delta</code> events, relayed as <code>stream</code> events); it ends with a hidden line <code>&lt;!--forgeqe {"outcome": done | failed | needs_input, "next": […]}--></code> that <code>splitReply</code> reads and <code>visibleReply</code> holds back while the reply streams</td></tr>
|
|
258
|
+
<tr><td data-label="Module"><code>brain/index.ts</code></td><td data-label="Contents"><code>openBrain</code> starts the MCP server on 127.0.0.1 with a random token (<code>localToolServer</code>), then an agent runtime session with the prompt, the session notes, the schema, and the server as a remote MCP entry (6 h tool timeout). <code>ask</code> returns the reply and outcome, <code>abort</code> stops the session and every running tool call. <code>brainUnavailable</code> is why it cannot run (no model set up and no <code>code.model</code>, or no agent runtime); callers then run the text as one browser goal. <code>sessionSetup</code> picks the working directory and whether passed runs become tests from <code>--repo</code>, <code>--no-code</code>, and <code>code.repo</code> (default: tests in the current folder)</td></tr>
|
|
259
|
+
<tr><td data-label="Module"><code>mcp/tools.ts</code></td><td data-label="Contents"><code>TOOLS</code> and <code>environmentNotes</code> (working directory, run and memory folders, configured test case systems, suite defaults, timeouts, the profile, and the names, never values, of keys set in the environment). Each tool reports <code>ToolEvent</code>s (run-start/event/done, suite-start/event/done, info, <code>agent</code> for a nested coding or healing session's events, <code>card</code> for a result panel) to whoever shows them. <code>ToolContext</code> carries <code>session</code> (<code>shell</code>, <code>once</code> for <code>forgeqe run</code>, <code>server</code> for <code>forgeqe mcp</code>), <code>waitForUser</code> and <code>ask</code> when a person can answer, and <code>openSession</code> so tests can script the nested agent runtime sessions</td></tr>
|
|
260
|
+
<tr><td data-label="Module"><code>cases/save.ts</code></td><td data-label="Contents"><code>save_test_cases</code>: <code>saveAdoCases</code> creates Test Case work items (<code>adoStepsXml</code> writes <code>Microsoft.VSTS.TCM.Steps</code> the way <code>adoCases</code> reads it) linked to the story with <code>TestedBy-Reverse</code> in its area and iteration; <code>saveJiraCases</code> creates issues (type Test by default) with the steps in the description and an issue link. Both reuse a case already linked to the story under the same title, then compare with the story's scope (<code>cases/scope.ts</code>: <code>test_cases</code> maps an area path or project to a plan, suite, area or JQL filter, values checked before they reach WIQL or JQL, at most <code>MAX_SCOPE</code> cases read, steps only for the <code>shortlist</code>): the same steps are <code>reuse</code>, a case adding steps is <code>extends</code> with its <code>insert</code>; nothing is written to an existing case there. <code>planLinks</code> checks ids, type and project before <code>link_test_case</code> or <code>update_test_case</code>'s <code>story</code> asks; <code>insertSteps</code> applies an <code>insert</code>. <code>saveTestrailCases</code>, <code>saveZephyrCases</code>, Xray mode in <code>saveJiraCases</code> (<code>createXrayTest</code>, <code>setXraySteps</code> in <code>cases/xray.ts</code>), <code>saveAdoCasesInArea</code> and <code>saveJiraCasesInProject</code> for cases with no story, and <code>existingCases</code> for <code>check_test_cases</code>' <code>against</code>. <code>cases/fields.ts</code> checks <code>new_cases</code>; <code>cases/adodata.ts</code> writes shared steps references and parameters; <code>cases/staleness.ts</code> reads a story's history; <code>cases/retire.ts</code> retires a case; <code>cases/jirareadiness.ts</code> is release readiness for Jira. <code>cases/caseindex.ts</code> keeps a project's index of scope cases' steps; <code>cases/bulk.ts</code> prepares several changes for one question (apply_case_changes and the web gateway <code>web/testcases.ts</code>); <code>cases/targets.ts</code> names a case's system by its id; <code>cases/changelog.ts</code>, <code>cases/trace.ts</code> and <code>cases/proposals.ts</code> keep the project's change log, criteria trace and pending proposals; <code>cases/requirementsfile.ts</code> reads Requirements Agent's requirements.json; <code>cases/scopecheck.ts</code> checks the settings Settings saves and tries a test_cases line. On unless <code>sources.save_cases: false</code>; <code>environmentNotes</code> tells the agent which</td></tr>
|
|
261
|
+
<tr><td data-label="Module"><code>mcp/commands.ts</code></td><td data-label="Contents"><code>COMMAND_TOOLS</code>, one tool per CLI command, appended to <code>TOOLS</code>. <code>write_test</code> runs the coding loop (<code>runCodeAgent</code>) and <code>heal_tests</code> runs <code>runHeal</code>, forwarding their events as <code>agent</code> events and ending with a card; each opens its own agent runtime server on port 0, so it nests inside the brain's session. <code>monitor</code>: <code>round</code> (one <code>runMonitor --once</code>, refused while a background monitor uses the folder), <code>start</code>/<code>stop</code>/<code>status</code> (background monitors, only in <code>shell</code> and <code>server</code> sessions), <code>test_alerts</code>. <code>browser_run</code> takes <code>purpose</code> (<code>test</code> or <code>task</code>); <code>taskReason</code> treats a <code>task</code>, or a run that starts on, ends on, or names a configured source system's host (Azure DevOps, Jira, Confluence, TestRail, Zephyr, qTest, Xray), as a task: it writes <code>task.json</code> (<code>TASK_FILE</code>) in the run folder, returns no <code>write_test</code> next step, and <code>write_test</code> refuses that folder. <code>browser_run</code> also takes <code>resume_from</code> (a failed run's folder or name, read by <code>loadResume</code> in <code>run.ts</code>) and, after a failure with resume steps, returns them with a <code>next_step</code> naming the folder; the brain's prompt says to retry with it and say what to do differently. <code>logins</code>: <code>remember</code> (session logins), list (configured and remembered), clear (a saved session, and a remembered login's credentials and session file), and <code>sign_in</code> through <code>signIn</code> and <code>ctx.waitForUser</code> (refused without it). <code>forgeqe_setup</code>: profiles, MCP servers, <code>docsAbout</code> (README and HOW_TO_USE split at headings and scored against the topic, since the agent's <code>external_directory</code> rule keeps it out of the package folder), <code>install_engine</code>, <code>init</code>, <code>skills</code> (<code>op</code> list, show, or new: <code>newSkill</code> into the project's or the user's skills folder)</td></tr>
|
|
262
|
+
<tr><td data-label="Module"><code>card.ts</code></td><td data-label="Contents"><code>Card</code> (<code>status</code>, <code>title</code>, <code>stats</code>, <code>body</code>) and <code>cardText</code>. <code>codeCard</code>, <code>healCard</code>, and <code>roundCard</code> build cards from the same lines as the terminal summaries</td></tr>
|
|
263
|
+
<tr><td data-label="Module"><code>mcp/server.ts</code></td><td data-label="Contents">JSON-RPC for MCP by hand: <code>initialize</code> (protocol 2025-06-18, 2025-03-26, 2024-11-05, with <code>instructions</code>), <code>ping</code>, <code>tools/list</code>, <code>tools/call</code>, <code>notifications/cancelled</code>. <code>serveHttp</code>: Streamable HTTP on 127.0.0.1, checking the bearer token in constant time (<code>tokenMatches</code>) and refusing requests whose <code>Origin</code> is not this machine (<code>originAllowed</code>), so a web page cannot call the tools; tool calls answer as an event stream with a progress notification every 10 s and a keep-alive every 15 s, so the agent runtime's per-call timeout (which resets on progress) never fires during a long suite. <code>serveStdio</code>: newline-delimited JSON-RPC for <code>forgeqe mcp</code>; closing stdin aborts running calls. <code>localToolServer</code>: a server over HTTP with a fresh token and the agent runtime's MCP entry for it, shared by the brain and the healing session</td></tr>
|
|
264
|
+
<tr><td data-label="Module"><code>mcp/git.ts</code></td><td data-label="Contents"><code>pushBranch</code>: finds the default branch (<code>symbolic-ref refs/remotes/&lt;remote>/HEAD</code>, else <code>ls-remote --symref</code>), refuses it and <code>main</code>/<code>master</code>, checks the name with <code>git check-ref-format</code>, and runs <code>git push --set-upstream &lt;remote> HEAD:refs/heads/&lt;name></code> without force. <code>setCiSecret</code>: <code>gh secret set NAME</code> with the value on stdin, or <code>az pipelines variable create|update --secret true</code> with the value in <code>AZURE_DEVOPS_EXT_PIPELINE_VAR_&lt;NAME></code>; the value is scrubbed from any error</td></tr>
|
|
265
|
+
<tr><td data-label="Module"><code>auth/mcpOAuth.ts</code></td><td data-label="Contents">Browser sign-in to an MCP server (<code>oauthSignIn</code>): protected-resource metadata (RFC 9728) → authorization server metadata (RFC 8414, issuer checked, S256 required) → dynamic client registration as a public client (RFC 7591) → the authorization page with PKCE, <code>state</code> and <code>resource</code> → the code on a one-time <code>Bun.serve</code> listener on <code>127.0.0.1:0</code> (<code>/callback</code>, state compared in constant time, plain-text page) → token exchange. Every endpoint must be https. The grant is one credential-store entry (<code>FORGEQE_MCP_OAUTH_&lt;SYSTEM></code>), with <code>mcp:&lt;system></code> in auth.json. <code>refreshMcpSignIns</code> runs when a session opens (<code>openBrain</code>), for <code>forgeqe mcp list</code> and when the web app starts: it clears <code>FORGEQE_&lt;SYSTEM>_MCP_OAUTH</code>, then exports a current access token (renewed within a minute of expiry) only for the server the settings name now (<code>oauthResource</code>, <code>auth/oauthNames.ts</code>). <code>external.ts</code> and <code>integrations.ts</code> use that variable when no token variable is set</td></tr>
|
|
266
|
+
<tr><td data-label="Module"><code>web/signins.ts</code></td><td data-label="Contents">Settings' sign-in for every system but Copilot: <code>signIn</code> with the page as its terminal (one job at a time, an id of <code>SIGNIN_SYSTEMS</code> only, answers only to the question waiting, typed secrets scrubbed from lines, links only https). Routes <code>/api/signin</code>, <code>/api/signin/answer</code>, <code>/api/signin/cancel</code>, <code>/api/signout</code></td></tr>
|
|
267
|
+
<tr><td data-label="Module"><code>mcp/external.ts</code></td><td data-label="Contents"><code>externalMcp</code> turns <code>sources:</code> and <code>mcp:</code> into agent runtime MCP entries: <code>azure_devops</code> (<code>npx -y @azure-devops/mcp@2.11.0 &lt;org> -a pat|azcli -d &lt;every group in ADO_GROUPS></code>, with <code>hints</code> from <code>adoHints</code>: each prefix's words and keywords, and the <code>mcp_domains</code> prefixes on every turn), <code>atlassian</code> (<code>uvx mcp-atlassian</code> with <code>JIRA_URL</code> and <code>JIRA_USERNAME</code> + <code>JIRA_API_TOKEN</code> or <code>JIRA_PERSONAL_TOKEN</code>, plus <code>CONFLUENCE_*</code> when <code>sources.confluence</code> is set, <code>TOOLSETS=all</code>; or the hosted Rovo server at <code>mcp.atlassian.com/v2/mcp</code> with Basic auth, which also covers Confluence on the same site), <code>confluence</code> (<code>uvx mcp-atlassian</code> for Confluence alone when Jira's server doesn't cover it), the servers of <code>integrations:</code> (<code>mcp/integrations.ts</code>: <code>integrationsConfig</code> checks each block, <code>integrationServers</code> gives <code>gitlab</code> (remote <code>&lt;url>/api/v4/mcp</code>, Bearer <code>{env:token_env}</code>), <code>postman</code> (remote <code>mcp.postman.com</code> or <code>mcp.eu.postman.com</code>), and <code>browserstack</code>, <code>azure</code> (<code>--read-only</code> by default, <code>--namespace</code> per service), <code>dataverse</code> and <code>sentry</code> started by <code>npx</code> with credentials as <code>{env:}</code> references), and every <code>mcp:</code> server, which replaces a built-in one of the same name. Secrets are <code>{env:NAME}</code> references that the agent runtime substitutes; values that must be derived (base64 of <code>forgeqe:&lt;PAT></code> for Azure DevOps, of <code>email:token</code> for Rovo) are put in <code>FORGEQE_*</code> variables of ForgeQE's own environment before the agent runtime server starts. A system whose server can't start here (no npx or uvx, missing token, Azure DevOps Server, Rovo on Server/DC) is listed with the reason. The servers get a 120 s timeout, which also covers the first <code>npx</code>/<code>uvx</code> download</td></tr>
|
|
268
|
+
<tr><td data-label="Module"><code>cases/dashboards.ts</code></td><td data-label="Contents"><code>createAdoDashboard</code> for the <code>create_ado_dashboard</code> tool, since Microsoft's Azure DevOps MCP server has no dashboard or saved-query tools: runs each widget's WIQL once (<code>$top=1</code>) so a bad query fails before anything is written, saves it under <code>Shared Queries/ForgeQE</code> (creating the folder, PATCHing a query of the same name), then POSTs the dashboard (<code>7.1-preview.3</code>, team-scoped when a team is given) with count tiles (<code>QueryScalarWidget</code>, <code>{queryId, queryName}</code>) across the top, then work item lists (<code>WitViewWidget</code>, <code>{query: {queryId, queryName}}</code>) and markdown two to a row. Widget <code>settings</code> are JSON strings, as the API requires</td></tr>
|
|
269
|
+
<tr><td data-label="Module"><code>cases/adopr.ts</code></td><td data-label="Contents"><code>createAdoPullRequest</code> for the <code>create_ado_pull_request</code> tool, since the default MCP tool groups leave out <code>repositories</code> and <code>query_api</code> only reads: <code>branchRef</code> checks each branch against git's ref-name rules before anything is sent, the repository is read by name or id, both refs must exist (<code>refs?filter=heads/…</code>), an active pull request between the same refs is returned (<code>existing: true</code>) instead of a second one, then it POSTs <code>pullrequests</code> with a default title of "Merge <source> into <target>"</td></tr>
|
|
270
|
+
<tr><td data-label="Module"><code>cases/wiki.ts</code></td><td data-label="Contents"><code>writeAdoWikiPage</code> for the <code>write_ado_wiki_page</code> tool, since the MCP server's wiki tools need an existing wiki: picks the named wiki or the project wiki, creating <code>&lt;Project>.wiki</code> (<code>type: projectWiki</code>, project id from <code>_apis/projects</code>) when the project has none, PUTs missing parent pages empty, then PUTs the page with <code>If-Match</code> set to its ETag when it already exists. Code wikis get <code>versionDescriptor</code> for their first published branch</td></tr>
|
|
271
|
+
<tr><td data-label="Module"><code>cases/api.ts</code></td><td data-label="Contents"><code>queryApi</code> for the <code>query_api</code> tool: GET under the Azure DevOps organization (and its <code>vsrm</code>/<code>vssps</code>/<code>almsearch</code> hosts, with <code>api-version=7.1</code> added) or the Jira site, and Xray Cloud GraphQL queries (mutations refused). Absolute URLs on other hosts are refused, so credentials only go to their own system. Answers over 40,000 characters are cut</td></tr>
|
|
276
272
|
</tbody>
|
|
277
273
|
</table></div>
|
|
278
274
|
<p>After the session opens, <code>openBrain</code> reads <code>client.mcp.status()</code> and reports each external server as connected, failed (with the error), or needing a browser sign-in; skipped systems are reported with their reason. The agent's session notes list the servers and say that a server whose tools are missing did not connect, so the agent falls back to <code>query_api</code>.</p>
|
|
@@ -281,59 +277,59 @@
|
|
|
281
277
|
<p><strong>Callers.</strong> The TUI opens the brain on the first message and keeps it for the session, so follow-up answers and "write a test for that run" have context; <code>/profile</code> (or Tab) switches the model in the same session before the next message (<code>Brain.setModel</code>: one agent runtime holds every usable profile, and each prompt names its model), with a one-line note to the agent; a profile the session does not offer (a custom agent's, <code>code.model</code>, one that could not answer when it opened) closes it and keeps the turns so far: the next agent session's first prompt is <code>carryOver(turns, text)</code>, the last 20 turns with remembered secrets redacted, so switching models does not lose the conversation. It renders <code>card</code> events as result panels and <code>agent</code> events as <code>⚙</code> and test lines with their own token counter, and its <code>waitForUser</code> pushes the prompt into the transcript and opens a <strong>Your turn</strong> dialog (Done, continue / Cancel); opening another dialog or Esc settles it as cancelled. <code>forgeqe run</code> opens the brain for one request, prints tool events (cards as <code>cardText</code>) and the reply as plain lines, waits for Enter in <code>waitForUser</code> when stdin is a terminal, and exits 0 done, 1 failed, 2 stopped, 3 needs input. <code>forgeqe run --direct</code> and a missing agent runtime run <code>browser_run</code> directly. <code>forgeqe mcp</code> serves the same <code>TOOLS</code> on stdio and logs <code>ToolEvent</code>s to stderr; it has no <code>waitForUser</code>. <code>forgeqe chat --jsonl</code> (<code>src/chat/jsonl.ts</code>) is the TUI's agent for a program: like the TUI, it opens the brain on the first message, keeps it for every message, runs with <code>session: "shell"</code>, runs Tier 0 requests as recorded before asking the agent, and continues an earlier conversation with <code>carryOver</code> (<code>--carry-over FILE</code>, with its own reason sentence); like <code>forgeqe run</code>, it takes its flags (<code>repoFlag</code>, <code>memoryFlags</code>, …) and writes one session log; like <code>forgeqe mcp</code>, it is a machine interface, with stdout claimed for the protocol and every other print sent to stderr. It writes each <code>CodeEvent</code> and <code>ToolEvent</code> unchanged as a JSON line (<code>agent</code>, <code>tool</code>), turns <code>ask</code> and <code>waitForUser</code> into <code>ask</code> and <code>wait</code> lines answered on stdin, ends every turn with one <code>turn_done</code>, and passes every outgoing string through <code>redactSecrets</code> and the values of <code>privateEnvNames</code> and profile keys. The protocol is in HOW_TO_USE.md. <code>forgeqe start</code>, <code>forgeqe mcp</code>, and <code>forgeqe chat</code> stop background monitors when they return, because <code>src/index.ts</code> calls <code>process.exit</code>.</p>
|
|
282
278
|
<h2 id="tool-scope-srcmcpscopets-srccapabilities"><a href="#tool-scope-srcmcpscopets-srccapabilities" class="hash">#</a>Tool scope (<code>src/mcp/scope.ts</code>, <code>src/capabilities</code>)</h2>
|
|
283
279
|
<p>Every model call carries the definitions of the tools the agent has, so the agent does not get every tool on every turn. The registry (<code>capabilities/registry.ts</code>) groups the tools into capabilities. Each capability has its tools, the requirements it needs (a model, a runtime, an app kind, a tracker), and keywords.</p>
|
|
284
|
-
<div class="tbl"><table>
|
|
280
|
+
<div class="tbl tbl--cols-2"><table>
|
|
285
281
|
<thead>
|
|
286
282
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
287
283
|
</thead>
|
|
288
284
|
<tbody>
|
|
289
|
-
<tr><td><code>mcp/scope.ts</code></td><td><code>CapabilityScope</code>, one per agent session. <code>beginTurn(text)</code> picks the turn's capabilities and returns the per-prompt <code>tools</code> switches (<code>forgeqe_&lt;tool>: true|false</code>). The picks are: the core (<code>setup-help</code>, <code>test-apps</code>), <code>agent.capabilities.always</code>, the ones <code>use_capabilities</code> asked for, those used in the last <code>STICKY_TURNS</code> (3) turns, and up to <code>MAX_PICKED</code> (4) from <code>scoreRequest</code>. <code>scoreRequest</code> makes no model call: it matches keywords and tool names, URLs (the browser), issue keys (test cases), and the names of the active environment's apps (by kind). A capability whose required apps or system are missing (<code>usableCapabilities</code>) is not picked from words alone, and nothing is picked from <code>agent.capabilities.off</code>. When nothing matches, <code>browser-goals</code> is the fallback. <code>request</code> (from <code>use_capabilities</code>) refuses unknown and switched-off ids and queues the added ones in <code>takePending</code>. <code>listedTools</code> is the list for MCP clients. <code>capabilityIndex</code> is the short list of capabilities in the agent's prompt. Other MCP servers' <code>ToolGroup</code>s are switched the same way: <code>always</code> ones every turn, a group whose keywords match the request as whole words (they do not count against <code>MAX_PICKED</code>; when the request names a system, by a group's <code>system</code> words such as "github" or "azure devops", only that system's groups), the ones <code>use_capabilities</code> asked for, and one whose tool ran in the last turns (<code>used</code> takes the runtime name, from <code>onToolResult</code>). <code>toggles</code> adds a switch per tool of each group; opencode applies a prompt's <code>tools</code> to MCP tools by name, so a switched-off group's definitions are not sent (tests/brain-groups.e2e.test.ts)</td></tr>
|
|
290
|
-
<tr><td><code>mcp/discover.ts</code></td><td><code>discoverTools</code> asks every server for its tools (initialize, tools/list) as the runtime starts it: a local command through <code>spawnPlan</code> (an argument list; cmd.exe quoting on Windows) with its <code>{env:}</code> values filled in and ForgeQE's private variables left out, or a remote address (streamable HTTP, JSON or SSE). The list is kept in <code>~/.forgeqe/cache/mcp-tools/&lt;hash>.json</code> (mode 0600) for <code>LIST_TTL_MS</code> (a week); the hash is of what the server runs and the names of its variables, never a value or the server's name. <code>serverGroups</code> groups each list; a server that does not answer is left out, so its tools stay on</td></tr>
|
|
291
|
-
<tr><td><code>mcp/toolgroups.ts</code></td><td><code>groupTools</code> makes a server's groups from its tool names alone. Words of a name are split (snake and camel case), made singular, and verbs and fillers dropped; two words that only ever come together are one ("pull request"). A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over <code>MAX_GROUP</code> tools or <code>MAX_GROUP_TOKENS</code>, each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch-all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and <code>SPELLED</code> (wit: work item); broad words (<code>WEAK</code>) are never one alone. A server under <code>SMALL_SERVER_TOKENS</code> is one group, always on. <code>ServerHints</code> only add titles, keywords and the always-on groups (<code>mcp/adogroups.ts</code> for Azure DevOps)</td></tr>
|
|
292
|
-
<tr><td><code>mcp/lazy.ts</code></td><td>Other systems' servers started only when a turn needs them. <code>deferrable</code> names the servers with tool groups; <code>openBrain</code> gives the runtime their entries with <code>enabled: false</code> (<code>deferredConfig</code>), so a chat starts none of them and signs in nowhere. <code>ServerStarter.ensure</code> runs after <code>beginTurn</code> and after <code>use_capabilities</code> added groups: each server whose group is on (<code>serverOfGroup</code>: the server that prefixes all its tools) is started once through the runtime (<code>connectMcp</code>, <code>client.mcp.connect</code>; the runtime restarts a server asked twice), with "Connecting to …" and connected or why not (<code>statusWhy</code>, one line). A failed one is not asked again in that chat. A server without groups (not listed, or <code>FORGEQE_TOOL_SCOPE=off</code>) starts with the chat, as its tools are on every turn</td></tr>
|
|
293
|
-
<tr><td><code>mcp/captools.ts</code></td><td><code>use_capabilities</code>: adds capabilities for the rest of the session</td></tr>
|
|
294
|
-
<tr><td><code>mcp/routing.ts</code></td><td><code>createRouter</code> passes every ForgeQE tool that runs to <code>scope.used</code></td></tr>
|
|
295
|
-
<tr><td><code>brain/index.ts</code></td><td><code>ask</code> starts each turn with <code>beginTurn</code> and prompts with its switches. When <code>use_capabilities</code> added capabilities during the turn, it continues the same request with them, at most <code>MAX_SCOPE_CONTINUATIONS</code> (2) times. <code>FORGEQE_TOOL_SCOPE=off</code> turns the scope off</td></tr>
|
|
296
|
-
<tr><td><code>mcp/server.ts</code></td><td>With a scope, <code>tools/list</code> returns <code>listedTools</code>, the server advertises <code>listChanged</code>, and after a call that added capabilities it sends <code>notifications/tools/list_changed</code>. <code>forgeqe mcp --all-tools</code> serves without a scope</td></tr>
|
|
297
|
-
<tr><td><code>context.ts</code>, <code>agents.ts</code></td><td><code>forgeqe context</code>: the fixed context and what each capability adds. Budgets: 10000 tokens for the forgeqe agent's fixed context, 2500 per capability (<code>CAPABILITY_TOOL_BUDGET</code>)</td></tr>
|
|
285
|
+
<tr><td data-label="Module"><code>mcp/scope.ts</code></td><td data-label="Contents"><code>CapabilityScope</code>, one per agent session. <code>beginTurn(text)</code> picks the turn's capabilities and returns the per-prompt <code>tools</code> switches (<code>forgeqe_&lt;tool>: true|false</code>). The picks are: the core (<code>setup-help</code>, <code>test-apps</code>), <code>agent.capabilities.always</code>, the ones <code>use_capabilities</code> asked for, those used in the last <code>STICKY_TURNS</code> (3) turns, and up to <code>MAX_PICKED</code> (4) from <code>scoreRequest</code>. <code>scoreRequest</code> makes no model call: it matches keywords and tool names, URLs (the browser), issue keys (test cases), and the names of the active environment's apps (by kind). A capability whose required apps or system are missing (<code>usableCapabilities</code>) is not picked from words alone, and nothing is picked from <code>agent.capabilities.off</code>. When nothing matches, <code>browser-goals</code> is the fallback. <code>request</code> (from <code>use_capabilities</code>) refuses unknown and switched-off ids and queues the added ones in <code>takePending</code>. <code>listedTools</code> is the list for MCP clients. <code>capabilityIndex</code> is the short list of capabilities in the agent's prompt. Other MCP servers' <code>ToolGroup</code>s are switched the same way: <code>always</code> ones every turn, a group whose keywords match the request as whole words (they do not count against <code>MAX_PICKED</code>; when the request names a system, by a group's <code>system</code> words such as "github" or "azure devops", only that system's groups), the ones <code>use_capabilities</code> asked for, and one whose tool ran in the last turns (<code>used</code> takes the runtime name, from <code>onToolResult</code>). <code>toggles</code> adds a switch per tool of each group; opencode applies a prompt's <code>tools</code> to MCP tools by name, so a switched-off group's definitions are not sent (tests/brain-groups.e2e.test.ts)</td></tr>
|
|
286
|
+
<tr><td data-label="Module"><code>mcp/discover.ts</code></td><td data-label="Contents"><code>discoverTools</code> asks every server for its tools (initialize, tools/list) as the runtime starts it: a local command through <code>spawnPlan</code> (an argument list; cmd.exe quoting on Windows) with its <code>{env:}</code> values filled in and ForgeQE's private variables left out, or a remote address (streamable HTTP, JSON or SSE). The list is kept in <code>~/.forgeqe/cache/mcp-tools/&lt;hash>.json</code> (mode 0600) for <code>LIST_TTL_MS</code> (a week); the hash is of what the server runs and the names of its variables, never a value or the server's name. <code>serverGroups</code> groups each list; a server that does not answer is left out, so its tools stay on</td></tr>
|
|
287
|
+
<tr><td data-label="Module"><code>mcp/toolgroups.ts</code></td><td data-label="Contents"><code>groupTools</code> makes a server's groups from its tool names alone. Words of a name are split (snake and camel case), made singular, and verbs and fillers dropped; two words that only ever come together are one ("pull request"). A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over <code>MAX_GROUP</code> tools or <code>MAX_GROUP_TOKENS</code>, each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch-all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and <code>SPELLED</code> (wit: work item); broad words (<code>WEAK</code>) are never one alone. A server under <code>SMALL_SERVER_TOKENS</code> is one group, always on. <code>ServerHints</code> only add titles, keywords and the always-on groups (<code>mcp/adogroups.ts</code> for Azure DevOps)</td></tr>
|
|
288
|
+
<tr><td data-label="Module"><code>mcp/lazy.ts</code></td><td data-label="Contents">Other systems' servers started only when a turn needs them. <code>deferrable</code> names the servers with tool groups; <code>openBrain</code> gives the runtime their entries with <code>enabled: false</code> (<code>deferredConfig</code>), so a chat starts none of them and signs in nowhere. <code>ServerStarter.ensure</code> runs after <code>beginTurn</code> and after <code>use_capabilities</code> added groups: each server whose group is on (<code>serverOfGroup</code>: the server that prefixes all its tools) is started once through the runtime (<code>connectMcp</code>, <code>client.mcp.connect</code>; the runtime restarts a server asked twice), with "Connecting to …" and connected or why not (<code>statusWhy</code>, one line). A failed one is not asked again in that chat. A server without groups (not listed, or <code>FORGEQE_TOOL_SCOPE=off</code>) starts with the chat, as its tools are on every turn</td></tr>
|
|
289
|
+
<tr><td data-label="Module"><code>mcp/captools.ts</code></td><td data-label="Contents"><code>use_capabilities</code>: adds capabilities for the rest of the session</td></tr>
|
|
290
|
+
<tr><td data-label="Module"><code>mcp/routing.ts</code></td><td data-label="Contents"><code>createRouter</code> passes every ForgeQE tool that runs to <code>scope.used</code></td></tr>
|
|
291
|
+
<tr><td data-label="Module"><code>brain/index.ts</code></td><td data-label="Contents"><code>ask</code> starts each turn with <code>beginTurn</code> and prompts with its switches. When <code>use_capabilities</code> added capabilities during the turn, it continues the same request with them, at most <code>MAX_SCOPE_CONTINUATIONS</code> (2) times. <code>FORGEQE_TOOL_SCOPE=off</code> turns the scope off</td></tr>
|
|
292
|
+
<tr><td data-label="Module"><code>mcp/server.ts</code></td><td data-label="Contents">With a scope, <code>tools/list</code> returns <code>listedTools</code>, the server advertises <code>listChanged</code>, and after a call that added capabilities it sends <code>notifications/tools/list_changed</code>. <code>forgeqe mcp --all-tools</code> serves without a scope</td></tr>
|
|
293
|
+
<tr><td data-label="Module"><code>context.ts</code>, <code>agents.ts</code></td><td data-label="Contents"><code>forgeqe context</code>: the fixed context and what each capability adds. Budgets: 10000 tokens for the forgeqe agent's fixed context, 2500 per capability (<code>CAPABILITY_TOOL_BUDGET</code>)</td></tr>
|
|
298
294
|
</tbody>
|
|
299
295
|
</table></div>
|
|
300
296
|
<p>The tools stay registered with the agent runtime for the whole session; only the switches change, so the conversation is never restarted. <code>tests/scope.test.ts</code> covers routing, gating, sticky turns, config, hostile ids, and the MCP list change. <code>tests/brain.e2e.test.ts</code> checks against the real agent runtime that a turn sees only its tools and that <code>use_capabilities</code> continues the request.</p>
|
|
301
297
|
<h2 id="quill-the-coding-agent-srccode"><a href="#quill-the-coding-agent-srccode" class="hash">#</a>Quill, the coding agent (<code>src/code</code>)</h2>
|
|
302
298
|
<p>The test-writing loop used by <code>forgeqe code</code>, by <code>forgeqe suite</code> with a repo, and by the <code>write_test</code> tool, which is how ForgeQE's agent writes tests in the shell and <code>forgeqe run</code>. It uses the agent runtime SDK and the runtime binary that <code>code/runtime.ts</code> finds.</p>
|
|
303
|
-
<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><code>run dir ──► handoff.ts ──► handoff.md ──► Quill session (forgeqe-test agent) ─► test file + command
|
|
304
|
-
▲ │
|
|
305
|
-
├──── fix prompt: exit code + output ◄── testrun.ts (ForgeQE runs it, watches for a browser)
|
|
306
|
-
│ │ exit 0 with a browser
|
|
307
|
-
└──── review issues ◄──────────────────── review.ts (forgeqe-review agent, read-only)
|
|
308
|
-
</code></pre></div>
|
|
309
|
-
<div class="tbl"><table>
|
|
299
|
+
<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">run dir ──► handoff.ts ──► handoff.md ──► Quill session (forgeqe-test agent) ─► test file + command
|
|
300
|
+
</span></span><span class="ln"><span class="cmd"> ▲ │
|
|
301
|
+
</span></span><span class="ln"><span class="cmd"> ├──── fix prompt: exit code + output ◄── testrun.ts (ForgeQE runs it, watches for a browser)
|
|
302
|
+
</span></span><span class="ln"><span class="cmd"> │ │ exit 0 with a browser
|
|
303
|
+
</span></span><span class="ln"><span class="cmd"> └──── review issues ◄──────────────────── review.ts (forgeqe-review agent, read-only)
|
|
304
|
+
</span></span></code></pre></div>
|
|
305
|
+
<div class="tbl tbl--cols-2"><table>
|
|
310
306
|
<thead>
|
|
311
307
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
312
308
|
</thead>
|
|
313
309
|
<tbody>
|
|
314
|
-
<tr><td><code>handoff.ts</code></td><td>Builds <code>handoff.md</code> from <code>run.json</code>, <code>workflow.yaml</code>, and the page-memory files for every page the run visited: the result and final URL labelled as one run's live data, the judge's reasoning, the browser the run used (<code>run.json</code> <code>browser</code>), steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step (<code>process.env.NAME</code> for secrets), best and ranked locators with confidence (at most <code>MAX_LOCATORS</code> = 4, under <code>MIN_CONFIDENCE</code> = 30% dropped unless nothing else is left), and a table of each page's other elements (up to <code>MAX_ELEMENTS</code> = 8 of <code>MAX_PAGES</code> = 4 pages; elements whose best locator a step used are left out, the rest need an interaction or 70% confidence; no table when nothing is left; the table is skipped when a replay pass has page snapshots), and the browser agent's checks (<code>workflow.yaml</code> <code>checks</code>), each with the locator the replay matched on the last page when the counts agree</td></tr>
|
|
315
|
-
<tr><td><code>prompt.ts</code></td><td><code>TEST_RULES</code> (shared with healing: browser set up like ForgeQE's, the debugging steps when the test's page differs, generic page objects, data in tests, rules not values, pop-ups handled wherever they appear, every A/B version of a page handled), the test agent's system prompt (start from the notes, port the replay script, assert the handoff's checks and nothing else, never guess locators, reuse and extend page objects, do not run the test: ForgeQE runs it; look at the live page with the <code>live_browser_*</code> tools once a step has failed), the result JSON schema (<code>status</code>, <code>blocked_reason</code>, <code>remote_browser</code>, <code>test_file</code>, <code>command</code>, <code>reused</code>, <code>changed</code>, <code>notes</code>), and the prepare prompt (notes of at most 25 lines), the first (with the repo notes, naming the live browser's output folder when it is on), fix (the short output plus the saved log and page snapshot), missing-command, no-browser, blocked-challenge, stall, and review-fix prompts</td></tr>
|
|
316
|
-
<tr><td><code>review.ts</code></td><td>The <code>forgeqe-review</code> agent: prompt, <code>REVIEW_SCHEMA</code> (<code>approved</code>, <code>summary</code>, <code>issues[{file, problem, fix}]</code>), and <code>openReviewer</code>, a second, read-only Quill session opened on the first passing run and kept for later attempts. <code>reviewPrompt</code> inlines the checks from the handoff and the changed files (<code>changedFiles</code>: up to 12 KB each, 40 KB in all), so the reviewer reads nothing again. It may load Quill's skills and judges the test against their conventions too</td></tr>
|
|
317
|
-
<tr><td><code>runtime.ts</code></td><td>Maps the <code>llms.json</code> profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With <code>resume</code>, <code>openSession</code> reopens that session with <code>session.get</code> (the runtime keeps sessions on disk, so their messages survive a restart) and sets <code>resumed</code>; when it is gone, a new one is created. <code>FailedCommands</code> counts each exact shell command the agent runs that exits non-zero; at <code>stallAfter</code> failures of one command the turn is aborted and <code>prompt()</code> returns <code>stalled</code> (<code>command</code>, <code>count</code>, the last 40 lines of output). <code>resetStall()</code> clears the counts <code>READ_AGENT</code> (<code>forgeqe-read</code>) has the test agent's instructions with <code>edit</code> and <code>live_*</code> denied; the config builder takes it in <code>agents</code>, and a prompt picks it with <code>agent</code>. <code>PromptOptions</code> also carries <code>structured</code> (off: no JSON answer) and <code>tools</code> (per-prompt switches, used only for <code>live_*</code>: the agent runtime keeps them for later prompts, and <code>true</code> would override the agent's path rules for file tools)</td></tr>
|
|
318
|
-
<tr><td><code>livebrowser.ts</code></td><td><code>liveBrowser(runDir)</code>: the <code>live</code> MCP server for the agent, Microsoft's Playwright MCP (<code>npx -y @playwright/mcp@0.0.84 --config …</code>), with a config written to <code>&lt;run>/live-browser/config.json</code> from <code>run.json</code> <code>browser</code> (channel or executable, headless, viewport, locale, time zone, user agent) and snapshots and screenshots saved in that folder. <code>null</code> without <code>npx</code>. The loop switches its tools (<code>live_*</code>) on per prompt once a step fails</td></tr>
|
|
319
|
-
<tr><td><code>pagefacts.ts</code></td><td>What a step met that a test handles differently: <code>frameSelector</code> for a step's frame, <code>isAdStep</code> (an ad host's frame, or <code>#google_vignette</code>), and <code>AD_HOSTS</code> / <code>AD_ROUTE</code> for blocking them. <code>handoff.ts</code> renders <code>covered_by</code>, <code>bypass</code> and <code>frame</code> under each step and adds "What covered the page before a click", "Ads on these pages", and "State the run started with" (from <code>run.json</code> <code>sessions_restored</code>); <code>replay.ts</code> skips ad steps and reaches frame steps through <code>frameLocator</code></td></tr>
|
|
320
|
-
<tr><td><code>replay.ts</code></td><td>The replay check. <code>replayScript(steps)</code> turns <code>workflow.yaml</code> into <code>flow.mjs</code>, one <code>step(n, action, run)</code> per recorded step, with each locator rebuilt from its type and value (<code>locatorExpr</code>), text typed with <code>pressSequentially</code>, secrets read with <code>env(NAME)</code> and one-time codes made with <code>totp(NAME)</code>; actions with no Playwright equivalent are marked "not replayed". <code>alternatives.mjs</code> holds each step's other locators. <code>ensurePlaywright</code> installs <code>playwright-core</code> (<code>PLAYWRIGHT_VERSION</code>) with Bun into <code>~/.forgeqe/tools</code> and removes older versions. <code>replayRun</code> writes a runner that launches the run's browser (<code>replayOptions</code>: channel or executable, headless, viewport, locale, time zone, user agent, extra headers), runs each step with a 10 s timeout, keeps an aria snapshot of each page after each step that worked (by host and path, the latest one; the final page's taken once two snapshots a second apart agree, up to 6 s, since a page can change its URL at once and re-render later) and writes them as <code>&lt;setup>-page-N.aria.yml</code> in <code>ReplayPass.pages</code>, and on a failure saves a screenshot and an aria snapshot, counts the other locators' matches, and records console errors, failed requests, and HTTP errors; three failures in a row stop it. It runs under Bun with the session logins' env, 180 s per pass. The first pass uses Playwright's default launch; if it does not reach the run's final page (host and path), a second pass leaves out <code>--enable-automation</code> and adds <code>--disable-blink-features=AutomationControlled</code>. <code>replaySection</code> renders the handoff section (the page snapshots listed; a pass whose failed steps were followed by steps that all worked and that reached the final page, <code>reachedPastFailures</code>, reads as a working script with those steps to judge, and <code>replayFailed</code> is false for it so the live browser stays off): each pass, the failed steps with Playwright's reason, the page, the open dialogs from the snapshot, the other locators' matches, and the saved files, and the launch settings to copy when only the second pass got through. After the last step the runner looks up each recorded check on the page (<code>findCheck</code>: a visible exact heading, then exact text, then a looser heading or text, then a form field holding the value) and returns its locator, match count, and up to 3 containers in <code>ReplayPass.checks</code>; for a heading match, <code>sectionOf</code> adds <code>section</code> (the element <code>aria-labelledby</code> the heading, else the <code>section</code>/<code>article</code>/region it heads, else the element after it or after its only-child wrapper) with a stable locator (test id, id, or <code>aria-label</code>, else empty) and its visible link and list item counts</td></tr>
|
|
321
|
-
<tr><td><code>testrun.ts</code></td><td>Runs the reported command with <code>sh -c</code> in the repo (<code>CI=1</code>, <code>PLAYWRIGHT_HTML_OPEN=never</code>, no colour), with a timeout. <code>promptOutput</code> makes the prompt's copy of a failed run: <code>withoutPageDumps</code> takes out each "Aria snapshot:" block Playwright puts in a failed assertion, then <code>headAndTail</code> keeps the first 8 KB and the last 4 KB; the full output goes to <code>&lt;run>/test-runs/attempt-N.log</code> and the first page dump to <code>attempt-N-page.aria.yml</code>. While it runs it samples the process tree (<code>ps -A -o pid=,ppid=,args=</code> every 250 ms; <code>Win32_Process</code> every 1.5 s on Windows) for browsers at or below the command that carry an automation switch (<code>--remote-debugging-pipe</code>, <code>--remote-debugging-port</code>, <code>-juggler-pipe</code>, <code>--inspector-pipe</code>, <code>-marionette</code>) and returns them as <code>browsers</code></td></tr>
|
|
322
|
-
<tr><td><code>loop.ts</code> (retries)</td><td>Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a <code>Tried</code> entry: Quill's <code>tried</code> items from its result (else its notes), the failure, and <code>failureFacts</code> of the output (the last "waiting for" locator of Playwright's call log, and the element that "intercepts pointer events"), with <code>again</code> when an earlier entry failed on the same locator. <code>nextAttemptPrompt</code> renders them with <code>triedSection</code>; <code>runHeal</code> keeps the same list from each test's <code>reason</code> and passes it to <code>healNextPrompt</code>. The attempt log, and so <code>scribe-mistakes.jsonl</code>, uses the <code>tried</code> items too</td></tr>
|
|
323
|
-
<tr><td><code>notes.ts</code></td><td><code>scribe-notes.json</code> in <code>memory.dir</code>: per repository, the reading turn's notes (<code>saveNotes</code>), when they were written, and up to 15 tests jobs wrote there (<code>addWrittenTest</code> on approval). <code>readNotes</code> returns nothing past 30 days; <code>notesSection</code> renders them for the first prompt</td></tr>
|
|
324
|
-
<tr><td><code>worktree.ts</code></td><td>The working tree before the job (<code>git status --porcelain -uall</code> with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's <code>forgeqe.yaml</code> and <code>llms.json</code>); the paths the job changed since then; putting back files the job deleted or uncommitted edits it reverted to the committed version; and the protected paths in the form the agent runtime matches them</td></tr>
|
|
325
|
-
<tr><td><code>loop.ts</code></td><td>The attempt loop, stop handling, the replay (<code>code.replay</code>, on by default in <code>forgeqe.yaml</code>: <code>replayRun</code> runs while Quill reads the repo, then the handoff is rebuilt with the replay and the result goes to <code>code.json</code> <code>replay</code>; skipped when <code>canReplay</code> finds no step beyond navigation and no checks), the reading turn (<code>READ_AGENT</code>, no structured answer, with or without a replay; skipped when <code>readNotes</code> has notes for the repo, which go into the first prompt instead; its reply is saved as the notes), the live browser (<code>code.live_browser</code>, on by default in <code>forgeqe.yaml</code>; its tools are off until the replay or a test run fails, a stall, a no-browser run, or a blocked report, and the prompt that switches them on says so), the stall guard (<code>code.stall_after</code>, default 5; counts reset after each ForgeQE test run), the loop guards (<code>code.repeat_after</code>, default 6: <code>RepeatedLooks</code>, look-ups whose answer is unchanged; <code>code.edit_after</code>, default 8: <code>RepeatedEdits</code>, edits to files already changed, and <code>FAILED_EDITS_AFTER</code> (3) edits that failed on lines the file no longer has; all reset after each test run, and each kind of loop gets <code>loopPrompt</code> once, then the job stops; a stop's notes say whether a test ever ran and which files were left changed (<code>stopFacts</code>), and its <code>test</code> event has <code>ran: false</code>), <code>code.json</code> (the run folder is recreated if it is gone, and a failed write is reported without changing the result), and resuming: <code>scribe-session.json</code> in the run folder (session id, repo, stage <code>reading</code>/<code>writing</code>, whether the live browser is on) is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a <code>ProviderAuthError</code>/<code>APIError</code> it stays, and a rerun for the same run and repo passes it as <code>openSession</code>'s <code>resume</code>. The session file also keeps the files the job changed (<code>changed</code>, saved after every edit, read back by <code>carriedPaths</code>). A rerun of a job that stopped while writing opens a fresh session whose first message is <code>brief(carriedOnTask)</code>; one that stopped while reading reopens its session with <code>RESUMED_NOTE</code> plus the first prompt. Either skips the reading turn and takes <code>savedReplay</code> when the replay finished. <code>brief</code> (the job's target or existing test, environment, notes, plan, <code>planFindings</code>, handoff, attempts and files) also starts every later attempt and the session after a raised budget (<code>BUDGET_RAISED</code>)</td></tr>
|
|
310
|
+
<tr><td data-label="Module"><code>handoff.ts</code></td><td data-label="Contents">Builds <code>handoff.md</code> from <code>run.json</code>, <code>workflow.yaml</code>, and the page-memory files for every page the run visited: the result and final URL labelled as one run's live data, the judge's reasoning, the browser the run used (<code>run.json</code> <code>browser</code>), steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step (<code>process.env.NAME</code> for secrets), best and ranked locators with confidence (at most <code>MAX_LOCATORS</code> = 4, under <code>MIN_CONFIDENCE</code> = 30% dropped unless nothing else is left), and a table of each page's other elements (up to <code>MAX_ELEMENTS</code> = 8 of <code>MAX_PAGES</code> = 4 pages; elements whose best locator a step used are left out, the rest need an interaction or 70% confidence; no table when nothing is left; the table is skipped when a replay pass has page snapshots), and the browser agent's checks (<code>workflow.yaml</code> <code>checks</code>), each with the locator the replay matched on the last page when the counts agree</td></tr>
|
|
311
|
+
<tr><td data-label="Module"><code>prompt.ts</code></td><td data-label="Contents"><code>TEST_RULES</code> (shared with healing: browser set up like ForgeQE's, the debugging steps when the test's page differs, generic page objects, data in tests, rules not values, pop-ups handled wherever they appear, every A/B version of a page handled), the test agent's system prompt (start from the notes, port the replay script, assert the handoff's checks and nothing else, never guess locators, reuse and extend page objects, do not run the test: ForgeQE runs it; look at the live page with the <code>live_browser_*</code> tools once a step has failed), the result JSON schema (<code>status</code>, <code>blocked_reason</code>, <code>remote_browser</code>, <code>test_file</code>, <code>command</code>, <code>reused</code>, <code>changed</code>, <code>notes</code>), and the prepare prompt (notes of at most 25 lines), the first (with the repo notes, naming the live browser's output folder when it is on), fix (the short output plus the saved log and page snapshot), missing-command, no-browser, blocked-challenge, stall, and review-fix prompts</td></tr>
|
|
312
|
+
<tr><td data-label="Module"><code>review.ts</code></td><td data-label="Contents">The <code>forgeqe-review</code> agent: prompt, <code>REVIEW_SCHEMA</code> (<code>approved</code>, <code>summary</code>, <code>issues[{file, problem, fix}]</code>), and <code>openReviewer</code>, a second, read-only Quill session opened on the first passing run and kept for later attempts. <code>reviewPrompt</code> inlines the checks from the handoff and the changed files (<code>changedFiles</code>: up to 12 KB each, 40 KB in all), so the reviewer reads nothing again. It may load Quill's skills and judges the test against their conventions too</td></tr>
|
|
313
|
+
<tr><td data-label="Module"><code>runtime.ts</code></td><td data-label="Contents">Maps the <code>llms.json</code> profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With <code>resume</code>, <code>openSession</code> reopens that session with <code>session.get</code> (the runtime keeps sessions on disk, so their messages survive a restart) and sets <code>resumed</code>; when it is gone, a new one is created. <code>FailedCommands</code> counts each exact shell command the agent runs that exits non-zero; at <code>stallAfter</code> failures of one command the turn is aborted and <code>prompt()</code> returns <code>stalled</code> (<code>command</code>, <code>count</code>, the last 40 lines of output). <code>resetStall()</code> clears the counts <code>READ_AGENT</code> (<code>forgeqe-read</code>) has the test agent's instructions with <code>edit</code> and <code>live_*</code> denied; the config builder takes it in <code>agents</code>, and a prompt picks it with <code>agent</code>. <code>PromptOptions</code> also carries <code>structured</code> (off: no JSON answer) and <code>tools</code> (per-prompt switches, used only for <code>live_*</code>: the agent runtime keeps them for later prompts, and <code>true</code> would override the agent's path rules for file tools)</td></tr>
|
|
314
|
+
<tr><td data-label="Module"><code>livebrowser.ts</code></td><td data-label="Contents"><code>liveBrowser(runDir)</code>: the <code>live</code> MCP server for the agent, Microsoft's Playwright MCP (<code>npx -y @playwright/mcp@0.0.84 --config …</code>), with a config written to <code>&lt;run>/live-browser/config.json</code> from <code>run.json</code> <code>browser</code> (channel or executable, headless, viewport, locale, time zone, user agent) and snapshots and screenshots saved in that folder. <code>null</code> without <code>npx</code>. The loop switches its tools (<code>live_*</code>) on per prompt once a step fails</td></tr>
|
|
315
|
+
<tr><td data-label="Module"><code>pagefacts.ts</code></td><td data-label="Contents">What a step met that a test handles differently: <code>frameSelector</code> for a step's frame, <code>isAdStep</code> (an ad host's frame, or <code>#google_vignette</code>), and <code>AD_HOSTS</code> / <code>AD_ROUTE</code> for blocking them. <code>handoff.ts</code> renders <code>covered_by</code>, <code>bypass</code> and <code>frame</code> under each step and adds "What covered the page before a click", "Ads on these pages", and "State the run started with" (from <code>run.json</code> <code>sessions_restored</code>); <code>replay.ts</code> skips ad steps and reaches frame steps through <code>frameLocator</code></td></tr>
|
|
316
|
+
<tr><td data-label="Module"><code>replay.ts</code></td><td data-label="Contents">The replay check. <code>replayScript(steps)</code> turns <code>workflow.yaml</code> into <code>flow.mjs</code>, one <code>step(n, action, run)</code> per recorded step, with each locator rebuilt from its type and value (<code>locatorExpr</code>), text typed with <code>pressSequentially</code>, secrets read with <code>env(NAME)</code> and one-time codes made with <code>totp(NAME)</code>; actions with no Playwright equivalent are marked "not replayed". <code>alternatives.mjs</code> holds each step's other locators. <code>ensurePlaywright</code> installs <code>playwright-core</code> (<code>PLAYWRIGHT_VERSION</code>) with Bun into <code>~/.forgeqe/tools</code> and removes older versions. <code>replayRun</code> writes a runner that launches the run's browser (<code>replayOptions</code>: channel or executable, headless, viewport, locale, time zone, user agent, extra headers), runs each step with a 10 s timeout, keeps an aria snapshot of each page after each step that worked (by host and path, the latest one; the final page's taken once two snapshots a second apart agree, up to 6 s, since a page can change its URL at once and re-render later) and writes them as <code>&lt;setup>-page-N.aria.yml</code> in <code>ReplayPass.pages</code>, and on a failure saves a screenshot and an aria snapshot, counts the other locators' matches, and records console errors, failed requests, and HTTP errors; three failures in a row stop it. It runs under Bun with the session logins' env, 180 s per pass. The first pass uses Playwright's default launch; if it does not reach the run's final page (host and path), a second pass leaves out <code>--enable-automation</code> and adds <code>--disable-blink-features=AutomationControlled</code>. <code>replaySection</code> renders the handoff section (the page snapshots listed; a pass whose failed steps were followed by steps that all worked and that reached the final page, <code>reachedPastFailures</code>, reads as a working script with those steps to judge, and <code>replayFailed</code> is false for it so the live browser stays off): each pass, the failed steps with Playwright's reason, the page, the open dialogs from the snapshot, the other locators' matches, and the saved files, and the launch settings to copy when only the second pass got through. After the last step the runner looks up each recorded check on the page (<code>findCheck</code>: a visible exact heading, then exact text, then a looser heading or text, then a form field holding the value) and returns its locator, match count, and up to 3 containers in <code>ReplayPass.checks</code>; for a heading match, <code>sectionOf</code> adds <code>section</code> (the element <code>aria-labelledby</code> the heading, else the <code>section</code>/<code>article</code>/region it heads, else the element after it or after its only-child wrapper) with a stable locator (test id, id, or <code>aria-label</code>, else empty) and its visible link and list item counts</td></tr>
|
|
317
|
+
<tr><td data-label="Module"><code>testrun.ts</code></td><td data-label="Contents">Runs the reported command with <code>sh -c</code> in the repo (<code>CI=1</code>, <code>PLAYWRIGHT_HTML_OPEN=never</code>, no colour), with a timeout. <code>promptOutput</code> makes the prompt's copy of a failed run: <code>withoutPageDumps</code> takes out each "Aria snapshot:" block Playwright puts in a failed assertion, then <code>headAndTail</code> keeps the first 8 KB and the last 4 KB; the full output goes to <code>&lt;run>/test-runs/attempt-N.log</code> and the first page dump to <code>attempt-N-page.aria.yml</code>. While it runs it samples the process tree (<code>ps -A -o pid=,ppid=,args=</code> every 250 ms; <code>Win32_Process</code> every 1.5 s on Windows) for browsers at or below the command that carry an automation switch (<code>--remote-debugging-pipe</code>, <code>--remote-debugging-port</code>, <code>-juggler-pipe</code>, <code>--inspector-pipe</code>, <code>-marionette</code>) and returns them as <code>browsers</code></td></tr>
|
|
318
|
+
<tr><td data-label="Module"><code>loop.ts</code> (retries)</td><td data-label="Contents">Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a <code>Tried</code> entry: Quill's <code>tried</code> items from its result (else its notes), the failure, and <code>failureFacts</code> of the output (the last "waiting for" locator of Playwright's call log, and the element that "intercepts pointer events"), with <code>again</code> when an earlier entry failed on the same locator. <code>nextAttemptPrompt</code> renders them with <code>triedSection</code>; <code>runHeal</code> keeps the same list from each test's <code>reason</code> and passes it to <code>healNextPrompt</code>. The attempt log, and so <code>scribe-mistakes.jsonl</code>, uses the <code>tried</code> items too</td></tr>
|
|
319
|
+
<tr><td data-label="Module"><code>notes.ts</code></td><td data-label="Contents"><code>scribe-notes.json</code> in <code>memory.dir</code>: per repository, the reading turn's notes (<code>saveNotes</code>), when they were written, and up to 15 tests jobs wrote there (<code>addWrittenTest</code> on approval). <code>readNotes</code> returns nothing past 30 days; <code>notesSection</code> renders them for the first prompt</td></tr>
|
|
320
|
+
<tr><td data-label="Module"><code>worktree.ts</code></td><td data-label="Contents">The working tree before the job (<code>git status --porcelain -uall</code> with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's <code>forgeqe.yaml</code> and <code>llms.json</code>); the paths the job changed since then; putting back files the job deleted or uncommitted edits it reverted to the committed version; and the protected paths in the form the agent runtime matches them</td></tr>
|
|
321
|
+
<tr><td data-label="Module"><code>loop.ts</code></td><td data-label="Contents">The attempt loop, stop handling, the replay (<code>code.replay</code>, on by default in <code>forgeqe.yaml</code>: <code>replayRun</code> runs while Quill reads the repo, then the handoff is rebuilt with the replay and the result goes to <code>code.json</code> <code>replay</code>; skipped when <code>canReplay</code> finds no step beyond navigation and no checks), the reading turn (<code>READ_AGENT</code>, no structured answer, with or without a replay; skipped when <code>readNotes</code> has notes for the repo, which go into the first prompt instead; its reply is saved as the notes), the live browser (<code>code.live_browser</code>, on by default in <code>forgeqe.yaml</code>; its tools are off until the replay or a test run fails, a stall, a no-browser run, or a blocked report, and the prompt that switches them on says so), the stall guard (<code>code.stall_after</code>, default 5; counts reset after each ForgeQE test run), the loop guards (<code>code.repeat_after</code>, default 6: <code>RepeatedLooks</code>, look-ups whose answer is unchanged; <code>code.edit_after</code>, default 8: <code>RepeatedEdits</code>, edits to files already changed, and <code>FAILED_EDITS_AFTER</code> (3) edits that failed on lines the file no longer has; all reset after each test run, and each kind of loop gets <code>loopPrompt</code> once, then the job stops; a stop's notes say whether a test ever ran and which files were left changed (<code>stopFacts</code>), and its <code>test</code> event has <code>ran: false</code>), <code>code.json</code> (the run folder is recreated if it is gone, and a failed write is reported without changing the result), and resuming: <code>scribe-session.json</code> in the run folder (session id, repo, stage <code>reading</code>/<code>writing</code>, whether the live browser is on) is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a <code>ProviderAuthError</code>/<code>APIError</code> it stays, and a rerun for the same run and repo passes it as <code>openSession</code>'s <code>resume</code>. The session file also keeps the files the job changed (<code>changed</code>, saved after every edit, read back by <code>carriedPaths</code>). A rerun of a job that stopped while writing opens a fresh session whose first message is <code>brief(carriedOnTask)</code>; one that stopped while reading reopens its session with <code>RESUMED_NOTE</code> plus the first prompt. Either skips the reading turn and takes <code>savedReplay</code> when the replay finished. <code>brief</code> (the job's target or existing test, environment, notes, plan, <code>planFindings</code>, handoff, attempts and files) also starts every later attempt and the session after a raised budget (<code>BUDGET_RAISED</code>)</td></tr>
|
|
326
322
|
</tbody>
|
|
327
323
|
</table></div>
|
|
328
324
|
<p><strong>Config.</strong> The whole agent runtime config is passed through the environment, so nothing is written into the repo. Keys are <code>{env:NAME}</code> references, never values. Profile mapping:</p>
|
|
329
|
-
<div class="tbl"><table>
|
|
325
|
+
<div class="tbl tbl--cols-3"><table>
|
|
330
326
|
<thead>
|
|
331
327
|
<tr><th>Profile</th><th>Agent runtime provider</th><th>Model</th></tr>
|
|
332
328
|
</thead>
|
|
333
329
|
<tbody>
|
|
334
|
-
<tr><td><code>azure</code></td><td><code>azure</code>, <code>baseURL: &lt;endpoint origin>/openai/v1</code> (Responses API, <code>api-key</code> header)</td><td><code>azure/&lt;deployment></code></td></tr>
|
|
335
|
-
<tr><td><code>openai</code></td><td><code>openai</code>, <code>baseURL</code> when set</td><td><code>openai/&lt;model></code></td></tr>
|
|
336
|
-
<tr><td><code>openai_compatible</code>, <code>ollama</code></td><td><code>forgeqe</code> via <code>@ai-sdk/openai-compatible</code> and the profile's <code>base_url</code></td><td><code>forgeqe/&lt;model></code></td></tr>
|
|
330
|
+
<tr><td data-label="Profile"><code>azure</code></td><td data-label="Agent runtime provider"><code>azure</code>, <code>baseURL: &lt;endpoint origin>/openai/v1</code> (Responses API, <code>api-key</code> header)</td><td data-label="Model"><code>azure/&lt;deployment></code></td></tr>
|
|
331
|
+
<tr><td data-label="Profile"><code>openai</code></td><td data-label="Agent runtime provider"><code>openai</code>, <code>baseURL</code> when set</td><td data-label="Model"><code>openai/&lt;model></code></td></tr>
|
|
332
|
+
<tr><td data-label="Profile"><code>openai_compatible</code>, <code>ollama</code></td><td data-label="Agent runtime provider"><code>forgeqe</code> via <code>@ai-sdk/openai-compatible</code> and the profile's <code>base_url</code></td><td data-label="Model"><code>forgeqe/&lt;model></code></td></tr>
|
|
337
333
|
</tbody>
|
|
338
334
|
</table></div>
|
|
339
335
|
<p><code>code.model</code> skips the mapping and uses the agent runtime's own provider setup. The <code>forgeqe-test</code> agent is a primary agent with its own prompt and permissions:</p>
|
|
@@ -349,92 +345,92 @@
|
|
|
349
345
|
<p><strong>Events.</strong> <code>event.subscribe</code> streams the session. Tool parts become <code>⚙</code> lines with repo-relative paths (<code>edit tests/login.spec.ts</code>, <code>bash npx playwright test …</code>). Finished text parts become the agent's thoughts, and <code>step-finish</code> tokens feed the token counter. Permission requests the config does not settle are declined straight away (<code>declineMessage</code> tells the model why), so the session never waits for a person and nothing outside the config is granted: not paths outside the repository, not repeated identical calls, and not the runtime's own "ask" defaults such as reading <code>.env</code> files.</p>
|
|
350
346
|
<p><strong>Environment and secrets.</strong> <code>openSession</code> starts <code>opencode serve</code> itself (<code>startServer</code>) with an explicit environment (<code>serverEnv</code>), never by changing <code>process.env</code>: the terminal's environment without ForgeQE's own secrets (<code>privateEnvNames</code>: every profile's key variable, tracker and alert credentials, variables <code>mcp:</code> servers reference) except those its config references as <code>{env:NAME}</code>, plus the values ForgeQE derives for MCP servers (<code>secrets</code>, e.g. base64 of email:token). A runtime plugin (<code>hideEnvPlugin</code>, the runtime's <code>shell.env</code> hook) then blanks all of those, and <code>OPENCODE_CONFIG_CONTENT</code>, in every shell command the agents run, so a prompt injected by a page under test cannot read the model key or tracker tokens. Saved-login variables stay visible: the tests read them.</p>
|
|
351
347
|
<p><strong>Result.</strong> Each prompt sends <code>format: {type: "json_schema"}</code>, and the model answers through the agent runtime's <code>StructuredOutput</code> tool. The result is read from the <code>message.updated</code> event (<code>info.structured</code>, or <code>info.error</code>), not from <code>session.messages</code>: in the pinned agent runtime that endpoint returns BadRequest for any session that used <code>format</code>.</p>
|
|
352
|
-
<p><strong>Loop.</strong> ForgeQE does not trust the model's claim that the test passes. Quill does not run the test; it reports the command and ForgeQE runs it. A non-zero exit or a timeout sends a fix prompt with the command, exit code, the short output (<code>promptOutput</code>), and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no-browser prompt, unless the agent reported <code>remote_browser</code>. A missing command sends a reminder. A failure whose output matches the previous one apart from numbers (<code>failureKey</code>) gets the repeated-failure prompt (look at the failing step before changing code); a third one in a row ends the loop as <code>failed</code> with the output in the notes. A stalled turn (one command failed <code>stall_after</code> times inside it) gets the stall prompt with the command and its output once; a second stall ends the loop as <code>failed</code> with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, <code>handoff.md</code> is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first <code>blocked</code> report is answered with the blocked-challenge prompt (compare the test's browser with the handoff's "Browser ForgeQE used" and fix the difference); a second one ends the loop as <code>blocked</code>. The loop ends when a passing run is approved (<code>passed</code>), after <code>max_attempts</code> (<code>failed</code>), when the reviewer gives no verdict (<code>failed</code>), on <code>ProviderAuthError</code>, <code>APIError</code>, <code>ContextOverflowError</code>, or <code>ContentFilterError</code> (<code>failed</code>), or on Esc (<code>stopped</code>, which aborts the session). Both servers are closed in every case, and the reviewer's tokens are added to the result's usage.</p>
|
|
348
|
+
<p><strong>Loop.</strong> ForgeQE does not trust the model's claim that the test passes. Quill does not run the test; it reports the command and ForgeQE runs it. A non-zero exit or a timeout sends a fix prompt with the command, exit code, the short output (<code>promptOutput</code>), and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no-browser prompt, unless the agent reported <code>remote_browser</code>. A missing command sends a reminder. A failure whose output matches the previous one apart from numbers (<code>failureKey</code>) gets the repeated-failure prompt (look at the failing step before changing code); a third one in a row ends the loop as <code>failed</code> with the output in the notes. A stalled turn (one command failed <code>stall_after</code> times inside it) gets the stall prompt with the command and its output once; a second stall ends the loop as <code>failed</code> with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, <code>handoff.md</code> is rewritten if missing, and the next prompt says what was restored. So are the agent's changes to package files (<code>restoreDeps</code>) and to the test-runner config the whole suite shares (<code>restoreTestConfig</code>, <code>deps.ts</code>: <code>playwright.config.*</code>, <code>cypress.config.*</code>, <code>wdio.conf.*</code>, Nightwatch's config, <code>.runsettings</code>; never through a link; a repository with none keeps the one the agent sets up): browser options a test needs go in its own file (a top-level <code>test.use</code> in a Playwright spec), and a change the suite needs goes through <code>request_change</code>, which a person approves. Each of these counts as an attempt. The first <code>blocked</code> report is answered with the blocked-challenge prompt (compare the test's browser with the handoff's "Browser ForgeQE used" and fix the difference); a second one ends the loop as <code>blocked</code>. The loop ends when a passing run is approved (<code>passed</code>), after <code>max_attempts</code> (<code>failed</code>), when the reviewer gives no verdict (<code>failed</code>), on <code>ProviderAuthError</code>, <code>APIError</code>, <code>ContextOverflowError</code>, or <code>ContentFilterError</code> (<code>failed</code>), or on Esc (<code>stopped</code>, which aborts the session). Both servers are closed in every case, and the reviewer's tokens are added to the result's usage.</p>
|
|
353
349
|
<p>The <code>forgeqe-review</code> agent overrides the permissions key by key (<code>AgentSpec.permission</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, and <code>bash</code> denied except <code>git diff*</code>, <code>git status*</code>, <code>git log*</code>, <code>git show*</code>, and <code>ls*</code>.</p>
|
|
354
350
|
<h2 id="skills-srcskills"><a href="#skills-srcskills" class="hash">#</a>Skills (<code>src/skills</code>)</h2>
|
|
355
351
|
<p>Agent Skills folders (<code>&lt;name>/SKILL.md</code>: YAML frontmatter with <code>name</code>, <code>description</code>, and ForgeQE's <code>agents</code>, then Markdown) that ForgeQE's agent, Quill, and the browser agent use. <code>skills:</code> in <code>forgeqe.yaml</code> becomes <code>SkillsConfig</code> (<code>enabled</code>, <code>projectDir</code>, <code>userDir</code>, <code>dirs</code>, <code>disable</code>, <code>external</code>, <code>browserMaxChars</code>).</p>
|
|
356
|
-
<div class="tbl"><table>
|
|
352
|
+
<div class="tbl tbl--cols-2"><table>
|
|
357
353
|
<thead>
|
|
358
354
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
359
355
|
</thead>
|
|
360
356
|
<tbody>
|
|
361
|
-
<tr><td><code>registry.ts</code></td><td><code>skillRoots</code> in precedence order, lowest first: prebuilt (<code>skills/</code> in the package), external (only with <code>external</code>: <code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the repo's <code>.claude</code>/<code>.agents</code> skills), user (<code>$FORGEQE_HOME/skills</code>), project (<code>.forgeqe/skills</code> next to <code>forgeqe.yaml</code>, and the repo's own), then each <code>dirs</code> folder. <code>loadSkills</code> reads every <code>&lt;root>/&lt;name>/SKILL.md</code>, validates it (name lowercase words joined by hyphens, at most 64 characters, the same as the folder; description present, at most 1,024 characters; <code>agents</code> from <code>forgeqe</code>/<code>scribe</code>/<code>browser</code>, default <code>forgeqe</code> and <code>scribe</code>; file at most 100 KB), and reports a broken one in <code>problems</code> instead of failing. A later source replaces a skill of the same name and records <code>overrides</code>; <code>disable</code> then moves skills to <code>disabled</code>. <code>skillsFor(reg, agent)</code> filters by audience. <code>linkSkills</code> makes a temporary folder of links (junctions on Windows) to the chosen skill folders, one per name; <code>remove</code> unlinks them and never follows them</td></tr>
|
|
362
|
-
<tr><td><code>select.ts</code></td><td><code>browserSkills(cfg, goal, names?)</code>: with names (ForgeQE's agent, <code>--skill</code>), <code>skills_pick: "given"</code> with only those browser skills (unknown names returned for a warning; <code>[]</code> means none); without, <code>"choose"</code> with every browser skill's name, description, and body. <code>rememberChoice</code> keeps the engine's choice per goal for the life of the process, so monitor rounds and repeated cases send <code>"given"</code>; it is kept only when the engine actually chose (<code>run.json</code> has <code>skills</code>)</td></tr>
|
|
363
|
-
<tr><td><code>scaffold.ts</code></td><td><code>newSkill</code> writes a <code>SKILL.md</code> template (the body hints at the agent it is for) and refuses an existing one; <code>setSkillDisabled</code> edits <code>skills.disable</code> through a YAML <code>Document</code>, so comments survive, and drops the key when the list is empty; <code>ignoredNote</code> warns when git would not commit a new project skill</td></tr>
|
|
364
|
-
<tr><td><code>view.ts</code></td><td><code>skillsOverview</code> (per agent: name, source and what it replaces, description; disabled; problems; folders read) and <code>skillDetail</code>, shared by <code>forgeqe skills</code> and <code>/skills</code></td></tr>
|
|
357
|
+
<tr><td data-label="Module"><code>registry.ts</code></td><td data-label="Contents"><code>skillRoots</code> in precedence order, lowest first: prebuilt (<code>skills/</code> in the package), external (only with <code>external</code>: <code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the repo's <code>.claude</code>/<code>.agents</code> skills), user (<code>$FORGEQE_HOME/skills</code>), project (<code>.forgeqe/skills</code> next to <code>forgeqe.yaml</code>, and the repo's own), then each <code>dirs</code> folder. <code>loadSkills</code> reads every <code>&lt;root>/&lt;name>/SKILL.md</code>, validates it (name lowercase words joined by hyphens, at most 64 characters, the same as the folder; description present, at most 1,024 characters; <code>agents</code> from <code>forgeqe</code>/<code>scribe</code>/<code>browser</code>, default <code>forgeqe</code> and <code>scribe</code>; file at most 100 KB), and reports a broken one in <code>problems</code> instead of failing. A later source replaces a skill of the same name and records <code>overrides</code>; <code>disable</code> then moves skills to <code>disabled</code>. <code>skillsFor(reg, agent)</code> filters by audience. <code>linkSkills</code> makes a temporary folder of links (junctions on Windows) to the chosen skill folders, one per name; <code>remove</code> unlinks them and never follows them</td></tr>
|
|
358
|
+
<tr><td data-label="Module"><code>select.ts</code></td><td data-label="Contents"><code>browserSkills(cfg, goal, names?)</code>: with names (ForgeQE's agent, <code>--skill</code>), <code>skills_pick: "given"</code> with only those browser skills (unknown names returned for a warning; <code>[]</code> means none); without, <code>"choose"</code> with every browser skill's name, description, and body. <code>rememberChoice</code> keeps the engine's choice per goal for the life of the process, so monitor rounds and repeated cases send <code>"given"</code>; it is kept only when the engine actually chose (<code>run.json</code> has <code>skills</code>)</td></tr>
|
|
359
|
+
<tr><td data-label="Module"><code>scaffold.ts</code></td><td data-label="Contents"><code>newSkill</code> writes a <code>SKILL.md</code> template (the body hints at the agent it is for) and refuses an existing one; <code>setSkillDisabled</code> edits <code>skills.disable</code> through a YAML <code>Document</code>, so comments survive, and drops the key when the list is empty; <code>ignoredNote</code> warns when git would not commit a new project skill</td></tr>
|
|
360
|
+
<tr><td data-label="Module"><code>view.ts</code></td><td data-label="Contents"><code>skillsOverview</code> (per agent: name, source and what it replaces, description; disabled; problems; folders read) and <code>skillDetail</code>, shared by <code>forgeqe skills</code> and <code>/skills</code></td></tr>
|
|
365
361
|
</tbody>
|
|
366
362
|
</table></div>
|
|
367
363
|
<p><strong>Agent runtime.</strong> <code>openSession(…, skills)</code> keeps the skills whose <code>agents</code> include an audience of the session's agents (<code>AgentSpec.skills</code>: <code>forgeqe</code> for the brain, <code>scribe</code> for <code>forgeqe-test</code>, <code>forgeqe-read</code>, <code>forgeqe-review</code>, <code>forgeqe-find</code>, <code>forgeqe-heal</code>, <code>forgeqe-pr-review</code>, and <code>forgeqe-api</code>; none for <code>forgeqe-api-plan</code>, <code>forgeqe-explore-plan</code>, <code>forgeqe-defect-rca</code>, <code>forgeqe-refine</code>, <code>forgeqe-judge</code>, and <code>forgeqe-model-profile</code>, as <code>src/agents.ts</code> lists them), links them with <code>linkSkills</code>, and passes the folder as <code>skills.paths</code>. Each agent's <code>skill</code> permission is <code>{"*": "deny", &lt;name>: "allow", …}</code> for its audience, or <code>"deny"</code> with none, so the runtime's built-in skills and a repo's <code>.opencode/skills</code> stay unloadable and out of the listing the model chooses from. <code>OPENCODE_DISABLE_EXTERNAL_SKILLS=1</code> and <code>OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1</code> turn off the runtime's own discovery of <code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the project's. The links folder and each skill folder (and their real paths) are added to <code>external_directory</code> and made read-only: added to the session's protected paths, or, for a session without them, passed as <code>readOnly</code> (edit and bash denied for those paths only). ForgeQE's agent keeps write access to user and project skills, so it can change one when asked; built-in and global skills stay read-only for it too. Completed <code>skill</code> tool calls show as "Using skill NAME" and are collected in <code>skillsUsed</code>, which <code>runCodeAgent</code> and <code>runHeal</code> put on their results. <code>SKILL_RULE</code> in each agent's prompt says to load a skill whose description fits the job and that the prompt wins where they disagree.</p>
|
|
368
364
|
<p><strong>Browser runs.</strong> <code>environmentNotes</code> lists the browser skills for ForgeQE's agent, and <code>browser_run</code> and <code>run_test_cases</code> take <code>skills</code> (names). <code>executeRun</code> calls <code>browserSkills</code> and sends the result in the engine request; the engine chooses (<code>choose_skills</code>) or uses them, adds the text within <code>skills_max_chars</code>, logs "Skills for this run: …" (and the ones left out for size), and writes <code>skills</code> to <code>run.json</code> only when it decided, so a replay that finished without the agent leaves the choice open. <code>run.done</code> in the session log, <code>RunResult.skills</code>, and the report's case header carry them; a case's Quill skills go to <code>CaseResult.code.skills</code>.</p>
|
|
369
365
|
<h2 id="healing-srcheal"><a href="#healing-srcheal" class="hash">#</a>Healing (<code>src/heal</code>)</h2>
|
|
370
366
|
<p><code>forgeqe heal</code> repairs a repo's existing tests after the app changed, and reports app bugs instead of hiding them. Like the coding loop, ForgeQE decides what passed by running the commands itself.</p>
|
|
371
|
-
<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><code>test command ──► baseline run (testrun.ts) ── passes ──► clean, no model
|
|
372
|
-
│ fails
|
|
373
|
-
▼
|
|
374
|
-
Quill session (forgeqe-heal agent) ◄─── MCP: browser_run, run_details, run_test, page_memory
|
|
375
|
-
│ tests[]: healed | app_bug | not_healed, each with its own command
|
|
376
|
-
▼
|
|
377
|
-
ForgeQE runs each healed test ── fails ──► still-failing prompt ─┐
|
|
378
|
-
│ all pass │
|
|
379
|
-
▼ │
|
|
380
|
-
ForgeQE runs the whole command ── fails ──► remaining prompt ─────┤
|
|
381
|
-
│ passes │
|
|
382
|
-
▼ ▼
|
|
383
|
-
passed next attempt (up to code.max_attempts)
|
|
384
|
-
</code></pre></div>
|
|
385
|
-
<div class="tbl"><table>
|
|
367
|
+
<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">test command ──► baseline run (testrun.ts) ── passes ──► clean, no model
|
|
368
|
+
</span></span><span class="ln"><span class="cmd"> │ fails
|
|
369
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
370
|
+
</span></span><span class="ln"><span class="cmd"> Quill session (forgeqe-heal agent) ◄─── MCP: browser_run, run_details, run_test, page_memory
|
|
371
|
+
</span></span><span class="ln"><span class="cmd"> │ tests[]: healed | app_bug | not_healed, each with its own command
|
|
372
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
373
|
+
</span></span><span class="ln"><span class="cmd"> ForgeQE runs each healed test ── fails ──► still-failing prompt ─┐
|
|
374
|
+
</span></span><span class="ln"><span class="cmd"> │ all pass │
|
|
375
|
+
</span></span><span class="ln"><span class="cmd"> ▼ │
|
|
376
|
+
</span></span><span class="ln"><span class="cmd"> ForgeQE runs the whole command ── fails ──► remaining prompt ─────┤
|
|
377
|
+
</span></span><span class="ln"><span class="cmd"> │ passes │
|
|
378
|
+
</span></span><span class="ln"><span class="cmd"> ▼ ▼
|
|
379
|
+
</span></span><span class="ln"><span class="cmd"> passed next attempt (up to code.max_attempts)
|
|
380
|
+
</span></span></code></pre></div>
|
|
381
|
+
<div class="tbl tbl--cols-2"><table>
|
|
386
382
|
<thead>
|
|
387
383
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
388
384
|
</thead>
|
|
389
385
|
<tbody>
|
|
390
|
-
<tr><td><code>prompt.ts</code></td><td>The heal agent's procedure (<code>prompts/heal.md</code>): failing tests only; re-run each one's flow with <code>browser_run</code> as a plain-language goal; a passing run means the test is out of date, so read <code>run_details</code> and update the locators where they live (page objects); a run that fails at the same step means an app bug, and the test is left alone; never delete, skip, loosen, or slow down a test; verify with <code>run_test</code>. <code>HEAL_SCHEMA</code>: <code>{tests: [{name, file, status, command, reason, run_dir}], changed, notes, suite_command}</code>. The find-command, first, still-failing, remaining, and missing-tests prompts</td></tr>
|
|
391
|
-
<tr><td><code>loop.ts</code></td><td><code>runHeal</code>. The command is the argument, <code>code.test_command</code>, or <code>suite_command</code> from a first prompt that asks the agent to find it. The heal session gets its own <code>localToolServer</code> with only the four tools above; browser runs are written inside the heal folder (<code>export.out_dir</code> is pointed there) and their folders are recorded from <code>run-done</code> events. Tests are merged by name across replies. A healed test counts only after ForgeQE runs its command; a healed test with no command is sent back. The whole command runs after every attempt whose tests all pass, and once more at the end if tests were confirmed since. The loop ends when the whole command passes (<code>passed</code>), when a reply heals nothing new (<code>failed</code> if the command still fails), after <code>max_attempts</code>, on the same fatal errors as the coding loop, or on stop. <code>heal.json</code> and <code>heal.md</code> are written in every case</td></tr>
|
|
392
|
-
<tr><td><code>report.ts</code></td><td><code>healMarkdown</code> (verdict table, files changed, browser runs, test output before and after) and <code>formatHeal</code>, the terminal summary (✓ confirmed, ? healed but not confirmed, ! app bug, ✗ not healed)</td></tr>
|
|
386
|
+
<tr><td data-label="Module"><code>prompt.ts</code></td><td data-label="Contents">The heal agent's procedure (<code>prompts/heal.md</code>): failing tests only; re-run each one's flow with <code>browser_run</code> as a plain-language goal; a passing run means the test is out of date, so read <code>run_details</code> and update the locators where they live (page objects); a run that fails at the same step means an app bug, and the test is left alone; never delete, skip, loosen, or slow down a test; verify with <code>run_test</code>. <code>HEAL_SCHEMA</code>: <code>{tests: [{name, file, status, command, reason, run_dir}], changed, notes, suite_command}</code>. The find-command, first, still-failing, remaining, and missing-tests prompts</td></tr>
|
|
387
|
+
<tr><td data-label="Module"><code>loop.ts</code></td><td data-label="Contents"><code>runHeal</code>. The command is the argument, <code>code.test_command</code>, or <code>suite_command</code> from a first prompt that asks the agent to find it. The heal session gets its own <code>localToolServer</code> with only the four tools above; browser runs are written inside the heal folder (<code>export.out_dir</code> is pointed there) and their folders are recorded from <code>run-done</code> events. Tests are merged by name across replies. A healed test counts only after ForgeQE runs its command; a healed test with no command is sent back. The whole command runs after every attempt whose tests all pass, and once more at the end if tests were confirmed since. The loop ends when the whole command passes (<code>passed</code>), when a reply heals nothing new (<code>failed</code> if the command still fails), after <code>max_attempts</code>, on the same fatal errors as the coding loop, or on stop. <code>heal.json</code> and <code>heal.md</code> are written in every case</td></tr>
|
|
388
|
+
<tr><td data-label="Module"><code>report.ts</code></td><td data-label="Contents"><code>healMarkdown</code> (verdict table, files changed, browser runs, test output before and after) and <code>formatHeal</code>, the terminal summary (✓ confirmed, ? healed but not confirmed, ! app bug, ✗ not healed)</td></tr>
|
|
393
389
|
</tbody>
|
|
394
390
|
</table></div>
|
|
395
391
|
<p>In the shell and <code>forgeqe run</code>, ForgeQE's agent calls the <code>heal_tests</code> tool, which runs <code>runHeal</code>, so "the login tests broke, fix them" goes through the same loop and the same checks as <code>forgeqe heal</code>. <code>tools.ts</code> and <code>heal/loop.ts</code> import each other; that is safe because <code>runHeal</code> only reads <code>TOOLS</code> when it runs.</p>
|
|
396
392
|
<h2 id="finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts"><a href="#finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts" class="hash">#</a>Finding and running existing tests (<code>src/code/find.ts</code>, <code>src/mcp/repotests.ts</code>, <code>src/cases/sprints.ts</code>)</h2>
|
|
397
393
|
<p>"Run all tests related to login" and "run the tests added this sprint" select tests that already exist in the repo. Quill decides which tests match by reading them; ForgeQE confirms the selection with the framework's own list command, and nothing runs until the user agrees.</p>
|
|
398
|
-
<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><code>request (+ since/until, or a sprint picked from Azure DevOps / Jira via ctx.ask)
|
|
399
|
-
│
|
|
400
|
-
▼
|
|
401
|
-
Quill session (forgeqe-find agent, read-only) ── tests[], related[], list_command, run_command
|
|
402
|
-
│
|
|
403
|
-
▼
|
|
404
|
-
ForgeQE runs list_command ──► listing back to Quill ── changed ──► lists again (up to 3 rounds)
|
|
405
|
-
│ list_matches, unchanged
|
|
406
|
-
▼
|
|
407
|
-
selection.json + card ──► run_tests: ctx.ask "Run N tests?" ── Run ──► ForgeQE runs run_command
|
|
408
|
-
│
|
|
409
|
-
JUnit XML / TRX ─┴─► results.json + per-test card
|
|
410
|
-
</code></pre></div>
|
|
411
|
-
<div class="tbl"><table>
|
|
394
|
+
<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">request (+ since/until, or a sprint picked from Azure DevOps / Jira via ctx.ask)
|
|
395
|
+
</span></span><span class="ln"><span class="cmd"> │
|
|
396
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
397
|
+
</span></span><span class="ln"><span class="cmd">Quill session (forgeqe-find agent, read-only) ── tests[], related[], list_command, run_command
|
|
398
|
+
</span></span><span class="ln"><span class="cmd"> │
|
|
399
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
400
|
+
</span></span><span class="ln"><span class="cmd">ForgeQE runs list_command ──► listing back to Quill ── changed ──► lists again (up to 3 rounds)
|
|
401
|
+
</span></span><span class="ln"><span class="cmd"> │ list_matches, unchanged
|
|
402
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
403
|
+
</span></span><span class="ln"><span class="cmd">selection.json + card ──► run_tests: ctx.ask "Run N tests?" ── Run ──► ForgeQE runs run_command
|
|
404
|
+
</span></span><span class="ln"><span class="cmd"> │
|
|
405
|
+
</span></span><span class="ln"><span class="cmd"> JUnit XML / TRX ─┴─► results.json + per-test card
|
|
406
|
+
</span></span></code></pre></div>
|
|
407
|
+
<div class="tbl tbl--cols-2"><table>
|
|
412
408
|
<thead>
|
|
413
409
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
414
410
|
</thead>
|
|
415
411
|
<tbody>
|
|
416
|
-
<tr><td><code>code/find.ts</code></td><td><code>FIND_AGENT</code> (<code>forgeqe-find</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, <code>bash</code> denied except <code>git log/show/diff/blame/ls-files/rev-parse/status</code> and <code>ls</code>. Its prompt: work out the frameworks, decide each test from its body and the helpers it calls (a name alone neither includes nor excludes it), a time range means tests added in it (git history, including new functions in existing files; only-modified tests go under <code>related</code>), one test per entry, and the two commands. <code>FIND_SCHEMA</code>: <code>{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}</code>. <code>findTests</code> opens the session (readDirs: the repo only), gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new <code>&lt;export.out_dir>/tests/&lt;time>/</code> folder; runs <code>list_command</code> with <code>runTestCommand</code> (180s) and feeds the output back until Quill confirms an unchanged selection (<code>listed</code>), and writes <code>selection.json</code>. <code>runSelection</code> deletes stale result files, runs <code>run_command</code> with <code>code.test_timeout_seconds</code>, collects the fresh <code>.xml</code>/<code>.trx</code> files (the given file, or a folder one level deep), and parses them with <code>parseResults</code> (JUnit <code>testcase</code> at any depth with <code>failure</code>/<code>error</code>/<code>skipped</code>; TRX <code>UnitTestResult</code> outcomes and <code>hh:mm:ss</code> durations); without results the exit code decides. <code>selectionCard</code> and <code>resultsCard</code></td></tr>
|
|
417
|
-
<tr><td><code>mcp/repotests.ts</code></td><td><code>REPO_TEST_TOOLS</code>, appended to <code>TOOLS</code>. <code>list_sprints</code>. <code>find_tests</code> validates dates, resolves <code>sprint</code> (a name through <code>findSprint</code>; <code>ask</code> offers up to eight <code>recentSprints</code> through <code>ctx.ask</code>, or returns them as <code>needs_choice</code> when there is no <code>ask</code>), runs <code>findTests</code>, and emits the selection card. <code>run_tests</code> loads the selection and asks <strong>Run N tests? / Don't run</strong> through <code>ctx.ask</code>; without <code>ask</code> (<code>forgeqe mcp</code>, or <code>forgeqe run</code> without a terminal) it returns <code>needs_confirmation</code> until called with <code>confirmed: true</code>. Failures come back with a <code>heal_tests</code> suggestion</td></tr>
|
|
418
|
-
<tr><td><code>cases/sprints.ts</code></td><td>Azure DevOps <code>work/teamsettings/iterations</code> (the project's default team, or <code>team</code>) and Jira agile <code>board?type=scrum</code> (by project or board, up to five boards) then <code>board/{id}/sprint</code>, paged. Both become <code>Sprint {system, name, start, end, state: current | past | future, where}</code>; a system that fails is reported in <code>errors</code>. <code>recentSprints</code> keeps each team's or board's current, three latest past, and next sprint</td></tr>
|
|
412
|
+
<tr><td data-label="Module"><code>code/find.ts</code></td><td data-label="Contents"><code>FIND_AGENT</code> (<code>forgeqe-find</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, <code>bash</code> denied except <code>git log/show/diff/blame/ls-files/rev-parse/status</code> and <code>ls</code>. Its prompt: work out the frameworks, decide each test from its body and the helpers it calls (a name alone neither includes nor excludes it), a time range means tests added in it (git history, including new functions in existing files; only-modified tests go under <code>related</code>), one test per entry, and the two commands. <code>FIND_SCHEMA</code>: <code>{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}</code>. <code>findTests</code> opens the session (readDirs: the repo only), gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new <code>&lt;export.out_dir>/tests/&lt;time>/</code> folder; runs <code>list_command</code> with <code>runTestCommand</code> (180s) and feeds the output back until Quill confirms an unchanged selection (<code>listed</code>), and writes <code>selection.json</code>. <code>runSelection</code> deletes stale result files, runs <code>run_command</code> with <code>code.test_timeout_seconds</code>, collects the fresh <code>.xml</code>/<code>.trx</code> files (the given file, or a folder one level deep), and parses them with <code>parseResults</code> (JUnit <code>testcase</code> at any depth with <code>failure</code>/<code>error</code>/<code>skipped</code>; TRX <code>UnitTestResult</code> outcomes and <code>hh:mm:ss</code> durations); without results the exit code decides. <code>selectionCard</code> and <code>resultsCard</code></td></tr>
|
|
413
|
+
<tr><td data-label="Module"><code>mcp/repotests.ts</code></td><td data-label="Contents"><code>REPO_TEST_TOOLS</code>, appended to <code>TOOLS</code>. <code>list_sprints</code>. <code>find_tests</code> validates dates, resolves <code>sprint</code> (a name through <code>findSprint</code>; <code>ask</code> offers up to eight <code>recentSprints</code> through <code>ctx.ask</code>, or returns them as <code>needs_choice</code> when there is no <code>ask</code>), runs <code>findTests</code>, and emits the selection card. <code>run_tests</code> loads the selection and asks <strong>Run N tests? / Don't run</strong> through <code>ctx.ask</code>; without <code>ask</code> (<code>forgeqe mcp</code>, or <code>forgeqe run</code> without a terminal) it returns <code>needs_confirmation</code> until called with <code>confirmed: true</code>. Failures come back with a <code>heal_tests</code> suggestion</td></tr>
|
|
414
|
+
<tr><td data-label="Module"><code>cases/sprints.ts</code></td><td data-label="Contents">Azure DevOps <code>work/teamsettings/iterations</code> (the project's default team, or <code>team</code>) and Jira agile <code>board?type=scrum</code> (by project or board, up to five boards) then <code>board/{id}/sprint</code>, paged. Both become <code>Sprint {system, name, start, end, state: current | past | future, where}</code>; a system that fails is reported in <code>errors</code>. <code>recentSprints</code> keeps each team's or board's current, three latest past, and next sprint</td></tr>
|
|
419
415
|
</tbody>
|
|
420
416
|
</table></div>
|
|
421
417
|
<p><code>ctx.ask</code> is how a tool puts a choice to the user. The TUI opens an <strong>ask</strong> dialog (options stacked vertically when there are more than three or they do not fit; ids prefixed <code>ask:</code> so they never collide with the stop and close choices; Esc, another dialog, or Ctrl+C resolve <code>null</code>) and pushes the question's <code>lines</code> into the transcript. <code>forgeqe run</code> prints numbered options when stdin is a terminal. The brain prompt routes repo tests to <code>find_tests</code> and test cases in test management systems to <code>run_test_cases</code>, and forbids running a selection any other way or without that confirmation.</p>
|
|
422
418
|
<h2 id="test-cases-and-suites-srccases-srcsuite"><a href="#test-cases-and-suites-srccases-srcsuite" class="hash">#</a>Test cases and suites (<code>src/cases</code>, <code>src/suite</code>)</h2>
|
|
423
419
|
<p>Every source becomes the same <code>TestCase</code>: id, title, source, link, description, preconditions, steps (<code>action</code>, <code>data</code>, <code>expected</code>), start URL, tags, and a <code>ref</code> with what write-back needs (work item, test point, plan, issue key).</p>
|
|
424
|
-
<div class="tbl"><table>
|
|
420
|
+
<div class="tbl tbl--cols-3"><table>
|
|
425
421
|
<thead>
|
|
426
422
|
<tr><th>Module</th><th>Reads</th><th>Writes back</th></tr>
|
|
427
423
|
</thead>
|
|
428
424
|
<tbody>
|
|
429
|
-
<tr><td><code>files.ts</code></td><td>text (<code>---</code> blocks), CSV (RFC 4180; step rows continue a case), YAML/JSON, Gherkin (Background, Outline × Examples, Then → expected)</td><td>nothing</td></tr>
|
|
430
|
-
<tr><td><code>ado.ts</code></td><td><code>workitemsbatch</code> for ids; <code>testplan</code> suites and test points with <code>x-ms-continuationtoken</code> paging; the Steps XML (fast-xml-parser, order kept), shared steps through <code>compref</code>, parameter rows from <code>LocalDataSource</code></td><td>a test run per plan: create with the point ids, set each result's outcome and comment, complete the run. Cases read by id: a work-item comment</td></tr>
|
|
431
|
-
<tr><td><code>jira.ts</code></td><td>Cloud: <code>/rest/api/3/search/jql</code> (<code>nextPageToken</code>), ADF descriptions. Server/DC: <code>/rest/api/2/search</code> (<code>startAt</code>), bearer PAT</td><td>an issue comment (ADF on Cloud)</td></tr>
|
|
432
|
-
<tr><td><code>xray.ts</code></td><td>Cloud: token from <code>/api/v2/authenticate</code>, then GraphQL <code>getTests</code> / <code>getTestPlans</code>. Server/DC: <code>/rest/raven/1.0/api/test</code> and <code>testPlanTests</code> JQL</td><td>an import per plan: a Test Execution with statuses, step statuses and actual results, comments, and <code>failure.png</code> as evidence</td></tr>
|
|
433
|
-
<tr><td><code>testrail.ts</code></td><td><code>get_case</code>, <code>get_tests/&lt;run></code>, <code>get_plan</code>, <code>get_cases/&lt;project>&suite_id=</code> (paged by <code>_links.next</code>); separated steps or the text template</td><td><code>add_results_for_cases</code> on the source run, or <code>add_run</code> per suite; <code>custom_step_results</code>; <code>add_attachment_to_result</code> for <code>failure.png</code></td></tr>
|
|
434
|
-
<tr><td><code>zephyr.ts</code></td><td>Zephyr Scale Cloud v2: <code>testcases/&lt;key></code>, <code>teststeps</code> (call-to-test inlined to depth 2), <code>testexecutions?testCycle=</code>, <code>testcases?folderId=</code></td><td><code>testexecutions</code> per case with <code>testScriptResults</code>, in the source cycle or a new <code>testcycles</code> per project</td></tr>
|
|
435
|
-
<tr><td><code>qtest.ts</code></td><td><code>test-cases/&lt;id>?expandSteps=true</code>, <code>test-runs?parentId=&parentType=test-cycle|test-suite</code></td><td><code>test-runs/&lt;id>/auto-test-logs</code> with <code>test_step_logs</code>; cases read by id get a new test cycle and test runs</td></tr>
|
|
436
|
-
<tr><td><code>confluence.ts</code></td><td>Cloud: <code>api/v2/pages/&lt;id>?body-format=storage</code>, CQL through <code>rest/api/search</code>. Server/DC: <code>rest/api/content</code>. Storage format to text with table cells kept apart</td><td>nothing; for the <code>read_confluence</code> tool</td></tr>
|
|
437
|
-
<tr><td><code>bugs.ts</code></td><td>nothing</td><td>with <code>sources.bugs</code>: per failed case, find an open bug by the case's fingerprint label/tag (JQL <code>labels = … AND statusCategory != Done</code>, or WIQL <code>Tags CONTAINS … AND State NOT IN (…)</code>); comment "Still failing" on it, or create one (ADF or ReproSteps HTML, labels/tags, area path, screenshot attachment, "Relates" link or <code>TestedBy-Forward</code> relation to the test case). A passed case notes on its open bug that it passes again</td></tr>
|
|
425
|
+
<tr><td data-label="Module"><code>files.ts</code></td><td data-label="Reads">text (<code>---</code> blocks), CSV (RFC 4180; step rows continue a case), YAML/JSON, Gherkin (Background, Outline × Examples, Then → expected)</td><td data-label="Writes back">nothing</td></tr>
|
|
426
|
+
<tr><td data-label="Module"><code>ado.ts</code></td><td data-label="Reads"><code>workitemsbatch</code> for ids; <code>testplan</code> suites and test points with <code>x-ms-continuationtoken</code> paging; the Steps XML (fast-xml-parser, order kept), shared steps through <code>compref</code>, parameter rows from <code>LocalDataSource</code></td><td data-label="Writes back">a test run per plan: create with the point ids, set each result's outcome and comment, complete the run. Cases read by id: a work-item comment</td></tr>
|
|
427
|
+
<tr><td data-label="Module"><code>jira.ts</code></td><td data-label="Reads">Cloud: <code>/rest/api/3/search/jql</code> (<code>nextPageToken</code>), ADF descriptions. Server/DC: <code>/rest/api/2/search</code> (<code>startAt</code>), bearer PAT</td><td data-label="Writes back">an issue comment (ADF on Cloud)</td></tr>
|
|
428
|
+
<tr><td data-label="Module"><code>xray.ts</code></td><td data-label="Reads">Cloud: token from <code>/api/v2/authenticate</code>, then GraphQL <code>getTests</code> / <code>getTestPlans</code>. Server/DC: <code>/rest/raven/1.0/api/test</code> and <code>testPlanTests</code> JQL</td><td data-label="Writes back">an import per plan: a Test Execution with statuses, step statuses and actual results, comments, and <code>failure.png</code> as evidence</td></tr>
|
|
429
|
+
<tr><td data-label="Module"><code>testrail.ts</code></td><td data-label="Reads"><code>get_case</code>, <code>get_tests/&lt;run></code>, <code>get_plan</code>, <code>get_cases/&lt;project>&suite_id=</code> (paged by <code>_links.next</code>); separated steps or the text template</td><td data-label="Writes back"><code>add_results_for_cases</code> on the source run, or <code>add_run</code> per suite; <code>custom_step_results</code>; <code>add_attachment_to_result</code> for <code>failure.png</code></td></tr>
|
|
430
|
+
<tr><td data-label="Module"><code>zephyr.ts</code></td><td data-label="Reads">Zephyr Scale Cloud v2: <code>testcases/&lt;key></code>, <code>teststeps</code> (call-to-test inlined to depth 2), <code>testexecutions?testCycle=</code>, <code>testcases?folderId=</code></td><td data-label="Writes back"><code>testexecutions</code> per case with <code>testScriptResults</code>, in the source cycle or a new <code>testcycles</code> per project</td></tr>
|
|
431
|
+
<tr><td data-label="Module"><code>qtest.ts</code></td><td data-label="Reads"><code>test-cases/&lt;id>?expandSteps=true</code>, <code>test-runs?parentId=&parentType=test-cycle|test-suite</code></td><td data-label="Writes back"><code>test-runs/&lt;id>/auto-test-logs</code> with <code>test_step_logs</code>; cases read by id get a new test cycle and test runs</td></tr>
|
|
432
|
+
<tr><td data-label="Module"><code>confluence.ts</code></td><td data-label="Reads">Cloud: <code>api/v2/pages/&lt;id>?body-format=storage</code>, CQL through <code>rest/api/search</code>. Server/DC: <code>rest/api/content</code>. Storage format to text with table cells kept apart</td><td data-label="Writes back">nothing; for the <code>read_confluence</code> tool</td></tr>
|
|
433
|
+
<tr><td data-label="Module"><code>bugs.ts</code></td><td data-label="Reads">nothing</td><td data-label="Writes back">with <code>sources.bugs</code>: per failed case, find an open bug by the case's fingerprint label/tag (JQL <code>labels = … AND statusCategory != Done</code>, or WIQL <code>Tags CONTAINS … AND State NOT IN (…)</code>); comment "Still failing" on it, or create one (ADF or ReproSteps HTML, labels/tags, area path, screenshot attachment, "Relates" link or <code>TestedBy-Forward</code> relation to the test case). A passed case notes on its open bug that it passes again</td></tr>
|
|
438
434
|
</tbody>
|
|
439
435
|
</table></div>
|
|
440
436
|
<p>Every write-back includes the step verdicts, and retries once without the step details when a system rejects them. Each <code>WriteBack</code> carries the <code>caseId</code> it is about, so the report shows it with that case.</p>
|
|
@@ -528,15 +524,15 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
528
524
|
</ul>
|
|
529
525
|
<h2 id="model-router-srcrouter"><a href="#model-router-srcrouter" class="hash">#</a>Model router (<code>src/router</code>)</h2>
|
|
530
526
|
<p>With more than one profile in <code>llms.json</code>, <code>llm.routing</code> (<code>off</code>, <code>shadow</code> or <code>auto</code>) gives each area of work the profile it needs. <code>forgeqe init</code> writes <code>auto</code>, and an existing project without the key is <code>off</code>. <a href="../model-routing/index.html">MODEL_ROUTING.md</a> is the user's guide.</p>
|
|
531
|
-
<div class="tbl"><table>
|
|
527
|
+
<div class="tbl tbl--cols-2"><table>
|
|
532
528
|
<thead>
|
|
533
529
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
534
530
|
</thead>
|
|
535
531
|
<tbody>
|
|
536
|
-
<tr><td><code>config.ts</code></td><td>The six areas (<code>agent</code>, <code>browser</code>, <code>coding</code>, <code>review</code>, <code>analysis</code>, <code>planning</code>), each with its rating bar and whether it needs images or tool calls. <code>parseRouting</code> reads <code>llm.routing</code> and <code>llm.routes</code>, and stops ForgeQE at start on an unknown area or a name that is not a profile</td></tr>
|
|
537
|
-
<tr><td><code>facts.ts</code></td><td><code>profileFacts</code>: window, images, tool calls, reasoning, release date and price, from <code>llms.json</code>, the live check, and the public model lists. <code>probeProfile</code> runs <code>python -m forgeqe_engine probe</code> (<code>py/forgeqe_engine/probe.py</code>) with the profile on stdin and only that profile's key (or Entra variables) in its environment. The probe makes two calls through the browser agent's own client: a structured "Reply with ok set to true", and a 16-pixel red square generated in code, to learn whether the model takes images. It has a 60 s limit</td></tr>
|
|
538
|
-
<tr><td><code>profile.ts</code></td><td><code>rateModels</code>: the <code>forgeqe-model-profile</code> agent (edit, bash and webfetch denied) on the active profile gets <code>profileRequest</code>. That is each model's facts and answer time, never a key, an endpoint or an account. It returns a tier and 1–5 ratings per area. <code>sanitizeProfile</code> keeps only configured profile names, known areas and tiers, ratings rounded and held to 1–5, and a reason of at most 200 characters without control characters or <code><</code> <code>></code>. This happens to the reply and again on every read of <code>.forgeqe/model-profile.json</code>. The file's <code>fingerprint</code> (each profile's name, provider, model, deployment and endpoint) makes ForgeQE rate the models again when the profiles change</td></tr>
|
|
539
|
-
<tr><td><code>route.ts</code></td><td><code>routedConfig(cfg, area)</code> at each call site. The router stays out for <code>--profile</code> / <code>WP_LLM_PROFILE</code> and for <code>code.model</code> (all areas but <code>browser</code>). <code>knowledge</code> checks and rates the models once per process, and only when two or more profiles have a key. <code>choose</code> rules out a model with no key, a failed check, no images for <code>browser</code>, no tools, or too small a window. Among the models rated at the area's bar it picks by <code>llm.strategy</code> (<code>strategyFor</code>): the lead areas (<code>agent</code>, <code>planning</code>) get the most capable, the others the best value (<code>pricePenalties</code>: one rating point worth up to <code>RATING_WORTH</code>× the price), or the cheapest with <code>cost</code>; else the best rated. Each pick goes to the session log as <code>model.route</code>. In <code>shadow</code> it is only logged. <code>escalate</code> gives a root-cause analysis one stronger model. <code>routeTable</code> is <code>forgeqe models --routes</code> (<code>--profile-models</code> checks and rates again)</td></tr>
|
|
532
|
+
<tr><td data-label="Module"><code>config.ts</code></td><td data-label="Contents">The six areas (<code>agent</code>, <code>browser</code>, <code>coding</code>, <code>review</code>, <code>analysis</code>, <code>planning</code>), each with its rating bar and whether it needs images or tool calls. <code>parseRouting</code> reads <code>llm.routing</code> and <code>llm.routes</code>, and stops ForgeQE at start on an unknown area or a name that is not a profile</td></tr>
|
|
533
|
+
<tr><td data-label="Module"><code>facts.ts</code></td><td data-label="Contents"><code>profileFacts</code>: window, images, tool calls, reasoning, release date and price, from <code>llms.json</code>, the live check, and the public model lists. <code>probeProfile</code> runs <code>python -m forgeqe_engine probe</code> (<code>py/forgeqe_engine/probe.py</code>) with the profile on stdin and only that profile's key (or Entra variables) in its environment. The probe makes two calls through the browser agent's own client: a structured "Reply with ok set to true", and a 16-pixel red square generated in code, to learn whether the model takes images. It has a 60 s limit</td></tr>
|
|
534
|
+
<tr><td data-label="Module"><code>profile.ts</code></td><td data-label="Contents"><code>rateModels</code>: the <code>forgeqe-model-profile</code> agent (edit, bash and webfetch denied) on the active profile gets <code>profileRequest</code>. That is each model's facts and answer time, never a key, an endpoint or an account. It returns a tier and 1–5 ratings per area. <code>sanitizeProfile</code> keeps only configured profile names, known areas and tiers, ratings rounded and held to 1–5, and a reason of at most 200 characters without control characters or <code><</code> <code>></code>. This happens to the reply and again on every read of <code>.forgeqe/model-profile.json</code>. The file's <code>fingerprint</code> (each profile's name, provider, model, deployment and endpoint) makes ForgeQE rate the models again when the profiles change</td></tr>
|
|
535
|
+
<tr><td data-label="Module"><code>route.ts</code></td><td data-label="Contents"><code>routedConfig(cfg, area)</code> at each call site. The router stays out for <code>--profile</code> / <code>WP_LLM_PROFILE</code> and for <code>code.model</code> (all areas but <code>browser</code>). <code>knowledge</code> checks and rates the models once per process, and only when two or more profiles have a key. <code>choose</code> rules out a model with no key, a failed check, no images for <code>browser</code>, no tools, or too small a window. Among the models rated at the area's bar it picks by <code>llm.strategy</code> (<code>strategyFor</code>): the lead areas (<code>agent</code>, <code>planning</code>) get the most capable, the others the best value (<code>pricePenalties</code>: one rating point worth up to <code>RATING_WORTH</code>× the price), or the cheapest with <code>cost</code>; else the best rated. Each pick goes to the session log as <code>model.route</code>. In <code>shadow</code> it is only logged. <code>escalate</code> gives a root-cause analysis one stronger model. <code>routeTable</code> is <code>forgeqe models --routes</code> (<code>--profile-models</code> checks and rates again)</td></tr>
|
|
540
536
|
</tbody>
|
|
541
537
|
</table></div>
|
|
542
538
|
<p>ForgeQE's agent is routed once, when its session opens (<code>brain/index.ts</code>), so its prompt cache survives. With routing on, any profile in <code>llms.json</code> that has a key can receive prompts, page content, screenshots and code excerpts, and each gets the live check. <code>llm.routing: off</code>, a single profile, or a pin per area in <code>llm.routes</code> keeps the work on one deployment. <code>tests/router.test.ts</code> covers the router.</p>
|
|
@@ -564,40 +560,40 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
564
560
|
</ul>
|
|
565
561
|
<h2 id="monitoring-srcmonitor"><a href="#monitoring-srcmonitor" class="hash">#</a>Monitoring (<code>src/monitor</code>)</h2>
|
|
566
562
|
<p><code>forgeqe monitor</code> is <code>runSuite</code> on a timer, plus memory between rounds of which checks are failing, plus alerts.</p>
|
|
567
|
-
<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><code>round: loadCases(monitor.checks) ──► runSuite (out_dir: .forgeqe/reports/monitor, code off, replay verify, write-back off)
|
|
568
|
-
│ │ case results (+ forgeqe-monitor: passed)
|
|
569
|
-
│ throws (source down, no cases) ▼
|
|
570
|
-
└──► forgeqe-monitor: error ──► decide(state.json, outcomes, now, fail_after, remind_every)
|
|
571
|
-
│ alerts: failing | still_failing | recovered
|
|
572
|
-
▼
|
|
573
|
-
sendAlerts ──► Teams webhook (Adaptive Card) and SMTP (nodemailer)
|
|
574
|
-
│
|
|
575
|
-
state.json, &lt;round>/alerts.json, prune rounds beyond keep
|
|
576
|
-
</code></pre></div>
|
|
577
|
-
<div class="tbl"><table>
|
|
563
|
+
<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">round: loadCases(monitor.checks) ──► runSuite (out_dir: .forgeqe/reports/monitor, code off, replay verify, write-back off)
|
|
564
|
+
</span></span><span class="ln"><span class="cmd"> │ │ case results (+ forgeqe-monitor: passed)
|
|
565
|
+
</span></span><span class="ln"><span class="cmd"> │ throws (source down, no cases) ▼
|
|
566
|
+
</span></span><span class="ln"><span class="cmd"> └──► forgeqe-monitor: error ──► decide(state.json, outcomes, now, fail_after, remind_every)
|
|
567
|
+
</span></span><span class="ln"><span class="cmd"> │ alerts: failing | still_failing | recovered
|
|
568
|
+
</span></span><span class="ln"><span class="cmd"> ▼
|
|
569
|
+
</span></span><span class="ln"><span class="cmd"> sendAlerts ──► Teams webhook (Adaptive Card) and SMTP (nodemailer)
|
|
570
|
+
</span></span><span class="ln"><span class="cmd"> │
|
|
571
|
+
</span></span><span class="ln"><span class="cmd"> state.json, &lt;round>/alerts.json, prune rounds beyond keep
|
|
572
|
+
</span></span></code></pre></div>
|
|
573
|
+
<div class="tbl tbl--cols-2"><table>
|
|
578
574
|
<thead>
|
|
579
575
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
580
576
|
</thead>
|
|
581
577
|
<tbody>
|
|
582
|
-
<tr><td><code>state.ts</code></td><td><code>decide</code> is pure: a failure starts or extends a failing streak (<code>since</code>, <code>failures</code>); the first alert goes out when the streak reaches <code>fail_after</code>, a <code>still_failing</code> reminder every <code>remind_every</code> after the last alert, and <code>recovered</code> on a pass after an alert (a streak that never alerted recovers silently). Stopped checks keep their state. A round that could not run reports only the <code>forgeqe-monitor</code> pseudo-check and keeps the others (<code>keepOthers</code>). <code>state.json</code> is written through a temp file and a rename</td></tr>
|
|
583
|
-
<tr><td><code>alerts.ts</code></td><td>One <code>AlertMessage</code> per round. <code>teamsPayload</code>: a <code>message</code> with one Adaptive Card 1.4 attachment (full width, a line per check with its failing step, a test case link, an Open report action), which classic incoming webhooks and Workflows webhooks both accept. <code>emailContent</code>: subject <code>[ForgeQE] &lt;title></code>, text and HTML, and the failing checks' <code>failure.png</code> (at most 5). <code>smtpTransport</code>: nodemailer with <code>secure</code> for port 465, STARTTLS when the server offers it, auth only when the username variable is set, and 20–30 s timeouts. <code>sendAlerts</code> sends to each channel independently and removes the webhook URL and the SMTP password from errors</td></tr>
|
|
584
|
-
<tr><td><code>run.ts</code></td><td><code>monitorRound</code> (load, run, decide, save, alert, prune), <code>runMonitor</code> (a lock file with the pid, <code>.monitor.lock</code>, refuses a second live monitor on the folder; rounds start <code>every</code> apart, or at once after an overrun; <code>--once</code> returns 0/1/2), <code>pruneRounds</code>, <code>formatRound</code>, <code>roundCard</code>, and <code>sendTestAlert</code></td></tr>
|
|
585
|
-
<tr><td><code>background.ts</code></td><td>Monitors started by the <code>monitor</code> tool: <code>runMonitor</code> with its own <code>AbortController</code> inside the process, one per <code>out_dir</code> (a second in the same process is refused, and <code>lockMonitor</code> is checked first so another process's monitor is too). Each round is emitted as a card, and a monitor that ends on an error emits a "Monitor stopped" card. <code>stopBackgroundMonitors</code> aborts and waits for them</td></tr>
|
|
578
|
+
<tr><td data-label="Module"><code>state.ts</code></td><td data-label="Contents"><code>decide</code> is pure: a failure starts or extends a failing streak (<code>since</code>, <code>failures</code>); the first alert goes out when the streak reaches <code>fail_after</code>, a <code>still_failing</code> reminder every <code>remind_every</code> after the last alert, and <code>recovered</code> on a pass after an alert (a streak that never alerted recovers silently). Stopped checks keep their state. A round that could not run reports only the <code>forgeqe-monitor</code> pseudo-check and keeps the others (<code>keepOthers</code>). <code>state.json</code> is written through a temp file and a rename</td></tr>
|
|
579
|
+
<tr><td data-label="Module"><code>alerts.ts</code></td><td data-label="Contents">One <code>AlertMessage</code> per round. <code>teamsPayload</code>: a <code>message</code> with one Adaptive Card 1.4 attachment (full width, a line per check with its failing step, a test case link, an Open report action), which classic incoming webhooks and Workflows webhooks both accept. <code>emailContent</code>: subject <code>[ForgeQE] &lt;title></code>, text and HTML, and the failing checks' <code>failure.png</code> (at most 5). <code>smtpTransport</code>: nodemailer with <code>secure</code> for port 465, STARTTLS when the server offers it, auth only when the username variable is set, and 20–30 s timeouts. <code>sendAlerts</code> sends to each channel independently and removes the webhook URL and the SMTP password from errors</td></tr>
|
|
580
|
+
<tr><td data-label="Module"><code>run.ts</code></td><td data-label="Contents"><code>monitorRound</code> (load, run, decide, save, alert, prune), <code>runMonitor</code> (a lock file with the pid, <code>.monitor.lock</code>, refuses a second live monitor on the folder; rounds start <code>every</code> apart, or at once after an overrun; <code>--once</code> returns 0/1/2), <code>pruneRounds</code>, <code>formatRound</code>, <code>roundCard</code>, and <code>sendTestAlert</code></td></tr>
|
|
581
|
+
<tr><td data-label="Module"><code>background.ts</code></td><td data-label="Contents">Monitors started by the <code>monitor</code> tool: <code>runMonitor</code> with its own <code>AbortController</code> inside the process, one per <code>out_dir</code> (a second in the same process is refused, and <code>lockMonitor</code> is checked first so another process's monitor is too). Each round is emitted as a card, and a monitor that ends on an error emits a "Monitor stopped" card. <code>stopBackgroundMonitors</code> aborts and waits for them</td></tr>
|
|
586
582
|
</tbody>
|
|
587
583
|
</table></div>
|
|
588
584
|
<p>Rounds are ordinary suite folders, so <code>report.html</code> gets trends and flaky checks from the sibling rounds' <code>suite.json</code>. <code>runDirectory</code> creates each run or suite folder itself and adds <code>-2</code>, <code>-3</code> when a folder for that second exists, so back-to-back rounds and parallel tool calls never share one. From the shell the brain can run a round, start a background monitor that lives as long as the shell, set up <code>monitor:</code> in <code>forgeqe.yaml</code>, and test the alerts. Monitoring that outlives the shell is a service, cron, or a scheduled pipeline running <code>forgeqe monitor --once</code> with <code>state.json</code> cached.</p>
|
|
589
585
|
<p><strong>Signing in.</strong> <code>signIn</code> in <code>src/logins.ts</code> drives the engine's <code>login</code> command: when the engine says the browser is open it calls <code>wait</code>, and sends <code>save</code> (true) or <code>stop</code> (false, or on abort). <code>forgeqe login</code> wraps it with readline and Ctrl-C; the <code>logins</code> tool passes <code>ctx.waitForUser</code>.</p>
|
|
590
586
|
<h2 id="telemetry-srcprivacyts"><a href="#telemetry-srcprivacyts" class="hash">#</a>Telemetry (<code>src/privacy.ts</code>)</h2>
|
|
591
587
|
<p><code>withoutTelemetry(env)</code> is part of every child's environment: the engine and <code>forgeqe setup</code> (through <code>allowListEnv</code>), the test command and replay (through <code>withoutNames</code>, which also drops ForgeQE's own secrets), and the agent runtime server (through <code>serverEnv</code>). It drops <code>OTEL_EXPORTER_OTLP_*</code> and forces the opt-outs on:</p>
|
|
592
|
-
<div class="tbl"><table>
|
|
588
|
+
<div class="tbl tbl--cols-3"><table>
|
|
593
589
|
<thead>
|
|
594
590
|
<tr><th>Process</th><th>Variables</th><th>Effect</th></tr>
|
|
595
591
|
</thead>
|
|
596
592
|
<tbody>
|
|
597
|
-
<tr><td>Engine</td><td><code>ANONYMIZED_TELEMETRY=false</code>, and the library's cloud-sync and cost-calculation switches off</td><td>No PostHog client, no cloud sync, no LiteLLM price download</td></tr>
|
|
598
|
-
<tr><td>Agent runtime</td><td>Its auto-update, share, and model-catalogue switches off, and <code>experimental.openTelemetry: false</code> in the config</td><td>No update check, no share links, bundled model catalog, no AI SDK spans</td></tr>
|
|
599
|
-
<tr><td>Copilot gateway</td><td><code>enable_session_telemetry=False</code> on every Copilot session (<code>py/forgeqe_engine/copilot_gateway.py</code>)</td><td>No session telemetry to GitHub, which the Copilot SDK otherwise sends for a signed-in user</td></tr>
|
|
600
|
-
<tr><td>test command</td><td><code>DO_NOT_TRACK=1</code>, <code>OTEL_SDK_DISABLED=true</code>, and the Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress opt-outs</td><td>Framework CLIs a test may start stay quiet</td></tr>
|
|
593
|
+
<tr><td data-label="Process">Engine</td><td data-label="Variables"><code>ANONYMIZED_TELEMETRY=false</code>, and the library's cloud-sync and cost-calculation switches off</td><td data-label="Effect">No PostHog client, no cloud sync, no LiteLLM price download</td></tr>
|
|
594
|
+
<tr><td data-label="Process">Agent runtime</td><td data-label="Variables">Its auto-update, share, and model-catalogue switches off, and <code>experimental.openTelemetry: false</code> in the config</td><td data-label="Effect">No update check, no share links, bundled model catalog, no AI SDK spans</td></tr>
|
|
595
|
+
<tr><td data-label="Process">Copilot gateway</td><td data-label="Variables"><code>enable_session_telemetry=False</code> on every Copilot session (<code>py/forgeqe_engine/copilot_gateway.py</code>)</td><td data-label="Effect">No session telemetry to GitHub, which the Copilot SDK otherwise sends for a signed-in user</td></tr>
|
|
596
|
+
<tr><td data-label="Process">test command</td><td data-label="Variables"><code>DO_NOT_TRACK=1</code>, <code>OTEL_SDK_DISABLED=true</code>, and the Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress opt-outs</td><td data-label="Effect">Framework CLIs a test may start stay quiet</td></tr>
|
|
601
597
|
</tbody>
|
|
602
598
|
</table></div>
|
|
603
599
|
<p><code>cli.py</code> maps each <code>FORGEQE_ENGINE_&lt;NAME></code> to the setting the engine reads and sets the telemetry variables again with <code>os.environ.update</code>, so an engine started by hand behaves the same. <code>brand.install()</code> replaces the about:blank watchdog's animation, which loads a logo from the library's CDN, with ForgeQE's start page (which loads nothing). Chrome runs with the engine library's defaults (<code>--disable-background-networking</code>, <code>--metrics-recording-only</code>, <code>--no-pings</code>, <code>--disable-sync</code>, …).</p>
|
|
@@ -606,30 +602,30 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
606
602
|
<p>That is the active profile. With <code>llm.routing: auto</code>, each area of work can run on another profile from <code>llms.json</code>, which the <a href="#model-router-srcrouter">model router</a> picks per call site (<code>routedConfig</code>). <code>--profile</code>, <code>WP_LLM_PROFILE</code>, <code>code.model</code> and pins in <code>llm.routes</code> override the router. With <code>off</code> (the default when the key is missing), every call uses the active profile. The router never considers <code>mock</code> or a profile with provider <code>none</code>.</p>
|
|
607
603
|
<p><code>mock</code> is a test double, not a profile users see: it exists only when asked for by name (<code>--profile mock</code> or <code>WP_LLM_PROFILE=mock</code>). It never starts the Python engine: <code>src/engine/mock.ts</code> speaks the engine's stdin/stdout protocol (it opens the pinned URL and finishes, or fails when there is none) and <code>runEngine</code> runs it in its place, so offline runs and the test suite go through the same bridge, events, and reports as live runs without Python, a browser, or an API key. Its result has <code>driver: "synthetic"</code>, so it never becomes a test.</p>
|
|
608
604
|
<h2 id="artifacts"><a href="#artifacts" class="hash">#</a>Artifacts</h2>
|
|
609
|
-
<div class="tbl"><table>
|
|
605
|
+
<div class="tbl tbl--cols-2"><table>
|
|
610
606
|
<thead>
|
|
611
607
|
<tr><th>File</th><th>Contents</th></tr>
|
|
612
608
|
</thead>
|
|
613
609
|
<tbody>
|
|
614
|
-
<tr><td><code>run.json</code></td><td>Result, summary, usage, visited URLs, page memory (replayed, heals, repaired), browser diagnostics, the judge's verdict (<code>judge</code>), how the browser was set up (<code>browser</code>), and the browser skills added to the prompt (<code>skills</code>)</td></tr>
|
|
615
|
-
<tr><td><code>accessibility.json</code></td><td>Accessibility checks for each page visited</td></tr>
|
|
616
|
-
<tr><td><code>workflow.yaml</code></td><td><code>forgeqe-v2-compact</code> steps for replay or audit</td></tr>
|
|
617
|
-
<tr><td><code>trace.md</code></td><td>Task, results, failure trace</td></tr>
|
|
618
|
-
<tr><td><code>failure.png</code></td><td>Last screenshot of a failed run</td></tr>
|
|
619
|
-
<tr><td><code>steps.json</code>, <code>steps/NN.jpg</code></td><td>The step timeline and a screenshot per step</td></tr>
|
|
620
|
-
<tr><td><code>report.html</code></td><td>The run's own report</td></tr>
|
|
621
|
-
<tr><td><code>handoff.md</code></td><td>What the coding agent was given (only with a repo)</td></tr>
|
|
622
|
-
<tr><td><code>code.json</code></td><td>Coding result: status, attempts, test file, command, reused, changed, last test output, tokens</td></tr>
|
|
623
|
-
<tr><td><code>scribe-session.json</code></td><td>Quill's session for a job that stopped before it finished, reopened by a rerun</td></tr>
|
|
624
|
-
<tr><td><code>testcase.json</code></td><td>The test case a suite ran in this folder</td></tr>
|
|
625
|
-
<tr><td><code>junit.xml</code>, <code>report.html</code>, <code>suite.json</code></td><td>Suite reports, in <code>.forgeqe/reports/suites/&lt;time>/</code> above the case folders (monitoring rounds: <code>.forgeqe/reports/monitor/&lt;time>/</code>)</td></tr>
|
|
626
|
-
<tr><td><code>heal.json</code>, <code>heal.md</code></td><td>Healing result and report, in <code>.forgeqe/reports/heal/&lt;time>/</code> with the browser runs it made</td></tr>
|
|
627
|
-
<tr><td><code>state.json</code>, <code>alerts.json</code></td><td>Monitoring: which checks are failing and since when (<code>.forgeqe/reports/monitor/</code>), and what a round alerted and whether it was sent (in the round folder)</td></tr>
|
|
628
|
-
<tr><td><code>.forgeqe/model-profile.json</code></td><td>The model router's live checks and ratings, next to <code>forgeqe.yaml</code> (in <code>FORGEQE_HOME</code>, by default <code>~/.forgeqe</code>, without a config file). Checked on every read, and made again when the profiles change</td></tr>
|
|
629
|
-
<tr><td><code>.forgeqe/generated.jsonl</code></td><td>In the repository: per Quill run, its <code>fq:</code> id and the files and lines it wrote</td></tr>
|
|
630
|
-
<tr><td><code>forgeqe-reports-&lt;user>-&lt;machine>-&lt;time>.json</code></td><td>A team report bundle from <code>forgeqe bi export</code> or <code>/report export</code>, in <code>.forgeqe/reports/shared/</code>. Teammates' bundles go in <code>.forgeqe/reports/collected/</code></td></tr>
|
|
631
|
-
<tr><td><code>flows.json</code>, <code>report.html</code></td><td>A data flow check, in <code>.forgeqe/reports/flows-&lt;time>/</code></td></tr>
|
|
632
|
-
<tr><td><code>suite.json</code>, <code>report.html</code></td><td>An API run's report, next to its <code>results.json</code> in <code>.forgeqe/reports/api/&lt;set>/runs/&lt;run>/</code></td></tr>
|
|
610
|
+
<tr><td data-label="File"><code>run.json</code></td><td data-label="Contents">Result, summary, usage, visited URLs, page memory (replayed, heals, repaired), browser diagnostics, the judge's verdict (<code>judge</code>), how the browser was set up (<code>browser</code>), and the browser skills added to the prompt (<code>skills</code>)</td></tr>
|
|
611
|
+
<tr><td data-label="File"><code>accessibility.json</code></td><td data-label="Contents">Accessibility checks for each page visited</td></tr>
|
|
612
|
+
<tr><td data-label="File"><code>workflow.yaml</code></td><td data-label="Contents"><code>forgeqe-v2-compact</code> steps for replay or audit</td></tr>
|
|
613
|
+
<tr><td data-label="File"><code>trace.md</code></td><td data-label="Contents">Task, results, failure trace</td></tr>
|
|
614
|
+
<tr><td data-label="File"><code>failure.png</code></td><td data-label="Contents">Last screenshot of a failed run</td></tr>
|
|
615
|
+
<tr><td data-label="File"><code>steps.json</code>, <code>steps/NN.jpg</code></td><td data-label="Contents">The step timeline and a screenshot per step</td></tr>
|
|
616
|
+
<tr><td data-label="File"><code>report.html</code></td><td data-label="Contents">The run's own report</td></tr>
|
|
617
|
+
<tr><td data-label="File"><code>handoff.md</code></td><td data-label="Contents">What the coding agent was given (only with a repo)</td></tr>
|
|
618
|
+
<tr><td data-label="File"><code>code.json</code></td><td data-label="Contents">Coding result: status, attempts, test file, command, reused, changed, last test output, tokens</td></tr>
|
|
619
|
+
<tr><td data-label="File"><code>scribe-session.json</code></td><td data-label="Contents">Quill's session for a job that stopped before it finished, reopened by a rerun</td></tr>
|
|
620
|
+
<tr><td data-label="File"><code>testcase.json</code></td><td data-label="Contents">The test case a suite ran in this folder</td></tr>
|
|
621
|
+
<tr><td data-label="File"><code>junit.xml</code>, <code>report.html</code>, <code>suite.json</code></td><td data-label="Contents">Suite reports, in <code>.forgeqe/reports/suites/&lt;time>/</code> above the case folders (monitoring rounds: <code>.forgeqe/reports/monitor/&lt;time>/</code>)</td></tr>
|
|
622
|
+
<tr><td data-label="File"><code>heal.json</code>, <code>heal.md</code></td><td data-label="Contents">Healing result and report, in <code>.forgeqe/reports/heal/&lt;time>/</code> with the browser runs it made</td></tr>
|
|
623
|
+
<tr><td data-label="File"><code>state.json</code>, <code>alerts.json</code></td><td data-label="Contents">Monitoring: which checks are failing and since when (<code>.forgeqe/reports/monitor/</code>), and what a round alerted and whether it was sent (in the round folder)</td></tr>
|
|
624
|
+
<tr><td data-label="File"><code>.forgeqe/model-profile.json</code></td><td data-label="Contents">The model router's live checks and ratings, next to <code>forgeqe.yaml</code> (in <code>FORGEQE_HOME</code>, by default <code>~/.forgeqe</code>, without a config file). Checked on every read, and made again when the profiles change</td></tr>
|
|
625
|
+
<tr><td data-label="File"><code>.forgeqe/generated.jsonl</code></td><td data-label="Contents">In the repository: per Quill run, its <code>fq:</code> id and the files and lines it wrote</td></tr>
|
|
626
|
+
<tr><td data-label="File"><code>forgeqe-reports-&lt;user>-&lt;machine>-&lt;time>.json</code></td><td data-label="Contents">A team report bundle from <code>forgeqe bi export</code> or <code>/report export</code>, in <code>.forgeqe/reports/shared/</code>. Teammates' bundles go in <code>.forgeqe/reports/collected/</code></td></tr>
|
|
627
|
+
<tr><td data-label="File"><code>flows.json</code>, <code>report.html</code></td><td data-label="Contents">A data flow check, in <code>.forgeqe/reports/flows-&lt;time>/</code></td></tr>
|
|
628
|
+
<tr><td data-label="File"><code>suite.json</code>, <code>report.html</code></td><td data-label="Contents">An API run's report, next to its <code>results.json</code> in <code>.forgeqe/reports/api/&lt;set>/runs/&lt;run>/</code></td></tr>
|
|
633
629
|
</tbody>
|
|
634
630
|
</table></div>
|
|
635
631
|
<h2 id="tests"><a href="#tests" class="hash">#</a>Tests</h2>
|
|
@@ -649,8 +645,8 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
649
645
|
|
|
650
646
|
</article>
|
|
651
647
|
<nav class="pager" aria-label="Previous and next">
|
|
652
|
-
<a class="prev" href="../
|
|
653
|
-
<a class="next" href="
|
|
648
|
+
<a class="prev" href="../area-systems/index.html"><small>Previous</small><span>Connected systems</span></a>
|
|
649
|
+
<a class="next" href="../../architecture-map/index.html"><small>Next</small><span>Architecture map</span></a>
|
|
654
650
|
</nav>
|
|
655
651
|
</main>
|
|
656
652
|
<aside class="docs-toc" aria-label="On this page">
|
|
@@ -660,7 +656,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
660
656
|
<footer class="foot">
|
|
661
657
|
<div class="container foot__row">
|
|
662
658
|
<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>
|
|
663
|
-
<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="
|
|
659
|
+
<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>
|
|
664
660
|
</div>
|
|
665
661
|
<p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
|
|
666
662
|
</footer>
|