@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.
- package/HOW_TO_USE.md +190 -189
- package/README.md +12 -12
- package/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/docs-site/architecture-map/index.html +6 -6
- package/dist/docs-site/docs/architecture/index.html +31 -31
- package/dist/docs-site/docs/containers/index.html +9 -10
- package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
- package/dist/docs-site/docs/desktop/index.html +8 -10
- package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
- package/dist/docs-site/docs/graphify/index.html +1 -1
- package/dist/docs-site/docs/index.html +214 -165
- package/dist/docs-site/docs/mobile/index.html +6 -6
- package/dist/docs-site/docs/model-routing/index.html +58 -10
- package/dist/docs-site/docs/product-graph/index.html +3 -3
- package/dist/docs-site/docs/product-views/index.html +1 -1
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/web-app/index.html +6 -6
- package/dist/forgeqe.js +1854 -1823
- package/dist/template.html +69 -69
- package/dist/web/assets/Agent-CKlqZ4Eq.js +8 -0
- package/dist/web/assets/ApiTests-MARHrxdT.js +10 -0
- package/dist/web/assets/Browse-B2QYflth.js +2 -0
- package/dist/web/assets/Chat-DRkmiF4r.js +5 -0
- package/dist/web/assets/{CommandPalette-Dkb2OOQX.js → CommandPalette-DMpA8mBk.js} +1 -1
- package/dist/web/assets/{Compare-Esy5n-kR.js → Compare-DD1mmRB4.js} +1 -1
- package/dist/web/assets/Cost-B6BCZIxQ.js +1 -0
- package/dist/web/assets/Data-CpKR98gM.js +6 -0
- package/dist/web/assets/{Desktop-CsEWht_F.js → Desktop-xUqFsJPz.js} +1 -1
- package/dist/web/assets/{DesktopReview-BUfM70Ju.js → DesktopReview-CnLC9yMR.js} +1 -1
- package/dist/web/assets/{Evidence-DEDtYoZr.js → Evidence-CWcZvoOu.js} +1 -1
- package/dist/web/assets/{Explore-AXLdkUHT.js → Explore-DuDQqmEn.js} +2 -2
- package/dist/web/assets/{Features-DcDbE20H.js → Features-BJTX7utr.js} +1 -1
- package/dist/web/assets/{Flags-CSKvhaye.js → Flags-BeG_gA9O.js} +2 -2
- package/dist/web/assets/{Flaky-B48EUqK0.js → Flaky-DulQuBGi.js} +1 -1
- package/dist/web/assets/Impact-BvGp2rYG.js +3 -0
- package/dist/web/assets/Jobs-BXqBtH8C.js +5 -0
- package/dist/web/assets/KindPage-BGEobnS3.js +6 -0
- package/dist/web/assets/Migration-D1JVUQM0.js +2 -0
- package/dist/web/assets/{Product-CDAzt1hG.js → Product-Y1dUpFfW.js} +2 -2
- package/dist/web/assets/{Production-sUNlZeSF.js → Production-DY9Gddm8.js} +1 -1
- package/dist/web/assets/{Quality-C9Z0FYjK.js → Quality-B7M1Zna2.js} +1 -1
- package/dist/web/assets/{Readiness-Qse6Oxo-.js → Readiness-BtQ8RbJh.js} +1 -1
- package/dist/web/assets/Record-W7ojjKNu.js +2 -0
- package/dist/web/assets/Regression-eV2N8m2P.js +5 -0
- package/dist/web/assets/{RelationGraph-CV8NXesZ.js → RelationGraph-C7K_BfEF.js} +1 -1
- package/dist/web/assets/{Reports-C4U0fIue.js → Reports-D4v66mJR.js} +2 -2
- package/dist/web/assets/Response-B_2R4FjH.js +4 -0
- package/dist/web/assets/{RunDiff-DUREV_nk.js → RunDiff-Br5uN0Gu.js} +1 -1
- package/dist/web/assets/Runs-DvjM0xfG.js +2 -0
- package/dist/web/assets/{Steps-Bt1rmBc3.js → Steps-DULf0k5w.js} +1 -1
- package/dist/web/assets/{TestCases-CVSJIPFl.js → TestCases-Dc6bjNO5.js} +1 -1
- package/dist/web/assets/TestData-DWPcmhz4.js +2 -0
- package/dist/web/assets/{TestDebt-D5NgM75J.js → TestDebt-BpYav19x.js} +1 -1
- package/dist/web/assets/Tosca-Bw-j_W-Q.js +3 -0
- package/dist/web/assets/{WhatsNew-BtwiaM4Q.js → WhatsNew-CRaJjaut.js} +1 -1
- package/dist/web/assets/agentLink-Dxy-IYQv.js +1 -0
- package/dist/web/assets/{dataParts-CxOVAp8R.js → dataParts-Bwh_DOs0.js} +1 -1
- package/dist/web/assets/{families-BLmK1isi.js → families-C47Nrp6j.js} +1 -1
- package/dist/web/assets/filters-Ca7by1u0.js +1 -0
- package/dist/web/assets/{fold-GeY4MiIu.js → fold-Bd5-4sjR.js} +1 -1
- package/dist/web/assets/frame-BliO67Wd.js +18 -0
- package/dist/web/assets/index-B1U2Jkz_.js +67 -0
- package/dist/web/assets/index-Ce2EYROA.css +2 -0
- package/dist/web/assets/{logos-COH9UQgY.js → logos-CgYEz85j.js} +1 -1
- package/dist/web/assets/{markdown-DoF5NaZz.js → markdown-DSp3tP8i.js} +5 -5
- package/dist/web/assets/{paletteCommands-BlCwQKjX.js → paletteCommands-CGFwmBxN.js} +1 -1
- package/dist/web/assets/{parts-Bx4MyFXM.js → parts-DlmbVDzO.js} +1 -1
- package/dist/web/assets/{productParts-DTtbe-g-.js → productParts-CL2tDIGF.js} +1 -1
- package/dist/web/assets/{qualityParts-DbH_PNDs.js → qualityParts-Bs34Dzva.js} +1 -1
- package/dist/web/assets/recordTest-DHsT3pOe.js +1 -0
- package/dist/web/assets/{rows-vliRYT-Z.js → rows-Baid_ASt.js} +1 -1
- package/dist/web/assets/{segmented-Bisag9SK.js → segmented-D0PvwMW_.js} +1 -1
- package/dist/web/assets/{usePageChat-B-4sWqvn.js → usePageChat-lmgkgnb4.js} +1 -1
- package/dist/web/index.html +5 -5
- package/docs/ARCHITECTURE.md +30 -30
- package/docs/BUSINESS_ASSURANCE.md +7 -7
- package/docs/CONTAINERS.md +8 -10
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
- package/docs/DESKTOP.md +8 -10
- package/docs/GRAPHIFY.md +1 -1
- package/docs/MOBILE.md +6 -6
- package/docs/MODEL_ROUTING.md +57 -9
- package/docs/PRODUCT_KNOWLEDGE.md +3 -3
- package/docs/PRODUCT_VIEWS.md +1 -1
- package/docs/WEB_APP.md +6 -6
- package/docs/demo-qi-commerce.md +30 -30
- package/docs/feature-test-prompts.md +3 -3
- package/docs/prompts/graphify-evidence.md +3 -3
- package/docs/security-data-flow.html +23 -23
- package/docs/user-guide.html +214 -165
- package/docs/walkthrough/hotfix-narration.md +19 -19
- package/docs/walkthrough/index.html +26 -26
- package/env.example.yaml +1 -1
- package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
- package/forgeqe-architecture.html +48 -48
- package/forgeqe.example.yaml +16 -10
- package/package.json +1 -1
- package/prompts/README.md +7 -7
- package/prompts/agent-builder.md +1 -1
- package/prompts/api-tests.md +1 -1
- package/prompts/brain.md +10 -4
- package/prompts/business-interview.md +3 -3
- package/prompts/business-persona.md +3 -3
- package/prompts/business-strategist.md +1 -1
- package/prompts/db-agent.md +3 -3
- package/prompts/doc-reader.md +2 -2
- package/prompts/heal.md +1 -1
- package/prompts/knowledge-agent.md +3 -3
- package/prompts/model-profile.md +1 -1
- package/prompts/page-differs.md +1 -1
- package/prompts/persona-own.md +3 -3
- package/prompts/talk.md +5 -4
- package/prompts/test-agent.md +2 -2
- package/prompts/test-plan.md +2 -2
- package/prompts/tosca-assistant.md +1 -1
- package/py/forgeqe_engine/copilot_gateway.py +1 -1
- package/py/forgeqe_engine/memory.py +48 -2
- package/py/forgeqe_engine/recordsession.py +31 -1
- package/py/forgeqe_engine/video.py +104 -20
- package/py/forgeqe_engine/webrecord_page.py +88 -7
- package/py/forgeqe_tosca/__init__.py +2 -2
- package/py/forgeqe_tosca/render.py +1 -1
- package/py/forgeqe_tosca/tsu.py +2 -2
- package/py/forgeqe_voice/worker.py +10 -2
- package/skills/playwright-automation/SKILL.md +102 -0
- package/skills/playwright-automation/references/dotnet.md +90 -0
- package/skills/playwright-automation/references/java.md +41 -0
- package/skills/playwright-automation/references/python.md +42 -0
- package/skills/playwright-automation/references/typescript.md +54 -0
- package/skills/test-data/SKILL.md +1 -1
- package/skills/writing-skills/SKILL.md +2 -2
- package/dist/web/assets/Agent-CNIwgz9P.js +0 -8
- package/dist/web/assets/ApiTests-CuflKFaz.js +0 -10
- package/dist/web/assets/Browse-D6cvDJW3.js +0 -2
- package/dist/web/assets/Chat-BwlScUXP.js +0 -5
- package/dist/web/assets/Cost-BIoJmbfg.js +0 -1
- package/dist/web/assets/Data-3Q5bGxT5.js +0 -6
- package/dist/web/assets/Impact-BTLqgWf6.js +0 -3
- package/dist/web/assets/Jobs-C2UViADN.js +0 -5
- package/dist/web/assets/KindPage-DBWC-d0o.js +0 -6
- package/dist/web/assets/Migration-TR5UJVZD.js +0 -2
- package/dist/web/assets/Record-BPd38INk.js +0 -2
- package/dist/web/assets/Regression-Brk_1yqk.js +0 -5
- package/dist/web/assets/Response-B1iCzkHo.js +0 -4
- package/dist/web/assets/Runs-B--vjy7q.js +0 -2
- package/dist/web/assets/TestData-_sZDpddH.js +0 -2
- package/dist/web/assets/Tosca-BcfNYUdZ.js +0 -3
- package/dist/web/assets/agentLink-BD93RYQ0.js +0 -1
- package/dist/web/assets/filters-YzD0tZES.js +0 -1
- package/dist/web/assets/frame-CaTNV7DF.js +0 -18
- package/dist/web/assets/index-9ELkRoKH.js +0 -67
- package/dist/web/assets/index-B_mKjNAi.css +0 -2
- package/dist/web/assets/recordTest-Brs1Sw9O.js +0 -1
- package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
- package/skills/playwright-typescript/SKILL.md +0 -36
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>More documentation</p>
|
|
121
121
|
<h1 class="topic-h"><img class="pix pix--title" src="../../img/icons/architecture.svg" alt="" width="40" height="40">Architecture</h1>
|
|
122
122
|
<article class="prose">
|
|
123
|
-
<p>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.
|
|
123
|
+
<p>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 (<code>py/forgeqe_desktop</code>, on UFO² and pywinauto), Android and iOS apps (<code>py/forgeqe_mobile</code>, on Appium and Maestro), and the team's databases (<code>py/forgeqe_data</code>, 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 <code>databases:</code> names.</p>
|
|
124
124
|
<p>The single-view map of subagents, tools, and capabilities is <a href="https://forgeqe.github.io/architecture-map/components/"><code>forgeqe-architecture.html</code></a> (<code>forgeqe docs --open</code>). Suite <code>report.html</code> includes the browser agent's token counts, and a cost in the machine's currency when the profile has a price.</p>
|
|
125
125
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>┌───────────────────────────────────────────────┐ ┌──────────────────────────────┐
|
|
126
126
|
│ OpenTUI shell or forgeqe run --plain │ MCP │ Agent runtime │
|
|
127
127
|
│ config, llms.json profile, /stop, transcript │◄──────►│ "forgeqe" agent: decides, │
|
|
128
128
|
│ ForgeQE tools (src/mcp), 127.0.0.1 + token │ HTTP │ edits files, runs commands │
|
|
129
|
-
│ write_test / heal_tests open
|
|
129
|
+
│ write_test / heal_tests open Quill sessions │ │ Quill: writes, heals, and │
|
|
130
130
|
│ │ │ reviews tests in your repo │
|
|
131
131
|
└─────────────────────┬─────────────────────────┘ └──────────────────────────────┘
|
|
132
132
|
stdin: request JSON, later "stop"
|
|
@@ -196,13 +196,13 @@
|
|
|
196
196
|
<p><strong>The control, and locators checked on the live page.</strong> Before the step's actions run (the library's new-step callback comes before <code>multi_act</code>), <code>_point_at_controls</code> re-points each element action from the node under the pointer to the control a user acts on (an icon inside a label or button becomes the label or button) and <code>verify_locators</code> checks each candidate on the live page: role and name through <code>Accessibility.queryAXTree</code> (the accessible names Playwright's <code>getByRole</code> uses), ids, CSS, attributes, text, and XPath in the page. A locator is <code>verified</code> when it finds exactly that element (or something inside it). Verified locators come first, so <code>best_locator</code> is one that worked.</p>
|
|
197
197
|
<p><strong>Real clicks, not scripts.</strong> The agent's prompt (<code>CAPTURE_SYSTEM_MESSAGE</code>) asks it to act only through browser actions, and <code>click_selector</code> gives it a real mouse click (scroll into view, refuse when covered, <code>Input.dispatchMouseEvent</code>) on an element it found by CSS, captured like any click.</p>
|
|
198
198
|
<p><strong>Checks with their element.</strong> <code>record_check</code> finds the smallest visible element showing the text and the section it sits in, each with verified locators (<code>element</code>, <code>container</code> in <code>workflow.yaml</code> <code>checks</code>), and takes <code>dynamic</code> for live data (today's date, a price, a count).</p>
|
|
199
|
-
<p>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.
|
|
199
|
+
<p>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.</p>
|
|
200
200
|
<h2 id="page-memory-memorypy-replaypy"><a href="#page-memory-memorypy-replaypy" class="hash">#</a>Page memory (<code>memory.py</code>, <code>replay.py</code>)</h2>
|
|
201
201
|
<p>Files under <code>memory.dir</code> (default <code>.forgeqe/memory</code> next to <code>forgeqe.yaml</code>, or <code>~/.forgeqe/memory</code> when there is no config file), written atomically at the end of a run:</p>
|
|
202
202
|
<ul>
|
|
203
203
|
<li><code>pages/&lt;host>/&lt;path>.json</code>: one per page template. The key is host (plus port) and path; segments that are numbers or look generated become <code>*</code>, and the query string is dropped. Each element stores tag, role, accessible name, text, stable attributes (never <code>value</code>), its locators, <code>best</code>, <code>confidence</code>, visit and use counts, and <code>first_seen</code> / <code>last_seen</code> / <code>last_used</code> / <code>last_updated</code>. Pages keep at most 400 elements; past that, elements never used and least recently seen go first.</li>
|
|
204
204
|
<li><code>flows/&lt;goal>-&lt;hash>.json</code>: 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.</li>
|
|
205
|
-
<li><code>scribe-notes.json</code>: written by the coding side (<code>src/code/notes.ts</code>), not the engine: per repository,
|
|
205
|
+
<li><code>scribe-notes.json</code>: written by the coding side (<code>src/code/notes.ts</code>), not the engine: per repository, Quill's notes from its reading turn and the tests jobs wrote there.</li>
|
|
206
206
|
</ul>
|
|
207
207
|
<p><strong>Observe.</strong> Before each agent step, <code>_on_new_step</code> passes the engine library's <code>selector_map</code> (<code>EnhancedDOMTreeNode</code>s) to <code>MemoryStore.observe</code>. 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, <code>record_stale</code> marks the recorded entry's dead locators as missed and failed, and the flow is saved against the new entry. <code>flow_step</code> lists the locators that matched on the page at that moment ahead of those only seen on earlier visits.</p>
|
|
208
208
|
<p><strong>Confidence</strong> is <code>100 × base × uniqueness × stability × reliability</code>, clamped to 1–99:</p>
|
|
@@ -295,9 +295,9 @@
|
|
|
295
295
|
</tbody>
|
|
296
296
|
</table></div>
|
|
297
297
|
<p>The tools stay registered with the agent runtime for the whole session; only the switches change, so the conversation is never restarted. <code>tests/scope.test.ts</code> covers routing, gating, sticky turns, config, hostile ids, and the MCP list change. <code>tests/brain.e2e.test.ts</code> checks against the real agent runtime that a turn sees only its tools and that <code>use_capabilities</code> continues the request.</p>
|
|
298
|
-
<h2 id="
|
|
298
|
+
<h2 id="quill-the-coding-agent-srccode"><a href="#quill-the-coding-agent-srccode" class="hash">#</a>Quill, the coding agent (<code>src/code</code>)</h2>
|
|
299
299
|
<p>The test-writing loop used by <code>forgeqe code</code>, by <code>forgeqe suite</code> with a repo, and by the <code>write_test</code> tool, which is how ForgeQE's agent writes tests in the shell and <code>forgeqe run</code>. It uses the agent runtime SDK and the runtime binary that <code>code/runtime.ts</code> finds.</p>
|
|
300
|
-
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>run dir ──► handoff.ts ──► handoff.md ──►
|
|
300
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>run dir ──► handoff.ts ──► handoff.md ──► Quill session (forgeqe-test agent) ─► test file + command
|
|
301
301
|
▲ │
|
|
302
302
|
├──── fix prompt: exit code + output ◄── testrun.ts (ForgeQE runs it, watches for a browser)
|
|
303
303
|
│ │ exit 0 with a browser
|
|
@@ -310,16 +310,16 @@
|
|
|
310
310
|
<tbody>
|
|
311
311
|
<tr><td><code>handoff.ts</code></td><td>Builds <code>handoff.md</code> from <code>run.json</code>, <code>workflow.yaml</code>, 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 (<code>run.json</code> <code>browser</code>), steps in order with values and the JavaScript the agent ran, each group led by the browser agent's note from that step (<code>process.env.NAME</code> for secrets), best and ranked locators with confidence (at most <code>MAX_LOCATORS</code> = 4, under <code>MIN_CONFIDENCE</code> = 30% dropped unless nothing else is left), and a table of each page's other elements (up to <code>MAX_ELEMENTS</code> = 8 of <code>MAX_PAGES</code> = 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 (<code>workflow.yaml</code> <code>checks</code>), each with the locator the replay matched on the last page when the counts agree</td></tr>
|
|
312
312
|
<tr><td><code>prompt.ts</code></td><td><code>TEST_RULES</code> (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 <code>live_browser_*</code> tools once a step has failed), the result JSON schema (<code>status</code>, <code>blocked_reason</code>, <code>remote_browser</code>, <code>test_file</code>, <code>command</code>, <code>reused</code>, <code>changed</code>, <code>notes</code>), 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</td></tr>
|
|
313
|
-
<tr><td><code>review.ts</code></td><td>The <code>forgeqe-review</code> agent: prompt, <code>REVIEW_SCHEMA</code> (<code>approved</code>, <code>summary</code>, <code>issues[{file, problem, fix}]</code>), and <code>openReviewer</code>, a second, read-only
|
|
313
|
+
<tr><td><code>review.ts</code></td><td>The <code>forgeqe-review</code> agent: prompt, <code>REVIEW_SCHEMA</code> (<code>approved</code>, <code>summary</code>, <code>issues[{file, problem, fix}]</code>), and <code>openReviewer</code>, a second, read-only Quill session opened on the first passing run and kept for later attempts. <code>reviewPrompt</code> inlines the checks from the handoff and the changed files (<code>changedFiles</code>: 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</td></tr>
|
|
314
314
|
<tr><td><code>runtime.ts</code></td><td>Maps the <code>llms.json</code> profile to an agent runtime provider, builds the config, starts the agent runtime server, and drives one session over the SDK. With <code>resume</code>, <code>openSession</code> reopens that session with <code>session.get</code> (the runtime keeps sessions on disk, so their messages survive a restart) and sets <code>resumed</code>; when it is gone, a new one is created. <code>FailedCommands</code> counts each exact shell command the agent runs that exits non-zero; at <code>stallAfter</code> failures of one command the turn is aborted and <code>prompt()</code> returns <code>stalled</code> (<code>command</code>, <code>count</code>, the last 40 lines of output). <code>resetStall()</code> clears the counts <code>READ_AGENT</code> (<code>forgeqe-read</code>) has the test agent's instructions with <code>edit</code> and <code>live_*</code> denied; the config builder takes it in <code>agents</code>, and a prompt picks it with <code>agent</code>. <code>PromptOptions</code> also carries <code>structured</code> (off: no JSON answer) and <code>tools</code> (per-prompt switches, used only for <code>live_*</code>: the agent runtime keeps them for later prompts, and <code>true</code> would override the agent's path rules for file tools)</td></tr>
|
|
315
315
|
<tr><td><code>livebrowser.ts</code></td><td><code>liveBrowser(runDir)</code>: the <code>live</code> MCP server for the agent, Microsoft's Playwright MCP (<code>npx -y @playwright/mcp@0.0.84 --config …</code>), with a config written to <code>&lt;run>/live-browser/config.json</code> from <code>run.json</code> <code>browser</code> (channel or executable, headless, viewport, locale, time zone, user agent) and snapshots and screenshots saved in that folder. <code>null</code> without <code>npx</code>. The loop switches its tools (<code>live_*</code>) on per prompt once a step fails</td></tr>
|
|
316
316
|
<tr><td><code>pagefacts.ts</code></td><td>What a step met that a test handles differently: <code>frameSelector</code> for a step's frame, <code>isAdStep</code> (an ad host's frame, or <code>#google_vignette</code>), and <code>AD_HOSTS</code> / <code>AD_ROUTE</code> for blocking them. <code>handoff.ts</code> renders <code>covered_by</code>, <code>bypass</code> and <code>frame</code> under each step and adds "What covered the page before a click", "Ads on these pages", and "State the run started with" (from <code>run.json</code> <code>sessions_restored</code>); <code>replay.ts</code> skips ad steps and reaches frame steps through <code>frameLocator</code></td></tr>
|
|
317
317
|
<tr><td><code>replay.ts</code></td><td>The replay check. <code>replayScript(steps)</code> turns <code>workflow.yaml</code> into <code>flow.mjs</code>, one <code>step(n, action, run)</code> per recorded step, with each locator rebuilt from its type and value (<code>locatorExpr</code>), text typed with <code>pressSequentially</code>, secrets read with <code>env(NAME)</code> and one-time codes made with <code>totp(NAME)</code>; actions with no Playwright equivalent are marked "not replayed". <code>alternatives.mjs</code> holds each step's other locators. <code>ensurePlaywright</code> installs <code>playwright-core</code> (<code>PLAYWRIGHT_VERSION</code>) with Bun into <code>~/.forgeqe/tools</code> and removes older versions. <code>replayRun</code> writes a runner that launches the run's browser (<code>replayOptions</code>: 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 <code>&lt;setup>-page-N.aria.yml</code> in <code>ReplayPass.pages</code>, 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 <code>--enable-automation</code> and adds <code>--disable-blink-features=AutomationControlled</code>. <code>replaySection</code> 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, <code>reachedPastFailures</code>, reads as a working script with those steps to judge, and <code>replayFailed</code> 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 (<code>findCheck</code>: 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 <code>ReplayPass.checks</code>; for a heading match, <code>sectionOf</code> adds <code>section</code> (the element <code>aria-labelledby</code> the heading, else the <code>section</code>/<code>article</code>/region it heads, else the element after it or after its only-child wrapper) with a stable locator (test id, id, or <code>aria-label</code>, else empty) and its visible link and list item counts</td></tr>
|
|
318
318
|
<tr><td><code>testrun.ts</code></td><td>Runs the reported command with <code>sh -c</code> in the repo (<code>CI=1</code>, <code>PLAYWRIGHT_HTML_OPEN=never</code>, no colour), with a timeout. <code>promptOutput</code> makes the prompt's copy of a failed run: <code>withoutPageDumps</code> takes out each "Aria snapshot:" block Playwright puts in a failed assertion, then <code>headAndTail</code> keeps the first 8 KB and the last 4 KB; the full output goes to <code>&lt;run>/test-runs/attempt-N.log</code> and the first page dump to <code>attempt-N-page.aria.yml</code>. While it runs it samples the process tree (<code>ps -A -o pid=,ppid=,args=</code> every 250 ms; <code>Win32_Process</code> every 1.5 s on Windows) for browsers at or below the command that carry an automation switch (<code>--remote-debugging-pipe</code>, <code>--remote-debugging-port</code>, <code>-juggler-pipe</code>, <code>--inspector-pipe</code>, <code>-marionette</code>) and returns them as <code>browsers</code></td></tr>
|
|
319
|
-
<tr><td><code>loop.ts</code> (retries)</td><td>Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a <code>Tried</code> entry:
|
|
319
|
+
<tr><td><code>loop.ts</code> (retries)</td><td>Each failed attempt (a failed run, a run that opened no browser, a rejected review) adds a <code>Tried</code> entry: Quill's <code>tried</code> items from its result (else its notes), the failure, and <code>failureFacts</code> of the output (the last "waiting for" locator of Playwright's call log, and the element that "intercepts pointer events"), with <code>again</code> when an earlier entry failed on the same locator. <code>nextAttemptPrompt</code> renders them with <code>triedSection</code>; <code>runHeal</code> keeps the same list from each test's <code>reason</code> and passes it to <code>healNextPrompt</code>. The attempt log, and so <code>scribe-mistakes.jsonl</code>, uses the <code>tried</code> items too</td></tr>
|
|
320
320
|
<tr><td><code>notes.ts</code></td><td><code>scribe-notes.json</code> in <code>memory.dir</code>: per repository, the reading turn's notes (<code>saveNotes</code>), when they were written, and up to 15 tests jobs wrote there (<code>addWrittenTest</code> on approval). <code>readNotes</code> returns nothing past 30 days; <code>notesSection</code> renders them for the first prompt</td></tr>
|
|
321
321
|
<tr><td><code>worktree.ts</code></td><td>The working tree before the job (<code>git status --porcelain -uall</code> with a hash of each file, and a copy of each file up to 5 MB, plus ForgeQE's <code>forgeqe.yaml</code> and <code>llms.json</code>); 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</td></tr>
|
|
322
|
-
<tr><td><code>loop.ts</code></td><td>The attempt loop, stop handling, the replay (<code>code.replay</code>, on by default in <code>forgeqe.yaml</code>: <code>replayRun</code> runs while
|
|
322
|
+
<tr><td><code>loop.ts</code></td><td>The attempt loop, stop handling, the replay (<code>code.replay</code>, on by default in <code>forgeqe.yaml</code>: <code>replayRun</code> runs while Quill reads the repo, then the handoff is rebuilt with the replay and the result goes to <code>code.json</code> <code>replay</code>; skipped when <code>canReplay</code> finds no step beyond navigation and no checks), the reading turn (<code>READ_AGENT</code>, no structured answer, with or without a replay; skipped when <code>readNotes</code> has notes for the repo, which go into the first prompt instead; its reply is saved as the notes), the live browser (<code>code.live_browser</code>, on by default in <code>forgeqe.yaml</code>; 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>code.stall_after</code>, default 5; counts reset after each ForgeQE test run), the loop guards (<code>code.repeat_after</code>, default 6: <code>RepeatedLooks</code>, look-ups whose answer is unchanged; <code>code.edit_after</code>, default 8: <code>RepeatedEdits</code>, edits to files already changed, and <code>FAILED_EDITS_AFTER</code> (3) edits that failed on lines the file no longer has; all reset after each test run, and each kind of loop gets <code>loopPrompt</code> once, then the job stops; a stop's notes say whether a test ever ran and which files were left changed (<code>stopFacts</code>), and its <code>test</code> event has <code>ran: false</code>), <code>code.json</code> (the run folder is recreated if it is gone, and a failed write is reported without changing the result), and resuming: <code>scribe-session.json</code> in the run folder (session id, repo, stage <code>reading</code>/<code>writing</code>, 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 <code>ProviderAuthError</code>/<code>APIError</code> it stays, and a rerun for the same run and repo passes it as <code>openSession</code>'s <code>resume</code>. The session file also keeps the files the job changed (<code>changed</code>, saved after every edit, read back by <code>carriedPaths</code>). A rerun of a job that stopped while writing opens a fresh session whose first message is <code>brief(carriedOnTask)</code>; one that stopped while reading reopens its session with <code>RESUMED_NOTE</code> plus the first prompt. Either skips the reading turn and takes <code>savedReplay</code> when the replay finished. <code>brief</code> (the job's target or existing test, environment, notes, plan, <code>planFindings</code>, handoff, attempts and files) also starts every later attempt and the session after a raised budget (<code>BUDGET_RAISED</code>)</td></tr>
|
|
323
323
|
</tbody>
|
|
324
324
|
</table></div>
|
|
325
325
|
<p><strong>Config.</strong> The whole agent runtime config is passed through the environment, so nothing is written into the repo. Keys are <code>{env:NAME}</code> references, never values. Profile mapping:</p>
|
|
@@ -346,10 +346,10 @@
|
|
|
346
346
|
<p><strong>Events.</strong> <code>event.subscribe</code> streams the session. Tool parts become <code>⚙</code> lines with repo-relative paths (<code>edit tests/login.spec.ts</code>, <code>bash npx playwright test …</code>). Finished text parts become the agent's thoughts, and <code>step-finish</code> tokens feed the token counter. Permission requests the config does not settle are declined straight away (<code>declineMessage</code> tells the model why), so the session never waits for a person and nothing outside the config is granted: not paths outside the repository, not repeated identical calls, and not the runtime's own "ask" defaults such as reading <code>.env</code> files.</p>
|
|
347
347
|
<p><strong>Environment and secrets.</strong> <code>openSession</code> starts <code>opencode serve</code> itself (<code>startServer</code>) with an explicit environment (<code>serverEnv</code>), never by changing <code>process.env</code>: the terminal's environment without ForgeQE's own secrets (<code>privateEnvNames</code>: every profile's key variable, tracker and alert credentials, variables <code>mcp:</code> servers reference) except those its config references as <code>{env:NAME}</code>, plus the values ForgeQE derives for MCP servers (<code>secrets</code>, e.g. base64 of email:token). A runtime plugin (<code>hideEnvPlugin</code>, the runtime's <code>shell.env</code> hook) then blanks all of those, and <code>OPENCODE_CONFIG_CONTENT</code>, in every shell command the agents run, so a prompt injected by a page under test cannot read the model key or tracker tokens. Saved-login variables stay visible: the tests read them.</p>
|
|
348
348
|
<p><strong>Result.</strong> Each prompt sends <code>format: {type: "json_schema"}</code>, and the model answers through the agent runtime's <code>StructuredOutput</code> tool. The result is read from the <code>message.updated</code> event (<code>info.structured</code>, or <code>info.error</code>), not from <code>session.messages</code>: in the pinned agent runtime that endpoint returns BadRequest for any session that used <code>format</code>.</p>
|
|
349
|
-
<p><strong>Loop.</strong> ForgeQE does not trust the model's claim that the test passes.
|
|
349
|
+
<p><strong>Loop.</strong> 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 (<code>promptOutput</code>), 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 <code>remote_browser</code>. A missing command sends a reminder. A failure whose output matches the previous one apart from numbers (<code>failureKey</code>) gets the repeated-failure prompt (look at the failing step before changing code); a third one in a row ends the loop as <code>failed</code> with the output in the notes. A stalled turn (one command failed <code>stall_after</code> times inside it) gets the stall prompt with the command and its output once; a second stall ends the loop as <code>failed</code> 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, <code>handoff.md</code> is rewritten if missing, and the next prompt says what was restored. Each of these counts as an attempt. The first <code>blocked</code> 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 <code>blocked</code>. The loop ends when a passing run is approved (<code>passed</code>), after <code>max_attempts</code> (<code>failed</code>), when the reviewer gives no verdict (<code>failed</code>), on <code>ProviderAuthError</code>, <code>APIError</code>, <code>ContextOverflowError</code>, or <code>ContentFilterError</code> (<code>failed</code>), or on Esc (<code>stopped</code>, which aborts the session). Both servers are closed in every case, and the reviewer's tokens are added to the result's usage.</p>
|
|
350
350
|
<p>The <code>forgeqe-review</code> agent overrides the permissions key by key (<code>AgentSpec.permission</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, and <code>bash</code> denied except <code>git diff*</code>, <code>git status*</code>, <code>git log*</code>, <code>git show*</code>, and <code>ls*</code>.</p>
|
|
351
351
|
<h2 id="skills-srcskills"><a href="#skills-srcskills" class="hash">#</a>Skills (<code>src/skills</code>)</h2>
|
|
352
|
-
<p>Agent Skills folders (<code>&lt;name>/SKILL.md</code>: YAML frontmatter with <code>name</code>, <code>description</code>, and ForgeQE's <code>agents</code>, then Markdown) that ForgeQE's agent,
|
|
352
|
+
<p>Agent Skills folders (<code>&lt;name>/SKILL.md</code>: YAML frontmatter with <code>name</code>, <code>description</code>, and ForgeQE's <code>agents</code>, then Markdown) that ForgeQE's agent, Quill, and the browser agent use. <code>skills:</code> in <code>forgeqe.yaml</code> becomes <code>SkillsConfig</code> (<code>enabled</code>, <code>projectDir</code>, <code>userDir</code>, <code>dirs</code>, <code>disable</code>, <code>external</code>, <code>browserMaxChars</code>).</p>
|
|
353
353
|
<div class="tbl"><table>
|
|
354
354
|
<thead>
|
|
355
355
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
@@ -362,13 +362,13 @@
|
|
|
362
362
|
</tbody>
|
|
363
363
|
</table></div>
|
|
364
364
|
<p><strong>Agent runtime.</strong> <code>openSession(…, skills)</code> keeps the skills whose <code>agents</code> include an audience of the session's agents (<code>AgentSpec.skills</code>: <code>forgeqe</code> for the brain, <code>scribe</code> for <code>forgeqe-test</code>, <code>forgeqe-read</code>, <code>forgeqe-review</code>, <code>forgeqe-find</code>, <code>forgeqe-heal</code>, <code>forgeqe-pr-review</code>, and <code>forgeqe-api</code>; none for <code>forgeqe-api-plan</code>, <code>forgeqe-explore-plan</code>, <code>forgeqe-defect-rca</code>, <code>forgeqe-refine</code>, <code>forgeqe-judge</code>, and <code>forgeqe-model-profile</code>, as <code>src/agents.ts</code> lists them), links them with <code>linkSkills</code>, and passes the folder as <code>skills.paths</code>. Each agent's <code>skill</code> permission is <code>{"*": "deny", &lt;name>: "allow", …}</code> for its audience, or <code>"deny"</code> with none, so the runtime's built-in skills and a repo's <code>.opencode/skills</code> stay unloadable and out of the listing the model chooses from. <code>OPENCODE_DISABLE_EXTERNAL_SKILLS=1</code> and <code>OPENCODE_DISABLE_CLAUDE_CODE_SKILLS=1</code> turn off the runtime's own discovery of <code>~/.claude/skills</code>, <code>~/.agents/skills</code>, and the project's. The links folder and each skill folder (and their real paths) are added to <code>external_directory</code> and made read-only: added to the session's protected paths, or, for a session without them, passed as <code>readOnly</code> (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 <code>skill</code> tool calls show as "Using skill NAME" and are collected in <code>skillsUsed</code>, which <code>runCodeAgent</code> and <code>runHeal</code> put on their results. <code>SKILL_RULE</code> in each agent's prompt says to load a skill whose description fits the job and that the prompt wins where they disagree.</p>
|
|
365
|
-
<p><strong>Browser runs.</strong> <code>environmentNotes</code> lists the browser skills for ForgeQE's agent, and <code>browser_run</code> and <code>run_test_cases</code> take <code>skills</code> (names). <code>executeRun</code> calls <code>browserSkills</code> and sends the result in the engine request; the engine chooses (<code>choose_skills</code>) or uses them, adds the text within <code>skills_max_chars</code>, logs "Skills for this run: …" (and the ones left out for size), and writes <code>skills</code> to <code>run.json</code> only when it decided, so a replay that finished without the agent leaves the choice open. <code>run.done</code> in the session log, <code>RunResult.skills</code>, and the report's case header carry them; a case's
|
|
365
|
+
<p><strong>Browser runs.</strong> <code>environmentNotes</code> lists the browser skills for ForgeQE's agent, and <code>browser_run</code> and <code>run_test_cases</code> take <code>skills</code> (names). <code>executeRun</code> calls <code>browserSkills</code> and sends the result in the engine request; the engine chooses (<code>choose_skills</code>) or uses them, adds the text within <code>skills_max_chars</code>, logs "Skills for this run: …" (and the ones left out for size), and writes <code>skills</code> to <code>run.json</code> only when it decided, so a replay that finished without the agent leaves the choice open. <code>run.done</code> in the session log, <code>RunResult.skills</code>, and the report's case header carry them; a case's Quill skills go to <code>CaseResult.code.skills</code>.</p>
|
|
366
366
|
<h2 id="healing-srcheal"><a href="#healing-srcheal" class="hash">#</a>Healing (<code>src/heal</code>)</h2>
|
|
367
367
|
<p><code>forgeqe heal</code> repairs a repo's existing tests after the app changed, and reports app bugs instead of hiding them. Like the coding loop, ForgeQE decides what passed by running the commands itself.</p>
|
|
368
368
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>test command ──► baseline run (testrun.ts) ── passes ──► clean, no model
|
|
369
369
|
│ fails
|
|
370
370
|
▼
|
|
371
|
-
|
|
371
|
+
Quill session (forgeqe-heal agent) ◄─── MCP: browser_run, run_details, run_test, page_memory
|
|
372
372
|
│ tests[]: healed | app_bug | not_healed, each with its own command
|
|
373
373
|
▼
|
|
374
374
|
ForgeQE runs each healed test ── fails ──► still-failing prompt ─┐
|
|
@@ -391,14 +391,14 @@
|
|
|
391
391
|
</table></div>
|
|
392
392
|
<p>In the shell and <code>forgeqe run</code>, ForgeQE's agent calls the <code>heal_tests</code> tool, which runs <code>runHeal</code>, so "the login tests broke, fix them" goes through the same loop and the same checks as <code>forgeqe heal</code>. <code>tools.ts</code> and <code>heal/loop.ts</code> import each other; that is safe because <code>runHeal</code> only reads <code>TOOLS</code> when it runs.</p>
|
|
393
393
|
<h2 id="finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts"><a href="#finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts" class="hash">#</a>Finding and running existing tests (<code>src/code/find.ts</code>, <code>src/mcp/repotests.ts</code>, <code>src/cases/sprints.ts</code>)</h2>
|
|
394
|
-
<p>"Run all tests related to login" and "run the tests added this sprint" select tests that already exist in the repo.
|
|
394
|
+
<p>"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.</p>
|
|
395
395
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>request (+ since/until, or a sprint picked from Azure DevOps / Jira via ctx.ask)
|
|
396
396
|
│
|
|
397
397
|
▼
|
|
398
|
-
|
|
398
|
+
Quill session (forgeqe-find agent, read-only) ── tests[], related[], list_command, run_command
|
|
399
399
|
│
|
|
400
400
|
▼
|
|
401
|
-
ForgeQE runs list_command ──► listing back to
|
|
401
|
+
ForgeQE runs list_command ──► listing back to Quill ── changed ──► lists again (up to 3 rounds)
|
|
402
402
|
│ list_matches, unchanged
|
|
403
403
|
▼
|
|
404
404
|
selection.json + card ──► run_tests: ctx.ask "Run N tests?" ── Run ──► ForgeQE runs run_command
|
|
@@ -410,7 +410,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
410
410
|
<tr><th>Module</th><th>Contents</th></tr>
|
|
411
411
|
</thead>
|
|
412
412
|
<tbody>
|
|
413
|
-
<tr><td><code>code/find.ts</code></td><td><code>FIND_AGENT</code> (<code>forgeqe-find</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, <code>bash</code> denied except <code>git log/show/diff/blame/ls-files/rev-parse/status</code> and <code>ls</code>. 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 <code>related</code>), one test per entry, and the two commands. <code>FIND_SCHEMA</code>: <code>{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}</code>. <code>findTests</code> 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 <code>&lt;export.out_dir>/tests/&lt;time>/</code> folder; runs <code>list_command</code> with <code>runTestCommand</code> (180s) and feeds the output back until
|
|
413
|
+
<tr><td><code>code/find.ts</code></td><td><code>FIND_AGENT</code> (<code>forgeqe-find</code>): <code>edit</code>, <code>webfetch</code>, and <code>task</code> denied, <code>bash</code> denied except <code>git log/show/diff/blame/ls-files/rev-parse/status</code> and <code>ls</code>. 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 <code>related</code>), one test per entry, and the two commands. <code>FIND_SCHEMA</code>: <code>{framework, tests: [{name, file, reason, added}], related, list_command, run_command, results_file, list_matches, notes}</code>. <code>findTests</code> 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 <code>&lt;export.out_dir>/tests/&lt;time>/</code> folder; runs <code>list_command</code> with <code>runTestCommand</code> (180s) and feeds the output back until Quill confirms an unchanged selection (<code>listed</code>), and writes <code>selection.json</code>. <code>runSelection</code> deletes stale result files, runs <code>run_command</code> with <code>code.test_timeout_seconds</code>, collects the fresh <code>.xml</code>/<code>.trx</code> files (the given file, or a folder one level deep), and parses them with <code>parseResults</code> (JUnit <code>testcase</code> at any depth with <code>failure</code>/<code>error</code>/<code>skipped</code>; TRX <code>UnitTestResult</code> outcomes and <code>hh:mm:ss</code> durations); without results the exit code decides. <code>selectionCard</code> and <code>resultsCard</code></td></tr>
|
|
414
414
|
<tr><td><code>mcp/repotests.ts</code></td><td><code>REPO_TEST_TOOLS</code>, appended to <code>TOOLS</code>. <code>list_sprints</code>. <code>find_tests</code> validates dates, resolves <code>sprint</code> (a name through <code>findSprint</code>; <code>ask</code> offers up to eight <code>recentSprints</code> through <code>ctx.ask</code>, or returns them as <code>needs_choice</code> when there is no <code>ask</code>), runs <code>findTests</code>, and emits the selection card. <code>run_tests</code> loads the selection and asks <strong>Run N tests? / Don't run</strong> through <code>ctx.ask</code>; without <code>ask</code> (<code>forgeqe mcp</code>, or <code>forgeqe run</code> without a terminal) it returns <code>needs_confirmation</code> until called with <code>confirmed: true</code>. Failures come back with a <code>heal_tests</code> suggestion</td></tr>
|
|
415
415
|
<tr><td><code>cases/sprints.ts</code></td><td>Azure DevOps <code>work/teamsettings/iterations</code> (the project's default team, or <code>team</code>) and Jira agile <code>board?type=scrum</code> (by project or board, up to five boards) then <code>board/{id}/sprint</code>, paged. Both become <code>Sprint {system, name, start, end, state: current | past | future, where}</code>; a system that fails is reported in <code>errors</code>. <code>recentSprints</code> keeps each team's or board's current, three latest past, and next sprint</td></tr>
|
|
416
416
|
</tbody>
|
|
@@ -436,10 +436,10 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
436
436
|
</table></div>
|
|
437
437
|
<p>Every write-back includes the step verdicts, and retries once without the step details when a system rejects them. Each <code>WriteBack</code> carries the <code>caseId</code> it is about, so the report shows it with that case.</p>
|
|
438
438
|
<p><code>http.ts</code> is the one HTTP helper. Tokens come from the environment variables <code>sources:</code> names, and errors show the method, host, path, and status, never a credential. For <code>forgeqe suite</code> and <code>forgeqe cases</code>, <code>refKind</code> 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 <code>casesFrom</code>. <code>loadCases</code> adds <code>~2</code>, <code>~3</code> to repeated ids.</p>
|
|
439
|
-
<p><code>goalFor</code> 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. <code>caseMarkdown</code> goes into the coding handoff (from <code>testcase.json</code> in the run folder) and asks
|
|
439
|
+
<p><code>goalFor</code> 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. <code>caseMarkdown</code> goes into the coding handoff (from <code>testcase.json</code> in the run folder) and asks Quill to name the test <code>&lt;id> &lt;title></code>.</p>
|
|
440
440
|
<p><code>runSuite</code> gives each case a run folder <code>NN-&lt;id></code> and runs <code>executeRun</code> with a pool of <code>parallel</code> 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 <code>codeSkipped</code> with the reason. Write-back and <code>fileBugs</code> run after every case finishes and skip stopped cases. <code>report.ts</code> writes <code>junit.xml</code> (failed → <code>&lt;failure></code>, error → <code>&lt;error></code>, stopped → <code>&lt;skipped></code>, step verdicts and posted links in <code>system-out</code>), <code>report.html</code> (<code>src/report/data.ts</code> turns the results into <code>ReportData</code>: step verdicts, the <code>steps.json</code> 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 <code>run.json</code> (page memory with heals and repairs, browser diagnostics) and <code>accessibility.json</code>, the case's group and requirements, usage and cost, and history from the sibling <code>.forgeqe/reports/suites/*/suite.json</code>. From that history it also finds each failed case's last passing run folder (next to its <code>suite.json</code>, 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; <code>src/report/html.ts</code> injects it as <code>window.__FORGEQE_REPORT__</code> into <code>src/report/template.html</code>, a React app from <code>report-ui/</code> built into one file by <code>bun run build:report</code>; every single run writes one too), <code>suite.json</code>, the terminal summary, and the GitHub job summary (appended to <code>GITHUB_STEP_SUMMARY</code> when set). The <code>run_test_cases</code> tool calls the same <code>runSuite</code>, passing the working directory and <code>runCodeAgent</code> as the coder when the session writes tests (so the agent never calls <code>write_test</code> 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 <code>forgeqe suite</code>.</p>
|
|
441
441
|
<h2 id="environments-srcenvironmentsts"><a href="#environments-srcenvironmentsts" class="hash">#</a>Environments (<code>src/environments.ts</code>)</h2>
|
|
442
|
-
<p><code>env.yaml</code> (named by <code>environments.file</code>) lists the environments and their apps, in any layout: <code>environments:</code> maps, top-level maps, or lists. They are all read into the same <code>Environment</code> (<code>apps</code> by kind: web, api, desktop, mobile; <code>variables</code>; <code>secrets</code> as names of environment variables). <code>activeEnvironment</code> picks one: <code>--env</code>, <code>FORGEQE_ENV</code>, <code>use_environment</code>, or the default. <code>withEnvironment</code> gives a config for one tool call's <code>env</code>. <code>exportEnvironment</code> puts the environment's <code>FORGEQE_APP_*</code> and variables into the environment of the tests ForgeQE runs. <code>environmentBrief</code> is what each agent is told: ForgeQE's agent gets every app, the browser agent its hosts, and
|
|
442
|
+
<p><code>env.yaml</code> (named by <code>environments.file</code>) lists the environments and their apps, in any layout: <code>environments:</code> maps, top-level maps, or lists. They are all read into the same <code>Environment</code> (<code>apps</code> by kind: web, api, desktop, mobile; <code>variables</code>; <code>secrets</code> as names of environment variables). <code>activeEnvironment</code> picks one: <code>--env</code>, <code>FORGEQE_ENV</code>, <code>use_environment</code>, or the default. <code>withEnvironment</code> gives a config for one tool call's <code>env</code>. <code>exportEnvironment</code> puts the environment's <code>FORGEQE_APP_*</code> and variables into the environment of the tests ForgeQE runs. <code>environmentBrief</code> 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.</p>
|
|
443
443
|
<h2 id="desktop-apps-srcdesktop-pyforgeqe_desktop"><a href="#desktop-apps-srcdesktop-pyforgeqe_desktop" class="hash">#</a>Desktop apps (<code>src/desktop</code>, <code>py/forgeqe_desktop</code>)</h2>
|
|
444
444
|
<p><code>python -m forgeqe_desktop serve</code> takes JSON-lines requests from <code>src/desktop/bridge.ts</code>, as the browser engine does.</p>
|
|
445
445
|
<ul>
|
|
@@ -470,7 +470,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
470
470
|
<ul>
|
|
471
471
|
<li><strong>API scenario plans</strong> (<code>src/api/plancache.ts</code>): <code>api_scenarios</code> from cases or text keeps each plan under <code>&lt;memory dir>/api/plans/&lt;hash>.json</code>, 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; <code>fresh: true</code> plans again.</li>
|
|
472
472
|
<li><strong>Registry plans of every tool</strong> (<code>src/registry</code>): <code>indexRuns</code> also indexes mobile and desktop explores (tool <code>mobile_explore</code> / <code>desktop_explore</code>, keyed by goal and app) and API runs (<code>api/&lt;set>/runs/*</code>: <code>run_api_contracts</code> / <code>run_api_scenarios</code>, known as "the API contracts" of a set). <code>plans.args</code> holds the tool's arguments (added in place; schema version stays 1, so older versions still open the file). <code>runTier0</code> (<code>src/registry/run.ts</code>) 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 <code>forgeqe run</code> both route through it.</li>
|
|
473
|
-
<li><strong>Measurement:</strong> <code>forgeqe memory stats</code> (<code>src/memorystats.ts</code>) 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 <strong>memory gate</strong>
|
|
473
|
+
<li><strong>Measurement:</strong> <code>forgeqe memory stats</code> (<code>src/memorystats.ts</code>) 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 <strong>memory gate</strong> is the tests that fail when known work reaches the model.</li>
|
|
474
474
|
</ul>
|
|
475
475
|
<h2 id="containers-srccontainers"><a href="#containers-srccontainers" class="hash">#</a>Containers (<code>src/containers</code>)</h2>
|
|
476
476
|
<p><code>containers:</code> in forgeqe.yaml declares services (<code>config.ts</code>). It refuses any setting outside the fixed list, an image without an exact version, a port bound to an address other than 127.0.0.1, and a mount option.</p>
|
|
@@ -505,7 +505,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
505
505
|
<p><strong>The agent's tools</strong> are <code>services</code> and <code>mock_service</code> in <code>src/mcp/containertools.ts</code>, and the CLI is <code>forgeqe services</code> (<code>command.ts</code>).</p>
|
|
506
506
|
</li>
|
|
507
507
|
<li>
|
|
508
|
-
<p><strong>The agents' shell:</strong> <code>BASH_PERMISSION</code> denies docker, podman, nerdctl and compose commands for the agent and
|
|
508
|
+
<p><strong>The agents' shell:</strong> <code>BASH_PERMISSION</code> denies docker, podman, nerdctl and compose commands for the agent and Quill.</p>
|
|
509
509
|
</li>
|
|
510
510
|
<li>
|
|
511
511
|
<p><strong>Tests:</strong> <code>tests/containers.test.ts</code> and <code>tests/workspace.test.ts</code> use a fake runtime; <code>workspace.test.ts</code> also runs the gateway against a stand-in browser and the agent runtime against the workspace's script. <code>tests/containers.live.test.ts</code> uses real Docker and is skipped without it.</p>
|
|
@@ -520,7 +520,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
520
520
|
<li><strong>Test data:</strong> <code>testdata.py</code> makes rows from a spec (<code>src/data/testdata.ts</code> reads it inside the working folder). <code>subset.py</code> takes a masked subset of another database. Inserted rows are kept as a batch that can be removed again. <code>hooks.ts</code> inserts a case's or a suite's <code>data:</code> before it runs, and removes it afterwards.</li>
|
|
521
521
|
<li><strong>Data flows:</strong> <code>flows.py</code> checks the hops listed in <code>flows.yaml</code> (beside forgeqe.yaml), from a source table to a target table, by batch or in real time. <code>streams.py</code> reads Kafka topics and HTTP APIs as hops. <code>flowreport.ts</code> writes <code>flows.json</code> and <code>report.html</code> to <code>&lt;reports>/flows-&lt;time>/</code>, and <code>flowado.ts</code> posts the results as an Azure DevOps test run.</li>
|
|
522
522
|
<li><strong>Remembered queries:</strong> <code>examples.ts</code> keeps the SQL the user approved, in <code>.forgeqe/data/&lt;db>/examples.jsonl</code>. It gives the SQL back with the schema when a new question is like an old one.</li>
|
|
523
|
-
<li><strong>The agent's tools</strong> are <code>databases</code>, <code>database_schema</code>, <code>run_sql</code>, <code>generate_test_data</code>, <code>test_data_batches</code> and <code>request_test_data</code> (<code>src/mcp/datatools.ts</code>), and <code>data_flows</code>, <code>check_flows</code>, <code>trace_record</code> and <code>read_mapping_file</code> (<code>src/mcp/flowtools.ts</code>). A write, an insert or a removal asks the user first.
|
|
523
|
+
<li><strong>The agent's tools</strong> are <code>databases</code>, <code>database_schema</code>, <code>run_sql</code>, <code>generate_test_data</code>, <code>test_data_batches</code> and <code>request_test_data</code> (<code>src/mcp/datatools.ts</code>), and <code>data_flows</code>, <code>check_flows</code>, <code>trace_record</code> and <code>read_mapping_file</code> (<code>src/mcp/flowtools.ts</code>). A write, an insert or a removal asks the user first. Quill and Link get <code>AGENT_DATA_TOOLS</code>, which never pass <code>confirmed</code>, so they cannot write.</li>
|
|
524
524
|
<li><strong>The CLI</strong> is <code>forgeqe data</code>, <code>forgeqe db</code> (and <code>/db</code> in the shell) and <code>forgeqe flows</code> (<code>command.ts</code>, <code>dbcommand.ts</code>), with no model.</li>
|
|
525
525
|
</ul>
|
|
526
526
|
<h2 id="model-router-srcrouter"><a href="#model-router-srcrouter" class="hash">#</a>Model router (<code>src/router</code>)</h2>
|
|
@@ -533,12 +533,12 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
533
533
|
<tr><td><code>config.ts</code></td><td>The six areas (<code>agent</code>, <code>browser</code>, <code>coding</code>, <code>review</code>, <code>analysis</code>, <code>planning</code>), each with its rating bar and whether it needs images or tool calls. <code>parseRouting</code> reads <code>llm.routing</code> and <code>llm.routes</code>, and stops ForgeQE at start on an unknown area or a name that is not a profile</td></tr>
|
|
534
534
|
<tr><td><code>facts.ts</code></td><td><code>profileFacts</code>: window, images, tool calls, reasoning, release date and price, from <code>llms.json</code>, the live check, and the public model lists. <code>probeProfile</code> runs <code>python -m forgeqe_engine probe</code> (<code>py/forgeqe_engine/probe.py</code>) 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</td></tr>
|
|
535
535
|
<tr><td><code>profile.ts</code></td><td><code>rateModels</code>: the <code>forgeqe-model-profile</code> agent (edit, bash and webfetch denied) on the active profile gets <code>profileRequest</code>. 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. <code>sanitizeProfile</code> 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 <code><</code> <code>></code>. This happens to the reply and again on every read of <code>.forgeqe/model-profile.json</code>. The file's <code>fingerprint</code> (each profile's name, provider, model, deployment and endpoint) makes ForgeQE rate the models again when the profiles change</td></tr>
|
|
536
|
-
<tr><td><code>route.ts</code></td><td><code>routedConfig(cfg, area)</code> at each call site. The router stays out for <code>--profile</code> / <code>WP_LLM_PROFILE</code> and for <code>code.model</code> (all areas but <code>browser</code>). <code>knowledge</code> checks and rates the models once per process, and only when two or more profiles have a key. <code>choose</code> rules out a model with no key, a failed check, no images for <code>browser</code>, no tools, or too small a window.
|
|
536
|
+
<tr><td><code>route.ts</code></td><td><code>routedConfig(cfg, area)</code> at each call site. The router stays out for <code>--profile</code> / <code>WP_LLM_PROFILE</code> and for <code>code.model</code> (all areas but <code>browser</code>). <code>knowledge</code> checks and rates the models once per process, and only when two or more profiles have a key. <code>choose</code> rules out a model with no key, a failed check, no images for <code>browser</code>, no tools, or too small a window. Among the models rated at the area's bar it picks by <code>llm.strategy</code> (<code>strategyFor</code>): the lead areas (<code>agent</code>, <code>planning</code>) get the most capable, the others the best value (<code>pricePenalties</code>: one rating point worth up to <code>RATING_WORTH</code>× the price), or the cheapest with <code>cost</code>; else the best rated. Each pick goes to the session log as <code>model.route</code>. In <code>shadow</code> it is only logged. <code>escalate</code> gives a root-cause analysis one stronger model. <code>routeTable</code> is <code>forgeqe models --routes</code> (<code>--profile-models</code> checks and rates again)</td></tr>
|
|
537
537
|
</tbody>
|
|
538
538
|
</table></div>
|
|
539
539
|
<p>ForgeQE's agent is routed once, when its session opens (<code>brain/index.ts</code>), so its prompt cache survives. With routing on, any profile in <code>llms.json</code> that has a key can receive prompts, page content, screenshots and code excerpts, and each gets the live check. <code>llm.routing: off</code>, a single profile, or a pin per area in <code>llm.routes</code> keeps the work on one deployment. <code>tests/router.test.ts</code> covers the router.</p>
|
|
540
540
|
<h2 id="generated-code-srcprovenancets"><a href="#generated-code-srcprovenancets" class="hash">#</a>Generated code (<code>src/provenance.ts</code>)</h2>
|
|
541
|
-
<p>When a
|
|
541
|
+
<p>When a Quill job passes, <code>code/loop.ts</code> calls <code>markJob</code>, which marks what ForgeQE wrote in the repository.</p>
|
|
542
542
|
<ul>
|
|
543
543
|
<li>A file it created starts with a comment header, <code>Generated with ForgeQE · fq:&lt;id> · run &lt;run></code> (<code>code.header</code>, on by default). The <code>fq:</code> id is a hash of the file without the header, so <code>verify</code> tells whether the file changed since.</li>
|
|
544
544
|
<li>Every file it created or edited is recorded in <code>&lt;repo>/.forgeqe/generated.jsonl</code>, one line per run, with the lines it added as short hashes.</li>
|
|
@@ -617,13 +617,13 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
617
617
|
<tr><td><code>report.html</code></td><td>The run's own report</td></tr>
|
|
618
618
|
<tr><td><code>handoff.md</code></td><td>What the coding agent was given (only with a repo)</td></tr>
|
|
619
619
|
<tr><td><code>code.json</code></td><td>Coding result: status, attempts, test file, command, reused, changed, last test output, tokens</td></tr>
|
|
620
|
-
<tr><td><code>scribe-session.json</code></td><td>
|
|
620
|
+
<tr><td><code>scribe-session.json</code></td><td>Quill's session for a job that stopped before it finished, reopened by a rerun</td></tr>
|
|
621
621
|
<tr><td><code>testcase.json</code></td><td>The test case a suite ran in this folder</td></tr>
|
|
622
622
|
<tr><td><code>junit.xml</code>, <code>report.html</code>, <code>suite.json</code></td><td>Suite reports, in <code>.forgeqe/reports/suites/&lt;time>/</code> above the case folders (monitoring rounds: <code>.forgeqe/reports/monitor/&lt;time>/</code>)</td></tr>
|
|
623
623
|
<tr><td><code>heal.json</code>, <code>heal.md</code></td><td>Healing result and report, in <code>.forgeqe/reports/heal/&lt;time>/</code> with the browser runs it made</td></tr>
|
|
624
624
|
<tr><td><code>state.json</code>, <code>alerts.json</code></td><td>Monitoring: which checks are failing and since when (<code>.forgeqe/reports/monitor/</code>), and what a round alerted and whether it was sent (in the round folder)</td></tr>
|
|
625
625
|
<tr><td><code>.forgeqe/model-profile.json</code></td><td>The model router's live checks and ratings, next to <code>forgeqe.yaml</code> (in <code>FORGEQE_HOME</code>, by default <code>~/.forgeqe</code>, without a config file). Checked on every read, and made again when the profiles change</td></tr>
|
|
626
|
-
<tr><td><code>.forgeqe/generated.jsonl</code></td><td>In the repository: per
|
|
626
|
+
<tr><td><code>.forgeqe/generated.jsonl</code></td><td>In the repository: per Quill run, its <code>fq:</code> id and the files and lines it wrote</td></tr>
|
|
627
627
|
<tr><td><code>forgeqe-reports-&lt;user>-&lt;machine>-&lt;time>.json</code></td><td>A team report bundle from <code>forgeqe bi export</code> or <code>/report export</code>, in <code>.forgeqe/reports/shared/</code>. Teammates' bundles go in <code>.forgeqe/reports/collected/</code></td></tr>
|
|
628
628
|
<tr><td><code>flows.json</code>, <code>report.html</code></td><td>A data flow check, in <code>.forgeqe/reports/flows-&lt;time>/</code></td></tr>
|
|
629
629
|
<tr><td><code>suite.json</code>, <code>report.html</code></td><td>An API run's report, next to its <code>results.json</code> in <code>.forgeqe/reports/api/&lt;set>/runs/&lt;run>/</code></td></tr>
|
|
@@ -632,15 +632,15 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
632
632
|
<h2 id="tests"><a href="#tests" class="hash">#</a>Tests</h2>
|
|
633
633
|
<ul>
|
|
634
634
|
<li><code>bun test</code>: config, commands, TUI, mock loop, bridge (with stub engines), memory readers and <code>forgeqe memory</code>, and <code>tests/engine.e2e.test.ts</code>, 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.</li>
|
|
635
|
-
<li><code>tests/code.test.ts</code>: 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 <code>run.json</code>, the replay running while
|
|
635
|
+
<li><code>tests/code.test.ts</code>: 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 <code>run.json</code>, 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), <code>FailedCommands</code>, the read-only agent's permissions, and the trimmed handoff (weak locators dropped, step elements left out of the page tables). <code>tests/code.e2e.test.ts</code> also checks, against the real agent runtime, that the reading turn has no write or structured-answer tools. <code>tests/replay.test.ts</code>: 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 <code>navigator.webdriver</code> (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 <code>aria-labelledby</code>). <code>tests/code.e2e.test.ts</code> 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 <code>{env:}</code>. Both tests are skipped when the agent runtime is not installed.</li>
|
|
636
636
|
<li><code>tests/cases.test.ts</code>: 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. <code>tests/suite.test.ts</code>: 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.</li>
|
|
637
637
|
<li><code>tests/sources.test.ts</code>: 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 <code>logins:</code>, <code>report:</code> and the new sources, the login commands, session notes without secret values, and <code>report.html</code>. The engine e2e test also signs in with a saved login and TOTP (the model never sees the values), checks the session file, that <code>workflow.yaml</code> holds <code>text_env</code> / <code>totp_env</code> instead of values, and that the next run starts signed in.</li>
|
|
638
638
|
<li><code>tests/integrations.test.ts</code>: <code>sources:</code> MCP switches and <code>mcp:</code> 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 <code>query_api</code> against fake APIs (auth headers, api-version, host restriction, mutation refusal, cutting). <code>brain.e2e.test.ts</code> 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 <code>{env:}</code> values arrive, both tools are callable, the broken server is reported, and no secret reaches the model.</li>
|
|
639
639
|
<li><code>tests/mcp.test.ts</code>: the MCP server over HTTP (auth, initialize, list, progress, cancel, errors) and stdio, environment notes without secret values, <code>pushBranch</code> against a bare remote whose default branch is <code>trunk</code>, and <code>setCiSecret</code> with fake <code>gh</code> and <code>az</code>. <code>tests/brain.e2e.test.ts</code> runs the real agent runtime against a scripted local model: the agent chooses <code>forgeqe_browser_run</code> over MCP, both forms of <code>git push</code> are refused, and a follow-up message runs a suite. <code>tests/cli.test.ts</code> drives <code>forgeqe run</code> through the same real agent runtime (tool lines, reply, exit 3 for needs input) and <code>forgeqe mcp</code> over stdio with the mock profile. The agent runtime tests are skipped when the agent runtime is not installed.</li>
|
|
640
640
|
<li><code>tests/heal.test.ts</code>: 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>code.test_command</code>, a missing report, a fatal error, and stop. <code>tests/monitor.test.ts</code>: <code>decide</code> sequences (fail_after, flaky, reminders, recovery, stopped, a round that could not run), duration and <code>monitor:</code> parsing, rounds through the real <code>runSuite</code> with state carried over, report links, attachments, <code>alerts.json</code>, pruning, the loop and <code>--once</code> 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. <code>tests/cli.test.ts</code> runs <code>forgeqe monitor --test-alerts</code> and <code>--once</code> with the mock profile against a fake Teams webhook.</li>
|
|
641
|
-
<li><code>tests/commands.test.ts</code>: the command tools called as the agent calls them: <code>write_test</code> with a scripted session (agent events, the card, the mock profile refused), <code>heal_tests</code> clean and healed, <code>monitor</code> round and status, <code>start</code> refused in a <code>once</code> session, start/status/stop in a <code>shell</code> session (a round card, a second start and a one-off round refused, the lock released), <code>test_alerts</code> against a fake webhook, <code>logins</code> list/clear and <code>sign_in</code> without a person, <code>page_memory</code> flows and clear, and <code>forgeqe_setup</code> profiles, MCP servers, docs by topic, and init. <code>tests/repotests.test.ts</code>: <code>parseResults</code> on JUnit and TRX; <code>find_tests</code> with a scripted
|
|
642
|
-
<li><code>tests/skills.test.ts</code>: <code>skills:</code> parsing; the prebuilt skills loading cleanly; precedence and <code>overrides</code> across user, project, the repo's own folder, and <code>dirs</code>; the repo's <code>.claude</code> skills only with <code>external</code>; the default and opt-in <code>agents</code>; <code>disable</code> and unknown names; every validation problem (including the unquoted <code>: </code> hint); the per-agent <code>skill</code> permission and <code>skills.paths</code> in the runtime config; links readable through and removed without touching the skill; <code>browserSkills</code> given and choose, unknown names, and the remembered choice; the engine request through a stub engine and <code>skills</code> back on the result; the skills catalogue in the environment notes; <code>newSkill</code>, <code>setSkillDisabled</code> keeping comments, and <code>ignoredNote</code>; the overview and <code>/skills</code>; and <code>forgeqe skills new/show/disable/enable/check</code> end to end. <code>tests/code.e2e.test.ts</code> checks, against the real agent runtime, that
|
|
643
|
-
<li><code>tests/desktop.test.ts</code>, <code>tests/mobile.test.ts</code>, <code>tests/scope.test.ts</code>, <code>tests/capabilities.test.ts</code>: the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. <code>&lt;engine-python> -m pytest tests/desktop</code>: the desktop and mobile engines against fake drivers, a fake Appium server and a stand-in Maestro (any OS). The <code>*_live</code> tests need Windows or an emulator
|
|
641
|
+
<li><code>tests/commands.test.ts</code>: the command tools called as the agent calls them: <code>write_test</code> with a scripted session (agent events, the card, the mock profile refused), <code>heal_tests</code> clean and healed, <code>monitor</code> round and status, <code>start</code> refused in a <code>once</code> session, start/status/stop in a <code>shell</code> session (a round card, a second start and a one-off round refused, the lock released), <code>test_alerts</code> against a fake webhook, <code>logins</code> list/clear and <code>sign_in</code> without a person, <code>page_memory</code> flows and clear, and <code>forgeqe_setup</code> profiles, MCP servers, docs by topic, and init. <code>tests/repotests.test.ts</code>: <code>parseResults</code> on JUnit and TRX; <code>find_tests</code> 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); <code>run_tests</code> declined (nothing runs), confirmed (per-test card from JUnit, the heal suggestion), and without <code>ask</code> (<code>needs_confirmation</code>, then <code>confirmed: true</code>, exit code only); sprints from fake Azure DevOps and Jira APIs (paging, the pick through <code>ask</code>, cancel, <code>needs_choice</code>, a name matched). <code>tests/engine/test_step_notes.py</code>: the agent's note built from its own fields and stored on the flow steps a step recorded, <code>evaluate</code> steps with their code. <code>tests/code.test.ts</code> (handoff): notes before each group of steps, once per step, and the JavaScript shown. <code>tests/update.test.ts</code>: bun and pip installs found in PATH order; waiting while the registry 404s, then the cache-skipping commands per install; <code>--check</code> running nothing; a release never served failing with a retry hint. <code>tests/sessionLog.test.ts</code>: 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; <code>/logs</code>. <code>tests/engine/test_page_settle.py</code>: the judge off by default and on by setting, <code>page_settled</code>, <code>settle_page</code> waiting for a new tab and giving up on one that stays blank, and note actions as read-only. <code>tests/resume.test.ts</code>: resume steps in the run result, <code>loadResume</code> by folder or run name, and <code>browser_run</code> returning the retry and passing <code>resume_from</code>. <code>tests/engine/test_resume.py</code>: <code>resume_point</code>, <code>resume_steps</code>, the loop start and nudge text, <code>_install_nudges</code> 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. <code>tests/code.test.ts</code> (resuming): a stopped job keeps <code>scribe-session.json</code> 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; <code>tests/code.e2e.test.ts</code> reopens a session by id after the runtime restarted and finds its earlier messages. <code>tests/engine.e2e.test.ts</code> 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 <code>resume_from</code> replays the cookie click and needs two model calls. <code>tests/sessionLogins.test.ts</code>: 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 <code>logins</code> tool's remember/list/clear without the password in any result. <code>tests/engine/test_session_logins.py</code>: remembered values as placeholders on every sign-in domain, env values still working, <code>step_outcomes</code>, and <code>making_progress</code>. <code>tests/tui.test.tsx</code> renders a monitor round's card in the transcript and checks the <strong>Your turn</strong> dialog holds a tool until <strong>Done, continue</strong>.</li>
|
|
642
|
+
<li><code>tests/skills.test.ts</code>: <code>skills:</code> parsing; the prebuilt skills loading cleanly; precedence and <code>overrides</code> across user, project, the repo's own folder, and <code>dirs</code>; the repo's <code>.claude</code> skills only with <code>external</code>; the default and opt-in <code>agents</code>; <code>disable</code> and unknown names; every validation problem (including the unquoted <code>: </code> hint); the per-agent <code>skill</code> permission and <code>skills.paths</code> in the runtime config; links readable through and removed without touching the skill; <code>browserSkills</code> given and choose, unknown names, and the remembered choice; the engine request through a stub engine and <code>skills</code> back on the result; the skills catalogue in the environment notes; <code>newSkill</code>, <code>setSkillDisabled</code> keeping comments, and <code>ignoredNote</code>; the overview and <code>/skills</code>; and <code>forgeqe skills new/show/disable/enable/check</code> end to end. <code>tests/code.e2e.test.ts</code> 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 <code>.opencode</code> and <code>.claude</code> skills, the runtime's built-in skill, and <code>~/.claude/skills</code> stay out unless <code>external</code> adds them through the registry. <code>tests/engine/test_skills.py</code>: <code>choose_skills</code> order, the cap of 3, errors and an empty catalogue without a model call; <code>skills_block</code> within <code>skills_max_chars</code>; the request fields.</li>
|
|
643
|
+
<li><code>tests/desktop.test.ts</code>, <code>tests/mobile.test.ts</code>, <code>tests/scope.test.ts</code>, <code>tests/capabilities.test.ts</code>: the desktop and mobile commands and tools, workflow edits, uploads, and the tool scope. <code>&lt;engine-python> -m pytest tests/desktop</code>: the desktop and mobile engines against fake drivers, a fake Appium server and a stand-in Maestro (any OS). The <code>*_live</code> tests need Windows or an emulator.</li>
|
|
644
644
|
<li><code>&lt;engine-python> -m pytest tests/engine</code>: the engine directly, with a scripted model, including <code>test_memory.py</code> (locators, confidence, identity, flows, secrets) and replay, trust mode, and self-healing against real Chrome. <code>test_brand.py</code> 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. <code>WP_E2E_HEADED=1</code> runs the bun e2e test in a visible browser, with the overlay on.</li>
|
|
645
645
|
</ul>
|
|
646
646
|
|
|
@@ -651,7 +651,7 @@ selection.json + card ──► run_tests: ctx.ask "Run N tests?" ─
|
|
|
651
651
|
</nav>
|
|
652
652
|
</main>
|
|
653
653
|
<aside class="docs-toc" aria-label="On this page">
|
|
654
|
-
<p class="side-head">On this page</p><ul><li><a href="#engine-pyforgeqe_engine">Engine (py/forgeqe_engine)</a></li><li><a href="#the-path-a-test-follows-capturepy">The path a test follows (capture.py)</a></li><li><a href="#page-memory-memorypy-replaypy">Page memory (memory.py, replay.py)</a></li><li><a href="#bridge-srcengine">Bridge (src/engine)</a></li><li><a href="#forgeqes-agent-srcbrain-srcmcp">ForgeQE's agent (src/brain, src/mcp)</a></li><li><a href="#tool-scope-srcmcpscopets-srccapabilities">Tool scope (src/mcp/scope.ts, src/capabilities)</a></li><li><a href="#
|
|
654
|
+
<p class="side-head">On this page</p><ul><li><a href="#engine-pyforgeqe_engine">Engine (py/forgeqe_engine)</a></li><li><a href="#the-path-a-test-follows-capturepy">The path a test follows (capture.py)</a></li><li><a href="#page-memory-memorypy-replaypy">Page memory (memory.py, replay.py)</a></li><li><a href="#bridge-srcengine">Bridge (src/engine)</a></li><li><a href="#forgeqes-agent-srcbrain-srcmcp">ForgeQE's agent (src/brain, src/mcp)</a></li><li><a href="#tool-scope-srcmcpscopets-srccapabilities">Tool scope (src/mcp/scope.ts, src/capabilities)</a></li><li><a href="#quill-the-coding-agent-srccode">Quill, the coding agent (src/code)</a></li><li><a href="#skills-srcskills">Skills (src/skills)</a></li><li><a href="#healing-srcheal">Healing (src/heal)</a></li><li><a href="#finding-and-running-existing-tests-srccodefindts-srcmcprepoteststs-srccasessprintsts">Finding and running existing tests (src/code/find.ts, src/mcp/repotests.ts, src/cases/sprints.ts)</a></li><li><a href="#test-cases-and-suites-srccases-srcsuite">Test cases and suites (src/cases, src/suite)</a></li><li><a href="#environments-srcenvironmentsts">Environments (src/environments.ts)</a></li><li><a href="#desktop-apps-srcdesktop-pyforgeqe_desktop">Desktop apps (src/desktop, py/forgeqe_desktop)</a></li><li><a href="#mobile-apps-srcmobile-pyforgeqe_mobile">Mobile apps (src/mobile, py/forgeqe_mobile)</a></li><li><a href="#app-memory-pyforgeqe_desktopmemorypy">App memory (py/forgeqe_desktop/memory.py)</a></li><li><a href="#memory-across-every-kind-of-run">Memory across every kind of run</a></li><li><a href="#containers-srccontainers">Containers (src/containers)</a></li><li><a href="#databases-test-data-and-data-flows-srcdata-pyforgeqe_data">Databases, test data and data flows (src/data, py/forgeqe_data)</a></li><li><a href="#model-router-srcrouter">Model router (src/router)</a></li><li><a href="#generated-code-srcprovenancets">Generated code (src/provenance.ts)</a></li><li><a href="#every-other-command-from-the-shell-srcmcpclitoolsts">Every other command, from the shell (src/mcp/clitools.ts)</a></li><li><a href="#reports-for-every-kind-of-run-srcreportrunsts-srcreportcollectts-srcapireportts">Reports for every kind of run (src/report/runs.ts, src/report/collect.ts, src/api/report.ts)</a></li><li><a href="#monitoring-srcmonitor">Monitoring (src/monitor)</a></li><li><a href="#telemetry-srcprivacyts">Telemetry (src/privacy.ts)</a></li><li><a href="#profiles-and-the-offline-test-double">Profiles and the offline test double</a></li><li><a href="#artifacts">Artifacts</a></li><li><a href="#tests">Tests</a></li></ul>
|
|
655
655
|
</aside>
|
|
656
656
|
</div>
|
|
657
657
|
<footer class="foot">
|
|
@@ -129,7 +129,6 @@ real Docker (and is skipped without it):</p>
|
|
|
129
129
|
<li>A tests container that reaches the database by name and writes its results into the repository as this machine's
|
|
130
130
|
user.</li>
|
|
131
131
|
</ul>
|
|
132
|
-
<p>The <code>containers</code> job of <code>.github/workflows/ci.yml</code> runs both on GitHub's Docker. There, a skipped live test fails the job.</p>
|
|
133
132
|
<p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
|
|
134
133
|
<ul>
|
|
135
134
|
<li><strong>Services a test run needs:</strong> a database, a queue, a cache, or the API under test. The project declares them in
|
|
@@ -138,12 +137,12 @@ forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
|
|
|
138
137
|
the tests can run without the real service.</li>
|
|
139
138
|
<li><strong>The repository's tests in a container:</strong> <code>run_tests</code> runs the command the user confirmed in an image, instead of
|
|
140
139
|
on this machine, after starting the services the tests need.</li>
|
|
141
|
-
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>,
|
|
140
|
+
<li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Quill's shell commands (build, restore, run,
|
|
142
141
|
git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.</li>
|
|
143
|
-
<li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and
|
|
142
|
+
<li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and Quill's live
|
|
144
143
|
browser drive Chromium in a container of Microsoft's Playwright image.</li>
|
|
145
144
|
</ul>
|
|
146
|
-
<p>
|
|
145
|
+
<p>Quill also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
|
|
147
146
|
<p>ForgeQE's agent uses them through two tools, <code>services</code> and <code>mock_service</code>. The CLI has <code>forgeqe services</code>. When
|
|
148
147
|
neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
|
|
149
148
|
<h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
|
|
@@ -271,7 +270,7 @@ workspace container.</p>
|
|
|
271
270
|
</code></pre></div>
|
|
272
271
|
<p>With <code>containers.workspace</code> set:</p>
|
|
273
272
|
<ul>
|
|
274
|
-
<li><strong>
|
|
273
|
+
<li><strong>Quill's shell runs in the container.</strong> The agent runtime runs each command as <code>$SHELL -c &lt;command></code>. ForgeQE
|
|
275
274
|
sets <code>SHELL</code> to a script that runs the same command with <code>docker exec … sh -c &lt;command></code>, in the same folder,
|
|
276
275
|
in the workspace container. A folder outside the repository is refused, since the container has only the
|
|
277
276
|
repository. The agent is told its commands run in a Linux container of that image.</li>
|
|
@@ -323,8 +322,8 @@ container itself, and ForgeQE warns when a run starts there.</li>
|
|
|
323
322
|
launch, which a running browser does not have.</li>
|
|
324
323
|
<li>A run explored in a container is replayed in one even when the provider is changed back later (<code>run.json</code>).</li>
|
|
325
324
|
</ul>
|
|
326
|
-
<h2 id="testcontainers-
|
|
327
|
-
<p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go),
|
|
325
|
+
<h2 id="testcontainers-quill"><a href="#testcontainers-quill" class="hash">#</a>Testcontainers (Quill)</h2>
|
|
326
|
+
<p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Quill
|
|
328
327
|
loads the <code>testcontainers</code> skill. It reuses the repository's containers and fixtures, pins images, waits for
|
|
329
328
|
readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the
|
|
330
329
|
host network, the Docker socket, or a <code>docker</code> command from a test. These containers belong to the tests in the
|
|
@@ -389,7 +388,7 @@ that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>,
|
|
|
389
388
|
</ul>
|
|
390
389
|
</li>
|
|
391
390
|
<li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code>, <code>docker-compose</code> and <code>podman-compose</code> are denied in the
|
|
392
|
-
shell of ForgeQE's agent and of
|
|
391
|
+
shell of ForgeQE's agent and of Quill. So the only way to start a container is these tools.</li>
|
|
393
392
|
<li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask the user before starting, as <code>run_tests</code> does.</li>
|
|
394
393
|
</ul>
|
|
395
394
|
<h2 id="code"><a href="#code" class="hash">#</a>Code</h2>
|
|
@@ -408,7 +407,7 @@ shell of ForgeQE's agent and of Scribe. So the only way to start a container is
|
|
|
408
407
|
<tr><td><code>src/containers/masks.ts</code></td><td>The repository's credential files and folders, covered in every container that mounts it</td></tr>
|
|
409
408
|
<tr><td><code>src/containers/browser.ts</code></td><td><code>browser.provider: docker</code>: the browser container, its token gateway, the endpoint</td></tr>
|
|
410
409
|
<tr><td><code>src/containers/command.ts</code></td><td><code>forgeqe services</code></td></tr>
|
|
411
|
-
<tr><td><code>skills/testcontainers/SKILL.md</code></td><td>
|
|
410
|
+
<tr><td><code>skills/testcontainers/SKILL.md</code></td><td>Quill's Testcontainers skill</td></tr>
|
|
412
411
|
<tr><td><code>src/mcp/containertools.ts</code></td><td>The agent's <code>services</code> and <code>mock_service</code></td></tr>
|
|
413
412
|
</tbody>
|
|
414
413
|
</table></div>
|
|
@@ -423,7 +422,7 @@ script). <code>tests/containers.live.test.ts</code> uses real Docker.</p>
|
|
|
423
422
|
</nav>
|
|
424
423
|
</main>
|
|
425
424
|
<aside class="docs-toc" aria-label="On this page">
|
|
426
|
-
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#declaring-services">Declaring services</a></li><li><a href="#compose-files">Compose files</a></li><li><a href="#the-project-network">The project network</a></li><li><a href="#tests-in-a-container">Tests in a container</a></li><li><a href="#the-workspace">The workspace</a></li><li><a href="#the-browser-in-a-container">The browser in a container</a></li><li><a href="#testcontainers-
|
|
425
|
+
<p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#declaring-services">Declaring services</a></li><li><a href="#compose-files">Compose files</a></li><li><a href="#the-project-network">The project network</a></li><li><a href="#tests-in-a-container">Tests in a container</a></li><li><a href="#the-workspace">The workspace</a></li><li><a href="#the-browser-in-a-container">The browser in a container</a></li><li><a href="#testcontainers-quill">Testcontainers (Quill)</a></li><li><a href="#mocks">Mocks</a></li><li><a href="#lifetime">Lifetime</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li></ul>
|
|
427
426
|
</aside>
|
|
428
427
|
</div>
|
|
429
428
|
<footer class="foot">
|
|
@@ -156,10 +156,10 @@ worked around.</p>
|
|
|
156
156
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe agent approve &lt;id>
|
|
157
157
|
</code></pre></div>
|
|
158
158
|
<p>Type the id to confirm. The page shows it Active, with version 1.0.0. Commit <code>.forgeqe/agents</code> so your team has it.</p>
|
|
159
|
-
<h2 id="4-ask-it-from-
|
|
159
|
+
<h2 id="4-ask-it-from-atlas"><a href="#4-ask-it-from-atlas" class="hash">#</a>4. Ask it from Atlas</h2>
|
|
160
160
|
<p>In a new chat (web or <code>forgeqe</code>), ask: "Ask the defect retest agent to retest yesterday's resolved defects".</p>
|
|
161
|
-
<p>You should see
|
|
162
|
-
reply come back. Its run shows "From
|
|
161
|
+
<p>You should see Atlas hand it over (custom_agent), the agent's questions come to you in the same chat, and the
|
|
162
|
+
reply come back. Its run shows "From Atlas" in its history.</p>
|
|
163
163
|
<h2 id="5-another-system-a-read-and-a-change"><a href="#5-another-system-a-read-and-a-change" class="hash">#</a>5. Another system: a read and a change</h2>
|
|
164
164
|
<p>Ask it to read one defect, then to add a comment to it.</p>
|
|
165
165
|
<p>You should see the read go ahead without asking, and the comment asked first ("Let … change …?"), unless you turned
|
|
@@ -180,7 +180,7 @@ a check there.</p>
|
|
|
180
180
|
<p>You should see the read go ahead, the run asked (unless you turned that off), and any change asked every time. Before a
|
|
181
181
|
step that could reach real customers it asks you itself.</p>
|
|
182
182
|
<h2 id="8-turn-it-off-and-on"><a href="#8-turn-it-off-and-on" class="hash">#</a>8. Turn it off and on</h2>
|
|
183
|
-
<p>On Agents, Custom agents, <strong>Select agents</strong>, pick it, <strong>Disable</strong>, type 1. Ask
|
|
183
|
+
<p>On Agents, Custom agents, <strong>Select agents</strong>, pick it, <strong>Disable</strong>, type 1. Ask Atlas to use it: it is refused.
|
|
184
184
|
Enable it again. Then try Settings, Custom agents, off: the builder is closed and nothing runs; turn it back on.</p>
|
|
185
185
|
<h2 id="9-the-record"><a href="#9-the-record" class="hash">#</a>9. The record</h2>
|
|
186
186
|
<p>On the agent's page, <strong>Download audit record</strong> (or <code>forgeqe agent export &lt;id> --out record.jsonl</code>). It holds its
|
|
@@ -202,7 +202,7 @@ then approve. Environments and systems are not in the package — they must alre
|
|
|
202
202
|
</nav>
|
|
203
203
|
</main>
|
|
204
204
|
<aside class="docs-toc" aria-label="On this page">
|
|
205
|
-
<p class="side-head">On this page</p><ul><li><a href="#0-before-you-start">0. Before you start</a></li><li><a href="#1-build-an-agent-with-the-builder-the-models-questions-and-plan">1. Build an agent with the builder (the model's questions and plan)</a></li><li><a href="#2-try-it">2. Try it</a></li><li><a href="#3-approve-it">3. Approve it</a></li><li><a href="#4-ask-it-from-
|
|
205
|
+
<p class="side-head">On this page</p><ul><li><a href="#0-before-you-start">0. Before you start</a></li><li><a href="#1-build-an-agent-with-the-builder-the-models-questions-and-plan">1. Build an agent with the builder (the model's questions and plan)</a></li><li><a href="#2-try-it">2. Try it</a></li><li><a href="#3-approve-it">3. Approve it</a></li><li><a href="#4-ask-it-from-atlas">4. Ask it from Atlas</a></li><li><a href="#5-another-system-a-read-and-a-change">5. Another system: a read and a change</a></li><li><a href="#6-on-a-schedule-with-nobody-watching">6. On a schedule, with nobody watching</a></li><li><a href="#7-production-optional-with-care">7. Production (optional, with care)</a></li><li><a href="#8-turn-it-off-and-on">8. Turn it off and on</a></li><li><a href="#9-the-record">9. The record</a></li><li><a href="#10-share-with-another-project">10. Share with another project</a></li><li><a href="#what-to-send-back">What to send back</a></li></ul>
|
|
206
206
|
</aside>
|
|
207
207
|
</div>
|
|
208
208
|
<footer class="foot">
|