@capagents/forgeqe 3.0.3 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/HOW_TO_USE.md +190 -189
  2. package/README.md +12 -12
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/dist/docs-site/architecture-map/index.html +6 -6
  5. package/dist/docs-site/docs/architecture/index.html +31 -31
  6. package/dist/docs-site/docs/containers/index.html +9 -10
  7. package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
  8. package/dist/docs-site/docs/desktop/index.html +8 -10
  9. package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
  10. package/dist/docs-site/docs/graphify/index.html +1 -1
  11. package/dist/docs-site/docs/index.html +214 -165
  12. package/dist/docs-site/docs/mobile/index.html +6 -6
  13. package/dist/docs-site/docs/model-routing/index.html +58 -10
  14. package/dist/docs-site/docs/product-graph/index.html +3 -3
  15. package/dist/docs-site/docs/product-views/index.html +1 -1
  16. package/dist/docs-site/docs/search.js +1 -1
  17. package/dist/docs-site/docs/web-app/index.html +6 -6
  18. package/dist/forgeqe.js +1858 -1825
  19. package/dist/template.html +69 -69
  20. package/dist/web/assets/Agent-BF6goYbq.js +8 -0
  21. package/dist/web/assets/ApiTests-08El24XV.js +10 -0
  22. package/dist/web/assets/Browse-DB7lNo6R.js +2 -0
  23. package/dist/web/assets/Chat-Co7EJfA9.js +5 -0
  24. package/dist/web/assets/{CommandPalette-CAAPFMZn.js → CommandPalette-BkNNac9P.js} +1 -1
  25. package/dist/web/assets/{Compare-DZfbMjDK.js → Compare-Ce214eXq.js} +1 -1
  26. package/dist/web/assets/Cost-B_oVlEve.js +1 -0
  27. package/dist/web/assets/Data-BNXAWpvT.js +6 -0
  28. package/dist/web/assets/Desktop-Dnsmc_L-.js +1 -0
  29. package/dist/web/assets/DesktopReview-C7SG_gBt.js +1 -0
  30. package/dist/web/assets/{Evidence-CijYL67k.js → Evidence-C6PtAQ6y.js} +1 -1
  31. package/dist/web/assets/{Explore-DZ5PoVZp.js → Explore-BN8zgzmv.js} +2 -2
  32. package/dist/web/assets/{Features-BvZfZIb7.js → Features-DRONEGA3.js} +1 -1
  33. package/dist/web/assets/{Flags-B_-HOAeZ.js → Flags-CF8Zboey.js} +2 -2
  34. package/dist/web/assets/{Flaky-CWyV0rE3.js → Flaky-B6IYRvE2.js} +1 -1
  35. package/dist/web/assets/Impact-DglYEuEY.js +3 -0
  36. package/dist/web/assets/Jobs-BX-DXp28.js +5 -0
  37. package/dist/web/assets/KindPage-ByaxfUiE.js +6 -0
  38. package/dist/web/assets/Migration-wVEuZ3zr.js +2 -0
  39. package/dist/web/assets/Product-Bcv7xIYx.js +7 -0
  40. package/dist/web/assets/{Production-Dakb3WS-.js → Production-DTdUc-ze.js} +1 -1
  41. package/dist/web/assets/{Quality-CcrANX20.js → Quality-B0MRg6wI.js} +1 -1
  42. package/dist/web/assets/{Readiness-DvYQ17Oh.js → Readiness-XpGisxdv.js} +1 -1
  43. package/dist/web/assets/Record-C0vcXk-u.js +2 -0
  44. package/dist/web/assets/Regression-CthpK77C.js +5 -0
  45. package/dist/web/assets/{RelationGraph-evMcSFoO.js → RelationGraph-MHWsIy8b.js} +1 -1
  46. package/dist/web/assets/Reports-Cy1MvUqg.js +2 -0
  47. package/dist/web/assets/Response-53IPohSg.js +4 -0
  48. package/dist/web/assets/RunDiff-BQH6Wacd.js +1 -0
  49. package/dist/web/assets/Runs-IwZWhlyu.js +2 -0
  50. package/dist/web/assets/Steps-DKCrz0ed.js +2 -0
  51. package/dist/web/assets/{TestCases-93xQKkMT.js → TestCases-Bt81xr3X.js} +1 -1
  52. package/dist/web/assets/TestData-CXRhxaD8.js +2 -0
  53. package/dist/web/assets/{TestDebt-CE62ftuJ.js → TestDebt-DM5VeTwn.js} +1 -1
  54. package/dist/web/assets/Tosca-B42EZ5YF.js +3 -0
  55. package/dist/web/assets/{WhatsNew-lX-LhWKt.js → WhatsNew-D3yHnxgW.js} +1 -1
  56. package/dist/web/assets/agentLink-BlI6CU6m.js +1 -0
  57. package/dist/web/assets/{dataParts-LCnV1x8c.js → dataParts-B0tYVMhQ.js} +2 -2
  58. package/dist/web/assets/{families-DLmHA4rL.js → families-DGOQO6Mu.js} +1 -1
  59. package/dist/web/assets/filters-Btr3PTRn.js +1 -0
  60. package/dist/web/assets/{fold-pif2b5qg.js → fold-B_G_xXZM.js} +1 -1
  61. package/dist/web/assets/frame-CU0pSxTD.js +18 -0
  62. package/dist/web/assets/index-CCNq91up.js +68 -0
  63. package/dist/web/assets/index-D6jp6pDW.css +2 -0
  64. package/dist/web/assets/{logos-gqcS1A90.js → logos-DpiYLP3H.js} +1 -1
  65. package/dist/web/assets/{markdown-BcuknPlh.js → markdown-Dn8IZFhS.js} +5 -5
  66. package/dist/web/assets/{paletteCommands-qeRU49pp.js → paletteCommands-DKcFFV7I.js} +1 -1
  67. package/dist/web/assets/{parts-C7nGHnut.js → parts-Ct3kXHNO.js} +1 -1
  68. package/dist/web/assets/{productParts-3lWHIbdH.js → productParts-IDyVJAgM.js} +1 -1
  69. package/dist/web/assets/{qualityParts-B-TQusS6.js → qualityParts-Db6YfFIY.js} +1 -1
  70. package/dist/web/assets/recordTest-_r_cdTC6.js +1 -0
  71. package/dist/web/assets/{rows-vVKLONno.js → rows-De2l3NFN.js} +1 -1
  72. package/dist/web/assets/{segmented-Bi4QAoQY.js → segmented-CHGzMxbS.js} +1 -1
  73. package/dist/web/assets/{usePageChat-De5Fn1X3.js → usePageChat-CpAYTNqJ.js} +1 -1
  74. package/dist/web/index.html +5 -5
  75. package/docs/ARCHITECTURE.md +30 -30
  76. package/docs/BUSINESS_ASSURANCE.md +7 -7
  77. package/docs/CONTAINERS.md +8 -10
  78. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
  79. package/docs/DESKTOP.md +8 -10
  80. package/docs/GRAPHIFY.md +1 -1
  81. package/docs/MOBILE.md +6 -6
  82. package/docs/MODEL_ROUTING.md +57 -9
  83. package/docs/PRODUCT_KNOWLEDGE.md +3 -3
  84. package/docs/PRODUCT_VIEWS.md +1 -1
  85. package/docs/WEB_APP.md +6 -6
  86. package/docs/demo-qi-commerce.md +30 -30
  87. package/docs/feature-test-prompts.md +3 -3
  88. package/docs/prompts/graphify-evidence.md +3 -3
  89. package/docs/security-data-flow.html +23 -23
  90. package/docs/user-guide.html +214 -165
  91. package/docs/walkthrough/hotfix-narration.md +19 -19
  92. package/docs/walkthrough/index.html +26 -26
  93. package/env.example.yaml +1 -1
  94. package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
  95. package/forgeqe-architecture.html +48 -48
  96. package/forgeqe.example.yaml +16 -10
  97. package/package.json +1 -1
  98. package/prompts/README.md +7 -7
  99. package/prompts/agent-builder.md +1 -1
  100. package/prompts/api-tests.md +1 -1
  101. package/prompts/brain.md +8 -5
  102. package/prompts/business-interview.md +3 -3
  103. package/prompts/business-persona.md +3 -3
  104. package/prompts/business-strategist.md +1 -1
  105. package/prompts/db-agent.md +3 -3
  106. package/prompts/doc-reader.md +2 -2
  107. package/prompts/heal.md +1 -1
  108. package/prompts/knowledge-agent.md +3 -3
  109. package/prompts/model-profile.md +1 -1
  110. package/prompts/page-differs.md +1 -1
  111. package/prompts/persona-own.md +3 -3
  112. package/prompts/talk.md +3 -2
  113. package/prompts/test-agent.md +2 -2
  114. package/prompts/test-plan.md +2 -2
  115. package/prompts/tosca-assistant.md +1 -1
  116. package/py/forgeqe_engine/copilot_gateway.py +1 -1
  117. package/py/forgeqe_engine/memory.py +48 -2
  118. package/py/forgeqe_engine/recordsession.py +31 -1
  119. package/py/forgeqe_engine/video.py +104 -12
  120. package/py/forgeqe_engine/webrecord_page.py +88 -7
  121. package/py/forgeqe_tosca/__init__.py +2 -2
  122. package/py/forgeqe_tosca/render.py +1 -1
  123. package/py/forgeqe_tosca/tsu.py +2 -2
  124. package/skills/playwright-automation/SKILL.md +102 -0
  125. package/skills/playwright-automation/references/dotnet.md +90 -0
  126. package/skills/playwright-automation/references/java.md +41 -0
  127. package/skills/playwright-automation/references/python.md +42 -0
  128. package/skills/playwright-automation/references/typescript.md +54 -0
  129. package/skills/test-data/SKILL.md +1 -1
  130. package/skills/writing-skills/SKILL.md +2 -2
  131. package/dist/web/assets/Agent-Bha4Lr91.js +0 -8
  132. package/dist/web/assets/ApiTests-xhnOnRi9.js +0 -10
  133. package/dist/web/assets/Browse-DPfzCrMZ.js +0 -2
  134. package/dist/web/assets/Chat-DuLj5IPw.js +0 -5
  135. package/dist/web/assets/Cost-PNcsRgPW.js +0 -1
  136. package/dist/web/assets/Data-DaKzcO_S.js +0 -6
  137. package/dist/web/assets/Desktop-sXYXYwRy.js +0 -1
  138. package/dist/web/assets/DesktopReview-Bz6bfPkM.js +0 -1
  139. package/dist/web/assets/Impact-BqHiKxoG.js +0 -3
  140. package/dist/web/assets/Jobs-DUfRHoko.js +0 -5
  141. package/dist/web/assets/KindPage-Dj3vryGF.js +0 -6
  142. package/dist/web/assets/Migration-CP3o4tLy.js +0 -2
  143. package/dist/web/assets/Product-BeHmrA7Z.js +0 -7
  144. package/dist/web/assets/Record-V7x9VxRQ.js +0 -2
  145. package/dist/web/assets/Regression-DgXh0V-X.js +0 -5
  146. package/dist/web/assets/Reports--eyV0Gfp.js +0 -2
  147. package/dist/web/assets/Response-B1S-n787.js +0 -4
  148. package/dist/web/assets/RunDiff-DwEopDsx.js +0 -1
  149. package/dist/web/assets/Runs-B6bSGdrI.js +0 -2
  150. package/dist/web/assets/Steps-DxPqrmZK.js +0 -2
  151. package/dist/web/assets/TestData-BiW5r9gA.js +0 -2
  152. package/dist/web/assets/Tosca-CrvuVNqG.js +0 -3
  153. package/dist/web/assets/agentLink-ZQZx1pK-.js +0 -1
  154. package/dist/web/assets/filters-CorGh2vA.js +0 -1
  155. package/dist/web/assets/frame-BgpCUEoM.js +0 -18
  156. package/dist/web/assets/index-0YhzcgZJ.css +0 -2
  157. package/dist/web/assets/index-CEVZ8F8_.js +0 -67
  158. package/dist/web/assets/recordTest-BmD8jtw0.js +0 -1
  159. package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
  160. package/skills/playwright-typescript/SKILL.md +0 -36
