@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.
Files changed (129) hide show
  1. package/HOW_TO_USE.md +46 -50
  2. package/THIRD_PARTY_NOTICES.md +1018 -0
  3. package/dist/docs-site/docs/index.html +44 -39
  4. package/dist/docs-site/docs/search.js +1 -1
  5. package/dist/forgeqe.js +2110 -2023
  6. package/dist/web/assets/Agent-MlW7cfAm.js +7 -0
  7. package/dist/web/assets/AgentWork-BhepbEeU.js +2 -0
  8. package/dist/web/assets/ApiTests-mxUkUZvv.js +10 -0
  9. package/dist/web/assets/Browse-DENLuv4C.js +2 -0
  10. package/dist/web/assets/Chat-jxak1jci.js +3 -0
  11. package/dist/web/assets/CommandPalette-DMAmXPq1.js +1 -0
  12. package/dist/web/assets/Compare-DJNSrM2v.js +1 -0
  13. package/dist/web/assets/Cost-CEOZgbPs.js +1 -0
  14. package/dist/web/assets/Data-COFRpcJn.js +6 -0
  15. package/dist/web/assets/Desktop-DGNdy7iS.js +1 -0
  16. package/dist/web/assets/DesktopReview-SdAwvi9y.js +1 -0
  17. package/dist/web/assets/Evidence-DTrdEz3M.js +1 -0
  18. package/dist/web/assets/Explore-DDXgQj5Q.js +2 -0
  19. package/dist/web/assets/Features-BM5iXhOR.js +1 -0
  20. package/dist/web/assets/Flags-CkKp4bbv.js +2 -0
  21. package/dist/web/assets/Flaky-BqUHVLao.js +1 -0
  22. package/dist/web/assets/Impact-CA6s3POt.js +3 -0
  23. package/dist/web/assets/Jobs-B59p1qvn.js +5 -0
  24. package/dist/web/assets/KindPage-DPADNnwH.js +6 -0
  25. package/dist/web/assets/Migration-DtynahwR.js +2 -0
  26. package/dist/web/assets/PageAgent-CB8HtdGd.js +1 -0
  27. package/dist/web/assets/Product-wWMz2Nnk.js +7 -0
  28. package/dist/web/assets/Production-Nst6__N7.js +1 -0
  29. package/dist/web/assets/Quality-DgNo4H0u.js +1 -0
  30. package/dist/web/assets/Readiness--GiTxFZo.js +1 -0
  31. package/dist/web/assets/Record-a4whC1jV.js +1 -0
  32. package/dist/web/assets/Regression-hesOlN4G.js +5 -0
  33. package/dist/web/assets/{RelationGraph-Stj9gLlk.js → RelationGraph-C3Re0M1N.js} +1 -1
  34. package/dist/web/assets/Reports-C-NSlVAn.js +2 -0
  35. package/dist/web/assets/Response-CzX2rQEZ.js +9 -0
  36. package/dist/web/assets/RunDiff-CIdQD95y.js +1 -0
  37. package/dist/web/assets/Runs-DIDCOhbK.js +2 -0
  38. package/dist/web/assets/{Steps-DDNOjqR0.js → Steps-BOWDBzu4.js} +2 -2
  39. package/dist/web/assets/TestCases-D-ZRb2N7.js +1 -0
  40. package/dist/web/assets/TestData-kXWCn7uZ.js +2 -0
  41. package/dist/web/assets/TestDebt-BvP3w7ye.js +1 -0
  42. package/dist/web/assets/TestManagement-CphGo9DZ.js +1 -0
  43. package/dist/web/assets/Tosca-dhFuqYxV.js +3 -0
  44. package/dist/web/assets/WhatsNew-DpJWNec7.js +1 -0
  45. package/dist/web/assets/agentTabs-BO5l3zw2.js +1 -0
  46. package/dist/web/assets/dataParts-DeUdfjjv.js +3 -0
  47. package/dist/web/assets/diff-D1_Qo2h1.js +2 -0
  48. package/dist/web/assets/{families-C_rjd0Xf.js → families-DWilSDct.js} +1 -1
  49. package/dist/web/assets/filters-CVzIOjPG.js +1 -0
  50. package/dist/web/assets/{fold-BWrh257K.js → fold-BRxvbN9r.js} +1 -1
  51. package/dist/web/assets/frame-VTMu7MoC.js +13 -0
  52. package/dist/web/assets/index-CKRa-K2y.css +2 -0
  53. package/dist/web/assets/index-nuLrB-Rb.js +69 -0
  54. package/dist/web/assets/line-icons-C_amZ5-o.js +1 -0
  55. package/dist/web/assets/{logos-BGwyuzYI.js → logos-J6txZkKc.js} +1 -1
  56. package/dist/web/assets/{markdown-A9SeSXqj.js → markdown-CWisJbSJ.js} +7 -7
  57. package/dist/web/assets/paletteCommands-BmYmp6YY.js +1 -0
  58. package/dist/web/assets/parts-CDBCk_Xz.js +1 -0
  59. package/dist/web/assets/{productParts-Cuv1euHM.js → productParts-BxdHuSBa.js} +1 -1
  60. package/dist/web/assets/qualityParts-CGKSK9Dq.js +1 -0
  61. package/dist/web/assets/{recordTest-Bynmxkso.js → recordTest-CcplpTS6.js} +1 -1
  62. package/dist/web/assets/{rows-Vz0y1oXB.js → rows-yPc39hV7.js} +1 -1
  63. package/dist/web/index.html +6 -6
  64. package/docs/BASAL.md +61 -0
  65. package/docs/TEST_MANAGEMENT_PLAN.md +186 -15
  66. package/docs/user-guide.html +44 -39
  67. package/forgeqe.example.yaml +13 -0
  68. package/package.json +3 -1
  69. package/prompts/README.md +5 -2
  70. package/prompts/basal-cast.md +44 -0
  71. package/prompts/basal-rehearse.md +45 -0
  72. package/prompts/basal-strategist.md +49 -0
  73. package/prompts/basal-understand.md +46 -0
  74. package/prompts/brain.md +7 -10
  75. package/prompts/test-linker.md +43 -0
  76. package/py/forgeqe_testmgmt/__init__.py +1 -0
  77. package/py/forgeqe_testmgmt/pytest_collect.py +56 -0
  78. package/dist/web/assets/Agent-BPjox9-J.js +0 -8
  79. package/dist/web/assets/AgentWork-BrMSCnH9.js +0 -2
  80. package/dist/web/assets/ApiTests-BWkctGq_.js +0 -10
  81. package/dist/web/assets/Browse-BHkFgQm7.js +0 -2
  82. package/dist/web/assets/Chat-DN075IE2.js +0 -3
  83. package/dist/web/assets/CommandPalette-C4U1esum.js +0 -1
  84. package/dist/web/assets/Compare-BeuKSpJg.js +0 -1
  85. package/dist/web/assets/Cost-C0q4kFo_.js +0 -1
  86. package/dist/web/assets/Data-C0xGI6gj.js +0 -6
  87. package/dist/web/assets/Desktop-BPo9EQzU.js +0 -1
  88. package/dist/web/assets/DesktopReview-CbPOcaTp.js +0 -1
  89. package/dist/web/assets/Evidence-xBD_g-6G.js +0 -1
  90. package/dist/web/assets/Explore-AgY2mPFA.js +0 -2
  91. package/dist/web/assets/Features-CNQLzHNE.js +0 -1
  92. package/dist/web/assets/Flags-BYiygdEm.js +0 -2
  93. package/dist/web/assets/Flaky-zDUSG0D0.js +0 -1
  94. package/dist/web/assets/Impact-B7flvv3m.js +0 -3
  95. package/dist/web/assets/Jobs-KO_M1Z5x.js +0 -5
  96. package/dist/web/assets/KindPage-D6QT3D1p.js +0 -6
  97. package/dist/web/assets/Migration-CH3HvJkR.js +0 -2
  98. package/dist/web/assets/Product-B14vAOSF.js +0 -7
  99. package/dist/web/assets/Production-NgWNih7Q.js +0 -1
  100. package/dist/web/assets/Quality-C0InnJO5.js +0 -1
  101. package/dist/web/assets/Readiness-CKfe15YB.js +0 -1
  102. package/dist/web/assets/Record-Bo1qtSQJ.js +0 -1
  103. package/dist/web/assets/Regression-DKCF89mp.js +0 -5
  104. package/dist/web/assets/Reports-5y4wtUOg.js +0 -2
  105. package/dist/web/assets/Response-BZZNyAAR.js +0 -10
  106. package/dist/web/assets/RunDiff-DHvLXuxX.js +0 -1
  107. package/dist/web/assets/Runs-C9vsfEz2.js +0 -2
  108. package/dist/web/assets/TestCases-CwvwkJJK.js +0 -1
  109. package/dist/web/assets/TestData-fdvpO4sj.js +0 -2
  110. package/dist/web/assets/TestDebt-C0qy5pIJ.js +0 -1
  111. package/dist/web/assets/TestManagement-CAyj7lhx.js +0 -1
  112. package/dist/web/assets/Tosca-DsHjjrsa.js +0 -3
  113. package/dist/web/assets/WhatsNew-D30mYpbI.js +0 -1
  114. package/dist/web/assets/agentLink-yb-OobW-.js +0 -1
  115. package/dist/web/assets/dataParts-BXHRvarN.js +0 -3
  116. package/dist/web/assets/filters-DoEToSM9.js +0 -1
  117. package/dist/web/assets/frame-5jc7OkUQ.js +0 -7
  118. package/dist/web/assets/index-DAN0sMvE.js +0 -69
  119. package/dist/web/assets/index-T6cArIaU.css +0 -2
  120. package/dist/web/assets/line-icons-Cb4JZG1G.js +0 -1
  121. package/dist/web/assets/paletteCommands-BlTG5RlB.js +0 -1
  122. package/dist/web/assets/parts-B0-ARNQW.js +0 -1
  123. package/dist/web/assets/qualityParts-BFHdnu9w.js +0 -1
  124. package/dist/web/assets/segmented-ZM3wOT2F.js +0 -1
  125. package/dist/web/assets/thread-gzrCd4Os.js +0 -5
  126. package/dist/web/assets/usePageChat-CNhpFZ3D.js +0 -1
  127. package/docs/BUSINESS_ASSURANCE.md +0 -105
  128. package/prompts/business-interview.md +0 -43
  129. 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-business-assurance" class="tile"><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>
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 &quot;an SME in card payments who reconciles settlements&quot; --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="#doc-how_to_use-business-assurance">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>
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 &quot;/priya …&quot;</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-business-assurance">
1626
- <div class="hd"><span class="mono">Test cases</span><h3>Business assurance: testing as the business, its customers and its opportunists</h3></div>
1627
- <p class="ds">The Business Testing agent: builds a model of how the business works from the product's code (capabilities, processes, the rules the code enforces, record states, personal data), asks business questions rather than functional ones (can a refund exceed what was paid, can a one-time coupon be used twice at once, can a rule on one journey be bypassed on another, can one customer act on another's order), plays them out as multi-persona scenarios through the API and the browser on a test environment, and judges business outcomes rather than HTTP statuses. Findings are classed as confirmed failures, potential risks, policy ambiguities or missing evidence, ranked by business impact, with exposure estimated only from observed breaches and stated assumptions.</p>
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>Test our refunds and coupons the way an opportunistic customer would</li><li>Find business-logic flaws in the order process</li><li>Give me the business assurance report for executives</li></ul></div>
1630
- <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>
1631
- <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Its model of the business comes from the product knowledge graph (forgeqe knowledge build): what the code does not show, it does not know</li><li>API steps run only on a test environment of env.yaml, never one named like production; calls that change data run only after you agree</li><li>A violated expectation is a confirmed failure only when it is policy or a rule the code enforces; otherwise it is a question for the business, which only a person answers</li></ul></div>
1632
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>business_assurance</code></p></div>
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-assurance">
1636
- <h4>Business assurance</h4>
1637
- <div class="prose"><p>The <strong>Business Testing agent</strong> asks what a functional test does not: <em>how does this business really work, what could go wrong when different people use it, who could benefit from unexpected behaviour, what could the organisation lose, and what is the evidence of the actual business outcome?</em> An HTTP 200, a finished workflow or a confirmation message proves nothing to it.</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 (&quot;Should we launch saved cards as Option A or B? Test how merchants, shoppers and support would really be affected&quot;), 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>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>
1641
- <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>
1642
- <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) &lt;= $paid</code>, at most one accepted redemption, the forbidden action refused, the same outcome for equivalent customers).</li>
1643
- <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>
1644
- <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>
1645
- <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>
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. &quot;Next round&quot; sends the outcomes back to the cast.</li>
1646
1647
  </ol>
