@capagents/forgeqe 2.9.2 → 2.9.4

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 (117) hide show
  1. package/HOW_TO_USE.md +72 -11
  2. package/README.md +1 -1
  3. package/dist/docs-site/docs/architecture/index.html +6 -0
  4. package/dist/docs-site/docs/index.html +59 -2
  5. package/dist/docs-site/docs/search.js +1 -1
  6. package/dist/docs-site/docs/web-app/index.html +12 -1
  7. package/dist/forgeqe.js +1752 -1681
  8. package/dist/web/assets/Agent-djRg2i0o.js +7 -0
  9. package/dist/web/assets/ApiTests-Becz5PP-.js +10 -0
  10. package/dist/web/assets/Browse-_TcGuZ8l.js +2 -0
  11. package/dist/web/assets/Chat-VERzcB2r.js +3 -0
  12. package/dist/web/assets/CommandPalette-5QEcqEYi.js +1 -0
  13. package/dist/web/assets/{Compare-CGcGp9qD.js → Compare-Dl4z18KO.js} +1 -1
  14. package/dist/web/assets/Cost-B_i8IzAR.js +1 -0
  15. package/dist/web/assets/Data-DKSQEWFO.js +6 -0
  16. package/dist/web/assets/Desktop-DkNohPJ7.js +1 -0
  17. package/dist/web/assets/DesktopReview-BUgkvk9D.js +1 -0
  18. package/dist/web/assets/Evidence-Bmr0i0nA.js +1 -0
  19. package/dist/web/assets/{Explore-2M7wI0Sf.js → Explore-oz_P_CL1.js} +2 -2
  20. package/dist/web/assets/{Features-DmQ5JiMI.js → Features-CxcjdJkb.js} +1 -1
  21. package/dist/web/assets/{Flags-Bg-l5HxL.js → Flags-DF0H61Vl.js} +2 -2
  22. package/dist/web/assets/{Flaky-DJlkxmHT.js → Flaky-DkjqrHrF.js} +1 -1
  23. package/dist/web/assets/{ForceGraph-B5i3Ewd5.js → ForceGraph-i1zlas5l.js} +1 -1
  24. package/dist/web/assets/Impact-DiTAOm8k.js +3 -0
  25. package/dist/web/assets/Jobs-DR_mV4Mu.js +5 -0
  26. package/dist/web/assets/KindPage-CLRfAada.js +6 -0
  27. package/dist/web/assets/Migration-DQgCEr0G.js +2 -0
  28. package/dist/web/assets/{Product-BHqJVCMn.js → Product-165KSr60.js} +3 -3
  29. package/dist/web/assets/{Production-GL8lbwxD.js → Production-DoF4CcF-.js} +1 -1
  30. package/dist/web/assets/{Quality-jI3YgvqZ.js → Quality-CEVce0Rs.js} +1 -1
  31. package/dist/web/assets/{Readiness-B3OZ51FG.js → Readiness-DcnpsaAD.js} +1 -1
  32. package/dist/web/assets/Record-B7hLtTK5.js +2 -0
  33. package/dist/web/assets/Regression-BMftRz5h.js +5 -0
  34. package/dist/web/assets/{Reports-BAat71wo.js → Reports-sL20ZyMf.js} +2 -2
  35. package/dist/web/assets/{Response-DjqmewrL.js → Response-C2roHnWk.js} +2 -2
  36. package/dist/web/assets/{RunDiff-BbBom2fJ.js → RunDiff-C0AZaAAA.js} +1 -1
  37. package/dist/web/assets/{Runs-CIQWWRl3.js → Runs-CIgHrNZ7.js} +2 -2
  38. package/dist/web/assets/Steps-GPPeoUP-.js +2 -0
  39. package/dist/web/assets/{TestCases-8BBW6RSi.js → TestCases-xpJiurmK.js} +1 -1
  40. package/dist/web/assets/TestData-D07oKCRW.js +2 -0
  41. package/dist/web/assets/TestDebt-BaXdxqnZ.js +1 -0
  42. package/dist/web/assets/Tosca-BfIh2vCw.js +3 -0
  43. package/dist/web/assets/{WhatsNew-CBS7kmGu.js → WhatsNew-rQKGxI3X.js} +1 -1
  44. package/dist/web/assets/{dataParts-B3Fz4S59.js → dataParts-D9LZxYD6.js} +3 -3
  45. package/dist/web/assets/{families-BiqSaqoO.js → families-DlfXDoO8.js} +1 -1
  46. package/dist/web/assets/filters-NVjc0d8i.js +1 -0
  47. package/dist/web/assets/{fold-b2g0_ndv.js → fold-D1JElpyx.js} +1 -1
  48. package/dist/web/assets/frame-CgFXIaLn.js +4 -0
  49. package/dist/web/assets/index-BoLw7yMm.js +73 -0
  50. package/dist/web/assets/index-RzPHjTCW.css +2 -0
  51. package/dist/web/assets/{logos-DSveGjIW.js → logos-BGd4nsug.js} +1 -1
  52. package/dist/web/assets/{palette-CF8GLAVN.js → palette-BWPcuOsU.js} +1 -1
  53. package/dist/web/assets/{parts-D7OvxdrL.js → parts-W2J4TR3o.js} +1 -1
  54. package/dist/web/assets/{productParts-BDM3LIjp.js → productParts-_8gKGn4o.js} +1 -1
  55. package/dist/web/assets/{qualityParts-DP09bVel.js → qualityParts-9olnn4fj.js} +1 -1
  56. package/dist/web/assets/recordTest-etYNiLQy.js +1 -0
  57. package/dist/web/assets/{rows-B0vZ5x5N.js → rows-BWeaaykT.js} +1 -1
  58. package/dist/web/assets/{segmented-BfWimTC0.js → segmented-B7n6eLrO.js} +1 -1
  59. package/dist/web/assets/{thread-DASfqw-f.js → thread-B8W__QtF.js} +1 -1
  60. package/dist/web/assets/{usePageChat-BLEUldCJ.js → usePageChat-DvfE62rZ.js} +1 -1
  61. package/dist/web/index.html +4 -4
  62. package/docs/ARCHITECTURE.md +5 -0
  63. package/docs/WEB_APP.md +17 -1
  64. package/docs/user-guide.html +59 -2
  65. package/forgeqe.example.yaml +3 -1
  66. package/package.json +1 -1
  67. package/prompts/README.md +1 -0
  68. package/prompts/brain.md +9 -0
  69. package/prompts/business-persona.md +62 -0
  70. package/py/forgeqe_desktop/agentdesktop_driver.py +69 -0
  71. package/py/forgeqe_desktop/boxes.py +32 -0
  72. package/py/forgeqe_desktop/handhooks.py +55 -5
  73. package/py/forgeqe_desktop/pywinauto_driver.py +25 -0
  74. package/py/forgeqe_desktop/service.py +85 -3
  75. package/py/forgeqe_engine/brand.py +3 -0
  76. package/py/forgeqe_engine/browser.py +46 -6
  77. package/py/forgeqe_engine/cli.py +10 -1
  78. package/py/forgeqe_engine/recordsession.py +92 -2
  79. package/py/forgeqe_engine/video.py +423 -0
  80. package/py/forgeqe_mobile/hyperexecute.py +1 -1
  81. package/py/forgeqe_mobile/maestro.py +1 -1
  82. package/py/forgeqe_tosca/vendored.py +3 -2
  83. package/skills/bdd-gherkin/SKILL.md +141 -0
  84. package/skills/bdd-gherkin/references/cucumber-js.md +52 -0
  85. package/skills/bdd-gherkin/references/cucumber-jvm.md +54 -0
  86. package/skills/bdd-gherkin/references/python-bdd.md +50 -0
  87. package/skills/bdd-gherkin/references/reqnroll-specflow.md +83 -0
  88. package/skills/bdd-gherkin/references/review-checklist.md +37 -0
  89. package/skills/bdd-scenario-design/SKILL.md +50 -0
  90. package/skills/dynamics-365/SKILL.md +30 -15
  91. package/skills/dynamics-365-automation/SKILL.md +72 -0
  92. package/skills/dynamics-365-automation/references/elements.md +187 -0
  93. package/skills/dynamics-365-automation/references/recipes.md +97 -0
  94. package/dist/web/assets/Agent-BFwkMMHm.js +0 -4
  95. package/dist/web/assets/ApiTests-Bgt4R_yB.js +0 -10
  96. package/dist/web/assets/Browse-B3YI1MeV.js +0 -2
  97. package/dist/web/assets/Chat-K3kp-ji2.js +0 -3
  98. package/dist/web/assets/CommandPalette-nmLCmEsp.js +0 -1
  99. package/dist/web/assets/Cost-BvCShgln.js +0 -1
  100. package/dist/web/assets/Data-3EEe7vIz.js +0 -6
  101. package/dist/web/assets/Desktop-Drj-7jBV.js +0 -1
  102. package/dist/web/assets/Evidence-D1HiXQK6.js +0 -1
  103. package/dist/web/assets/Impact-huKs-mOc.js +0 -3
  104. package/dist/web/assets/Jobs-BwK79TQ8.js +0 -5
  105. package/dist/web/assets/KindPage-C0MoC9da.js +0 -6
  106. package/dist/web/assets/Migration-CTVyQeqW.js +0 -2
  107. package/dist/web/assets/Record-Yw-SGwQ9.js +0 -2
  108. package/dist/web/assets/Regression-v2dpbgs4.js +0 -5
  109. package/dist/web/assets/Steps-DfNHCe8N.js +0 -2
  110. package/dist/web/assets/TestData-BFkACDve.js +0 -2
  111. package/dist/web/assets/TestDebt-CUcklHEN.js +0 -1
  112. package/dist/web/assets/Tosca-DTWwUJBW.js +0 -3
  113. package/dist/web/assets/desktopAppPath-CMac6aJ0.js +0 -1
  114. package/dist/web/assets/filters-B4VDnWbr.js +0 -1
  115. package/dist/web/assets/frame-D-hqu7Oi.js +0 -4
  116. package/dist/web/assets/index-CtX74khE.js +0 -45
  117. package/dist/web/assets/index-DUf5ddb0.css +0 -2