@@ -120,10 +120,10 @@
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/mobile.svg" alt="" width="40" height="40">Mobile apps</h1>
122
122
  <article class="prose">
123
- <p>Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. The CI job
124
- The <code>android</code> job of <code>.github/workflows/ci.yml</code> runs it on an Android emulator: Appium explores and replays the
125
- emulator's Settings app, and Maestro replays the same workflow. iOS runs the same code with the XCUITest driver, but
126
- no CI job tests it yet (it needs a macOS runner with a simulator).</p>
123
+ <p>Status: the engine and its tests run on any OS, against a fake Appium server and a stand-in for Maestro. On an
124
+ Android emulator the live tests go further: Appium explores and replays the emulator's Settings app, and Maestro
125
+ replays the same workflow. iOS runs the same code with the XCUITest driver, but is untested (it needs a macOS machine
126
+ with a simulator).</p>
127
127
  <p>ForgeQE drives mobile apps two ways, and one workflow format runs on both:</p>
128
128
  <div class="tbl"><table>
129
129
  <thead>
@@ -448,8 +448,8 @@ environment); run it with a local <code>maestro</code>.</li>
448
448
  run folder. Neither the user name nor the key is passed to the flows' environment.</li>
449
449
  <li><code>maestro</code> and the <code>hyperexecute</code> CLI are started without ForgeQE's own secrets (the model's key, service tokens) in