1647
- <p>Ask ForgeQE's agent (&quot;test our refunds and coupons the way an opportunistic customer would&quot;, &quot;what could the business lose in checkout?&quot;), or at a terminal:</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 business context # the model of the business (writes .forgeqe/business/context.md too)
1649
- forgeqe business hypotheses [--focus refunds] [--model]
1650
- forgeqe business plan &lt;hypothesis-id&gt; [--env qa] # writes .forgeqe/business/investigations/&lt;id&gt;.json; edit it, or plan again
1651
- forgeqe business run &lt;investigation-id&gt; [--env qa] [--yes]
1652
- forgeqe business observe &lt;investigation-id&gt; --step 2 --accepted|--refused [--value name=value] [--note TEXT]
1653
- forgeqe business decide &lt;investigation-id&gt; &lt;expectation&gt; --policy|--permitted|--not-policy --reason TEXT
1654
- forgeqe business report [--view executive|product|risk|engineering] [--out FILE]
1655
- forgeqe business population [--size 200] [--seed 7] # many people drawn from the personas
1656
- </code></pre></div>
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>: &quot;buys from partner-merchant&quot;, &quot;requests approval from operations-manager&quot;, &quot;may collude with incentive-exploiter&quot;). 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 (&quot;the business never refunds more than it took&quot;) and each person (&quot;nobody is refunded more than they paid&quot;, &quot;a one-time code redeems once&quot;), 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 &lt;simulation&gt; [--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 (&quot;not tied to the run&quot;). 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 &lt;simulation&gt; &lt;member&gt; '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 &quot;Should we launch saved cards with a fee?&quot; --file briefs/brief.md --file briefs/survey.csv
1650
+ forgeqe basal understand &lt;id&gt;
1651
+ forgeqe basal strategy &lt;id&gt;
1652
+ forgeqe basal cast &lt;id&gt;
1653
+ forgeqe basal rehearse &lt;id&gt;
1654
+ forgeqe basal approve &lt;id&gt; # a person types the id
1655
+ forgeqe basal act &lt;id&gt; [--scenario s1,s2]
1656
+ forgeqe basal judge &lt;id&gt;
1657
+ forgeqe basal observe &lt;id&gt; &lt;scenario&gt; --step 3 --accepted|--refused [--values name=value] [--note TEXT]
1664
1658
  </code></pre></div>
1665
- <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>
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/&lt;id&gt;/</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 &quot;*.jmx&quot; --support &quot;*.groovy&quot; --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 &quot;The payment page opens in a new tab&quot; # 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, &quot;Other (name it)&quot; 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 &quot;not&quot;) 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>