@capagents/forgeqe 3.0.2 → 3.0.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 (155) hide show
  1. package/HOW_TO_USE.md +190 -189
  2. package/README.md +12 -12
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/dist/docs-site/architecture-map/index.html +6 -6
  5. package/dist/docs-site/docs/architecture/index.html +31 -31
  6. package/dist/docs-site/docs/containers/index.html +9 -10
  7. package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
  8. package/dist/docs-site/docs/desktop/index.html +8 -10
  9. package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
  10. package/dist/docs-site/docs/graphify/index.html +1 -1
  11. package/dist/docs-site/docs/index.html +214 -165
  12. package/dist/docs-site/docs/mobile/index.html +6 -6
  13. package/dist/docs-site/docs/model-routing/index.html +58 -10
  14. package/dist/docs-site/docs/product-graph/index.html +3 -3
  15. package/dist/docs-site/docs/product-views/index.html +1 -1
  16. package/dist/docs-site/docs/search.js +1 -1
  17. package/dist/docs-site/docs/web-app/index.html +6 -6
  18. package/dist/forgeqe.js +1854 -1823
  19. package/dist/template.html +69 -69
  20. package/dist/web/assets/Agent-CKlqZ4Eq.js +8 -0
  21. package/dist/web/assets/ApiTests-MARHrxdT.js +10 -0
  22. package/dist/web/assets/Browse-B2QYflth.js +2 -0
  23. package/dist/web/assets/Chat-DRkmiF4r.js +5 -0
  24. package/dist/web/assets/{CommandPalette-Dkb2OOQX.js → CommandPalette-DMpA8mBk.js} +1 -1
  25. package/dist/web/assets/{Compare-Esy5n-kR.js → Compare-DD1mmRB4.js} +1 -1
  26. package/dist/web/assets/Cost-B6BCZIxQ.js +1 -0
  27. package/dist/web/assets/Data-CpKR98gM.js +6 -0
  28. package/dist/web/assets/{Desktop-CsEWht_F.js → Desktop-xUqFsJPz.js} +1 -1
  29. package/dist/web/assets/{DesktopReview-BUfM70Ju.js → DesktopReview-CnLC9yMR.js} +1 -1
  30. package/dist/web/assets/{Evidence-DEDtYoZr.js → Evidence-CWcZvoOu.js} +1 -1
  31. package/dist/web/assets/{Explore-AXLdkUHT.js → Explore-DuDQqmEn.js} +2 -2
  32. package/dist/web/assets/{Features-DcDbE20H.js → Features-BJTX7utr.js} +1 -1
  33. package/dist/web/assets/{Flags-CSKvhaye.js → Flags-BeG_gA9O.js} +2 -2
  34. package/dist/web/assets/{Flaky-B48EUqK0.js → Flaky-DulQuBGi.js} +1 -1
  35. package/dist/web/assets/Impact-BvGp2rYG.js +3 -0
  36. package/dist/web/assets/Jobs-BXqBtH8C.js +5 -0
  37. package/dist/web/assets/KindPage-BGEobnS3.js +6 -0
  38. package/dist/web/assets/Migration-D1JVUQM0.js +2 -0
  39. package/dist/web/assets/{Product-CDAzt1hG.js → Product-Y1dUpFfW.js} +2 -2
  40. package/dist/web/assets/{Production-sUNlZeSF.js → Production-DY9Gddm8.js} +1 -1
  41. package/dist/web/assets/{Quality-C9Z0FYjK.js → Quality-B7M1Zna2.js} +1 -1
  42. package/dist/web/assets/{Readiness-Qse6Oxo-.js → Readiness-BtQ8RbJh.js} +1 -1
  43. package/dist/web/assets/Record-W7ojjKNu.js +2 -0
  44. package/dist/web/assets/Regression-eV2N8m2P.js +5 -0
  45. package/dist/web/assets/{RelationGraph-CV8NXesZ.js → RelationGraph-C7K_BfEF.js} +1 -1
  46. package/dist/web/assets/{Reports-C4U0fIue.js → Reports-D4v66mJR.js} +2 -2
  47. package/dist/web/assets/Response-B_2R4FjH.js +4 -0
  48. package/dist/web/assets/{RunDiff-DUREV_nk.js → RunDiff-Br5uN0Gu.js} +1 -1
  49. package/dist/web/assets/Runs-DvjM0xfG.js +2 -0
  50. package/dist/web/assets/{Steps-Bt1rmBc3.js → Steps-DULf0k5w.js} +1 -1
  51. package/dist/web/assets/{TestCases-CVSJIPFl.js → TestCases-Dc6bjNO5.js} +1 -1
  52. package/dist/web/assets/TestData-DWPcmhz4.js +2 -0
  53. package/dist/web/assets/{TestDebt-D5NgM75J.js → TestDebt-BpYav19x.js} +1 -1
  54. package/dist/web/assets/Tosca-Bw-j_W-Q.js +3 -0
  55. package/dist/web/assets/{WhatsNew-BtwiaM4Q.js → WhatsNew-CRaJjaut.js} +1 -1
  56. package/dist/web/assets/agentLink-Dxy-IYQv.js +1 -0
  57. package/dist/web/assets/{dataParts-CxOVAp8R.js → dataParts-Bwh_DOs0.js} +1 -1
  58. package/dist/web/assets/{families-BLmK1isi.js → families-C47Nrp6j.js} +1 -1
  59. package/dist/web/assets/filters-Ca7by1u0.js +1 -0
  60. package/dist/web/assets/{fold-GeY4MiIu.js → fold-Bd5-4sjR.js} +1 -1
  61. package/dist/web/assets/frame-BliO67Wd.js +18 -0
  62. package/dist/web/assets/index-B1U2Jkz_.js +67 -0
  63. package/dist/web/assets/index-Ce2EYROA.css +2 -0
  64. package/dist/web/assets/{logos-COH9UQgY.js → logos-CgYEz85j.js} +1 -1
  65. package/dist/web/assets/{markdown-DoF5NaZz.js → markdown-DSp3tP8i.js} +5 -5
  66. package/dist/web/assets/{paletteCommands-BlCwQKjX.js → paletteCommands-CGFwmBxN.js} +1 -1
  67. package/dist/web/assets/{parts-Bx4MyFXM.js → parts-DlmbVDzO.js} +1 -1
  68. package/dist/web/assets/{productParts-DTtbe-g-.js → productParts-CL2tDIGF.js} +1 -1
  69. package/dist/web/assets/{qualityParts-DbH_PNDs.js → qualityParts-Bs34Dzva.js} +1 -1
  70. package/dist/web/assets/recordTest-DHsT3pOe.js +1 -0
  71. package/dist/web/assets/{rows-vliRYT-Z.js → rows-Baid_ASt.js} +1 -1
  72. package/dist/web/assets/{segmented-Bisag9SK.js → segmented-D0PvwMW_.js} +1 -1
  73. package/dist/web/assets/{usePageChat-B-4sWqvn.js → usePageChat-lmgkgnb4.js} +1 -1
  74. package/dist/web/index.html +5 -5
  75. package/docs/ARCHITECTURE.md +30 -30
  76. package/docs/BUSINESS_ASSURANCE.md +7 -7
  77. package/docs/CONTAINERS.md +8 -10
  78. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
  79. package/docs/DESKTOP.md +8 -10
  80. package/docs/GRAPHIFY.md +1 -1
  81. package/docs/MOBILE.md +6 -6
  82. package/docs/MODEL_ROUTING.md +57 -9
  83. package/docs/PRODUCT_KNOWLEDGE.md +3 -3
  84. package/docs/PRODUCT_VIEWS.md +1 -1
  85. package/docs/WEB_APP.md +6 -6
  86. package/docs/demo-qi-commerce.md +30 -30
  87. package/docs/feature-test-prompts.md +3 -3
  88. package/docs/prompts/graphify-evidence.md +3 -3
  89. package/docs/security-data-flow.html +23 -23
  90. package/docs/user-guide.html +214 -165
  91. package/docs/walkthrough/hotfix-narration.md +19 -19
  92. package/docs/walkthrough/index.html +26 -26
  93. package/env.example.yaml +1 -1
  94. package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
  95. package/forgeqe-architecture.html +48 -48
  96. package/forgeqe.example.yaml +16 -10
  97. package/package.json +1 -1
  98. package/prompts/README.md +7 -7
  99. package/prompts/agent-builder.md +1 -1
  100. package/prompts/api-tests.md +1 -1
  101. package/prompts/brain.md +10 -4
  102. package/prompts/business-interview.md +3 -3
  103. package/prompts/business-persona.md +3 -3
  104. package/prompts/business-strategist.md +1 -1
  105. package/prompts/db-agent.md +3 -3
  106. package/prompts/doc-reader.md +2 -2
  107. package/prompts/heal.md +1 -1
  108. package/prompts/knowledge-agent.md +3 -3
  109. package/prompts/model-profile.md +1 -1
  110. package/prompts/page-differs.md +1 -1
  111. package/prompts/persona-own.md +3 -3
  112. package/prompts/talk.md +5 -4
  113. package/prompts/test-agent.md +2 -2
  114. package/prompts/test-plan.md +2 -2
  115. package/prompts/tosca-assistant.md +1 -1
  116. package/py/forgeqe_engine/copilot_gateway.py +1 -1
  117. package/py/forgeqe_engine/memory.py +48 -2
  118. package/py/forgeqe_engine/recordsession.py +31 -1
  119. package/py/forgeqe_engine/video.py +104 -20
  120. package/py/forgeqe_engine/webrecord_page.py +88 -7
  121. package/py/forgeqe_tosca/__init__.py +2 -2
  122. package/py/forgeqe_tosca/render.py +1 -1
  123. package/py/forgeqe_tosca/tsu.py +2 -2
  124. package/py/forgeqe_voice/worker.py +10 -2
  125. package/skills/playwright-automation/SKILL.md +102 -0
  126. package/skills/playwright-automation/references/dotnet.md +90 -0
  127. package/skills/playwright-automation/references/java.md +41 -0
  128. package/skills/playwright-automation/references/python.md +42 -0
  129. package/skills/playwright-automation/references/typescript.md +54 -0
  130. package/skills/test-data/SKILL.md +1 -1
  131. package/skills/writing-skills/SKILL.md +2 -2
  132. package/dist/web/assets/Agent-CNIwgz9P.js +0 -8
  133. package/dist/web/assets/ApiTests-CuflKFaz.js +0 -10
  134. package/dist/web/assets/Browse-D6cvDJW3.js +0 -2
  135. package/dist/web/assets/Chat-BwlScUXP.js +0 -5
  136. package/dist/web/assets/Cost-BIoJmbfg.js +0 -1
  137. package/dist/web/assets/Data-3Q5bGxT5.js +0 -6
  138. package/dist/web/assets/Impact-BTLqgWf6.js +0 -3
  139. package/dist/web/assets/Jobs-C2UViADN.js +0 -5
  140. package/dist/web/assets/KindPage-DBWC-d0o.js +0 -6
  141. package/dist/web/assets/Migration-TR5UJVZD.js +0 -2
  142. package/dist/web/assets/Record-BPd38INk.js +0 -2
  143. package/dist/web/assets/Regression-Brk_1yqk.js +0 -5
  144. package/dist/web/assets/Response-B1iCzkHo.js +0 -4
  145. package/dist/web/assets/Runs-B--vjy7q.js +0 -2
  146. package/dist/web/assets/TestData-_sZDpddH.js +0 -2
  147. package/dist/web/assets/Tosca-BcfNYUdZ.js +0 -3
  148. package/dist/web/assets/agentLink-BD93RYQ0.js +0 -1
  149. package/dist/web/assets/filters-YzD0tZES.js +0 -1
  150. package/dist/web/assets/frame-CaTNV7DF.js +0 -18
  151. package/dist/web/assets/index-9ELkRoKH.js +0 -67
  152. package/dist/web/assets/index-B_mKjNAi.css +0 -2
  153. package/dist/web/assets/recordTest-Brs1Sw9O.js +0 -1
  154. package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
  155. package/skills/playwright-typescript/SKILL.md +0 -36