450
450
  their environment; only the mobile engine itself holds them.</li>
451
- <li>The <code>testmu</code> job of <code>.github/workflows/ci.yml</code> (Run workflow, job <code>testmu</code>) runs all three on TestMu (Appium, Maestro with a workflow, a team flow)
452
- with TestMu's Wikipedia sample app, once the repository has the secrets <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code>.</li>
451
+ <li><code>samples/mobile-testmu</code> runs all three on TestMu (Appium, Maestro with a workflow, a team flow) with TestMu's
452
+ Wikipedia sample app, once <code>LT_USERNAME</code> and <code>LT_ACCESS_KEY</code> are set.</li>
453
453
  </ul>
454
454
  <h2 id="security"><a href="#security" class="hash">#</a>Security</h2>
455
455
  <ul>
@@ -120,8 +120,9 @@
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/orchestrator.svg" alt="" width="40" height="40">Model routing</h1>
122
122
  <article class="prose">
123
- <p>With more than one model in <code>llms.json</code>, ForgeQE can give each kind of work the model it needs. A small, fast,
124
- cheap model can plan and review. A strong model can write code and find root causes. A model that takes screenshots
123
+ <p>With more than one model in <code>llms.json</code>, ForgeQE can give each kind of work the model it needs. The most capable model
124
+ plans the work and leads the chat, then hands the tasks to the agents, each on the model that suits it: a strong model
125
+ writes code and finds root causes, a cheaper one that is good enough reviews. A model that takes screenshots
125
126
  drives the browser, and a model with a large window reads a large pull request. You do not need to know what each
