@capagents/forgeqe 2.10.4 → 3.0.0

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 (162) hide show
  1. package/HOW_TO_USE.md +119 -16
  2. package/README.md +1 -1
  3. package/THIRD_PARTY_NOTICES.md +1 -0
  4. package/dist/docs-site/docs/architecture/index.html +1 -0
  5. package/dist/docs-site/docs/cost-architecture/index.html +1 -1
  6. package/dist/docs-site/docs/index.html +158 -19
  7. package/dist/docs-site/docs/mobile/index.html +38 -2
  8. package/dist/docs-site/docs/search.js +1 -1
  9. package/dist/forgeqe.js +2121 -1947
  10. package/dist/web/assets/Agent-DISh0THc.js +8 -0
  11. package/dist/web/assets/ApiTests-CK0HqEH4.js +10 -0
  12. package/dist/web/assets/Browse-WylAQZvD.js +2 -0
  13. package/dist/web/assets/Chat-B7IOg3I3.js +5 -0
  14. package/dist/web/assets/CommandPalette-CkreEJ8R.js +1 -0
  15. package/dist/web/assets/Compare-CgOfZofk.js +1 -0
  16. package/dist/web/assets/Cost-Dl5-viu4.js +1 -0
  17. package/dist/web/assets/Data-Bv2S5wkW.js +6 -0
  18. package/dist/web/assets/Desktop-CifPwy5u.js +1 -0
  19. package/dist/web/assets/DesktopReview-fpGdtU4r.js +1 -0
  20. package/dist/web/assets/Evidence-hOZDzfKt.js +1 -0
  21. package/dist/web/assets/Explore-c85VGE9Q.js +2 -0
  22. package/dist/web/assets/Features-DXL_vSjn.js +1 -0
  23. package/dist/web/assets/Flags-B7x2pDud.js +2 -0
  24. package/dist/web/assets/Flaky-BM3syqCt.js +1 -0
  25. package/dist/web/assets/Impact-BUCh8OAI.js +3 -0
  26. package/dist/web/assets/Jobs-B8sBDYRI.js +5 -0
  27. package/dist/web/assets/KindPage-yVmpQm7L.js +6 -0
  28. package/dist/web/assets/Migration-BOLN1duU.js +2 -0
  29. package/dist/web/assets/Product-C0FeEaJg.js +7 -0
  30. package/dist/web/assets/Production-BSMQyWKd.js +1 -0
  31. package/dist/web/assets/Quality-DsM9gWZb.js +1 -0
  32. package/dist/web/assets/Readiness-BhqkAJYN.js +1 -0
  33. package/dist/web/assets/Record-CPx-lK53.js +2 -0
  34. package/dist/web/assets/Regression-BXbX46nO.js +5 -0
  35. package/dist/web/assets/{RelationGraph-D_ZVeOBh.js → RelationGraph-eoGXXz5t.js} +1 -1
  36. package/dist/web/assets/Reports-36YQzVhA.js +2 -0
  37. package/dist/web/assets/Response-DplUOsue.js +4 -0
  38. package/dist/web/assets/RunDiff-D0fDhRmK.js +1 -0
  39. package/dist/web/assets/Runs-Bv1Ef8zq.js +2 -0
  40. package/dist/web/assets/Steps-Cm-atRtk.js +2 -0
  41. package/dist/web/assets/TestCases-B9x9W3zJ.js +1 -0
  42. package/dist/web/assets/TestData-DsJ6Z2YI.js +2 -0
  43. package/dist/web/assets/TestDebt-B_FUbMOb.js +1 -0
  44. package/dist/web/assets/Tosca-nxVCubA5.js +3 -0
  45. package/dist/web/assets/WhatsNew-CdnbMvrr.js +1 -0
  46. package/dist/web/assets/agentLink-BGKAF6xd.js +1 -0
  47. package/dist/web/assets/capture.worklet-C2TjBQ56.js +11 -0
  48. package/dist/web/assets/capture.worklet-UcNywATd.js +1 -0
  49. package/dist/web/assets/dataParts-Bn-tzbKg.js +3 -0
  50. package/dist/web/assets/{families-zlLgApNV.js → families-DPlFfKf2.js} +1 -1
  51. package/dist/web/assets/filters-Bj5K1WaL.js +1 -0
  52. package/dist/web/assets/fold-BhRpA0sy.js +1 -0
  53. package/dist/web/assets/frame-D_TPoUTD.js +16 -0
  54. package/dist/web/assets/index-BRB-oAMd.js +67 -0
  55. package/dist/web/assets/index-CIw5WfL8.css +2 -0
  56. package/dist/web/assets/{line-icons-CQ-3V8ax.js → line-icons-DBwNPSmu.js} +1 -1
  57. package/dist/web/assets/{logos-DfCytw3-.js → logos-839CfoKx.js} +1 -1
  58. package/dist/web/assets/{markdown-nTIj9lyp.js → markdown-6z0km3hN.js} +7 -7
  59. package/dist/web/assets/paletteCommands-CZFdKGhh.js +1 -0
  60. package/dist/web/assets/parts-VPcxh6Jc.js +1 -0
  61. package/dist/web/assets/{productParts-DK3ULNpv.js → productParts-BjfWgMtq.js} +1 -1
  62. package/dist/web/assets/qualityParts-PGN65yfI.js +1 -0
  63. package/dist/web/assets/{recordTest-CqxnF953.js → recordTest-EkxSMWbe.js} +1 -1
  64. package/dist/web/assets/rows-uLoguIo5.js +1 -0
  65. package/dist/web/assets/segmented-DphDskQz.js +1 -0
  66. package/dist/web/assets/{usePageChat-Dl2aUtHP.js → usePageChat-DqEwGcyO.js} +1 -1
  67. package/dist/web/index.html +6 -6
  68. package/docs/ARCHITECTURE.md +1 -0
  69. package/docs/COST_ARCHITECTURE.md +1 -1
  70. package/docs/MOBILE.md +40 -0
  71. package/docs/user-guide.html +158 -19
  72. package/evals/prompts/brain/browser-narrow-with-filters.yaml +20 -0
  73. package/forgeqe.example.yaml +11 -1
  74. package/package.json +4 -1
  75. package/prompts/brain.md +4 -0
  76. package/prompts/browser-goal-verification.md +2 -0
  77. package/prompts/refine.md +2 -0
  78. package/prompts/requests-rule.md +1 -1
  79. package/prompts/talk-summary.md +43 -0
  80. package/prompts/talk.md +49 -0
  81. package/prompts/test-agent.md +1 -0
  82. package/prompts/test-reviewer.md +2 -1
  83. package/prompts/test-rules.md +3 -0
  84. package/py/forgeqe_data/__init__.py +1 -0
  85. package/py/forgeqe_data/__main__.py +12 -0
  86. package/py/forgeqe_data/connect.py +290 -0
  87. package/py/forgeqe_data/connstr.py +169 -0
  88. package/py/forgeqe_data/flows.py +603 -0
  89. package/py/forgeqe_data/guard.py +214 -0
  90. package/py/forgeqe_data/mongo.py +219 -0
  91. package/py/forgeqe_data/schema.py +431 -0
  92. package/py/forgeqe_data/service.py +651 -0
  93. package/py/forgeqe_data/streams.py +400 -0
  94. package/py/forgeqe_data/subset.py +299 -0
  95. package/py/forgeqe_data/testdata.py +861 -0
  96. package/py/forgeqe_data/vector.py +113 -0
  97. package/py/forgeqe_desktop/workflow.py +6 -4
  98. package/py/forgeqe_engine/capture.py +5 -4
  99. package/py/forgeqe_engine/diagnostics.py +2 -2
  100. package/py/forgeqe_engine/lenient_json.py +96 -0
  101. package/py/forgeqe_engine/llm.py +4 -0
  102. package/py/forgeqe_engine/network.py +93 -15
  103. package/py/forgeqe_engine/neutral_log.py +16 -1
  104. package/py/forgeqe_engine/recordsession.py +54 -1
  105. package/py/forgeqe_engine/service.py +22 -3
  106. package/py/forgeqe_mobile/appium_driver.py +9 -0
  107. package/py/forgeqe_mobile/apps.py +4 -0
  108. package/py/forgeqe_mobile/maestro.py +3 -0
  109. package/py/forgeqe_mobile/record.py +610 -0
  110. package/py/forgeqe_mobile/service.py +37 -7
  111. package/py/forgeqe_talk/__init__.py +1 -0
  112. package/py/forgeqe_talk/__main__.py +65 -0
  113. package/py/forgeqe_voice/worker.py +141 -0
  114. package/skills/dotnet-nunit-playwright/SKILL.md +1 -0
  115. package/skills/playwright-typescript/SKILL.md +1 -1
  116. package/dist/web/assets/Agent-DaA5WhAY.js +0 -8
  117. package/dist/web/assets/ApiTests-B7xsTGyo.js +0 -10
  118. package/dist/web/assets/Browse-ByYCyAwd.js +0 -2
  119. package/dist/web/assets/Chat-D1-cYNBr.js +0 -3
  120. package/dist/web/assets/CommandPalette-DbxKJJJB.js +0 -1
  121. package/dist/web/assets/Compare-CYLFEtJl.js +0 -1
  122. package/dist/web/assets/Cost-Csz0jMHo.js +0 -1
  123. package/dist/web/assets/Data-BWTme_Yw.js +0 -6
  124. package/dist/web/assets/Desktop-rZ0vB6Ie.js +0 -1
  125. package/dist/web/assets/DesktopReview-_Xha22_d.js +0 -1
  126. package/dist/web/assets/Evidence-DmUyZy9F.js +0 -1
  127. package/dist/web/assets/Explore-2wzgwz3J.js +0 -2
  128. package/dist/web/assets/Features-DazEWqYu.js +0 -1
  129. package/dist/web/assets/Flags-BTt0-pqd.js +0 -2
  130. package/dist/web/assets/Flaky-CjkQp73T.js +0 -1
  131. package/dist/web/assets/Impact-De87sv5J.js +0 -3
  132. package/dist/web/assets/Jobs-aiNGBVHL.js +0 -5
  133. package/dist/web/assets/KindPage-CrGoFeSa.js +0 -6
  134. package/dist/web/assets/Migration-BAhQ1DZO.js +0 -2
  135. package/dist/web/assets/Product-DpK-PIxV.js +0 -7
  136. package/dist/web/assets/Production-D6A89rZZ.js +0 -1
  137. package/dist/web/assets/Quality-Bc5wCsog.js +0 -1
  138. package/dist/web/assets/Readiness-CoVgZw2X.js +0 -1
  139. package/dist/web/assets/Record-DcgBatJJ.js +0 -2
  140. package/dist/web/assets/Regression-BJLYrqST.js +0 -5
  141. package/dist/web/assets/Reports-DYfyfEDy.js +0 -2
  142. package/dist/web/assets/Response-CNLi9Dqu.js +0 -4
  143. package/dist/web/assets/RunDiff-BMTdRhii.js +0 -1
  144. package/dist/web/assets/Runs-lb78rvPV.js +0 -2
  145. package/dist/web/assets/Steps-BDSeIznj.js +0 -2
  146. package/dist/web/assets/TestCases-CfUwd67O.js +0 -1
  147. package/dist/web/assets/TestData-DP7cvW48.js +0 -2
  148. package/dist/web/assets/TestDebt-CqARxL7k.js +0 -1
  149. package/dist/web/assets/Tosca-CLAz9tWT.js +0 -3
  150. package/dist/web/assets/WhatsNew-1lhTRE5Z.js +0 -1
  151. package/dist/web/assets/dataParts-DI_OJhy5.js +0 -3
  152. package/dist/web/assets/filters-CflRmNDz.js +0 -1
  153. package/dist/web/assets/fold-pOBiaSlF.js +0 -1
  154. package/dist/web/assets/frame-CYYiRu5P.js +0 -4
  155. package/dist/web/assets/index-CNDoTeRV.css +0 -2
  156. package/dist/web/assets/index-D4a0w3Vl.js +0 -67
  157. package/dist/web/assets/palette-Cj4CUs0K.js +0 -1
  158. package/dist/web/assets/parts-C53RxMcR.js +0 -1
  159. package/dist/web/assets/qualityParts-C9FItsTg.js +0 -1
  160. package/dist/web/assets/rows-D6rPRkHl.js +0 -1
  161. package/dist/web/assets/segmented-CAf_qz5Z.js +0 -1
  162. package/dist/web/assets/thread-DQdyL3Sv.js +0 -5