package/HOW_TO_USE.md CHANGED
@@ -66,6 +66,7 @@ agent:
66
66
  | building blocks, mauve | Agent builder | `forgeqe-agent-builder` | Works out a custom agent with the user: questions, plan, name | No |
67
67
  | an envelope, plum | Bug reporter | `forgeqe-bug-report` | Drafts a defect in ForgeQE itself from the person's words, and asks what it lacks | No |
68
68
  | a database drum, aqua | DB agent | `forgeqe-data` | DB agent: finds or designs the test data other agents ask for before they run | No |
69
+ | a person, head and shoulders, heather | Persona agent | `forgeqe-persona` | Persona agent: drafts a business persona (an SME, an end user, a specialist, a business user) any agent acts as or tests for | No |
69
70
  | a gavel, coral | Judge | `forgeqe-judge` | Judges domain evaluations | No |
70
71
  | a balance, amber | Model profiler | `forgeqe-model-profile` | Rates the configured models for the model router | No |
71
72
  | quote marks, rust | Content judge | `forgeqe-evidence-content` | Reads an agent's answer against what it took in, or against its owner's rubric, quoting what it rests on | No |
@@ -106,20 +107,23 @@ The icons as the shell draws them, each in its agent's colour:
106
107
  █ █ Agent builder █▀▀█ Bug reporter