126
127
  model can do: ForgeQE finds out.</p>
127
128
  <h2 id="turn-it-on"><a href="#turn-it-on" class="hash">#</a>Turn it on</h2>
@@ -129,6 +130,7 @@ model can do: ForgeQE finds out.</p>
129
130
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>llm:
130
131
  models_file: ./llms.json
131
132
  routing: auto # off (the default for existing projects) | shadow | auto
133
+ strategy: balanced # balanced (the default) | capability | cost
132
134
  </code></pre></div>
133
135
  <p><code>forgeqe init</code> writes <code>routing: auto</code> for new projects. With no <code>routing</code> line it is off. <code>shadow</code> decides and logs each pick in the session log
134
136
  (<code>model.route</code>) but changes nothing, so you can see what the router would do before you let it. Shadow still runs the
@@ -148,12 +150,12 @@ whenever it is rated good enough.</p>
148
150
  <tr><th>Area</th><th>What runs in it</th><th>Needs</th></tr>
149
151
  </thead>
150
152
  <tbody>
151
- <tr><td><code>agent</code></td><td>ForgeQE's agent: the shell, <code>forgeqe run</code>, <code>forgeqe mcp</code></td><td>tool calls; rated 4+</td></tr>
153
+ <tr><td><code>agent</code></td><td>ForgeQE's agent: the shell, <code>forgeqe run</code>, <code>forgeqe mcp</code> (plans and hands out work: <strong>lead</strong>)</td><td>tool calls; rated 4+</td></tr>
152
154
  <tr><td><code>browser</code></td><td>Browser, desktop and mobile runs, from screenshots</td><td>images; rated 4+</td></tr>
