@capagents/forgeqe 3.0.3 → 3.0.5
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 +190 -189
- package/README.md +12 -12
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/docs-site/architecture-map/index.html +6 -6
- package/dist/docs-site/docs/architecture/index.html +31 -31
- package/dist/docs-site/docs/containers/index.html +9 -10
- package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
- package/dist/docs-site/docs/desktop/index.html +8 -10
- package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
- package/dist/docs-site/docs/graphify/index.html +1 -1
- package/dist/docs-site/docs/index.html +214 -165
- package/dist/docs-site/docs/mobile/index.html +6 -6
- package/dist/docs-site/docs/model-routing/index.html +58 -10
- package/dist/docs-site/docs/product-graph/index.html +3 -3
- package/dist/docs-site/docs/product-views/index.html +1 -1
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +6 -6
- package/dist/forgeqe.js +1858 -1825
- package/dist/template.html +69 -69
- package/dist/web/assets/Agent-BF6goYbq.js +8 -0
- package/dist/web/assets/ApiTests-08El24XV.js +10 -0
- package/dist/web/assets/Browse-DB7lNo6R.js +2 -0
- package/dist/web/assets/Chat-Co7EJfA9.js +5 -0
- package/dist/web/assets/{CommandPalette-CAAPFMZn.js → CommandPalette-BkNNac9P.js} +1 -1
- package/dist/web/assets/{Compare-DZfbMjDK.js → Compare-Ce214eXq.js} +1 -1
- package/dist/web/assets/Cost-B_oVlEve.js +1 -0
- package/dist/web/assets/Data-BNXAWpvT.js +6 -0
- package/dist/web/assets/Desktop-Dnsmc_L-.js +1 -0
- package/dist/web/assets/DesktopReview-C7SG_gBt.js +1 -0
- package/dist/web/assets/{Evidence-CijYL67k.js → Evidence-C6PtAQ6y.js} +1 -1
- package/dist/web/assets/{Explore-DZ5PoVZp.js → Explore-BN8zgzmv.js} +2 -2
- package/dist/web/assets/{Features-BvZfZIb7.js → Features-DRONEGA3.js} +1 -1
- package/dist/web/assets/{Flags-B_-HOAeZ.js → Flags-CF8Zboey.js} +2 -2
- package/dist/web/assets/{Flaky-CWyV0rE3.js → Flaky-B6IYRvE2.js} +1 -1
- package/dist/web/assets/Impact-DglYEuEY.js +3 -0
- package/dist/web/assets/Jobs-BX-DXp28.js +5 -0
- package/dist/web/assets/KindPage-ByaxfUiE.js +6 -0
- package/dist/web/assets/Migration-wVEuZ3zr.js +2 -0
- package/dist/web/assets/Product-Bcv7xIYx.js +7 -0
- package/dist/web/assets/{Production-Dakb3WS-.js → Production-DTdUc-ze.js} +1 -1
- package/dist/web/assets/{Quality-CcrANX20.js → Quality-B0MRg6wI.js} +1 -1
- package/dist/web/assets/{Readiness-DvYQ17Oh.js → Readiness-XpGisxdv.js} +1 -1
- package/dist/web/assets/Record-C0vcXk-u.js +2 -0
- package/dist/web/assets/Regression-CthpK77C.js +5 -0
- package/dist/web/assets/{RelationGraph-evMcSFoO.js → RelationGraph-MHWsIy8b.js} +1 -1
- package/dist/web/assets/Reports-Cy1MvUqg.js +2 -0
- package/dist/web/assets/Response-53IPohSg.js +4 -0
- package/dist/web/assets/RunDiff-BQH6Wacd.js +1 -0
- package/dist/web/assets/Runs-IwZWhlyu.js +2 -0
- package/dist/web/assets/Steps-DKCrz0ed.js +2 -0
- package/dist/web/assets/{TestCases-93xQKkMT.js → TestCases-Bt81xr3X.js} +1 -1
- package/dist/web/assets/TestData-CXRhxaD8.js +2 -0
- package/dist/web/assets/{TestDebt-CE62ftuJ.js → TestDebt-DM5VeTwn.js} +1 -1
- package/dist/web/assets/Tosca-B42EZ5YF.js +3 -0
- package/dist/web/assets/{WhatsNew-lX-LhWKt.js → WhatsNew-D3yHnxgW.js} +1 -1
- package/dist/web/assets/agentLink-BlI6CU6m.js +1 -0
- package/dist/web/assets/{dataParts-LCnV1x8c.js → dataParts-B0tYVMhQ.js} +2 -2
- package/dist/web/assets/{families-DLmHA4rL.js → families-DGOQO6Mu.js} +1 -1
- package/dist/web/assets/filters-Btr3PTRn.js +1 -0
- package/dist/web/assets/{fold-pif2b5qg.js → fold-B_G_xXZM.js} +1 -1
- package/dist/web/assets/frame-CU0pSxTD.js +18 -0
- package/dist/web/assets/index-CCNq91up.js +68 -0
- package/dist/web/assets/index-D6jp6pDW.css +2 -0
- package/dist/web/assets/{logos-gqcS1A90.js → logos-DpiYLP3H.js} +1 -1
- package/dist/web/assets/{markdown-BcuknPlh.js → markdown-Dn8IZFhS.js} +5 -5
- package/dist/web/assets/{paletteCommands-qeRU49pp.js → paletteCommands-DKcFFV7I.js} +1 -1
- package/dist/web/assets/{parts-C7nGHnut.js → parts-Ct3kXHNO.js} +1 -1
- package/dist/web/assets/{productParts-3lWHIbdH.js → productParts-IDyVJAgM.js} +1 -1
- package/dist/web/assets/{qualityParts-B-TQusS6.js → qualityParts-Db6YfFIY.js} +1 -1
- package/dist/web/assets/recordTest-_r_cdTC6.js +1 -0
- package/dist/web/assets/{rows-vVKLONno.js → rows-De2l3NFN.js} +1 -1
- package/dist/web/assets/{segmented-Bi4QAoQY.js → segmented-CHGzMxbS.js} +1 -1
- package/dist/web/assets/{usePageChat-De5Fn1X3.js → usePageChat-CpAYTNqJ.js} +1 -1
- package/dist/web/index.html +5 -5
- package/docs/ARCHITECTURE.md +30 -30
- package/docs/BUSINESS_ASSURANCE.md +7 -7
- package/docs/CONTAINERS.md +8 -10
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
- package/docs/DESKTOP.md +8 -10
- package/docs/GRAPHIFY.md +1 -1
- package/docs/MOBILE.md +6 -6
- package/docs/MODEL_ROUTING.md +57 -9
- package/docs/PRODUCT_KNOWLEDGE.md +3 -3
- package/docs/PRODUCT_VIEWS.md +1 -1
- package/docs/WEB_APP.md +6 -6
- package/docs/demo-qi-commerce.md +30 -30
- package/docs/feature-test-prompts.md +3 -3
- package/docs/prompts/graphify-evidence.md +3 -3
- package/docs/security-data-flow.html +23 -23
- package/docs/user-guide.html +214 -165
- package/docs/walkthrough/hotfix-narration.md +19 -19
- package/docs/walkthrough/index.html +26 -26
- package/env.example.yaml +1 -1
- package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
- package/forgeqe-architecture.html +48 -48
- package/forgeqe.example.yaml +16 -10
- package/package.json +1 -1
- package/prompts/README.md +7 -7
- package/prompts/agent-builder.md +1 -1
- package/prompts/api-tests.md +1 -1
- package/prompts/brain.md +8 -5
- package/prompts/business-interview.md +3 -3
- package/prompts/business-persona.md +3 -3
- package/prompts/business-strategist.md +1 -1
- package/prompts/db-agent.md +3 -3
- package/prompts/doc-reader.md +2 -2
- package/prompts/heal.md +1 -1
- package/prompts/knowledge-agent.md +3 -3
- package/prompts/model-profile.md +1 -1
- package/prompts/page-differs.md +1 -1
- package/prompts/persona-own.md +3 -3
- package/prompts/talk.md +3 -2
- package/prompts/test-agent.md +2 -2
- package/prompts/test-plan.md +2 -2
- package/prompts/tosca-assistant.md +1 -1
- package/py/forgeqe_engine/copilot_gateway.py +1 -1
- package/py/forgeqe_engine/memory.py +48 -2
- package/py/forgeqe_engine/recordsession.py +31 -1
- package/py/forgeqe_engine/video.py +104 -12
- package/py/forgeqe_engine/webrecord_page.py +88 -7
- package/py/forgeqe_tosca/__init__.py +2 -2
- package/py/forgeqe_tosca/render.py +1 -1
- package/py/forgeqe_tosca/tsu.py +2 -2
- package/skills/playwright-automation/SKILL.md +102 -0
- package/skills/playwright-automation/references/dotnet.md +90 -0
- package/skills/playwright-automation/references/java.md +41 -0
- package/skills/playwright-automation/references/python.md +42 -0
- package/skills/playwright-automation/references/typescript.md +54 -0
- package/skills/test-data/SKILL.md +1 -1
- package/skills/writing-skills/SKILL.md +2 -2
- package/dist/web/assets/Agent-Bha4Lr91.js +0 -8
- package/dist/web/assets/ApiTests-xhnOnRi9.js +0 -10
- package/dist/web/assets/Browse-DPfzCrMZ.js +0 -2
- package/dist/web/assets/Chat-DuLj5IPw.js +0 -5
- package/dist/web/assets/Cost-PNcsRgPW.js +0 -1
- package/dist/web/assets/Data-DaKzcO_S.js +0 -6
- package/dist/web/assets/Desktop-sXYXYwRy.js +0 -1
- package/dist/web/assets/DesktopReview-Bz6bfPkM.js +0 -1
- package/dist/web/assets/Impact-BqHiKxoG.js +0 -3
- package/dist/web/assets/Jobs-DUfRHoko.js +0 -5
- package/dist/web/assets/KindPage-Dj3vryGF.js +0 -6
- package/dist/web/assets/Migration-CP3o4tLy.js +0 -2
- package/dist/web/assets/Product-BeHmrA7Z.js +0 -7
- package/dist/web/assets/Record-V7x9VxRQ.js +0 -2
- package/dist/web/assets/Regression-DgXh0V-X.js +0 -5
- package/dist/web/assets/Reports--eyV0Gfp.js +0 -2
- package/dist/web/assets/Response-B1S-n787.js +0 -4
- package/dist/web/assets/RunDiff-DwEopDsx.js +0 -1
- package/dist/web/assets/Runs-B6bSGdrI.js +0 -2
- package/dist/web/assets/Steps-DxPqrmZK.js +0 -2
- package/dist/web/assets/TestData-BiW5r9gA.js +0 -2
- package/dist/web/assets/Tosca-CrvuVNqG.js +0 -3
- package/dist/web/assets/agentLink-ZQZx1pK-.js +0 -1
- package/dist/web/assets/filters-CorGh2vA.js +0 -1
- package/dist/web/assets/frame-BgpCUEoM.js +0 -18
- package/dist/web/assets/index-0YhzcgZJ.css +0 -2
- package/dist/web/assets/index-CEVZ8F8_.js +0 -67
- package/dist/web/assets/recordTest-BmD8jtw0.js +0 -1
- package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
- package/skills/playwright-typescript/SKILL.md +0 -36
package/docs/user-guide.html
CHANGED
|
@@ -362,7 +362,7 @@ a:hover{text-decoration-color:var(--guide-accent)}
|
|
|
362
362
|
</header>
|
|
363
363
|
<section class="chapter" id="overview" aria-labelledby="overview-h">
|
|
364
364
|
<header class="chead"><span class="mono">01</span><h2 id="overview-h">Overview</h2><p>What ForgeQE is, and everything it can do</p></header>
|
|
365
|
-
<div class="lead prose"><p>ForgeQE is a browser agent CLI. Say what you want in plain language: a goal to carry out in a browser, test cases to run from Jira, Azure DevOps, Xray or a file, a test to write, or a CI pipeline to set up. ForgeQE's agent works out what that needs, the ForgeQE engine drives a local Chrome or Chromium by default or BrowserStack or TestMu AI/LambdaTest when configured, and a run that passes becomes a test in your repo, written by <strong>
|
|
365
|
+
<div class="lead prose"><p>ForgeQE is a browser agent CLI. Say what you want in plain language: a goal to carry out in a browser, test cases to run from Jira, Azure DevOps, Xray or a file, a test to write, or a CI pipeline to set up. ForgeQE's agent works out what that needs, the ForgeQE engine drives a local Chrome or Chromium by default or BrowserStack or TestMu AI/LambdaTest when configured, and a run that passes becomes a test in your repo, written by <strong>Quill</strong>, ForgeQE's coding agent.</p>
|
|
366
366
|
<p>No server, database, or Docker. You configure a model and run it from the terminal.</p>
|
|
367
367
|
<div class="tbl"><table>
|
|
368
368
|
<thead>
|
|
@@ -387,7 +387,7 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
|
|
|
387
387
|
<h3 class="band-title">Every feature</h3>
|
|
388
388
|
<div class="area"><a class="area-name" href="#area-browser"><span class="mono">Browser</span></a><ul class="tiles"><li><a class="tile" href="#cap-browser-goals"><b>Run any goal in a real browser</b><span>Go to booking.com and search hotels in Mumbai for next weekend</span></a></li><li><a class="tile" href="#cap-logins"><b>Saved logins for the application under test</b><span>Sign in to the admin site and keep the session</span></a></li><li><a class="tile" href="#cap-record-web"><b>Record a web test by hand</b><span>I'll show you the checkout steps in the shop: record them</span></a></li></ul></div>
|
|
389
389
|
<div class="area"><a class="area-name" href="#area-test-cases"><span class="mono">Test cases</span></a><ul class="tiles"><li><a class="tile" href="#cap-run-test-cases"><b>Run manual test cases in browsers</b><span>Run SHOP-12 and SHOP-14 from Jira, two browsers at once</span></a></li><li><a class="tile" href="#cap-test-case-quality"><b>Check and improve test cases</b><span>Are the cases in test plan 12 good enough to run?</span></a></li><li><a class="tile" href="#cap-write-test-cases"><b>Write test cases from a story</b><span>Write test cases for story 1234 and save them</span></a></li><li><a class="tile" href="#cap-domain-compliance"><b>Domain and regulatory test design</b><span>Write test cases for story 1234, covering our DORA and PSD2 obligations</span></a></li><li><a class="tile" href="#cap-exploratory-testing"><b>Exploratory testing of a story</b><span>Explore story 1234 and find bugs</span></a></li><li><a class="tile" href="#cap-business-personas"><b>Business personas for testing</b><span>Create a persona of an SME in payments</span></a></li><li><a class="tile" href="#cap-business-assurance"><b>Business assurance: testing as the business, its customers and its opportunists</b><span>Test our refunds and coupons the way an opportunistic customer would</span></a></li></ul></div>
|
|
390
|
-
<div class="area"><a class="area-name" href="#area-setup"><span class="mono">Setup</span></a><ul class="tiles"><li><a class="tile" href="#cap-test-apps"><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 class="tile" href="#cap-generated-code"><b>What ForgeQE wrote</b><span>How much of the code ForgeQE wrote is still there?</span></a></li><li><a class="tile" href="#cap-forgeqe-commands"><b>Every forgeqe command from the shell</b><span>Show me the context budget</span></a></li><li><a class="tile" href="#cap-product-knowledge"><b>Product knowledge from the product's repositories</b><span>How does the product cancel an order? Show the endpoints and tables involved</span></a></li><li><a class="tile" href="#cap-knowledge-agent"><b>
|
|
390
|
+
<div class="area"><a class="area-name" href="#area-setup"><span class="mono">Setup</span></a><ul class="tiles"><li><a class="tile" href="#cap-test-apps"><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 class="tile" href="#cap-generated-code"><b>What ForgeQE wrote</b><span>How much of the code ForgeQE wrote is still there?</span></a></li><li><a class="tile" href="#cap-forgeqe-commands"><b>Every forgeqe command from the shell</b><span>Show me the context budget</span></a></li><li><a class="tile" href="#cap-product-knowledge"><b>Product knowledge from the product's repositories</b><span>How does the product cancel an order? Show the endpoints and tables involved</span></a></li><li><a class="tile" href="#cap-knowledge-agent"><b>Librarian: what ForgeQE understood, and your corrections</b><span>What do you know about refunds?</span></a></li><li><a class="tile" href="#cap-document-search"><b>Search the project's documents, without vectors</b><span>What does the payments spec say about refund limits?</span></a></li><li><a class="tile" href="#cap-setup-help"><b>Setup, skills, and documentation</b><span>What can you do?</span></a></li></ul></div>
|
|
391
391
|
<div class="area"><a class="area-name" href="#area-desktop"><span class="mono">Desktop</span></a><ul class="tiles"><li><a class="tile" href="#cap-desktop-apps"><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>
|
|
392
392
|
<div class="area"><a class="area-name" href="#area-mobile"><span class="mono">Mobile</span></a><ul class="tiles"><li><a class="tile" href="#cap-mobile-apps"><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>
|
|
393
393
|
<div class="area"><a class="area-name" href="#area-operations"><span class="mono">Operations</span></a><ul class="tiles"><li><a class="tile" href="#cap-containers"><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 class="tile" href="#cap-production-errors"><b>Production errors and the tests that cover them</b><span>Which production errors have no test?</span></a></li><li><a class="tile" href="#cap-model-cost"><b>Model cost and usage</b><span>What did ForgeQE cost this month?</span></a></li><li><a class="tile" href="#cap-monitoring"><b>Scheduled monitoring with alerts</b><span>Check the login flow every 15 minutes and alert Teams</span></a></li><li><a class="tile" href="#cap-jobs"><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 class="tile" href="#cap-custom-agents"><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 class="tile" href="#cap-notifications"><b>Teams and email notifications</b><span>Post the results to the QA channel</span></a></li><li><a class="tile" href="#cap-pipelines"><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>
|
|
@@ -446,7 +446,7 @@ export WP_AZURE_API_KEY=... # the key your llms.json profile names (P
|
|
|
446
446
|
forgeqe models # check the profiles
|
|
447
447
|
forgeqe start # the shell
|
|
448
448
|
</code></pre>
|
|
449
|
-
<p>With GitHub Copilot licences instead of a model key, sign in rather than exporting one. The sign-in lists your seat's models, recommends one (it takes screenshots and, where the plan has one, uses no premium requests), and writes your choice to <code>llms.json</code> as the <code>copilot</code> profile, made the default. Everything then runs on your Copilot seat: ForgeQE's agent,
|
|
449
|
+
<p>With GitHub Copilot licences instead of a model key, sign in rather than exporting one. The sign-in lists your seat's models, recommends one (it takes screenshots and, where the plan has one, uses no premium requests), and writes your choice to <code>llms.json</code> as the <code>copilot</code> profile, made the default. Everything then runs on your Copilot seat: ForgeQE's agent, Quill, and the browser, desktop and mobile engines. No other model is needed:</p>
|
|
450
450
|
<pre><code class="language-bash">forgeqe setup # the engine and GitHub's Copilot SDK
|
|
451
451
|
forgeqe auth login copilot # opens GitHub in your browser to sign in, then pick the model
|
|
452
452
|
forgeqe doctor # checks the engine, the SDK, the agent runtime, the sign-in and each model
|
|
@@ -605,7 +605,7 @@ forgeqe start --model claude-sonnet-4.6 # another Copilot mo
|
|
|
605
605
|
<tbody>
|
|
606
606
|
<tr><td>The browser engine (every browser run: <code>run --direct</code>, suites, monitoring)</td><td><code>engine_model</code> or <code>model</code>, on the Copilot seat</td><td><code>forgeqe auth login copilot</code></td></tr>
|
|
607
607
|
<tr><td>The desktop and mobile agents</td><td><code>engine_model</code> or <code>model</code>, on the Copilot seat</td><td><code>forgeqe auth login copilot</code></td></tr>
|
|
608
|
-
<tr><td>ForgeQE's agent and
|
|
608
|
+
<tr><td>ForgeQE's agent and Quill</td><td><code>model</code>, on the Copilot seat</td><td><code>forgeqe auth login copilot</code></td></tr>
|
|
609
609
|
</tbody>
|
|
610
610
|
</table></div>
|
|
611
611
|
<p>Copilot runs one SDK session per model request, with none of Copilot's own tools and your request's system prompt in place of Copilot's. The agent's tools are offered to the model as the session's only tools; when it calls one, the gateway ends the turn and hands the call back to ForgeQE's agent runtime, which runs it (with the same permissions as on any other model) and sends the result with the next request. The gateway itself runs nothing.</p>
|
|
@@ -712,7 +712,7 @@ once it is measured on labelled runs at the bar its owner set; otherwise it warn
|
|
|
712
712
|
verdict) and Contracts (each contract, and how well each check is measured).
|
|
713
713
|
<a href="../docs/EVIDENCE.md">docs/EVIDENCE.md</a> is the design and the phases still to come (contracts, behaviour checks, verdicts).</p>
|
|
714
714
|
</div></section>
|
|
715
|
-
<section class="doc sub" id="doc-how_to_use-the-models-context-window"><h4>The model's context window</h4><div class="prose"><p>Each agent has its own context: ForgeQE's agent,
|
|
715
|
+
<section class="doc sub" id="doc-how_to_use-the-models-context-window"><h4>The model's context window</h4><div class="prose"><p>Each agent has its own context: ForgeQE's agent, Quill, the reviewer, and the browser agent each keep their own conversation with the model. The Context panel shows the working agent's (or the last one to call the model), named on its Agent row, as a share of what it can hold before the agent runtime compacts it. When it compacts, the runtime summarises the conversation so far to make room, Activity says so, and details from early on may be gone. The browser agent never compacts: it keeps its last steps only.</p>
|
|
716
716
|
<p>ForgeQE takes each model's window from its name (GPT-5: 400K, of which a prompt may take 272K; GPT-4.1: 1M; GPT-4o: 128K; o-series and Claude: 200K; Gemini: 1M; anything else: 200K) and gives it to the agent runtime, which compacts at that window less room for the answer. Where a deployment or server allows less, say so with <code>"context"</code> in the profile in <code>llms.json</code>:</p>
|
|
717
717
|
<pre><code class="language-json">"ollama-llama": { "provider": "ollama", "model": "llama3.2", "endpoint": "http://127.0.0.1:11434/v1", "context": 32768 }
|
|
718
718
|
</code></pre>
|
|
@@ -806,7 +806,7 @@ recorded, such as an accessibility persona's barriers). No answer in 10 minutes
|
|
|
806
806
|
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.
|
|
807
807
|
A run that has made no progress by a <code>max_steps</code> checkpoint (its recent steps all failed) asks the same way before it
|
|
808
808
|
stops, instead of ending there: you may know the page is slow or the form is long. <code>code.max_tokens</code> asks the same way for
|
|
809
|
-
the coding agent and
|
|
809
|
+
the coding agent and Link. <code>forgeqe suite</code> in a terminal asks too, for each case's browser run and coding job,
|
|
810
810
|
one question at a time when cases run side by side.</p>
|
|
811
811
|
<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>
|
|
812
812
|
<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>
|
|
@@ -974,7 +974,7 @@ Add a GitHub Actions workflow that runs tests/cases.yaml on every PR, and make i
|
|
|
974
974
|
</tbody>
|
|
975
975
|
</table></div>
|
|
976
976
|
<p><strong>Links.</strong> Report folders, report files, and web addresses in the chat are links: Cmd-click (Ctrl-click on Windows and Linux) opens them in terminals that support links, such as VS Code, iTerm2, Windows Terminal, and recent GNOME Terminal. A path that no longer exists stays plain text.</p>
|
|
977
|
-
<p><strong>Setup checklist.</strong> Until everything is set up, the start screen shows how many of the five things most features rest on are set up: <strong>Model</strong> (a live model profile), <strong>
|
|
977
|
+
<p><strong>Setup checklist.</strong> Until everything is set up, the start screen shows how many of the five things most features rest on are set up: <strong>Model</strong> (a live model profile), <strong>Quill</strong>, <strong>Work items</strong> (Azure DevOps, Jira, TestRail, Zephyr, qTest, or Xray), <strong>Domain</strong>, and <strong>Notifications</strong>. In a terminal 110 columns or wider it is the sidebar's <strong>Get set up</strong>: each finished item with what it found, and the next one as a card with <strong>▸ Set up</strong> (its steps in the chat; for <strong>Work items</strong>, it runs <code>/auth</code>) and <strong>skip</strong>. A skipped item is kept in <code>.forgeqe/setup.json</code> and not asked about again. Narrower, it is one <strong>Setup</strong> line with <strong>▸ how to set up</strong> and <strong>skip</strong>. The checks are the same ones <code>/features</code> uses, so the two always agree.</p>
|
|
978
978
|
<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>
|
|
979
979
|
<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>
|
|
980
980
|
<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>
|
|
@@ -1206,7 +1206,7 @@ forgeqe run "Run the cases in smoke.yaml and don't post results" --pla
|
|
|
1206
1206
|
<p>How memory saves time and tokens:</p>
|
|
1207
1207
|
<ul>
|
|
1208
1208
|
<li><strong>Replay.</strong> Running a goal that passed before replays its recorded steps directly in the browser, with no model calls. A different goal replays nothing: the agent gets the steps of earlier runs on the site, and the controls that worked there, as hints, and decides itself which of them (a banner, a sign-in, a search form) apply to its task, so a new task does not re-explore the setup. Each step finds its element by the highest-confidence locator that still matches exactly one element, then by the element's fingerprint, so a renamed button or a changed id still resolves. The transcript marks these steps <code>↻</code> and shows the locator used (<code>click "Search" [role 88%]</code>).</li>
|
|
1209
|
-
<li><strong>The site's rulebook.</strong> Page memory keeps what worked; the rulebook keeps what did not. When an action fails during a run and the agent then finds one that works, it may end its answer with a line or two starting <code>Lesson:</code> ("On the booking page, type the date in the Check-in field; clicking a day in the calendar does nothing"). ForgeQE keeps a lesson only when that run passed, in <code>rules/<host>.json</code> in page memory, and every later run that starts on that site gets the rules, so it does not spend steps on the same dead end. The lesson lines are taken out of the run's summary. The book works like
|
|
1209
|
+
<li><strong>The site's rulebook.</strong> Page memory keeps what worked; the rulebook keeps what did not. When an action fails during a run and the agent then finds one that works, it may end its answer with a line or two starting <code>Lesson:</code> ("On the booking page, type the date in the Check-in field; clicking a day in the calendar does nothing"). ForgeQE keeps a lesson only when that run passed, in <code>rules/<host>.json</code> in page memory, and every later run that starts on that site gets the rules, so it does not spend steps on the same dead end. The lesson lines are taken out of the run's summary. The book works like Quill's rulebook (under Keeping Quill's cost down): at most 15 one-line rules, merged when learned again, the least confirmed and oldest dropped first, expired after 180 days unconfirmed, and a rule with a link, a token, a destructive command, or wording that drops instructions is refused. ForgeQE says each new rule (<code>Learned for this site: …</code>). <code>browser.rulebook: false</code> turns it off; with page memory off there is none.</li>
|
|
1210
1210
|
<li><strong>Hand-off.</strong> With <code>replay: verify</code> (the default) the agent then looks at the page once and confirms the result. <code>replay: trust</code> finishes without the model when every step of this same task replayed. When a step cannot be found, the agent continues from that point instead of starting over. <code>replay: off</code> records memory but never replays.</li>
|
|
1211
1211
|
<li><strong>Failed runs.</strong> A run that fails keeps the steps that worked before it went wrong (<code>resume.json</code> in its run folder, and in the task's flow). Running the same task again replays them and the agent picks up at the point of failure, told what went wrong last time. When ForgeQE's agent retries a failed goal with different wording, it passes the failed run (<code>resume_from</code>), so the retry starts from the same point instead of step 1.</li>
|
|
1212
1212
|
<li><strong>Cut-off runs.</strong> After every step, a run saves the steps that worked so far and the page memory it has learned, so nothing is lost if ForgeQE is closed, the machine restarts, or the run is stopped. Running the same task again replays those steps and the agent carries on from there; the folder of the cut-off run also has <code>resume.json</code>, so <code>resume_from</code> works with it too. When the model can't be reached (the connection dropped), the run ends as failed and keeps its steps the same way. A run that finishes removes the saved point.</li>
|
|
@@ -1291,7 +1291,7 @@ forgeqe memory stats # how often memory stood in for the
|
|
|
1291
1291
|
<li>goals say "sign in with the saved login dynamics" and never contain the password, so it is not in <code>run.json</code>, <code>trace.md</code>, <code>report.html</code>, or <code>workflow.yaml</code>;</li>
|
|
1292
1292
|
<li>the browser agent types the exact value from a placeholder, so quotes or a full stop around the password in the test case cannot end up in the password field;</li>
|
|
1293
1293
|
<li>the signed-in session is saved in <code>.forgeqe/sessions/</code>, so follow-up runs ("now open the latest case") start signed in;</li>
|
|
1294
|
-
<li>tests
|
|
1294
|
+
<li>tests Quill writes read <code>FORGEQE_<NAME>_USERNAME</code> and <code>FORGEQE_<NAME>_PASSWORD</code>, and ForgeQE sets them when it runs those tests in this session.</li>
|
|
1295
1295
|
</ul>
|
|
1296
1296
|
<p>ForgeQE keeps the values in memory for the session only: it does not write them to disk or put them in the agent runtime's environment. Your message itself is still part of the conversation, which the agent runtime keeps locally like any chat, and which the model provider receives. Close ForgeQE and the remembered values are gone (the saved session stays until it expires or you clear it). Ask "which logins do I have?" to see them, or "forget the dynamics login" to drop them. For pipelines and later sessions, use <code>logins:</code> with environment variables.</p>
|
|
1297
1297
|
<p>Single sign-on, captchas, and security keys need a person: <code>forgeqe login shop</code> opens a browser on the login page, you sign in, press Enter in the terminal, and the session is saved. <code>forgeqe logins</code> lists logins, which variables are missing, and when each session was saved; <code>forgeqe logins clear shop</code> (or <code>--all</code>) forgets sessions. In the shell, "sign in to shop" does the same: the browser opens, a <strong>Your turn</strong> prompt waits while you sign in, and <strong>Done, continue</strong> saves the session. <code>forgeqe run</code> asks you to press Enter instead, and <code>forgeqe mcp</code> cannot wait for a person, so it tells the calling agent to have you run <code>forgeqe login shop</code>. In a pipeline, set the login variables as secrets.</p>
|
|
@@ -1304,7 +1304,7 @@ forgeqe memory stats # how often memory stood in for the
|
|
|
1304
1304
|
<p class="ds">Opens a browser with the Recorder panel docked in the page while the user does the steps of a web test themself, and saves their clicks, typing, choices and keys in order as a run, with the checks, kept values, test data and notes they add; the coding agent then turns it into a test in the repository's framework.</p>
|
|
1305
1305
|
<div class="facts">
|
|
1306
1306
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>I'll show you the checkout steps in the shop: record them</li><li>Record my steps on the cart page and make a test of it</li></ul></div>
|
|
1307
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent,
|
|
1307
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li></ul></div>
|
|
1308
1308
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Local Chrome or Chromium only, one recording at a time; drag and drop and steps inside iframes are not recorded yet</li></ul></div>
|
|
1309
1309
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>web_record</code></p></div>
|
|
1310
1310
|
</div>
|
|
@@ -1418,10 +1418,11 @@ so: <strong>Use the block</strong> marks them as the block.</p>
|
|
|
1418
1418
|
<tr><td>Add, then Step</td><td><strong>Record more from here</strong>: the browser opens and does the steps up to there, and you record what comes next; it goes in after that step. Or a step in your words ("choose the cheapest delivery"), which the coding agent finds on the page and does there; open a page; or go back</td></tr>
|
|
1419
1419
|
<tr><td>Add, then Note</td><td>A note on the step for whoever writes the test ("this is the cart page object")</td></tr>
|
|
1420
1420
|
<tr><td>Drop (bin)</td><td>Removes the step</td></tr>
|
|
1421
|
-
<tr><td>Instructions for
|
|
1421
|
+
<tr><td>Instructions for Quill</td><td>Anything else about the test, in your words: where it goes, the page objects to use, its tags. The coding agent follows them, as long as they keep to the steps and checks</td></tr>
|
|
1422
1422
|
<tr><td>Test data</td><td>Each typed value: as typed, test data, new on each run (<code>ann+{{$unique}}@shop.test</code>), or a secret read from the environment, its typed text removed from the recording, its pictures and every kept version</td></tr>
|
|
1423
1423
|
<tr><td>Blocks</td><td>Keep steps you do in many tests (Sign in) as a block, <code>.forgeqe/blocks/<name>.yaml</code>; put a block in after a step. Blocks go into the repository, so the team shares them (the review says when <code>.gitignore</code> leaves them out). A block holds only steps done by hand: a block file with a step that runs JavaScript, calls an API or uploads a file is ignored</td></tr>
|
|
1424
1424
|
<tr><td>History</td><td>Every change is a version: go back to any of them, or to the recording as recorded</td></tr>
|
|
1425
|
+
<tr><td>Re-record</td><td>Plays the same steps against the application as it is now, and where a step's control has moved, reaches it through another locator the recorder kept for that step and carries on. Each swap is shown (the step, what it does, the locator that replaced which, and what the recorded one said), kept in <code>reheal.json</code> beside the run, and written into the recording only when you accept it — then that locator is the one the step uses, as a version of the review like any other. A control that no locator finds is a failed step as usual: record that stretch again. <strong>Write the test</strong> after a re-record heals the test the recording already has, changing what those steps need and leaving the rest of it alone</td></tr>
|
|
1425
1426
|
<tr><td>Try it</td><td>Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of <code>env.yaml</code> (the same web app's address there), with the test data as recorded or other values. With <code>api.capture</code> on (the default) it keeps the application's API calls of the latest try in <code>tries/network.json</code>, cleaned as a recording's are; <strong>API tests from its calls</strong> opens the API page with that try picked and the recording to compare with, so values that differ between them become the calls' inputs</td></tr>
|
|
1426
1427
|
</tbody>
|
|
1427
1428
|
</table></div>
|
|
@@ -1432,7 +1433,7 @@ agent, which asks nothing: the plan and where the test goes follow the repositor
|
|
|
1432
1433
|
that every test using it calls. A past recording is run again the same way: <strong>Review</strong> in the list, then <strong>Try it</strong>.</p>
|
|
1433
1434
|
<p><strong>Write the test</strong> first plays the steps with Playwright, as the test will. When a step does not work, it says so
|
|
1434
1435
|
before any code is written: <strong>Record step N again</strong> (the browser does the steps before it, and what you record takes
|
|
1435
|
-
its place), drop it, or write the test anyway. Then
|
|
1436
|
+
its place), drop it, or write the test anyway. Then Quill writes the test, and its work shows in the review:
|
|
1436
1437
|
what it is doing, the files it changed, and its answer (or why it stopped).</p>
|
|
1437
1438
|
</div>
|
|
1438
1439
|
</section>
|
|
@@ -1459,7 +1460,7 @@ what it is doing, the files it changed, and its answer (or why it stopped).</p>
|
|
|
1459
1460
|
<li><strong>The verdict</strong> of an API step rests on the status the server answered, not on the agent's account of it.</li>
|
|
1460
1461
|
<li><strong>The run records it</strong> as an <code>api</code> step in <code>workflow.yaml</code>: method, URL, body, CSRF source, and the status and final URL the server gave.</li>
|
|
1461
1462
|
<li><strong>ForgeQE's replay repeats it</strong> the same way, and fails that step when the server answers differently (403 where the run got 200), so the replay and the test get past it instead of stalling on an empty cart.</li>
|
|
1462
|
-
<li><strong>
|
|
1463
|
+
<li><strong>Quill's handoff</strong> lists each API step with what was sent and answered, and tells Quill to make it through the framework's API request context that shares the browser's cookies (Playwright's <code>page.request</code>), asserting the status.</li>
|
|
1463
1464
|
<li><strong>Kept for reuse</strong>: the calls are saved as an API scenario, one per test case (<code>out/api/case-ado-2287/</code>, updated by each run), which <code>forgeqe api</code> and the API tools run again without a browser. The run's card says where (<em>API 2 calls saved as a reusable API scenario</em>).</li>
|
|
1464
1465
|
</ul>
|
|
1465
1466
|
<p>URLs the case gives are opened exactly as given: when the model adds a trailing slash (<code>/login/</code>, a 404 on many sites), ForgeQE opens and records the URL from the case.</p>
|
|
@@ -1606,7 +1607,7 @@ forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
|
|
|
1606
1607
|
</code></pre>
|
|
1607
1608
|
<pre><code class="language-yaml">suite:
|
|
1608
1609
|
parallel: 1 # browsers at once
|
|
1609
|
-
code: true # with a repo set, passed cases go to
|
|
1610
|
+
code: true # with a repo set, passed cases go to Quill
|
|
1610
1611
|
restore_sessions: false # true: each case starts signed in from the saved logins' sessions
|
|
1611
1612
|
out_dir: ./.forgeqe/reports/suites
|
|
1612
1613
|
</code></pre>
|
|
@@ -1808,7 +1809,7 @@ forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
|
|
|
1808
1809
|
<div class="detail"><span class="mono">In detail</span>
|
|
1809
1810
|
<section class="doc" id="doc-how_to_use-16-domain-and-regulations">
|
|
1810
1811
|
<h4>Domain and regulations</h4>
|
|
1811
|
-
<div class="prose"><p>ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job, automatically: analysing requirements, writing and checking test cases, planning exploration, writing test code (
|
|
1812
|
+
<div class="prose"><p>ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job, automatically: analysing requirements, writing and checking test cases, planning exploration, writing test code (Quill), reviewing it, healing it, writing and planning API tests, finding tests, and reviewing pull requests. Without a declaration, each works out the industry and regulations from the story, the product knowledge, and the application, and says what it assumed. Declaring yours removes the guesswork:</p>
|
|
1812
1813
|
<pre><code class="language-yaml">domain:
|
|
1813
1814
|
industry: retail banking
|
|
1814
1815
|
regulations: [DORA, PSD2, GDPR, ISO 27001]
|
|
@@ -1822,7 +1823,7 @@ forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
|
|
|
1822
1823
|
<tbody>
|
|
1823
1824
|
<tr><td>ForgeQE's agent</td><td>Adds domain and regulatory cases when it writes test cases or tests from requirements, and judges cases and release readiness against them</td></tr>
|
|
1824
1825
|
<tr><td>Exploratory charters</td><td>Plans charters for the domain's risks and obligations</td></tr>
|
|
1825
|
-
<tr><td>
|
|
1826
|
+
<tr><td>Quill (writing tests)</td><td>Asserts a covered risk or obligation explicitly (the amount, the approval, the audit entry), and carries its label into the test's name or tag</td></tr>
|
|
1826
1827
|
<tr><td>Test reviewer</td><td>Treats a test that drops or weakens such an assertion as a correctness issue</td></tr>
|
|
1827
1828
|
<tr><td>Healing</td><td>Never makes a test pass by loosening such an assertion: if the app no longer meets it, it is an app bug</td></tr>
|
|
1828
1829
|
<tr><td>API tests and scenarios</td><td>Idempotent money-moving calls, access per role, no excess personal data in responses, no leaked internals, audited changes</td></tr>
|
|
@@ -1897,7 +1898,7 @@ Acceptance criteria:
|
|
|
1897
1898
|
</article>
|
|
1898
1899
|
<article class="spec feat" id="cap-business-personas">
|
|
1899
1900
|
<div class="hd"><span class="mono">Test cases</span><h3>Business personas for testing</h3></div>
|
|
1900
|
-
<p class="ds">Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits).
|
|
1901
|
+
<p class="ds">Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits). Mask drafts a new one from your words; any agent then acts as it in a browser run, designs test cases from what it validates, or reviews a feature through its eyes. Kept in the project for every agent.</p>
|
|
1901
1902
|
<div class="facts">
|
|
1902
1903
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create a persona of an SME in payments</li><li>Test the refund flow as a payments SME</li><li>Make a business persona for an operations manager who approves orders</li><li>Which business personas do we have?</li></ul></div>
|
|
1903
1904
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
|
|
@@ -1909,7 +1910,7 @@ Acceptance criteria:
|
|
|
1909
1910
|
<h4>Business personas</h4>
|
|
1910
1911
|
<div class="prose"><p>A <strong>business persona</strong> is a person who validates the software the way the business does: a <strong>subject matter expert</strong> (a payments SME who checks refunds, settlement cut-offs and currency rounding), an <strong>end user</strong> (an everyday customer, a first-time user), a <strong>specialist</strong> (a KYC and AML compliance reviewer) or a <strong>business user</strong> (an operations manager with approval limits). Each persona says who the person is, what they want, what they know, and above all <strong>what they check before they accept the software</strong> (<code>validates</code>). Any agent can use one:</p>
|
|
1911
1912
|
<ul>
|
|
1912
|
-
<li><strong>
|
|
1913
|
+
<li><strong>Atlas</strong> makes personas too ("create a persona of an SME in payments"), with Mask, and acts as a persona in a browser run (the persona's brief goes at the start of the goal), designs test cases from what it validates, or reviews a feature through its eyes: "test the refund flow as a payments SME", "write test cases for checkout as a first-time user".</li>
|
|
1913
1914
|
<li><strong>Other agents</strong> (<code>forgeqe mcp</code> clients such as Claude Code or Copilot, and custom agents) call the <code>business_persona</code> tool: <code>op: list</code>, <code>op: get</code> (the persona and its brief), or <code>op: create</code>.</li>
|
|
1914
1915
|
<li><strong>A person</strong> at a terminal:</li>
|
|
1915
1916
|
</ul>
|
|
@@ -1923,10 +1924,10 @@ forgeqe persona create "an SME in card payments who reconciles settlements&
|
|
|
1923
1924
|
<pre><code class="language-bash">forgeqe persona export --out personas.json # your own personas, as a file to share
|
|
1924
1925
|
forgeqe persona import personas.json # another project's: new ones only, never replacing one here
|
|
1925
1926
|
</code></pre>
|
|
1926
|
-
<p><strong>Sharing personas:</strong>
|
|
1927
|
-
<p><strong>In the web app</strong>,
|
|
1928
|
-
<p><strong>A persona's own skills and knowledge</strong> are used only when an agent works as that persona (its command in a chat), never by other agents: <code>.forgeqe/business-personas/<id>/skills/<name>/SKILL.md</code> and <code>.forgeqe/business-personas/<id>/knowledge/<name>.md</code>, a folder the skills list and the document search do not read.
|
|
1929
|
-
<p><strong>
|
|
1927
|
+
<p><strong>Sharing personas:</strong> Mask's page (Personas tab) has Export and Import, and so does <code>forgeqe persona export|import</code>. The file is JSON of the personas' fields. An import is checked as strictly as a persona file. The whole file is refused when any persona in it is refused, and a persona whose id or command this project already has is skipped and listed, never replaced.</p>
|
|
1928
|
+
<p><strong>In the web app</strong>, Mask has three pages, linked at the top right of each: <strong>Agent</strong>, <strong>Personas</strong> and <strong>Tools and runs</strong>. On <strong>Agent</strong>, describe a person in your words ("a compliance officer who reviews every refund over 10,000 EUR") and the agent turns them into a persona in the conversation, shows it, and asks before saving it. <strong>Personas</strong> lists every persona by kind; open one to read what it checks in a side panel, with <strong>Edit</strong> for your own and <strong>Copy to edit</strong> for a built-in one. <strong>New persona</strong> there opens the same kind of panel: Mask drafts one from your words (or write it yourself), you change any field, and Save keeps it. To work as a persona, type its command and the task in any chat (<code>/priya Refund half of yesterday's order</code>).</p>
|
|
1929
|
+
<p><strong>A persona's own skills and knowledge</strong> are used only when an agent works as that persona (its command in a chat), never by other agents: <code>.forgeqe/business-personas/<id>/skills/<name>/SKILL.md</code> and <code>.forgeqe/business-personas/<id>/knowledge/<name>.md</code>, a folder the skills list and the document search do not read. Mask drafts a skill and a knowledge note from the persona right after you save a new persona or a copy, and on <strong>Generate skill and knowledge</strong> in any persona's panel (a built-in one too); you review and change them, and nothing is saved until you press Save. Edit or remove them in the panel. A persona can also use the project's shared skills and documents, picked in <strong>Edit</strong>, with suggestions that match its domain.</p>
|
|
1930
|
+
<p><strong>Mask</strong> (<code>forgeqe-persona</code>) drafts a new persona from your words: ask "create a persona of an SME in payments", or <code>op: create</code> with <code>request</code>. It has no tools and answers in a fixed shape; ForgeQE keeps only the persona's fields, checked. A draft is shown first and saved only when you agree (<code>--save</code> asks in a terminal; <code>save: true</code> asks in the shell and the web app). It needs a live model; without one, write the persona yourself.</p>
|
|
1930
1931
|
<p><strong>Your own personas</strong> are <code>.forgeqe/business-personas/<id>.yaml</code>, shared with everyone who uses the repository. Saving one also writes its profile as <code><id>.md</code> beside it, made from its fields, for people and agents that read the project's documents. The YAML is the persona; the <code>.md</code> is written again whenever the persona is saved:</p>
|
|
1931
1932
|
<pre><code class="language-yaml">id: merchant-onboarding-sme
|
|
1932
1933
|
handle: omar # its command in any agent's chat: /omar Validate the merchant onboarding change
|
|
@@ -1970,9 +1971,9 @@ scenarios:
|
|
|
1970
1971
|
<p>It works in steps, each reading the same model of the business:</p>
|
|
1971
1972
|
<ol>
|
|
1972
1973
|
<li><strong>Discover</strong> (<code>context</code>): from the product knowledge graph (<code>forgeqe knowledge build</code>), a model of the business: capabilities (payments, refunds, incentives, approvals, entitlements, payouts, personal data…), processes, the <strong>rules the code enforces</strong> (the conditions that refuse a request, with file and line), the states a record goes through, tables with personal data, and the <strong>exposures</strong> these suggest (a refund route with no cap on the amount, an incentive that may be granted twice, a route that acts on a record by its id with no sign-in seen). What was read is <em>observed</em>; what it means is <em>inferred</em>, and said to be.</li>
|
|
1973
|
-
<li><strong>Hypothesise</strong> (<code>hypotheses</code>): business questions, each with personas chosen for their motives: can two partial refunds add up to more than was paid; can a one-time coupon be used five times at the same moment; is a reward taken back when its order is returned; can a cancelled order still be shipped (a rule enforced on one journey, missing on another); can a limit be split; can someone approve their own request; can one customer act on another's order; do equivalent customers get the same price; is a refund after the payout run taken off the next payout. With a live model, the <strong>Scenario Strategist</strong> (<code>forgeqe-business-strategist</code>, no tools) proposes more; ForgeQE keeps only those that name things the model of the business has. When a scenario needs a persona the project lacks (an insider, a colluding merchant), it says so, and
|
|
1974
|
-
<li><strong>Plan</strong> (<code>plan</code>): an investigation: steps by one or several personas (in turn, or at the same moment for a race), each an <strong>API call</strong> ForgeQE sends (matched to your saved API contracts) or a <strong>browser journey</strong>
|
|
1975
|
-
<li><strong>Run</strong> (<code>run</code>): the API steps on a <strong>test environment</strong> of env.yaml (never one named like production), the calls that change data only after you agree.
|
|
1974
|
+
<li><strong>Hypothesise</strong> (<code>hypotheses</code>): business questions, each with personas chosen for their motives: can two partial refunds add up to more than was paid; can a one-time coupon be used five times at the same moment; is a reward taken back when its order is returned; can a cancelled order still be shipped (a rule enforced on one journey, missing on another); can a limit be split; can someone approve their own request; can one customer act on another's order; do equivalent customers get the same price; is a refund after the payout run taken off the next payout. With a live model, the <strong>Scenario Strategist</strong> (<code>forgeqe-business-strategist</code>, no tools) proposes more; ForgeQE keeps only those that name things the model of the business has. When a scenario needs a persona the project lacks (an insider, a colluding merchant), it says so, and Mask drafts it.</li>
|
|
1975
|
+
<li><strong>Plan</strong> (<code>plan</code>): an investigation: steps by one or several personas (in turn, or at the same moment for a race), each an <strong>API call</strong> ForgeQE sends (matched to your saved API contracts) or a <strong>browser journey</strong> Atlas runs as the persona, and <strong>business outcome oracles</strong>: what the business intended, as checks over business values (<code>sum($refunded) <= $paid</code>, at most one accepted redemption, the forbidden action refused, the same outcome for equivalent customers).</li>
|
|
1976
|
+
<li><strong>Run</strong> (<code>run</code>): the API steps on a <strong>test environment</strong> of env.yaml (never one named like production), the calls that change data only after you agree. Atlas does the browser steps as the personas and records what it saw (<code>observe</code>).</li>
|
|
1976
1977
|
<li><strong>Judge and report</strong> (<code>report</code>): each investigation's outcome, worked out by code: <strong>confirmed business failure</strong> (an expectation that is policy, or a rule the code enforces elsewhere, was broken, with the evidence), <strong>policy ambiguity</strong> (the software did something unexpected, but nobody has said the expectation is policy: a question for the business), <strong>potential risk</strong>, <strong>missing evidence</strong>, or <strong>expected behaviour</strong>. Findings are ranked by impact, exploitability, likelihood and confidence, with an exposure range only where a breach was observed and you stated how often it could happen. Views for executives, product owners, risk and compliance, and engineering.</li>
|
|
1977
1978
|
<li><strong>Learn</strong>: findings, a person's decisions and proposals (add a broken expectation to the personas who acted) are kept in <code>.forgeqe/business/memory.jsonl</code>; a pattern confirmed once weighs more in later hypotheses. Proposals are never applied by themselves.</li>
|
|
1978
1979
|
</ol>
|
|
@@ -1994,7 +1995,7 @@ forgeqe business simulate <simulation> [--env qa] [--yes]
|
|
|
1994
1995
|
<p><strong>Interviews.</strong> After a run you can ask any person of the population why they did what they did: on the Simulation tab, <strong>Ask why</strong> next to each person who broke a check, or at a terminal. The interviewer is a model with no tools; it is given that person's persona, their attributes and their own calls of that run, numbered, as data, and answers as that person, citing the calls its answer rests on. Code keeps only citations of that person's own calls, and says so when an answer cites none ("not tied to the run"). An answer is the model's account, never evidence: it never changes the outcome, and the checks stay the evidence. Interviews are kept in the simulation's <code>interviews.jsonl</code> and read back as untrusted. With no model set up, nobody is interviewed.</p>
|
|
1995
1996
|
<pre><code class="language-bash">forgeqe business interview <simulation> <member> 'Why did you ask for a refund twice?'
|
|
1996
1997
|
</code></pre>
|
|
1997
|
-
<p><strong>In the web app</strong>,
|
|
1998
|
+
<p><strong>In the web app</strong>, Watchdog's page (Agents, or Quality Engineering, Test design, Business assurance) has its tabs at the top right: <strong>Agent</strong> (ask it in words; its tools and runs), <strong>Investigations</strong> (each one's scenario, what the business intended, Run, which first lists the calls that change data and runs them only once you agree, the evidence, what pending steps showed, and <strong>Decide</strong>, where you type the investigation's id), <strong>Hypotheses</strong> (filter by area, <strong>Plan</strong> one), <strong>Model of the business</strong> (read again from the product graph), and <strong>Findings</strong> for leaders, product, risk and compliance, or engineering. Switching tabs is instant and keeps what you typed; each tab has its own address. The gateway (<code>src/web/business.ts</code>) checks everything again, and audits every plan, run, observation and decision. Mask's page shows and edits each persona's intent, risk appetite, motivations, permissions, constraints, mistakes and relationships.</p>
|
|
1998
1999
|
<p>Try it on <code>samples/business-shop</code>, a small shop API whose checks each return the right status for the case they were written for, and whose business still loses money: a second partial refund is checked against the order's total, not what is left to refund; a one-time coupon is checked before a slow lookup, so a burst redeems it several times; shipping does not check that the order was cancelled.</p>
|
|
1999
2000
|
<p>An investigation file can be written by hand, by the model or come from the repository, so it is read strictly: known keys only, personas and API calls only ones the project has (a contract set by its id, never a path), a call's path only a path on the API, <code>{{name}}</code> values put in a path encoded and in a body as data, values captured only from the fields named, no input named like a credential, oracles only in their small formula grammar (numbers, <code>$names</code>, <code>+ - *</code>, <code>sum min max count abs</code>; never code), at most 20 steps and 20 repeats. Deciding whether an expectation is the business's policy, or a behaviour is permitted, is a person's: <code>forgeqe business decide</code> asks you to type the investigation's id, and the agent asks you first.</p>
|
|
2000
2001
|
</div>
|
|
@@ -2127,10 +2128,10 @@ environment ("run the checkout tests in UAT"): each test tool takes an
|
|
|
2127
2128
|
</thead>
|
|
2128
2129
|
<tbody>
|
|
2129
2130
|
<tr><td>ForgeQE's agent</td><td>The environment, its apps (with descriptions), values and cloud accounts in its session notes; plans scenarios across apps from them and carries values (an order number) between them</td></tr>
|
|
2130
|
-
<tr><td>
|
|
2131
|
+
<tr><td>WebPilot</td><td>Starts at <code>start_app</code> when no URL is given; knows the environment's web apps by name and stays on their hosts; its values</td></tr>
|
|
2131
2132
|
<tr><td>API tests</td><td>Call <code>api_app</code>'s URL</td></tr>
|
|
2132
|
-
<tr><td>
|
|
2133
|
-
<tr><td>
|
|
2133
|
+
<tr><td>DeskPilot</td><td>Starts the environment's desktop apps; types only its <code>secrets</code></td></tr>
|
|
2134
|
+
<tr><td>Quill, the healer, the reviewer</td><td>Write tests that read <code>FORGEQE_APP_<APP>_URL</code> (or the repository's own settings), never a fixed environment URL; the reviewer flags one</td></tr>
|
|
2134
2135
|
<tr><td>Tests ForgeQE runs, pack pipelines</td><td><code>FORGEQE_ACTIVE_ENV</code>, <code>FORGEQE_APP_<APP>_URL</code> / <code>_PATH</code> / <code>_ID</code>, <code>FORGEQE_VAR_<NAME></code>, <code>FORGEQE_DATA_<NAME></code>, <code>FORGEQE_CLOUD_*</code> (pipelines written by <code>forgeqe pack pipeline init</code> take them as the <code>env_vars</code> input)</td></tr>
|
|
2135
2136
|
<tr><td>Reports</td><td>Every run's report names the test environment</td></tr>
|
|
2136
2137
|
<tr><td>Test cases (<code>run_test_cases</code>, <code>forgeqe suite</code>)</td><td><code>{{var.NAME}}</code> and <code>{{app.NAME}}</code> in a case's title, steps and expected results become the environment's variable and the app's URL (below); a case with no address of its own starts at the web app its first step, preconditions or title names first, else at <code>start_app</code>; <code>run_test_cases</code> takes <code>app</code> to start every case at one</td></tr>
|
|
@@ -2232,7 +2233,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
|
|
|
2232
2233
|
<tr><th>Command</th><th>What it does</th></tr>
|
|
2233
2234
|
</thead>
|
|
2234
2235
|
<tbody>
|
|
2235
|
-
<tr><td><code>forgeqe code [run-dir] --repo DIR</code></td><td>
|
|
2236
|
+
<tr><td><code>forgeqe code [run-dir] --repo DIR</code></td><td>Quill writes a test for a run (default: the latest)</td></tr>
|
|
2236
2237
|
<tr><td><code>forgeqe heal ["<test command>"] --repo DIR</code></td><td>Fix tests the app has outgrown, or report app bugs</td></tr>
|
|
2237
2238
|
<tr><td><code>forgeqe visual [run] | approve [run] [--page p]</code></td><td>Each page against its approved screenshot; approve an intended change as the new baseline</td></tr>
|
|
2238
2239
|
<tr><td><code>forgeqe quality [run] | trends [page]</code></td><td>A run's WCAG rules and Core Web Vitals against the budgets; per page over time</td></tr>
|
|
@@ -2240,7 +2241,7 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
|
|
|
2240
2241
|
<tr><td><code>forgeqe api contracts --spec <link|file></code></td><td>API contracts from OpenAPI/Swagger, WSDL, GraphQL, .proto, or grpc://</td></tr>
|
|
2241
2242
|
<tr><td><code>forgeqe api contracts --run [RUN]</code></td><td>API contracts from the calls a browser run saw the app make</td></tr>
|
|
2242
2243
|
<tr><td><code>forgeqe api run [SET] [--base-url URL]</code></td><td>Run contracts against the API, no browser; exit 1 on a failure</td></tr>
|
|
2243
|
-
<tr><td><code>forgeqe api tests [SET] --repo DIR</code></td><td>
|
|
2244
|
+
<tr><td><code>forgeqe api tests [SET] --repo DIR</code></td><td>Quill writes contracts as API tests in the repo</td></tr>
|
|
2244
2245
|
<tr><td><code>forgeqe api scenarios --run | --spec <link> | --cases <refs> | --text "..."</code></td><td>End-to-end API scenarios: chained from a run, lifecycles and negative cases from a description, or planned from test cases or plain English</td></tr>
|
|
2245
2246
|
<tr><td><code>forgeqe api run-scenarios [SET] [--allow-writes]</code></td><td>Run them against the API; exit 1 on a failure</td></tr>
|
|
2246
2247
|
<tr><td><code>forgeqe api tests --scenarios --repo DIR</code></td><td>Scenario tests on the repo's existing API helpers</td></tr>
|
|
@@ -2330,14 +2331,14 @@ Signing in stays <code>/auth</code> and <code>forgeqe login</code>; <code>forgeq
|
|
|
2330
2331
|
<tr><th>Folder</th><th>What it holds</th></tr>
|
|
2331
2332
|
</thead>
|
|
2332
2333
|
<tbody>
|
|
2333
|
-
<tr><td><code>.forgeqe/prompts/</code></td><td>Every prompt ForgeQE's agents work from, one markdown file each: ForgeQE's agent (<code>brain.md</code>),
|
|
2334
|
+
<tr><td><code>.forgeqe/prompts/</code></td><td>Every prompt ForgeQE's agents work from, one markdown file each: ForgeQE's agent (<code>brain.md</code>), Quill (<code>test-agent.md</code>, <code>test-rules.md</code>), the reviewer, healing, finding tests, pull request review, API tests and scenarios, exploratory charters, and the browser agent (<code>browser-*.md</code>, plus <code>browser-extra.md</code> for your own instructions).</td></tr>
|
|
2334
2335
|
<tr><td><code>.forgeqe/skills/</code></td><td>The built-in skills (framework and app playbooks), to adapt to your project; add your own next to them.</td></tr>
|
|
2335
2336
|
<tr><td><code>.forgeqe/knowledge/</code></td><td>Product knowledge templates: the product and its flows, roles, glossary, business rules, test data, environments.</td></tr>
|
|
2336
2337
|
</tbody>
|
|
2337
2338
|
</table></div>
|
|
2338
2339
|
<p><strong>Your copy or ForgeQE's.</strong> <code>.forgeqe-manifest.json</code> in each folder records what was copied. A copy you have not changed still counts as ForgeQE's, so it keeps getting ForgeQE's improvements when you update; once you edit it, yours is used. When ForgeQE's version changes after you edited yours, ForgeQE says so at start-up. Running <code>init</code> again adds what is missing and never overwrites an edited file (with <code>--force</code> it refreshes only unchanged copies).</p>
|
|
2339
2340
|
<p><strong>Prompts.</strong> Each file has a short header (<code>name</code>, <code>description</code>, <code>used_by</code>, <code>kind</code>) and the prompt; <code>{{> name}}</code> includes another prompt (<code>test-rules</code> is included in the test, reviewer, and healing prompts, so one edit changes all three). ForgeQE looks in <code>prompts.dir</code>, then <code>.forgeqe/prompts/</code>, then <code>~/.forgeqe/prompts/</code> (for every project), then its own. Changes take effect on the next run or session.</p>
|
|
2340
|
-
<p><strong>Your team's prompts.</strong> Instructions of your own for chosen agents go in <code>.forgeqe/prompts/team/<name>.md</code> (or <code>~/.forgeqe/prompts/team/</code> for every project; a name in the project wins). The header has <code>name</code>, <code>description</code>, and <code>for</code>: the agents' prompts it joins (<code>brain</code> for ForgeQE's agent, <code>test-agent</code> for
|
|
2341
|
+
<p><strong>Your team's prompts.</strong> Instructions of your own for chosen agents go in <code>.forgeqe/prompts/team/<name>.md</code> (or <code>~/.forgeqe/prompts/team/</code> for every project; a name in the project wins). The header has <code>name</code>, <code>description</code>, and <code>for</code>: the agents' prompts it joins (<code>brain</code> for ForgeQE's agent, <code>test-agent</code> for Quill, <code>browser-extra</code> for the browser agent, and so on). Its text is added at the end of those prompts, under "Your team's instructions", as written: it is not a template and includes nothing. The web app's Prompts page adds, edits and removes them, and shows each agent's whole prompt with them included; <code>forgeqe prompts show <prompt></code> shows it in the terminal.</p>
|
|
2341
2342
|
<pre><code class="language-markdown">---
|
|
2342
2343
|
name: tag-work-items
|
|
2343
2344
|
description: "Tests carry the work item they cover"
|
|
@@ -2608,7 +2609,7 @@ here, and a gateway route to no known service, are open questions in <code>forge
|
|
|
2608
2609
|
</div>
|
|
2609
2610
|
</article>
|
|
2610
2611
|
<article class="spec feat" id="cap-knowledge-agent">
|
|
2611
|
-
<div class="hd"><span class="mono">Setup</span><h3>
|
|
2612
|
+
<div class="hd"><span class="mono">Setup</span><h3>Librarian: what ForgeQE understood, and your corrections</h3></div>
|
|
2612
2613
|
<p class="ds">Says what ForgeQE has understood about the product from its knowledge notes, documents, skills, the team's prompts and the product graph, citing each source. A correction in your words becomes changes: a section of a knowledge note or a project skill, a team prompt, or Right/Wrong with what is right on a business rule, journey, capability or term of the graph. Where two sources disagree it asks which is right. Each change is shown as a diff and written only when a person approves it.</p>
|
|
2613
2614
|
<div class="facts">
|
|
2614
2615
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What do you know about refunds?</li><li>That's wrong: the supervisor limit is 1000 EUR, not 500</li><li>Remember that every test must carry its work item</li></ul></div>
|
|
@@ -2617,9 +2618,9 @@ here, and a gateway route to no known service, are open questions in <code>forge
|
|
|
2617
2618
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>knowledge_agent</code></p></div>
|
|
2618
2619
|
</div>
|
|
2619
2620
|
<div class="detail"><span class="mono">In detail</span>
|
|
2620
|
-
<section class="doc" id="doc-how_to_use-
|
|
2621
|
-
<h4>
|
|
2622
|
-
<div class="prose"><p>
|
|
2621
|
+
<section class="doc" id="doc-how_to_use-librarian">
|
|
2622
|
+
<h4>Librarian</h4>
|
|
2623
|
+
<div class="prose"><p>Librarian (<code>forgeqe-knowledge-agent</code>) tells you what ForgeQE has understood about your product, and takes your corrections. Ask it on its page in the web app (Librarian), with <code>forgeqe knowledge chat</code>, or in any chat ("what do you know about refunds?", "that's wrong: the supervisor limit is 1000 EUR"), where ForgeQE's agent hands it over.</p>
|
|
2623
2624
|
<ul>
|
|
2624
2625
|
<li><strong>What it reads.</strong> The sections of your knowledge notes, documents and skills that your words are about (found as in <em>Searching your documents, without vectors</em>), the team's prompts, and the business rules, journeys, capabilities and terms of the product graph. Each answer names the sources it rests on.</li>
|
|
2625
2626
|
<li><strong>What a correction changes.</strong> Only what is the project's own: one section of a knowledge note (or a section added after it, or a new note), one section of a project skill (a skill of ForgeQE's or yours is copied into <code>.forgeqe/skills</code> first, and that copy is used from then on), a team prompt (<code>.forgeqe/prompts/team</code>), or Right/Wrong with what is right on a part of the product graph (<code>graph/feedback.json</code>, which outranks the model on the next build). Documents of <code>product.docs</code>, the uploaded documents and ForgeQE's own prompts are never changed.</li>
|
|
@@ -2636,7 +2637,7 @@ forgeqe knowledge chat "what do you know about refunds?"
|
|
|
2636
2637
|
</article>
|
|
2637
2638
|
<article class="spec feat" id="cap-document-search">
|
|
2638
2639
|
<div class="hd"><span class="mono">Setup</span><h3>Search the project's documents, without vectors</h3></div>
|
|
2639
|
-
<p class="ds">Finds the passages of the project's documents that answer a question: the team's notes, the documents added in Settings, the folders of product.docs and of rag.documents (Markdown, text, HTML, and PDF, Word and Excel once indexed). No vector database or embedding model: each document is read as a tree of its sections, ranked by keywords, and
|
|
2640
|
+
<p class="ds">Finds the passages of the project's documents that answer a question: the team's notes, the documents added in Settings, the folders of product.docs and of rag.documents (Markdown, text, HTML, and PDF, Word and Excel once indexed). No vector database or embedding model: each document is read as a tree of its sections, ranked by keywords, and Skimmer picks the sections that answer from their outline. Each passage says its file, line and headings.</p>
|
|
2640
2641
|
<div class="facts">
|
|
2641
2642
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>What does the payments spec say about refund limits?</li><li>Which document describes the password rules?</li><li>Search our documents for the checkout requirements</li></ul></div>
|
|
2642
2643
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
|
|
@@ -2650,7 +2651,7 @@ forgeqe knowledge chat "what do you know about refunds?"
|
|
|
2650
2651
|
<ol>
|
|
2651
2652
|
<li><strong>Each document becomes a tree of its sections</strong>: its Markdown headings (<code>#</code> or underlined), else numbered headings (<code>3.2 Refunds</code>, as PDFs and Word documents have them), else parts of about 2,400 characters at paragraph breaks. A section knows the headings it is under ("Payments › Refunds › Limits") and its line.</li>
|
|
2652
2653
|
<li><strong>Keywords rank the sections</strong> (BM25, as search engines rank; a heading counts three times), then a light re-rank with no model: a section that has more of the question's different words ranks higher, so "refund limits" finds the section on limits before one that only repeats "refund".</li>
|
|
2653
|
-
<li><strong>Reasoning, when a model is set up</strong>:
|
|
2654
|
+
<li><strong>Reasoning, when a model is set up</strong>: Skimmer (<code>forgeqe-doc-reader</code>, no tools, a fixed answer) gets your question and the outline of the documents, and picks the sections that answer it, so "what can a customer get back" finds the section headed "Refund limits". This is the re-ranking step; no separate re-ranking model is needed. When the outline of every document fits (about 16,000 characters), the reader sees all of it, as PageIndex does; otherwise the documents step 2 found. Only ids from the outline are kept; its words reach nobody. Without a model, or when it fails, the keywords answer.</li>
|
|
2654
2655
|
</ol>
|
|
2655
2656
|
<p><strong>What it saves.</strong> Agents get sections, not whole files:</p>
|
|
2656
2657
|
<ul>
|
|
@@ -2670,7 +2671,7 @@ forgeqe knowledge chat "what do you know about refunds?"
|
|
|
2670
2671
|
<p><strong>What is cached, so it costs less the second time.</strong></p>
|
|
2671
2672
|
<ul>
|
|
2672
2673
|
<li>The index: a document is read and split again only when it changes.</li>
|
|
2673
|
-
<li>
|
|
2674
|
+
<li>Skimmer's answers: the same question over the same outline with the same model gets the kept answer with no model call (<code>~/.forgeqe/cache/doc-index/picks.json</code>, 30 days). A changed document or another model asks again; <code>--no-cache</code> asks anyway.</li>
|
|
2674
2675
|
<li>The provider's prompt cache: the outline comes before the question in the reader's message, and is the same text for every question while the documents do not change, so a provider that caches prompts (Anthropic, OpenAI, Azure OpenAI) charges less for it.</li>
|
|
2675
2676
|
</ul>
|
|
2676
2677
|
<p>What is searched: the knowledge folder (<code>.forgeqe/knowledge</code>), the documents added in Settings › Evidence (<code>.forgeqe/documents</code>), every folder of <code>product.docs</code>, and the folders <code>rag.documents.folders</code> names inside the project. Markdown, text, reStructuredText, AsciiDoc and HTML files are read again whenever they change. PDF, Word and Excel files are read by Graphify's converters when you run <code>forgeqe knowledge docs index</code>, and their text is kept for later searches. A folder is listed like a product's documents: no hidden file or folder, no file named like a credential, nothing through a link out of it. The index is one JSON file in ForgeQE's cache (<code>~/.forgeqe/cache/doc-index/</code>), never in the repository.</p>
|
|
@@ -2684,7 +2685,7 @@ forgeqe knowledge docs outline specs/payments.md # the tree of one document
|
|
|
2684
2685
|
<pre><code class="language-yaml">rag:
|
|
2685
2686
|
documents:
|
|
2686
2687
|
folders: [docs/requirements] # beside the knowledge folder, the uploaded documents and product.docs
|
|
2687
|
-
reasoning: false # true:
|
|
2688
|
+
reasoning: false # true: Skimmer picks sections (one model call per search)
|
|
2688
2689
|
top_k: 5
|
|
2689
2690
|
</code></pre>
|
|
2690
2691
|
<p><code>documents: true</code> searches the default folders with keywords only. The passages are the documents' text: agents get them as data, never as instructions.</p>
|
|
@@ -2718,7 +2719,7 @@ agents: [browser]
|
|
|
2718
2719
|
<p><strong>Who uses it.</strong> <code>agents</code> lists <code>forgeqe</code> (ForgeQE's agent: how to handle a kind of request), <code>scribe</code> (writing, healing, finding and reviewing tests), and <code>browser</code> (the browser agent). Without <code>agents</code>, a skill is for <code>forgeqe</code> and <code>scribe</code>; a browser skill must ask for <code>browser</code>.</p>
|
|
2719
2720
|
<p><strong>How skills are used.</strong></p>
|
|
2720
2721
|
<ul>
|
|
2721
|
-
<li>ForgeQE's agent and
|
|
2722
|
+
<li>ForgeQE's agent and Quill see the name and description of each skill meant for them, and load the ones that fit the job through the agent runtime's skill tool. A skill adds to their instructions and never overrides them. Quill can also read files next to <code>SKILL.md</code> (for example <code>references/locators.md</code>) when the skill points to them.</li>
|
|
2722
2723
|
<li>Browser runs: ForgeQE's agent passes the browser skills a goal needs to <code>browser_run</code> and <code>run_test_cases</code>. For <code>forgeqe suite</code>, <code>forgeqe monitor</code> and <code>forgeqe run --direct</code>, the engine picks them from the goal with one short model call (at most three), and remembers the choice for that goal, so a monitor's later rounds and repeated cases skip it. <code>--skill NAME</code> (repeatable) fixes the list; <code>--skill none</code> runs without any. The chosen skills' text is added to the browser agent's prompt, at most <code>skills.browser_max_chars</code> (6,000) characters in total; the browser agent reads only <code>SKILL.md</code>.</li>
|
|
2723
2724
|
<li><code>run.json</code>, the <code>run.done</code> log line and the report list the skills a run used.</li>
|
|
2724
2725
|
</ul>
|
|
@@ -2728,7 +2729,7 @@ agents: [browser]
|
|
|
2728
2729
|
<tr><th>Source</th><th>Folder</th></tr>
|
|
2729
2730
|
</thead>
|
|
2730
2731
|
<tbody>
|
|
2731
|
-
<tr><td>Built-in</td><td>the <code>skills/</code> folder ForgeQE ships: <code>playwright-
|
|
2732
|
+
<tr><td>Built-in</td><td>the <code>skills/</code> folder ForgeQE ships: <code>playwright-automation</code>, <code>bdd-gherkin</code> and <code>testcontainers</code> (Quill), <code>bdd-scenario-design</code> (ForgeQE's agent: asks about Examples, Background and Rule before a BDD test, and passes the answers to <code>write_test</code> as <code>bdd</code>), <code>azure-sdk-testing</code>, <code>aws-sdk-testing</code> and <code>gcp-sdk-testing</code> (Quill and ForgeQE's agent), <code>dynamics-365</code> (browser), <code>dynamics-365-automation</code> (Quill: D365 control names and locators, steps per control, EasyRepro), <code>writing-skills</code> (ForgeQE's agent)</td></tr>
|
|
2732
2733
|
<tr><td>Global, only with <code>skills.external: true</code></td><td><code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the repo's <code>.claude/skills</code> and <code>.agents/skills</code></td></tr>
|
|
2733
2734
|
<tr><td>User</td><td><code>~/.forgeqe/skills</code> (or <code>$FORGEQE_HOME/skills</code>)</td></tr>
|
|
2734
2735
|
<tr><td>Project</td><td><code>.forgeqe/skills</code> next to <code>forgeqe.yaml</code>, and the repo's own <code>.forgeqe/skills</code></td></tr>
|
|
@@ -2758,7 +2759,7 @@ agents: [browser]
|
|
|
2758
2759
|
<tr><td><code>/skills [name]</code></td><td>The same list, or one skill, in the shell</td></tr>
|
|
2759
2760
|
</tbody>
|
|
2760
2761
|
</table></div>
|
|
2761
|
-
<p>In the shell you can also ask: "make a skill for our Dynamics date picker" or "teach
|
|
2762
|
+
<p>In the shell you can also ask: "make a skill for our Dynamics date picker" or "teach Quill our test conventions". ForgeQE's agent gathers the facts, writes the skill into <code>.forgeqe/skills</code> with <code>forgeqe_setup</code>, and it applies from the next session. It writes skills only when you ask.</p>
|
|
2762
2763
|
</div>
|
|
2763
2764
|
</section>
|
|
2764
2765
|
<section class="doc" id="doc-how_to_use-model-routing">
|
|
@@ -2785,8 +2786,9 @@ bun src/index.ts models --routes --profile-models # check and rate the models
|
|
|
2785
2786
|
</section>
|
|
2786
2787
|
<section class="doc" id="doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">
|
|
2787
2788
|
<h4>Model routing: the right configured model for each task</h4>
|
|
2788
|
-
<div class="prose"><p>With more than one model in <code>llms.json</code>, ForgeQE can give each kind of work the model it needs.
|
|
2789
|
-
|
|
2789
|
+
<div class="prose"><p>With more than one model in <code>llms.json</code>, ForgeQE can give each kind of work the model it needs. The most capable model
|
|
2790
|
+
plans the work and leads the chat, then hands the tasks to the agents, each on the model that suits it: a strong model
|
|
2791
|
+
writes code and finds root causes, a cheaper one that is good enough reviews. A model that takes screenshots
|
|
2790
2792
|
drives the browser, and a model with a large window reads a large pull request. You do not need to know what each
|
|
2791
2793
|
model can do: ForgeQE finds out.</p>
|
|
2792
2794
|
</div>
|
|
@@ -2797,6 +2799,7 @@ model can do: ForgeQE finds out.</p>
|
|
|
2797
2799
|
<pre><code class="language-yaml">llm:
|
|
2798
2800
|
models_file: ./llms.json
|
|
2799
2801
|
routing: auto # off (the default for existing projects) | shadow | auto
|
|
2802
|
+
strategy: balanced # balanced (the default) | capability | cost
|
|
2800
2803
|
</code></pre>
|
|
2801
2804
|
<p><code>forgeqe init</code> writes <code>routing: auto</code> for new projects. With no <code>routing</code> line it is off. <code>shadow</code> decides and logs each pick in the session log
|
|
2802
2805
|
(<code>model.route</code>) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the
|
|
@@ -2819,12 +2822,12 @@ whenever it is rated good enough.</p>
|
|
|
2819
2822
|
<tr><th>Area</th><th>What runs in it</th><th>Needs</th></tr>
|
|
2820
2823
|
</thead>
|
|
2821
2824
|
<tbody>
|
|
2822
|
-
<tr><td><code>agent</code></td><td>ForgeQE's agent: the shell, <code>forgeqe run</code>, <code>forgeqe mcp</code
|
|
2825
|
+
<tr><td><code>agent</code></td><td>ForgeQE's agent: the shell, <code>forgeqe run</code>, <code>forgeqe mcp</code> (plans and hands out work: <strong>lead</strong>)</td><td>tool calls; rated 4+</td></tr>
|
|
2823
2826
|
<tr><td><code>browser</code></td><td>Browser, desktop and mobile runs, from screenshots</td><td>images; rated 4+</td></tr>
|
|
2824
|
-
<tr><td><code>coding</code></td><td>
|
|
2827
|
+
<tr><td><code>coding</code></td><td>Quill writing and healing tests, API tests</td><td>tool calls; rated 5</td></tr>
|
|
2825
2828
|
<tr><td><code>review</code></td><td>Test reviewer, pull-request review, evaluation judge</td><td>tool calls; rated 3+</td></tr>
|
|
2826
2829
|
<tr><td><code>analysis</code></td><td>Root cause of defects</td><td>tool calls; rated 5</td></tr>
|
|
2827
|
-
<tr><td><code>planning</code></td><td>Refine, finding tests, API scenarios, exploratory charters</td><td>tool calls; rated 3+</td></tr>
|
|
2830
|
+
<tr><td><code>planning</code></td><td>Refine, finding tests, API scenarios, exploratory charters (<strong>lead</strong>)</td><td>tool calls; rated 3+</td></tr>
|
|
2828
2831
|
</tbody>
|
|
2829
2832
|
</table></div>
|
|
2830
2833
|
</div>
|
|
@@ -2835,7 +2838,7 @@ whenever it is rated good enough.</p>
|
|
|
2835
2838
|
(Settings → Routing → Areas of work, under each area, does the same):</p>
|
|
2836
2839
|
<pre><code class="language-yaml">llm:
|
|
2837
2840
|
agents:
|
|
2838
|
-
forgeqe: azure-gpt4o #
|
|
2841
|
+
forgeqe: azure-gpt4o # Atlas
|
|
2839
2842
|
engine: azure-gpt4o # the browser agent: pick a model that takes images
|
|
2840
2843
|
forgeqe-test: claude-opus # the coding agent
|
|
2841
2844
|
forgeqe-review: azure-mini # its reviewer
|
|
@@ -2868,9 +2871,25 @@ fails its check is replaced as for any area. <code>--profile</code> still names
|
|
|
2868
2871
|
already downloads for prices. A fact that nobody knows never rules a model out.</p>
|
|
2869
2872
|
</li>
|
|
2870
2873
|
<li>
|
|
2871
|
-
<p><strong>Ratings pick among the rest.</strong>
|
|
2872
|
-
root causes ask for 5, because a weaker model there costs more in failed attempts than it saves.
|
|
2873
|
-
|
|
2874
|
+
<p><strong>Ratings and the strategy pick among the rest.</strong> Only models rated at the area's bar are considered. Writing code
|
|
2875
|
+
and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. Among
|
|
2876
|
+
them, <code>llm.strategy</code> picks:</p>
|
|
2877
|
+
<div class="tbl"><table>
|
|
2878
|
+
<thead>
|
|
2879
|
+
<tr><th>Strategy</th><th>Lead areas (<code>agent</code>, <code>planning</code>)</th><th>The other areas</th></tr>
|
|
2880
|
+
</thead>
|
|
2881
|
+
<tbody>
|
|
2882
|
+
<tr><td><code>balanced</code> (the default)</td><td>the most capable model; the cheapest only among equally rated ones</td><td>the best value: a higher rating is worth paying for, up to 4× the price per rating point</td></tr>
|
|
2883
|
+
<tr><td><code>capability</code></td><td>the most capable model</td><td>the most capable model</td></tr>
|
|
2884
|
+
<tr><td><code>cost</code></td><td>the cheapest model rated at the bar</td><td>the cheapest model rated at the bar</td></tr>
|
|
2885
|
+
</tbody>
|
|
2886
|
+
</table></div>
|
|
2887
|
+
<p>So with <code>balanced</code>, the planner is never a weak model because it was cheap, and a worker gets a stronger model when
|
|
2888
|
+
the extra capability costs little more. For example, for review (bar 3) a model rated 5 at 3× the price of one rated
|
|
2889
|
+
4 is picked; at 8× the price, the one rated 4 is. A GitHub Copilot seat counts only its premium requests per call as
|
|
2890
|
+
price. If no model reaches the bar, the best-rated one is picked. With no ratings yet, the active profile is kept
|
|
2891
|
+
unless a fact rules it out. To keep a fast model for one agent (for example Talk's voice agent, which works in
|
|
2892
|
+
<code>planning</code>), give it its own model under <code>llm.agents</code>.</p>
|
|
2874
2893
|
</li>
|
|
2875
2894
|
<li>
|
|
2876
2895
|
<p><strong>A failed answer escalates once.</strong> When a root-cause analysis finds nothing, or finds a cause with low confidence
|
|
@@ -2917,13 +2936,46 @@ data on one deployment; the checks carry nothing from your runs. To send nothing
|
|
|
2917
2936
|
ForgeQE at start with a message that names it.</p>
|
|
2918
2937
|
</div>
|
|
2919
2938
|
</section>
|
|
2939
|
+
<section class="doc" id="doc-docs-model_routing-what-routing-cost-and-what-it-saved">
|
|
2940
|
+
<h4>What routing cost, and what it saved</h4>
|
|
2941
|
+
<div class="prose"><p>Every model call is recorded with the area it was made for and what chose its model — the router's own pick, an
|
|
2942
|
+
<code>llm.agents</code> pin, a substitution after a model failed its check, the active profile kept because nothing else passed,
|
|
2943
|
+
or an escalation. It goes in the usage ledger beside the tokens, so the question "which model wrote the tests, and
|
|
2944
|
+
what did that cost" is answered from the calls themselves and not from the logs.</p>
|
|
2945
|
+
<p>Where to see it:</p>
|
|
2946
|
+
<ul>
|
|
2947
|
+
<li><strong>Cost › By area of work</strong> — what each area spent.</li>
|
|
2948
|
+
<li><strong>Cost › Routing</strong> — each area's pick, and a <em>Ran on</em> column with the models that actually answered for it.</li>
|
|
2949
|
+
<li><strong>Cost › What routing cost</strong> — each area against running everything on <code>llm.active</code>, which is what <code>routing: off</code>
|
|
2950
|
+
does. Both sides are priced at today's prices, so the difference is the models' and not a price that moved since.</li>
|
|
2951
|
+
<li><code>forgeqe models --routes</code> still shows the picks themselves.</li>
|
|
2952
|
+
</ul>
|
|
2953
|
+
<p>Two things to read carefully:</p>
|
|
2954
|
+
<ul>
|
|
2955
|
+
<li><strong>An area can cost more, on purpose.</strong> <code>coding</code> and <code>analysis</code> are routed to a model rated 5, which is usually the
|
|
2956
|
+
dearest one configured. Measured against a cheap active profile, those areas show as costing <em>more</em>, and the total
|
|
2957
|
+
can be negative. That is routing working, not a fault: the cheaper model there costs more in failed attempts than
|
|
2958
|
+
it saves.</li>
|
|
2959
|
+
<li><strong>It is price arithmetic only.</strong> Nothing in it checked that the cheaper model would have reached the same answer,
|
|
2960
|
+
written a test that passed, or found the same root cause. A saving is what the tokens would have cost at another
|
|
2961
|
+
price, nothing more.</li>
|
|
2962
|
+
</ul>
|
|
2963
|
+
<p>Calls that cannot be compared are counted and named rather than folded in: a model with no known price, an active
|
|
2964
|
+
profile with no known price, or a price in another currency, which there is no rate to convert with. Calls recorded
|
|
2965
|
+
before ForgeQE kept the area, and any the router never touched, are their own <strong>Not attributed</strong> row.</p>
|
|
2966
|
+
</div>
|
|
2967
|
+
</section>
|
|
2920
2968
|
<section class="doc" id="doc-docs-model_routing-what-it-does-not-do">
|
|
2921
2969
|
<h4>What it does not do</h4>
|
|
2922
2970
|
<div class="prose"><ul>
|
|
2971
|
+
<li>The lead model does not choose the workers' models itself: each agent's model is picked by code, from the ratings
|
|
2972
|
+
and the strategy, so the same configuration always gives the same models.</li>
|
|
2923
2973
|
<li>ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model
|
|
2924
2974
|
mid-conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the
|
|
2925
2975
|
other agents, and those are routed.</li>
|
|
2926
2976
|
<li>A rating is one model's judgement. It is kept in a file that you can read and correct.</li>
|
|
2977
|
+
<li>It does not judge whether a cheaper model was good enough. The saving it reports is a price difference; whether the
|
|
2978
|
+
model that answered was the right one is what a test's result, a review and a root cause tell you.</li>
|
|
2927
2979
|
</ul>
|
|
2928
2980
|
</div>
|
|
2929
2981
|
</section>
|
|
@@ -2970,11 +3022,10 @@ first; use a test machine and a test account. Details: <a href="#doc-docs-deskto
|
|
|
2970
3022
|
</section>
|
|
2971
3023
|
<section class="doc" id="doc-docs-desktop-forgeqe-desktop-thick-client-automation">
|
|
2972
3024
|
<h4>ForgeQE desktop: thick-client automation</h4>
|
|
2973
|
-
<div class="prose"><p>Status: runs on Windows. The
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
run: explore with a real model (the job has no key), and your own apps. See
|
|
3025
|
+
<div class="prose"><p>Status: runs on Windows. The live tests there install the engine and the pinned UFO², replay Notepad with the
|
|
3026
|
+
pywinauto driver and through <code>forgeqe desktop replay</code>, heal a moved control from the live window, and run a whole
|
|
3027
|
+
explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the
|
|
3028
|
+
control's AutomationId, and the recording replays. Not yet run: explore with a real model, and your own apps. See
|
|
2978
3029
|
<a href="#doc-docs-desktop-before-first-use-on-windows">Before first use on Windows</a>.</p>
|
|
2979
3030
|
<p>ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms,
|
|
2980
3031
|
WPF, and the native parts of Electron and WebView2 apps): say what you want in plain language, UFO² does it on the live
|
|
@@ -3303,11 +3354,10 @@ nightly workflow (<code>ci/desktop-runner/desktop-nightly.example.yml</code>), a
|
|
|
3303
3354
|
<h4>Updating UFO²</h4>
|
|
3304
3355
|
<div class="prose"><p>UFO² is pinned to one commit. Moving it is checked before it is pinned:</p>
|
|
3305
3356
|
<ol>
|
|
3306
|
-
<li>
|
|
3307
|
-
|
|
3308
|
-
real code and a scripted explore of Notepad, and says in the job summary whether it passed.</li>
|
|
3357
|
+
<li>Set up that UFO on Windows (<code>FORGEQE_UFO_COMMIT</code>, which takes a full 40-character commit id only), then run the
|
|
3358
|
+
adapter tests against its real code and a scripted explore of Notepad.</li>
|
|
3309
3359
|
<li>When it passed: <code>bun scripts/ufo-bump.ts <commit></code> writes the new pin into <code>src/desktop/setup.ts</code>,
|
|
3310
|
-
<code>py/forgeqe_desktop/ufo_runner.py</code> and this page. Run the tests
|
|
3360
|
+
<code>py/forgeqe_desktop/ufo_runner.py</code> and this page. Run the tests on Windows again before pushing.</li>
|
|
3311
3361
|
</ol>
|
|
3312
3362
|
<p>When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the
|
|
3313
3363
|
adapter wraps). Keep the pin until the adapter is updated for it.</p>
|
|
@@ -3419,7 +3469,7 @@ is not set, stopped at "No model in llms.json can …" (now healing is
|
|
|
3419
3469
|
<div class="prose"><ol>
|
|
3420
3470
|
<li>The checks above.</li>
|
|
3421
3471
|
<li><code>forgeqe suite</code> and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.</li>
|
|
3422
|
-
<li>
|
|
3472
|
+
<li>Quill: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo.</li>
|
|
3423
3473
|
<li>App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix.</li>
|
|
3424
3474
|
<li>A pipeline template for a self-hosted Windows runner signed in to a desktop session.</li>
|
|
3425
3475
|
</ol>
|
|
@@ -3605,10 +3655,10 @@ download the <code>hyperexecute</code> CLI into the folder, then run <code>forge
|
|
|
3605
3655
|
</section>
|
|
3606
3656
|
<section class="doc" id="doc-docs-mobile-forgeqe-mobile-android-and-ios-apps">
|
|
3607
3657
|
<h4>ForgeQE mobile: Android and iOS apps</h4>
|
|
3608
|
-
<div class="prose"><p>Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro.
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3658
|
+
<div class="prose"><p>Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. On an
|
|
3659
|
+
Android emulator the live tests go further: Appium explores and replays the emulator's Settings app, and Maestro
|
|
3660
|
+
replays the same workflow. iOS runs the same code with the XCUITest driver, but is untested (it needs a macOS machine
|
|
3661
|
+
with a simulator).</p>
|
|
3612
3662
|
<p>ForgeQE drives mobile apps two ways, and one workflow format runs on both:</p>
|
|
3613
3663
|
<div class="tbl"><table>
|
|
3614
3664
|
<thead>
|
|
@@ -3960,8 +4010,8 @@ environment); run it with a local <code>maestro</code>.</li>
|
|
|
3960
4010
|
run folder. Neither the user name nor the key is passed to the flows' environment.</li>
|
|
3961
4011
|
<li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
|
|
3962
4012
|
their environment; only the mobile engine itself holds them.</li>
|
|
3963
|
-
<li
|
|
3964
|
-
|
|
4013
|
+
<li><code>samples/mobile-testmu</code> runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
|
|
4014
|
+
Wikipedia sample app, once <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> are set.</li>
|
|
3965
4015
|
</ul>
|
|
3966
4016
|
</div>
|
|
3967
4017
|
</section>
|
|
@@ -4042,7 +4092,7 @@ or a link is refused, because a container can send what it reads anywhere.</li>
|
|
|
4042
4092
|
<li><strong>The docker, podman and compose programs only see</strong> the variables they need to find their daemon, plus the service's
|
|
4043
4093
|
listed secrets.</li>
|
|
4044
4094
|
<li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code> and compose commands are refused for ForgeQE's agent and
|
|
4045
|
-
|
|
4095
|
+
Quill. Containers start only through these tools.</li>
|
|
4046
4096
|
</ul>
|
|
4047
4097
|
<p><strong>Compose files.</strong> <code>containers.compose: docker-compose.yml</code> reads the file's services into the same list, checked by the
|
|
4048
4098
|
same rules (forgeqe.yaml's own declaration of a service wins):</p>
|
|
@@ -4057,16 +4107,16 @@ secret passed by name.</li>
|
|
|
4057
4107
|
The project's containers share their own network, so services reach each other by name (<code>db:5432</code>).</p>
|
|
4058
4108
|
<p><strong>Docker as the workspace and the browser.</strong> Two settings move the rest of the work into containers:</p>
|
|
4059
4109
|
<pre><code class="language-yaml">browser:
|
|
4060
|
-
provider: docker # the browser agent, the replay and
|
|
4110
|
+
provider: docker # the browser agent, the replay and Quill's live browser use Chromium in a container
|
|
4061
4111
|
containers:
|
|
4062
|
-
workspace: #
|
|
4112
|
+
workspace: # Quill's shell commands and every test ForgeQE runs use this image
|
|
4063
4113
|
image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble
|
|
4064
4114
|
env: { NEXUS_ENVIRONMENT: CI }
|
|
4065
4115
|
browser: # optional
|
|
4066
4116
|
headless: false # visible on a virtual display inside the container (some sites refuse headless)
|
|
4067
4117
|
</code></pre>
|
|
4068
4118
|
<ul>
|
|
4069
|
-
<li><strong>Workspace:</strong>
|
|
4119
|
+
<li><strong>Workspace:</strong> Quill builds, restores, runs and fixes tests in a Linux container of the project's image, with the
|
|
4070
4120
|
repository at the same path. Each test run gets its own container from that image, and <code>HOME</code> is a volume of the
|
|
4071
4121
|
project's, so package caches outlive the session. The agents and the model key stay on this machine, and ForgeQE's
|
|
4072
4122
|
own agent keeps this machine's shell. <code>.env</code>, keys and other credential files in the repository are covered inside
|
|
@@ -4074,7 +4124,7 @@ the containers.</li>
|
|
|
4074
4124
|
<li><strong>Browser:</strong> each browser run gets a fresh container, reached through a gateway that wants a random token. A
|
|
4075
4125
|
declared service is reached by its name; an app on this machine is <code>host.docker.internal</code>, not <code>localhost</code>.
|
|
4076
4126
|
<code>--browser-provider docker</code> picks it for one run.</li>
|
|
4077
|
-
<li><code>FORGEQE_HOST_RUN=1</code> runs
|
|
4127
|
+
<li><code>FORGEQE_HOST_RUN=1</code> runs Quill's commands and the tests on this machine for a session.</li>
|
|
4078
4128
|
</ul>
|
|
4079
4129
|
<p><strong>Tests in a container.</strong> With <code>containers.tests</code>, <code>run_tests</code> runs the repository's tests in that image instead of
|
|
4080
4130
|
on this machine, after starting the services it lists:</p>
|
|
@@ -4093,7 +4143,7 @@ secrets.</li>
|
|
|
4093
4143
|
<li><strong>To run on this machine instead:</strong> ask to run the tests on this machine (<code>in_container: false</code>).</li>
|
|
4094
4144
|
<li><strong>Machines:</strong> Linux and macOS.</li>
|
|
4095
4145
|
</ul>
|
|
4096
|
-
<p><strong>Testcontainers.</strong> When a test needs a real database or queue, or the repository already uses Testcontainers,
|
|
4146
|
+
<p><strong>Testcontainers.</strong> When a test needs a real database or queue, or the repository already uses Testcontainers, Quill's
|
|
4097
4147
|
<code>testcontainers</code> skill writes the test to start it from code. It reuses the repository's fixtures, pins images, waits
|
|
4098
4148
|
for readiness, and uses the mapped port. It never uses privileged mode, the host network, or the Docker socket.</p>
|
|
4099
4149
|
</div>
|
|
@@ -4109,7 +4159,6 @@ real Docker (and is skipped without it):</p>
|
|
|
4109
4159
|
<li>A tests container that reaches the database by name and writes its results into the repository as this machine's
|
|
4110
4160
|
user.</li>
|
|
4111
4161
|
</ul>
|
|
4112
|
-
<p>The <code>containers</code> job of <code>.github/workflows/ci.yml</code> runs both on GitHub's Docker. There, a skipped live test fails the job.</p>
|
|
4113
4162
|
<p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
|
|
4114
4163
|
<ul>
|
|
4115
4164
|
<li><strong>Services a test run needs:</strong> a database, a queue, a cache, or the API under test. The project declares them in
|
|
@@ -4118,12 +4167,12 @@ forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
|
|
|
4118
4167
|
the tests can run without the real service.</li>
|
|
4119
4168
|
<li><strong>The repository's tests in a container:</strong> <code>run_tests</code> runs the command the user confirmed in an image, instead of
|
|
4120
4169
|
on this machine, after starting the services the tests need.</li>
|
|
4121
|
-
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>,
|
|
4170
|
+
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Quill's shell commands (build, restore, run,
|
|
4122
4171
|
git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.</li>
|
|
4123
|
-
<li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and
|
|
4172
|
+
<li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and Quill's live
|
|
4124
4173
|
browser drive Chromium in a container of Microsoft's Playwright image.</li>
|
|
4125
4174
|
</ul>
|
|
4126
|
-
<p>
|
|
4175
|
+
<p>Quill also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
|
|
4127
4176
|
<p>ForgeQE's agent uses them through two tools, <code>services</code> and <code>mock_service</code>. The CLI has <code>forgeqe services</code>. When
|
|
4128
4177
|
neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
|
|
4129
4178
|
</div>
|
|
@@ -4269,7 +4318,7 @@ workspace container.</p>
|
|
|
4269
4318
|
</code></pre>
|
|
4270
4319
|
<p>With <code>containers.workspace</code> set:</p>
|
|
4271
4320
|
<ul>
|
|
4272
|
-
<li><strong>
|
|
4321
|
+
<li><strong>Quill's shell runs in the container.</strong> The agent runtime runs each command as <code>$SHELL -c <command></code>. ForgeQE
|
|
4273
4322
|
sets <code>SHELL</code> to a script that runs the same command with <code>docker exec … sh -c <command></code>, in the same folder,
|
|
4274
4323
|
in the workspace container. A folder outside the repository is refused, since the container has only the
|
|
4275
4324
|
repository. The agent is told its commands run in a Linux container of that image.</li>
|
|
@@ -4326,9 +4375,9 @@ launch, which a running browser does not have.</li>
|
|
|
4326
4375
|
</ul>
|
|
4327
4376
|
</div>
|
|
4328
4377
|
</section>
|
|
4329
|
-
<section class="doc" id="doc-docs-containers-testcontainers-
|
|
4330
|
-
<h4>Testcontainers (
|
|
4331
|
-
<div class="prose"><p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go),
|
|
4378
|
+
<section class="doc" id="doc-docs-containers-testcontainers-quill">
|
|
4379
|
+
<h4>Testcontainers (Quill)</h4>
|
|
4380
|
+
<div class="prose"><p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Quill
|
|
4332
4381
|
loads the <code>testcontainers</code> skill. It reuses the repository's containers and fixtures, pins images, waits for
|
|
4333
4382
|
readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the
|
|
4334
4383
|
host network, the Docker socket, or a <code>docker</code> command from a test. These containers belong to the tests in the
|
|
@@ -4402,7 +4451,7 @@ that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>,
|
|
|
4402
4451
|
</ul>
|
|
4403
4452
|
</li>
|
|
4404
4453
|
<li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code>, <code>docker-compose</code> and <code>podman-compose</code> are denied in the
|
|
4405
|
-
shell of ForgeQE's agent and of
|
|
4454
|
+
shell of ForgeQE's agent and of Quill. So the only way to start a container is these tools.</li>
|
|
4406
4455
|
<li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask the user before starting, as <code>run_tests</code> does.</li>
|
|
4407
4456
|
</ul>
|
|
4408
4457
|
</div>
|
|
@@ -4586,7 +4635,7 @@ environment named like production is never allowed. It has no shell, web fetch o
|
|
|
4586
4635
|
<code>shell: true</code> (then a person approves each command), and uses only the other systems <code>scope.systems</code> names. Writing and
|
|
4587
4636
|
healing tests start a coding agent, which a person approves each call of unless <code>permissions.trust</code> lists it.</p>
|
|
4588
4637
|
<p>The agents it may start are checked on every call, including the ones a tool starts for it: <code>write_test</code> starts
|
|
4589
|
-
<code>forgeqe-test</code> and, from a recording, <code>forgeqe-test-plan</code>; <code>request_test_data</code> starts
|
|
4638
|
+
<code>forgeqe-test</code> and, from a recording, <code>forgeqe-test-plan</code>; <code>request_test_data</code> starts Miner (<code>forgeqe-data</code>);
|
|
4590
4639
|
<code>product_knowledge</code> starts <code>forgeqe-investigate</code> to answer a question and <code>forgeqe-knowledge</code> to read the product with
|
|
4591
4640
|
the model. A run that finds a new defect explains it with <code>forgeqe-defect-rca</code> only when the agent may use it; otherwise
|
|
4592
4641
|
the run goes ahead with the analysis that uses no model. <code>forgeqe agent check</code> and the editor say what each capability
|
|
@@ -4670,14 +4719,14 @@ list is read; a tool is read-only only when the server marks it <code>readOnlyHi
|
|
|
4670
4719
|
server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to check the
|
|
4671
4720
|
credential its settings name.</p>
|
|
4672
4721
|
<p>Before your team relies on custom agents, run <a href="../docs/CUSTOM_AGENTS_FIRST_RUN.md">the first real run</a> once: building one
|
|
4673
|
-
with the model, trying, approving,
|
|
4722
|
+
with the model, trying, approving, Atlas, another system, a schedule, production, turning off, and the
|
|
4674
4723
|
record, each with what you should see. The builder offers starters (defect retest, nightly smoke, pull request test
|
|
4675
4724
|
check, release readiness, API contracts, test case quality): a request to begin from, planned from what your project has.</p>
|
|
4676
4725
|
<p>To turn custom agents off for the whole project, set <code>custom_agents: { enabled: false }</code> in <code>forgeqe.yaml</code> (Settings,
|
|
4677
|
-
Custom agents). Then none runs, from the terminal, the web app,
|
|
4726
|
+
Custom agents). Then none runs, from the terminal, the web app, Atlas or a schedule; ForgeQE's agent is not
|
|
4678
4727
|
given the tool that reaches them, and the builder is closed. Their files, approvals and history are kept, so turning
|
|
4679
4728
|
them back on restores everything as it was.</p>
|
|
4680
|
-
<p>
|
|
4729
|
+
<p>Atlas hands requests to the active custom agents (custom_agent) as it does to its own agents. Each run is
|
|
4681
4730
|
kept in <code>.forgeqe/agent-runs/<id></code>.</p>
|
|
4682
4731
|
<p>In the web app (<code>forgeqe web</code>), custom agents are under Agents, Custom agents. <strong>New agent</strong> opens the agent builder:
|
|
4683
4732
|
say what the agent should do in your own words, and ForgeQE takes you through its steps, one page each: Understand
|
|
@@ -4887,9 +4936,9 @@ minutes, once per schema change.</li>
|
|
|
4887
4936
|
</article>
|
|
4888
4937
|
<article class="spec feat" id="cap-test-data">
|
|
4889
4938
|
<div class="hd"><span class="mono">Data</span><h3>Test data on demand</h3></div>
|
|
4890
|
-
<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
|
|
4939
|
+
<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 Miner 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>
|
|
4891
4940
|
<div class="facts">
|
|
4892
|
-
<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
|
|
4941
|
+
<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 Miner for a customer with two paid orders for the checkout test</li></ul></div>
|
|
4893
4942
|
<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>
|
|
4894
4943
|
<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>
|
|
4895
4944
|
<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>
|
|
@@ -4966,7 +5015,7 @@ cases. The data goes only into a database marked <code>writable</code>; these ho
|
|
|
4966
5015
|
FORGEQE_DATA_FILE=test-data/.run/checkout.json npx playwright test
|
|
4967
5016
|
forgeqe data clean "$(jq -r .batch batch.json)" --db fixtures --yes # in an always() step
|
|
4968
5017
|
</code></pre>
|
|
4969
|
-
<p>
|
|
5018
|
+
<p>Quill, ForgeQE's coding agent, writes tests that read their data from that file (its <code>test-data</code> skill), and can look
|
|
4970
5019
|
at the databases and preview test data through ForgeQE's data tools; it never changes a database itself.</p>
|
|
4971
5020
|
<p><strong>A masked subset of real data.</strong> Instead of <code>tables:</code>, a spec can take real rows from another database: the rows you
|
|
4972
5021
|
pick, every row they point at (and the rows those point at), and the child tables you name, with personal data
|
|
@@ -5016,7 +5065,7 @@ words (<code>Expected Message</code> is <code>{{row.expected_message}}</code>),
|
|
|
5016
5065
|
<tbody>
|
|
5017
5066
|
<tr><td>A file</td><td><code>file: test-data/users.csv</code> (<code>sheet:</code> for Excel)</td><td>The header row names the columns. A JSON file is a list of objects, or <code>{rows: [...]}</code></td></tr>
|
|
5018
5067
|
<tr><td>A query</td><td><code>query: test-data/queries/active-users.sql</code> or <code>query: "SELECT email, role FROM users WHERE active"</code>, with <code>database: shop</code></td><td>The query's rows, read only: a statement that would change the database is refused</td></tr>
|
|
5019
|
-
<tr><td>A kept request</td><td><code>request: active-users</code> (<code>table:</code> when it has several)</td><td>
|
|
5068
|
+
<tr><td>A kept request</td><td><code>request: active-users</code> (<code>table:</code> when it has several)</td><td>Miner's kept request, fetched again with no model (<code>forgeqe data fetch</code>)</td></tr>
|
|
5020
5069
|
<tr><td>A spec</td><td><code>spec: test-data/users.yaml</code> (<code>table:</code> when it makes several)</td><td>The rows the spec makes, not inserted anywhere</td></tr>
|
|
5021
5070
|
</tbody>
|
|
5022
5071
|
</table></div>
|
|
@@ -5047,10 +5096,10 @@ forgeqe suite ado:plan=12/suite=34 --each-query test-data/queries/active-users.s
|
|
|
5047
5096
|
<li><strong>Desktop replay</strong> takes the same rows: <code>forgeqe desktop replay workflow.yaml --data customers.xlsx</code>, or <code>--each-query ... --each-db NAME</code>. A <code>--data</code> CSV keeps its column names as written.</li>
|
|
5048
5097
|
<li><strong>Trying a recording with each row.</strong> On the Record page, the review's Last run tab has <strong>Test data</strong>: the values typed there, or each row of a data file in <code>test-data/</code> (or an environment's <code>data:</code>) or of a kept request. The steps play once per row, up to 20 rows, one after another. A column named like the recording's test data gives that value, and other columns are left out. The result lists every row, then the steps of the first row that failed.</li>
|
|
5049
5098
|
</ul>
|
|
5050
|
-
<h5>Test data on request:
|
|
5051
|
-
<p>Every agent can ask the <strong>
|
|
5052
|
-
|
|
5053
|
-
request is in words;
|
|
5099
|
+
<h5>Test data on request: Miner</h5>
|
|
5100
|
+
<p>Every agent can ask the <strong>Miner</strong> for the test data it needs before it runs: Atlas (<code>request_test_data</code>),
|
|
5101
|
+
Quill, Link and the healer (<code>data_request_test_data</code>), and a test case (<code>data: {request: ...}</code>). The
|
|
5102
|
+
request is in words; Miner reads the schema, then either finds <strong>existing rows</strong> with one read-only SELECT or
|
|
5054
5103
|
designs <strong>new rows</strong> as a test data spec. Its answer is the data itself and the script that gets it again:</p>
|
|
5055
5104
|
<div class="tbl"><table>
|
|
5056
5105
|
<thead>
|
|
@@ -5061,7 +5110,7 @@ designs <strong>new rows</strong> as a test data spec. Its answer is the data it
|
|
|
5061
5110
|
<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>
|
|
5062
5111
|
</tbody>
|
|
5063
5112
|
</table></div>
|
|
5064
|
-
<p><code>auto</code> (the default) lets
|
|
5113
|
+
<p><code>auto</code> (the default) lets Miner pick. Miner never writes to a database: a statement the data engine sees
|
|
5065
5114
|
as a write is refused, and new rows only go to files. Keys the database fills (serial, identity) are left out of
|
|
5066
5115
|
<code>data.sql</code>, so the script runs on a database that already has rows.</p>
|
|
5067
5116
|
<pre><code class="language-bash">forgeqe data request "two movies with more than 100 votes" --db imdb --kind existing --rows 2
|
|
@@ -5076,15 +5125,15 @@ psql "$IMDB_URL" -f test-data/requests/queued-watchlist/data.sql # o
|
|
|
5076
5125
|
steps:
|
|
5077
5126
|
- action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
|
|
5078
5127
|
</code></pre>
|
|
5079
|
-
<p>The first run asks
|
|
5128
|
+
<p>The first run asks Miner and keeps the request; later runs fetch it from <code>test-data/requests/<name></code> with no
|
|
5080
5129
|
model. Existing rows are used as they are (<code>{{data.result.0.<column>}}</code>, nothing to remove after); new rows go in as a
|
|
5081
5130
|
batch before the case and are removed after it when the database is marked <code>writable</code>.</p>
|
|
5082
|
-
<p><strong>Ask in words.</strong> Data, Ask (or <code>forgeqe data ask "<question>" --db NAME --as query|checks|script</code>) has
|
|
5131
|
+
<p><strong>Ask in words.</strong> Data, Ask (or <code>forgeqe data ask "<question>" --db NAME --as query|checks|script</code>) has Miner
|
|
5083
5132
|
turn a question into a checked read-only query and its rows (kept in <code>test-data/queries</code>), data checks (each a SELECT
|
|
5084
5133
|
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
|
|
5085
5134
|
database test for pytest or Playwright (kept in <code>test-data/scripts</code>, never run by ForgeQE; it reads its connection
|
|
5086
5135
|
string from an environment variable, and a script holding a password or a connection string is refused).</p>
|
|
5087
|
-
<p><strong>Databases from Docker images.</strong> The databases
|
|
5136
|
+
<p><strong>Databases from Docker images.</strong> The databases Miner reads can run in containers that <code>forgeqe services up</code>
|
|
5088
5137
|
starts (see <a href="#doc-how_to_use-containers-and-mock-services">Containers and mock services</a>), for example the sample databases of the
|
|
5089
5138
|
Database Agent in test-agent-nexus (<code>docker-compose.yml</code>, profile <code>db-agent-demos</code>). The container's password and the
|
|
5090
5139
|
connection's <code>password_env</code> are different variables: a database's secrets are ForgeQE's own and never go to a container.</p>
|
|
@@ -5100,7 +5149,7 @@ connection's <code>password_env</code> are different variables: a database's sec
|
|
|
5100
5149
|
databases:
|
|
5101
5150
|
imdb: { engine: postgres, host: 127.0.0.1, port: 5437, database: imdb, user: nexus, password_env: IMDB_DB_PASSWORD, ssl: disable, writable: true }
|
|
5102
5151
|
</code></pre>
|
|
5103
|
-
<p><code>tests/data-request.live.test.ts</code> runs
|
|
5152
|
+
<p><code>tests/data-request.live.test.ts</code> runs Miner against that database in Docker.</p>
|
|
5104
5153
|
</div>
|
|
5105
5154
|
</section>
|
|
5106
5155
|
</div>
|
|
@@ -5254,16 +5303,16 @@ tokens and the like) show as <code>•••</code> in results. A check compares
|
|
|
5254
5303
|
<header class="chead"><span class="mono">11</span><h2 id="area-automated-tests-h">Automated tests</h2><p>Write, heal, find, run, and stabilise tests in your repository</p></header>
|
|
5255
5304
|
<article class="spec feat" id="cap-write-tests">
|
|
5256
5305
|
<div class="hd"><span class="mono">Automated tests</span><h3>Turn a passed run into an automated test</h3></div>
|
|
5257
|
-
<p class="ds">
|
|
5306
|
+
<p class="ds">Quill, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it.</p>
|
|
5258
5307
|
<div class="facts">
|
|
5259
5308
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Write a Playwright test for that run in ../app</li></ul></div>
|
|
5260
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
5309
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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 repository to write the test in (default: the working directory)</span></li></ul></div>
|
|
5261
5310
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>write_test</code> <code>run_test</code></p></div>
|
|
5262
5311
|
</div>
|
|
5263
5312
|
<div class="detail"><span class="mono">In detail</span>
|
|
5264
5313
|
<section class="doc" id="doc-how_to_use-6-tests">
|
|
5265
5314
|
<h4>Tests</h4>
|
|
5266
|
-
<div class="prose"><p>After a run passes, <strong>
|
|
5315
|
+
<div class="prose"><p>After a run passes, <strong>Quill</strong>, ForgeQE's coding agent, turns it into a test in your repo.</p>
|
|
5267
5316
|
<p>In the shell and <code>forgeqe run</code>, every passed run then becomes a test, and so does each test case that passes when you ask the shell to run test cases: in the current folder, or in the repo you give per run or in <code>forgeqe.yaml</code>. <code>--no-code</code> turns it off; you can still ask for a test ("write a Playwright test for that run").</p>
|
|
5268
5317
|
<pre><code class="language-bash">forgeqe run "Log in and open the invoices page on staging.app.test" --repo ../app
|
|
5269
5318
|
</code></pre>
|
|
@@ -5287,39 +5336,39 @@ tokens and the like) show as <code>•••</code> in results. A check compares
|
|
|
5287
5336
|
<p>The handoff also lists the browser agent's <strong>checks</strong>: before it finishes, the browser agent records each result the goal asks to verify with the exact text the page showed (<code>record_check</code>; a text the page does not show is refused). They are saved in <code>workflow.yaml</code> under <code>checks:</code>. The test asserts these and nothing else.</p>
|
|
5288
5337
|
</li>
|
|
5289
5338
|
<li>
|
|
5290
|
-
<p>ForgeQE replays the run's steps as a Playwright script (<code><run>/replay/flow.mjs</code>), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches (<code>navigator.webdriver</code> false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so
|
|
5291
|
-
<p>
|
|
5339
|
+
<p>ForgeQE replays the run's steps as a Playwright script (<code><run>/replay/flow.mjs</code>), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches (<code>navigator.webdriver</code> false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Quill takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as "an In the news section with at least one item" is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Quill decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into <code>~/.forgeqe/tools</code>; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and <code>replay: false</code> turns it off.</p>
|
|
5340
|
+
<p>Quill first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again.</p>
|
|
5292
5341
|
</li>
|
|
5293
5342
|
<li>
|
|
5294
|
-
<p>
|
|
5295
|
-
<p>Before
|
|
5343
|
+
<p>Quill starts in the repo. It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. When the test case names a framework ("Framework: Cypress + TypeScript + Cucumber BDD"), the test is written in that one, in the folder that holds its setup; a test in another framework is not run and never kept as passed. It may change the test configuration, but never a project's packages: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> are put back, and its shell cannot run an installer. Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>, <code>bun install --frozen-lockfile</code>; <code>npm install --no-package-lock</code> with no lockfile), and Cypress's app or a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run, and is not tried again in that session until the project's files change. What Quill may not do itself, it asks for: a package (<code>request_install</code>), a command its shell refuses (<code>request_run</code>), or a change to <code>package.json</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> (<code>request_change</code>). ForgeQE checks the request (registry names and exact versions only; a command as an argument list, never a shell, push, container, process-ending, download or database command, and nothing naming ForgeQE's secrets; never <code>.npmrc</code> or a lockfile by hand), then asks you with exactly what it would run or change. Only a yes does it; a no, or a run nobody watches, changes nothing and Quill reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and Link ask the same way, and their own edits to package files are put back before their tests run. <code>code.requests</code> in forgeqe.yaml (Settings › Code › Help it gets › When an agent asks for more) decides what happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking, also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a lockfile by hand…) stays refused whatever it says.</p>
|
|
5344
|
+
<p>Before Quill starts, ForgeQE reads the repo into a <strong>code graph</strong>, without a model: every class, page object, method, property, and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in <code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed. The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test id): so when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repo's <code>LoginPage.LoginButton</code> uses <code>#login-button</code>, the handoff says under that step "in this repository: LoginPage.LoginButton … used by LoginPage.SignInAsync", and Quill calls the existing method instead of writing a second locator. Quill also gets tools that answer from the graph instead of grep and whole-file reads: <code>code_find</code> (classes, methods, and tests by name, or by the text a locator uses), <code>code_outline</code> (a file's or class's signatures and locators, or the source of one member), <code>code_element</code> (which member already locates an element), <code>code_references</code> (what calls a member, before it is changed), and <code>code_impact</code> (the tests a change reaches, through flows and base classes, whatever the test files are called). <code>graph: false</code> turns it off. The handoff also outlines the page objects its steps use and includes the repo's test that uses the most of them, so Quill takes the test conventions from that test instead of reading other tests, and reads a settings file only to change it.</p>
|
|
5296
5345
|
</li>
|
|
5297
5346
|
<li>
|
|
5298
5347
|
<p>It writes the test from the handoff and the replay script: steps that worked are ported with their locators, steps that failed are fixed first. Every locator, including those for assertions, comes from the replay script, the page snapshots, page memory, or a check on the page; steps where the browser agent ran JavaScript to look around are left out. It does not walk the flow again or build tests to explore. Once a step fails (in the replay, or in its test), ForgeQE switches on its live browser: a Chrome that Playwright drives, set up like ForgeQE's, where it looks at the failing step's page one tool call per action (open, snapshot, click, type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser tools are off, so no tokens go into looking at pages that work. The live browser needs Node.js (<code>npx</code>), and Microsoft's Playwright MCP server is downloaded on first use; with <code>live_browser: false</code>, or without <code>npx</code>, it looks with a small throwaway script instead. When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open), it compares the two browsers (user agent, <code>navigator.webdriver</code>, headless, failed requests and CORS errors, headers the framework adds, console errors) and fixes the difference in the repo's browser configuration. It never judges the site with <code>curl</code> or <code>webfetch</code>.</p>
|
|
5299
5348
|
</li>
|
|
5300
5349
|
<li>
|
|
5301
|
-
<p>
|
|
5350
|
+
<p>Quill does not run the test itself: it may build or compile, then reports the test file and the command that runs only that test, and ForgeQE runs it. If one command it runs fails <code>stall_after</code> times in a row within its work (the same build again and again, say), ForgeQE stops that turn and sends the command and its last output back, asking it to change approach. If the same command stalls again, the job stops as a failure with that output in the notes. The same goes for going round in circles: re-reading files, outlines or <code>git diff</code> it has already seen, unchanged, <code>repeat_after</code> times, or changing files it already changed <code>edit_after</code> times without handing the test over, or making 3 edits that fail because the file no longer has the lines it expected (it then reads the file once and edits from that). Its turn stops and it is asked for the test, which ForgeQE then runs; if it does it again, the job stops.</p>
|
|
5302
5351
|
</li>
|
|
5303
5352
|
</ol>
|
|
5304
|
-
<p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now. For a recording, what the planner already looked up in the code goes to
|
|
5305
|
-
6. ForgeQE runs that command (with <code>CI=1</code>) and checks the exit code, and it watches the processes the command starts for a browser launched by Playwright, Puppeteer, Selenium, or Cypress. On a failure it sends the command, exit code, and output back to
|
|
5306
|
-
7. A passing test then goes to a separate reviewer agent, which can read files and <code>git diff</code> but not change anything. It checks the change against the goal and the test rules: every part of the goal done through the page and asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in the repo's configuration, no leftover files. The changed files come inline in its prompt, so it reads nothing again, and it does not ask to replace locators or texts that came from the replay or the checks, since those matched the live site. It judges only what this job changed: ForgeQE records the working tree before the job, so your uncommitted edits, your untracked files, and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the review. It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a commented-out one, is a correctness problem. Credentials come from the environment, except a public demo login that the application itself shows to anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repo's test data. It gets the outlines of the classes the changed code uses, the repo's browser settings, and the same <code>code_*</code> tools, so it checks reuse and settings without reading those files. The code graph also tells it what the job added that it can check in the code: a new member that locates an element an existing member already locates (to reuse instead), and new XPath or position-based locators. If it finds problems, they go back to
|
|
5353
|
+
<p>Every model call sends the whole conversation again, so ForgeQE keeps conversations short. Each attempt after the first, a rerun of a job that stopped while writing, and carrying on after you raise the token budget all start a new session from a brief: the handoff, the plan, the notes, and the files the job wrote as they are now. For a recording, what the planner already looked up in the code goes to Quill too, and the planner's tokens count toward <code>max_tokens</code>. When a session's calls are mostly re-sent in full rather than read from the model's cache, ForgeQE says so once. At the token budget, the question says whether ForgeQE has run the test yet; an unattended write never asks and stops there. A job that stops says whether a test ever ran and which files it left changed in the repository.
|
|
5354
|
+
6. ForgeQE runs that command (with <code>CI=1</code>) and checks the exit code, and it watches the processes the command starts for a browser launched by Playwright, Puppeteer, Selenium, or Cypress. On a failure it sends the command, exit code, and output back to Quill. The output is kept short so the error is never cut off: the page dump Playwright puts into a failed assertion ("Aria snapshot:", often thousands of lines) is taken out and saved as <code><run>/test-runs/attempt-N-page.aria.yml</code>, then the start (where the first error and its stack trace are) and the end (the summary) are sent; the full output is in <code><run>/test-runs/attempt-N.log</code>, and the prompt names both files. A command that exits 0 without starting a browser also goes back: the test must drive the app in a browser. If the repo's browser runs on another machine (Selenium Grid, a cloud service, a container), the agent says where and the check is skipped.
|
|
5355
|
+
7. A passing test then goes to a separate reviewer agent, which can read files and <code>git diff</code> but not change anything. It checks the change against the goal and the test rules: every part of the goal done through the page and asserted, generic page objects with data in the test, no values or URLs copied from the run, browser settings in the repo's configuration, no leftover files. The changed files come inline in its prompt, so it reads nothing again, and it does not ask to replace locators or texts that came from the replay or the checks, since those matched the live site. It judges only what this job changed: ForgeQE records the working tree before the job, so your uncommitted edits, your untracked files, and ForgeQE's own files (<code>.forgeqe/</code>, <code>forgeqe.yaml</code>, <code>llms.json</code>) are never part of the review. It checks the diff of every file that existed before the job: removing or rewriting an existing test, even a commented-out one, is a correctness problem. Credentials come from the environment, except a public demo login that the application itself shows to anyone (such as the logins on saucedemo.com's sign-in page), which may stay in the repo's test data. It gets the outlines of the classes the changed code uses, the repo's browser settings, and the same <code>code_*</code> tools, so it checks reuse and settings without reading those files. The code graph also tells it what the job added that it can check in the code: a new member that locates an element an existing member already locates (to reuse instead), and new XPath or position-based locators. If it finds problems, they go back to Quill as the next attempt. The terminal shows the exchange as it happens, in order: the reviewer's verdict with its reason and each issue (✗ correctness, ~ coding standard) with the file and the fix it asks for; then why Quill tries again and what it is fixing (the reviewer's issues, or the test's first error); then what Quill says it did and which files it changed; then the next verdict:</p>
|
|
5307
5356
|
<pre><code>⏺ Reviewer asked for changes attempt 1 of 5 · 1 to fix, 1 coding-standard
|
|
5308
5357
|
⎿ The test never checks that the pie chart is shown.
|
|
5309
5358
|
✗ Correctness · tests/PracticeTests.cs: No assertion on the SVG pie chart.
|
|
5310
5359
|
Fix: Assert the chart's heading and SVG are visible.
|
|
5311
5360
|
~ Coding standard · tests/PracticeTests.cs: Test data is inline.
|
|
5312
5361
|
Fix: Move it to the page object.
|
|
5313
|
-
⏺
|
|
5362
|
+
⏺ Quill tries again · attempt 2 of 5 the reviewer asked for changes
|
|
5314
5363
|
⎿ → tests/PracticeTests.cs: No assertion on the SVG pie chart. — fix: Assert the chart's heading and SVG are visible.
|
|
5315
|
-
⎿
|
|
5364
|
+
⎿ Quill (attempt 2): Added the pie chart assertion · changed tests/PracticeTests.cs, Pages/PracticePage.cs
|
|
5316
5365
|
⏺ Reviewer approved the test attempt 2 of 5
|
|
5317
5366
|
</code></pre>
|
|
5318
5367
|
<p>The Activities panel has one line for each verdict and attempt, and <code>forgeqe</code> commands outside the terminal UI print the same blocks.</p>
|
|
5319
|
-
<p>
|
|
5320
|
-
8. The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (default 3; <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is told which run failed and why, and to make that step wait for the page. It stops as a failure after <code>max_attempts</code> attempts, when the job passes <code>code.max_tokens</code>, when the reviewer rejects a passing test twice, if the review cannot finish, when the test fails the same way three times in a row (the same output apart from numbers such as timings and line numbers; the second time,
|
|
5368
|
+
<p>Quill cannot edit ForgeQE's files or run folders, and cannot run <code>git clean</code>, <code>git reset --hard</code>, <code>git stash</code>, <code>git restore</code>, or <code>git checkout -- <path></code>. If it still removes a file that existed before the job, or reverts your uncommitted edits, ForgeQE puts the file back after that attempt and tells the agent.
|
|
5369
|
+
8. The job is done when ForgeQE's run passes with a browser, the reviewer approves, and the test passes again unchanged until it has passed <code>code.confirm_runs</code> times in a row (default 3; <code>1</code> runs it once). A test that passes and then fails is flaky: the next attempt is told which run failed and why, and to make that step wait for the page. It stops as a failure after <code>max_attempts</code> attempts, when the job passes <code>code.max_tokens</code>, when the reviewer rejects a passing test twice, if the review cannot finish, when the test fails the same way three times in a row (the same output apart from numbers such as timings and line numbers; the second time, Quill is told its change did not change the failure and to look at the failing step before changing code), or straight away on an auth, API, or context-limit error from the model.</p>
|
|
5321
5370
|
<p><code>blocked</code> is a last resort. The first time the agent reports that the app blocks it, ForgeQE sends it back to compare its browser with ForgeQE's and fix the difference; only a second blocked report, with what it compared, ends the job as blocked.</p>
|
|
5322
|
-
<p>The transcript shows the handover and
|
|
5371
|
+
<p>The transcript shows the handover and Quill's work as it goes; files it writes or edits are marked ✎:</p>
|
|
5323
5372
|
<pre><code>┃
|
|
5324
5373
|
┃ ▸ Handing over to the coding agent browser agent → coding agent
|
|
5325
5374
|
┃
|
|
@@ -5328,7 +5377,7 @@ tokens and the like) show as <code>•••</code> in results. A check compares
|
|
|
5328
5377
|
┃ Repo ../app
|
|
5329
5378
|
┃
|
|
5330
5379
|
▸ Handoff written: .forgeqe/reports/20260928-172700/handoff.md (7 steps, 3 pages from page memory)
|
|
5331
|
-
▸
|
|
5380
|
+
▸ Quill, the coding agent (azure/gpt-5.4), reads the handoff and writes a test in /work/app
|
|
5332
5381
|
⚙ Reading .forgeqe/reports/20260928-172700/handoff.md
|
|
5333
5382
|
⚙ Reading tests/pages/LoginPage.ts
|
|
5334
5383
|
✎ Editing tests/invoices.spec.ts
|
|
@@ -5358,8 +5407,8 @@ tokens and the like) show as <code>•••</code> in results. A check compares
|
|
|
5358
5407
|
┃ Handoff .forgeqe/reports/20260928-172700/handoff.md
|
|
5359
5408
|
</code></pre>
|
|
5360
5409
|
<p>When no test was written, the Test row says why: the run did not pass, the session has <code>--no-code</code>, or the run was not handed to the coding agent.</p>
|
|
5361
|
-
<p>
|
|
5362
|
-
<p>
|
|
5410
|
+
<p>Quill uses the active <code>llms.json</code> profile, or, with <code>llm.routing: auto</code>, the profile the router picks for the <code>coding</code> area (<code>--profile</code> and <code>code.model</code> still win; see <a href="#doc-docs-model_routing-model-routing-the-right-configured-model-for-each-task">docs/MODEL_ROUTING.md</a>). The key stays in your environment: the agent runtime's config refers to it as <code>{env:WP_AZURE_API_KEY}</code> and never contains the value. An <code>auth: entra</code> profile reaches the model through ForgeQE's local token gateway (see <a href="../HOW_TO_USE.md#signing-in-to-the-model-without-a-key-microsoft-entra-id">Signing in to the model without a key</a>). An Azure profile goes through the agent runtime's <code>azure</code> provider on <code><endpoint>/openai/v1</code> (the Responses API, with the deployment as the model). <code>openai_compatible</code> and <code>ollama</code> profiles use their <code>base_url</code>. A <code>github_copilot</code> profile runs Quill through ForgeQE's Copilot gateway (see <a href="../HOW_TO_USE.md#github-copilot-seats-as-the-model">GitHub Copilot seats as the model</a>). <code>code.model: github-copilot/...</code> is refused: the agent runtime's own Copilot provider signs in through a third-party app on your GitHub account. <code>code.model: provider/model</code> (or <code>--code-model</code>) uses one of the agent runtime's built-in providers instead, with that provider's usual key variable (for example <code>ANTHROPIC_API_KEY</code> for <code>anthropic/...</code>).</p>
|
|
5411
|
+
<p>Quill may edit files and run commands anywhere in the repo without asking. <code>git push</code> in any form is denied (pushing goes through ForgeQE's guarded <code>push_branch</code> tool, section 8), and it cannot touch files outside the repo except the run and memory directories, which it may read.</p>
|
|
5363
5412
|
<p>More ways to run it:</p>
|
|
5364
5413
|
<pre><code class="language-bash">forgeqe code --repo ../app # the latest run in .forgeqe/reports/
|
|
5365
5414
|
forgeqe code .forgeqe/reports/20260928-172700 --repo ../app --attempts 3
|
|
@@ -5367,37 +5416,37 @@ forgeqe run "..." --no-code # no tests
|
|
|
5367
5416
|
</code></pre>
|
|
5368
5417
|
<p>In the shell, <code>forgeqe start --repo ../app</code> writes the tests in that repo instead of the current folder and <code>--no-code</code> turns them off; you can also just ask ("write a test for the last run in ../app"). Esc stops the agent the same way it stops a run.</p>
|
|
5369
5418
|
<p>Exit codes for <code>forgeqe code</code> and for <code>forgeqe run --direct</code> with a repo: <code>0</code> test passed, <code>1</code> run or test failed, <code>2</code> stopped. The result (status, attempts, test file, command, what was reused and changed, the browsers ForgeQE saw, the review, the last test output, tokens) is saved as <code>code.json</code> in the run directory, next to <code>handoff.md</code>.</p>
|
|
5370
|
-
<p>If
|
|
5419
|
+
<p>If Quill's job is cut off (ForgeQE closed, the machine restarted, you stopped it, or the model could not be reached), run it again for the same run and repo, for example <code>forgeqe code .forgeqe/reports/20260928-172700 --repo ../app</code>. Quill reopens the same session, with everything it read and said, and carries on with the files it already wrote; it doesn't read the repo again, and ForgeQE uses the Playwright replay it already finished. The session is kept in <code>scribe-session.json</code> in the run folder until the job ends with a result.</p>
|
|
5371
5420
|
</div>
|
|
5372
5421
|
</section>
|
|
5373
|
-
<section class="doc" id="doc-how_to_use-how-
|
|
5374
|
-
<h4>How
|
|
5375
|
-
<div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before
|
|
5422
|
+
<section class="doc" id="doc-how_to_use-how-quill-writes-a-test">
|
|
5423
|
+
<h4>How Quill writes a test</h4>
|
|
5424
|
+
<div class="prose"><p><strong>Reuse before rebuild, extend before duplicate.</strong> Before Quill writes anything, <code>write_test</code> measures what the repository's tests already cover of the run, from evidence rather than guesswork: each step and check the browser agent made on an element is matched, through page memory, to the page-object member that locates it, and the code graph says which tests reach that member (through the page methods they call, or a property they assert, such as <code>Expect(practicePage.AjaxStatus)</code>). Steps on elements no page object locates yet are listed as not measured, since a test may do them its own way. Then:</p>
|
|
5376
5425
|
<div class="tbl"><table>
|
|
5377
5426
|
<thead>
|
|
5378
5427
|
<tr><th>What it finds</th><th>What happens</th></tr>
|
|
5379
5428
|
</thead>
|
|
5380
5429
|
<tbody>
|
|
5381
|
-
<tr><td>One test covers every measured step and check</td><td><strong>Reuse</strong>:
|
|
5382
|
-
<tr><td>One test covers most (40% or more)</td><td><strong>Extend</strong>:
|
|
5430
|
+
<tr><td>One test covers every measured step and check</td><td><strong>Reuse</strong>: Quill only finds the command that runs it, and changes nothing. If it fails, nothing is changed: you are asked whether to update it or write a new test.</td></tr>
|
|
5431
|
+
<tr><td>One test covers most (40% or more)</td><td><strong>Extend</strong>: Quill adds only the missing steps and checks to that test, keeping every step and assertion it has; the reviewer rejects a removed or weakened assertion, or the steps copied into a new file</td></tr>
|
|
5383
5432
|
<tr><td>Two or more tests cover most of it</td><td><strong>You choose</strong>: the evidence and the options (reuse, extend with how many steps it adds, a new test, cancel)</td></tr>
|
|
5384
5433
|
<tr><td>Nothing covers much</td><td><strong>New</strong>: a new test, reusing the page objects and helpers as before</td></tr>
|
|
5385
5434
|
</tbody>
|
|
5386
5435
|
</table></div>
|
|
5387
|
-
<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
|
|
5388
|
-
<p><strong>Copied code is measured.</strong> Before
|
|
5389
|
-
<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
|
|
5390
|
-
<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
|
|
5436
|
+
<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 Quill adds page-object members rather than changing what an existing member does for the other tests that use it.</p>
|
|
5437
|
+
<p><strong>Copied code is measured.</strong> Before Quill 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 Quill fixes. <code>code.duplicates: false</code> turns it off.</p>
|
|
5438
|
+
<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 Quill, 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 Quill 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>
|
|
5439
|
+
<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 Quill everything it did on the way:</p>
|
|
5391
5440
|
<ul>
|
|
5392
5441
|
<li>A click on an element something covers (a confirmation after Add to cart, a pop-up) fails and names what covers it, so the agent closes it as a user would and that step is in the flow; the step after says what covered it, and "What covered the page before a click" lists them. The engine library would otherwise click the element from JavaScript, which a test cannot do. What it still does from a script (a click, typing to the page) is named on its step.</li>
|
|
5393
5442
|
<li>Locators are the ones Playwright finds: no link role for an <code><a></code> without <code>href</code> (Chrome calls it a link, Playwright does not), icon-font characters kept out of names (a name with one becomes a <code>role_pattern</code>), and a control that repeats on every row or card gets a locator scoped to its row (<code>#product-1 a.cart_quantity_delete</code>).</li>
|
|
5394
5443
|
<li>An element in a frame says which frame, and the replay reaches it through <code>frameLocator</code>. Advertisements (Google's full-page ads, ad frames) are marked, left out of the replay, and "Ads on these pages" says to block the ad hosts in the test instead of closing them.</li>
|
|
5395
5444
|
<li>A suite case runs from the state its test starts from: without the saved logins' sessions, so the agent signs in as the test will (<code>suite.restore_sessions: true</code> keeps them; a login with no username and password to sign in with keeps its session, the only way in) and from the case's own start page (its URL, first step, description, or preconditions). When a run did start with saved sessions, "State the run started with" says so.</li>
|
|
5396
5445
|
</ul>
|
|
5397
|
-
<p><strong>When the flow cannot be reproduced.</strong> If ForgeQE's own replay of the run could not reach the run's final page and
|
|
5398
|
-
<p><strong>Why a test failed.</strong> When ForgeQE's run of
|
|
5399
|
-
<p><strong>Keeping
|
|
5400
|
-
<p><strong>
|
|
5446
|
+
<p><strong>When the flow cannot be reproduced.</strong> If ForgeQE's own replay of the run could not reach the run's final page and Quill's test fails too, Quill is told where the replay stopped and what was open on the page, since that is usually a pop-up, consent banner or ad the browser agent closed, or state its browser already had (signed in, items in a cart), and gets another attempt to handle it. The job stops, saying which replayed step failed and why, only when the test then fails the same way again, instead of spending its remaining attempts on a flow no script can repeat as recorded.</p>
|
|
5447
|
+
<p><strong>Why a test failed.</strong> When ForgeQE's run of Quill's test fails, the ✗ line and the next attempt say why in the test's own words: dotnet test's Error Message, pytest's <code>E</code> lines, or the error with its Expected and Received values (Playwright, Jest, JUnit), not the runner's summary line.</p>
|
|
5448
|
+
<p><strong>Keeping Quill's cost down.</strong> ForgeQE reads the repository's test setup itself before Quill starts (stack, settings files and their browser values, the test id attribute, base classes, page objects and their methods, one test command) and hands it over, so Quill does not discover it with dozens of file reads. Each attempt after the first starts a fresh session from a summary of the job (handoff, files changed, what each attempt did, the latest failure), so later attempts cost about what the first did. The summary has a "Tried already, and did not work" list: for each failed attempt, what Quill said it did (it reports each change in <code>tried</code>), how it failed, the locator the test was waiting for and the element that covered it and took the click, both read from the test's output, and whether an earlier attempt already failed on that locator. Quill must not try those again in the same form and must say what it does differently. <code>forgeqe heal</code> keeps the same list across its attempts. <code>code.max_attempts</code> (default 3) and <code>code.max_tokens</code> (default 1,500,000; <code>0</code> turns it off) cap a job, and the token budget is checked during an attempt too, so one long attempt is stopped when the total passes it. Cached input counts at its share of the profile's input price (a session re-reads its own context, and that is most of its input), and in full when no cached price is known, such as with another <code>code.model</code>. The reviewer sorts its issues into correctness (the test does not test what the goal says, or not reliably) and coding standards (test data or credentials in a page object, naming, hard waits, leftovers). Coding standards never fail a test that works: it is accepted, and the coding agent gets one more round (not counted in <code>max_attempts</code>) to fix them; if that round breaks the test, ForgeQE puts back the version that passed and lists the standards issues in the notes (<code>code.tidy: false</code> skips the round). A test the reviewer rejects twice for correctness stops the job with its issues, since that usually means the test case and the page disagree. When a test passed and the reviewer sent it back, and the changes for the review then break it (or the attempts or the token budget run out first), ForgeQE puts back the version that passed: the result is passed but not approved, with the reviewer's issues in the notes, so you get a working test to finish instead of none. Under each step, the handoff shows that step's part of the page (its section and neighbours, from the replay's page snapshot) instead of whole snapshots. When a test fails, ForgeQE shows the failing element on the test's page at the failure and on the replay's page, so most failures are fixed without opening a browser. Quill's live browser is switched on only when the same failure repeats, or from the start when ForgeQE's own replay got through the flow in no setup (Quill would otherwise patch the failing steps blind until a test ran), and it does not send a page snapshot after every click or keystroke. <code>code.max_steps</code> (default 50) caps the tool calls in one of Quill's turns. <code>code.review_profile</code> runs the reviewer on a cheaper llms.json profile.</p>
|
|
5449
|
+
<p><strong>Quill's rulebook: the same mistake once.</strong> When a job passes after a failed test run or a reviewer's change, Quill's report gives up to three one-line rules that would have avoided the mistake ("Wait for the cart badge with toHaveText before clicking Checkout; it updates after a request"). ForgeQE keeps them in <code>.forgeqe/scribe-rules.json</code> in the repository, and every attempt of later jobs, and every healing session, starts with them. A lesson from a job that did not pass, or that passed at once, is not kept: only a fix that worked becomes a rule. The book stays small, since it is sent with each model call: at most 15 rules of one line each; a lesson learned again is merged into its rule (shown as "learned 3 times") instead of added; when it is full, the rule confirmed least and longest ago goes, and a rule not learned again for 180 days expires. The rules are the coding agent's own words, so a rule with a link, something like a token, a destructive command, or wording that tells an agent to drop its instructions is refused, and the agents are told they are hints that never override their instructions or the team's guardrails. Commit the file to share the rules with the team and see each change in review; edit or delete a rule there (the agents cannot change <code>.forgeqe</code>). ForgeQE says each new rule as it learns it (<code>Learned for next time: …</code>). <code>code.rulebook: false</code> turns it off.</p>
|
|
5401
5450
|
</div>
|
|
5402
5451
|
</section>
|
|
5403
5452
|
<p class="see">See <a href="#doc-how_to_use-generated-code">Generated code</a>.</p>
|
|
@@ -5408,7 +5457,7 @@ forgeqe run "..." --no-code # no tests
|
|
|
5408
5457
|
<p class="ds">Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead.</p>
|
|
5409
5458
|
<div class="facts">
|
|
5410
5459
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Heal the failing tests in ../app</li></ul></div>
|
|
5411
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
5460
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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 repository with tests</span></li></ul></div>
|
|
5412
5461
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>heal_tests</code></p></div>
|
|
5413
5462
|
</div>
|
|
5414
5463
|
<div class="detail"><span class="mono">In detail</span>
|
|
@@ -5425,7 +5474,7 @@ forgeqe heal -- npx playwright test --project=chromium # everything after -- i
|
|
|
5425
5474
|
</code></pre>
|
|
5426
5475
|
<ol>
|
|
5427
5476
|
<li>ForgeQE runs the command. If it passes, there is nothing to heal and no model is called.</li>
|
|
5428
|
-
<li>
|
|
5477
|
+
<li>Quill starts in the repo as a healing agent, with the failing output. For each failing test it reads the test and the page objects it uses, then re-runs the test's flow in the real browser with ForgeQE's <code>browser_run</code> (the goal in plain words, not the old selectors).</li>
|
|
5429
5478
|
<li>If the browser run passes, the test is out of date. The agent reads that run's steps and locators with <code>run_details</code>, updates the test (in the page object when the locators live there), and runs it with <code>run_test</code>.</li>
|
|
5430
5479
|
<li>If the browser run fails at the step where the test fails, the app is broken there. The test is left as it is and the failure is reported as an app bug.</li>
|
|
5431
5480
|
<li>It never deletes or skips a test, loosens an assertion, or raises a timeout to make a test pass.</li>
|
|
@@ -5440,7 +5489,7 @@ it as many attempts again, from what it changed so far. Stop keeps its changes.
|
|
|
5440
5489
|
a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
|
|
5441
5490
|
<pre><code> ▸ ForgeQE runs the tests: npx playwright test
|
|
5442
5491
|
✗ Tests failed, exit 1 (41s)
|
|
5443
|
-
▸
|
|
5492
|
+
▸ Quill (azure/gpt-5.4) is healing the failing tests in app
|
|
5444
5493
|
⚙ read tests/pages/LoginPage.ts
|
|
5445
5494
|
▸ Browser: Sign in to staging.app.test and open the invoices page
|
|
5446
5495
|
✓ Task complete · 9 steps
|
|
@@ -5472,7 +5521,7 @@ a stop; <code>--yes</code>, a schedule or CI stops at the limit as before.</p>
|
|
|
5472
5521
|
<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, Selenium or Robot Framework), 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>
|
|
5473
5522
|
<div class="facts">
|
|
5474
5523
|
<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>
|
|
5475
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
5524
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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>
|
|
5476
5525
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>migrate_tests</code></p></div>
|
|
5477
5526
|
</div>
|
|
5478
5527
|
<div class="detail"><span class="mono">In detail</span>
|
|
@@ -5561,17 +5610,17 @@ In the shell, "migrate our Selenium tests to Playwright" makes the pla
|
|
|
5561
5610
|
</article>
|
|
5562
5611
|
<article class="spec feat" id="cap-tosca-convert">
|
|
5563
5612
|
<div class="hd"><span class="mono">Automated tests</span><h3>Convert Tosca test cases</h3></div>
|
|
5564
|
-
<p class="ds">Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with
|
|
5613
|
+
<p class="ds">Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with Bridge, after a plan the user confirms; every Tosca step and check is marked in the converted test and checked, secrets become environment variables, and ForgeQE runs each test itself.</p>
|
|
5565
5614
|
<div class="facts">
|
|
5566
5615
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Convert the Tosca export tosca/checkout.tsu to Playwright TypeScript</li></ul></div>
|
|
5567
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
5616
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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 Tosca .tsu export inside a git repository</span></li></ul></div>
|
|
5568
5617
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>convert_tosca</code></p></div>
|
|
5569
5618
|
</div>
|
|
5570
5619
|
<div class="detail"><span class="mono">In detail</span>
|
|
5571
5620
|
<section class="doc" id="doc-how_to_use-converting-tosca-tests">
|
|
5572
5621
|
<h4>Converting Tosca tests</h4>
|
|
5573
|
-
<div class="prose"><p><code>forgeqe tosca</code> converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with
|
|
5574
|
-
|
|
5622
|
+
<div class="prose"><p><code>forgeqe tosca</code> converts Tricentis Tosca test cases into Playwright, Cypress, Selenium or WebdriverIO tests, with
|
|
5623
|
+
Bridge. It is a separate agent from <code>forgeqe migrate</code>: a Tosca export is not a folder of code but a graph of test
|
|
5575
5624
|
cases, modules, reusable blocks and parameters. Put the export (<code>.tsu</code>) inside the repository, then:</p>
|
|
5576
5625
|
<pre><code class="language-bash">forgeqe tosca inspect tosca/checkout.tsu # what the export holds; no model, nothing written
|
|
5577
5626
|
forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698_submit_order] [--test-attribute data-qa]
|
|
@@ -5585,7 +5634,7 @@ forgeqe tosca reimport tsc-… [--refresh] # r
|
|
|
5585
5634
|
forgeqe tosca map tsc-… [--json] # each Tosca test case by its unique id, and what became of it
|
|
5586
5635
|
forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
|
|
5587
5636
|
forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
|
|
5588
|
-
forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to
|
|
5637
|
+
forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to Bridge
|
|
5589
5638
|
forgeqe tosca targets # the targets, this project's own included
|
|
5590
5639
|
</code></pre>
|
|
5591
5640
|
<p>A Tosca conversion may target any framework a migration may, so a target profile of your own
|
|
@@ -5614,7 +5663,7 @@ case that two exports both hold (same id, name, folders and steps) is converted
|
|
|
5614
5663
|
different test case with the same id gets its export's number; a module of the same name becomes one page object;
|
|
5615
5664
|
execution lists and variables join. Exports can come from a git repository instead of the project:
|
|
5616
5665
|
<code>forgeqe tosca clone <url></code> (or From a git repository on the page) makes a shallow copy under ForgeQE's home with
|
|
5617
|
-
|
|
5666
|
+
Mover's checks (https or git@ only, no user name in the address, the token by its variable's name and
|
|
5618
5667
|
only as a header, no hooks, submodules or links) and keeps it only when it holds an export; such a copy is a Tosca
|
|
5619
5668
|
source, never listed as a migration's. Every file of a plan is checked by its digest before each run, so a changed
|
|
5620
5669
|
or removed export (or a removed copy) stops it until a new plan is made.
|
|
@@ -5646,13 +5695,13 @@ data the export does not hold. A missing address or program blocks the start; a
|
|
|
5646
5695
|
answered or accepted ("convert without it"). Answers are kept in <code>.forgeqe/tosca/<plan>/ready.json</code>; <code>run</code>, <code>fix</code>
|
|
5647
5696
|
and <code>verify</code> refuse until nothing is open, and the tests get the reviewed address as <code>BASE_URL</code>.
|
|
5648
5697
|
<strong>What it may cost.</strong> Review's Estimate (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the
|
|
5649
|
-
files still to write, as a range, and their price with the model
|
|
5698
|
+
files still to write, as a range, and their price with the model Bridge is routed to when that model has a
|
|
5650
5699
|
price in <code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca
|
|
5651
5700
|
conversions once they have written at least 5 files (tokens per file), else from defaults sized by each test case's
|
|
5652
5701
|
steps; files already written are not counted again. An estimate, never a limit: a hard test case takes more tries.</li>
|
|
5653
5702
|
<li><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
|
|
5654
5703
|
ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</li>
|
|
5655
|
-
<li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of
|
|
5704
|
+
<li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of Bridge, which may edit
|
|
5656
5705
|
only the target folder. The agent marks each line that does a Tosca step with its id (<code>// tosca: n12</code>). ForgeQE's
|
|
5657
5706
|
fidelity check needs every step and check marked (only the branch that runs of an If that is always true or false),
|
|
5658
5707
|
no skipped test, and assertions where Tosca checked; then it runs the test with the target's own command. A failure
|
|
@@ -5684,11 +5733,11 @@ missing. Selenium has no video recorder: its tests keep failure screenshots only
|
|
|
5684
5733
|
<p>Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped. The Tosca page of <code>forgeqe web</code>
|
|
5685
5734
|
(sidebar, Test) does the same in four steps (export, target, instructions, review): it lists the <code>.tsu</code> exports in
|
|
5686
5735
|
the project, reads the one you pick and lets you choose its test cases, then follows the job: its stages, every file
|
|
5687
|
-
with how many of its Tosca steps the test does and its whole output (Fix sends one back to
|
|
5736
|
+
with how many of its Tosca steps the test does and its whole output (Fix sends one back to Bridge with a note),
|
|
5688
5737
|
Run tests again for all of them or Run for one suite, each test case's
|
|
5689
5738
|
Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
|
|
5690
5739
|
happens.</p>
|
|
5691
|
-
<p><strong>
|
|
5740
|
+
<p><strong>Guide.</strong> The Tosca page opens on its Agent tab: say in your words what to migrate ("checkout.tsu to
|
|
5692
5741
|
Playwright in TypeScript on QA, into e2e/tosca") and the assistant asks only what it still needs, one thing at a time:
|
|
5693
5742
|
the exports, the framework, the language, where the tests start, then a folder or rules for the code. Each question
|
|
5694
5743
|
offers its options to pick; you can also type, and change anything you said. Open the prefilled wizard then reads the
|
|
@@ -5807,7 +5856,7 @@ under another name. The tests then get that secret's value under the name they r
|
|
|
5807
5856
|
no model sees a secret's name. Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never
|
|
5808
5857
|
in the plan's folder in the repository, and ForgeQE's own keys (its models', trackers') are never offered or given to a
|
|
5809
5858
|
test. Conversions lists the plans. In the shell, "convert
|
|
5810
|
-
tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it yourself.
|
|
5859
|
+
tosca/checkout.tsu to Playwright" inspects the export and makes the plan; you confirm it yourself. Bridge
|
|
5811
5860
|
knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value tokens, expressions, locators, and how each maps to
|
|
5812
5861
|
every target).</p>
|
|
5813
5862
|
</div>
|
|
@@ -5819,7 +5868,7 @@ every target).</p>
|
|
|
5819
5868
|
<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>
|
|
5820
5869
|
<div class="facts">
|
|
5821
5870
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Run the checkout tests</li><li>Run the tests added in sprint 12</li></ul></div>
|
|
5822
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
5871
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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 repository with tests</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to pick tests by sprint: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
5823
5872
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>find_tests</code> <code>run_tests</code> <code>list_sprints</code></p></div>
|
|
5824
5873
|
</div>
|
|
5825
5874
|
<div class="detail"><span class="mono">In detail</span>
|
|
@@ -5832,8 +5881,8 @@ Which tests cover checkout? Don't run them
|
|
|
5832
5881
|
Run the tests added since 2026-09-01
|
|
5833
5882
|
</code></pre>
|
|
5834
5883
|
<ol>
|
|
5835
|
-
<li>
|
|
5836
|
-
<li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>, <code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and
|
|
5884
|
+
<li>Quill starts read-only in the repo. It works out the test framework and decides each test by reading it: its body, and the page objects and helpers it calls. A test named <code>guest can pay</code> that signs in through <code>LoginPage</code> counts as a login test; a test that only mentions login in its name but checks something else does not. For a date range or sprint, it reads git history and selects the tests added in that range, including new test functions in files that already existed. It cannot change files or run anything.</li>
|
|
5885
|
+
<li>It gives two commands in the framework's own terms: one that lists exactly those tests (<code>playwright test --list</code>, <code>pytest --collect-only</code>, <code>dotnet test --list-tests</code>, …) and one that runs them and writes JUnit XML or TRX results. ForgeQE runs the list command, and Quill checks the listing is exactly its selection, fixing the command when it is not (up to three rounds).</li>
|
|
5837
5886
|
<li>The list appears as a card: each test with its file and why it matches, the near misses that were left out, and the commands.</li>
|
|
5838
5887
|
<li>Nothing runs until you say so. ForgeQE asks <strong>Run N tests?</strong> with <strong>Run</strong> and <strong>Don't run</strong> (in the shell a dialog; with <code>forgeqe run</code> a numbered prompt in the terminal). When you only asked which tests exist, it stops at the list.</li>
|
|
5839
5888
|
<li>ForgeQE runs the tests itself and reads their results: a card with ✓ or ✗ for each test and the failure message, then the command, the result files, and the output. When tests fail, ForgeQE's agent offers to heal them with <code>heal_tests</code>.</li>
|
|
@@ -6033,7 +6082,7 @@ Build a pack for Jira fix version 2.4 and the commits since release/2.3 in ../sh
|
|
|
6033
6082
|
<p class="ds">Reviews an Azure DevOps or GitHub pull request from the local clone for bugs, security, requirements, and tests, and posts the review once the user agrees.</p>
|
|
6034
6083
|
<div class="facts">
|
|
6035
6084
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Review PR 42 and focus on error handling</li></ul></div>
|
|
6036
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent,
|
|
6085
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>The coding agent, Quill: 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 local clone of the repository</span></li><li><span class="need req">Required</span><span>Azure DevOps, for Azure DevOps pull requests: set up under sources: in forgeqe.yaml, or sign in with /auth; or gh on PATH, for GitHub pull requests</span></li></ul></div>
|
|
6037
6086
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>review_pull_request</code> <code>post_pr_review</code></p></div>
|
|
6038
6087
|
</div>
|
|
6039
6088
|
<div class="detail"><span class="mono">In detail</span>
|
|
@@ -6047,8 +6096,8 @@ Review my open pull requests
|
|
|
6047
6096
|
<ol>
|
|
6048
6097
|
<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>
|
|
6049
6098
|
<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>
|
|
6050
|
-
<li>
|
|
6051
|
-
Before it starts, ForgeQE's copy-paste check (<a href="https://github.com/kucherenko/jscpd" 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).
|
|
6099
|
+
<li>Quill 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.
|
|
6100
|
+
Before it starts, ForgeQE's copy-paste check (<a href="https://github.com/kucherenko/jscpd" 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). Quill 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>
|
|
6052
6101
|
<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>
|
|
6053
6102
|
<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>
|
|
6054
6103
|
</ol>
|
|
@@ -6088,7 +6137,7 @@ Before it starts, ForgeQE's copy-paste check (<a href="https://github.com/kucher
|
|
|
6088
6137
|
<li>the tests that name a changed class or page object (every language, C# and Java included);</li>
|
|
6089
6138
|
<li>the tests mapped in <code>.forgeqe/test-cases.json</code> to the test cases of the work items the pull request is linked to (Azure DevOps "Tested By").</li>
|
|
6090
6139
|
</ul>
|
|
6091
|
-
<p>Each test comes with why it was picked, and the changed files no test reaches are listed as a coverage gap. With a model,
|
|
6140
|
+
<p>Each test comes with why it was picked, and the changed files no test reaches are listed as a coverage gap. With a model, Quill checks the candidates by reading the tests, adds tests that drive the changed behaviour through the UI, and gives the exact list and run commands; <code>run_tests</code> then runs them after you agree, and <code>post_pr_test_results</code> puts the results on the pull request (it asks first). The tests run from your working tree: check out the pull request's branch to run its versions of the tests.</p>
|
|
6092
6141
|
<p>In CI, without a model:</p>
|
|
6093
6142
|
<pre><code class="language-bash">forgeqe pr-tests --base origin/main --run # exit 0: passed or nothing affected; 1: a test failed
|
|
6094
6143
|
forgeqe pr-tests 42 --run --post # and post the results on pull request 42
|
|
@@ -6106,7 +6155,7 @@ forgeqe pr-tests 42 --run --post # and post the results on p
|
|
|
6106
6155
|
<p class="ds">Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts.</p>
|
|
6107
6156
|
<div class="facts">
|
|
6108
6157
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Turn the last run's API calls into tests</li><li>Test the API in openapi.yaml</li><li>Write API scenario tests for the order lifecycle</li><li>Import our Postman collection and send its calls</li><li>Add these cURL calls to the shop API</li><li>Heal the API contracts from the latest run</li></ul></div>
|
|
6109
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent,
|
|
6158
|
+
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>The coding agent, Quill: a live model profile (or code.model) and the agent runtime, which forgeqe setup installs</span></li></ul></div>
|
|
6110
6159
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Calls that change data run only when the user allows them, on a test environment, never production; healing never replays them.</li><li>A contract that fails can be a real defect: healing proposes a new version, and a person decides.</li></ul></div>
|
|
6111
6160
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>api_contracts</code> <code>run_api_contracts</code> <code>heal_api_contracts</code> <code>api_scenarios</code> <code>run_api_scenarios</code> <code>write_api_tests</code> <code>api_new_set</code> <code>api_add_calls</code> <code>api_import_collection</code></p></div>
|
|
6112
6161
|
</div>
|
|
@@ -6123,7 +6172,7 @@ forgeqe pr-tests 42 --run --post # and post the results on p
|
|
|
6123
6172
|
<ul>
|
|
6124
6173
|
<li><strong>Run them now</strong> (<code>run_api_contracts</code>, or <code>forgeqe api run</code>): ForgeQE makes each call and checks the answer, without a browser or a model. Calls that change data (POST, PUT, PATCH, DELETE, mutations, SOAP and gRPC calls not named like reads) are left out unless you allow them, on a test environment; the agent asks first. Calls with made-up values are skipped until you give real ones. Results go to <code>results.json</code> and <code>junit.xml</code>, with <code>report.html</code> (each contract a case, its checks the steps, with what the API answered) and <code>suite.json</code> beside them; a 401 or 403 says which header the call needs.</li>
|
|
6125
6174
|
<li><strong>Calls the site's bot protection blocks.</strong> A site behind Cloudflare, Akamai, Imperva, DataDome or a similar service can answer a call that does not come from a browser with a challenge or block page (a 403, 429 or 503 with the service's marks, or HTML where the API answers JSON). ForgeQE tells that apart from the API's own refusal (a JSON 403 is the API's answer) and, with <code>api.browser_fallback</code> on (the default), sends a call that only reads again from a page of a real browser on the API's own site: the page loads first, so a challenge can set its cookie, and the call is made with <code>fetch()</code> in a part of the page the site's own scripts cannot see, so they never read its credentials. The result says "sent from a browser page". A call that changes data is never sent again. Contract runs, scenarios, healing and the API page's <strong>Send</strong> use it (the page says "Sent from a browser page" by the answer; <code>forgeqe web</code> keeps that browser for two minutes after the last blocked call); load tests and security checks never do. Turned off, a blocked call fails with "blocked" and the reason.</li>
|
|
6126
|
-
<li><strong>Write them as tests</strong> (<code>write_api_tests</code>, or <code>forgeqe api tests</code>):
|
|
6175
|
+
<li><strong>Write them as tests</strong> (<code>write_api_tests</code>, or <code>forgeqe api tests</code>): Quill writes them in the repository's own framework and HTTP client (Playwright's <code>request</code> fixture, pytest with requests, REST Assured, RestSharp or HttpClient, supertest...) with the base URL from configuration and credentials from environment variables, and ForgeQE runs them until they pass.</li>
|
|
6127
6176
|
<li><strong>Heal them when the app changed</strong> (<code>heal_api_contracts</code>, or <code>forgeqe api heal [SET] --run RUN</code>): run the flow again in the browser, and ForgeQE runs the set's read-only calls, learns each one that fails again from the newer run (the same operation with a new answer, or the one call of the same method and step that moved, like <code>/api/v1/orders/{id}</code> to <code>/api/v2/orders/{id}</code>), and replays it. Only a version whose replay passes is offered, with what changed (path, status, fields now required or gone), and the set changes only when you agree (<code>--yes</code> in a terminal); the old <code>contracts.json</code> is kept in <code>history/</code>, and scenarios that still make the old call are named. A contract that fails can be a real defect, so nothing is changed on its own. Calls that change data are never replayed, contracts from a description are fixed in the description, and another site's call is never taken.</li>
|
|
6128
6177
|
</ul>
|
|
6129
6178
|
<p><strong>Learning what the caller chooses.</strong> One run cannot tell <code>/domains/github.com</code> from a fixed path. Give <code>api_contracts</code> other runs of the same flow (other data, another user: <code>compare_runs</code>, or <code>forgeqe api contracts --run RUN --compare RUN2,RUN3</code>) and the calls made in the same step, with the same method and the same number of path segments, are compared: a segment that differed becomes a parameter named for the segment before it (<code>GET /domains/{domain}</code>), when the first segment is the same, no more than half of them differ, and the answers have the same shape, so two endpoints are not made one. Each contract lists its <strong>inputs</strong> in <code>contracts.json</code>, <code>api.md</code> and on the API page (under the call's request, with a note when a call was learned again by healing): its path parameters, and the query keys and body fields whose values differed between calls (names only, never values). The example stays a real call, so it runs as it is.</p>
|
|
@@ -6232,7 +6281,7 @@ are probed only with <code>--allow-writes</code>, after you agree (at most 40 pr
|
|
|
6232
6281
|
<pre><code class="language-bash">forgeqe api contracts --spec https://petstore3.swagger.io/api/v3/openapi.json
|
|
6233
6282
|
forgeqe api contracts --run # the latest browser run's API calls
|
|
6234
6283
|
forgeqe api run --base-url https://qa.shop.example # exit 1 when a contract fails: a CI gate
|
|
6235
|
-
forgeqe api tests --repo ../app #
|
|
6284
|
+
forgeqe api tests --repo ../app # Quill writes them as tests
|
|
6236
6285
|
</code></pre>
|
|
6237
6286
|
<p><strong>The Agent tab</strong> of the API tests page is a conversation: paste a link (an API description, a Postman collection,
|
|
6238
6287
|
the docs), cURL commands, or tell it about the API in your words, and attach a file (a Postman collection is imported
|
|
@@ -6277,12 +6326,12 @@ masked), and each call shows how its last runs went.</p>
|
|
|
6277
6326
|
</table></div>
|
|
6278
6327
|
<p>The planner only uses operations the set has: a step no operation does is listed as unmatched, never invented. Give it the API's operations with <code>--spec</code> (an OpenAPI or Swagger link or file) or a saved set; without a description, make contracts from a browser run first. Every plan is checked before it is saved (each operation exists, each variable is saved before it is used) and shown step by step; nothing runs until you run it.</p>
|
|
6279
6328
|
<p><code>run_api_scenarios</code> (or <code>forgeqe api run-scenarios</code>) runs them against the API, without a browser or a model: each step in order, the values passed on, every step's checks. A failed step stops its scenario, and the scenario's <strong>cleanup</strong> steps (deleting what it created) run, those whose values exist. Scenarios that change data run only after you agree (in CI: <code>--allow-writes</code>), on a test environment. Results go to <code>scenario-results.json</code> and <code>scenarios-junit.xml</code>, with <code>report.html</code> (each scenario a case, its calls the steps) and <code>suite.json</code> beside them. API runs count in the <a href="#doc-how_to_use-team-report">team report</a>.</p>
|
|
6280
|
-
<p><strong>On your existing API automation.</strong> <code>write_api_tests</code> with <code>scenarios</code> (or <code>forgeqe api tests --scenarios</code>) has
|
|
6329
|
+
<p><strong>On your existing API automation.</strong> <code>write_api_tests</code> with <code>scenarios</code> (or <code>forgeqe api tests --scenarios</code>) has Quill write each scenario as an end-to-end test in the repository, built on what is already there:</p>
|
|
6281
6330
|
<ol>
|
|
6282
6331
|
<li>It maps the repository's API layer first: clients, request helpers, auth and base URL fixtures, data builders, schemas.</li>
|
|
6283
6332
|
<li>Each step calls the helper that already calls that operation; only operations without one get a new helper, in the same style.</li>
|
|
6284
6333
|
<li>It reuses helpers, never tests: a scenario never runs another test as a step, and sets up its own data.</li>
|
|
6285
|
-
<li>A shared helper is only added to, never changed in a way its tests rely on. When
|
|
6334
|
+
<li>A shared helper is only added to, never changed in a way its tests rely on. When Quill changes one, ForgeQE also runs the tests that use it, and sends any failure back until both pass.</li>
|
|
6286
6335
|
<li>A scenario test for a test case is named after it and recorded in <code>.forgeqe/test-cases.json</code>, and set as the Azure DevOps test case's Associated Automation when write-back is on.</li>
|
|
6287
6336
|
</ol>
|
|
6288
6337
|
<pre><code class="language-bash">forgeqe api scenarios --run # the latest browser run's flow, chained
|
|
@@ -6584,7 +6633,7 @@ forgeqe flags run release-2.3 new-checkout=on,off theme=light,dark --env qa --mo
|
|
|
6584
6633
|
</article>
|
|
6585
6634
|
<article class="spec feat" id="cap-reports">
|
|
6586
6635
|
<div class="hd"><span class="mono">Release</span><h3>Reports you can share</h3></div>
|
|
6587
|
-
<p class="ds">Writes up what
|
|
6636
|
+
<p class="ds">Writes up what Atlas found, such as open defects across projects, release status, or pipeline health, as a page with filters (project, state, priority, assignee, …), charts, and a sortable table, plus Markdown and CSV. Every table is built from evidence: the results of the tool calls the agent made, or a read-only query ForgeQE runs itself, listed on the page's Sources with each raw result kept beside the report.</p>
|
|
6588
6637
|
<div class="facts">
|
|
6589
6638
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create a release report for all projects</li><li>Write up the open defects as a report I can share</li></ul></div>
|
|
6590
6639
|
<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>
|
|
@@ -6670,8 +6719,8 @@ forgeqe bi build --from //share/qa-reports # this machine's runs plus every bund
|
|
|
6670
6719
|
<div class="prose"><p><strong>Prices.</strong> ForgeQE prices every model call at the model's <strong>list price</strong>, from two public price lists: <a href="https://models.dev" rel="noopener">models.dev</a> (the list the agent runtime uses) and LiteLLM's model price list, which also has Azure's Data Zone prices. It keeps the few fields it needs in <code>~/.forgeqe/prices.json</code>, waits a few seconds for it the first time, refreshes it once a day in the background, and uses the last copy offline; only the public lists are downloaded, nothing about your runs is sent (<code>FORGEQE_PRICES=off</code> stops the downloads). Costs at list price say so: <code>$1.73 (list price of gpt-5.4 (Azure Global) from models.dev, 2026-10-06)</code>. For an Azure Data Zone deployment, which costs about 10% more, set <code>"deployment_type": "data_zone"</code> on the profile.</p>
|
|
6671
6720
|
<p><strong>Model parameters.</strong> Models differ in what a request may carry: reasoning models (o1, o3, o4, gpt-5) take <code>max_completion_tokens</code> instead of <code>max_tokens</code> and only the default temperature, and some OpenAI-compatible servers refuse <code>max_completion_tokens</code>, <code>reasoning_effort</code> or <code>response_format</code>. ForgeQE works this out by itself. A profile is a reasoning model when its <code>model</code> or <code>deployment</code> name says so (an Azure deployment called <code>chat-prod</code> with <code>"model": "gpt-5.4"</code> counts), or when it sets <code>"reasoning": true</code>; <code>"reasoning": false</code> says it is not. When the API still refuses a parameter, the browser, desktop and mobile agents send the call again without it and leave it out of later calls to that model. Nothing needs setting for a new model.</p>
|
|
6672
6721
|
<p>A profile's own <code>"price": { "input": 2.5, "output": 15, "cached_input": 0.25 }</code> (per million tokens) wins, for a negotiated or enterprise rate. Leave <code>currency</code> out and reports use this machine's currency, or set <code>"currency": "USD"</code>. Without <code>cached_input</code>, cached input gets the model's cache discount from its list price, and the cost is marked as an estimate (<code>≈$1.52</code>); with no list price for the model either, cached input is charged at the full rate and the cost is an upper bound (<code>up to $6.11</code>). When your price differs from the list price, ForgeQE says so (<code>forgeqe models</code>, the shell, and the start of each command), since that is usually a typo or an old price. Anthropic's cache writes are priced at their own rate. A provisioned (PTU) deployment is billed per hour, not per token, so its costs are what the tokens would cost at list price. Requests over a model's long-context threshold (272K tokens for GPT-5.4) cost more and are priced at the normal rate.</p>
|
|
6673
|
-
<p><strong>Usage after every job.</strong> Every browser run,
|
|
6674
|
-
<pre><code>This request used 1.1M tokens (1.1M in, 30.0K of it cached · 34.7K out) · $3.07 — ForgeQE's agent 42.0K · $0.12, browser agent 52.7K · $0.15,
|
|
6722
|
+
<p><strong>Usage after every job.</strong> Every browser run, Quill job, heal, suite, and monitor round ends with a <code>Usage</code> line: tokens in (and how many of them were cached), tokens out, and the cost at the profile's price. A request to ForgeQE's agent in the shell, and every <code>forgeqe run</code>, <code>code</code>, <code>suite</code>, and <code>heal</code> command, ends with the total for everything it started, by role:</p>
|
|
6723
|
+
<pre><code>This request used 1.1M tokens (1.1M in, 30.0K of it cached · 34.7K out) · $3.07 — ForgeQE's agent 42.0K · $0.12, browser agent 52.7K · $0.15, Quill 1.0M · $2.80
|
|
6675
6724
|
</code></pre>
|
|
6676
6725
|
</div>
|
|
6677
6726
|
</section>
|
|
@@ -6884,7 +6933,7 @@ gcloud's default project for that server only.</li>
|
|
|
6884
6933
|
<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>
|
|
6885
6934
|
<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>
|
|
6886
6935
|
<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>
|
|
6887
|
-
<tr><td><code>request_test_data</code></td><td>Ask
|
|
6936
|
+
<tr><td><code>request_test_data</code></td><td>Ask Miner 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>
|
|
6888
6937
|
<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>
|
|
6889
6938
|
<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>
|
|
6890
6939
|
<tr><td><code>trace_record</code></td><td>Follow one record through the flows, hop by hop</td></tr>
|