@@ -1,6 +1,6 @@
1
1
  # ForgeQE CLI architecture
2
2
 
3
- Three processes. The Bun CLI owns the shell, config, profiles, and ForgeQE's tools. ForgeQE's agent runs on the agent runtime, reads each request, and calls those tools over MCP. Scribe, the coding agent, runs on the same runtime and writes, heals, and reviews tests. A Python engine drives Chrome; three more drive Windows apps (`py/forgeqe_desktop`, on UFO² and pywinauto), Android and iOS apps (`py/forgeqe_mobile`, on Appium and Maestro), and the team's databases (`py/forgeqe_data`, on SQLAlchemy, sqlglot and DB-GPT, in its own environment). There is no FastAPI server, and ForgeQE keeps no database of its own: the databases it reads, and writes to when one is marked writable and the user confirms, are the ones `databases:` names.
3
+ Three processes. The Bun CLI owns the shell, config, profiles, and ForgeQE's tools. ForgeQE's agent runs on the agent runtime, reads each request, and calls those tools over MCP. Quill, the coding agent, runs on the same runtime and writes, heals, and reviews tests. A Python engine drives Chrome; three more drive Windows apps (`py/forgeqe_desktop`, on UFO² and pywinauto), Android and iOS apps (`py/forgeqe_mobile`, on Appium and Maestro), and the team's databases (`py/forgeqe_data`, on SQLAlchemy, sqlglot and DB-GPT, in its own environment). There is no FastAPI server, and ForgeQE keeps no database of its own: the databases it reads, and writes to when one is marked writable and the user confirms, are the ones `databases:` names.
4
4
 
5
5
  The single-view map of subagents, tools, and capabilities is [`forgeqe-architecture.html`](../forgeqe-architecture.html) (`forgeqe docs --open`). Suite `report.html` includes the browser agent's token counts, and a cost in the machine's currency when the profile has a price.
6
6
 
@@ -9,7 +9,7 @@ The single-view map of subagents, tools, and capabilities is [`forgeqe-architect
9
9
  │ OpenTUI shell or forgeqe run --plain │ MCP │ Agent runtime │
10
10
  │ config, llms.json profile, /stop, transcript │◄──────►│ "forgeqe" agent: decides, │
11
11
  │ ForgeQE tools (src/mcp), 127.0.0.1 + token │ HTTP │ edits files, runs commands │
12
- │ write_test / heal_tests open Scribe sessions │ │ Scribe: writes, heals, and │
12
+ │ write_test / heal_tests open Quill sessions │ │ Quill: writes, heals, and │
13
13
  │ │ │ reviews tests in your repo │
14
14
  └─────────────────────┬─────────────────────────┘ └──────────────────────────────┘
15
15
  stdin: request JSON, later "stop"
@@ -100,7 +100,7 @@ A passed run becomes a test, so the run records the path that worked, checked wh
100
100
 
101
101
  **Checks with their element.** `record_check` finds the smallest visible element showing the text and the section it sits in, each with verified locators (`element`, `container` in `workflow.yaml` `checks`), and takes `dynamic` for live data (today's date, a price, a count).
102
102
 
103
- The handoff lists the path with ✓ on verified locators, says how many actions were left out, gives each check its locator and section, and leaves out page memory when every step and check is verified. Scribe is told to use ✓ locators as given and not to look for those elements again.
103
+ The handoff lists the path with ✓ on verified locators, says how many actions were left out, gives each check its locator and section, and leaves out page memory when every step and check is verified. Quill is told to use ✓ locators as given and not to look for those elements again.
104
104
 
105
105
  ## Page memory (`memory.py`, `replay.py`)
106
106
 
@@ -108,7 +108,7 @@ Files under `memory.dir` (default `.forgeqe/memory` next to `forgeqe.yaml`, or `
108
108
 
109
109
  - `pages/<host>/<path>.json`: one per page template. The key is host (plus port) and path; segments that are numbers or look generated become `*`, and the query string is dropped. Each element stores tag, role, accessible name, text, stable attributes (never `value`), its locators, `best`, `confidence`, visit and use counts, and `first_seen` / `last_seen` / `last_used` / `last_updated`. Pages keep at most 400 elements; past that, elements never used and least recently seen go first.
110
110
  - `flows/<goal>-<hash>.json`: keyed by the normalised goal and start URL. It holds the steps of the last successful run, each with the element's top locators and a fingerprint, plus pass, fail, and replay counts.
111
- - `scribe-notes.json`: written by the coding side (`src/code/notes.ts`), not the engine: per repository, Scribe's notes from its reading turn and the tests jobs wrote there.
111
+ - `scribe-notes.json`: written by the coding side (`src/code/notes.ts`), not the engine: per repository, Quill's notes from its reading turn and the tests jobs wrote there.
112
112
 
113
113
  **Observe.** Before each agent step, `_on_new_step` passes the engine library's `selector_map` (`EnhancedDOMTreeNode`s) to `MemoryStore.observe`. For every element it builds the locator candidates, counts how many elements on the page each one matches, and merges them into the page file. An element keeps its identity across visits through a strong locator (test id, id, name, role, label, placeholder, href), then its XPath, then a hash of tag and anchor text. An XPath match counts only when the role and accessible name (or text) agree too, because sites reuse one popup container for different widgets; an element whose label changed becomes a new entry. When replay resolves a step on a different entry than the one recorded, `record_stale` marks the recorded entry's dead locators as missed and failed, and the flow is saved against the new entry. `flow_step` lists the locators that matched on the page at that moment ahead of those only seen on earlier visits.
114
114
 
@@ -211,12 +211,12 @@ Every model call carries the definitions of the tools the agent has, so the agen
211
211
 
212
212
  The tools stay registered with the agent runtime for the whole session; only the switches change, so the conversation is never restarted. `tests/scope.test.ts` covers routing, gating, sticky turns, config, hostile ids, and the MCP list change. `tests/brain.e2e.test.ts` checks against the real agent runtime that a turn sees only its tools and that `use_capabilities` continues the request.
213
213
 
214
- ## Scribe, the coding agent (`src/code`)
214
+ ## Quill, the coding agent (`src/code`)
215
215
 
216
216
  The test-writing loop used by `forgeqe code`, by `forgeqe suite` with a repo, and by the `write_test` tool, which is how ForgeQE's agent writes tests in the shell and `forgeqe run`. It uses the agent runtime SDK and the runtime binary that `code/runtime.ts` finds.
217
217
 
218
218
  ```
219
- run dir ──► handoff.ts ──► handoff.md ──► Scribe session (forgeqe-test agent) ─► test file + command
219
+ run dir ──► handoff.ts ──► handoff.md ──► Quill session (forgeqe-test agent) ─► test file + command
220
220
  ▲ │
221
221
  ├──── fix prompt: exit code + output ◄── testrun.ts (ForgeQE runs it, watches for a browser)
222
222
  │ │ exit 0 with a browser
@@ -227,16 +227,16 @@ run dir ──► handoff.ts ──► handoff.md ──► Scribe session (forg
227
227
  |--------|----------|
228
228
  | `handoff.ts` | Builds `handoff.md` from `run.json`, `workflow.yaml`, and the page-memory files for every page the run visited: the result and final URL labelled as one run's live data, the judge's reasoning, the browser the run used (`run.json` `browser`), steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step (`process.env.NAME` for secrets), best and ranked locators with confidence (at most `MAX_LOCATORS` = 4, under `MIN_CONFIDENCE` = 30% dropped unless nothing else is left), and a table of each page's other elements (up to `MAX_ELEMENTS` = 8 of `MAX_PAGES` = 4 pages; elements whose best locator a step used are left out, the rest need an interaction or 70% confidence; no table when nothing is left; the table is skipped when a replay pass has page snapshots), and the browser agent's checks (`workflow.yaml` `checks`), each with the locator the replay matched on the last page when the counts agree |
229
229
  | `prompt.ts` | `TEST_RULES` (shared with healing: browser set up like ForgeQE's, the debugging steps when the test's page differs, generic page objects, data in tests, rules not values, pop-ups handled wherever they appear, every A/B version of a page handled), the test agent's system prompt (start from the notes, port the replay script, assert the handoff's checks and nothing else, never guess locators, reuse and extend page objects, do not run the test: ForgeQE runs it; look at the live page with the `live_browser_*` tools once a step has failed), the result JSON schema (`status`, `blocked_reason`, `remote_browser`, `test_file`, `command`, `reused`, `changed`, `notes`), and the prepare prompt (notes of at most 25 lines), the first (with the repo notes, naming the live browser's output folder when it is on), fix (the short output plus the saved log and page snapshot), missing-command, no-browser, blocked-challenge, stall, and review-fix prompts |
230
- | `review.ts` | The `forgeqe-review` agent: prompt, `REVIEW_SCHEMA` (`approved`, `summary`, `issues[{file, problem, fix}]`), and `openReviewer`, a second, read-only Scribe session opened on the first passing run and kept for later attempts. `reviewPrompt` inlines the checks from the handoff and the changed files (`changedFiles`: up to 12 KB each, 40 KB in all), so the reviewer reads nothing again. It may load Scribe's skills and judges the test against their conventions too |
230
+ | `review.ts` | The `forgeqe-review` agent: prompt, `REVIEW_SCHEMA` (`approved`, `summary`, `issues[{file, problem, fix}]`), and `openReviewer`, a second, read-only Quill session opened on the first passing run and kept for later attempts. `reviewPrompt` inlines the checks from the handoff and the changed files (`changedFiles`: up to 12 KB each, 40 KB in all), so the reviewer reads nothing again. It may load Quill's skills and judges the test against their conventions too |
231
231
  | `runtime.ts` | Maps the `llms.json` profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With `resume`, `openSession` reopens that session with `session.get` (the runtime keeps sessions on disk, so their messages survive a restart) and sets `resumed`; when it is gone, a new one is created. `FailedCommands` counts each exact shell command the agent runs that exits non-zero; at `stallAfter` failures of one command the turn is aborted and `prompt()` returns `stalled` (`command`, `count`, the last 40 lines of output). `resetStall()` clears the counts `READ_AGENT` (`forgeqe-read`) has the test agent's instructions with `edit` and `live_*` denied; the config builder takes it in `agents`, and a prompt picks it with `agent`. `PromptOptions` also carries `structured` (off: no JSON answer) and `tools` (per-prompt switches, used only for `live_*`: the agent runtime keeps them for later prompts, and `true` would override the agent's path rules for file tools) |
232
232
  | `livebrowser.ts` | `liveBrowser(runDir)`: the `live` MCP server for the agent, Microsoft's Playwright MCP (`npx -y @playwright/mcp@0.0.84 --config …`), with a config written to `<run>/live-browser/config.json` from `run.json` `browser` (channel or executable, headless, viewport, locale, time zone, user agent) and snapshots and screenshots saved in that folder. `null` without `npx`. The loop switches its tools (`live_*`) on per prompt once a step fails |
233
233
  | `pagefacts.ts` | What a step met that a test handles differently: `frameSelector` for a step's frame, `isAdStep` (an ad host's frame, or `#google_vignette`), and `AD_HOSTS` / `AD_ROUTE` for blocking them. `handoff.ts` renders `covered_by`, `bypass` and `frame` under each step and adds "What covered the page before a click", "Ads on these pages", and "State the run started with" (from `run.json` `sessions_restored`); `replay.ts` skips ad steps and reaches frame steps through `frameLocator` |
234
234
  | `replay.ts` | The replay check. `replayScript(steps)` turns `workflow.yaml` into `flow.mjs`, one `step(n, action, run)` per recorded step, with each locator rebuilt from its type and value (`locatorExpr`), text typed with `pressSequentially`, secrets read with `env(NAME)` and one-time codes made with `totp(NAME)`; actions with no Playwright equivalent are marked "not replayed". `alternatives.mjs` holds each step's other locators. `ensurePlaywright` installs `playwright-core` (`PLAYWRIGHT_VERSION`) with Bun into `~/.forgeqe/tools` and removes older versions. `replayRun` writes a runner that launches the run's browser (`replayOptions`: channel or executable, headless, viewport, locale, time zone, user agent, extra headers), runs each step with a 10 s timeout, keeps an aria snapshot of each page after each step that worked (by host and path, the latest one; the final page's taken once two snapshots a second apart agree, up to 6 s, since a page can change its URL at once and re-render later) and writes them as `<setup>-page-N.aria.yml` in `ReplayPass.pages`, and on a failure saves a screenshot and an aria snapshot, counts the other locators' matches, and records console errors, failed requests, and HTTP errors; three failures in a row stop it. It runs under Bun with the session logins' env, 180 s per pass. The first pass uses Playwright's default launch; if it does not reach the run's final page (host and path), a second pass leaves out `--enable-automation` and adds `--disable-blink-features=AutomationControlled`. `replaySection` renders the handoff section (the page snapshots listed; a pass whose failed steps were followed by steps that all worked and that reached the final page, `reachedPastFailures`, reads as a working script with those steps to judge, and `replayFailed` is false for it so the live browser stays off): each pass, the failed steps with Playwright's reason, the page, the open dialogs from the snapshot, the other locators' matches, and the saved files, and the launch settings to copy when only the second pass got through. After the last step the runner looks up each recorded check on the page (`findCheck`: a visible exact heading, then exact text, then a looser heading or text, then a form field holding the value) and returns its locator, match count, and up to 3 containers in `ReplayPass.checks`; for a heading match, `sectionOf` adds `section` (the element `aria-labelledby` the heading, else the `section`/`article`/region it heads, else the element after it or after its only-child wrapper) with a stable locator (test id, id, or `aria-label`, else empty) and its visible link and list item counts |
235
235
  | `testrun.ts` | Runs the reported command with `sh -c` in the repo (`CI=1`, `PLAYWRIGHT_HTML_OPEN=never`, no colour), with a timeout. `promptOutput` makes the prompt's copy of a failed run: `withoutPageDumps` takes out each "Aria snapshot:" block Playwright puts in a failed assertion, then `headAndTail` keeps the first 8 KB and the last 4 KB; the full output goes to `<run>/test-runs/attempt-N.log` and the first page dump to `attempt-N-page.aria.yml`. While it runs it samples the process tree (`ps -A -o pid=,ppid=,args=` every 250 ms; `Win32_Process` every 1.5 s on Windows) for browsers at or below the command that carry an automation switch (`--remote-debugging-pipe`, `--remote-debugging-port`, `-juggler-pipe`, `--inspector-pipe`, `-marionette`) and returns them as `browsers` |
236
- | `loop.ts` (retries) | Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a `Tried` entry: Scribe's `tried` items from its result (else its notes), the failure, and `failureFacts` of the output (the last "waiting for" locator of Playwright's call log, and the element that "intercepts pointer events"), with `again` when an earlier entry failed on the same locator. `nextAttemptPrompt` renders them with `triedSection`; `runHeal` keeps the same list from each test's `reason` and passes it to `healNextPrompt`. The attempt log, and so `scribe-mistakes.jsonl`, uses the `tried` items too |
236
+ | `loop.ts` (retries) | Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a `Tried` entry: Quill's `tried` items from its result (else its notes), the failure, and `failureFacts` of the output (the last "waiting for" locator of Playwright's call log, and the element that "intercepts pointer events"), with `again` when an earlier entry failed on the same locator. `nextAttemptPrompt` renders them with `triedSection`; `runHeal` keeps the same list from each test's `reason` and passes it to `healNextPrompt`. The attempt log, and so `scribe-mistakes.jsonl`, uses the `tried` items too |
237
237
  | `notes.ts` | `scribe-notes.json` in `memory.dir`: per repository, the reading turn's notes (`saveNotes`), when they were written, and up to 15 tests jobs wrote there (`addWrittenTest` on approval). `readNotes` returns nothing past 30 days; `notesSection` renders them for the first prompt |