package/HOW_TO_USE.md CHANGED
@@ -54,7 +54,7 @@ agent:
54
54
  | a route between two points, violet | Test planner | `forgeqe-test-plan` | Plans how a test recorded by hand fits the repository | No |
55
55
  | a cross, lime | Healer | `forgeqe-heal` | Heals tests the application outgrew | Yes, the repository |
56
56
  | two arrows, one each way, jade | Migrator | `forgeqe-migrate` | Migrates a test suite to another framework or language, one file at a time | Yes, the target folder of a confirmed migration plan |
57
- | an arch bridge, spruce | Tosca converter | `forgeqe-tosca` | Converts Tricentis Tosca test cases into tests of another framework, one file at a time | Yes, the target folder of a confirmed Tosca plan |
57
+ | an arch bridge, spruce | Tosca agent | `forgeqe-tosca` | Converts Tricentis Tosca test cases into tests of another framework, one file at a time | Yes, the target folder of a confirmed Tosca plan |
58
58
  | a compass, lilac | Tosca assistant | `forgeqe-tosca-assistant` | Reads what a person asks to migrate from Tosca and fills in the Tosca wizard for them | No |
59
59
  | a magnifier, cyan | Test finder | `forgeqe-find` | Finds the repository tests a request means | No |
60
60
  | a comment bubble, rose | PR reviewer | `forgeqe-pr-review` | Reviews pull requests | No |