107
108
  █ █ ▙▟▙▟
108
109
 
109
- ▟██▙ DB agent ▐█▙ Judge
110
- ▚▄▄▞ ▄▖▝▙
110
+ ▟██▙ DB agent ▟▙ Persona agent
111
+ ▚▄▄▞ ▟██▙
111
112
 
112
- ▄▟▙▄ Model profiler █ █ Content judge
113
- ▙▖ ▙ ▞ ▞
113
+ ▐█▙ Judge ▄▟▙▄ Model profiler
114
+ ▄▖▝▙ ▙▖ ▙
114
115
 
115
- ▛▀█▖ Scenario drafter ▀▖▗▀ Knowledge builder
116
- ▙█▄▌ ▄▝▘▄
116
+ █ █ Content judge ▛▀█▖ Scenario drafter
117
+ ▞ ▞ ▙█▄▌
117
118
 
118
- ▗▜▛▖ Investigator ▞▀▀▚ Acceptance reader
119
- ▝▄▄▙ ▙██▟
119
+ ▀▖▗▀ Knowledge builder ▗▜▛▖ Investigator
120
+ ▄▝▘▄ ▝▄▄▙
120
121
 
121
- ▗▚▞▖ Change reader ▛▀▀▜ Browser agent
122
- ▝▞▚▘ ▙▄▄▟
122
+ ▞▀▀▚ Acceptance reader ▗▚▞▖ Change reader
123
+ ▙██▟ ▝▞▚▘
124
+
125
+ ▛▀▀▜ Browser agent
126
+ ▙▄▄▟
123
127
  ```
124
128
  <!-- subagents:end -->
125
129
 
@@ -138,6 +142,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
138
142
  | Test cases | **Write test cases from a story**: Writes test cases from an understanding of the feature, not only a story's acceptance criteria: it reads the feature and epic above the story, their other stories, linked Confluence pages, the RAG service, product knowledge, the app's pages and flows in page memory, and the area's past defects (from earlier runs and the tracker's bugs), then analyses each criterion before it designs cases. Each case names what it covers, and nothing is saved while a criterion has no case or reason. Saves them in Azure DevOps or Jira, linked to the story. Reads the cases already linked first, so asking again adds only what is missing and updates cases in place instead of duplicating them; plans end-to-end journeys from the existing cases. | `story_test_cases`, `save_test_cases`, `link_test_case`, `apply_case_changes`, `trace_criteria`, `requirements_file`, `e2e_journey` | [docs](#where-cases-come-from) |
139
143
  | Test cases | **Domain and regulatory test design**: Every agent works as an expert in the product's industry would, automatically: the risks the industry is known for and the obligations of its regulations and standards (for example DORA, PSD2, GDPR, ISO 27001), declared in forgeqe.yaml or worked out from the story and the application. It applies to analysing requirements, writing and checking test cases, exploration, writing, reviewing, and healing test code, API tests, finding tests, and pull request reviews, labelled so coverage can be traced and citing only the control ids in the team's compliance file. forgeqe eval domain measures how well the agent does it. | | [docs](#16-domain-and-regulations) |
140
144
  | Test cases | **Exploratory testing of a story**: Explores a story in real browsers beyond its scripted cases (edge cases, invalid input, boundaries, roles, state), confirms each defect by reproducing it, proposes test cases, and files bugs once the user agrees. | `explore_story` | [docs](#exploratory-testing-from-a-story) |
145
+ | Test cases | **Business personas for testing**: Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits). The Persona agent drafts a new one from your words; any agent then acts as it in a browser run, designs test cases from what it validates, or reviews a feature through its eyes. Kept in the project for every agent. | `business_persona` | [docs](#business-personas) |
141
146
  | 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) |
142
147
  | 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) |
143
148
  | 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) |
@@ -3898,6 +3903,62 @@ A persona file can come from the repository, so ForgeQE reads it strictly: only
3898
3903
 
3899
3904
  A simulated persona is not a real user, and automated checks find only part of the problems: treat the result as a first pass, and confirm important barriers with people who use assistive technology.
3900
3905
 
3906
+ ### Business personas
3907
+
3908
+ A **business persona** is a person who validates the software the way the business does: a **subject matter expert** (a payments SME who checks refunds, settlement cut-offs and currency rounding), an **end user** (an everyday customer, a first-time user), a **specialist** (a KYC and AML compliance reviewer) or a **business user** (an operations manager with approval limits). Each persona says who the person is, what they want, what they know, and above all **what they check before they accept the software** (`validates`). Any agent can use one:
3909
+
3910
+ - **The Orchestrator** makes personas too ("create a persona of an SME in payments"), with the Persona agent, and acts as a persona in a browser run (the persona's brief goes at the start of the goal), designs test cases from what it validates, or reviews a feature through its eyes: "test the refund flow as a payments SME", "write test cases for checkout as a first-time user".
3911
+ - **Other agents** (`forgeqe mcp` clients such as Claude Code or Copilot, and custom agents) call the `business_persona` tool: `op: list`, `op: get` (the persona and its brief), or `op: create`.
3912
+ - **A person** at a terminal:
3913
+
3914
+ ```bash
3915
+ forgeqe persona # the personas: built in, and the project's
3916
+ forgeqe persona show payments-sme # one persona and the brief agents act on
3917
+ forgeqe persona create "an SME in card payments who reconciles settlements" --domain payments --kind sme [--save]
3918
+ ```
3919
+
3920
+ Built in: `payments-sme` (`/priya`), `retail-customer` (`/sam`), `compliance-specialist` (`/dana`), `operations-manager` (`/lee`), `first-time-user` (`/alex`).
3921
+
3922
+ **Every persona is a command in every agent's chat.** Start a message with it and the task: `/priya Validate the payment change`. It works in the terminal shell (typing `/` suggests the personas with the shell's commands), `forgeqe run "/priya …"`, every chat box of the web app (typing `/` 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 `handle` (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.
3923
+
3924
+ ```bash
3925
+ forgeqe persona export --out personas.json # your own personas, as a file to share
3926
+ forgeqe persona import personas.json # another project's: new ones only, never replacing one here
3927
+ ```
3928
+
3929
+ **Sharing personas:** the Persona agent's page (Personas tab) has Export and Import, and so does `forgeqe persona export|import`. The file is JSON of the personas' fields. An import is checked as strictly as a persona file. The whole file is refused when any persona in it is refused, and a persona whose id or command this project already has is skipped and listed, never replaced.
3930
+
3931
+ **In the web app**, the Persona agent's page (Agents, Persona agent) opens on its **Agent** tab: describe a person in your words ("a compliance officer who reviews every refund over 10,000 EUR") and the agent turns them into a persona in the conversation, shows it, and asks before saving it. **Personas** lists every persona by kind; open one to read what it checks and **Run as this persona**: say what they should try and a chat starts as them. **New persona** has the Persona agent draft one from your words (or write it yourself), lets you change every field, and saves it when you press Save.
3932
+
3933
+ **The Persona agent** (`forgeqe-persona`) drafts a new persona from your words: ask "create a persona of an SME in payments", or `op: create` with `request`. It has no tools and answers in a fixed shape; ForgeQE keeps only the persona's fields, checked. A draft is shown first and saved only when you agree (`--save` asks in a terminal; `save: true` asks in the shell and the web app). It needs a live model; without one, write the persona yourself.
3934
+
3935
+ **Your own personas** are `.forgeqe/business-personas/<id>.yaml`, shared with everyone who uses the repository. Saving one also writes its profile as `<id>.md` beside it, made from its fields, for people and agents that read the project's documents. The YAML is the persona; the `.md` is written again whenever the persona is saved:
3936
+
3937
+ ```yaml
3938
+ id: merchant-onboarding-sme
3939
+ handle: omar # its command in any agent's chat: /omar Validate the merchant onboarding change
3940
+ name: Omar, merchant onboarding SME
3941
+ kind: sme # sme, end_user, specialist, business_user
3942
+ role: Merchant onboarding lead
3943
+ domain: payments
3944
+ expertise: expert # novice, intermediate, expert
3945
+ description: Onboards new merchants and sets their fees and payout schedules.
3946
+ goals:
3947
+ - onboard a merchant in one session
3948
+ knows:
3949
+ - merchant category codes
3950
+ - payout schedules and reserves
3951
+ validates:
3952
+ - a merchant cannot take payments before KYC is approved
3953
+ - the fee shown at onboarding is the fee charged on the first payout
3954
+ frustrations:
3955
+ - having to enter the same company details twice
3956
+ scenarios:
3957
+ - Onboard a merchant and take its first test payment
3958
+ ```
3959
+
3960
+ A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each choice from its list, no YAML aliases, every text one line and clipped, at most 12 items in a list, a regular file only (no link), and a text that reads as an instruction to an agent ("ignore the rules", "run this command") is refused. A persona only describes a person: it never changes what an agent may do. These personas are separate from the accessibility personas (`.forgeqe/personas`), which set how the browser perceives the page.
3961
+
3901
3962
  ### Visual comparison
3902
3963
 
3903
3964
  Every browser run also captures each page it visits and compares it, pixel by pixel, with that page's **approved baseline**:
@@ -4404,7 +4465,7 @@ agents: [browser]
4404
4465
 
4405
4466
  | Source | Folder |
4406
4467
  |--------|--------|
4407
- | Built-in | the `skills/` folder ForgeQE ships: `playwright-typescript`, `dotnet-nunit-playwright` and `testcontainers` (Scribe), `azure-sdk-testing`, `aws-sdk-testing` and `gcp-sdk-testing` (Scribe and ForgeQE's agent), `dynamics-365` (browser), `writing-skills` (ForgeQE's agent) |
4468
+ | Built-in | the `skills/` folder ForgeQE ships: `playwright-typescript`, `dotnet-nunit-playwright`, `bdd-gherkin` and `testcontainers` (Scribe), `bdd-scenario-design` (ForgeQE's agent: asks about Examples, Background and Rule before a BDD test, and passes the answers to `write_test` as `bdd`), `azure-sdk-testing`, `aws-sdk-testing` and `gcp-sdk-testing` (Scribe and ForgeQE's agent), `dynamics-365` (browser), `dynamics-365-automation` (Scribe: D365 control names and locators, steps per control, EasyRepro), `writing-skills` (ForgeQE's agent) |
4408
4469
  | Global, only with `skills.external: true` | `~/.claude/skills`, `~/.agents/skills`, and the repo's `.claude/skills` and `.agents/skills` |
4409
4470
  | User | `~/.forgeqe/skills` (or `$FORGEQE_HOME/skills`) |
4410
4471
  | Project | `.forgeqe/skills` next to `forgeqe.yaml`, and the repo's own `.forgeqe/skills` |
package/README.md CHANGED
@@ -141,7 +141,7 @@ A new goal on a site ForgeQE knows replays the start it shares with an earlier g
141
141
 
142
142
  ## Skills
143
143
 
144
- Skills teach the agents what a prompt can't know: your repo's test conventions, a framework, or how to drive an app. A skill is a folder with a `SKILL.md` (the Agent Skills format: `name`, `description`, then instructions), plus ForgeQE's `agents: [forgeqe, scribe, browser]` to say who uses it. ForgeQE ships `playwright-typescript`, `dotnet-nunit-playwright` and `testcontainers` for Scribe, `azure-sdk-testing`, `aws-sdk-testing` and `gcp-sdk-testing` for Scribe and ForgeQE's agent (code that uses a cloud SDK: emulators first, the default credential chain, cleanup of only what a test made), `dynamics-365` for the browser agent, and `writing-skills` for ForgeQE's agent. Your own go in `.forgeqe/skills` next to `forgeqe.yaml` (commit them) or `~/.forgeqe/skills`; a project skill replaces a built-in one with the same name. Skills in `~/.claude/skills` and `~/.agents/skills` are used only with `skills.external: true`.
144
+ Skills teach the agents what a prompt can't know: your repo's test conventions, a framework, or how to drive an app. A skill is a folder with a `SKILL.md` (the Agent Skills format: `name`, `description`, then instructions), plus ForgeQE's `agents: [forgeqe, scribe, browser]` to say who uses it. ForgeQE ships `playwright-typescript`, `dotnet-nunit-playwright`, `bdd-gherkin` (Reqnroll, SpecFlow, Cucumber, behave and pytest-bdd: Gherkin, step reuse and page objects behind steps) and `testcontainers` for Scribe, `bdd-scenario-design` for ForgeQE's agent (it asks whether you want a Scenario Outline with Examples, a Background or Rule blocks before a feature file is written), `azure-sdk-testing`, `aws-sdk-testing` and `gcp-sdk-testing` for Scribe and ForgeQE's agent (code that uses a cloud SDK: emulators first, the default credential chain, cleanup of only what a test made), `dynamics-365` for the browser agent (D365's own names for its controls: Quick Find, lookups and Advanced lookup, the command bar's More commands, Quick Create, the header flyout, business process flows), `dynamics-365-automation` for Scribe (a catalogue of D365 controls and their stable locators from Microsoft's EasyRepro, steps for each control, page objects, waiting for the app to be idle, and EasyRepro's API), and `writing-skills` for ForgeQE's agent. Your own go in `.forgeqe/skills` next to `forgeqe.yaml` (commit them) or `~/.forgeqe/skills`; a project skill replaces a built-in one with the same name. Skills in `~/.claude/skills` and `~/.agents/skills` are used only with `skills.external: true`.
145
145
 
146
146
  Each agent sees the skills meant for it and loads the ones whose description fits the job. For browser runs, ForgeQE's agent passes the skills a goal needs; in `forgeqe suite`, `monitor` and `run --direct` the engine picks them from the goal once, and `--skill NAME` (or `--skill none`) fixes the list. Reports and `run.json` show which skills a run used.
147
147
 
@@ -177,6 +177,12 @@
177
177
  <p><strong>Step verdicts.</strong> When the goal came from a test case with steps, <code>CASE_REPORT_INSTRUCTION</code> goes into the system prompt and <code>output_model_schema=CaseReport</code> makes the engine library's <code>done</code> action return <code>{summary, steps: [{step, status, actual}]}</code>; <code>history.structured_output</code> becomes <code>case_report</code> in the result. If the Agent rejects the schema, the run continues without it.</p>
178
178
  <p><strong>Finishing and the judge.</strong> <code>_GOAL_VERIFICATION_SYSTEM_MESSAGE</code> is added to every agent's system prompt: <code>done</code> with success only when every field holds exactly what the goal asked for (pre-filled or extra values in multi-value fields removed), every setting the goal names is applied through the page's own controls and shown by the page, and findings are read from the page, items a list already shows are read from it in one step, and a tab that looks blank right after opening is still loading. The engine library's judge (<code>use_judge</code>) is off by default: <code>browser.judge: true</code> (passed to the engine as its judge setting) or <code>FORGEQE_ENGINE_USE_JUDGE=1</code> turns it on, and it then makes one model call over the steps and screenshots. It was turned off because it failed completed runs whose answer came from one screenshot (five result scores) instead of one step per item, and ForgeQE's agent then retried with ever stricter goals. When the agent says success and the judge's verdict is false, the run fails with the judge's <code>failure_reason</code> ahead of the agent's report; the verdict goes into <code>run.json</code> as <code>judge</code>. A judge call that errors leaves the agent's result as it was.</p>
179
179
  <p><strong>Window and video.</strong> <code>window_launch_kwargs</code> sizes a local browser from <code>browser.viewport</code>: the page when headless, the window with <code>browser.window: viewport</code>. Otherwise a visible window opens screen-sized (the engine library's default) and, before the first page, <code>maximize_window</code> sets <code>windowState: maximized</code> over CDP. With <code>browser.video</code> on (the default), the browser is started before the replay or the agent, and <code>start_video</code> starts the library's recording watchdog on <code>&amp;lt;run&gt;/video.mp4</code>; <code>stop_video</code> finishes it before the browser closes, and <code>run_with_events</code> adds it to the run's files. The watchdog encodes Chrome's screencast frames at 30 fps as they arrive, so the video's timing follows how often the page repaints, not the clock. The encoder (<code>browser-use[video]</code>: imageio with ffmpeg, numpy) is installed with the engine, and added to an engine set up before it. The report lists <code>video.mp4</code> among the run's files and plays it on the Artifacts tab.</p>
180
+ <p><strong>Videos of recordings, replays and desktop runs.</strong> These have no browser-use agent, so <code>py/forgeqe_engine/video.py</code> makes their videos itself, with the ffmpeg that the pinned <code>imageio-ffmpeg</code> ships inside the package. It finds that binary in the package's own <code>binaries</code> folder, never on PATH or through <code>IMAGEIO_FFMPEG_EXE</code>, and starts it with an argument list and system settings only. Frames reach ffmpeg on stdin as raw RGB of a fixed size, letterboxed when a picture's size changes, so nothing a page shows reaches its command line. <code>FrameVideo</code> writes in real time at 5 fps, repeating the latest picture while nothing changes, and stops after an hour. A video that could not be finished is removed.</p>
181
+ <ul>
182
+ <li><em>Recording by hand</em> (<code>browser.video</code>): <code>recordsession.py</code> runs the page's screencast over its own DevTools connection, follows the tester from tab to tab, and holds the video while the recording is paused. The file is <code>&amp;lt;run&gt;/video.mp4</code>. Making a typed value a secret in the review removes the recording's videos, since a value cannot be taken out of a video's pictures.</li>
183
+ <li><em>Replays</em> (the <code>forgeqe code</code> replay check, and a recording's re-runs on the Record page): the Playwright runner keeps screencast frames as <code>&amp;lt;ms&gt;.jpg</code>, at most one per tenth of a second, plus a closing screenshot so the video lasts as long as the replay. <code>python -m forgeqe_engine video</code> turns them into <code>replay/&amp;lt;setup&gt;.mp4</code> (<code>src/engine/video.ts</code>) and the frames are removed. A re-run keeps only its last pass's video, as <code>tries/video.mp4</code>. Steps played in a person's own tab (a block) are never filmed; the recording's own video already shows them.</li>
184
+ <li><em>Desktop runs</em> (<code>desktop.video</code>, default on): <code>serve</code> films the main screen with Pillow's <code>ImageGrab</code> while a replay, explore or recording runs, and finishes <code>&amp;lt;run&gt;/video.mp4</code> before <code>run.json</code> is written, so the desktop report plays it. A computer whose screen cannot be read (no display, or macOS without Screen Recording permission) runs without a video and says so.</li>
185
+ </ul>
180
186
  <p><strong>Browser profile.</strong> At the end of the first step (or before writing a trust-mode replay), <code>browser_profile</code> reads how the browser was set up: the engine's driver, channel and executable, headless, the default switches removed, extra HTTP headers (none), <code>Browser.getVersion</code>, and from the page <code>navigator.userAgent</code>, <code>navigator.webdriver</code>, language, time zone, and viewport. It goes into <code>run.json</code> as <code>browser</code>, and the handoff shows it so the coding agent can compare its test's browser with it.</p>
181
187
  <p><strong>Timeline.</strong> <code>build_timeline</code> writes <code>steps.json</code> from the history (and the replayed steps): URL, title, the model's evaluation, memory and next goal, each action with its error, start time (<code>t0</code>) and duration, the part of it spent waiting for the model (<code>model_ms</code>, from wrapping <code>llm.ainvoke</code> and overlapping the calls with the step's <code>step_start_time</code>/<code>step_end_time</code>), and a JPEG of the page (max 1280 wide) under <code>steps/</code>, subject to <code>report.screenshots</code>. Each action on an element carries <code>box</code>: the element's <code>absolute_position</code> from the DOM snapshot the model saw, minus the page's scroll, as fractions of the viewport, so the report can outline it on that step's screenshot. Timeouts, stops, and crashes still write it from the partial history.</p>
182
188
  <p><strong>Diagnostics.</strong> <code>Diagnostics</code> registers <code>Runtime.consoleAPICalled</code>, <code>Runtime.exceptionThrown</code> and <code>Log.entryAdded</code> on the engine library's CDP client (cdp-use allows one handler per event, and the engine library's own watchdogs don't use these three; <code>Network.responseReceived</code> belongs to the downloads watchdog, so failed and slow requests come from the page's resource timing entries, <code>responseStatus</code> and duration, at each sample). It samples at every step start and end and after each replayed step. Each new page (by URL without the hash, up to 25) is checked once: <code>Accessibility.getFullAXTree</code> for unnamed buttons, links, fields and images, heading order and the document title, plus a page script for <code>lang</code>, text contrast (WCAG ratios, skipping text over images) and zoom-blocking viewports, with up to five examples each from <code>DOM.getOuterHTML</code>. A request counts as slow from 3 s. <code>assign_problems</code> attaches each event to the step it happened in (by <code>t0</code>), at most 25 per step; <code>run.json</code> gets the totals as <code>diagnostics</code>, and the pages go to <code>accessibility.json</code>. <code>report.accessibility: false</code> skips the page checks.</p>
@@ -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></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></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-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>
@@ -1512,6 +1512,63 @@ Acceptance criteria:
1512
1512
  </section>
1513
1513
  </div>
1514
1514
  </article>
1515
+ <article class="spec feat" id="cap-business-personas">
1516
+ <div class="hd"><span class="mono">Test cases</span><h3>Business personas for testing</h3></div>
1517
+ <p class="ds">Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits). The Persona agent drafts a new one from your words; any agent then acts as it in a browser run, designs test cases from what it validates, or reviews a feature through its eyes. Kept in the project for every agent.</p>
1518
+ <div class="facts">
1519
+ <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create a persona of an SME in payments</li><li>Test the refund flow as a payments SME</li><li>Make a business persona for an operations manager who approves orders</li><li>Which business personas do we have?</li></ul></div>
1520
+ <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>
1521
+ <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A persona is a description for agents to act on, not a real user: its checks come from its validates list and the domain the model knows</li><li>Saved only after you agree, as .forgeqe/business-personas/&lt;id&gt;.yaml; a persona never changes what an agent may do</li></ul></div>
1522
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>business_persona</code></p></div>
1523
+ </div>
1524
+ <div class="detail"><span class="mono">In detail</span>
1525
+ <section class="doc" id="doc-how_to_use-business-personas">
1526
+ <h4>Business personas</h4>
1527
+ <div class="prose"><p>A <strong>business persona</strong> is a person who validates the software the way the business does: a <strong>subject matter expert</strong> (a payments SME who checks refunds, settlement cut-offs and currency rounding), an <strong>end user</strong> (an everyday customer, a first-time user), a <strong>specialist</strong> (a KYC and AML compliance reviewer) or a <strong>business user</strong> (an operations manager with approval limits). Each persona says who the person is, what they want, what they know, and above all <strong>what they check before they accept the software</strong> (<code>validates</code>). Any agent can use one:</p>
1528
+ <ul>
1529
+ <li><strong>The Orchestrator</strong> makes personas too (&quot;create a persona of an SME in payments&quot;), with the Persona agent, and acts as a persona in a browser run (the persona's brief goes at the start of the goal), designs test cases from what it validates, or reviews a feature through its eyes: &quot;test the refund flow as a payments SME&quot;, &quot;write test cases for checkout as a first-time user&quot;.</li>
1530
+ <li><strong>Other agents</strong> (<code>forgeqe mcp</code> clients such as Claude Code or Copilot, and custom agents) call the <code>business_persona</code> tool: <code>op: list</code>, <code>op: get</code> (the persona and its brief), or <code>op: create</code>.</li>
1531
+ <li><strong>A person</strong> at a terminal:</li>
1532
+ </ul>
1533
+ <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 # the personas: built in, and the project's
1534
+ forgeqe persona show payments-sme # one persona and the brief agents act on
1535
+ forgeqe persona create &quot;an SME in card payments who reconciles settlements&quot; --domain payments --kind sme [--save]
1536
+ </code></pre></div>
1537
+ <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>).</p>
1538
+ <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>
1539
+ <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
1540
+ forgeqe persona import personas.json # another project's: new ones only, never replacing one here
1541
+ </code></pre></div>
1542
+ <p><strong>Sharing personas:</strong> the Persona agent's page (Personas tab) has Export and Import, and so does <code>forgeqe persona export|import</code>. The file is JSON of the personas' fields. An import is checked as strictly as a persona file. The whole file is refused when any persona in it is refused, and a persona whose id or command this project already has is skipped and listed, never replaced.</p>
1543
+ <p><strong>In the web app</strong>, the Persona agent's page (Agents, Persona agent) opens on its <strong>Agent</strong> tab: describe a person in your words (&quot;a compliance officer who reviews every refund over 10,000 EUR&quot;) and the agent turns them into a persona in the conversation, shows it, and asks before saving it. <strong>Personas</strong> lists every persona by kind; open one to read what it checks and <strong>Run as this persona</strong>: say what they should try and a chat starts as them. <strong>New persona</strong> has the Persona agent draft one from your words (or write it yourself), lets you change every field, and saves it when you press Save.</p>
1544
+ <p><strong>The Persona agent</strong> (<code>forgeqe-persona</code>) drafts a new persona from your words: ask &quot;create a persona of an SME in payments&quot;, or <code>op: create</code> with <code>request</code>. It has no tools and answers in a fixed shape; ForgeQE keeps only the persona's fields, checked. A draft is shown first and saved only when you agree (<code>--save</code> asks in a terminal; <code>save: true</code> asks in the shell and the web app). It needs a live model; without one, write the persona yourself.</p>
1545
+ <p><strong>Your own personas</strong> are <code>.forgeqe/business-personas/&lt;id&gt;.yaml</code>, shared with everyone who uses the repository. Saving one also writes its profile as <code>&lt;id&gt;.md</code> beside it, made from its fields, for people and agents that read the project's documents. The YAML is the persona; the <code>.md</code> is written again whenever the persona is saved:</p>
1546
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>id: merchant-onboarding-sme
1547
+ handle: omar # its command in any agent's chat: /omar Validate the merchant onboarding change
1548
+ name: Omar, merchant onboarding SME
1549
+ kind: sme # sme, end_user, specialist, business_user
1550
+ role: Merchant onboarding lead
1551
+ domain: payments
1552
+ expertise: expert # novice, intermediate, expert
1553
+ description: Onboards new merchants and sets their fees and payout schedules.
1554
+ goals:
1555
+ - onboard a merchant in one session
1556
+ knows:
1557
+ - merchant category codes
1558
+ - payout schedules and reserves
1559
+ validates:
1560
+ - a merchant cannot take payments before KYC is approved
1561
+ - the fee shown at onboarding is the fee charged on the first payout
1562
+ frustrations:
1563
+ - having to enter the same company details twice
1564
+ scenarios:
1565
+ - Onboard a merchant and take its first test payment
1566
+ </code></pre></div>
1567
+ <p>A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each choice from its list, no YAML aliases, every text one line and clipped, at most 12 items in a list, a regular file only (no link), and a text that reads as an instruction to an agent (&quot;ignore the rules&quot;, &quot;run this command&quot;) is refused. A persona only describes a person: it never changes what an agent may do. These personas are separate from the accessibility personas (<code>.forgeqe/personas</code>), which set how the browser perceives the page.</p>
1568
+ </div>
1569
+ </section>
1570
+ </div>
1571
+ </article>
1515
1572
  </section>
1516
1573
  <section class="chapter" id="area-setup" aria-labelledby="area-setup-h">
1517
1574
  <header class="chead"><img class="pix pix--chapter" src="../img/icons/healer.svg" alt="" width="40" height="40"><span class="mono">06</span><h2 id="area-setup-h">Setup</h2><p>Configuration, skills, and help</p></header>
@@ -2139,7 +2196,7 @@ agents: [browser]
2139
2196
  <tr><th>Source</th><th>Folder</th></tr>
2140
2197
  </thead>
2141
2198
  <tbody>
2142
- <tr><td>Built-in</td><td>the <code>skills/</code> folder ForgeQE ships: <code>playwright-typescript</code>, <code>dotnet-nunit-playwright</code> and <code>testcontainers</code> (Scribe), <code>azure-sdk-testing</code>, <code>aws-sdk-testing</code> and <code>gcp-sdk-testing</code> (Scribe and ForgeQE's agent), <code>dynamics-365</code> (browser), <code>writing-skills</code> (ForgeQE's agent)</td></tr>
2199
+ <tr><td>Built-in</td><td>the <code>skills/</code> folder ForgeQE ships: <code>playwright-typescript</code>, <code>dotnet-nunit-playwright</code>, <code>bdd-gherkin</code> and <code>testcontainers</code> (Scribe), <code>bdd-scenario-design</code> (ForgeQE's agent: asks about Examples, Background and Rule before a BDD test, and passes the answers to <code>write_test</code> as <code>bdd</code>), <code>azure-sdk-testing</code>, <code>aws-sdk-testing</code> and <code>gcp-sdk-testing</code> (Scribe and ForgeQE's agent), <code>dynamics-365</code> (browser), <code>dynamics-365-automation</code> (Scribe: D365 control names and locators, steps per control, EasyRepro), <code>writing-skills</code> (ForgeQE's agent)</td></tr>
2143
2200
  <tr><td>Global, only with <code>skills.external: true</code></td><td><code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the repo's <code>.claude/skills</code> and <code>.agents/skills</code></td></tr>
2144
2201
  <tr><td>User</td><td><code>~/.forgeqe/skills</code> (or <code>$FORGEQE_HOME/skills</code>)</td></tr>
2145
2202
  <tr><td>Project</td><td><code>.forgeqe/skills</code> next to <code>forgeqe.yaml</code>, and the repo's own <code>.forgeqe/skills</code></td></tr>