@capagents/forgeqe 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +201 -13
- package/README.md +4 -2
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/docs-site/docs/architecture/index.html +2 -1
- package/dist/docs-site/docs/index.html +188 -10
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +35 -6
- package/dist/forgeqe.js +1316 -1145
- package/dist/template.html +64 -64
- package/dist/web/assets/Agent-yd1DyMzR.js +4 -0
- package/dist/web/assets/ApiTests-BwOGta9J.js +10 -0
- package/dist/web/assets/Chat-P8GH_6gl.js +3 -0
- package/dist/web/assets/Data-D2iCqk3t.js +3 -0
- package/dist/web/assets/Features-Bu38clxs.js +1 -0
- package/dist/web/assets/Jobs-DymuaGeN.js +5 -0
- package/dist/web/assets/KindPage-zl6TBkEl.js +6 -0
- package/dist/web/assets/Migration-Cg_FUqS_.js +2 -0
- package/dist/web/assets/Quality-D3bSHP_B.js +1 -0
- package/dist/web/assets/Record-DkCLJos6.js +2 -0
- package/dist/web/assets/Regression-B2qMKjAE.js +5 -0
- package/dist/web/assets/Reports-D_G9yfDa.js +2 -0
- package/dist/web/assets/Response-BnPAefP-.js +4 -0
- package/dist/web/assets/Runs-DsDj9-LT.js +2 -0
- package/dist/web/assets/Shell-DlZHZN0d.js +3 -0
- package/dist/web/assets/TestData-qI1R5Q9v.js +2 -0
- package/dist/web/assets/WhatsNew-CoCHqSDm.js +1 -0
- package/dist/web/assets/accessibility-CH8EpEAV.svg +1 -0
- package/dist/web/assets/{arrow-down-BX18RHKM.js → arrow-down-BWCXlJU0.js} +1 -1
- package/dist/web/assets/arrow-right-CdxkQBV7.js +1 -0
- package/dist/web/assets/{bot-CLgiKzu9.js → bot-D8486kSA.js} +1 -1
- package/dist/web/assets/capgemini-mark-D6aZFnD3.png +0 -0
- package/dist/web/assets/chevron-up-CQz_ZmIK.js +1 -0
- package/dist/web/assets/circle-BqXBUsQS.js +1 -0
- package/dist/web/assets/{circle-dashed-CtRp9sew.js → circle-dashed-DlOiCbWD.js} +1 -1
- package/dist/web/assets/dataParts-bwNleJYd.js +3 -0
- package/dist/web/assets/forgeqe-logo-D3CwM2Jl.png +0 -0
- package/dist/web/assets/forgeqe-logo-white-CoE-hF2l.png +0 -0
- package/dist/web/assets/forgeqe-mark-ZLd4S3hw.png +0 -0
- package/dist/web/assets/index-Bh4NBbEU.js +37 -0
- package/dist/web/assets/index-DkgUrjyL.css +2 -0
- package/dist/web/assets/keyboard-wpCM6HMa.js +1 -0
- package/dist/web/assets/qualityParts-iy-mouSI.js +1 -0
- package/dist/web/assets/{thread-Y9TDe1cr.js → thread-BfW2V-2U.js} +1 -1
- package/dist/web/assets/upload-CwExsxOd.js +1 -0
- package/dist/web/assets/usePageChat-CzWbP_sa.js +1 -0
- package/dist/web/index.html +3 -3
- package/docs/ARCHITECTURE.md +2 -1
- package/docs/WEB_APP.md +36 -6
- package/docs/security-data-flow.html +3 -3
- package/docs/user-guide.html +188 -10
- package/forgeqe.example.yaml +8 -2
- package/package.json +5 -3
- package/prompts/api-tests.md +1 -1
- package/prompts/brain.md +8 -0
- package/prompts/browser-persona.md +14 -0
- package/prompts/db-agent.md +73 -0
- package/prompts/heal.md +1 -1
- package/prompts/migrate.md +54 -0
- package/prompts/test-agent.md +1 -0
- package/py/forgeqe_engine/cli.py +9 -1
- package/py/forgeqe_engine/copilot_gateway.py +162 -9
- package/py/forgeqe_engine/persona.py +435 -0
- package/py/forgeqe_engine/proceed.py +67 -0
- package/py/forgeqe_engine/service.py +93 -11
- package/skills/test-data/SKILL.md +4 -0
- package/dist/web/assets/Agent-CTDTMH3D.js +0 -3
- package/dist/web/assets/ApiTests-l1gZ56fZ.js +0 -10
- package/dist/web/assets/Chat-Dikg6l8H.js +0 -3
- package/dist/web/assets/Data-BwECmGVi.js +0 -4
- package/dist/web/assets/Features-B79B8aw4.js +0 -1
- package/dist/web/assets/Jobs-B0viFhNH.js +0 -5
- package/dist/web/assets/Quality-CjFsnbA2.js +0 -1
- package/dist/web/assets/Record-B-Eh1bgA.js +0 -2
- package/dist/web/assets/Regression-B7l83v3z.js +0 -5
- package/dist/web/assets/Reports-BuUlCohG.js +0 -2
- package/dist/web/assets/Response-BS_RT6Qd.js +0 -4
- package/dist/web/assets/Runs-C7TPphyI.js +0 -2
- package/dist/web/assets/Shell-Vg5t8ZK3.js +0 -3
- package/dist/web/assets/accessibility-BSaq_4Me.svg +0 -1
- package/dist/web/assets/capgemini-BO8ajcbd.svg +0 -21
- package/dist/web/assets/capgemini-white-ByjwPW8N.svg +0 -21
- package/dist/web/assets/circle-BF-xM9LZ.js +0 -1
- package/dist/web/assets/index-CDCzsK2N.css +0 -2
- package/dist/web/assets/index-DR8clS1u.js +0 -26
- package/dist/web/assets/markdown-CBbHCXbg.js +0 -10
- package/dist/web/assets/trending-up-DMQnalkJ.js +0 -1
- package/dist/web/assets/usePageChat-CSLmKGMO.js +0 -1
|
@@ -157,10 +157,10 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
|
|
|
157
157
|
<div class="area"><a href="#area-mobile" class="area-name"><span class="mono">Mobile</span></a><ul class="tiles"><li><a href="#cap-mobile-apps" class="tile"><b>Automate Android and iOS apps</b><span>Sign in to the courier app and accept the first delivery, and save it as a test</span></a></li></ul></div>
|
|
158
158
|
<div class="area"><a href="#area-operations" class="area-name"><span class="mono">Operations</span></a><ul class="tiles"><li><a href="#cap-containers" class="tile"><b>Services, mocks, workspace and browser in Docker or Podman</b><span>Start the database and the queue in Docker</span></a></li><li><a href="#cap-monitoring" class="tile"><b>Scheduled monitoring with alerts</b><span>Check the login flow every 15 minutes and alert Teams</span></a></li><li><a href="#cap-jobs" class="tile"><b>Background jobs on a schedule</b><span>Run the release-2.3 pack every weekday at 2am in the background</span></a></li><li><a href="#cap-custom-agents" class="tile"><b>Your team's custom agents</b><span>Ask our custom agent checkout-guard to check the basket on QA</span></a></li><li><a href="#cap-notifications" class="tile"><b>Teams and email notifications</b><span>Post the results to the QA channel</span></a></li><li><a href="#cap-pipelines" class="tile"><b>CI pipelines</b><span>Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make it green</span></a></li></ul></div>
|
|
159
159
|
<div class="area"><a href="#area-data" class="area-name"><span class="mono">Data</span></a><ul class="tiles"><li><a href="#cap-databases" class="tile"><b>Ask a database in plain language</b><span>Which customers in India have paid orders? Ask the orders database</span></a></li><li><a href="#cap-test-data" class="tile"><b>Test data on demand</b><span>Generate test data: 20 customers with 1 to 3 orders each in the shop database</span></a></li><li><a href="#cap-data-flows" class="tile"><b>Data flows between systems</b><span>Check that customers from the digital database reach the CRM correctly</span></a></li></ul></div>
|
|
160
|
-
<div class="area"><a href="#area-automated-tests" class="area-name"><span class="mono">Automated tests</span></a><ul class="tiles"><li><a href="#cap-write-tests" class="tile"><b>Turn a passed run into an automated test</b><span>Write a Playwright test for that run in ../app</span></a></li><li><a href="#cap-heal-tests" class="tile"><b>Heal failing tests</b><span>Heal the failing tests in ../app</span></a></li><li><a href="#cap-find-run-tests" class="tile"><b>Find and run existing tests</b><span>Run the checkout tests</span></a></li><li><a href="#cap-regression-packs" class="tile"><b>Regression packs for a release</b><span>Build a regression pack for sprint 12 and run it on TestMu</span></a></li><li><a href="#cap-flaky-tests" class="tile"><b>Flaky test detection and quarantine</b><span>Which tests are flaky?</span></a></li></ul></div>
|
|
160
|
+
<div class="area"><a href="#area-automated-tests" class="area-name"><span class="mono">Automated tests</span></a><ul class="tiles"><li><a href="#cap-write-tests" class="tile"><b>Turn a passed run into an automated test</b><span>Write a Playwright test for that run in ../app</span></a></li><li><a href="#cap-heal-tests" class="tile"><b>Heal failing tests</b><span>Heal the failing tests in ../app</span></a></li><li><a href="#cap-migrate-tests" class="tile"><b>Migrate a test suite</b><span>Migrate the Selenium tests in tests/ to Playwright TypeScript</span></a></li><li><a href="#cap-find-run-tests" class="tile"><b>Find and run existing tests</b><span>Run the checkout tests</span></a></li><li><a href="#cap-regression-packs" class="tile"><b>Regression packs for a release</b><span>Build a regression pack for sprint 12 and run it on TestMu</span></a></li><li><a href="#cap-flaky-tests" class="tile"><b>Flaky test detection and quarantine</b><span>Which tests are flaky?</span></a></li></ul></div>
|
|
161
161
|
<div class="area"><a href="#area-pull-requests" class="area-name"><span class="mono">Pull requests</span></a><ul class="tiles"><li><a href="#cap-pr-review" class="tile"><b>Review pull requests</b><span>Review PR 42 and focus on error handling</span></a></li><li><a href="#cap-pr-impact" class="tile"><b>Pull request impact and test selection</b><span>What does PR 42 impact?</span></a></li></ul></div>
|
|
162
162
|
<div class="area"><a href="#area-api" class="area-name"><span class="mono">API</span></a><ul class="tiles"><li><a href="#cap-api-testing" class="tile"><b>API and contract testing</b><span>Turn the last run's API calls into tests</span></a></li></ul></div>
|
|
163
|
-
<div class="area"><a href="#area-quality" class="area-name"><span class="mono">Quality</span></a><ul class="tiles"><li><a href="#cap-accessibility-performance" class="tile"><b>Accessibility and page performance</b><span>Is the checkout page accessible?</span></a></li><li><a href="#cap-visual-comparison" class="tile"><b>Visual comparison with baselines</b><span>What changed visually since the last run?</span></a></li><li><a href="#cap-defect-intelligence" class="tile"><b>Defect intelligence: trends and prediction</b><span>Which defects keep coming back?</span></a></li></ul></div>
|
|
163
|
+
<div class="area"><a href="#area-quality" class="area-name"><span class="mono">Quality</span></a><ul class="tiles"><li><a href="#cap-accessibility-performance" class="tile"><b>Accessibility and page performance</b><span>Is the checkout page accessible?</span></a></li><li><a href="#cap-accessibility-personas" class="tile"><b>Accessibility testing with personas</b><span>Act as a blind person and use the website to find accessibility issues</span></a></li><li><a href="#cap-visual-comparison" class="tile"><b>Visual comparison with baselines</b><span>What changed visually since the last run?</span></a></li><li><a href="#cap-defect-intelligence" class="tile"><b>Defect intelligence: trends and prediction</b><span>Which defects keep coming back?</span></a></li></ul></div>
|
|
164
164
|
<div class="area"><a href="#area-release" class="area-name"><span class="mono">Release</span></a><ul class="tiles"><li><a href="#cap-release-readiness" class="tile"><b>Requirement coverage and release readiness</b><span>Are we ready to release?</span></a></li><li><a href="#cap-reports" class="tile"><b>Reports you can share</b><span>Create a release report for all projects</span></a></li></ul></div>
|
|
165
165
|
<div class="area"><a href="#area-systems" class="area-name"><span class="mono">Systems</span></a><ul class="tiles"><li><a href="#cap-systems" class="tile"><b>Work with Azure DevOps, Jira, GitHub, and Confluence</b><span>Show the open bugs in this sprint</span></a></li><li><a href="#cap-system-data" class="tile"><b>Read any data in Azure DevOps, Jira, Xray, and Confluence, and open Azure DevOps pull requests</b><span>Are there open pull requests in any repository of QI-Claims?</span></a></li></ul></div>
|
|
166
166
|
<h3 class="band-title">Not supported</h3>
|
|
@@ -281,6 +281,7 @@ bun src/index.ts init --global --profile azure-gpt4o
|
|
|
281
281
|
<tbody>
|
|
282
282
|
<tr><td><code>model</code></td><td>The Copilot model, as the Copilot SDK names it (<code>gpt-4.1</code>, <code>claude-sonnet-4.6</code>). It must take screenshots. The sign-in lists your seat's models and which of them take images.</td></tr>
|
|
283
283
|
<tr><td><code>engine_model</code></td><td>Optional. Another Copilot model for the browser engine and the desktop agent.</td></tr>
|
|
284
|
+
<tr><td><code>reasoning_effort</code></td><td>Optional. How hard a reasoning model thinks: <code>low</code>, <code>medium</code>, <code>high</code>, <code>xhigh</code> or <code>max</code>. Sent only to a model your seat says takes one; unset, the model's default.</td></tr>
|
|
284
285
|
<tr><td><code>api_key_env</code></td><td>Optional. A variable that must hold the GitHub token for this profile. Without it ForgeQE uses <code>COPILOT_GITHUB_TOKEN</code>, then a token <code>forgeqe auth login copilot</code> saved, then the browser sign-in.</td></tr>
|
|
285
286
|
</tbody>
|
|
286
287
|
</table></div>
|
|
@@ -292,7 +293,15 @@ bun src/index.ts init --global --profile azure-gpt4o
|
|
|
292
293
|
<li><strong>Sign in with GitHub in the browser</strong> (recommended on your own computer). ForgeQE runs GitHub's own Copilot sign-in (<code>copilot login</code> from GitHub's Copilot CLI, downloaded once into <code>~/.forgeqe/tools</code> and checked against GitHub's checksums). Your browser opens GitHub; approve <strong>GitHub Copilot CLI</strong> there and you are signed in. GitHub's CLI keeps the sign-in in your system's credential store (Windows Credential Manager, the macOS Keychain); ForgeQE never sees a token. On a remote machine it shows a code to enter at github.com/login/device instead.</li>
|
|
293
294
|
<li><strong>A fine-grained token</strong>, for machines without a browser. ForgeQE opens GitHub's token page: set <strong>Resource owner</strong> to your personal account and add the <strong>Copilot Requests</strong> permission, then paste the token (<code>github_pat_...</code>). Each character shows as <code>*</code>, and ForgeQE confirms what it got (<code>github_pat_11AB…Wz9Q (93 characters)</code>). The token goes to your system's credential store like ForgeQE's other secrets. Classic tokens (<code>ghp_</code>) do not work with Copilot.</li>
|
|
294
295
|
</ul>
|
|
295
|
-
<p>Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to <code>llms.json</code>; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). <code>forgeqe auth</code> shows the sign-in on its <code>Copilot</code> line; <code>forgeqe auth logout copilot</code>
|
|
296
|
+
<p>Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to <code>llms.json</code>; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). <code>forgeqe auth</code> shows the sign-in on its <code>Copilot</code> line; <code>forgeqe auth logout copilot</code> signs out: Copilot removes the browser sign-in from this computer, the system's credential store included (GitHub keeps the authorization until you revoke <strong>GitHub Copilot CLI</strong> at github.com/settings/applications).</p>
|
|
297
|
+
<p><strong>GitHub Enterprise Cloud</strong> (a <code>ghe.com</code> address, with data residency): pick <strong>Sign in to your company's GitHub Enterprise</strong> and type the address (<code>acme.ghe.com</code>). ForgeQE keeps it with the sign-in as <code>COPILOT_GH_HOST</code>, which Copilot's sign-in and every Copilot call use; an exported <code>COPILOT_GH_HOST</code> or <code>GH_HOST</code> works the same. Signing in to github.com again forgets it.</p>
|
|
298
|
+
<p><strong>Choosing the model.</strong> <code>forgeqe models --copilot</code> lists your seat's models: whether each takes screenshots, its premium requests per call (0 is included in your plan) and the profiles that use it.</p>
|
|
299
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe models --copilot # the seat's models
|
|
300
|
+
forgeqe models --copilot --add claude-sonnet-4.6 --as sonnet # keep one as a profile in llms.json
|
|
301
|
+
forgeqe start --model claude-sonnet-4.6 # another Copilot model for this session only (also run, chat)
|
|
302
|
+
</code></pre></div>
|
|
303
|
+
<p><code>--add</code> takes <code>--engine-model</code> (a model that takes screenshots, for the browser, desktop and mobile agents) and <code>--default</code>. <code>--model</code> changes the model of the profile in use, which must be a <code>github_copilot</code> one. Every profile is then in the model picker (<code>/model</code>, or the model menu of <code>forgeqe web</code>), and in <strong>Settings, Models</strong> a Copilot profile's Model and Engine model are picked from your seat's list.</p>
|
|
304
|
+
<p><strong>Premium requests.</strong> Every Copilot call is one premium request times the model's multiplier. The usage ledger records them with each call, the router prefers a model with fewer per call when its rating is good enough, and <code>budget.premium_requests</code> in <code>forgeqe.yaml</code> (<code>run</code>, <code>day</code>, <code>month</code>) warns at 80, 90 and 100 percent like the money budgets. A rate limit or a used-up allowance is reported as such (HTTP 429), so the agents wait or stop rather than retry.</p>
|
|
296
305
|
<p>If your organization uses SAML single sign-on, GitHub asks you to authorize the organization during the browser sign-in. A Copilot Business or Enterprise seat needs your organization to allow <strong>Copilot CLI</strong> in its Copilot policies.</p>
|
|
297
306
|
<p>A token reaches only the gateway's process. The engine gets the gateway's address and a one-time key that works nowhere else; the gateway refuses requests without that key and any request a web page sends. Model-run shell commands never see the token or the key.</p>
|
|
298
307
|
<p>Which part uses what:</p>
|
|
@@ -323,6 +332,8 @@ bun src/index.ts init --global --profile azure-gpt4o
|
|
|
323
332
|
<tr><td><code>GitHub Copilot refused the sign-in</code> or <code>refused the token</code> (<code>Authorization error. Your credentials may be expired or invalid</code>)</td><td>Copilot received the credential and would not take it. A token wins over the browser sign-in: if <code>COPILOT_GITHUB_TOKEN</code> is set, or you once pasted a token, that is what was refused; remove it and run <code>forgeqe auth login copilot</code> in the browser. Otherwise sign in again. If it still fails and your seat comes from your company, a GitHub admin must allow Copilot CLI in the Copilot policies: the Copilot SDK runs on it.</td></tr>
|
|
324
333
|
<tr><td><code>… must be a Copilot model id</code>, <code>engine_model must be a Copilot model id</code></td><td>Fix that field in <code>llms.json</code>: the sign-in lists the seat's models. A GitHub Models id such as <code>openai/gpt-4.1</code> is not a Copilot id; use <code>gpt-4.1</code>.</td></tr>
|
|
325
334
|
<tr><td><code>No model in llms.json can … right now</code></td><td>Each model is listed with why it cannot be used and the fix. <code>forgeqe doctor</code> checks everything at once.</td></tr>
|
|
335
|
+
<tr><td><code>GitHub Copilot could not start: … failed to load runtime cdylib … LoadLibraryExW failed</code> (Windows)</td><td>Windows would not load Copilot's runtime library. ForgeQE tries it again on its own to learn Windows' reason and says it on the next line: your organisation's application control (AppLocker, Windows Defender Application Control) or antivirus blocking it, so IT must allow GitHub-signed files in <code>%LOCALAPPDATA%\github-copilot-sdk</code>; DirectX 12 missing (Windows Server without the Desktop Experience, some virtual desktops); or a damaged download, fixed by deleting <code>%LOCALAPPDATA%\github-copilot-sdk\cli</code> and signing in again.</td></tr>
|
|
336
|
+
<tr><td><code>GitHub Copilot: … (the seat's rate limit or premium request allowance …)</code></td><td>Copilot is rate limiting the seat, or its premium requests for the month are used up. Wait, or pick a model with a lower multiplier (<code>forgeqe models --copilot</code>); one included in your plan uses none.</td></tr>
|
|
326
337
|
<tr><td><code>GitHub's Copilot SDK is not installed in the ForgeQE engine</code></td><td>Run <code>forgeqe setup</code>. It installs the SDK from pypi.org; if that is blocked, <code>forgeqe doctor</code> says what to ask IT for.</td></tr>
|
|
327
338
|
<tr><td><code>Model for agent: main, because copilot failed its live check …</code></td><td>ForgeQE used your other model because Copilot did not answer; the message ends with the fix.</td></tr>
|
|
328
339
|
<tr><td>The model is refused, or not found</td><td>The seat's plan or your organization's Copilot policies do not allow that model: pick one the sign-in listed, or ask a Copilot admin to enable it.</td></tr>
|
|
@@ -380,6 +391,13 @@ browser:
|
|
|
380
391
|
video: true # video.mp4 of each run, shown in its report
|
|
381
392
|
# start_url: https://staging.example.com
|
|
382
393
|
</code></pre></div>
|
|
394
|
+
<p><strong>Reaching a limit.</strong> A run that reaches <code>max_steps</code> (after carrying on while it makes progress) or <code>timeout_seconds</code>
|
|
395
|
+
asks whether to carry on when someone can answer: in a chat, on the web app's pages, or in a terminal (<code>--yes</code> does not
|
|
396
|
+
ask). Carry on gives it as many steps, or as long, again; the browser stays open and paused while it asks, and the time
|
|
397
|
+
spent waiting does not count. Stop ends it there, keeping everything it did (its steps, screenshots, report and what it
|
|
398
|
+
recorded, such as an accessibility persona's barriers). No answer in 10 minutes is a stop. A run nobody can be asked
|
|
399
|
+
about (a schedule, CI, <code>--yes</code>) stops at its limit as before. A run that stops at a limit is not counted as passed.
|
|
400
|
+
<code>code.max_tokens</code> asks the same way for the coding agent and the API test writer.</p>
|
|
383
401
|
<p><code>judge</code> is off by default. When it is on, one more model call reads the finished run's steps and screenshots and can fail a run the agent completed, for example when five scores were read off one results page rather than one step per item. That strictness sent runs into loops of re-checking, so turn it on only when you want that second opinion.</p>
|
|
384
402
|
<p>Each step waits for the tab the agent is on to finish loading (up to 8 seconds, 3 for a tab that stays blank) before the page is read, so a result that opens in a new tab is not mistaken for a blank page.</p>
|
|
385
403
|
<p>With a visible browser (<code>headless: false</code> or <code>--headed</code>), ForgeQE opens on its own start page, and every page it drives gets a glowing edge and a bar along the bottom showing, in plain words, what the step is for and what the agent is doing ("Step 19 · Check whether the results can be sorted by Fastest · Looking through the page's buttons"). Your mouse and keyboard are locked while the agent thinks and unlocked while it clicks and types, so a stray click can't change the test. None of this appears in the screenshots the model sees or in the report. <code>overlay: false</code> turns it off. <code>forgeqe login <name></code> shows the same bar without the lock, since you are the one signing in.</p>
|
|
@@ -550,7 +568,7 @@ Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make i
|
|
|
550
568
|
<p><strong>Sidebar and rail.</strong> The sidebar has three short groups. <strong>Work</strong>: <strong>Home</strong>, <strong>This session</strong> (once you have asked something), <strong>Runs</strong>, <strong>Reports</strong> and <strong>Jobs</strong>. <strong>Knowledge</strong>: <strong>Knowledge</strong> (history and what ForgeQE has kept), <strong>Page memory</strong>, <strong>Test cases</strong>, <strong>Guardrails</strong> and <strong>Skills</strong>. <strong>System</strong>: <strong>Settings</strong> and <strong>Doctor</strong>. Each opens a page in the chat's place, laid out for what it shows, with its keys at the foot: tables to move through with ↑↓, and <strong>open ↗</strong> links that open a report or a skill in the browser. <strong>Test cases</strong> lives in your tracker, so its page offers the requests that fetch it and puts the one you choose in the composer to read before sending, beside the suite files in the repository. esc goes back. Models, sign-ins and environments are a command away (<code>/model</code>, <code>/auth</code>, <code>/env</code>; <code>/help</code> lists them all), and <strong>? help</strong> and <strong>docs ↗</strong> are at the top right of the start screen. Beside the chat the sidebar is a column with its labels from 194 columns, and a rail of its icons below that, so the start screen is always one click away: <strong>Home</strong> (or <code>/home</code>) shows it with the session still open, and <strong>▸ Back to the session</strong> or any request returns to it.</p>
|
|
551
569
|
<p><strong>Needs you and Today.</strong> Once there are runs, the start screen shows what needs you (runs that failed this week and have not passed since, and jobs whose last run failed, each with <strong>open</strong> and <strong>rerun</strong>) and what ran today. The greeting says how many runs there were today and how many failed. The model is in the composer beside <strong>⏎ Send</strong>: click it to change it. The status line shows the branch, the tracker, and when the next scheduled job runs.</p>
|
|
552
570
|
<p><strong>Command palette.</strong> Ctrl-P opens a palette of every action, command, profile, and example request; type a few letters to find one ("rr" finds <em>Refine my request</em>, "auth" finds the sign-in commands), ↑/↓ to choose, Enter to run it. Example requests are put in the prompt for you to edit, never sent straight away.</p>
|
|
553
|
-
<p><strong><code>/</code> and <code>@</code> in the prompt.</strong> Typing <code>/</code> lists the commands that match; typing <code>@</code> suggests references: recent runs (<em>last run</em>, then each by its folder), files in the
|
|
571
|
+
<p><strong><code>/</code> and <code>@</code> in the prompt.</strong> Typing <code>/</code> lists the commands that match; typing <code>@</code> suggests references: recent runs (<em>last run</em>, then each by its folder), files and folders in the folder the agent works in (<code>code.repo</code>, or <code>--repo</code>) by name or path (<code>@Login</code> finds <code>pages/Login.ts</code>), and, after <code>@</code> and a number such as <code>@1761</code>, the Azure DevOps work item with its title (read-only). Tab completes, ↑/↓ choose, Esc closes the list. A file goes in as <code>@path</code> (<code>@"my shots/login.png"</code> when it has a space) and is attached when you send: the agent is told to read it, and an image goes to the model as a picture when the model takes images. <code>forgeqe run "check @tests/cart.spec.ts"</code> does the same. <strong><code>/paste</code></strong> attaches the picture on the clipboard (a screenshot): it is saved as <code>.forgeqe/inbox/pasted-<time>.png</code> where the agent works and goes in the prompt as its <code>@path</code>, to send with your words (macOS and Windows read the clipboard themselves; Linux needs <code>wl-clipboard</code> or <code>xclip</code>). Hidden files, anything named like credentials, and paths out of that folder are refused, with why.</p>
|
|
554
572
|
<p><strong>Refine.</strong> Ctrl-R (or <em>Refine my request</em> in the palette) turns what you typed into a task specification for ForgeQE's agent, laid out as a system prompt and written in ASD-STE100 Simplified Technical English, before it is sent. It has these parts, in this order: <strong>Role</strong> (who the agent acts as), <strong>Objective</strong> (one instruction), <strong>Context</strong> (the facts, with names), <strong>Steps</strong> (only when they add something), <strong>Rules</strong> (your limits and the setup's), <strong>Output format</strong> (what comes back and how it is laid out), and <strong>Summary</strong> (what you get, in one sentence, read last):</p>
|
|
555
573
|
<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>Role: A release analyst who reads Azure DevOps deployments.
|
|
556
574
|
|
|
@@ -1710,6 +1728,7 @@ bun src/index.ts models --routes --profile-models # check and rate the models
|
|
|
1710
1728
|
<ul>
|
|
1711
1729
|
<li>The engine: PostHog telemetry, cloud sync, and the price-list download are off, and the blank-tab logo its library loads from a CDN is replaced by ForgeQE's start page, which loads nothing.</li>
|
|
1712
1730
|
<li>The agent runtime: auto-update, session sharing, OpenTelemetry spans, and the model catalogue download are off; it uses its bundled model list.</li>
|
|
1731
|
+
<li>GitHub Copilot: the Copilot SDK's session telemetry, on by default for a signed-in user, is off on every session.</li>
|
|
1713
1732
|
<li>The repo's test command: <code>DO_NOT_TRACK=1</code>, plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress.</li>
|
|
1714
1733
|
</ul>
|
|
1715
1734
|
<p><code>OTEL_EXPORTER_OTLP_*</code> variables are removed from those processes, and your environment cannot turn any of this back on. The traffic is to your model endpoint and the sites the agent visits. Besides that, ForgeQE downloads only public files: the model price lists from models.dev and LiteLLM, once a day (<code>FORGEQE_PRICES=off</code> stops them); the agent runtime from its GitHub releases, when it is not installed; and the engine's ad-block and cookie-banner extensions from the Chrome Web Store, once. Nothing about your runs is sent.</p>
|
|
@@ -3269,7 +3288,9 @@ reads, and runs if <code>permissions.production</code> lists them; anything else
|
|
|
3269
3288
|
channels are told (<code>agent_waiting</code>), and the agent's page shows it with Allow, Deny and, for a read or a run, Allow for
|
|
3270
3289
|
the rest of this run. No answer in four hours is a no. One run nobody watches of an agent goes at a time: a schedule
|
|
3271
3290
|
that fires while the last run still waits does not start, and its history says so. <code>runtime.max_tokens</code> sets a budget
|
|
3272
|
-
per run: the run stops when it has used that many model tokens
|
|
3291
|
+
per run: the run stops when it has used that many model tokens. When someone is watching (<code>forgeqe agent run</code> in a
|
|
3292
|
+
terminal, a chat, the agent's page), the run asks first: carry on with as much again (each yes is in its history), or
|
|
3293
|
+
stop. A run nobody watches is never asked, and stops.</p>
|
|
3273
3294
|
<p>Other systems' tools (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as <code><system>_<tool></code> (a dot in
|
|
3274
3295
|
a name becomes <code>_</code>; a name too long for MCP clients, or not a plain name, is left out). Every page of a server's tool
|
|
3275
3296
|
list is read; a tool is read-only only when the server marks it <code>readOnlyHint</code> and not also <code>destructiveHint</code>; a
|
|
@@ -3492,12 +3513,12 @@ minutes, once per schema change.</li>
|
|
|
3492
3513
|
</article>
|
|
3493
3514
|
<article class="spec feat" id="cap-test-data">
|
|
3494
3515
|
<div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
|
|
3495
|
-
<p class="ds">Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen.</p>
|
|
3516
|
+
<p class="ds">Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch.</p>
|
|
3496
3517
|
<div class="facts">
|
|
3497
|
-
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Generate test data: 20 customers with 1 to 3 orders each in the shop database</li><li>Make test data for the orders tables as CSV files for our automation</li><li>Insert 50 test users into the fixtures database</li><li>Copy 100 paid orders from prod into fixtures as a masked subset</li><li>Remove the test data batch we inserted yesterday</li></ul></div>
|
|
3518
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Generate test data: 20 customers with 1 to 3 orders each in the shop database</li><li>Make test data for the orders tables as CSV files for our automation</li><li>Insert 50 test users into the fixtures database</li><li>Copy 100 paid orders from prod into fixtures as a masked subset</li><li>Remove the test data batch we inserted yesterday</li><li>Ask the DB agent for a customer with two paid orders for the checkout test</li></ul></div>
|
|
3498
3519
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A database under databases: in forgeqe.yaml or env.yaml: a connection string in an environment variable (url_env), or host, database, user and password_env; auth: azure or aws_iam for token sign-in</span></li></ul></div>
|
|
3499
3520
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Inserts only into databases marked writable, after you confirm; removes only rows of a batch it inserted</li><li>A subset reads its source in read-only sessions; its start condition is a filter of one table, and personal columns are found by name (mask: adds others)</li><li>Simple CHECK constraints (a list of values, bounds) are read; other rules the database enforces may refuse rows, and then nothing is kept</li></ul></div>
|
|
3500
|
-
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>generate_test_data</code> <code>test_data_batches</code></p></div>
|
|
3521
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>generate_test_data</code> <code>test_data_batches</code> <code>request_test_data</code></p></div>
|
|
3501
3522
|
</div>
|
|
3502
3523
|
<div class="detail"><span class="mono">In detail</span>
|
|
3503
3524
|
<section class="doc" id="doc-how_to_use-test-data">
|
|
@@ -3597,6 +3618,60 @@ source's schema. Rows are taken in key order, so the same spec takes the same ro
|
|
|
3597
3618
|
<li><strong>Into a database</strong>, keys the target makes are new and every reference follows them; a subset never goes back into
|
|
3598
3619
|
its source. As files, keys stay as they were.</li>
|
|
3599
3620
|
</ul>
|
|
3621
|
+
<h5>Test data on request: the DB agent</h5>
|
|
3622
|
+
<p>Every agent can ask the <strong>DB agent</strong> for the test data it needs before it runs: the Orchestrator (<code>request_test_data</code>),
|
|
3623
|
+
Scribe, the API test writer and the healer (<code>data_request_test_data</code>), and a test case (<code>data: {request: ...}</code>). The
|
|
3624
|
+
request is in words; the DB agent reads the schema, then either finds <strong>existing rows</strong> with one read-only SELECT or
|
|
3625
|
+
designs <strong>new rows</strong> as a test data spec. Its answer is the data itself and the script that gets it again:</p>
|
|
3626
|
+
<div class="tbl"><table>
|
|
3627
|
+
<thead>
|
|
3628
|
+
<tr><th>Kind</th><th>The agent gets</th><th>Kept in <code>test-data/requests/<name>/</code></th></tr>
|
|
3629
|
+
</thead>
|
|
3630
|
+
<tbody>
|
|
3631
|
+
<tr><td>Existing rows (<code>kind: existing</code>)</td><td>The rows, and the SELECT as the data engine checked it</td><td><code>query.sql</code>, <code>rows.json</code>, <code>request.yaml</code></td></tr>
|
|
3632
|
+
<tr><td>New rows (<code>kind: new</code>)</td><td>The rows, and their INSERT statements in the database's dialect</td><td><code>spec.yaml</code> (with its seed), <code>data.sql</code>, <code>data.json</code>, <code>rows.json</code>, <code>request.yaml</code></td></tr>
|
|
3633
|
+
</tbody>
|
|
3634
|
+
</table></div>
|
|
3635
|
+
<p><code>auto</code> (the default) lets the DB agent pick. The DB agent never writes to a database: a statement the data engine sees
|
|
3636
|
+
as a write is refused, and new rows only go to files. Keys the database fills (serial, identity) are left out of
|
|
3637
|
+
<code>data.sql</code>, so the script runs on a database that already has rows.</p>
|
|
3638
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe data request "two movies with more than 100 votes" --db imdb --kind existing --rows 2
|
|
3639
|
+
forgeqe data request "a queued watchlist entry for a new viewer" --db imdb --kind new --name queued-watchlist
|
|
3640
|
+
forgeqe data requests # the kept requests
|
|
3641
|
+
forgeqe data fetch queued-watchlist --json # the same data again, no model: the query runs again, the spec makes the same rows
|
|
3642
|
+
psql "$IMDB_URL" -f test-data/requests/queued-watchlist/data.sql # or insert as a batch: forgeqe data gen test-data/requests/queued-watchlist/spec.yaml --insert --yes
|
|
3643
|
+
</code></pre></div>
|
|
3644
|
+
<p>In the web app, Data, Ask asks the same way, and the Test data page logs every request: which agent asked, what for, when, and the answer (also <code>forgeqe data log</code>), with the kept requests to fetch again. Without a model the request takes your own SQL or spec (<code>sql:</code> or <code>spec:</code> on the tool). In a test case:</p>
|
|
3645
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>- title: Watchlist shows a queued title
|
|
3646
|
+
data: {request: "a queued watchlist entry for a new viewer", kind: new, name: queued-watchlist}
|
|
3647
|
+
steps:
|
|
3648
|
+
- action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
|
|
3649
|
+
</code></pre></div>
|
|
3650
|
+
<p>The first run asks the DB agent and keeps the request; later runs fetch it from <code>test-data/requests/<name></code> with no
|
|
3651
|
+
model. Existing rows are used as they are (<code>{{data.result.0.<column>}}</code>, nothing to remove after); new rows go in as a
|
|
3652
|
+
batch before the case and are removed after it when the database is marked <code>writable</code>.</p>
|
|
3653
|
+
<p><strong>Ask in words.</strong> Data, Ask (or <code>forgeqe data ask "<question>" --db NAME --as query|checks|script</code>) has the DB agent
|
|
3654
|
+
turn a question into a checked read-only query and its rows (kept in <code>test-data/queries</code>), data checks (each a SELECT
|
|
3655
|
+
that returns the rows breaking one rule; kept in <code>test-data/checks</code>, run again with <code>forgeqe data checks <name></code>), or a
|
|
3656
|
+
database test for pytest or Playwright (kept in <code>test-data/scripts</code>, never run by ForgeQE; it reads its connection
|
|
3657
|
+
string from an environment variable, and a script holding a password or a connection string is refused).</p>
|
|
3658
|
+
<p><strong>Databases from Docker images.</strong> The databases the DB agent reads can run in containers that <code>forgeqe services up</code>
|
|
3659
|
+
starts (see <a href="#doc-how_to_use-containers-and-mock-services">Containers and mock services</a>), for example the sample databases of the
|
|
3660
|
+
Database Agent in test-agent-nexus (<code>docker-compose.yml</code>, profile <code>db-agent-demos</code>). The container's password and the
|
|
3661
|
+
connection's <code>password_env</code> are different variables: a database's secrets are ForgeQE's own and never go to a container.</p>
|
|
3662
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>containers:
|
|
3663
|
+
services:
|
|
3664
|
+
imdb:
|
|
3665
|
+
image: postgres:16.4-alpine # test-agent-nexus' demo-imdb, pinned
|
|
3666
|
+
ports: ["5437:5432"]
|
|
3667
|
+
env: { POSTGRES_DB: imdb, POSTGRES_USER: nexus }
|
|
3668
|
+
secrets: [POSTGRES_PASSWORD]
|
|
3669
|
+
volumes: ["./db/imdb:/docker-entrypoint-initdb.d"] # 01_schema.sql, 02_seed.sql from test-agent-nexus
|
|
3670
|
+
ready: { tcp: 5432 }
|
|
3671
|
+
databases:
|
|
3672
|
+
imdb: { engine: postgres, host: 127.0.0.1, port: 5437, database: imdb, user: nexus, password_env: IMDB_DB_PASSWORD, ssl: disable, writable: true }
|
|
3673
|
+
</code></pre></div>
|
|
3674
|
+
<p><code>tests/data-request.live.test.ts</code> runs the DB agent against that database in Docker.</p>
|
|
3600
3675
|
</div>
|
|
3601
3676
|
</section>
|
|
3602
3677
|
</div>
|
|
@@ -3882,6 +3957,7 @@ forgeqe run "..." --no-code # no tests
|
|
|
3882
3957
|
</tbody>
|
|
3883
3958
|
</table></div>
|
|
3884
3959
|
<p>A card says which it did and why (<em>Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing</em>). Say how when you know ("extend the login test", "write a separate test", "update it") and ForgeQE's agent passes that on without asking. In every mode Scribe adds page-object members rather than changing what an existing member does for the other tests that use it.</p>
|
|
3960
|
+
<p><strong>Copied code is measured.</strong> Before Scribe starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in the test (<code>tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26</code>), and judges it by the test rules: a copy that should reuse what is there is an issue Scribe fixes. <code>code.duplicates: false</code> turns it off.</p>
|
|
3885
3961
|
<p><strong>The same flow asked again.</strong> When a session writes tests and you ask for a flow an earlier job already wrote a test for, ForgeQE runs that test first, before any browser run. If it passes in a real browser, that is the answer: no browser run, no Scribe, and no new test file, in the seconds the test takes (<em>✓ Existing test passed · 19s · no browser run or new test needed</em>). If it fails, the flow runs in the browser and Scribe updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for "a fresh run" or "a new test" to skip the reuse.</p>
|
|
3886
3962
|
<p><strong>The run as a test would do it.</strong> The browser agent works through the same page a test meets, and the handoff tells Scribe everything it did on the way:</p>
|
|
3887
3963
|
<ul>
|
|
@@ -3956,6 +4032,52 @@ forgeqe heal -- npx playwright test --project=chromium # everything after -- i
|
|
|
3956
4032
|
</section>
|
|
3957
4033
|
</div>
|
|
3958
4034
|
</article>
|
|
4035
|
+
<article class="spec feat" id="cap-migrate-tests">
|
|
4036
|
+
<div class="hd"><span class="mono">Automated tests</span><h3>Migrate a test suite</h3></div>
|
|
4037
|
+
<p class="ds">Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working.</p>
|
|
4038
|
+
<div class="facts">
|
|
4039
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Migrate the Selenium tests in tests/ to Playwright TypeScript</li></ul></div>
|
|
4040
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Scribe: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li><li><span class="need input">You give</span><span>a git repository with the tests to migrate</span></li></ul></div>
|
|
4041
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>migrate_tests</code></p></div>
|
|
4042
|
+
</div>
|
|
4043
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
4044
|
+
<section class="doc" id="doc-how_to_use-migrating-a-test-suite">
|
|
4045
|
+
<h4>Migrating a test suite</h4>
|
|
4046
|
+
<div class="prose"><p><code>forgeqe migrate</code> moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO or Selenium (Python, Java, C#). <code>forgeqe migrate targets</code> lists them. It always starts with a plan, which writes nothing:</p>
|
|
4047
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected
|
|
4048
|
+
forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only "checkout/**" \
|
|
4049
|
+
--instructions "Page objects go in pages/, one class per page"
|
|
4050
|
+
forgeqe migrate confirm mig-20261103-101500-ab12 --accept-limits # a person at a terminal types the plan's id
|
|
4051
|
+
forgeqe migrate run mig-20261103-101500-ab12 # here, or as a job:
|
|
4052
|
+
forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12
|
|
4053
|
+
forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python
|
|
4054
|
+
forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript
|
|
4055
|
+
forgeqe migrate verify mig-… [--workspace ws-…] # run every migrated test again (no model)
|
|
4056
|
+
forgeqe migrate fix mig-… --unit u006 --note "The payment page opens in a new tab" # the fixing agent on one file
|
|
4057
|
+
</code></pre></div>
|
|
4058
|
+
<p>The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that
|
|
4059
|
+
holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder
|
|
4060
|
+
anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into
|
|
4061
|
+
a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and
|
|
4062
|
+
dependency folders are not copied.</p>
|
|
4063
|
+
<ol>
|
|
4064
|
+
<li><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions (<code>test_login.py</code> for pytest, <code>LoginTest.java</code> for JUnit, <code>login.cy.ts</code> for Cypress), and checks what is possible.</li>
|
|
4065
|
+
<li><strong>What is possible.</strong> A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all.</li>
|
|
4066
|
+
<li><strong>Confirm.</strong> A person confirms the plan: at a terminal by typing its id, or on the Migration page of <code>forgeqe web</code>. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.</li>
|
|
4067
|
+
<li><strong>Run.</strong> The setup step makes the target folder a project of its own (<code>package.json</code> and <code>playwright.config.ts</code>, <code>requirements.txt</code> and <code>conftest.py</code>, <code>pom.xml</code>, a <code>.csproj</code>). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (<code>npx playwright test login.spec.ts</code>, <code>python3 -m pytest test_login.py</code>, <code>mvn -q test -Dtest=LoginTest</code>) and started without a shell. A failure goes back to the agent with the output, up to <code>code.max_attempts</code> times.</li>
|
|
4068
|
+
<li><strong>Validate and fix.</strong> When every file is done, ForgeQE runs each migrated test again with all files in place, and
|
|
4069
|
+
counts its tests and assertion lines against the source. Each test that fails goes to the fixing agent with its
|
|
4070
|
+
output, then runs again. From the page or with <code>forgeqe migrate fix</code>, you can send a test to the fixing agent
|
|
4071
|
+
yourself with a note.</li>
|
|
4072
|
+
<li><strong>Report.</strong> A test is <em>migrated</em> only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and <em>written</em> otherwise. A file the agent could not do is <em>failed</em> or <em>cannot be migrated</em>, with why. The run is <code>migrated</code> (every test), <code>partial</code> or <code>failed</code>. A model error never counts as a migrated file. The source tests are never changed. <code>migrate.md</code> and <code>result.json</code> are in <code>.forgeqe/migrations/<plan>/</code>, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.</li>
|
|
4073
|
+
</ol>
|
|
4074
|
+
<p>Exit codes of <code>migrate run</code>: <code>0</code> every test migrated, <code>1</code> some or none, <code>2</code> stopped. The Migration page of <code>forgeqe web</code> does all of this in four steps (source, target, instructions, review), then follows
|
|
4075
|
+
the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
|
|
4076
|
+
In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.</p>
|
|
4077
|
+
</div>
|
|
4078
|
+
</section>
|
|
4079
|
+
</div>
|
|
4080
|
+
</article>
|
|
3959
4081
|
<article class="spec feat" id="cap-find-run-tests">
|
|
3960
4082
|
<div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
|
|
3961
4083
|
<p class="ds">Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test.</p>
|
|
@@ -4156,8 +4278,9 @@ Review my open pull requests
|
|
|
4156
4278
|
</code></pre></div>
|
|
4157
4279
|
<ol>
|
|
4158
4280
|
<li>ForgeQE reads the pull request: title, description, source and target branch, and the linked work items with their acceptance criteria (Azure DevOps, through its REST API with <code>sources.azure_devops</code>), or the linked issues (GitHub, through <code>gh</code>, which must be signed in with <code>gh auth login</code>).</li>
|
|
4159
|
-
<li>It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or <code>repo</code>) must be a clone of the pull request's repository.</li>
|
|
4160
|
-
<li>Scribe reviews the diff read-only, reading the code around each change: bugs, security, what the linked work items ask for, missing tests, performance, and compatibility. Each finding has a severity (blocker, major, minor, nit), the file and line, the problem, and a suggestion. <code>code.review_profile</code> picks a cheaper model for it, as for test reviews
|
|
4281
|
+
<li>It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or <code>repo</code>) must be a clone of the pull request's repository. The reviewer's skills come from that clone and your own skill folders, never from the pull request, so a skill the pull request adds cannot steer its own review.</li>
|
|
4282
|
+
<li>Scribe reviews the diff read-only, reading the code around each change: bugs, security, what the linked work items ask for, missing tests, performance, and compatibility. Each finding has a severity (blocker, major, minor, nit), the file and line, the problem, and a suggestion. <code>code.review_profile</code> picks a cheaper model for it, as for test reviews.
|
|
4283
|
+
Before it starts, ForgeQE's copy-paste check (<a href="https://github.com/kucherenko/jscpd" class="ext" rel="noopener">jscpd</a>, installed with ForgeQE) compares the pull request's head with the merge base and lists the code the change copies, from code already there or within itself (5 lines and 50 tokens or more). Scribe gets that list as measured evidence and raises a finding only where the copies must stay the same; <code>review.md</code> lists them under <em>Copied code</em>. The check uses ForgeQE's own settings, never the repository's <code>.jscpd.json</code>, and leaves out hidden files, dependencies and build output. <code>code.duplicates: false</code> turns it off; without jscpd's binary for your machine it is skipped.</li>
|
|
4161
4284
|
<li>The findings appear as a card, and are saved in <code>.forgeqe/reports/reviews/<time>/</code> as <code>review.md</code> and <code>review.json</code>. Nothing is posted yet.</li>
|
|
4162
4285
|
<li>To post, say so. ForgeQE asks <strong>Post the review?</strong> with <strong>Post review</strong> and <strong>Don't post</strong>. Findings on a changed line become comments on that line; the rest go in one summary comment with the verdict. On GitHub this is one review with event <code>COMMENT</code>: ForgeQE never approves, requests changes, or votes in your name. If the pull request got new commits after the review, posting is refused; review it again.</li>
|
|
4163
4286
|
</ol>
|
|
@@ -4356,6 +4479,60 @@ forgeqe quality trends shop.test # per page over time; exits 1 when a page go
|
|
|
4356
4479
|
</section>
|
|
4357
4480
|
</div>
|
|
4358
4481
|
</article>
|
|
4482
|
+
<article class="spec feat" id="cap-accessibility-personas">
|
|
4483
|
+
<div class="hd"><span class="mono">Quality</span><h3>Accessibility testing with personas</h3></div>
|
|
4484
|
+
<p class="ds">A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing.</p>
|
|
4485
|
+
<div class="facts">
|
|
4486
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Act as a blind person and use the website to find accessibility issues</li><li>Can a keyboard-only user check out?</li></ul></div>
|
|
4487
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
|
|
4488
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A simulated persona and automated checks are a first pass, not a conformance claim or a test with real users.</li></ul></div>
|
|
4489
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>accessibility_test</code> <code>accessibility_personas</code></p></div>
|
|
4490
|
+
</div>
|
|
4491
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
4492
|
+
<section class="doc" id="doc-how_to_use-accessibility-testing-with-personas">
|
|
4493
|
+
<h4>Accessibility testing with personas</h4>
|
|
4494
|
+
<div class="prose"><p>The accessibility agent does a goal on your site <strong>as a person with a disability would</strong>, and records each barrier that person meets. It is not functional testing: whether the feature works is not judged, only whether this person can perceive, operate and understand it.</p>
|
|
4495
|
+
<p>Ask the agent ("act as a blind person and use the website to find accessibility issues", "can a keyboard-only user check out?"), or from a terminal:</p>
|
|
4496
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe a11y "find running shoes and add a pair to the basket" --persona blind,keyboard-only --url https://shop.test
|
|
4497
|
+
</code></pre></div>
|
|
4498
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe a11y personas
|
|
4499
|
+
</code></pre></div>
|
|
4500
|
+
<p>Each persona is one browser run. The agent works the way the person does:</p>
|
|
4501
|
+
<div class="tbl"><table>
|
|
4502
|
+
<thead>
|
|
4503
|
+
<tr><th>Persona</th><th>How the agent uses the page</th></tr>
|
|
4504
|
+
</thead>
|
|
4505
|
+
<tbody>
|
|
4506
|
+
<tr><td><code>blind</code></td><td>Screen reader: no screenshots. It reads the page only through the accessibility tree (headings, landmarks, links, form fields, each with its role, name and state) and what each key press puts in focus. Keyboard only.</td></tr>
|
|
4507
|
+
<tr><td><code>keyboard-only</code></td><td>Sees the page, but has no mouse: Tab, Shift+Tab, arrows, Enter, Space, Escape. Each key press says what has focus and whether a focus indicator shows.</td></tr>
|
|
4508
|
+
<tr><td><code>low-vision</code></td><td>The page zoomed to 200% (it reflows as at that zoom).</td></tr>
|
|
4509
|
+
<tr><td><code>colour-blind</code></td><td>Chrome's deuteranopia emulation: the screenshots show the page as the person sees it.</td></tr>
|
|
4510
|
+
<tr><td><code>cognitive</code></td><td>Plain language, clear errors, time limits, consistency.</td></tr>
|
|
4511
|
+
<tr><td><code>reduced-motion</code></td><td>The browser asks for reduced motion.</td></tr>
|
|
4512
|
+
<tr><td><code>deaf</code></td><td>Captions, transcripts, sound-only information.</td></tr>
|
|
4513
|
+
<tr><td><code>high-contrast</code></td><td>Forced colours (a high contrast theme).</td></tr>
|
|
4514
|
+
</tbody>
|
|
4515
|
+
</table></div>
|
|
4516
|
+
<p>For each persona the report (<code>.forgeqe/reports/accessibility/<time>-<goal>/accessibility.md</code>) says whether they reached the goal, each barrier with its severity (critical: stops them; serious; moderate; minor) and WCAG success criterion, and the automated rule checks (axe-core) of the pages they visited. The run folders keep the evidence: steps, screenshots, video when on. A run as a persona uses no page memory, site rulebook or skills, since those hold how to click through the site.</p>
|
|
4517
|
+
<p><strong>Your own personas</strong> are <code>.forgeqe/personas/<id>.yaml</code>. Ask the agent to save one ("add a persona: an older user with a hand tremor who zooms to 150%": it shows the persona and asks first), or write the file:</p>
|
|
4518
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>id: older-tremor
|
|
4519
|
+
name: Older user with a hand tremor
|
|
4520
|
+
description: 78, uses a laptop with a large font, finds small targets hard to hit and gives up on long forms.
|
|
4521
|
+
perception: sight # sight, or screen_reader (no screenshots, keyboard only)
|
|
4522
|
+
input: keyboard # any, or keyboard (the mouse actions are taken away)
|
|
4523
|
+
vision: none # none, blurred, reduced_contrast, achromatopsia, deuteranopia, protanopia, tritanopia
|
|
4524
|
+
zoom: 1.5 # 1 to 4
|
|
4525
|
+
media: [reduced_motion] # reduced_motion, forced_colors, more_contrast, dark
|
|
4526
|
+
watch_for:
|
|
4527
|
+
- small click targets close together
|
|
4528
|
+
- forms that time out
|
|
4529
|
+
</code></pre></div>
|
|
4530
|
+
<p>A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each setting from its list, no YAML aliases. Its text describes the person to the browser model; what the browser does comes only from the settings.</p>
|
|
4531
|
+
<p>A simulated persona is not a real user, and automated checks find only part of the problems: treat the result as a first pass, and confirm important barriers with people who use assistive technology.</p>
|
|
4532
|
+
</div>
|
|
4533
|
+
</section>
|
|
4534
|
+
</div>
|
|
4535
|
+
</article>
|
|
4359
4536
|
<article class="spec feat" id="cap-visual-comparison">
|
|
4360
4537
|
<div class="hd"><span class="mono">Quality</span><h3>Visual comparison with baselines</h3></div>
|
|
4361
4538
|
<p class="ds">Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees.</p>
|
|
@@ -4721,6 +4898,7 @@ mcp:
|
|
|
4721
4898
|
<tr><td><code>run_sql</code></td><td>One checked SQL statement: reads in a read-only session with a row cap; a write only on a writable database, after the user agrees (<code>confirmed: true</code> over MCP)</td></tr>
|
|
4722
4899
|
<tr><td><code>generate_test_data</code></td><td>Test data from a spec that fits the schema, or a masked subset of real rows: previewed, written to files, or inserted after the user agrees</td></tr>
|
|
4723
4900
|
<tr><td><code>test_data_batches</code></td><td>The batches <code>generate_test_data</code> inserted; remove one again after the user confirms</td></tr>
|
|
4901
|
+
<tr><td><code>request_test_data</code></td><td>Ask the DB agent for the test data a test needs: existing rows by a read-only query, or new rows from a spec, with the SQL or INSERT script kept in <code>test-data/requests/</code> for <code>forgeqe data fetch</code></td></tr>
|
|
4724
4902
|
<tr><td><code>data_flows</code></td><td>The data flows in <code>flows.yaml</code>: list, map, impact of a table or column, or suggest, validate and save a flow</td></tr>
|
|
4725
4903
|
<tr><td><code>check_flows</code></td><td>Check each hop of the flows: every row arrived, mapped columns hold the expected values, no duplicates, on time</td></tr>
|
|
4726
4904
|
<tr><td><code>trace_record</code></td><td>Follow one record through the flows, hop by hop</td></tr>
|