@@ -79,6 +79,7 @@ agent:
79
79
  | a lens over a node, moss | Investigator | `forgeqe-investigate` | Answers one question about the product, with the lines it rests on | No |
80
80
  | a clipboard, brick | Acceptance reader | `forgeqe-evidence-acceptance` | Reads a change against its work items' acceptance criteria, quoting the lines it rests on | No |
81
81
  | ripples spreading from a point, ochre | Change reader | `forgeqe-impact-reader` | Reads what a code change does, file by file, against what its pull request and work items meant it to do | No |
82
+ | a sound wave, sky | Talk | `forgeqe-talk` | Talk's voice agent: moves around the web app, finds things and hands work to ForgeQE's agent, by voice | No |
82
83
  | a browser window, blue | Browser agent | `engine` | The browser agent (every browser run and test case) | No |
83
84
 
84
85
  The icons as the shell draws them, each in its agent's colour:
@@ -93,7 +94,7 @@ The icons as the shell draws them, each in its agent's colour:
93
94
  ▚▖ Test planner ▗▟▙▖ Healer
94
95
  ▝▀▄ ▝▜▛▘
95
96
 
96
- ▄▄█▄ Migrator ▗▀▀▖ Tosca converter
97
+ ▄▄█▄ Migrator ▗▀▀▖ Tosca agent
97
98
  ▀█▀▀ ▌▘▝▐
98
99
 
99
100
  ▗▀█ Tosca assistant ▟█▖ Test finder
@@ -132,8 +133,8 @@ The icons as the shell draws them, each in its agent's colour:
132
133
  ▞▀▀▚ Acceptance reader ▗▚▞▖ Change reader
133
134
  ▙██▟ ▝▞▚▘
134
135
 