153
- <tr><td><code>coding</code></td><td>Scribe writing and healing tests, API tests</td><td>tool calls; rated 5</td></tr>
155
+ <tr><td><code>coding</code></td><td>Quill writing and healing tests, API tests</td><td>tool calls; rated 5</td></tr>
154
156
  <tr><td><code>review</code></td><td>Test reviewer, pull-request review, evaluation judge</td><td>tool calls; rated 3+</td></tr>
155
157
  <tr><td><code>analysis</code></td><td>Root cause of defects</td><td>tool calls; rated 5</td></tr>
156
- <tr><td><code>planning</code></td><td>Refine, finding tests, API scenarios, exploratory charters</td><td>tool calls; rated 3+</td></tr>
158
+ <tr><td><code>planning</code></td><td>Refine, finding tests, API scenarios, exploratory charters (<strong>lead</strong>)</td><td>tool calls; rated 3+</td></tr>
157
159
  </tbody>
158
160
  </table></div>
159
161
  <h2 id="a-default-model-for-each-agent"><a href="#a-default-model-for-each-agent" class="hash">#</a>A default model for each agent</h2>
@@ -161,7 +163,7 @@ whenever it is rated good enough.</p>
161
163
  (Settings → Routing → Areas of work, under each area, does the same):</p>
162
164
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>llm:
163
165
  agents:
164
- forgeqe: azure-gpt4o # the Orchestrator
166
+ forgeqe: azure-gpt4o # Atlas
165
167
  engine: azure-gpt4o # the browser agent: pick a model that takes images
166
168
  forgeqe-test: claude-opus # the coding agent
167
169
  forgeqe-review: azure-mini # its reviewer
@@ -191,9 +193,25 @@ fails its check is replaced as for any area. <code>--profile</code> still names
191
193
  already downloads for prices. A fact that nobody knows never rules a model out.</p>
192
194
  </li>
193
195
  <li>
194
- <p><strong>Ratings pick among the rest.</strong> The cheapest model rated at the area's bar is picked. Writing code and finding
195
- root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. If no model reaches the bar,
196
- the best-rated one is picked. With no ratings yet, the active profile is kept unless a fact rules it out.</p>
196
+ <p><strong>Ratings and the strategy pick among the rest.</strong> Only models rated at the area's bar are considered. Writing code
197
+ and finding root causes ask for 5, because a weaker model there costs more in failed attempts than it saves. Among
198
+ them, <code>llm.strategy</code> picks:</p>
199
+ <div class="tbl"><table>
200
+ <thead>
201
+ <tr><th>Strategy</th><th>Lead areas (<code>agent</code>, <code>planning</code>)</th><th>The other areas</th></tr>
202
+ </thead>
203
+ <tbody>
204
+ <tr><td><code>balanced</code> (the default)</td><td>the most capable model; the cheapest only among equally rated ones</td><td>the best value: a higher rating is worth paying for, up to 4× the price per rating point</td></tr>
205
+ <tr><td><code>capability</code></td><td>the most capable model</td><td>the most capable model</td></tr>
206
+ <tr><td><code>cost</code></td><td>the cheapest model rated at the bar</td><td>the cheapest model rated at the bar</td></tr>
207
+ </tbody>
208
+ </table></div>
209
+ <p>So with <code>balanced</code>, the planner is never a weak model because it was cheap, and a worker gets a stronger model when
210
+ the extra capability costs little more. For example, for review (bar 3) a model rated 5 at 3× the price of one rated
211
+ 4 is picked; at 8× the price, the one rated 4 is. A GitHub Copilot seat counts only its premium requests per call as
212
+ price. If no model reaches the bar, the best-rated one is picked. With no ratings yet, the active profile is kept
213
+ unless a fact rules it out. To keep a fast model for one agent (for example Talk's voice agent, which works in
214
+ <code>planning</code>), give it its own model under <code>llm.agents</code>.</p>
197
215
  </li>
198
216
  <li>
199
217
  <p><strong>A failed answer escalates once.</strong> When a root-cause analysis finds nothing, or finds a cause with low confidence
@@ -232,12 +250,42 @@ data on one deployment; the checks carry nothing from your runs. To send nothing
232
250
  </code></pre></div>
233
251
  <p>A name in <code>routes</code> must be a profile in <code>llms.json</code>, and an area must be one of the six above. Anything else stops
234
252
  ForgeQE at start with a message that names it.</p>