238
238
  | `worktree.ts` | The working tree before the job (`git status --porcelain -uall` with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's `forgeqe.yaml` and `llms.json`); the paths the job changed since then; putting back files the job deleted or uncommitted edits it reverted to the committed version; and the protected paths in the form the agent runtime matches them |
239
- | `loop.ts` | The attempt loop, stop handling, the replay (`code.replay`, on by default in `forgeqe.yaml`: `replayRun` runs while Scribe reads the repo, then the handoff is rebuilt with the replay and the result goes to `code.json` `replay`; skipped when `canReplay` finds no step beyond navigation and no checks), the reading turn (`READ_AGENT`, no structured answer, with or without a replay; skipped when `readNotes` has notes for the repo, which go into the first prompt instead; its reply is saved as the notes), the live browser (`code.live_browser`, on by default in `forgeqe.yaml`; its tools are off until the replay or a test run fails, a stall, a no-browser run, or a blocked report, and the prompt that switches them on says so), the stall guard (`code.stall_after`, default 5; counts reset after each ForgeQE test run), the loop guards (`code.repeat_after`, default 6: `RepeatedLooks`, look-ups whose answer is unchanged; `code.edit_after`, default 8: `RepeatedEdits`, edits to files already changed, and `FAILED_EDITS_AFTER` (3) edits that failed on lines the file no longer has; all reset after each test run, and each kind of loop gets `loopPrompt` once, then the job stops; a stop's notes say whether a test ever ran and which files were left changed (`stopFacts`), and its `test` event has `ran: false`), `code.json` (the run folder is recreated if it is gone, and a failed write is reported without changing the result), and resuming: `scribe-session.json` in the run folder (session id, repo, stage `reading`/`writing`, whether the live browser is on) is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a `ProviderAuthError`/`APIError` it stays, and a rerun for the same run and repo passes it as `openSession`'s `resume`. The session file also keeps the files the job changed (`changed`, saved after every edit, read back by `carriedPaths`). A rerun of a job that stopped while writing opens a fresh session whose first message is `brief(carriedOnTask)`; one that stopped while reading reopens its session with `RESUMED_NOTE` plus the first prompt. Either skips the reading turn and takes `savedReplay` when the replay finished. `brief` (the job's target or existing test, environment, notes, plan, `planFindings`, handoff, attempts and files) also starts every later attempt and the session after a raised budget (`BUDGET_RAISED`) |
239
+ | `loop.ts` | The attempt loop, stop handling, the replay (`code.replay`, on by default in `forgeqe.yaml`: `replayRun` runs while Quill reads the repo, then the handoff is rebuilt with the replay and the result goes to `code.json` `replay`; skipped when `canReplay` finds no step beyond navigation and no checks), the reading turn (`READ_AGENT`, no structured answer, with or without a replay; skipped when `readNotes` has notes for the repo, which go into the first prompt instead; its reply is saved as the notes), the live browser (`code.live_browser`, on by default in `forgeqe.yaml`; its tools are off until the replay or a test run fails, a stall, a no-browser run, or a blocked report, and the prompt that switches them on says so), the stall guard (`code.stall_after`, default 5; counts reset after each ForgeQE test run), the loop guards (`code.repeat_after`, default 6: `RepeatedLooks`, look-ups whose answer is unchanged; `code.edit_after`, default 8: `RepeatedEdits`, edits to files already changed, and `FAILED_EDITS_AFTER` (3) edits that failed on lines the file no longer has; all reset after each test run, and each kind of loop gets `loopPrompt` once, then the job stops; a stop's notes say whether a test ever ran and which files were left changed (`stopFacts`), and its `test` event has `ran: false`), `code.json` (the run folder is recreated if it is gone, and a failed write is reported without changing the result), and resuming: `scribe-session.json` in the run folder (session id, repo, stage `reading`/`writing`, whether the live browser is on) is written when the session opens and updated as the job goes, and removed when the job ends with a result; after a stop, a crash, or a `ProviderAuthError`/`APIError` it stays, and a rerun for the same run and repo passes it as `openSession`'s `resume`. The session file also keeps the files the job changed (`changed`, saved after every edit, read back by `carriedPaths`). A rerun of a job that stopped while writing opens a fresh session whose first message is `brief(carriedOnTask)`; one that stopped while reading reopens its session with `RESUMED_NOTE` plus the first prompt. Either skips the reading turn and takes `savedReplay` when the replay finished. `brief` (the job's target or existing test, environment, notes, plan, `planFindings`, handoff, attempts and files) also starts every later attempt and the session after a raised budget (`BUDGET_RAISED`) |
240
240
 
241
241
  **Config.** The whole agent runtime config is passed through the environment, so nothing is written into the repo. Keys are `{env:NAME}` references, never values. Profile mapping:
242
242
 
@@ -263,13 +263,13 @@ The repo path is resolved with `realpath` (macOS `/var` is `/private/var`), and
263
263
 
264
264
  **Result.** Each prompt sends `format: {type: "json_schema"}`, and the model answers through the agent runtime's `StructuredOutput` tool. The result is read from the `message.updated` event (`info.structured`, or `info.error`), not from `session.messages`: in the pinned agent runtime that endpoint returns BadRequest for any session that used `format`.
265
265
 
266
- **Loop.** ForgeQE does not trust the model's claim that the test passes. Scribe does not run the test; it reports the command and ForgeQE runs it. A non-zero exit or a timeout sends a fix prompt with the command, exit code, the short output (`promptOutput`), and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no-browser prompt, unless the agent reported `remote_browser`. A missing command sends a reminder. A failure whose output matches the previous one apart from numbers (`failureKey`) gets the repeated-failure prompt (look at the failing step before changing code); a third one in a row ends the loop as `failed` with the output in the notes. A stalled turn (one command failed `stall_after` times inside it) gets the stall prompt with the command and its output once; a second stall ends the loop as `failed` with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, `handoff.md` is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first `blocked` report is answered with the blocked-challenge prompt (compare the test's browser with the handoff's "Browser ForgeQE used" and fix the difference); a second one ends the loop as `blocked`. The loop ends when a passing run is approved (`passed`), after `max_attempts` (`failed`), when the reviewer gives no verdict (`failed`), on `ProviderAuthError`, `APIError`, `ContextOverflowError`, or `ContentFilterError` (`failed`), or on Esc (`stopped`, which aborts the session). Both servers are closed in every case, and the reviewer's tokens are added to the result's usage.
266
+ **Loop.** ForgeQE does not trust the model's claim that the test passes. Quill does not run the test; it reports the command and ForgeQE runs it. A non-zero exit or a timeout sends a fix prompt with the command, exit code, the short output (`promptOutput`), and the paths of the full log and the page snapshot. An exit 0 with no browser under the command sends the no-browser prompt, unless the agent reported `remote_browser`. A missing command sends a reminder. A failure whose output matches the previous one apart from numbers (`failureKey`) gets the repeated-failure prompt (look at the failing step before changing code); a third one in a row ends the loop as `failed` with the output in the notes. A stalled turn (one command failed `stall_after` times inside it) gets the stall prompt with the command and its output once; a second stall ends the loop as `failed` with that output in the notes. A passing run with a browser goes to the reviewer, with the paths this job changed and the paths the user already had uncommitted, so it never asks for the user's work or ForgeQE's files to be removed; its issues go back as the next prompt. After every agent turn, files that existed before the job and are now gone or reverted are put back, `handoff.md` is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first `blocked` report is answered with the blocked-challenge prompt (compare the test's browser with the handoff's "Browser ForgeQE used" and fix the difference); a second one ends the loop as `blocked`. The loop ends when a passing run is approved (`passed`), after `max_attempts` (`failed`), when the reviewer gives no verdict (`failed`), on `ProviderAuthError`, `APIError`, `ContextOverflowError`, or `ContentFilterError` (`failed`), or on Esc (`stopped`, which aborts the session). Both servers are closed in every case, and the reviewer's tokens are added to the result's usage.
267
267
 
268
268
  The `forgeqe-review` agent overrides the permissions key by key (`AgentSpec.permission`): `edit`, `webfetch`, and `task` denied, and `bash` denied except `git diff*`, `git status*`, `git log*`, `git show*`, and `ls*`.
269
269
 
270
270
  ## Skills (`src/skills`)
271
271
 
272
- Agent Skills folders (`<name>/SKILL.md`: YAML frontmatter with `name`, `description`, and ForgeQE's `agents`, then Markdown) that ForgeQE's agent, Scribe, and the browser agent use. `skills:` in `forgeqe.yaml` becomes `SkillsConfig` (`enabled`, `projectDir`, `userDir`, `dirs`, `disable`, `external`, `browserMaxChars`).
272
+ Agent Skills folders (`<name>/SKILL.md`: YAML frontmatter with `name`, `description`, and ForgeQE's `agents`, then Markdown) that ForgeQE's agent, Quill, and the browser agent use. `skills:` in `forgeqe.yaml` becomes `SkillsConfig` (`enabled`, `projectDir`, `userDir`, `dirs`, `disable`, `external`, `browserMaxChars`).
273
273
 
274
274
  | Module | Contents |
275
275
  |--------|----------|
@@ -280,7 +280,7 @@ Agent Skills folders (`<name>/SKILL.md`: YAML frontmatter with `name`, `descript
280
280
 
281
281
  **Agent runtime.** `openSession(…, skills)` keeps the skills whose `agents` include an audience of the session's agents (`AgentSpec.skills`: `forgeqe` for the brain, `scribe` for `forgeqe-test`, `forgeqe-read`, `forgeqe-review`, `forgeqe-find`, `forgeqe-heal`, `forgeqe-pr-review`, and `forgeqe-api`; none for `forgeqe-api-plan`, `forgeqe-explore-plan`, `forgeqe-defect-rca`, `forgeqe-refine`, `forgeqe-judge`, and `forgeqe-model-profile`, as `src/agents.ts` lists them), links them with `linkSkills`, and passes the folder as `skills.paths`. Each agent's `skill` permission is `{"*": "deny", <name>: "allow", …}` for its audience, or `"deny"` with none, so the runtime's built-in skills and a repo's `.opencode/skills` stay unloadable and out of the listing the model chooses from. `OPENCODE_DISABLE_EXTERNAL_SKILLS=1` and `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1` turn off the runtime's own discovery of `~/.claude/skills`, `~/.agents/skills`, and the project's. The links folder and each skill folder (and their real paths) are added to `external_directory` and made read-only: added to the session's protected paths, or, for a session without them, passed as `readOnly` (edit and bash denied for those paths only). ForgeQE's agent keeps write access to user and project skills, so it can change one when asked; built-in and global skills stay read-only for it too. Completed `skill` tool calls show as "Using skill NAME" and are collected in `skillsUsed`, which `runCodeAgent` and `runHeal` put on their results. `SKILL_RULE` in each agent's prompt says to load a skill whose description fits the job and that the prompt wins where they disagree.
282
282
 
283
- **Browser runs.** `environmentNotes` lists the browser skills for ForgeQE's agent, and `browser_run` and `run_test_cases` take `skills` (names). `executeRun` calls `browserSkills` and sends the result in the engine request; the engine chooses (`choose_skills`) or uses them, adds the text within `skills_max_chars`, logs "Skills for this run: …" (and the ones left out for size), and writes `skills` to `run.json` only when it decided, so a replay that finished without the agent leaves the choice open. `run.done` in the session log, `RunResult.skills`, and the report's case header carry them; a case's Scribe skills go to `CaseResult.code.skills`.
283
+ **Browser runs.** `environmentNotes` lists the browser skills for ForgeQE's agent, and `browser_run` and `run_test_cases` take `skills` (names). `executeRun` calls `browserSkills` and sends the result in the engine request; the engine chooses (`choose_skills`) or uses them, adds the text within `skills_max_chars`, logs "Skills for this run: …" (and the ones left out for size), and writes `skills` to `run.json` only when it decided, so a replay that finished without the agent leaves the choice open. `run.done` in the session log, `RunResult.skills`, and the report's case header carry them; a case's Quill skills go to `CaseResult.code.skills`.
284
284
 
285
285
  ## Healing (`src/heal`)
286
286
 
@@ -290,7 +290,7 @@ Agent Skills folders (`<name>/SKILL.md`: YAML frontmatter with `name`, `descript
290
290
  test command ──► baseline run (testrun.ts) ── passes ──► clean, no model
291
291
  │ fails
292
292
  ▼
293
- Scribe session (forgeqe-heal agent) ◄─── MCP: browser_run, run_details, run_test, page_memory
293
+ Quill session (forgeqe-heal agent) ◄─── MCP: browser_run, run_details, run_test, page_memory
294
294
  │ tests[]: healed | app_bug | not_healed, each with its own command
295
295
  ▼
296
296
  ForgeQE runs each healed test ── fails ──► still-failing prompt ─┐
@@ -312,16 +312,16 @@ In the shell and `forgeqe run`, ForgeQE's agent calls the `heal_tests` tool, whi
312
312
 
313
313
  ## Finding and running existing tests (`src/code/find.ts`, `src/mcp/repotests.ts`, `src/cases/sprints.ts`)
314
314
 
315
- "Run all tests related to login" and "run the tests added this sprint" select tests that already exist in the repo. Scribe decides which tests match by reading them; ForgeQE confirms the selection with the framework's own list command, and nothing runs until the user agrees.
315
+ "Run all tests related to login" and "run the tests added this sprint" select tests that already exist in the repo. Quill decides which tests match by reading them; ForgeQE confirms the selection with the framework's own list command, and nothing runs until the user agrees.
316
316
 
317
317
  ```
318
318
  request (+ since/until, or a sprint picked from Azure DevOps / Jira via ctx.ask)
319
319
  │
320
320
  ▼
321
- Scribe session (forgeqe-find agent, read-only) ── tests[], related[], list_command, run_command
321
+ Quill session (forgeqe-find agent, read-only) ── tests[], related[], list_command, run_command
322
322
  │
323
323
  ▼
324
- ForgeQE runs list_command ──► listing back to Scribe ── changed ──► lists again (up to 3 rounds)
324
+ ForgeQE runs list_command ──► listing back to Quill ── changed ──► lists again (up to 3 rounds)
325
325
  │ list_matches, unchanged
326
326
  ▼
327
327
  selection.json + card ──► run_tests: ctx.ask "Run N tests?" ── Run ──► ForgeQE runs run_command
@@ -331,7 +331,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ── Run ─
331
331
 
332
332
  | Module | Contents |
333
333
  |--------|----------|
334
- | `code/find.ts` | `FIND_AGENT` (`forgeqe-find`): `edit`, `webfetch`, and `task` denied, `bash` denied except `git log/show/diff/blame/ls-files/rev-parse/status` and `ls`. Its prompt: work out the frameworks, decide each test from its body and the helpers it calls (a name alone neither includes nor excludes it), a time range means tests added in it (git history, including new functions in existing files; only-modified tests go under `related`), one test per entry, and the two commands. `FIND_SCHEMA`: `{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}`. `findTests` opens the session (readDirs: the repo only), gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new `<export.out_dir>/tests/<time>/` folder; runs `list_command` with `runTestCommand` (180s) and feeds the output back until Scribe confirms an unchanged selection (`listed`), and writes `selection.json`. `runSelection` deletes stale result files, runs `run_command` with `code.test_timeout_seconds`, collects the fresh `.xml`/`.trx` files (the given file, or a folder one level deep), and parses them with `parseResults` (JUnit `testcase` at any depth with `failure`/`error`/`skipped`; TRX `UnitTestResult` outcomes and `hh:mm:ss` durations); without results the exit code decides. `selectionCard` and `resultsCard` |
334
+ | `code/find.ts` | `FIND_AGENT` (`forgeqe-find`): `edit`, `webfetch`, and `task` denied, `bash` denied except `git log/show/diff/blame/ls-files/rev-parse/status` and `ls`. Its prompt: work out the frameworks, decide each test from its body and the helpers it calls (a name alone neither includes nor excludes it), a time range means tests added in it (git history, including new functions in existing files; only-modified tests go under `related`), one test per entry, and the two commands. `FIND_SCHEMA`: `{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}`. `findTests` opens the session (readDirs: the repo only), gives it today's date, the shell, the range, and the JUnit and TRX paths inside a new `<export.out_dir>/tests/<time>/` folder; runs `list_command` with `runTestCommand` (180s) and feeds the output back until Quill confirms an unchanged selection (`listed`), and writes `selection.json`. `runSelection` deletes stale result files, runs `run_command` with `code.test_timeout_seconds`, collects the fresh `.xml`/`.trx` files (the given file, or a folder one level deep), and parses them with `parseResults` (JUnit `testcase` at any depth with `failure`/`error`/`skipped`; TRX `UnitTestResult` outcomes and `hh:mm:ss` durations); without results the exit code decides. `selectionCard` and `resultsCard` |
335
335
  | `mcp/repotests.ts` | `REPO_TEST_TOOLS`, appended to `TOOLS`. `list_sprints`. `find_tests` validates dates, resolves `sprint` (a name through `findSprint`; `ask` offers up to eight `recentSprints` through `ctx.ask`, or returns them as `needs_choice` when there is no `ask`), runs `findTests`, and emits the selection card. `run_tests` loads the selection and asks **Run N tests? / Don't run** through `ctx.ask`; without `ask` (`forgeqe mcp`, or `forgeqe run` without a terminal) it returns `needs_confirmation` until called with `confirmed: true`. Failures come back with a `heal_tests` suggestion |
336
336
  | `cases/sprints.ts` | Azure DevOps `work/teamsettings/iterations` (the project's default team, or `team`) and Jira agile `board?type=scrum` (by project or board, up to five boards) then `board/{id}/sprint`, paged. Both become `Sprint {system, name, start, end, state: current \| past \| future, where}`; a system that fails is reported in `errors`. `recentSprints` keeps each team's or board's current, three latest past, and next sprint |
337
337
 
@@ -357,13 +357,13 @@ Every write-back includes the step verdicts, and retries once without the step d
357
357
 
358
358
  `http.ts` is the one HTTP helper. Tokens come from the environment variables `sources:` names, and errors show the method, host, path, and status, never a credential. For `forgeqe suite` and `forgeqe cases`, `refKind` picks a source from the reference's prefix, then an existing file, then plain text; the agent's tools skip this and pass structured selectors to `casesFrom`. `loadCases` adds `~2`, `~3` to repeated ids.
359
359
 
360
- `goalFor` turns a case into the agent's goal: numbered steps, each with its data and "Expected: …", and an instruction to check every expected result and fail the task if any is not met. `caseMarkdown` goes into the coding handoff (from `testcase.json` in the run folder) and asks Scribe to name the test `<id> <title>`.
360
+ `goalFor` turns a case into the agent's goal: numbered steps, each with its data and "Expected: …", and an instruction to check every expected result and fail the task if any is not met. `caseMarkdown` goes into the coding handoff (from `testcase.json` in the run folder) and asks Quill to name the test `<id> <title>`.
361
361
 
362
362
  `runSuite` gives each case a run folder `NN-<id>` and runs `executeRun` with a pool of `parallel` workers. With a repo, a passed case is queued for the coding agent as soon as its browser run ends and its worker awaits that job before taking the next case, so each case is explored, handed off, and coded before the next one starts; the queue is one promise, so coding jobs never overlap. A case that is not coded records `codeSkipped` with the reason. Write-back and `fileBugs` run after every case finishes and skip stopped cases. `report.ts` writes `junit.xml` (failed → `<failure>`, error → `<error>`, stopped → `<skipped>`, step verdicts and posted links in `system-out`), `report.html` (`src/report/data.ts` turns the results into `ReportData`: step verdicts, the `steps.json` timeline with screenshots as data URIs up to a 40 MB budget, failed cases first, small text files such as the trace and workflow, posted records, each run folder's `run.json` (page memory with heals and repairs, browser diagnostics) and `accessibility.json`, the case's group and requirements, usage and cost, and history from the sibling `.forgeqe/reports/suites/*/suite.json`. From that history it also finds each failed case's last passing run folder (next to its `suite.json`, else where it was written) for the "last good vs now" screenshot of the same URL path, and each memory-replayed case's last run with no replay, as the baseline for page memory savings; `src/report/html.ts` injects it as `window.__FORGEQE_REPORT__` into `src/report/template.html`, a React app from `report-ui/` built into one file by `bun run build:report`; every single run writes one too), `suite.json`, the terminal summary, and the GitHub job summary (appended to `GITHUB_STEP_SUMMARY` when set). The `run_test_cases` tool calls the same `runSuite`, passing the working directory and `runCodeAgent` as the coder when the session writes tests (so the agent never calls `write_test` for those cases afterwards), and the shell renders a suite card. There is no pipeline template: the agent writes pipelines to fit each repository, and they call `forgeqe suite`.
363
363
 
364
364
  ## Environments (`src/environments.ts`)
365
365
 
366
- `env.yaml` (named by `environments.file`) lists the environments and their apps, in any layout: `environments:` maps, top-level maps, or lists. They are all read into the same `Environment` (`apps` by kind: web, api, desktop, mobile; `variables`; `secrets` as names of environment variables). `activeEnvironment` picks one: `--env`, `FORGEQE_ENV`, `use_environment`, or the default. `withEnvironment` gives a config for one tool call's `env`. `exportEnvironment` puts the environment's `FORGEQE_APP_*` and variables into the environment of the tests ForgeQE runs. `environmentBrief` is what each agent is told: ForgeQE's agent gets every app, the browser agent its hosts, and Scribe the names to read so a test runs in every environment.
366
+ `env.yaml` (named by `environments.file`) lists the environments and their apps, in any layout: `environments:` maps, top-level maps, or lists. They are all read into the same `Environment` (`apps` by kind: web, api, desktop, mobile; `variables`; `secrets` as names of environment variables). `activeEnvironment` picks one: `--env`, `FORGEQE_ENV`, `use_environment`, or the default. `withEnvironment` gives a config for one tool call's `env`. `exportEnvironment` puts the environment's `FORGEQE_APP_*` and variables into the environment of the tests ForgeQE runs. `environmentBrief` is what each agent is told: ForgeQE's agent gets every app, the browser agent its hosts, and Quill the names to read so a test runs in every environment.
367
367
 
368
368
  ## Desktop apps (`src/desktop`, `py/forgeqe_desktop`)
369
369
 
@@ -401,7 +401,7 @@ Before the model is called, `replay_known` asks `AppMemory.plan` for the goal's
401
401
 
402
402
  - **API scenario plans** (`src/api/plancache.ts`): `api_scenarios` from cases or text keeps each plan under `<memory dir>/api/plans/<hash>.json`, keyed by a hash of the cases' titles, descriptions, preconditions, steps and expected results (or the text) and the set's operations. The same input reuses the plan with no model call, replacing its earlier scenarios in the set; `fresh: true` plans again.
403
403
  - **Registry plans of every tool** (`src/registry`): `indexRuns` also indexes mobile and desktop explores (tool `mobile_explore` / `desktop_explore`, keyed by goal and app) and API runs (`api/<set>/runs/*`: `run_api_contracts` / `run_api_scenarios`, known as "the API contracts" of a set). `plans.args` holds the tool's arguments (added in place; schema version stays 1, so older versions still open the file). `runTier0` (`src/registry/run.ts`) calls the plan's own tool and writes the reply from its result; the tools still ask before they operate a device or change data. The shell and `forgeqe run` both route through it.
404
- - **Measurement:** `forgeqe memory stats` (`src/memorystats.ts`) counts, per area, the runs that reused history, those that needed no model, steps replayed and model steps, the API plans kept, and the requests the registry answered without the agent. The **memory gate** (the `gate` job of `.github/workflows/ci.yml`) runs the tests that fail when known work reaches the model.
404
+ - **Measurement:** `forgeqe memory stats` (`src/memorystats.ts`) counts, per area, the runs that reused history, those that needed no model, steps replayed and model steps, the API plans kept, and the requests the registry answered without the agent. The **memory gate** is the tests that fail when known work reaches the model.
405
405
 
406
406
  ## Containers (`src/containers`)
407
407
 
@@ -421,7 +421,7 @@ Before the model is called, `replay_known` asks `AppMemory.plan` for the goal's
421
421
  - **`workspace.ts`** is `containers.workspace`. `loadConfig` registers it for the repository (`active.ts`). Nothing starts until `openSession` or `runTestCommand` asks for it. Then one container per process and project waits (`sleep infinity`) with the repository, the home volume `forgeqe-<key>-home` and the project network. `openSession` sets the agent runtime's `SHELL` to a script that runs `exec --workdir "$PWD" … sh -c "$2"` in it, refuses a folder outside the repository, and adds `workspaceNote` to the agents' instructions. ForgeQE's own agent passes `hostShell`. `runTestCommand` sends a run in a covered folder to the workspace's runner (`tests.ts`, same image and home volume) unless `host` or `FORGEQE_HOST_RUN=1`.
422
422
  - **`browser.ts`** is `browser.provider: docker`. `startDockerBrowser` runs Microsoft's Playwright image with `BROWSER_SERVER` (Node.js, no packages) mounted read-only. It starts Chromium on 127.0.0.1:9222 inside, headless or on Xvfb, and a gateway on 9223 that pipes a connection only when the path starts with the random token (constant-time compare) and any `Origin` is local. The token goes to the runtime by name. ForgeQE waits for `/<token>/json/version` and returns `ws://127.0.0.1:<port>/<token>/devtools/browser/<id>`. `run.ts` starts one per browser run and gives the engine `FORGEQE_BROWSER_CDP_URL` (`docker_browser_launch_kwargs`). The coding loop starts one per job when the provider is docker or `run.json` says the run used one: the replay connects with `connectOverCDP` (`FORGEQE_REPLAY_CDP`, one pass), and the live browser's MCP server reads `PLAYWRIGHT_MCP_CDP_ENDPOINT` from `{env:FORGEQE_LIVE_CDP_URL}`.
423
423
  - **The agent's tools** are `services` and `mock_service` in `src/mcp/containertools.ts`, and the CLI is `forgeqe services` (`command.ts`).
424
- - **The agents' shell:** `BASH_PERMISSION` denies docker, podman, nerdctl and compose commands for the agent and Scribe.
424
+ - **The agents' shell:** `BASH_PERMISSION` denies docker, podman, nerdctl and compose commands for the agent and Quill.
425
425
  - **Tests:** `tests/containers.test.ts` and `tests/workspace.test.ts` use a fake runtime; `workspace.test.ts` also runs the gateway against a stand-in browser and the agent runtime against the workspace's script. `tests/containers.live.test.ts` uses real Docker and is skipped without it.
426
426
 
427
427
  ## Databases, test data and data flows (`src/data`, `py/forgeqe_data`)
@@ -435,7 +435,7 @@ Before the model is called, `replay_known` asks `AppMemory.plan` for the goal's
435
435
  - **Test data:** `testdata.py` makes rows from a spec (`src/data/testdata.ts` reads it inside the working folder). `subset.py` takes a masked subset of another database. Inserted rows are kept as a batch that can be removed again. `hooks.ts` inserts a case's or a suite's `data:` before it runs, and removes it afterwards.
436
436
  - **Data flows:** `flows.py` checks the hops listed in `flows.yaml` (beside forgeqe.yaml), from a source table to a target table, by batch or in real time. `streams.py` reads Kafka topics and HTTP APIs as hops. `flowreport.ts` writes `flows.json` and `report.html` to `<reports>/flows-<time>/`, and `flowado.ts` posts the results as an Azure DevOps test run.
437
437
  - **Remembered queries:** `examples.ts` keeps the SQL the user approved, in `.forgeqe/data/<db>/examples.jsonl`. It gives the SQL back with the schema when a new question is like an old one.
438
- - **The agent's tools** are `databases`, `database_schema`, `run_sql`, `generate_test_data`, `test_data_batches` and `request_test_data` (`src/mcp/datatools.ts`), and `data_flows`, `check_flows`, `trace_record` and `read_mapping_file` (`src/mcp/flowtools.ts`). A write, an insert or a removal asks the user first. Scribe and the API test writer get `AGENT_DATA_TOOLS`, which never pass `confirmed`, so they cannot write.
438
+ - **The agent's tools** are `databases`, `database_schema`, `run_sql`, `generate_test_data`, `test_data_batches` and `request_test_data` (`src/mcp/datatools.ts`), and `data_flows`, `check_flows`, `trace_record` and `read_mapping_file` (`src/mcp/flowtools.ts`). A write, an insert or a removal asks the user first. Quill and Link get `AGENT_DATA_TOOLS`, which never pass `confirmed`, so they cannot write.
439
439
  - **The CLI** is `forgeqe data`, `forgeqe db` (and `/db` in the shell) and `forgeqe flows` (`command.ts`, `dbcommand.ts`), with no model.
440
440
 
441
441
  ## Model router (`src/router`)
@@ -447,13 +447,13 @@ With more than one profile in `llms.json`, `llm.routing` (`off`, `shadow` or `au
447
447
  | `config.ts` | The six areas (`agent`, `browser`, `coding`, `review`, `analysis`, `planning`), each with its rating bar and whether it needs images or tool calls. `parseRouting` reads `llm.routing` and `llm.routes`, and stops ForgeQE at start on an unknown area or a name that is not a profile |
448
448
  | `facts.ts` | `profileFacts`: window, images, tool calls, reasoning, release date and price, from `llms.json`, the live check, and the public model lists. `probeProfile` runs `python -m forgeqe_engine probe` (`py/forgeqe_engine/probe.py`) with the profile on stdin and only that profile's key (or Entra variables) in its environment. The probe makes two calls through the browser agent's own client: a structured "Reply with ok set to true", and a 16-pixel red square generated in code, to learn whether the model takes images. It has a 60 s limit |
449
449
  | `profile.ts` | `rateModels`: the `forgeqe-model-profile` agent (edit, bash and webfetch denied) on the active profile gets `profileRequest`. That is each model's facts and answer time, never a key, an endpoint or an account. It returns a tier and 1–5 ratings per area. `sanitizeProfile` keeps only configured profile names, known areas and tiers, ratings rounded and held to 1–5, and a reason of at most 200 characters without control characters or `<` `>`. This happens to the reply and again on every read of `.forgeqe/model-profile.json`. The file's `fingerprint` (each profile's name, provider, model, deployment and endpoint) makes ForgeQE rate the models again when the profiles change |
450
- | `route.ts` | `routedConfig(cfg, area)` at each call site. The router stays out for `--profile` / `WP_LLM_PROFILE` and for `code.model` (all areas but `browser`). `knowledge` checks and rates the models once per process, and only when two or more profiles have a key. `choose` rules out a model with no key, a failed check, no images for `browser`, no tools, or too small a window. It then picks the cheapest model rated at the area's bar, else the best rated. Each pick goes to the session log as `model.route`. In `shadow` it is only logged. `escalate` gives a root-cause analysis one stronger model. `routeTable` is `forgeqe models --routes` (`--profile-models` checks and rates again) |
450
+ | `route.ts` | `routedConfig(cfg, area)` at each call site. The router stays out for `--profile` / `WP_LLM_PROFILE` and for `code.model` (all areas but `browser`). `knowledge` checks and rates the models once per process, and only when two or more profiles have a key. `choose` rules out a model with no key, a failed check, no images for `browser`, no tools, or too small a window. Among the models rated at the area's bar it picks by `llm.strategy` (`strategyFor`): the lead areas (`agent`, `planning`) get the most capable, the others the best value (`pricePenalties`: one rating point worth up to `RATING_WORTH`× the price), or the cheapest with `cost`; else the best rated. Each pick goes to the session log as `model.route`. In `shadow` it is only logged. `escalate` gives a root-cause analysis one stronger model. `routeTable` is `forgeqe models --routes` (`--profile-models` checks and rates again) |
451
451
 
452
452
  ForgeQE's agent is routed once, when its session opens (`brain/index.ts`), so its prompt cache survives. With routing on, any profile in `llms.json` that has a key can receive prompts, page content, screenshots and code excerpts, and each gets the live check. `llm.routing: off`, a single profile, or a pin per area in `llm.routes` keeps the work on one deployment. `tests/router.test.ts` covers the router.
453
453
 
454
454
  ## Generated code (`src/provenance.ts`)
455
455
 
456
- When a Scribe job passes, `code/loop.ts` calls `markJob`, which marks what ForgeQE wrote in the repository.
456
+ When a Quill job passes, `code/loop.ts` calls `markJob`, which marks what ForgeQE wrote in the repository.
457
457
 
458
458
  - A file it created starts with a comment header, `Generated with ForgeQE · fq:<id> · run <run>` (`code.header`, on by default). The `fq:` id is a hash of the file without the header, so `verify` tells whether the file changed since.
459
459
  - Every file it created or edited is recorded in `<repo>/.forgeqe/generated.jsonl`, one line per run, with the lines it added as short hashes.
@@ -537,13 +537,13 @@ That is the active profile. With `llm.routing: auto`, each area of work can run
537
537
  | `report.html` | The run's own report |
538
538
  | `handoff.md` | What the coding agent was given (only with a repo) |
539
539
  | `code.json` | Coding result: status, attempts, test file, command, reused, changed, last test output, tokens |
540
- | `scribe-session.json` | Scribe's session for a job that stopped before it finished, reopened by a rerun |
540
+ | `scribe-session.json` | Quill's session for a job that stopped before it finished, reopened by a rerun |
541
541
  | `testcase.json` | The test case a suite ran in this folder |
542
542
  | `junit.xml`, `report.html`, `suite.json` | Suite reports, in `.forgeqe/reports/suites/<time>/` above the case folders (monitoring rounds: `.forgeqe/reports/monitor/<time>/`) |
543
543
  | `heal.json`, `heal.md` | Healing result and report, in `.forgeqe/reports/heal/<time>/` with the browser runs it made |
544
544
  | `state.json`, `alerts.json` | Monitoring: which checks are failing and since when (`.forgeqe/reports/monitor/`), and what a round alerted and whether it was sent (in the round folder) |
545
545
  | `.forgeqe/model-profile.json` | The model router's live checks and ratings, next to `forgeqe.yaml` (in `FORGEQE_HOME`, by default `~/.forgeqe`, without a config file). Checked on every read, and made again when the profiles change |
546
- | `.forgeqe/generated.jsonl` | In the repository: per Scribe run, its `fq:` id and the files and lines it wrote |
546
+ | `.forgeqe/generated.jsonl` | In the repository: per Quill run, its `fq:` id and the files and lines it wrote |
547
547
  | `forgeqe-reports-<user>-<machine>-<time>.json` | A team report bundle from `forgeqe bi export` or `/report export`, in `.forgeqe/reports/shared/`. Teammates' bundles go in `.forgeqe/reports/collected/` |
548
548
  | `flows.json`, `report.html` | A data flow check, in `.forgeqe/reports/flows-<time>/` |
549
549
  | `suite.json`, `report.html` | An API run's report, next to its `results.json` in `.forgeqe/reports/api/<set>/runs/<run>/` |
@@ -551,13 +551,13 @@ That is the active profile. With `llm.routing: auto`, each area of work can run
551
551
  ## Tests
552
552
 
553
553
  - `bun test`: config, commands, TUI, mock loop, bridge (with stub engines), memory readers and `forgeqe memory`, and `tests/engine.e2e.test.ts`, which runs the real engine and Chrome against a local site with a local OpenAI-compatible model server. Its second run replays the first from memory and checks the model is called once. The e2e test is skipped when the engine is not installed. Its last test passes that real run to the real agent runtime.
554
- - `tests/code.test.ts`: provider mapping, permissions, handoff contents, and the loop with a scripted session (fail then pass, missing command, a stalled command asked once to change approach and then stopping the job, the live browser's MCP server and config from `run.json`, the replay running while Scribe reads the repo as the read-only agent, the reading turn and its notes with the replay off, a check's section in the handoff, the live browser switched on by a failed replay or a failed test, the same failure stopping the job on its third time, fatal error, stop), `FailedCommands`, the read-only agent's permissions, and the trimmed handoff (weak locators dropped, step elements left out of the page tables). `tests/code.e2e.test.ts` also checks, against the real agent runtime, that the reading turn has no write or structured-answer tools. `tests/replay.test.ts`: the script and locators built from a workflow, the two launch setups, and against a local site in Chrome, a click a cookie dialog covers (Playwright's reason, the dialog, the other locators' matches, the rest of the flow still run) and a control hidden from `navigator.webdriver` (the second launch gets through and the handoff says the setup is the difference), and a run that only opened a page whose heading checks come back with their sections (by the element after the heading, the section it heads, and `aria-labelledby`). `tests/code.e2e.test.ts` runs the real agent runtime against a local OpenAI-compatible model that writes a failing test, gets ForgeQE's failure output, and fixes it. It checks the key arrives through `{env:}`. Both tests are skipped when the agent runtime is not installed.
554
+ - `tests/code.test.ts`: provider mapping, permissions, handoff contents, and the loop with a scripted session (fail then pass, missing command, a stalled command asked once to change approach and then stopping the job, the live browser's MCP server and config from `run.json`, the replay running while Quill reads the repo as the read-only agent, the reading turn and its notes with the replay off, a check's section in the handoff, the live browser switched on by a failed replay or a failed test, the same failure stopping the job on its third time, fatal error, stop), `FailedCommands`, the read-only agent's permissions, and the trimmed handoff (weak locators dropped, step elements left out of the page tables). `tests/code.e2e.test.ts` also checks, against the real agent runtime, that the reading turn has no write or structured-answer tools. `tests/replay.test.ts`: the script and locators built from a workflow, the two launch setups, and against a local site in Chrome, a click a cookie dialog covers (Playwright's reason, the dialog, the other locators' matches, the rest of the flow still run) and a control hidden from `navigator.webdriver` (the second launch gets through and the handoff says the setup is the difference), and a run that only opened a page whose heading checks come back with their sections (by the element after the heading, the section it heads, and `aria-labelledby`). `tests/code.e2e.test.ts` runs the real agent runtime against a local OpenAI-compatible model that writes a failing test, gets ForgeQE's failure output, and fixes it. It checks the key arrives through `{env:}`. Both tests are skipped when the agent runtime is not installed.
555
555
  - `tests/cases.test.ts`: every file format, goals, the handoff, and Azure DevOps, Jira (Cloud and Server), and Xray (Cloud and Server) against local fake APIs that check paging, auth headers, and the write-back calls. `tests/suite.test.ts`: the worker pool, serial coding, reports, exit codes, stop, write-back, and the job summary. The engine e2e test also runs a two-case suite in two real browsers and checks page memory counted both.
556
556
  - `tests/sources.test.ts`: TestRail, Zephyr Scale, and qTest reading and write-back (paging, step results, retries without them, new runs and cycles), bugs in Jira and Azure DevOps (create with screenshot and links, comment while failing, note on pass), Confluence reading and its MCP wiring, parsing of `logins:`, `report:` and the new sources, the login commands, session notes without secret values, and `report.html`. The engine e2e test also signs in with a saved login and TOTP (the model never sees the values), checks the session file, that `workflow.yaml` holds `text_env` / `totp_env` instead of values, and that the next run starts signed in.
557
557
  - `tests/integrations.test.ts`: `sources:` MCP switches and `mcp:` parsing, the Azure DevOps and Jira server entries for each auth mode and every reason a server is skipped (secret values never in the config), overrides, and `query_api` against fake APIs (auth headers, api-version, host restriction, mutation refusal, cutting). `brain.e2e.test.ts` also starts a local stdio server, a remote HTTP server that checks its bearer token, and a broken server through the real agent runtime: the `{env:}` values arrive, both tools are callable, the broken server is reported, and no secret reaches the model.
558
558
  - `tests/mcp.test.ts`: the MCP server over HTTP (auth, initialize, list, progress, cancel, errors) and stdio, environment notes without secret values, `pushBranch` against a bare remote whose default branch is `trunk`, and `setCiSecret` with fake `gh` and `az`. `tests/brain.e2e.test.ts` runs the real agent runtime against a scripted local model: the agent chooses `forgeqe_browser_run` over MCP, both forms of `git push` are refused, and a follow-up message runs a suite. `tests/cli.test.ts` drives `forgeqe run` through the same real agent runtime (tool lines, reply, exit 3 for needs input) and `forgeqe mcp` over stdio with the mock profile. The agent runtime tests are skipped when the agent runtime is not installed.
559
559
  - `tests/heal.test.ts`: the healing loop with a scripted session that calls ForgeQE's tools over the real MCP server (only the four heal tools are listed; the browser run lands in the heal folder): nothing to heal, healed and confirmed, an app bug left failing, a healed test that still fails or has no command, finding the command, `code.test_command`, a missing report, a fatal error, and stop. `tests/monitor.test.ts`: `decide` sequences (fail_after, flaky, reminders, recovery, stopped, a round that could not run), duration and `monitor:` parsing, rounds through the real `runSuite` with state carried over, report links, attachments, `alerts.json`, pruning, the loop and `--once` exit codes, the lock against a live pid, the Teams card against a fake webhook, email through nodemailer to a local fake SMTP server (login, recipients, subject, screenshot), and secrets scrubbed from errors. `tests/cli.test.ts` runs `forgeqe monitor --test-alerts` and `--once` with the mock profile against a fake Teams webhook.
560
- - `tests/commands.test.ts`: the command tools called as the agent calls them: `write_test` with a scripted session (agent events, the card, the mock profile refused), `heal_tests` clean and healed, `monitor` round and status, `start` refused in a `once` session, start/status/stop in a `shell` session (a round card, a second start and a one-off round refused, the lock released), `test_alerts` against a fake webhook, `logins` list/clear and `sign_in` without a person, `page_memory` flows and clear, and `forgeqe_setup` profiles, MCP servers, docs by topic, and init. `tests/repotests.test.ts`: `parseResults` on JUnit and TRX; `find_tests` with a scripted Scribe (the read-only agent, the listing fed back, a corrected list command listed again, nothing found, mock profile and bad dates refused); `run_tests` declined (nothing runs), confirmed (per-test card from JUnit, the heal suggestion), and without `ask` (`needs_confirmation`, then `confirmed: true`, exit code only); sprints from fake Azure DevOps and Jira APIs (paging, the pick through `ask`, cancel, `needs_choice`, a name matched). `tests/engine/test_step_notes.py`: the agent's note built from its own fields and stored on the flow steps a step recorded, `evaluate` steps with their code. `tests/code.test.ts` (handoff): notes before each group of steps, once per step, and the JavaScript shown. `tests/update.test.ts`: bun and pip installs found in PATH order; waiting while the registry 404s, then the cache-skipping commands per install; `--check` running nothing; a release never served failing with a retry hint. `tests/sessionLog.test.ts`: the session header and events with remembered passwords, secret environment variables, and inline API keys replaced; tool calls and results; the bundle's contents without screenshots or keys; `/logs`. `tests/engine/test_page_settle.py`: the judge off by default and on by setting, `page_settled`, `settle_page` waiting for a new tab and giving up on one that stays blank, and note actions as read-only. `tests/resume.test.ts`: resume steps in the run result, `loadResume` by folder or run name, and `browser_run` returning the retry and passing `resume_from`. `tests/engine/test_resume.py`: `resume_point`, `resume_steps`, the loop start and nudge text, `_install_nudges` draining after the library's hook, resume steps in the flow file, the resume hand-off, checkpoints (kept apart from flows, cleared only by their own run, kept by a stopped run), and the hand-off after a cut-off run. `tests/code.test.ts` (resuming): a stopped job keeps `scribe-session.json` and a finished one removes it, a rerun reopens the session with the saved replay and a carry-on prompt, and a gone session starts fresh; `tests/code.e2e.test.ts` reopens a session by id after the runtime restarted and finds its earlier messages. `tests/engine.e2e.test.ts` runs a page where clicking "One way" resets the date: a model that takes the nudge finishes; one that ignores it is stopped with its resume steps saved, and a retry with `resume_from` replays the cookie click and needs two model calls. `tests/sessionLogins.test.ts`: remembered logins (domains from a URL, hosts, and wildcards; the engine payload with values; no process env), redaction next to punctuation and in carried-over turns, a remembered login replacing a configured one in the notes, ForgeQE's test runs getting the env names with the output redacted, and the `logins` tool's remember/list/clear without the password in any result. `tests/engine/test_session_logins.py`: remembered values as placeholders on every sign-in domain, env values still working, `step_outcomes`, and `making_progress`. `tests/tui.test.tsx` renders a monitor round's card in the transcript and checks the **Your turn** dialog holds a tool until **Done, continue**.
561
- - `tests/skills.test.ts`: `skills:` parsing; the prebuilt skills loading cleanly; precedence and `overrides` across user, project, the repo's own folder, and `dirs`; the repo's `.claude` skills only with `external`; the default and opt-in `agents`; `disable` and unknown names; every validation problem (including the unquoted `: ` hint); the per-agent `skill` permission and `skills.paths` in the runtime config; links readable through and removed without touching the skill; `browserSkills` given and choose, unknown names, and the remembered choice; the engine request through a stub engine and `skills` back on the result; the skills catalogue in the environment notes; `newSkill`, `setSkillDisabled` keeping comments, and `ignoredNote`; the overview and `/skills`; and `forgeqe skills new/show/disable/enable/check` end to end. `tests/code.e2e.test.ts` checks, against the real agent runtime, that Scribe's skill listing has only the registry's skills for it, an allowed skill's text arrives, and a disabled skill, the repo's `.opencode` and `.claude` skills, the runtime's built-in skill, and `~/.claude/skills` stay out unless `external` adds them through the registry. `tests/engine/test_skills.py`: `choose_skills` order, the cap of 3, errors and an empty catalogue without a model call; `skills_block` within `skills_max_chars`; the request fields.
562
- - `tests/desktop.test.ts`, `tests/mobile.test.ts`, `tests/scope.test.ts`, `tests/capabilities.test.ts`: the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. `<engine-python> -m pytest tests/desktop`: the desktop and mobile engines against fake drivers, a fake Appium server and a stand-in Maestro (any OS). The `*_live` tests need Windows or an emulator, and run in the `desktop` and `android` jobs of `.github/workflows/ci.yml`.
560
+ - `tests/commands.test.ts`: the command tools called as the agent calls them: `write_test` with a scripted session (agent events, the card, the mock profile refused), `heal_tests` clean and healed, `monitor` round and status, `start` refused in a `once` session, start/status/stop in a `shell` session (a round card, a second start and a one-off round refused, the lock released), `test_alerts` against a fake webhook, `logins` list/clear and `sign_in` without a person, `page_memory` flows and clear, and `forgeqe_setup` profiles, MCP servers, docs by topic, and init. `tests/repotests.test.ts`: `parseResults` on JUnit and TRX; `find_tests` with a scripted Quill (the read-only agent, the listing fed back, a corrected list command listed again, nothing found, mock profile and bad dates refused); `run_tests` declined (nothing runs), confirmed (per-test card from JUnit, the heal suggestion), and without `ask` (`needs_confirmation`, then `confirmed: true`, exit code only); sprints from fake Azure DevOps and Jira APIs (paging, the pick through `ask`, cancel, `needs_choice`, a name matched). `tests/engine/test_step_notes.py`: the agent's note built from its own fields and stored on the flow steps a step recorded, `evaluate` steps with their code. `tests/code.test.ts` (handoff): notes before each group of steps, once per step, and the JavaScript shown. `tests/update.test.ts`: bun and pip installs found in PATH order; waiting while the registry 404s, then the cache-skipping commands per install; `--check` running nothing; a release never served failing with a retry hint. `tests/sessionLog.test.ts`: the session header and events with remembered passwords, secret environment variables, and inline API keys replaced; tool calls and results; the bundle's contents without screenshots or keys; `/logs`. `tests/engine/test_page_settle.py`: the judge off by default and on by setting, `page_settled`, `settle_page` waiting for a new tab and giving up on one that stays blank, and note actions as read-only. `tests/resume.test.ts`: resume steps in the run result, `loadResume` by folder or run name, and `browser_run` returning the retry and passing `resume_from`. `tests/engine/test_resume.py`: `resume_point`, `resume_steps`, the loop start and nudge text, `_install_nudges` draining after the library's hook, resume steps in the flow file, the resume hand-off, checkpoints (kept apart from flows, cleared only by their own run, kept by a stopped run), and the hand-off after a cut-off run. `tests/code.test.ts` (resuming): a stopped job keeps `scribe-session.json` and a finished one removes it, a rerun reopens the session with the saved replay and a carry-on prompt, and a gone session starts fresh; `tests/code.e2e.test.ts` reopens a session by id after the runtime restarted and finds its earlier messages. `tests/engine.e2e.test.ts` runs a page where clicking "One way" resets the date: a model that takes the nudge finishes; one that ignores it is stopped with its resume steps saved, and a retry with `resume_from` replays the cookie click and needs two model calls. `tests/sessionLogins.test.ts`: remembered logins (domains from a URL, hosts, and wildcards; the engine payload with values; no process env), redaction next to punctuation and in carried-over turns, a remembered login replacing a configured one in the notes, ForgeQE's test runs getting the env names with the output redacted, and the `logins` tool's remember/list/clear without the password in any result. `tests/engine/test_session_logins.py`: remembered values as placeholders on every sign-in domain, env values still working, `step_outcomes`, and `making_progress`. `tests/tui.test.tsx` renders a monitor round's card in the transcript and checks the **Your turn** dialog holds a tool until **Done, continue**.
561
+ - `tests/skills.test.ts`: `skills:` parsing; the prebuilt skills loading cleanly; precedence and `overrides` across user, project, the repo's own folder, and `dirs`; the repo's `.claude` skills only with `external`; the default and opt-in `agents`; `disable` and unknown names; every validation problem (including the unquoted `: ` hint); the per-agent `skill` permission and `skills.paths` in the runtime config; links readable through and removed without touching the skill; `browserSkills` given and choose, unknown names, and the remembered choice; the engine request through a stub engine and `skills` back on the result; the skills catalogue in the environment notes; `newSkill`, `setSkillDisabled` keeping comments, and `ignoredNote`; the overview and `/skills`; and `forgeqe skills new/show/disable/enable/check` end to end. `tests/code.e2e.test.ts` checks, against the real agent runtime, that Quill's skill listing has only the registry's skills for it, an allowed skill's text arrives, and a disabled skill, the repo's `.opencode` and `.claude` skills, the runtime's built-in skill, and `~/.claude/skills` stay out unless `external` adds them through the registry. `tests/engine/test_skills.py`: `choose_skills` order, the cap of 3, errors and an empty catalogue without a model call; `skills_block` within `skills_max_chars`; the request fields.
562
+ - `tests/desktop.test.ts`, `tests/mobile.test.ts`, `tests/scope.test.ts`, `tests/capabilities.test.ts`: the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. `<engine-python> -m pytest tests/desktop`: the desktop and mobile engines against fake drivers, a fake Appium server and a stand-in Maestro (any OS). The `*_live` tests need Windows or an emulator.
563
563
  - `<engine-python> -m pytest tests/engine`: the engine directly, with a scripted model, including `test_memory.py` (locators, confidence, identity, flows, secrets) and replay, trust mode, and self-healing against real Chrome. `test_brand.py` checks the overlay in real Chrome: the start page, trusted CDP clicks and keys dropped while locked and let through while acting, the unlocked state and step text on a page loaded mid-step, and a clean screenshot and DOM for the model. `WP_E2E_HEADED=1` runs the bun e2e test in a visible browser, with the overlay on.
@@ -9,13 +9,13 @@ It is built on what ForgeQE already has rather than beside it:
9
9
  | Need | Reused | Added |
10
10
  |---|---|---|
11
11
  | Understand the business | Product knowledge graph (`src/product`: routes, the conditions that refuse a request, record states, tables with personal data, services, flows, each with evidence) | Business Context Model (`src/business/context.ts`) |
12
- | Personas | Business personas (`src/personas`), the Persona agent, `/handle` commands | Intent, risk appetite, motivations, permissions, constraints, mistakes, relationships, version; three risk-oriented built-ins |
12
+ | Personas | Business personas (`src/personas`), Mask, `/handle` commands | Intent, risk appetite, motivations, permissions, constraints, mistakes, relationships, version; three risk-oriented built-ins |
13
13
  | Hypotheses | — | Pattern catalogue (`src/business/hypotheses.ts`), Scenario Strategist model (`src/business/think.ts`) |
14
14
  | Execution | API workbench (`sendCall`: its address, sign-in and masking checks), env.yaml, API contracts; `browser_run` with a persona's brief | Investigation plans and executor (`investigation.ts`, `execute.ts`) |
15
15
  | Outcome validation | — | Business Outcome Oracles and outcome classes (`oracle.ts`) |
16
16
  | Reporting | `md` escaping (`src/evidence/review.ts`) | Findings, impact, exposure, four views (`report.ts`) |
17
17
  | Memory | — | Append-only business memory (`store.ts`) |
18
- | Orchestration | ForgeQE's Orchestrator and its tools; custom-agent policy | `business_assurance` tool, its playbook, `forgeqe business` |
18
+ | Orchestration | ForgeQE's Atlas and its tools; custom-agent policy | `business_assurance` tool, its playbook, `forgeqe business` |
19
19
 
20
20
  ## The model
21
21
 
@@ -36,12 +36,12 @@ everything that decides what is allowed, what is true or what an outcome means i
36
36
 
37
37
  | Role | Where |
38
38
  |---|---|
39
- | Business Testing Orchestrator | ForgeQE's Orchestrator (`prompts/brain.md`, "Business assurance") through `business_assurance` |
39
+ | Business Testing Atlas | ForgeQE's Atlas (`prompts/brain.md`, "Business assurance") through `business_assurance` |
40
40
  | Business Discovery, Business Process | `buildBusinessContext` (code, from the product graph); `product_knowledge ask` (the investigator) for open questions |
41
- | Persona Intelligence | `pickPersona` (selection by intent, role and capability), `needsPersona` → the Persona agent, `business_persona` |
41
+ | Persona Intelligence | `pickPersona` (selection by intent, role and capability), `needsPersona` → Mask, `business_persona` |
42
42
  | Scenario Strategist, Business Risk, Misuse & Abuse | `HYPOTHESIS_PATTERNS` (code); the Scenario Strategist (`forgeqe-business-strategist`, no tools, a schema) |
43
43
  | Compliance | Personal-data and segregation-of-duties patterns; the compliance persona; the risk view |
44
- | Execution | `executeInvestigation` (API, by code); `browser_run` as the persona (the Orchestrator); a person (`observe`) |
44
+ | Execution | `executeInvestigation` (API, by code); `browser_run` as the persona (Atlas); a person (`observe`) |
45
45
  | Evidence & Investigation | `evaluate`, `classify`, `findingOf` |
46
46
  | Learning | `learn`: findings by pattern, proposals to personas, a person's decisions |
47
47
 
@@ -62,7 +62,7 @@ when none fits rather than misusing a legitimate one. Personas are versioned (`v
62
62
 
63
63
  **4. Autonomous execution.** `planFor` turns a hypothesis into steps through saved API contracts (matched by method and
64
64
  path template, values captured from the answer's key fields or schema) or browser steps; repeats and concurrent bursts;
65
- `{{name}}` placeholders. The Orchestrator fills what code cannot know and runs browser steps as the persona.
65
+ `{{name}}` placeholders. Atlas fills what code cannot know and runs browser steps as the persona.
66
66
  *Boundaries:* only an environment of env.yaml not named like production; every call that changes data approved by a person
67
67
  first; only a saved contract's call, on the API's own address; at most 20 steps and 20 repeats.
68
68
  *Validated by:* the end-to-end tests (refusal without approval, refusal on production, a race of five concurrent requests).
@@ -100,6 +100,6 @@ or an assumption.
100
100
  - **Persona societies and digital twins** (many autonomous personas in a simulation): concurrency bursts and multi-persona
101
101
  plans cover the races and handovers worth testing today; a simulation adds cost before it adds evidence.
102
102
  - **Direct database oracles**: a read-only `db` channel fits the existing data engine (`forgeqe db`, queries that only
103
- read); until then a person or the Orchestrator records what a query showed with `observe`.
103
+ read); until then a person or Atlas records what a query showed with `observe`.
104
104
  - **Model-written oracles**: deliberately not accepted from the strategist. Expectations come from code patterns, people,
105
105
  or plans a person can read, so a model cannot decide what counts as a failure.
@@ -8,8 +8,6 @@ real Docker (and is skipped without it):
8
8
  - A tests container that reaches the database by name and writes its results into the repository as this machine's
9
9
  user.
10
10
 
11
- The `containers` job of `.github/workflows/ci.yml` runs both on GitHub's Docker. There, a skipped live test fails the job.
12
-
13
11
  ForgeQE uses Docker or Podman, when one is installed, for five jobs:
14
12
 
15
13
  - **Services a test run needs:** a database, a queue, a cache, or the API under test. The project declares them in
@@ -18,12 +16,12 @@ ForgeQE uses Docker or Podman, when one is installed, for five jobs:
18
16
  the tests can run without the real service.
19
17
  - **The repository's tests in a container:** `run_tests` runs the command the user confirmed in an image, instead of
20
18
  on this machine, after starting the services the tests need.
21
- - **A workspace for the coding agents:** with `containers.workspace`, Scribe's shell commands (build, restore, run,
19
+ - **A workspace for the coding agents:** with `containers.workspace`, Quill's shell commands (build, restore, run,
22
20
  git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.
23
- - **A browser in a container:** with `browser.provider: docker`, the browser agent, the replay and Scribe's live
21
+ - **A browser in a container:** with `browser.provider: docker`, the browser agent, the replay and Quill's live
24
22
  browser drive Chromium in a container of Microsoft's Playwright image.
25
23
 
26
- Scribe also has a `testcontainers` skill, for tests that start their own services from code (below).
24
+ Quill also has a `testcontainers` skill, for tests that start their own services from code (below).
27
25
 
28
26
  ForgeQE's agent uses them through two tools, `services` and `mock_service`. The CLI has `forgeqe services`. When
29
27
  neither Docker nor Podman is on PATH, the agent isn't offered these tools.
@@ -167,7 +165,7 @@ containers:
167
165
 
168
166
  With `containers.workspace` set:
169
167
 
170
- - **Scribe's shell runs in the container.** The agent runtime runs each command as `$SHELL -c <command>`. ForgeQE
168
+ - **Quill's shell runs in the container.** The agent runtime runs each command as `$SHELL -c <command>`. ForgeQE
171
169
  sets `SHELL` to a script that runs the same command with `docker exec … sh -c <command>`, in the same folder,
172
170
  in the workspace container. A folder outside the repository is refused, since the container has only the
173
171
  repository. The agent is told its commands run in a Linux container of that image.
@@ -219,9 +217,9 @@ containers:
219
217
  launch, which a running browser does not have.
220
218
  - A run explored in a container is replayed in one even when the provider is changed back later (`run.json`).
221
219
 
222
- ## Testcontainers (Scribe)
220
+ ## Testcontainers (Quill)
223
221
 
224
- When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Scribe
222
+ When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Quill
225
223
  loads the `testcontainers` skill. It reuses the repository's containers and fixtures, pins images, waits for
226
224
  readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the
227
225
  host network, the Docker socket, or a `docker` command from a test. These containers belong to the tests in the
@@ -282,7 +280,7 @@ text could mount the whole disk or run privileged, so:
282
280
  - A container gets only its `env` and `secrets`.
283
281
  - Logs and errors have secret values replaced with `***`.
284
282
  - **Not in the agents' shell:** `docker`, `podman`, `nerdctl`, `docker-compose` and `podman-compose` are denied in the
285
- shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools.
283
+ shell of ForgeQE's agent and of Quill. So the only way to start a container is these tools.
286
284
  - **Asked first:** `services up` and `mock_service` ask the user before starting, as `run_tests` does.
287
285
 
288
286
  ## Code
@@ -299,7 +297,7 @@ text could mount the whole disk or run privileged, so:
299
297
  | `src/containers/masks.ts` | The repository's credential files and folders, covered in every container that mounts it |
300
298
  | `src/containers/browser.ts` | `browser.provider: docker`: the browser container, its token gateway, the endpoint |
301
299
  | `src/containers/command.ts` | `forgeqe services` |
302
- | `skills/testcontainers/SKILL.md` | Scribe's Testcontainers skill |
300
+ | `skills/testcontainers/SKILL.md` | Quill's Testcontainers skill |
303
301
  | `src/mcp/containertools.ts` | The agent's `services` and `mock_service` |
304
302
 
305
303
  Tests: `bun test tests/containers.test.ts tests/workspace.test.ts`, which use a fake runtime that records each command
@@ -55,12 +55,12 @@ forgeqe agent approve <id>
55
55
 
56
56
  Type the id to confirm. The page shows it Active, with version 1.0.0. Commit `.forgeqe/agents` so your team has it.
57
57
 
58
- ## 4. Ask it from the Orchestrator
58
+ ## 4. Ask it from Atlas
59
59
 
60
60
  In a new chat (web or `forgeqe`), ask: "Ask the defect retest agent to retest yesterday's resolved defects".
61
61
 
62
- You should see the Orchestrator hand it over (custom_agent), the agent's questions come to you in the same chat, and the
63
- reply come back. Its run shows "From the Orchestrator" in its history.
62
+ You should see Atlas hand it over (custom_agent), the agent's questions come to you in the same chat, and the
63
+ reply come back. Its run shows "From Atlas" in its history.
64
64
 
65
65
  ## 5. Another system: a read and a change
66
66
 
@@ -94,7 +94,7 @@ step that could reach real customers it asks you itself.
94
94
 
95
95
  ## 8. Turn it off and on
96
96
 
97
- On Agents, Custom agents, **Select agents**, pick it, **Disable**, type 1. Ask the Orchestrator to use it: it is refused.
97
+ On Agents, Custom agents, **Select agents**, pick it, **Disable**, type 1. Ask Atlas to use it: it is refused.
98
98
  Enable it again. Then try Settings, Custom agents, off: the builder is closed and nothing runs; turn it back on.
99
99
 
100
100
  ## 9. The record
package/docs/DESKTOP.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # ForgeQE desktop: thick-client automation
2
2
 
3
- Status: runs on Windows. The `desktop` job of `.github/workflows/ci.yml` (GitHub's `windows-2022`) installs the
4
- engine and the pinned UFO², replays Notepad live with the pywinauto driver and through `forgeqe desktop replay`, heals a
5
- moved control from the live window, and runs a whole explore: UFO² drives Notepad with a scripted model behind an
6
- OpenAI-compatible server, the action is recorded with the control's AutomationId, and the recording replays. Not yet
7
- run: explore with a real model (the job has no key), and your own apps. See
3
+ Status: runs on Windows. The live tests there install the engine and the pinned UFO², replay Notepad with the
4
+ pywinauto driver and through `forgeqe desktop replay`, heal a moved control from the live window, and run a whole
5
+ explore: UFO² drives Notepad with a scripted model behind an OpenAI-compatible server, the action is recorded with the
6
+ control's AutomationId, and the recording replays. Not yet run: explore with a real model, and your own apps. See
8
7
  [Before first use on Windows](#before-first-use-on-windows).
9
8
 
10
9
  ForgeQE drives web apps through Chrome. The desktop engine does the same for Windows thick clients (Win32, WinForms,
@@ -345,11 +344,10 @@ nightly workflow (`ci/desktop-runner/desktop-nightly.example.yml`), and `--junit
345
344
 
346
345
  UFO² is pinned to one commit. Moving it is checked before it is pinned:
347
346
 
348
- 1. The `ufo-update` job of `.github/workflows/ci.yml` runs weekly, or by hand (Run workflow, job `ufo-update`) with a commit. It sets up that UFO on
349
- Windows (`FORGEQE_UFO_COMMIT`, which takes a full 40-character commit id only), runs the adapter tests against its
350
- real code and a scripted explore of Notepad, and says in the job summary whether it passed.
347
+ 1. Set up that UFO on Windows (`FORGEQE_UFO_COMMIT`, which takes a full 40-character commit id only), then run the
348
+ adapter tests against its real code and a scripted explore of Notepad.
351
349
  2. When it passed: `bun scripts/ufo-bump.ts <commit>` writes the new pin into `src/desktop/setup.ts`,
352
- `py/forgeqe_desktop/ufo_runner.py` and this page. Run the tests and push; the Windows CI job tests the pin again.
350
+ `py/forgeqe_desktop/ufo_runner.py` and this page. Run the tests on Windows again before pushing.
353
351
 
354
352
  When it fails, the failing step names what changed in UFO (usually the action executor or the config layout that the
355
353
  adapter wraps). Keep the pin until the adapter is updated for it.
@@ -491,6 +489,6 @@ is not set, stopped at "No model in llms.json can …" (now healing is off for t
491
489
 
492
490
  1. The checks above.
493
491
  2. `forgeqe suite` and test cases from Azure DevOps, Jira and Xray for desktop workflows, with results written back.
494
- 3. Scribe: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo.
492
+ 3. Quill: export a workflow as pywinauto code (or C# with FlaUI) in the user's repo.
495
493
  4. App adapters where UIA falls short: Java Access Bridge, SAP GUI scripting, vision-only for Citrix.
496
494
  5. A pipeline template for a self-hosted Windows runner signed in to a desktop session.
package/docs/GRAPHIFY.md CHANGED
@@ -161,7 +161,7 @@ Graphify is part of every `forgeqe knowledge build`, installed and pinned by For
161
161
  - **Read:** `src/product/graphify.ts` maps the output onto ForgeQE's node ids and the Evidence model:
162
162
  - `EXTRACTED` becomes `observed`; `INFERRED` and `AMBIGUOUS` become `inferred`, each with `how: "graphify 0.9.103: …"`;
163
163
  - the file and line are kept, and ForgeQE takes the quote from the file itself.
164
- - **Use:** impact, Evidence's domain check, the Investigator's paths, and the Engineering view's modules and hotspots read
164
+ - **Use:** impact, Evidence's domain check, Digger's paths, and the Engineering view's modules and hotspots read
165
165
  the call graph (docs/prompts/graphify-evidence.md, Steps 2–5).
166
166
  - **Reasons in the code:** Graphify's rationale nodes are mostly Python docstrings, cut at 80 characters, and it reads no
167
167
  JSDoc. ForgeQE reads the whole comment from the file itself (`src/product/why.ts`) for any of `/** */`, `//`, `#` and
package/docs/MOBILE.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # ForgeQE mobile: Android and iOS apps
2
2
 
3
- Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. The CI job
4
- The `android` job of `.github/workflows/ci.yml` runs it on an Android emulator: Appium explores and replays the
5
- emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but
6
- no CI job tests it yet (it needs a macOS runner with a simulator).
3
+ Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. On an
4
+ Android emulator the live tests go further: Appium explores and replays the emulator's Settings app, and Maestro
5
+ replays the same workflow. iOS runs the same code with the XCUITest driver, but is untested (it needs a macOS machine
6
+ with a simulator).
7
7
 
8
8
  ForgeQE drives mobile apps two ways, and one workflow format runs on both:
9
9
 
@@ -360,8 +360,8 @@ mobile:
360
360
  run folder. Neither the user name nor the key is passed to the flows' environment.
361
361
  - `maestro` and the `hyperexecute` CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
362
362
  their environment; only the mobile engine itself holds them.
363
- - The `testmu` job of `.github/workflows/ci.yml` (Run workflow, job `testmu`) runs all three on TestMu (Appium, Maestro with a workflow, a team flow)
364
- with TestMu's Wikipedia sample app, once the repository has the secrets `LT_USERNAME` and `LT_ACCESS_KEY`.
363
+ - `samples/mobile-testmu` runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
364
+ Wikipedia sample app, once `LT_USERNAME` and `LT_ACCESS_KEY` are set.
365
365
 
366
366
  ## Security
367
367