135
- ▛▀▀▜ Browser agent
136
- ▙▄▄▟
136
+ ▖▙▟▗ Talk ▛▀▀▜ Browser agent
137
+ ▘▛▜▝ ▙▄▄▟
137
138
  ```
138
139
  <!-- subagents:end -->
139
140
 
@@ -156,21 +157,22 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
156
157
  | Test cases | **Business assurance: testing as the business, its customers and its opportunists**: 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. | `business_assurance` | [docs](#business-assurance) |
157
158
  | Setup | **Test environments and their apps**: Knows the test environments in env.yaml (QA, UAT, …) and each one's apps: web apps and APIs by URL, Windows desktop apps, and mobile apps, with what each is for. Every agent works from the active one; switches environment on request, picks the apps a scenario needs, and carries values such as an order number from one app to the next. | `test_apps`, `use_environment` | [docs](#environments-and-apps) |
158
159
  | Desktop | **Automate Windows desktop apps**: Carries out a plain-language goal in a Windows thick-client app with UFO² and saves it as a workflow with checks of the outcome, or records the steps a tester does by hand, with no model; replays saved workflows with no model, healing a step whose control moved, and fixes a workflow from chat (a timeout, a wait, a dialog to dismiss) after showing the change. Apps and the secrets they may type come from env.yaml or forgeqe.yaml desktop:. | `desktop_explore`, `desktop_record`, `desktop_replay`, `desktop_edit_workflow`, `desktop_manage` | [docs](#desktop-apps-windows) |
159
- | Mobile | **Automate Android and iOS apps**: Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. | `mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload` | [docs](#mobile-apps-android-ios) |
160
+ | Mobile | **Automate Android and iOS apps**: Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome, or records one by hand on the Record page (the device's screen shown there, here or on TestMu AI or BrowserStack, each tap, entry and check done on the device and kept as a step, no model); replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. | `mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload` | [docs](#mobile-apps-android-ios) |
160
161
  | Operations | **Services, mocks, workspace and browser in Docker or Podman**: Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, with an optional rules file for conditional responses and fault or latency injection, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container. | `services`, `mock_service` | [docs](#containers-and-mock-services) |
161
162
  | Data | **Ask a database in plain language**: Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema through DB-GPT's connectors and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them. | `databases`, `database_schema`, `run_sql` | [docs](#databases) |
162
163
  | Data | **Test data on demand**: Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch. | `generate_test_data`, `test_data_batches`, `request_test_data` | [docs](#test-data) |
163
164
  | Data | **Data flows between systems**: Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas. | `data_flows`, `check_flows`, `trace_record`, `read_mapping_file` | [docs](#data-flows) |
164
165
  | Automated tests | **Turn a passed run into an automated test**: Scribe, 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. | `write_test`, `run_test` | [docs](#6-tests) |
165
166
  | Automated tests | **Heal failing tests**: Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead. | `heal_tests` | [docs](#fixing-broken-tests) |
166
- | Automated tests | **Migrate a test suite**: Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working. | `migrate_tests` | [docs](#migrating-a-test-suite) |
167
+ | Automated tests | **Migrate a test suite**: 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. | `migrate_tests` | [docs](#migrating-a-test-suite) |
167
168
  | Automated tests | **Convert Tosca test cases**: Reads a Tricentis Tosca export (.tsu) and converts its web test cases into Playwright, Cypress, Selenium or WebdriverIO tests with the Tosca agent, 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. | `convert_tosca` | [docs](#converting-tosca-tests) |
168
169
  | Automated tests | **Find and run existing tests**: 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. | `find_tests`, `run_tests`, `list_sprints` | [docs](#finding-and-running-existing-tests) |
169
170
  | Automated tests | **Regression packs for a release**: Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. | `build_regression_pack`, `run_regression_pack`, `list_regression_packs`, `regression_sources`, `edit_regression_pack` | [docs](#regression-packs-for-a-release) |
170
171
  | Automated tests | **Flaky test detection and quarantine**: Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. | `flaky_tests`, `quarantine_tests` | [docs](#flaky-tests) |
171
172
  | Pull requests | **Review pull requests**: 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. | `review_pull_request`, `post_pr_review` | [docs](#reviewing-pull-requests) |
172
173
  | Pull requests | **Pull request impact and test selection**: Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. | `analyze_pr_impact`, `select_pr_tests`, `post_pr_test_results`, `comment_on_pr` | [docs](#what-a-pull-request-impacts-in-the-product) |
173
- | API | **API and contract testing**: 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. Load and latency testing of read-only calls, and a mock server built from the contracts. | `api_contracts`, `run_api_contracts`, `api_scenarios`, `run_api_scenarios`, `run_api_load`, `run_api_security`, `write_api_tests`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
174
+ | API | **API and contract testing**: 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. | `api_contracts`, `run_api_contracts`, `heal_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
175
+ | API | **API load and security checks**: Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers. | `run_api_load`, `run_api_security` | [docs](#api-and-contract-tests) |
174
176
  | Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
175
177
  | Quality | **Accessibility testing with personas**: A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. | `accessibility_test`, `accessibility_personas` | [docs](#accessibility-testing-with-personas) |
176
178
  | Quality | **Visual comparison with baselines**: Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. | `visual_compare`, `visual_approve` | [docs](#visual-comparison) |
@@ -197,7 +199,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
197
199
  | Setup | **Product knowledge from the product's repositories**: Reads every repository of the product, and its documents and links (folders, docs sites, API descriptions, Confluence, and the pages ForgeQE remembers of the apps), into one knowledge graph: its services, HTTP endpoints, database tables, classes, files, documents, and tests, and how they connect, across repositories (the web app's call to the API endpoint it reaches, the code that reads or writes a table). The configured model (a GitHub Copilot seat or any llms.json profile) then writes what each part does and the product's business domains, flows, rules, glossary and roles, as a graph and as pages. Agents search it by requirement, follow a flow step by step to its code, and see what a change reaches and which tests cover it. | `product_knowledge` | [docs](#product-knowledge-graph) |
198
200
  | Setup | **The Knowledge agent: what ForgeQE understood, and your corrections**: 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. | `knowledge_agent` | [docs](#the-knowledge-agent) |
199
201
  | Setup | **Search the project's documents, without vectors**: 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 the Document reader picks the sections that answer from their outline. Each passage says its file, line and headings. | `search_documents` | [docs](#searching-your-documents-without-vectors) |
200
- | Setup | **Setup, skills, and documentation**: Shows the model profiles and MCP servers, installs or repairs the browser engine, creates a forgeqe.yaml, manages skills, and answers any question about ForgeQE from its documentation, this list, and its own code (the prompts, skills, and source it runs). | `forgeqe_setup`, `capabilities`, `playbook`, `use_capabilities` | [docs](#2-scaffold-config) |
202
+ | Setup | **Setup, skills, and documentation**: Shows the model profiles and MCP servers, installs or repairs the browser engine, creates a forgeqe.yaml, manages skills, and answers any question about ForgeQE from its documentation, this list, and its own code (the prompts, skills, and source it runs). | `forgeqe_setup`, `capabilities`, `playbook`, `use_capabilities`, `app_action` | [docs](#2-scaffold-config) |
201
203
 
202
204
  Not supported: Load, stress, or soak testing with many simultaneous users (instead: per-page Core Web Vitals with budgets); Penetration testing or dynamic security scanning (instead: security findings in pull request reviews).
203
205
  <!-- capabilities:end -->
@@ -1529,6 +1531,32 @@ forgeqe web --no-open # only print the address
1529
1531
  The first page is Settings › Set up: the project folder (an existing clone, or a new folder), ForgeQE in it (the same
1530
1532
  as `forgeqe init`), what this computer needs, and a model. See [docs/WEB_APP.md](docs/WEB_APP.md) for every page.
1531
1533
 
1534
+ **Talk to it.** Talk (the button in a chat's composer, on Home's, or under Search in the sidebar) is a voice assistant
1535
+ for the whole app, like an ElevenLabs agent: a quick model of its own (your active model) that holds the spoken
1536
+ conversation and acts with tools the page carries out. Say "open the model settings", "where are my failed runs? open
1537
+ it", "search for TestMu", "take me to Record", "go back": it moves around and finds things without starting a chat, and
1538
+ asks which one you mean when it is not sure. What you see happen (a page opened, words in the box, a search) it does
1539
+ without a word; it speaks to answer, to ask, or when something did not work. While ForgeQE works you can still move around, and "stop" stops its work.
1540
+ Its model is its own: Settings › Models, Talk's voice agent (else the cheapest model rated for quick planning work). In
1541
+ a chat or on Home, what you ask ForgeQE to do goes into the message box to change or Refine; "send it" sends it (or turn
1542
+ on Send when I pause). Real work, such as "get me the ACs for 256 from ADO", goes to ForgeQE's agent. Its answer is
1543
+ not read back to you: once it is done, a short answer is said as it is and a longer one in a sentence or two of what it
1544
+ found or did (code, tables, links and its sources stay on the screen); talking over it stops it and listens. It all runs on this computer with free, open-source models, so nothing you say
1545
+ leaves it: Whisper (faster-whisper) writes down what you said and Kokoro reads replies, in a voice you pick. The first
1546
+ time, Talk asks before downloading them, about 750 MB into `~/.forgeqe/voice` (or run `forgeqe voice setup`; `forgeqe
1547
+ voice status` says whether it is ready). Talk never answers for you: when the chat asks a question or waits for an
1548
+ approval, it says so and stops listening until you answer with a click. The browser asks once for the microphone.
1549
+ Talk speaks English or Hindi (हिन्दी): pick the language in Talk's note. In Hindi it hears you in Hindi (English names
1550
+ such as ADO or TestMu included), answers you in Hindi in a Hindi voice, and still reads the chat's English replies in
1551
+ your English voice. Hindi is heard far better with its own listening model (Whisper small, about 465 MB): Talk offers it
1552
+ the first time you pick Hindi, downloads it only when you say so, and listens with the English model meanwhile.
1553
+ Turn on **Wake word** in Talk's note to talk hands-free: Talk then waits for "Hey ForgeQE" (or "Hey" and the name you
1554
+ gave ForgeQE, or a phrase you type, such as "Hey Nova") and acts on nothing else. Say it and what you want in one breath
1555
+ ("Hey ForgeQE, open the runs page"), or say it, wait for the tone, then ask. It stays awake for follow-ups until 20
1556
+ seconds of quiet, then waits for the phrase again. With the wake word on, Talk starts listening again when ForgeQE web
1557
+ opens (the browser may need one click on the page first). While it waits, what it hears is written down on this
1558
+ computer only to look for the phrase, and is never shown, kept or sent.
1559
+
1532
1560
  **Found a problem in ForgeQE itself?** Settings › Report a problem. ForgeQE picks the recent session that went wrong
1533
1561
  and reads its log for what was run and ForgeQE's own errors; the bug reporter (`forgeqe-bug-report`) drafts the bug from
1534
1562
  that and asks only what it cannot find, usually what you expected. You edit it, keep or untick what is attached (that
@@ -1875,7 +1903,7 @@ The report is `heal.md` and `heal.json` in `.forgeqe/reports/heal/<time>/`: each
1875
1903
 
1876
1904
  ### Migrating a test suite
1877
1905
 
1878
- `forgeqe migrate` moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO or Selenium (Python, Java, C#). `forgeqe migrate targets` lists them. It always starts with a plan, which writes nothing:
1906
+ `forgeqe migrate` moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO, Selenium (Python, Java, C#) or Robot Framework (with the Browser library). `forgeqe migrate targets` lists them, and a project adds its own (below). It always starts with a plan, which writes nothing:
1879
1907
 
1880
1908
  ```bash
1881
1909
  forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected
@@ -1901,11 +1929,67 @@ dependency folders are not copied.
1901
1929
  3. **Confirm.** A person confirms the plan: at a terminal by typing its id, or on the Migration page of `forgeqe web`. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.
1902
1930
  4. **Run.** The setup step makes the target folder a project of its own (`package.json` and `playwright.config.ts`, `requirements.txt` and `conftest.py`, `pom.xml`, a `.csproj`). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (`npx playwright test login.spec.ts`, `python3 -m pytest test_login.py`, `mvn -q test -Dtest=LoginTest`) and started without a shell. A failure goes back to the agent with the output, up to `code.max_attempts` times.
1903
1931
  5. **Validate and fix.** When every file is done, ForgeQE runs each migrated test again with all files in place, and
1904
- counts its tests and assertion lines against the source. Each test that fails goes to the fixing agent with its
1905
- output, then runs again. From the page or with `forgeqe migrate fix`, you can send a test to the fixing agent
1906
- yourself with a note.
1932
+ counts its tests against the source. A test that passes is then *proved to check something*, by experiment rather
1933
+ than by reading its code: ForgeQE takes the values the source expected, writes a copy of the migrated test with each
1934
+ of them made wrong, and runs it once more. **That run has to fail.** A test that passes either way does not check
1935
+ what its source checked, whatever its framework and however its assertions are spelled, so it is not migrated — and
1936
+ a value the source checked that the migrated file never mentions at all is reported without a run. The copy is put
1937
+ back in every case, and the "Checks proved" column of `migrate.md` says which tests were proved this way. Where
1938
+ there is nothing to corrupt (the source checks only computed values), assertion lines are counted as before. Each
1939
+ test that fails goes to the fixing agent with its output, then runs again. From the page or with
1940
+ `forgeqe migrate fix`, you can send a test to the fixing agent yourself with a note.
1907
1941
  6. **Report.** A test is *migrated* only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and *written* otherwise. A file the agent could not do is *failed* or *cannot be migrated*, with why. The run is `migrated` (every test), `partial` or `failed`. A model error never counts as a migrated file. The source tests are never changed. `migrate.md` and `result.json` are in `.forgeqe/migrations/<plan>/`, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.
1908
1942
 
1943
+ **A framework ForgeQE does not ship.** Every target above is data, not code, and a project adds its own the same way:
1944
+ a profile in `.forgeqe/migrate-targets/<id>.yaml`. So Karate, Gauge, Behave or anything else your team uses is a file
1945
+ you write, not a release you wait for.
1946
+
1947
+ ```yaml
1948
+ # .forgeqe/migrate-targets/karate-java.yaml
1949
+ id: karate-java
1950
+ title: Karate (Java)
1951
+ framework: Karate # a name of your own; ForgeQE needs to know nothing about it
1952
+ language: java # one ForgeQE knows how to name files for (see below)
1953
+ ext: .feature
1954
+ needs: [mvn] # programs a run needs; {python} is this computer's python
1955
+ setup: [pom.xml, karate-config.js] # what the setup step writes before the first test
1956
+ runs: [mvn, -q, test, "-Dtest={class}"] # the command for ONE test, as arguments: {file} {class} {python} {evidenceDir}
1957
+ ran_nothing: ["No tests were executed"] # output that means it ran nothing although it exited 0
1958
+ conventions: Feature files with Scenario blocks; match for assertions; one Runner per feature.
1959
+ evidence:
1960
+ how: In karate-config.js, set the report directory to test-results.
1961
+ video: false
1962
+ ```
1963
+
1964
+ The same profiles serve a Tosca conversion (`forgeqe tosca plan --to karate-java`), so a framework you added is
1965
+ available to both. Then a person approves it at a terminal, by typing its id:
1966
+
1967
+ ```bash
1968
+ forgeqe migrate targets # lists it, and whether it is approved
1969
+ forgeqe migrate target approve karate-java # shows the command it would run; you type the id
1970
+ forgeqe migrate plan --from tests --to karate-java # a target like any other from here on
1971
+ ```
1972
+
1973
+ Why the approval: a profile can come with the repository, and it names a program ForgeQE will start. So it is read as
1974
+ untrusted (unknown keys, YAML aliases and anything but an argument list are refused, and a shell, downloader,
1975
+ container, database client or file-moving command is refused outright), and what migrates is the exact copy you
1976
+ approved, kept with its digest in `.approved/`. Edit the profile afterwards and the approved copy still runs, with
1977
+ `forgeqe migrate targets` saying it changed, until you approve it again. An unapproved profile cannot be migrated to at
1978
+ all, and a profile can never take one of ForgeQE's own ids.
1979
+
1980
+ Nothing in a profile is ever run as a pattern or a command line: `ran_nothing` and `evidence.signs` are plain words
1981
+ ForgeQE matches literally, and the command is an argument list it fills with values it has already checked.
1982
+
1983
+ Whether a profile is *right* is settled by running it, not by trusting it: the validate stage runs every migrated test
1984
+ again with the values its source expected made wrong, so a command that does not really run the test, or never reports
1985
+ a failure, passes both times and fails the migration instead of signing it off.
1986
+
1987
+ What a profile cannot do is invent a language: `language` is one of typescript, javascript, python, java, csharp, ruby
1988
+ or robot, because where a test file goes and what its class is called is code (a Java test is `src/test/java/<Class>.java`,
1989
+ a Python one `test_<name>.py`). A new framework in one of those languages is a profile; a new language still needs a
1990
+ change to ForgeQE. `naming` adjusts the rest where a language has no convention of its own:
1991
+ `naming: { test_suffix: .cy, test_dirs: [cypress, e2e], support_dirs: [cypress, support] }` is how Cypress is described.
1992
+
1909
1993
  Exit codes of `migrate run`: `0` every test migrated, `1` some or none, `2` stopped. The Migration page of `forgeqe web` does all of this in four steps (source, target, instructions, review), then follows
1910
1994
  the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
1911
1995
  In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.
@@ -1930,8 +2014,14 @@ forgeqe tosca map tsc-… [--json] # e
1930
2014
  forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
1931
2015
  forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
1932
2016
  forgeqe tosca fix tsc-… --unit u004 --note "The cart badge is now a span" # one file back to the Tosca agent
2017
+ forgeqe tosca targets # the targets, this project's own included
1933
2018
  ```
1934
2019
 
2020
+ A Tosca conversion may target any framework a migration may, so a target profile of your own
2021
+ (`.forgeqe/migrate-targets/<id>.yaml`, see [Migrating a test suite](#migrating-a-test-suite)) is a Tosca target as soon
2022
+ as a person has approved it: `forgeqe tosca plan --file shop.tsu --to karate-java`. `forgeqe tosca targets` says which
2023
+ of your own are approved, and an unapproved one is refused here exactly as it is for a migration.
2024
+
1935
2025
  1. **Read.** ForgeQE reads the export with no model, through [ToscaTSU](https://github.com/bermudas/ToscaTSU)'s parser
1936
2026
  (MIT, included unchanged in `py/forgeqe_tosca/vendor/toscatsu`). It follows folders, reusable blocks with their
1937
2027
  parameter layers, If and Loop, buffers, and SelfHealingData, and writes each test case as NTIR, a neutral JSON form
@@ -2336,7 +2426,7 @@ A job can run it on a schedule: `jobs add` with `["flags", "run", …]`.
2336
2426
 
2337
2427
  ForgeQE tests APIs directly too: REST, GraphQL (queries, mutations and subscriptions), SOAP, gRPC (unary and streaming), WebSocket and Server-Sent Events. API tests check the same logic as UI tests in a fraction of the time, and they do not break when the page changes. Contracts come from two places:
2338
2428
 
2339
- - **A browser run.** Every browser run records the application's own API calls (XHR, fetch, event streams) in `network.json` in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: `Authorization`, cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Analytics and monitoring calls are left out. "Turn the last run's API calls into tests" (`api_contracts` from `run`) groups the calls into operations: one per method and path, with ids in paths turned into `{id}` (`GET /api/orders/{id}`), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used.
2429
+ - **A browser run, a recording, or its latest try.** Every browser run, every recording you make by hand, and the latest **Try it** of a recording record the application's own API calls (XHR, fetch, event streams) in `network.json` in the run folder: method, URL, status, timing, and the request and response bodies when they are JSON, XML, or text. Secrets never reach the file: `Authorization`, cookies, and API key headers are dropped (only the kind of auth is kept, e.g. bearer), and fields named like a password, token, key, session, or card number are redacted in bodies and query strings. Only a few headers are kept (content type, accept, SOAP action); `api.keep_headers` adds others your API needs, such as `X-Tenant`, which the contracts' example calls then send too. A header that can carry a credential (`Authorization`, `Cookie`, or one named like a token, key, auth or session) is refused there. Analytics and monitoring calls are left out. "Turn the last run's API calls into tests" (`api_contracts` from `run`) groups the calls into operations: one per method and path, with ids in paths turned into `{id}` (`GET /api/orders/{id}`), GraphQL by operation name, SOAP by action, gRPC-web by method. Several calls to one operation make a better contract: a field in every answer is required, a value that differs between calls is not pinned. No model is used.
2340
2430
  - **An API description,** by link or file: OpenAPI 3 or Swagger 2 (JSON or YAML, or the Swagger UI page, which ForgeQE looks behind for the document), WSDL for SOAP, a GraphQL endpoint (read by introspection) or an SDL or introspection file, `.proto` files, or `grpc://host:port` for a gRPC server with reflection (through [grpcurl](https://github.com/fullstorydev/grpcurl)); client, server and bidi streaming rpcs become streaming contracts, and a GraphQL subscription becomes a `graphql-transport-ws` WebSocket contract. Each operation gets an example call from the description's examples; values it gives no example for are made up and the contract is marked as needing real values.
2341
2431
 
2342
2432
  Each contract has one example call and what its answer must have: the **status**, the **content type**, the body's **schema**, and **key fields** (ids, statuses, names, totals: present, with their type; a value only where it does not change between calls, like a status). GraphQL answers must have no `errors`; SOAP answers no `Fault` and the expected elements; gRPC calls the OK status. Contract sets are saved in `.forgeqe/reports/api/<id>/`: `contracts.json` (edit the examples freely, e.g. to give real ids) and `api.md`.
@@ -2344,7 +2434,11 @@ Each contract has one example call and what its answer must have: the **status**
2344
2434
  Then:
2345
2435
 
2346
2436
  - **Run them now** (`run_api_contracts`, or `forgeqe api run`): 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 `results.json` and `junit.xml`, with `report.html` (each contract a case, its checks the steps, with what the API answered) and `suite.json` beside them; a 401 or 403 says which header the call needs.
2437
+ - **Calls the site's bot protection blocks.** 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 `api.browser_fallback` 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 `fetch()` 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 **Send** use it (the page says "Sent from a browser page" by the answer; `forgeqe web` 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.
2347
2438
  - **Write them as tests** (`write_api_tests`, or `forgeqe api tests`): Scribe writes them in the repository's own framework and HTTP client (Playwright's `request` 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.
2439
+ - **Heal them when the app changed** (`heal_api_contracts`, or `forgeqe api heal [SET] --run RUN`): 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 `/api/v1/orders/{id}` to `/api/v2/orders/{id}`), 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 (`--yes` in a terminal); the old `contracts.json` is kept in `history/`, 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.
2440
+
2441
+ **Learning what the caller chooses.** One run cannot tell `/domains/github.com` from a fixed path. Give `api_contracts` other runs of the same flow (other data, another user: `compare_runs`, or `forgeqe api contracts --run RUN --compare RUN2,RUN3`) 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 (`GET /domains/{domain}`), 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 **inputs** in `contracts.json`, `api.md` 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.
2348
2442
 
2349
2443
  Credentials for API calls go in `forgeqe.yaml`, as references to environment variables; the values are sent, never stored or shown to a model:
2350
2444
 
@@ -2356,6 +2450,8 @@ api:
2356
2450
  Authorization: Bearer ${API_TOKEN}
2357
2451
  X-Tenant: ${API_TENANT}
2358
2452
  third_party: false # keep calls to other sites than the page's (sign-in providers, CDNs)
2453
+ keep_headers: [X-Tenant] # more headers to keep on captured calls, and to send in the calls made from them
2454
+ browser_fallback: true # a read-only call the site's bot protection blocks is sent again from a browser page
2359
2455
  timeout_seconds: 30
2360
2456
  oauth2: # a bearer token fetched with the client-credentials grant (sent unless a call has its own Authorization)
2361
2457
  token_url: https://login.shop.example/oauth2/token
@@ -2824,7 +2920,7 @@ More of managing test cases, each set in `forgeqe.yaml` (and Settings › Integr
2824
2920
  - **Fields on new cases.** `new_cases` gives every new case a priority, tags or labels, and in Azure DevOps a state: `state: Design` makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags.
2825
2921
  - **Shared steps and data.** `sources.azure_devops.shared_steps` lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters (`@user`) and a data table.
2826
2922
  - **Cases left behind by a story change.** `story_test_cases` reads the story's history and marks the linked cases last changed before its title, description or acceptance criteria were (stale), with what changed. The agent offers to update each one the change affects, or to retire one that tests behaviour the story no longer has.
2827
- - **Retiring a case.** `retire_test_case` asks first, then closes it (Azure DevOps `retire_state`, default Closed) or labels it (Jira `retire_label`, default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse.
2923
+ - **Retiring a case.** `retire_test_case` asks first, then closes it (Azure DevOps `retire_state`; by default a state the project itself calls done, so a workflow that ends in *Verified* or *Shipped* needs no setting) or labels it (Jira `retire_label`, default obsolete), with the reason. Nothing is deleted, and retired cases are not offered for reuse.
2828
2924
  - **Duplicates before saving.** `check_test_cases` with `against` (a story) compares the cases with the story's linked cases and its scope: the same steps is a duplicate naming the existing case, more steps or a close title an overlap.
2829
2925
  - **Cases with no story.** Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, compared with that area's or project's scope.
2830
2926
  - **The feature's other stories.** `sibling_cases: true` also compares with the cases of the other stories under the story's feature or epic (the first 30 stories; in Jira, the parent field Jira Cloud uses for epics).
@@ -3219,7 +3315,13 @@ with no panel in it, only a small "Recording" badge that takes no click. **Pause
3219
3315
  Record page (and on the keys: Ctrl+Shift+Space, then P, Z or S). After each step the recorder keeps a picture of the
3220
3316
  page and what it showed (`steps/NNN.jpg` and `.json` in the run folder; the badge is left out of the picture, and an
3221
3317
  address keeps no query, where a form sent by GET puts what was typed), and the calls the page made to its own site
3222
- that change data or fail (method, path and status only). When you stop, you review the recording with clicks.
3318
+ that change data or fail (method, path and status only), for checks in the review. With `api.capture` on (the
3319
+ default), it also keeps the application's API calls in full in `network.json`, as a browser run does, each with the
3320
+ step it came after: the request and response bodies for API tests, with credentials in headers dropped, fields named
3321
+ like a password, token, key or session redacted, and every saved login's username and password replaced wherever they
3322
+ appear. Nothing is kept while the recording is paused. A value you make a secret in the review is taken out of
3323
+ `network.json` too (a contract set made from it before keeps its copy: make the set again). When you stop, you review
3324
+ the recording with clicks.
3223
3325
 
3224
3326
  The review starts with the steps and **Write the test**; everything else is under **More**. ForgeQE has already made
3225
3327
  the choices most recordings need, as one version you can undo: an email typed where an account is made is new on each
@@ -3241,7 +3343,7 @@ so: **Use the block** marks them as the block.
3241
3343
  | Test data | Each typed value: as typed, test data, new on each run (`ann+{{$unique}}@shop.test`), or a secret read from the environment, its typed text removed from the recording, its pictures and every kept version |
3242
3344
  | Blocks | Keep steps you do in many tests (Sign in) as a block, `.forgeqe/blocks/<name>.yaml`; put a block in after a step. Blocks go into the repository, so the team shares them (the review says when `.gitignore` 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 |
3243
3345
  | History | Every change is a version: go back to any of them, or to the recording as recorded |
3244
- | Try it | Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of `env.yaml` (the same web app's address there), with the test data as recorded or other values |
3346
+ | Try it | Plays the steps with Playwright in a new browser, as the test will: where it was recorded or on another environment of `env.yaml` (the same web app's address there), with the test data as recorded or other values. With `api.capture` on (the default) it keeps the application's API calls of the latest try in `tries/network.json`, cleaned as a recording's are; **API tests from its calls** opens the API page with that try picked and the recording to compare with, so values that differ between them become the calls' inputs |
3245
3347
 
3246
3348
  **Start from a block** (More options on the Record page): the recording opens the block's first page and does its
3247
3349
  steps for you in the same tab, the recorder paused meanwhile; then you record the rest. A step that cannot be done (a
@@ -3291,6 +3393,7 @@ ask for a goal in the app ("sign in to the courier app and accept the first deli
3291
3393
  on your device or emulator and saves a workflow with checks of the outcome. The same from the command line:
3292
3394
 
3293
3395
  ```bash
3396
+ forgeqe mobile setup # Appium and its drivers here, pinned (once); runs start it themselves
3294
3397
  forgeqe mobile doctor # does the Appium server answer, is maestro installed?
3295
3398
  forgeqe mobile explore "Sign in and accept the first delivery" --app courier
3296
3399
  forgeqe mobile replay <run folder>/workflow.yaml # on Appium (mobile.driver), healing moved controls
package/README.md CHANGED
@@ -389,7 +389,7 @@ For single sign-on, captchas, or security keys, sign in by hand once: `forgeqe l
389
389
 
390
390
  ## Azure DevOps, Jira, and other systems
391
391
 
392
- ForgeQE's agent connects to each system's MCP server, configured from the same `sources:` settings in `forgeqe.yaml`: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls.
392
+ ForgeQE's agent connects to each system's MCP server, configured from the same `sources:` settings in `forgeqe.yaml`: organization, site URL, and the names of the environment variables that hold the tokens. You don't write any MCP config yourself. Azure DevOps's server is the organization, so a project is optional and only limits ForgeQE's own test, sprint, and bug calls. A chat starts none of them: a server starts the first time a request needs its tools ("Connecting to Azure DevOps MCP…") and stays for the rest of that chat. A server whose tools ForgeQE could not list starts with the chat, as before.
393
393
 
394
394
  | System | MCP server | Needs |
395
395
  |--------|------------|-------|
@@ -71,6 +71,7 @@ ForgeQE downloads these onto the machine it runs on, from their own sources, whe
71
71
  | uv and Python | the browser engine's interpreter (src/engine/setup.ts) | MIT or Apache-2.0; PSF | https://github.com/astral-sh/uv |
72
72
  | browser-use, Playwright, PyYAML, azure-identity, github-copilot-sdk, truststore | the browser engine's libraries and Chromium (src/engine/setup.ts) | MIT; Apache-2.0; MIT; MIT; MIT; MIT | https://pypi.org |
73
73
  | Graphify (graphifyy), its tree-sitter grammars, NetworkX, NumPy, RapidFuzz, PyYAML, pypdf, python-docx, openpyxl, markdownify | reads the product's code structure, and PDF, Word and Excel documents, for the knowledge graph, in its own environment (src/product/graphify.ts) | Apache-2.0; MIT; BSD-3-Clause; BSD-3-Clause; MIT; MIT; BSD-3-Clause; MIT; MIT; MIT | https://github.com/Graphify-Labs/graphify |
74
+ | faster-whisper, CTranslate2, PyAV, tokenizers, huggingface_hub, kokoro-onnx, ONNX Runtime, NumPy, phonemizer and eSpeak NG (espeakng-loader); the Whisper base, Whisper small (Hindi, only when a person asks for it) and Kokoro-82M models | Talk mode's speech on this computer, set up only when a person asks for it, in its own environment (src/voice/setup.ts) | MIT; MIT; BSD-3-Clause; Apache-2.0; Apache-2.0; MIT; MIT; BSD-3-Clause; GPL-3.0 and GPL-3.0 (run as separate programs, never linked into ForgeQE); MIT and Apache-2.0 | https://github.com/SYSTRAN/faster-whisper, https://github.com/thewh1teagle/kokoro-onnx |
74
75
  | GitHub Copilot CLI and its runtime | the runtime downloaded by GitHub's Copilot SDK for github_copilot profiles (src/copilot.ts), and the CLI for the browser sign-in (src/auth/copilotLogin.ts) | GitHub Copilot CLI license (GitHub) | https://github.com/github/copilot-cli |
75
76
 
76
77
  ## Source code included unchanged
@@ -286,6 +286,7 @@
286
286
  <tr><td><code>mcp/scope.ts</code></td><td><code>CapabilityScope</code>, one per agent session. <code>beginTurn(text)</code> picks the turn's capabilities and returns the per-prompt <code>tools</code> switches (<code>forgeqe_&amp;lt;tool&gt;: true|false</code>). The picks are: the core (<code>setup-help</code>, <code>test-apps</code>), <code>agent.capabilities.always</code>, the ones <code>use_capabilities</code> asked for, those used in the last <code>STICKY_TURNS</code> (3) turns, and up to <code>MAX_PICKED</code> (4) from <code>scoreRequest</code>. <code>scoreRequest</code> makes no model call: it matches keywords and tool names, URLs (the browser), issue keys (test cases), and the names of the active environment's apps (by kind). A capability whose required apps or system are missing (<code>usableCapabilities</code>) is not picked from words alone, and nothing is picked from <code>agent.capabilities.off</code>. When nothing matches, <code>browser-goals</code> is the fallback. <code>request</code> (from <code>use_capabilities</code>) refuses unknown and switched-off ids and queues the added ones in <code>takePending</code>. <code>listedTools</code> is the list for MCP clients. <code>capabilityIndex</code> is the short list of capabilities in the agent's prompt. Other MCP servers' <code>ToolGroup</code>s are switched the same way: <code>always</code> ones every turn, a group whose keywords match the request as whole words (they do not count against <code>MAX_PICKED</code>; when the request names a system, by a group's <code>system</code> words such as &quot;github&quot; or &quot;azure devops&quot;, only that system's groups), the ones <code>use_capabilities</code> asked for, and one whose tool ran in the last turns (<code>used</code> takes the runtime name, from <code>onToolResult</code>). <code>toggles</code> adds a switch per tool of each group; opencode applies a prompt's <code>tools</code> to MCP tools by name, so a switched-off group's definitions are not sent (tests/brain-groups.e2e.test.ts)</td></tr>
287
287
  <tr><td><code>mcp/discover.ts</code></td><td><code>discoverTools</code> asks every server for its tools (initialize, tools/list) as the runtime starts it: a local command through <code>spawnPlan</code> (an argument list; cmd.exe quoting on Windows) with its <code>{env:}</code> values filled in and ForgeQE's private variables left out, or a remote address (streamable HTTP, JSON or SSE). The list is kept in <code>~/.forgeqe/cache/mcp-tools/&amp;lt;hash&gt;.json</code> (mode 0600) for <code>LIST_TTL_MS</code> (a week); the hash is of what the server runs and the names of its variables, never a value or the server's name. <code>serverGroups</code> groups each list; a server that does not answer is left out, so its tools stay on</td></tr>
288
288
  <tr><td><code>mcp/toolgroups.ts</code></td><td><code>groupTools</code> makes a server's groups from its tool names alone. Words of a name are split (snake and camel case), made singular, and verbs and fillers dropped; two words that only ever come together are one (&quot;pull request&quot;). A server whose tools mostly share a first word is split by it; otherwise, and for a prefix group over <code>MAX_GROUP</code> tools or <code>MAX_GROUP_TOKENS</code>, each tool goes to the rarest word at least 3 of them share, then the rest to words 2 share, the remainder to a catch-all whose keywords are its members' words. Keywords are the group's word or phrase, phrases from its names, plurals, and <code>SPELLED</code> (wit: work item); broad words (<code>WEAK</code>) are never one alone. A server under <code>SMALL_SERVER_TOKENS</code> is one group, always on. <code>ServerHints</code> only add titles, keywords and the always-on groups (<code>mcp/adogroups.ts</code> for Azure DevOps)</td></tr>
289
+ <tr><td><code>mcp/lazy.ts</code></td><td>Other systems' servers started only when a turn needs them. <code>deferrable</code> names the servers with tool groups; <code>openBrain</code> gives the runtime their entries with <code>enabled: false</code> (<code>deferredConfig</code>), so a chat starts none of them and signs in nowhere. <code>ServerStarter.ensure</code> runs after <code>beginTurn</code> and after <code>use_capabilities</code> added groups: each server whose group is on (<code>serverOfGroup</code>: the server that prefixes all its tools) is started once through the runtime (<code>connectMcp</code>, <code>client.mcp.connect</code>; the runtime restarts a server asked twice), with &quot;Connecting to …&quot; and connected or why not (<code>statusWhy</code>, one line). A failed one is not asked again in that chat. A server without groups (not listed, or <code>FORGEQE_TOOL_SCOPE=off</code>) starts with the chat, as its tools are on every turn</td></tr>
289
290
  <tr><td><code>mcp/captools.ts</code></td><td><code>use_capabilities</code>: adds capabilities for the rest of the session</td></tr>
290
291
  <tr><td><code>mcp/routing.ts</code></td><td><code>createRouter</code> passes every ForgeQE tool that runs to <code>scope.used</code></td></tr>
291
292
  <tr><td><code>brain/index.ts</code></td><td><code>ask</code> starts each turn with <code>beginTurn</code> and prompts with its switches. When <code>use_capabilities</code> added capabilities during the turn, it continues the same request with them, at most <code>MAX_SCOPE_CONTINUATIONS</code> (2) times. <code>FORGEQE_TOOL_SCOPE=off</code> turns the scope off</td></tr>
@@ -436,7 +436,7 @@ same request.</li>
436
436
  <tr><td>The forgeqe agent's fixed context (prompt 6.2K + core tools 1.6K)</td><td>7.8K of a 10K budget</td></tr>
437
437
  <tr><td>A turn with the four largest capabilities</td><td>14.7K</td></tr>
438
438
  <tr><td>Every tool on every turn (<code>FORGEQE_TOOL_SCOPE=off</code>)</td><td>about 26.7K</td></tr>
439
- <tr><td>Largest single capability (<code>api-testing</code>, <code>systems</code>)</td><td>1.8K of a 2.5K budget per capability</td></tr>
439
+ <tr><td>Largest single capability (<code>api-testing</code>, <code>systems</code>)</td><td>2.2K of a 2.5K budget per capability</td></tr>
440
440
  </tbody>
441
441
  </table></div>
442
442
  <p>A typical turn (&quot;replay the courier login on Maestro&quot;) adds one or two capabilities, around 1–3K. Beyond