253
+ <h2 id="what-routing-cost-and-what-it-saved"><a href="#what-routing-cost-and-what-it-saved" class="hash">#</a>What routing cost, and what it saved</h2>
254
+ <p>Every model call is recorded with the area it was made for and what chose its model — the router's own pick, an
255
+ <code>llm.agents</code> pin, a substitution after a model failed its check, the active profile kept because nothing else passed,
256
+ or an escalation. It goes in the usage ledger beside the tokens, so the question &quot;which model wrote the tests, and
257
+ what did that cost&quot; is answered from the calls themselves and not from the logs.</p>
258
+ <p>Where to see it:</p>
259
+ <ul>
260
+ <li><strong>Cost › By area of work</strong> — what each area spent.</li>
261
+ <li><strong>Cost › Routing</strong> — each area's pick, and a <em>Ran on</em> column with the models that actually answered for it.</li>
262
+ <li><strong>Cost › What routing cost</strong> — each area against running everything on <code>llm.active</code>, which is what <code>routing: off</code>
263
+ does. Both sides are priced at today's prices, so the difference is the models' and not a price that moved since.</li>
264
+ <li><code>forgeqe models --routes</code> still shows the picks themselves.</li>
265
+ </ul>
266
+ <p>Two things to read carefully:</p>
267
+ <ul>
268
+ <li><strong>An area can cost more, on purpose.</strong> <code>coding</code> and <code>analysis</code> are routed to a model rated 5, which is usually the
269
+ dearest one configured. Measured against a cheap active profile, those areas show as costing <em>more</em>, and the total
270
+ can be negative. That is routing working, not a fault: the cheaper model there costs more in failed attempts than
271
+ it saves.</li>
272
+ <li><strong>It is price arithmetic only.</strong> Nothing in it checked that the cheaper model would have reached the same answer,
273
+ written a test that passed, or found the same root cause. A saving is what the tokens would have cost at another
274
+ price, nothing more.</li>
275
+ </ul>
276
+ <p>Calls that cannot be compared are counted and named rather than folded in: a model with no known price, an active
277
+ profile with no known price, or a price in another currency, which there is no rate to convert with. Calls recorded
278
+ before ForgeQE kept the area, and any the router never touched, are their own <strong>Not attributed</strong> row.</p>
235
279
  <h2 id="what-it-does-not-do"><a href="#what-it-does-not-do" class="hash">#</a>What it does not do</h2>
236
280
  <ul>
281
+ <li>The lead model does not choose the workers' models itself: each agent's model is picked by code, from the ratings
282
+ and the strategy, so the same configuration always gives the same models.</li>
237
283
  <li>ForgeQE's agent picks its model when its session starts and keeps it for the whole conversation. Changing the model
238
284
  mid-conversation would drop the prompt cache and make every later turn cost more. The agent hands heavy work to the
239
285
  other agents, and those are routed.</li>
240
286
  <li>A rating is one model's judgement. It is kept in a file that you can read and correct.</li>
287
+ <li>It does not judge whether a cheaper model was good enough. The saving it reports is a price difference; whether the
288
+ model that answered was the right one is what a test's result, a review and a root cause tell you.</li>
241
289
  </ul>
242
290
 
243
291
  </article>
@@ -247,7 +295,7 @@ other agents, and those are routed.</li>
247
295
  </nav>
248
296
  </main>
249
297
  <aside class="docs-toc" aria-label="On this page">
250
- <p class="side-head">On this page</p><ul><li><a href="#turn-it-on">Turn it on</a></li><li><a href="#the-areas-of-work">The areas of work</a></li><li><a href="#a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#how-a-model-is-picked">How a model is picked</a></li><li><a href="#how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#what-it-does-not-do">What it does not do</a></li></ul>
298
+ <p class="side-head">On this page</p><ul><li><a href="#turn-it-on">Turn it on</a></li><li><a href="#the-areas-of-work">The areas of work</a></li><li><a href="#a-default-model-for-each-agent">A default model for each agent</a></li><li><a href="#how-a-model-is-picked">How a model is picked</a></li><li><a href="#how-forgeqe-learns-the-models">How ForgeQE learns the models</a></li><li><a href="#limit-what-an-area-may-use">Limit what an area may use</a></li><li><a href="#what-routing-cost-and-what-it-saved">What routing cost, and what it saved</a></li><li><a href="#what-it-does-not-do">What it does not do</a></li></ul>
251
299
  </aside>
252
300
  </div>
