@capagents/forgeqe 3.0.7 → 3.0.9
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 +46 -50
- package/THIRD_PARTY_NOTICES.md +1018 -0
- package/dist/docs-site/docs/index.html +44 -39
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +2110 -2023
- package/dist/web/assets/Agent-MlW7cfAm.js +7 -0
- package/dist/web/assets/AgentWork-BhepbEeU.js +2 -0
- package/dist/web/assets/ApiTests-mxUkUZvv.js +10 -0
- package/dist/web/assets/Browse-DENLuv4C.js +2 -0
- package/dist/web/assets/Chat-jxak1jci.js +3 -0
- package/dist/web/assets/CommandPalette-DMAmXPq1.js +1 -0
- package/dist/web/assets/Compare-DJNSrM2v.js +1 -0
- package/dist/web/assets/Cost-CEOZgbPs.js +1 -0
- package/dist/web/assets/Data-COFRpcJn.js +6 -0
- package/dist/web/assets/Desktop-DGNdy7iS.js +1 -0
- package/dist/web/assets/DesktopReview-SdAwvi9y.js +1 -0
- package/dist/web/assets/Evidence-DTrdEz3M.js +1 -0
- package/dist/web/assets/Explore-DDXgQj5Q.js +2 -0
- package/dist/web/assets/Features-BM5iXhOR.js +1 -0
- package/dist/web/assets/Flags-CkKp4bbv.js +2 -0
- package/dist/web/assets/Flaky-BqUHVLao.js +1 -0
- package/dist/web/assets/Impact-CA6s3POt.js +3 -0
- package/dist/web/assets/Jobs-B59p1qvn.js +5 -0
- package/dist/web/assets/KindPage-DPADNnwH.js +6 -0
- package/dist/web/assets/Migration-DtynahwR.js +2 -0
- package/dist/web/assets/PageAgent-CB8HtdGd.js +1 -0
- package/dist/web/assets/Product-wWMz2Nnk.js +7 -0
- package/dist/web/assets/Production-Nst6__N7.js +1 -0
- package/dist/web/assets/Quality-DgNo4H0u.js +1 -0
- package/dist/web/assets/Readiness--GiTxFZo.js +1 -0
- package/dist/web/assets/Record-a4whC1jV.js +1 -0
- package/dist/web/assets/Regression-hesOlN4G.js +5 -0
- package/dist/web/assets/{RelationGraph-Stj9gLlk.js → RelationGraph-C3Re0M1N.js} +1 -1
- package/dist/web/assets/Reports-C-NSlVAn.js +2 -0
- package/dist/web/assets/Response-CzX2rQEZ.js +9 -0
- package/dist/web/assets/RunDiff-CIdQD95y.js +1 -0
- package/dist/web/assets/Runs-DIDCOhbK.js +2 -0
- package/dist/web/assets/{Steps-DDNOjqR0.js → Steps-BOWDBzu4.js} +2 -2
- package/dist/web/assets/TestCases-D-ZRb2N7.js +1 -0
- package/dist/web/assets/TestData-kXWCn7uZ.js +2 -0
- package/dist/web/assets/TestDebt-BvP3w7ye.js +1 -0
- package/dist/web/assets/TestManagement-CphGo9DZ.js +1 -0
- package/dist/web/assets/Tosca-dhFuqYxV.js +3 -0
- package/dist/web/assets/WhatsNew-DpJWNec7.js +1 -0
- package/dist/web/assets/agentTabs-BO5l3zw2.js +1 -0
- package/dist/web/assets/dataParts-DeUdfjjv.js +3 -0
- package/dist/web/assets/diff-D1_Qo2h1.js +2 -0
- package/dist/web/assets/{families-C_rjd0Xf.js → families-DWilSDct.js} +1 -1
- package/dist/web/assets/filters-CVzIOjPG.js +1 -0
- package/dist/web/assets/{fold-BWrh257K.js → fold-BRxvbN9r.js} +1 -1
- package/dist/web/assets/frame-VTMu7MoC.js +13 -0
- package/dist/web/assets/index-CKRa-K2y.css +2 -0
- package/dist/web/assets/index-nuLrB-Rb.js +69 -0
- package/dist/web/assets/line-icons-C_amZ5-o.js +1 -0
- package/dist/web/assets/{logos-BGwyuzYI.js → logos-J6txZkKc.js} +1 -1
- package/dist/web/assets/{markdown-A9SeSXqj.js → markdown-CWisJbSJ.js} +7 -7
- package/dist/web/assets/paletteCommands-BmYmp6YY.js +1 -0
- package/dist/web/assets/parts-CDBCk_Xz.js +1 -0
- package/dist/web/assets/{productParts-Cuv1euHM.js → productParts-BxdHuSBa.js} +1 -1
- package/dist/web/assets/qualityParts-CGKSK9Dq.js +1 -0
- package/dist/web/assets/{recordTest-Bynmxkso.js → recordTest-CcplpTS6.js} +1 -1
- package/dist/web/assets/{rows-Vz0y1oXB.js → rows-yPc39hV7.js} +1 -1
- package/dist/web/index.html +6 -6
- package/docs/BASAL.md +61 -0
- package/docs/TEST_MANAGEMENT_PLAN.md +186 -15
- package/docs/user-guide.html +44 -39
- package/forgeqe.example.yaml +13 -0
- package/package.json +3 -1
- package/prompts/README.md +5 -2
- package/prompts/basal-cast.md +44 -0
- package/prompts/basal-rehearse.md +45 -0
- package/prompts/basal-strategist.md +49 -0
- package/prompts/basal-understand.md +46 -0
- package/prompts/brain.md +7 -10
- package/prompts/test-linker.md +43 -0
- package/py/forgeqe_testmgmt/__init__.py +1 -0
- package/py/forgeqe_testmgmt/pytest_collect.py +56 -0
- package/dist/web/assets/Agent-BPjox9-J.js +0 -8
- package/dist/web/assets/AgentWork-BrMSCnH9.js +0 -2
- package/dist/web/assets/ApiTests-BWkctGq_.js +0 -10
- package/dist/web/assets/Browse-BHkFgQm7.js +0 -2
- package/dist/web/assets/Chat-DN075IE2.js +0 -3
- package/dist/web/assets/CommandPalette-C4U1esum.js +0 -1
- package/dist/web/assets/Compare-BeuKSpJg.js +0 -1
- package/dist/web/assets/Cost-C0q4kFo_.js +0 -1
- package/dist/web/assets/Data-C0xGI6gj.js +0 -6
- package/dist/web/assets/Desktop-BPo9EQzU.js +0 -1
- package/dist/web/assets/DesktopReview-CbPOcaTp.js +0 -1
- package/dist/web/assets/Evidence-xBD_g-6G.js +0 -1
- package/dist/web/assets/Explore-AgY2mPFA.js +0 -2
- package/dist/web/assets/Features-CNQLzHNE.js +0 -1
- package/dist/web/assets/Flags-BYiygdEm.js +0 -2
- package/dist/web/assets/Flaky-zDUSG0D0.js +0 -1
- package/dist/web/assets/Impact-B7flvv3m.js +0 -3
- package/dist/web/assets/Jobs-KO_M1Z5x.js +0 -5
- package/dist/web/assets/KindPage-D6QT3D1p.js +0 -6
- package/dist/web/assets/Migration-CH3HvJkR.js +0 -2
- package/dist/web/assets/Product-B14vAOSF.js +0 -7
- package/dist/web/assets/Production-NgWNih7Q.js +0 -1
- package/dist/web/assets/Quality-C0InnJO5.js +0 -1
- package/dist/web/assets/Readiness-CKfe15YB.js +0 -1
- package/dist/web/assets/Record-Bo1qtSQJ.js +0 -1
- package/dist/web/assets/Regression-DKCF89mp.js +0 -5
- package/dist/web/assets/Reports-5y4wtUOg.js +0 -2
- package/dist/web/assets/Response-BZZNyAAR.js +0 -10
- package/dist/web/assets/RunDiff-DHvLXuxX.js +0 -1
- package/dist/web/assets/Runs-C9vsfEz2.js +0 -2
- package/dist/web/assets/TestCases-CwvwkJJK.js +0 -1
- package/dist/web/assets/TestData-fdvpO4sj.js +0 -2
- package/dist/web/assets/TestDebt-C0qy5pIJ.js +0 -1
- package/dist/web/assets/TestManagement-CAyj7lhx.js +0 -1
- package/dist/web/assets/Tosca-DsHjjrsa.js +0 -3
- package/dist/web/assets/WhatsNew-D30mYpbI.js +0 -1
- package/dist/web/assets/agentLink-yb-OobW-.js +0 -1
- package/dist/web/assets/dataParts-BXHRvarN.js +0 -3
- package/dist/web/assets/filters-DoEToSM9.js +0 -1
- package/dist/web/assets/frame-5jc7OkUQ.js +0 -7
- package/dist/web/assets/index-DAN0sMvE.js +0 -69
- package/dist/web/assets/index-T6cArIaU.css +0 -2
- package/dist/web/assets/line-icons-Cb4JZG1G.js +0 -1
- package/dist/web/assets/paletteCommands-BlTG5RlB.js +0 -1
- package/dist/web/assets/parts-B0-ARNQW.js +0 -1
- package/dist/web/assets/qualityParts-BFHdnu9w.js +0 -1
- package/dist/web/assets/segmented-ZM3wOT2F.js +0 -1
- package/dist/web/assets/thread-gzrCd4Os.js +0 -5
- package/dist/web/assets/usePageChat-CNhpFZ3D.js +0 -1
- package/docs/BUSINESS_ASSURANCE.md +0 -105
- package/prompts/business-interview.md +0 -43
- package/prompts/business-strategist.md +0 -44
|
@@ -151,7 +151,7 @@ forgeqe docs --copy ./docs # copy the guide, the architecture page, the refere
|
|
|
151
151
|
</div>
|
|
152
152
|
<h3 class="band-title">Every feature</h3>
|
|
153
153
|
<div class="area"><a href="#area-browser" class="area-name"><span class="mono">Browser</span></a><ul class="tiles"><li><a href="#cap-browser-goals" class="tile"><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 href="#cap-logins" class="tile"><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 href="#cap-record-web" class="tile"><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>
|
|
154
|
-
<div class="area"><a href="#area-test-cases" class="area-name"><span class="mono">Test cases</span></a><ul class="tiles"><li><a href="#cap-run-test-cases" class="tile"><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 href="#cap-test-case-quality" class="tile"><b>Check and improve test cases</b><span>Are the cases in test plan 12 good enough to run?</span></a></li><li><a href="#cap-write-test-cases" class="tile"><b>Write test cases from a story</b><span>Write test cases for story 1234 and save them</span></a></li><li><a href="#cap-domain-compliance" class="tile"><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 href="#cap-exploratory-testing" class="tile"><b>Exploratory testing of a story</b><span>Explore story 1234 and find bugs</span></a></li><li><a href="#cap-business-personas" class="tile"><b>Business personas for testing</b><span>Create a persona of an SME in payments</span></a></li><li><a href="#cap-
|
|
154
|
+
<div class="area"><a href="#area-test-cases" class="area-name"><span class="mono">Test cases</span></a><ul class="tiles"><li><a href="#cap-run-test-cases" class="tile"><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 href="#cap-test-case-quality" class="tile"><b>Check and improve test cases</b><span>Are the cases in test plan 12 good enough to run?</span></a></li><li><a href="#cap-write-test-cases" class="tile"><b>Write test cases from a story</b><span>Write test cases for story 1234 and save them</span></a></li><li><a href="#cap-domain-compliance" class="tile"><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 href="#cap-exploratory-testing" class="tile"><b>Exploratory testing of a story</b><span>Explore story 1234 and find bugs</span></a></li><li><a href="#cap-business-personas" class="tile"><b>Business personas for testing</b><span>Create a persona of an SME in payments</span></a></li><li><a href="#cap-basal" class="tile"><b>BASAL: business testing that acts</b><span>Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected</span></a></li></ul></div>
|
|
155
155
|
<div class="area"><a href="#area-setup" class="area-name"><span class="mono">Setup</span></a><ul class="tiles"><li><a href="#cap-test-apps" class="tile"><b>Test environments and their apps</b><span>Place an order in the shop, then check its invoice in Billing, in UAT</span></a></li><li><a href="#cap-generated-code" class="tile"><b>What ForgeQE wrote</b><span>How much of the code ForgeQE wrote is still there?</span></a></li><li><a href="#cap-forgeqe-commands" class="tile"><b>Every forgeqe command from the shell</b><span>Show me the context budget</span></a></li><li><a href="#cap-product-knowledge" class="tile"><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 href="#cap-knowledge-agent" class="tile"><b>Librarian: what ForgeQE understood, and your corrections</b><span>What do you know about refunds?</span></a></li><li><a href="#cap-document-search" class="tile"><b>Search the project's documents, without vectors</b><span>What does the payments spec say about refund limits?</span></a></li><li><a href="#cap-web-search" class="tile"><b>Search the web</b><span>Search the web for the latest Playwright release</span></a></li><li><a href="#cap-setup-help" class="tile"><b>Setup, skills, and documentation</b><span>What can you do?</span></a></li></ul></div>
|
|
156
156
|
<div class="area"><a href="#area-desktop" class="area-name"><span class="mono">Desktop</span></a><ul class="tiles"><li><a href="#cap-desktop-apps" class="tile"><b>Automate Windows desktop apps</b><span>Create an invoice for Contoso in the Billing app and save it as a test</span></a></li></ul></div>
|
|
157
157
|
<div class="area"><a href="#area-mobile" class="area-name"><span class="mono">Mobile</span></a><ul class="tiles"><li><a href="#cap-mobile-apps" class="tile"><b>Automate Android and iOS apps</b><span>Sign in to the courier app and accept the first delivery, and save it as a test</span></a></li></ul></div>
|
|
@@ -1585,7 +1585,7 @@ Acceptance criteria:
|
|
|
1585
1585
|
forgeqe persona show payments-sme # one persona and the brief agents act on
|
|
1586
1586
|
forgeqe persona create "an SME in card payments who reconciles settlements" --domain payments --kind sme [--save]
|
|
1587
1587
|
</code></pre></div>
|
|
1588
|
-
<p>Built in: <code>payments-sme</code> (<code>/priya</code>), <code>retail-customer</code> (<code>/sam</code>), <code>compliance-specialist</code> (<code>/dana</code>), <code>operations-manager</code> (<code>/lee</code>), <code>first-time-user</code> (<code>/alex</code>), and three risk-oriented personas the <a href="
|
|
1588
|
+
<p>Built in: <code>payments-sme</code> (<code>/priya</code>), <code>retail-customer</code> (<code>/sam</code>), <code>compliance-specialist</code> (<code>/dana</code>), <code>operations-manager</code> (<code>/lee</code>), <code>first-time-user</code> (<code>/alex</code>), and three risk-oriented personas the <a href="index.html">Business Testing agent</a> uses: <code>incentive-exploiter</code> (<code>/max</code>, an opportunistic deal hunter), <code>insider-agent</code> (<code>/rory</code>, a customer service agent who misuses refund and credit rights) and <code>partner-merchant</code> (<code>/morgan</code>, a marketplace merchant watching payout timing).</p>
|
|
1589
1589
|
<p>Besides what they know and check, a persona can say <strong>why they act</strong> (<code>intent</code>: <code>legitimate</code>, <code>opportunistic</code> or <code>adversarial</code>, with a <code>risk_appetite</code>), what drives them (<code>motivations</code>), what their role lets them do in the app (<code>permissions</code>), the limits they work within (<code>constraints</code>), the mistakes they plausibly make (<code>mistakes</code>) and who they deal with (<code>relationships</code>, by persona id). Each saved change raises its <code>version</code>.</p>
|
|
1590
1590
|
<p><strong>Every persona is a command in every agent's chat.</strong> Start a message with it and the task: <code>/priya Validate the payment change</code>. It works in the terminal shell (typing <code>/</code> suggests the personas with the shell's commands), <code>forgeqe run "/priya …"</code>, every chat box of the web app (typing <code>/</code> at the start offers the personas) and a custom agent's chat. ForgeQE turns the command into the persona's brief, quoted as data, and your task after it, so the agent acts as that person, puts the brief at the start of its browser runs, and judges the app by what they check. A persona's command is its <code>handle</code> (its id when it has none): a word of lower-case letters, digits and dashes that is never one of the shell's own commands or another persona's.</p>
|
|
1591
1591
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe persona export --out personas.json # your own personas, as a file to share
|
|
@@ -1622,49 +1622,41 @@ scenarios:
|
|
|
1622
1622
|
</section>
|
|
1623
1623
|
</div>
|
|
1624
1624
|
</article>
|
|
1625
|
-
<article class="spec feat" id="cap-
|
|
1626
|
-
<div class="hd"><span class="mono">Test cases</span><h3>
|
|
1627
|
-
<p class="ds">
|
|
1625
|
+
<article class="spec feat" id="cap-basal">
|
|
1626
|
+
<div class="hd"><span class="mono">Test cases</span><h3>BASAL: business testing that acts</h3></div>
|
|
1627
|
+
<p class="ds">BASAL turns a business question (should we launch saved cards with a fee? are prices the same from list to cart before the sale?) into a test that ForgeQE's own agents play as the people it affects. It reads the question's brief and data with the product knowledge graph (Neo4j, by meaning) into a scenario: the decision, stakeholders, success criteria and facts, observed or inferred; writes a test strategy whose steps are on browser, API, mobile, desktop or a person; casts a persona for each stakeholder; rehearses their reactions on a feed; and, once a person approves, hands each step to WebPilot, the API workbench, the mobile or desktop agent as that persona on a test environment. Code judges each scenario from what the agents observed: confirmed failure, policy ambiguity, potential risk, missing evidence or expected behaviour.</p>
|
|
1628
1628
|
<div class="facts">
|
|
1629
|
-
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>
|
|
1630
|
-
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need
|
|
1631
|
-
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>
|
|
1632
|
-
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>
|
|
1629
|
+
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected</li><li>Before our weekend sale, test that prices stay the same from list to cart</li><li>Test our refunds and coupons the way an opportunistic customer would</li></ul></div>
|
|
1630
|
+
<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>
|
|
1631
|
+
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>It knows the product from the knowledge graph (forgeqe knowledge build) and the files you give it: what neither shows, it does not know</li><li>A person approves every strategy before anything runs; steps that change data run only after you agree, and only on a test environment of env.yaml</li><li>A rehearsal's posts are the personas' opinions, never evidence; a verdict comes only from what the agents observed</li></ul></div>
|
|
1632
|
+
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>basal</code></p></div>
|
|
1633
1633
|
</div>
|
|
1634
1634
|
<div class="detail"><span class="mono">In detail</span>
|
|
1635
|
-
<section class="doc" id="doc-how_to_use-business-
|
|
1636
|
-
<h4>
|
|
1637
|
-
<div class="prose"><p
|
|
1638
|
-
<p>It works in steps, each reading the same model of the business:</p>
|
|
1635
|
+
<section class="doc" id="doc-how_to_use-basal-business-testing">
|
|
1636
|
+
<h4>BASAL: business testing</h4>
|
|
1637
|
+
<div class="prose"><p><strong>BASAL</strong> tests a business decision the way real people meet it. Ask a business question with its brief ("Should we launch saved cards as Option A or B? Test how merchants, shoppers and support would really be affected"), and BASAL works it through eight steps, each a page of its own beside the live knowledge graph (Agents › BASAL › Tests):</p>
|
|
1639
1638
|
<ol>
|
|
1640
|
-
<li><strong>
|
|
1641
|
-
<li><strong>
|
|
1642
|
-
<li><strong>
|
|
1643
|
-
<li><strong>
|
|
1644
|
-
<li><strong>
|
|
1645
|
-
<li><strong>
|
|
1639
|
+
<li><strong>Ask</strong>: the question, the files it rests on (a brief, survey data, policy extracts) and work items.</li>
|
|
1640
|
+
<li><strong>Understand</strong>: the decision, its options, the stakeholders, the success criteria and the facts, read from the sources and the product knowledge graph (found by meaning in Neo4j). An item is <strong>observed</strong> only when its quote is in the source it names; otherwise it is <strong>inferred</strong>.</li>
|
|
1641
|
+
<li><strong>Strategy</strong>: scenarios that decide the question, each step by a stakeholder on a channel ForgeQE's agents play (browser, API, mobile, desktop, a person, or opinion only), and the business expectations that judge it. Only stakeholders, apps, saved API calls and test environments the project has are kept; an expectation is <strong>policy</strong> only when it rests on an observed success criterion.</li>
|
|
1642
|
+
<li><strong>Cast</strong>: one persona per stakeholder who acts: what they check, what they object to, the mistakes they bring.</li>
|
|
1643
|
+
<li><strong>Rehearse</strong>: the cast react on a feed (post, comment, share, like) to the decision, to each other, and to what the agents saw on the product; what they want tried picks what to play next. Their posts are opinions, never evidence.</li>
|
|
1644
|
+
<li><strong>Approve</strong>: nothing runs until a person approves the strategy (the test's id typed). An agent never approves.</li>
|
|
1645
|
+
<li><strong>Act</strong>: each step goes to WebPilot, the API workbench, the mobile or desktop agent as its persona, on a test environment; a journey of one persona in one app is one handover. Steps that change data run only when you agree to the list shown. The operations board shows each handover as it happens.</li>
|
|
1646
|
+
<li><strong>Judge</strong>: code judges each scenario from what was observed: <strong>confirmed failure</strong>, <strong>policy ambiguity</strong>, <strong>potential risk</strong>, <strong>missing evidence</strong> or <strong>expected behaviour</strong>. A step only a person can see waits for you. "Next round" sends the outcomes back to the cast.</li>
|
|
1646
1647
|
</ol>
|
|
1647
|
-
<p>
|
|
1648
|
-
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe
|
|
1649
|
-
forgeqe
|
|
1650
|
-
forgeqe
|
|
1651
|
-
forgeqe
|
|
1652
|
-
forgeqe
|
|
1653
|
-
forgeqe
|
|
1654
|
-
forgeqe
|
|
1655
|
-
forgeqe
|
|
1656
|
-
|
|
1657
|
-
<p><strong>Populations.</strong> A population is many people drawn from your personas, the way a business really has them: mostly legitimate customers, some opportunists, a few insiders, and the staff and partners they deal with (<code>--size</code>, and on the page the shares of opportunists and adversarial customers). Each person is one of a persona, with their own activity, the hours they act in, a monthly budget and how long they have been a customer; people are linked by what the personas say about who they deal with (<code>relationships</code>: "buys from partner-merchant", "requests approval from operations-manager", "may collude with incentive-exploiter"). It is made by code from a seed, so the same seed gives the same people, with no model. The <strong>Personas</strong> tab draws it as a relationship graph in the style of MiroFish's (rebuilt in ForgeQE's own code): each person a node coloured by their persona, curved edges labelled with the relation (<code>BUYS_FROM</code>, <code>APPROVAL_FROM</code>, <code>SHARES_DEALS_WITH</code>, <code>MAY_COLLUDE_WITH</code>), a picked person's or relationship's card floating at the top right, the persona types at the bottom left, Refresh and full screen; drag, pan and zoom. By keyboard, Tab to the graph, then the arrows move to the nearest person that way, R walks their relationships and F follows one to the person at its other end, Enter or Space opens the details and Escape closes them, + and − zoom, 0 fits and Shift with an arrow pans; where you are is ringed and read out to a screen reader. Populations are kept in <code>.forgeqe/business/populations</code> and read back as untrusted. They are the cast for simulations.</p>
|
|
1658
|
-
<p><strong>Simulations.</strong> A simulation plays a population on a test environment over simulated days: each hour, the people active in it act through your saved API calls. Customers place an order, pay, sometimes ask for a refund and redeem their one-time code; opportunists ask twice at once for 60% back and redeem their code five times at once. Who does what comes from the seed, so a run can be repeated exactly; values are worked out by formulas over what each person captured (<code>$paid * 0.6</code>), never by a model. Its checks judge the whole population ("the business never refunds more than it took") and each person ("nobody is refunded more than they paid", "a one-time code redeems once"), and name everyone who broke them, so a loss the totals hide still shows. It runs only on a test environment, its calls that change data only after you agree to the list shown, and never more than its call budget (<code>max_calls</code>). On the page, the <strong>Simulation</strong> tab plans one for the newest population, runs it, and shows the outcome, who broke each check, calls by persona and the run log; the plan can be changed and is checked again. Each simulation's latest run is also in the <strong>Findings</strong> report (and <code>forgeqe business report</code>): for leaders, ranked with the investigations by what needs attention, saying how many people broke each check and of which persona; for product, risk and engineering, a Simulations section with each check, who broke it by persona, the amount beyond the rule (not for product) and, for engineering, the calls by persona. Interviews are not part of the report: they are the model's account, not evidence. At a terminal:</p>
|
|
1659
|
-
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe business simulate # plan one for the newest population
|
|
1660
|
-
forgeqe business simulate <simulation> [--env qa] [--yes]
|
|
1661
|
-
</code></pre></div>
|
|
1662
|
-
<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>
|
|
1663
|
-
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe business interview <simulation> <member> 'Why did you ask for a refund twice?'
|
|
1648
|
+
<p>At a terminal:</p>
|
|
1649
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe basal new "Should we launch saved cards with a fee?" --file briefs/brief.md --file briefs/survey.csv
|
|
1650
|
+
forgeqe basal understand <id>
|
|
1651
|
+
forgeqe basal strategy <id>
|
|
1652
|
+
forgeqe basal cast <id>
|
|
1653
|
+
forgeqe basal rehearse <id>
|
|
1654
|
+
forgeqe basal approve <id> # a person types the id
|
|
1655
|
+
forgeqe basal act <id> [--scenario s1,s2]
|
|
1656
|
+
forgeqe basal judge <id>
|
|
1657
|
+
forgeqe basal observe <id> <scenario> --step 3 --accepted|--refused [--values name=value] [--note TEXT]
|
|
1664
1658
|
</code></pre></div>
|
|
1665
|
-
<p
|
|
1666
|
-
<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>
|
|
1667
|
-
<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>
|
|
1659
|
+
<p>BASAL needs a model, and is best with the graph store (<code>forgeqe graph setup</code>: Neo4j, after you agree) and an embedding model (<code>graph.embedding</code>). Its files are in <code>.forgeqe/basal/tests/<id>/</code>. It replaces the Business assurance agent (Watchdog); <code>forgeqe business</code> points here.</p>
|
|
1668
1660
|
</div>
|
|
1669
1661
|
</section>
|
|
1670
1662
|
</div>
|
|
@@ -5222,6 +5214,7 @@ forgeqe migrate run mig-20261103-101500-ab12 # here, or
|
|
|
5222
5214
|
forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12
|
|
5223
5215
|
forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python
|
|
5224
5216
|
forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript
|
|
5217
|
+
forgeqe migrate plan --from perf --stack other --tests "*.jmx" --support "*.groovy" --source-name JMeter --to playwright-typescript
|
|
5225
5218
|
forgeqe migrate verify mig-… [--workspace ws-…] # run every migrated test again (no model)
|
|
5226
5219
|
forgeqe migrate fix mig-… --unit u006 --note "The payment page opens in a new tab" # the fixing agent on one file
|
|
5227
5220
|
</code></pre></div>
|
|
@@ -5230,6 +5223,18 @@ holds it, passed to git through its environment and never in the URL, the comman
|
|
|
5230
5223
|
anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into
|
|
5231
5224
|
a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and
|
|
5232
5225
|
dependency folders are not copied.</p>
|
|
5226
|
+
<p>A stack ForgeQE does not know is named with <code>--stack other</code> (on the Migration page, "Other (name it)" under Framework):
|
|
5227
|
+
<code>--tests</code> and <code>--support</code> give the file types of its tests and support code as plain extensions (<code>*.jmx</code>, <code>*.groovy</code>,
|
|
5228
|
+
never a pattern, a credential file or a binary), and <code>--source-name</code> what to call it. Those files become the units; test
|
|
5229
|
+
data they name is copied; nothing else is migrated. The agent reads each file as it is, and the plan names this as a
|
|
5230
|
+
limit to accept: ForgeQE runs none of its checks for known stacks first, and for a format it does not read itself, the
|
|
5231
|
+
checks after migration only ask that the test declares a test, skips none and passes. ForgeQE reads JMeter test plans
|
|
5232
|
+
(<code>.jmx</code>) itself, as untrusted XML (a document type or entity declaration is refused, sizes capped): the agent gets an
|
|
5233
|
+
outline of each request, assertion, capture, CSV data set and script beside the file, with credential headers and
|
|
5234
|
+
secret-named values never repeated and Groovy or BeanShell quoted as data, never run; each request becomes a call with
|
|
5235
|
+
the target's own HTTP client, and load settings (threads, ramp-up, timers) are named as a limit and dropped. The values
|
|
5236
|
+
the plan's assertions expect (never one under "not") are what the mutation oracle below corrupts, so a migrated test
|
|
5237
|
+
that ignores them fails, and one that never mentions them is reported.</p>
|
|
5233
5238
|
<ol>
|
|
5234
5239
|
<li><strong>Plan.</strong> ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions (<code>test_login.py</code> for pytest, <code>LoginTest.java</code> for JUnit, <code>login.cy.ts</code> for Cypress), and checks what is possible.</li>
|
|
5235
5240
|
<li><strong>What is possible.</strong> A <em>blocker</em> stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A <em>limit</em> is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all.</li>
|