@capagents/forgeqe 2.6.1 → 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 +311 -15
- package/README.md +5 -25
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/bin/activate-web.d.ts +16 -0
- package/bin/activate-web.js +117 -0
- package/bin/bundle.d.ts +27 -0
- package/bin/bundle.js +173 -0
- package/bin/forgeqe.js +109 -2
- package/bin/license.d.ts +25 -0
- package/bin/license.js +178 -0
- package/dist/docs-site/docs/architecture/index.html +2 -1
- package/dist/docs-site/docs/index.html +291 -11
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +35 -6
- package/dist/forgeqe.js +1513 -1291
- 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-BqARSDDZ.js → arrow-down-BWCXlJU0.js} +1 -1
- package/dist/web/assets/arrow-right-CdxkQBV7.js +1 -0
- package/dist/web/assets/{bot-BtKTIZEs.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-DwIAhHPq.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-iCgQPYwX.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/CUSTOM_AGENTS_FIRST_RUN.md +107 -0
- package/docs/WEB_APP.md +36 -6
- package/docs/security-data-flow.html +3 -3
- package/docs/user-guide.html +291 -11
- package/docs/walkthrough/hotfix-narration.md +443 -297
- package/forgeqe.example.yaml +13 -2
- package/package.json +6 -3
- package/prompts/README.md +1 -0
- package/prompts/agent-builder.md +69 -0
- package/prompts/api-tests.md +1 -1
- package/prompts/brain.md +22 -2
- 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-jYaYLJO8.js +0 -1
- package/dist/web/assets/ApiTests-BYQ0VYx3.js +0 -10
- package/dist/web/assets/Chat-DOcK3ngF.js +0 -3
- package/dist/web/assets/Data-KFQ0-EbI.js +0 -4
- package/dist/web/assets/Features-9rw1s5Vs.js +0 -1
- package/dist/web/assets/Jobs-MRHq6isA.js +0 -5
- package/dist/web/assets/Quality-CGrki-iI.js +0 -1
- package/dist/web/assets/Record-Bamcsz1Y.js +0 -2
- package/dist/web/assets/Regression-D0yEt-3X.js +0 -5
- package/dist/web/assets/Reports-BwvQNDFa.js +0 -2
- package/dist/web/assets/Response-XIaBzLD_.js +0 -4
- package/dist/web/assets/Runs-DtgNqxHd.js +0 -2
- package/dist/web/assets/Shell-E3JKoPtx.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-C_9D6W14.js +0 -1
- package/dist/web/assets/index-CVa5dAjG.js +0 -26
- package/dist/web/assets/index-DF-gVa3Q.css +0 -2
- package/dist/web/assets/markdown-OsvJ-mly.js +0 -10
- package/dist/web/assets/trending-up-fRykocOw.js +0 -1
- package/dist/web/assets/usePageChat-B5pKShGC.js +0 -1
|
@@ -511,7 +511,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
511
511
|
<li><strong>Test data:</strong> <code>testdata.py</code> makes rows from a spec (<code>src/data/testdata.ts</code> reads it inside the working folder). <code>subset.py</code> takes a masked subset of another database. Inserted rows are kept as a batch that can be removed again. <code>hooks.ts</code> inserts a case's or a suite's <code>data:</code> before it runs, and removes it afterwards.</li>
|
|
512
512
|
<li><strong>Data flows:</strong> <code>flows.py</code> checks the hops listed in <code>flows.yaml</code> (beside forgeqe.yaml), from a source table to a target table, by batch or in real time. <code>streams.py</code> reads Kafka topics and HTTP APIs as hops. <code>flowreport.ts</code> writes <code>flows.json</code> and <code>report.html</code> to <code>&lt;reports>/flows-&lt;time>/</code>, and <code>flowado.ts</code> posts the results as an Azure DevOps test run.</li>
|
|
513
513
|
<li><strong>Remembered queries:</strong> <code>examples.ts</code> keeps the SQL the user approved, in <code>.forgeqe/data/&lt;db>/examples.jsonl</code>. It gives the SQL back with the schema when a new question is like an old one.</li>
|
|
514
|
-
<li><strong>The agent's tools</strong> are <code>databases</code>, <code>database_schema</code>, <code>run_sql</code>, <code>generate_test_data</code> and <code>
|
|
514
|
+
<li><strong>The agent's tools</strong> are <code>databases</code>, <code>database_schema</code>, <code>run_sql</code>, <code>generate_test_data</code>, <code>test_data_batches</code> and <code>request_test_data</code> (<code>src/mcp/datatools.ts</code>), and <code>data_flows</code>, <code>check_flows</code>, <code>trace_record</code> and <code>read_mapping_file</code> (<code>src/mcp/flowtools.ts</code>). A write, an insert or a removal asks the user first. Scribe and the API test writer get <code>AGENT_DATA_TOOLS</code>, which never pass <code>confirmed</code>, so they cannot write.</li>
|
|
515
515
|
<li><strong>The CLI</strong> is <code>forgeqe data</code>, <code>forgeqe db</code> (and <code>/db</code> in the shell) and <code>forgeqe flows</code> (<code>command.ts</code>, <code>dbcommand.ts</code>), with no model.</li>
|
|
516
516
|
</ul>
|
|
517
517
|
<h2 id="model-router-srcrouter"><a href="#model-router-srcrouter" class="hash">#</a>Model router (<code>src/router</code>)</h2>
|
|
@@ -584,6 +584,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
584
584
|
<tbody>
|
|
585
585
|
<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>
|
|
586
586
|
<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>
|
|
587
|
+
<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>
|
|
587
588
|
<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>
|
|
588
589
|
</tbody>
|
|
589
590
|
</table></div>
|
|
@@ -155,12 +155,12 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
|
|
|
155
155
|
<div class="area"><a href="#area-setup" class="area-name"><span class="mono">Setup</span></a><ul class="tiles"><li><a href="#cap-test-apps" class="tile"><b>Test environments and their apps</b><span>Place an order in the shop, then check its invoice in Billing, in UAT</span></a></li><li><a href="#cap-generated-code" class="tile"><b>What ForgeQE wrote</b><span>How much of the code ForgeQE wrote is still there?</span></a></li><li><a href="#cap-forgeqe-commands" class="tile"><b>Every forgeqe command from the shell</b><span>Show me the context budget</span></a></li><li><a href="#cap-setup-help" class="tile"><b>Setup, skills, and documentation</b><span>What can you do?</span></a></li></ul></div>
|
|
156
156
|
<div class="area"><a href="#area-desktop" class="area-name"><span class="mono">Desktop</span></a><ul class="tiles"><li><a href="#cap-desktop-apps" class="tile"><b>Automate Windows desktop apps</b><span>Create an invoice for Contoso in the Billing app and save it as a test</span></a></li></ul></div>
|
|
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
|
-
<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-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>
|
|
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>
|
|
@@ -3197,6 +3216,109 @@ forgeqe jobs shutdown # stop the service; scheduled jobs wait until
|
|
|
3197
3216
|
</section>
|
|
3198
3217
|
</div>
|
|
3199
3218
|
</article>
|
|
3219
|
+
<article class="spec feat" id="cap-custom-agents">
|
|
3220
|
+
<div class="hd"><span class="mono">Operations</span><h3>Your team's custom agents</h3></div>
|
|
3221
|
+
<p class="ds">Hands a request to one of the team's custom agents: ForgeQE's agent configured for one job in .forgeqe/agents, held in code to the environments, tools and actions its approved version allows. It runs in a session of its own and answers with its reply; each run is kept in the agent's history. Also makes a new one with the user from what it is for: it picks what the agent needs from what the project has, says why, and saves a draft when the user agrees.</p>
|
|
3222
|
+
<div class="facts">
|
|
3223
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Ask our custom agent checkout-guard to check the basket on QA</li><li>Which custom agents do we have?</li><li>Make an agent that checks the checkout on QA every night</li></ul></div>
|
|
3224
|
+
<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>
|
|
3225
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A custom agent runs only a version a person approved (forgeqe agent approve), and does only what that version allows; it cannot hand work to another custom agent.</li><li>ForgeQE's agent drafts and saves an agent only after the user agrees; it never approves one.</li></ul></div>
|
|
3226
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>custom_agent</code> <code>request_approval</code></p></div>
|
|
3227
|
+
</div>
|
|
3228
|
+
<div class="detail"><span class="mono">In detail</span>
|
|
3229
|
+
<section class="doc" id="doc-how_to_use-custom-agents">
|
|
3230
|
+
<h4>Custom agents</h4>
|
|
3231
|
+
<div class="prose"><p>A custom agent is ForgeQE's agent configured by your team for one job, kept in the repository as
|
|
3232
|
+
<code>.forgeqe/agents/<id>.yaml</code>. It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is
|
|
3233
|
+
held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities,
|
|
3234
|
+
which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An
|
|
3235
|
+
environment named like production is never allowed. It has no shell, web fetch or web search, and connects no other
|
|
3236
|
+
system's MCP server. Writing tests and healing are not available to custom agents yet.</p>
|
|
3237
|
+
<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: checkout-guard
|
|
3238
|
+
name: Checkout guard agent
|
|
3239
|
+
version: 1.0.0
|
|
3240
|
+
description: Watches the checkout on QA and explains what broke.
|
|
3241
|
+
instructions: Focus on the basket, payment and order confirmation.
|
|
3242
|
+
scope:
|
|
3243
|
+
agents: [engine, forgeqe-heal]
|
|
3244
|
+
capabilities: [browser-goals, regression-packs]
|
|
3245
|
+
environments: [qa]
|
|
3246
|
+
permissions:
|
|
3247
|
+
actions: [read, run]
|
|
3248
|
+
approve: [run]
|
|
3249
|
+
</code></pre></div>
|
|
3250
|
+
<p>What runs is a version a person approved. Editing the manifest changes nothing that runs: the agent shows as changed,
|
|
3251
|
+
keeps running its approved version, and the change waits for approval. Approvals are kept, with every approval,
|
|
3252
|
+
disabling and rollback, in <code>.forgeqe/agents/.releases/<id></code>, so the team reviews them with the code.</p>
|
|
3253
|
+
<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 agent list # each agent and its state: draft, active, changed, disabled, broken
|
|
3254
|
+
forgeqe agent check <id> # what it may reach, what its capabilities still need, what changed
|
|
3255
|
+
forgeqe agent try <id> "request" # the manifest as it is now: read and run only, every run asked first
|
|
3256
|
+
forgeqe agent approve <id> # a person at the terminal approves this exact version
|
|
3257
|
+
forgeqe agent run <id> "request" # its approved version
|
|
3258
|
+
forgeqe agent disable <id> | enable <id> # also on its page; several at once on Agents, Custom agents (Select agents)
|
|
3259
|
+
forgeqe agent rollback <id> <version> # an earlier approved version runs again
|
|
3260
|
+
forgeqe agent history <id> # its versions and its runs, with every tool call and the policy's decision
|
|
3261
|
+
forgeqe agent export <id> --out a.jsonl # its whole record as JSON lines, for audit (also on its page: Download audit record)
|
|
3262
|
+
forgeqe agent run <id> "request" --unattended # as a schedule runs it: what it may not do alone waits for a person
|
|
3263
|
+
forgeqe agent approvals [<id>] # what agents running with nobody watching wait for; answer: approvals <id> <approval> allow | allow_run | deny
|
|
3264
|
+
</code></pre></div>
|
|
3265
|
+
<p>A custom agent may be given anything ForgeQE's agent has: every capability, other systems' tools, the coding agent,
|
|
3266
|
+
jobs, ForgeQE's own commands and settings, the shell (<code>permissions.shell: true</code>), and production. What goes beyond its
|
|
3267
|
+
limits call by call (the coding agent, ForgeQE commands and settings, a shell command, a change in production) is
|
|
3268
|
+
approved by a person each time.</p>
|
|
3269
|
+
<p>In production, what a call does decides: a read goes ahead without asking; a run (a browser run, a test, an API call)
|
|
3270
|
+
is asked unless <code>permissions.production: [run]</code> says otherwise; every change is asked, on a schedule too, where it waits
|
|
3271
|
+
for a person and the team is told. A question about a read or a run offers <strong>Allow for the rest of this run</strong> (that
|
|
3272
|
+
tool, in that environment); a change is asked each time. The agent also asks you itself (<code>request_approval</code>) before a
|
|
3273
|
+
step there that could reach real customers, such as an order or a payment: it can add a question, never skip one. A tool ForgeQE adds later reaches custom agents at once, asking a person each call until
|
|
3274
|
+
it says what it does.</p>
|
|
3275
|
+
<p><code>permissions.trust</code> lifts ForgeQE's own question where you choose: <code>external</code> lets it change other systems without
|
|
3276
|
+
asking, and a coding agent's tool (<code>write_test</code>, <code>heal_tests</code>, <code>write_api_tests</code>) lets it write and heal tests without
|
|
3277
|
+
asking. The tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's
|
|
3278
|
+
config and env files (<code>playwright.config.*</code>, <code>.env*</code>, <code>*.yaml</code> and the like), its tests (<code>*.spec.ts</code>, <code>test_*.py</code>,
|
|
3279
|
+
<code>*Test.java</code>, <code>.feature</code> files…) and the code in its test folders (page objects, fixtures, helpers), and asks after all
|
|
3280
|
+
when they name an address of an environment the agent does not have. An address built at run time from pieces is not
|
|
3281
|
+
seen. A change in production, ForgeQE's own commands and settings, and jobs are
|
|
3282
|
+
always asked.
|
|
3283
|
+
With nobody watching, a trusted tool still runs only when <code>permissions.unattended</code> lists it.</p>
|
|
3284
|
+
<p>An agent with a <code>schedule</code> (<code>every: 1d</code> or <code>cron: "0 7 * * 1-5"</code>, and the <code>request</code> it is given) runs as a job of the
|
|
3285
|
+
jobs service once approved, always its approved version; disabling it pauses the job. With nobody watching, it does
|
|
3286
|
+
without asking only what <code>permissions.unattended</code> lists (kinds of action, or tools by name), and in production only
|
|
3287
|
+
reads, and runs if <code>permissions.production</code> lists them; anything else, and anything it judges should be a person's decision, waits for a person: the team's
|
|
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
|
|
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
|
|
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
|
|
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>
|
|
3294
|
+
<p>Other systems' tools (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as <code><system>_<tool></code> (a dot in
|
|
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
|
|
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
|
|
3297
|
+
server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to check the
|
|
3298
|
+
credential its settings name.</p>
|
|
3299
|
+
<p>Before your team relies on custom agents, run <span class="xref">the first real run</span> once: building one
|
|
3300
|
+
with the model, trying, approving, the Orchestrator, another system, a schedule, production, turning off, and the
|
|
3301
|
+
record, each with what you should see. The builder offers starters (defect retest, nightly smoke, pull request test
|
|
3302
|
+
check, release readiness, API contracts, test case quality): a request to begin from, planned from what your project has.</p>
|
|
3303
|
+
<p>To turn custom agents off for the whole project, set <code>custom_agents: { enabled: false }</code> in <code>forgeqe.yaml</code> (Settings,
|
|
3304
|
+
Custom agents). Then none runs, from the terminal, the web app, the Orchestrator or a schedule; ForgeQE's agent is not
|
|
3305
|
+
given the tool that reaches them, and the builder is closed. Their files, approvals and history are kept, so turning
|
|
3306
|
+
them back on restores everything as it was.</p>
|
|
3307
|
+
<p>The Orchestrator hands requests to the active custom agents (custom_agent) as it does to its own agents. Each run is
|
|
3308
|
+
kept in <code>.forgeqe/agent-runs/<id></code>.</p>
|
|
3309
|
+
<p>In the web app (<code>forgeqe web</code>), custom agents are under Agents, Custom agents. <strong>New agent</strong> opens the agent builder:
|
|
3310
|
+
say what the agent should do in your own words, and ForgeQE takes you through its steps, one page each: Understand
|
|
3311
|
+
(what it could not work out, with what it recommends and why), Plan (how the agent will work, and whether each part is
|
|
3312
|
+
set up here), Boundaries (where it works and what it may do, least privilege first; production never), Knowledge (what
|
|
3313
|
+
it should know: the project's knowledge that fits, and notes that become its own), Review (its name and first request;
|
|
3314
|
+
saving makes it a draft), and Try (try it, then approve it). A draft can be picked up again later. Every setting by
|
|
3315
|
+
hand is under Advanced settings. An agent's page asks it (its approved version) or tries its
|
|
3316
|
+
manifest, shows the change waiting for approval, what it may reach, its versions with Approve, Disable, Enable and going
|
|
3317
|
+
back to an earlier version (each confirmed by typing its id), and its runs with every tool call and the policy's decision.</p>
|
|
3318
|
+
</div>
|
|
3319
|
+
</section>
|
|
3320
|
+
</div>
|
|
3321
|
+
</article>
|
|
3200
3322
|
<article class="spec feat" id="cap-notifications">
|
|
3201
3323
|
<div class="hd"><span class="mono">Operations</span><h3>Teams and email notifications</h3></div>
|
|
3202
3324
|
<p class="ds">Tells the team in Microsoft Teams channels or by email when a suite fails or passes, when a release readiness verdict is in, and when the domain evaluation falls below its gate, with the failing cases, their bugs, and links to the report and the CI build. Each channel picks its events; the agent also posts a summary to a channel when asked.</p>
|
|
@@ -3236,9 +3358,10 @@ forgeqe jobs shutdown # stop the service; scheduled jobs wait until
|
|
|
3236
3358
|
<tr><td><code>job_recovered</code></td><td>A job passes again after failing</td><td>The same, for the run that passed</td></tr>
|
|
3237
3359
|
<tr><td><code>job_done</code></td><td>A job that runs only when asked ends</td><td>The same, whether it passed or failed</td></tr>
|
|
3238
3360
|
<tr><td><code>job_investigated</code></td><td>The investigation of a job's failed run is done</td><td>Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons</td></tr>
|
|
3361
|
+
<tr><td><code>agent_waiting</code></td><td>A custom agent running with nobody watching waits for a person's approval</td><td>What it wants to do and why, until when it waits, and how to answer</td></tr>
|
|
3239
3362
|
</tbody>
|
|
3240
3363
|
</table></div>
|
|
3241
|
-
<p>A channel without <code>on</code> gets <code>suite_failed</code>, <code>release</code>, <code>eval_failed</code>, <code>job_failed</code>, <code>job_recovered</code>, and <code>
|
|
3364
|
+
<p>A channel without <code>on</code> gets <code>suite_failed</code>, <code>release</code>, <code>eval_failed</code>, <code>job_failed</code>, <code>job_recovered</code>, <code>job_investigated</code>, and <code>agent_waiting</code>. Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own <code>monitor.alerts</code>, with the same cards.</p>
|
|
3242
3365
|
<p>Events are sent from runs nobody is watching: <code>forgeqe suite</code> in a pipeline or on a schedule, <code>forgeqe run</code>, and the MCP server. In the shell, where people try things out, nothing is sent on its own; ask instead ("post the results to the QA channel", "tell the release channel the verdict"), and ForgeQE's agent posts a card with <code>notify</code>.</p>
|
|
3243
3366
|
<p>Links: with <code>report_url</code>, cards open the report where the reports folder is published. In Azure Pipelines and GitHub Actions they also open the build, where the report is an artifact. Without either, the card names the report's path.</p>
|
|
3244
3367
|
<p><strong>Setting up a Teams channel:</strong></p>
|
|
@@ -3390,12 +3513,12 @@ minutes, once per schema change.</li>
|
|
|
3390
3513
|
</article>
|
|
3391
3514
|
<article class="spec feat" id="cap-test-data">
|
|
3392
3515
|
<div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
|
|
3393
|
-
<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>
|
|
3394
3517
|
<div class="facts">
|
|
3395
|
-
<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>
|
|
3396
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>
|
|
3397
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>
|
|
3398
|
-
<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>
|
|
3399
3522
|
</div>
|
|
3400
3523
|
<div class="detail"><span class="mono">In detail</span>
|
|
3401
3524
|
<section class="doc" id="doc-how_to_use-test-data">
|
|
@@ -3495,6 +3618,60 @@ source's schema. Rows are taken in key order, so the same spec takes the same ro
|
|
|
3495
3618
|
<li><strong>Into a database</strong>, keys the target makes are new and every reference follows them; a subset never goes back into
|
|
3496
3619
|
its source. As files, keys stay as they were.</li>
|
|
3497
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>
|
|
3498
3675
|
</div>
|
|
3499
3676
|
</section>
|
|
3500
3677
|
</div>
|
|
@@ -3780,6 +3957,7 @@ forgeqe run "..." --no-code # no tests
|
|
|
3780
3957
|
</tbody>
|
|
3781
3958
|
</table></div>
|
|
3782
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>
|
|
3783
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>
|
|
3784
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>
|
|
3785
3963
|
<ul>
|
|
@@ -3854,6 +4032,52 @@ forgeqe heal -- npx playwright test --project=chromium # everything after -- i
|
|
|
3854
4032
|
</section>
|
|
3855
4033
|
</div>
|
|
3856
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>
|
|
3857
4081
|
<article class="spec feat" id="cap-find-run-tests">
|
|
3858
4082
|
<div class="hd"><span class="mono">Automated tests</span><h3>Find and run existing tests</h3></div>
|
|
3859
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>
|
|
@@ -4054,8 +4278,9 @@ Review my open pull requests
|
|
|
4054
4278
|
</code></pre></div>
|
|
4055
4279
|
<ol>
|
|
4056
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>
|
|
4057
|
-
<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>
|
|
4058
|
-
<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>
|
|
4059
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>
|
|
4060
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>
|
|
4061
4286
|
</ol>
|
|
@@ -4254,6 +4479,60 @@ forgeqe quality trends shop.test # per page over time; exits 1 when a page go
|
|
|
4254
4479
|
</section>
|
|
4255
4480
|
</div>
|
|
4256
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>
|
|
4257
4536
|
<article class="spec feat" id="cap-visual-comparison">
|
|
4258
4537
|
<div class="hd"><span class="mono">Quality</span><h3>Visual comparison with baselines</h3></div>
|
|
4259
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>
|
|
@@ -4619,6 +4898,7 @@ mcp:
|
|
|
4619
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>
|
|
4620
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>
|
|
4621
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>
|
|
4622
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>
|
|
4623
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>
|
|
4624
4904
|
<tr><td><code>trace_record</code></td><td>Follow one record through the flows, hop by hop</td></tr>
|