253
301
  <footer class="foot">
@@ -122,7 +122,7 @@
122
122
  <article class="prose">
123
123
  <p>Status: phases 1 (structure graph, query, tool, command), 2 (model understanding, pages, flows) and 3 (documents and links) built; phases 4 and 5 are design. Branch <code>knowledge-graph</code>.</p>
124
124
  <h2 id="goal"><a href="#goal" class="hash">#</a>Goal</h2>
125
- <p>Give every ForgeQE agent (the Orchestrator, planners, the browser agent, Scribe, the API and defect agents) a clear,
125
+ <p>Give every ForgeQE agent (Atlas, planners, the browser agent, Quill, the API and defect agents) a clear,
126
126
  queryable picture of how the product works, built from <strong>all of the product's repositories and documents</strong>, so a task
127
127
  starts from what the product actually does instead of guesses.</p>
128
128
  <ul>
@@ -139,7 +139,7 @@ matter, with <code>repo:file:line</code> references they can open.</li>
139
139
  </thead>
140
140
  <tbody>
141
141
  <tr><td>Product notes (Markdown)</td><td><code>src/knowledge.ts</code>, <code>.forgeqe/knowledge/</code></td><td>Sections matched to a task by shared words</td></tr>
142
- <tr><td>Test-repo code graph (no model)</td><td><code>src/code/graph/</code></td><td>Scribe finds classes, tests, locators</td></tr>
142
+ <tr><td>Test-repo code graph (no model)</td><td><code>src/code/graph/</code></td><td>Quill finds classes, tests, locators</td></tr>
143
143
  <tr><td>tree-sitter parsers</td><td><code>@vscode/tree-sitter-wasm</code>: TS, TSX, JS, C#, Java, Python</td><td>Parsing without a model</td></tr>
144
144
  <tr><td>Confluence pages</td><td><code>src/cases/confluence.ts</code></td><td>Test cases today; documents here</td></tr>
145
145
  <tr><td>Model routing</td><td><code>src/router/</code></td><td>Picks the model per area of work</td></tr>
@@ -278,7 +278,7 @@ between services, table reads and writes, inheritance, and imports, which cost t
278
278
  Both ways are tried, and an answer the other way round says so. Each step names the line it rests on, and a step only
279
279
  inferred is marked. <code>ask</code> (op <code>ask</code>) runs the
280
280
  investigator (PRODUCT_VIEWS.md, Investigation).</li>
281
- <li><strong>Prompts</strong>: the planners, the explorer, the API planner, and the browser agent get the matching block next to
281
+ <li><strong>Prompts</strong>: the planners, the explorer, Planner, and the browser agent get the matching block next to
282
282
  today's knowledge sections.</li>
283
283
  <li><strong>Requirement_Agent</strong> reads the same <code>product-graph.json</code> through a <code>GraphProvider</code> (its <code>ContextProvider</code> interface).</li>
284
284
  <li><strong>Web app</strong>: a Knowledge page shows the graph, the generated pages, and build status, and starts a rebuild.</li>
@@ -352,7 +352,7 @@ first. It has no shell and no network beyond ForgeQE's own runs.</li>
352
352
  <ol>
353
353
  <li><strong>Fact store and evidence</strong> (done). Evidence on every node and edge of <code>product-graph.json</code>; gaps for calls and
354
354
  tables that cannot be settled; <code>graph/coverage.json</code>; <code>forgeqe knowledge gaps</code> and <code>check</code>; the tool's <code>gaps</code>.</li>
355
- <li><strong>Investigator</strong> (done). <code>forgeqe-investigate</code> (prompts/product-investigate.md) with two read-only tools,
355
+ <li><strong>Digger</strong> (done). <code>forgeqe-investigate</code> (prompts/product-investigate.md) with two read-only tools,
356
356
  <code>product_knowledge</code> and <code>product_code</code> (src/mcp/investigatetools.ts); findings with quotes found again in code;
357
357
  <code>graph/findings.json</code>, earlier findings in the next request, stale marking on build and check; <code>forgeqe knowledge ask|findings</code>; the tool's <code>ask</code> and <code>findings</code>; <code>node</code> shows findings. The investigator also reads the text of
358
358
  pages from links and Confluence (kept in <code>graph/texts/</code>) and the API calls of ForgeQE's runs (<code>product_docs</code>,