@capagents/forgeqe 3.1.2 → 3.1.3

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 (170) hide show
  1. package/HOW_TO_USE.md +5003 -2077
  2. package/README.md +155 -449
  3. package/dist/docs-site/docs/app-theme.css +30 -9
  4. package/dist/docs-site/docs/architecture/index.html +45 -515
  5. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  6. package/dist/docs-site/docs/area-api/index.html +257 -116
  7. package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
  8. package/dist/docs-site/docs/area-browser/index.html +167 -125
  9. package/dist/docs-site/docs/area-data/index.html +178 -188
  10. package/dist/docs-site/docs/area-desktop/index.html +329 -282
  11. package/dist/docs-site/docs/area-mobile/index.html +138 -86
  12. package/dist/docs-site/docs/area-operations/index.html +567 -393
  13. package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
  14. package/dist/docs-site/docs/area-quality/index.html +111 -49
  15. package/dist/docs-site/docs/area-release/index.html +180 -65
  16. package/dist/docs-site/docs/area-setup/index.html +742 -339
  17. package/dist/docs-site/docs/area-systems/index.html +32 -48
  18. package/dist/docs-site/docs/area-test-cases/index.html +387 -154
  19. package/dist/docs-site/docs/containers/index.html +87 -101
  20. package/dist/docs-site/docs/cost-architecture/index.html +4 -3
  21. package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
  22. package/dist/docs-site/docs/desktop/index.html +277 -297
  23. package/dist/docs-site/docs/desktop-ci/index.html +15 -5
  24. package/dist/docs-site/docs/docs-tabs.js +56 -0
  25. package/dist/docs-site/docs/evidence/index.html +50 -49
  26. package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
  27. package/dist/docs-site/docs/get-started/index.html +464 -168
  28. package/dist/docs-site/docs/graphify/index.html +8 -7
  29. package/dist/docs-site/docs/guardrails/index.html +20 -4
  30. package/dist/docs-site/docs/index.html +4 -3
  31. package/dist/docs-site/docs/mobile/index.html +96 -76
  32. package/dist/docs-site/docs/model-routing/index.html +44 -18
  33. package/dist/docs-site/docs/overview/index.html +23 -7
  34. package/dist/docs-site/docs/product-graph/index.html +13 -12
  35. package/dist/docs-site/docs/product-knowledge/index.html +16 -5
  36. package/dist/docs-site/docs/product-views/index.html +7 -6
  37. package/dist/docs-site/docs/reference/index.html +95 -65
  38. package/dist/docs-site/docs/search.js +1 -1
  39. package/dist/docs-site/docs/using/index.html +444 -126
  40. package/dist/docs-site/docs/web-app/index.html +54 -51
  41. package/dist/forgeqe.js +1822 -1822
  42. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  43. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  44. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  45. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  46. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  47. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  48. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  49. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  50. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  51. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  52. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  53. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  54. package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
  55. package/dist/web/assets/Features-haQchkhA.js +1 -0
  56. package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
  57. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  58. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  59. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  60. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  61. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  62. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  63. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  64. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  65. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  66. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  67. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  68. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  69. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  70. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  71. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  72. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  73. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  74. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  75. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  76. package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
  77. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  78. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  79. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  80. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  81. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  82. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  83. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  84. package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
  85. package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
  86. package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
  87. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  88. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  89. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  90. package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
  91. package/dist/web/assets/index-ClFOh63x.css +2 -0
  92. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  93. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  94. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  95. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  96. package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
  97. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  98. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  99. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  100. package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
  101. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  102. package/dist/web/index.html +6 -7
  103. package/docs/ARCHITECTURE.md +50 -563
  104. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  105. package/docs/CONTAINERS.md +87 -87
  106. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  107. package/docs/DESKTOP-CI.md +18 -3
  108. package/docs/DESKTOP.md +298 -297
  109. package/docs/MOBILE.md +103 -71
  110. package/docs/MODEL_ROUTING.md +48 -15
  111. package/docs/WEB_APP.md +49 -44
  112. package/docs/feature-test-prompts.md +29 -16
  113. package/docs/user-guide.html +5263 -2453
  114. package/guardrails/README.md +22 -2
  115. package/knowledge/README.md +15 -2
  116. package/package.json +1 -1
  117. package/prompts/brain.md +1 -0
  118. package/py/forgeqe_engine/recordsession.py +100 -24
  119. package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
  120. package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
  121. package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
  122. package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
  123. package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
  124. package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
  125. package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
  126. package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
  127. package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
  128. package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
  129. package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
  130. package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
  131. package/dist/web/assets/Features-CQzNo_WP.js +0 -1
  132. package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
  133. package/dist/web/assets/Impact-CfccsL_k.js +0 -3
  134. package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
  135. package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
  136. package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
  137. package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
  138. package/dist/web/assets/Product-nYV_scOV.js +0 -7
  139. package/dist/web/assets/Production-CGSbEWVa.js +0 -1
  140. package/dist/web/assets/Quality-BIypojZm.js +0 -1
  141. package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
  142. package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
  143. package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
  144. package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
  145. package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
  146. package/dist/web/assets/Response-mhBThq2b.js +0 -9
  147. package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
  148. package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
  149. package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
  150. package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
  151. package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
  152. package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
  153. package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
  154. package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
  155. package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
  156. package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
  157. package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
  158. package/dist/web/assets/filters-CnAMr286.js +0 -1
  159. package/dist/web/assets/fold-D_O_VZui.js +0 -1
  160. package/dist/web/assets/head-CRo48rPt.js +0 -1
  161. package/dist/web/assets/index-B3JsM7tv.js +0 -64
  162. package/dist/web/assets/index-CafApcbZ.css +0 -2
  163. package/dist/web/assets/input-CtzK50ZF.js +0 -1
  164. package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
  165. package/dist/web/assets/logos-D4oVWzqa.js +0 -1
  166. package/dist/web/assets/palette-DAaGSao7.js +0 -1
  167. package/dist/web/assets/parts-D357Wolo.js +0 -1
  168. package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
  169. package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
  170. package/dist/web/assets/route-BloYJWgw.js +0 -1
@@ -11,6 +11,7 @@
11
11
  <link rel="stylesheet" href="../docs.css">
12
12
  <script src="../search.js" defer></script>
13
13
  <script src="../docs.js" defer></script>
14
+ <script src="../docs-tabs.js" defer></script>
14
15
  <link rel="stylesheet" href="../../app-look.css">
15
16
  <link rel="stylesheet" href="../app-theme.css">
16
17
  </head>
@@ -112,11 +113,11 @@
112
113
  <div class="container docs-layout">
113
114
  <nav class="docs-side" aria-label="Docs">
114
115
  <a class="side-home" href="../index.html"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
115
- <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="index.html" aria-current="page"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
+ <div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="index.html" aria-current="page"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
116
117
  </nav>
117
118
  <main id="main" class="docs-main">
118
119
  <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>For contributors</p>
119
- <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>Architecture</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="index.html" aria-current="page"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details></div>
120
+ <div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="../area-test-cases/index.html"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="index.html" aria-current="page"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details></div>
120
121
  <h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Evidence (design and status)</h1>
121
122
  <article class="prose">
122
123
  <p>Status: design, agreed before building. Nothing here is built yet unless a phase says done.</p>
@@ -167,7 +168,7 @@ the checks behind it.</li>
167
168
  before the next starts.</li>
168
169
  </ol>
169
170
  <h2 id="the-run-record"><a href="#the-run-record" class="hash">#</a>The run record</h2>
170
- <p>One record per agent run (<code>.forgeqe/evidence/runs/&amp;lt;run-id&gt;.json</code>, a versioned schema), whatever produced it:</p>
171
+ <p>One record per agent run (<code>.forgeqe/evidence/runs/&lt;run-id&gt;.json</code>, a versioned schema), whatever produced it:</p>
171
172
  <div class="tbl tbl--cols-3"><table>
172
173
  <thead>
173
174
  <tr><th>Part</th><th>What</th><th>Notes</th></tr>
@@ -204,7 +205,7 @@ Scores and feedback on a run are someone's judgement of it, not the run, and are
204
205
  (JSON or protobuf, gzipped or not; <code>src/evidence/receiver.ts</code>) that an agent under test sends its traces to with the
205
206
  OpenTelemetry exporter's own settings, which it prints:</p>
206
207
  <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 class="lines"><code><span class="ln"><span class="cmd">OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://127.0.0.1:4318/v1/traces
207
- </span></span><span class="ln"><span class="cmd">OTEL_EXPORTER_OTLP_TRACES_HEADERS=Authorization=Bearer%20&amp;lt;token&gt;
208
+ </span></span><span class="ln"><span class="cmd">OTEL_EXPORTER_OTLP_TRACES_HEADERS=Authorization=Bearer%20&lt;token&gt;
208
209
  </span></span><span class="ln"><span class="cmd">OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
209
210
  </span></span><span class="ln"><span class="cmd">OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
210
211
  </span></span></code></pre></div>
@@ -212,12 +213,12 @@ OpenTelemetry exporter's own settings, which it prints:</p>
212
213
  the root comes last: a trace is recorded once its root has arrived and nothing more has for <code>--settle</code> seconds (10), or
213
214
  after five minutes with no root (the record then says part of the trace is missing). Ctrl+C records every trace still
214
215
  open. A record is never changed: spans that arrive after their trace was recorded are kept beside it in
215
- <code>incoming/&amp;lt;trace&gt;.late.jsonl</code> and said. The token is new each start unless <code>FORGEQE_EVIDENCE_TOKEN</code> keeps one. A
216
+ <code>incoming/&lt;trace&gt;.late.jsonl</code> and said. The token is new each start unless <code>FORGEQE_EVIDENCE_TOKEN</code> keeps one. A
216
217
  trace whose root is in another service (a remote parent) waits the five minutes. Content is recorded as fingerprints
217
218
  unless <code>--content</code> is given, and only what the agent's instrumentation captured (the last setting above, for
218
219
  OpenTelemetry's own generative AI instrumentations) is there to record.</p>
219
220
  <h3 id="the-labelled-corpus-e13"><a href="#the-labelled-corpus-e13" class="hash">#</a>The labelled corpus (E1.3)</h3>
220
- <p><code>evals/evidence/records/&amp;lt;case&gt;/</code> holds runs whose right record is known: a source (a ForgeQE session, an
221
+ <p><code>evals/evidence/records/&lt;case&gt;/</code> holds runs whose right record is known: a source (a ForgeQE session, an
221
222
  OpenTelemetry trace, an agent's own JSON log with its <code>mapping.yaml</code>) and <code>case.json</code> with what each record must hold
222
223
  (steps, inputs, decisions with who decided, their options and stated reasons, statements, outputs, gaps that must and
223
224
  must not be said) and what was planted in the source (secrets, personal data, injected instructions). The expectations
@@ -240,7 +241,7 @@ sensitive values replaced before they are committed.</p>
240
241
  <li>limits: steps, retries, cost, time;</li>
241
242
  <li>when it must hand over to a person.</li>
242
243
  </ul>
243
- <p><strong>Built (E2).</strong> <code>.forgeqe/evidence/contracts/&amp;lt;name&gt;.yaml</code> (<code>src/evidence/contract.ts</code>); <code>forgeqe evidence contract new &quot;&amp;lt;agent&gt;&quot;</code> starts one from the agent's recorded runs (the tools and agents they used, as a proposal to edit):</p>
244
+ <p><strong>Built (E2).</strong> <code>.forgeqe/evidence/contracts/&lt;name&gt;.yaml</code> (<code>src/evidence/contract.ts</code>); <code>forgeqe evidence contract new &quot;&lt;agent&gt;&quot;</code> starts one from the agent's recorded runs (the tools and agents they used, as a proposal to edit):</p>
244
245
  <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 class="lines"><code><span class="ln ln--pair"><span class="cmd">agent: claims-agent</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the agent's name, as its runs record it
245
246
  </span></span><span class="ln ln--pair"><span class="cmd">version: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the contract's own version
246
247
  </span></span><span class="ln"><span class="cmd">purpose: Decides home-insurance claims within the policy.
@@ -270,7 +271,7 @@ times in a row the same call (same tool, same arguments) may be repeated. A phra
270
271
  case-insensitively, and not when a negating word comes just before it in its sentence (&quot;could not be approved&quot;).</p>
271
272
  <p>The file may come from a repository and is read as untrusted: only these keys of their own types, no YAML aliases,
272
273
  names and phrases as plain text (never a pattern that is run), the result frozen. What judges is the <strong>approved</strong>
273
- version: <code>forgeqe evidence contract approve &amp;lt;name&gt;</code> shows everything it agrees and which checks could then fail a run,
274
+ version: <code>forgeqe evidence contract approve &lt;name&gt;</code> shows everything it agrees and which checks could then fail a run,
274
275
  and a person at a terminal types the name; an exact copy and its digest are kept in <code>contracts/.approved/</code> and checked
275
276
  on every read (a copy changed by hand judges nothing). A change to the file waits for approval while the approved
276
277
  version judges. A contract nobody approved still judges, but only warns. ForgeQE's own coding agents may not edit
@@ -291,15 +292,15 @@ version judges. A contract nobody approved still judges, but only warns. ForgeQE
291
292
  </table></div>
292
293
  <p><strong>Built (E2)</strong> in <code>src/evidence/behaviour.ts</code>. Each check gives PASS, WARN, FAIL or NOT KNOWN: what the record cannot
293
294
  settle (an argument kept only as a fingerprint, an outcome the source did not record) is not known, never a pass. A
294
- finding names its steps (or statement, or output) and the contract rule it rests on. <code>forgeqe evidence check &amp;lt;id&gt;</code> (or
295
- <code>--all</code>) judges runs and keeps each verdict in <code>.forgeqe/evidence/verdicts/&amp;lt;run&gt;.&amp;lt;digest&gt;.json</code>; it exits 1 when a run
295
+ finding names its steps (or statement, or output) and the contract rule it rests on. <code>forgeqe evidence check &lt;id&gt;</code> (or
296
+ <code>--all</code>) judges runs and keeps each verdict in <code>.forgeqe/evidence/verdicts/&lt;run&gt;.&lt;digest&gt;.json</code>; it exits 1 when a run
296
297
  fails, so a pipeline can gate on it. The run's page shows the verdict above its timeline, each finding opening its step.</p>
297
298
  <p><strong>When a check may fail a run</strong> (principle 5): only when the contract is approved, its owner set a bar for that check
298
299
  (<code>gate</code>), and the check's precision, measured at that moment on the labelled runs, meets the bar on at least five
299
300
  labelled findings (<code>src/evidence/measure.ts</code>). The labelled runs are ForgeQE's own (<code>evals/evidence/behaviour/</code>: 20
300
301
  runs, planted skipped and late steps, forbidden and unlisted tools, a sub-agent's forbidden call, a retry loop, an
301
302
  approval only a person may make, &quot;tests pass&quot; when they did not, cancelled and refunded when they were not, and good
302
- runs with negated claims and paging) and the project's own, in <code>.forgeqe/evidence/labelled/&amp;lt;case&gt;/</code> (a source, its
303
+ runs with negated claims and paging) and the project's own, in <code>.forgeqe/evidence/labelled/&lt;case&gt;/</code> (a source, its
303
304
  contract, and case.json with the findings each record must give). The measurement is made from them each time; there
304
305
  is no stored number to change. <code>forgeqe evidence measure</code> prints it. On ForgeQE's labelled runs alone, required steps,
305
306
  allowed actions and statements have enough labelled findings to gate; limits and hand-over need a team's own.</p>
@@ -375,7 +376,7 @@ documents, Confluence, Jira and Azure DevOps acceptance criteria).</p>
375
376
  <p>These are decided on facts, not on reading the diff: the graph's own extractor is run on each changed file before and
376
377
  after the change, so what was added or removed (an endpoint, an auth mark, a guard, a state set, a table use, a call)
377
378
  is exact, then read against the graph.</p>
378
- <p><strong>Built (E4, the product check)</strong> in <code>src/evidence/product.ts</code>: <code>forgeqe evidence product-check &amp;lt;repo&gt; [--base main] [--head &amp;lt;ref&gt;] [--run &amp;lt;id&gt;]</code> reads the change from git in that product repository (the working tree when no head is
379
+ <p><strong>Built (E4, the product check)</strong> in <code>src/evidence/product.ts</code>: <code>forgeqe evidence product-check &lt;repo&gt; [--base main] [--head &lt;ref&gt;] [--run &lt;id&gt;]</code> reads the change from git in that product repository (the working tree when no head is
379
380
  given, files not yet added included; git with an argument list, refs checked, binary files and links left out,
380
381
  <code>src/evidence/gitchange.ts</code>) and reads it against the product graph built on the code before it (<code>forgeqe knowledge build</code>). With <code>--run</code>, the verdict is kept beside the agent's run and its page shows it as a third lens, &quot;Was its change
381
382
  right for the product?&quot;, contract or not.</p>
@@ -442,15 +443,15 @@ what the missing part could change.</p>
442
443
  <tr><td data-label="Check">Rubric (<code>rubric</code>)</td><td data-label="Decided by">the judge scores each criterion <code>judge_runs</code> times, each in a session of its own; a score at the bar quotes the answer, found again by code; a judge that disagrees with itself by more than one point, or whose answer does not hold up, is not known; the median decides</td></tr>
443
444
  </tbody>
444
445
  </table></div>
445
- <p><code>forgeqe evidence judge &amp;lt;run&gt;</code> asks the model and keeps its readings in <code>.forgeqe/evidence/judged/&amp;lt;run&gt;.&amp;lt;contract&gt;.json</code>;
446
+ <p><code>forgeqe evidence judge &lt;run&gt;</code> asks the model and keeps its readings in <code>.forgeqe/evidence/judged/&lt;run&gt;.&lt;contract&gt;.json</code>;
446
447
  they are checked again by code each time they are read, and readings made under another version of the contract are not
447
448
  used. Until then the two checks say not known.</p>
448
449
  <p><strong>Calibration.</strong> A rubric's misses are not known, and the run waits in the Review queue under &quot;Answers to grade&quot;, until
449
450
  the judge agrees with people on at least 10 graded answers at the contract's <code>agree</code> level. People grade an answer
450
451
  against each criterion, meets or misses with a reason: on the run's page, or at a terminal that types the run's id
451
- (<code>forgeqe evidence grade &amp;lt;run&gt; R2 misses --reason &quot;…&quot;</code>); never an agent, since the grades are what the judge is trusted
452
+ (<code>forgeqe evidence grade &lt;run&gt; R2 misses --reason &quot;…&quot;</code>); never an agent, since the grades are what the judge is trusted
452
453
  by. Grades are append-only lines in <code>grades.jsonl</code>, checked when read (a line changed by hand is named, and the judge is
453
- not calibrated on a file that has one). <code>forgeqe evidence calibrate &amp;lt;agent&gt;</code> prints the agreement and each disagreement,
454
+ not calibrated on a file that has one). <code>forgeqe evidence calibrate &lt;agent&gt;</code> prints the agreement and each disagreement,
454
455
  worked out each time from the grades and the readings. Once calibrated, a miss is a warning; it may fail a run only
455
456
  under an approved contract whose <code>gate.rubric</code> its precision on people's misses reaches, measured on 5 or more. The
456
457
  grounding check stays advisory: its labelled measurement needs a real model.</p>
@@ -471,19 +472,19 @@ page). An agent may make at most two automatic fix attempts; then a person takes
471
472
  </ul>
472
473
  <p><strong>Built (E5)</strong> in <code>src/evidence/review.ts</code>:</p>
473
474
  <ul>
474
- <li><strong>Findings file</strong>: <code>forgeqe evidence findings &amp;lt;run&gt;</code> writes <code>.forgeqe/evidence/findings/&amp;lt;run&gt;.md</code> for the agent: each
475
+ <li><strong>Findings file</strong>: <code>forgeqe evidence findings &lt;run&gt;</code> writes <code>.forgeqe/evidence/findings/&lt;run&gt;.md</code> for the agent: each
475
476
  open finding with its rule, where it is (steps, or the file and line), and the fix code can say from its rule; which
476
477
  fix attempt this is; and, once the attempts are used, &quot;Stop: a person takes over&quot;. It says that text from the run is
477
478
  data, and never repeats an instruction found in data (the agent reads the file).</li>
478
- <li><strong>Fix attempts</strong>: <code>forgeqe evidence check &amp;lt;run&gt; --attempt-of &amp;lt;first run&gt;</code> records the run as the next attempt at the
479
+ <li><strong>Fix attempts</strong>: <code>forgeqe evidence check &lt;run&gt; --attempt-of &lt;first run&gt;</code> records the run as the next attempt at the
479
480
  first run's work (<code>attempts.jsonl</code>); after the second, open findings mean a person takes over, and a third is
480
481
  refused. The run's page says which attempt it is.</li>
481
- <li><strong>Overrule</strong>: a person overrules one finding with a reason: <code>forgeqe evidence overrule &amp;lt;run&gt; &amp;lt;finding&gt; --reason &quot;…&quot;</code>
482
+ <li><strong>Overrule</strong>: a person overrules one finding with a reason: <code>forgeqe evidence overrule &lt;run&gt; &lt;finding&gt; --reason &quot;…&quot;</code>
482
483
  at a terminal (typing the run's id), or the Overrule form under the finding on the run's page (also in the audit log).
483
484
  Kept in <code>overrules.jsonl</code> with who, when and how; matched by the finding's check, rule and what it says, so judging
484
485
  again finds it again. The finding stays, marked, and no longer counts toward its check or the run.</li>
485
- <li><strong>Report and CI</strong>: <code>forgeqe evidence report &amp;lt;run&gt;…</code> is Markdown for a pull request comment or a job summary, every
486
- value from a run escaped (no link, image, markup, mention or table column can come from it). <code>forgeqe evidence ci [&amp;lt;repo&gt; --base &amp;lt;ref&gt;] [--run &amp;lt;id&gt;,&amp;lt;id&gt;] --report report.md --sarif out.sarif</code> is the pipeline's check: the change
486
+ <li><strong>Report and CI</strong>: <code>forgeqe evidence report &lt;run&gt;…</code> is Markdown for a pull request comment or a job summary, every
487
+ value from a run escaped (no link, image, markup, mention or table column can come from it). <code>forgeqe evidence ci [&lt;repo&gt; --base &lt;ref&gt;] [--run &lt;id&gt;,&lt;id&gt;] --report report.md --sarif out.sarif</code> is the pipeline's check: the change
487
488
  against the product graph and the runs named, the report, SARIF annotations for findings with a file and line, and
488
489
  exit 1 only when a check that gates fails. <code>forgeqe evidence ci init github | azure</code> writes the pipeline (ForgeQE at
489
490
  this exact version; branch names reach the shell as variables only; the comment is posted with the pipeline's own
@@ -510,7 +511,7 @@ the page take it off the queue.</p>
510
511
  </tbody>
511
512
  </table></div>
512
513
  <p><strong>Built (E6, before release)</strong> in <code>src/evidence/scenarios.ts</code>. An agent's scenario suite,
513
- <code>.forgeqe/evidence/scenarios/&amp;lt;name&gt;.yaml</code>, read as untrusted like a contract:</p>
514
+ <code>.forgeqe/evidence/scenarios/&lt;name&gt;.yaml</code>, read as untrusted like a contract:</p>
514
515
  <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 class="lines"><code><span class="ln"><span class="cmd">agent: claims-agent
515
516
  </span></span><span class="ln"><span class="cmd">version: 1
516
517
  </span></span><span class="ln"><span class="cmd">scenarios:
@@ -525,9 +526,9 @@ the page take it off the queue.</p>
525
526
  </span></span><span class="ln ln--pair"><span class="cmd"> clean: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> every lens finds nothing (the default)
526
527
  </span></span></code></pre></div>
527
528
  <p>ForgeQE does not run another team's agent: the team runs each scenario's request through a version in its sandbox and
528
- records the runs as usual (<code>forgeqe evidence scenarios &amp;lt;agent&gt;</code> lists them for a harness). A run is a scenario's when
529
+ records the runs as usual (<code>forgeqe evidence scenarios &lt;agent&gt;</code> lists them for a harness). A run is a scenario's when
529
530
  its agent, version and request match exactly; a scenario passes for a version only when every run of it passes, so one
530
- bad run of a flaky agent is a failure. <code>forgeqe evidence release &amp;lt;agent&gt; --candidate &amp;lt;v&gt; --live &amp;lt;v&gt;</code> is the gate (exit 1
531
+ bad run of a flaky agent is a failure. <code>forgeqe evidence release &lt;agent&gt; --candidate &lt;v&gt; --live &lt;v&gt;</code> is the gate (exit 1
531
532
  when held; each decision kept in <code>releases.jsonl</code>):</p>
532
533
  <div class="tbl tbl--cols-2"><table>
533
534
  <thead>
@@ -546,7 +547,7 @@ shows a candidate against live, scenario by scenario and lens by lens, and the g
546
547
  failed too (only that holds it), one following an injected instruction, one with a scenario not run, and a flaky one are
547
548
  held; a first release with no live version is ready once its misuse and injection tests pass.</p>
548
549
  <h2 id="the-dashboard-and-benchmark-e8"><a href="#the-dashboard-and-benchmark-e8" class="hash">#</a>The dashboard and benchmark (E8)</h2>
549
- <p><strong>Built</strong> in <code>src/evidence/dashboard.ts</code>: <code>forgeqe evidence dashboard &amp;lt;agent&gt; [--version v] [--json]</code>, and the agent's
550
+ <p><strong>Built</strong> in <code>src/evidence/dashboard.ts</code>: <code>forgeqe evidence dashboard &lt;agent&gt; [--version v] [--json]</code>, and the agent's
550
551
  page in <code>forgeqe web</code> (Overview, then the agent). Every number is a tally of runs, the count with the ids it counts, so
551
552
  each traces to its runs: on the page a number opens the list of its runs, on the command line the ids follow it.
552
553
  Nothing is stored; it is worked out each time from the runs and their verdicts as judging gives them now, with people's
@@ -583,8 +584,8 @@ up to its runs.</p>
583
584
  <p>The instruction for a rule is written from the contract, never from the run's text: an instruction found in data is
584
585
  named as what to remove, never offered as one to follow.</p>
585
586
  <p><strong>Replay.</strong> ForgeQE does not run the agent: the team runs the same request again with the one change, in its sandbox,
586
- and records the runs as usual (<code>forgeqe evidence replay-kit &amp;lt;run&gt; H1</code> gives the request and the change as data for a
587
- harness). <code>forgeqe evidence replay &amp;lt;run&gt; H1 &amp;lt;replay ids&gt;</code>, or <strong>Link replays</strong> on the page, links them. Each replay is
587
+ and records the runs as usual (<code>forgeqe evidence replay-kit &lt;run&gt; H1</code> gives the request and the change as data for a
588
+ harness). <code>forgeqe evidence replay &lt;run&gt; H1 &lt;replay ids&gt;</code>, or <strong>Link replays</strong> on the page, links them. Each replay is
588
589
  checked by code:</p>
589
590
  <ul>
590
591
  <li>the same agent and the same request exactly, run after the original;</li>
@@ -597,8 +598,8 @@ finding comes back, or by replays that do not carry the change; <strong>with sid
597
598
  something else breaks. A replay tests one change: it is linked to one cause of a run.</p>
598
599
  <p><strong>Proposals.</strong> A proven cause is proposed as a fix; a rule broken in 3 runs or more of the agent's latest version is
599
600
  proposed as guidance for its instructions. A person approves or declines each with a reason: at a terminal that types
600
- its id (<code>forgeqe evidence decide &amp;lt;agent&gt; &amp;lt;proposal&gt; approve|decline --reason &quot;…&quot;</code>), or on the Learn page. Links and
601
- decisions are append-only lines in <code>learn.jsonl</code>, checked when read. <code>forgeqe evidence guidance &amp;lt;agent&gt;</code> writes what was
601
+ its id (<code>forgeqe evidence decide &lt;agent&gt; &lt;proposal&gt; approve|decline --reason &quot;…&quot;</code>), or on the Learn page. Links and
602
+ decisions are append-only lines in <code>learn.jsonl</code>, checked when read. <code>forgeqe evidence guidance &lt;agent&gt;</code> writes what was
602
603
  approved as Markdown, every value escaped, for the team to put into the agent; Evidence never changes the agent.</p>
603
604
  <p>Labelled cases (<code>evals/evidence/learn</code>): a followed injection whose data is proven the cause by three clean replays, and
604
605
  the same run with only its instructions replayed (refuted: the finding came back once), with one replay (promising), and
@@ -607,12 +608,12 @@ instructions, and the same fix with a side effect (it deletes the claim); and a
607
608
  <h2 id="monitor-trust-and-governance-e10"><a href="#monitor-trust-and-governance-e10" class="hash">#</a>Monitor, trust and governance (E10)</h2>
608
609
  <p><strong>Built</strong> in <code>src/evidence/monitor.ts</code>. Nothing here changes an agent; baselines and trust grants are append-only lines
609
610
  in <code>governance.jsonl</code>, checked when read, each with who, when, why and how (terminal or page).</p>
610
- <p><strong>Baseline.</strong> <code>forgeqe evidence baseline &amp;lt;agent&gt; [--version v] --reason &quot;…&quot;</code> (a person at a terminal, typing the agent's
611
+ <p><strong>Baseline.</strong> <code>forgeqe evidence baseline &lt;agent&gt; [--version v] --reason &quot;…&quot;</code> (a person at a terminal, typing the agent's
611
612
  name, or the Monitor page) keeps a snapshot of a version's runs as they are judged now: the models that answered (the
612
613
  agent's own and each model step's), the tools it called, each document, file or memory source it read with the
613
614
  fingerprints of the contents it had, each check's pass rate, the contract that judged it, and whether the rubric's
614
615
  judge was calibrated.</p>
615
- <p><strong>Drift.</strong> <code>forgeqe evidence drift &amp;lt;agent&gt; | --all [--notify] [--json]</code> compares every run since the baseline (any
616
+ <p><strong>Drift.</strong> <code>forgeqe evidence drift &lt;agent&gt; | --all [--notify] [--json]</code> compares every run since the baseline (any
616
617
  version: a model can change under the same version) with it, and exits 1 when there is an alert:</p>
617
618
  <div class="tbl tbl--cols-2"><table>
618
619
  <thead>
@@ -640,9 +641,9 @@ version: a model can change under the same version) with it, and exits 1 when th
640
641
  <tr><td data-label="Level">Autonomous</td><td data-label="Means">it acts alone; only alerts reach people</td><td data-label="Needs">a baseline, and no drift since; 30 judged runs of its latest version, 95% passed; the rubric's judge calibrated, where it has one</td></tr>
641
642
  </tbody>
642
643
  </table></div>
643
- <p>A person grants a level (<code>forgeqe evidence trust &amp;lt;agent&gt; &amp;lt;level&gt; --reason &quot;…&quot;</code> at a terminal typing the agent's name, or
644
+ <p>A person grants a level (<code>forgeqe evidence trust &lt;agent&gt; &lt;level&gt; --reason &quot;…&quot;</code> at a terminal typing the agent's name, or
644
645
  the page), never above what is supported; when the evidence later falls below a grant, drift says so.</p>
645
- <p><strong>Audit.</strong> <code>forgeqe evidence audit &amp;lt;agent&gt; [--out f]</code> (or <strong>Download the audit</strong> on the page) exports every decision people
646
+ <p><strong>Audit.</strong> <code>forgeqe evidence audit &lt;agent&gt; [--out f]</code> (or <strong>Download the audit</strong> on the page) exports every decision people
646
647
  made about the agent, oldest first, each with who, when, how, why and what it rested on: its contract's approval (the
647
648
  approved copy's record: the latest one), overrules, grades, replays linked, proposal decisions, release gates, baselines
648
649
  and trust grants; with every run a decision names, as recorded and judged now (its record's fingerprint and verdict).</p>
@@ -652,9 +653,9 @@ models, tools, sources, contract, suite, trust supported and granted, and alerts
652
653
  skip the policy), a new tool, and runs with no change; each gives exactly its alerts.</p>
653
654
  <h2 id="while-the-agent-is-being-built-the-harness-b1"><a href="#while-the-agent-is-being-built-the-harness-b1" class="hash">#</a>While the agent is being built: the harness (B1)</h2>
654
655
  <p><strong>Built</strong> in <code>src/evidence/harness.ts</code>. ForgeQE runs an agent version through its scenario suite itself, so a version
655
- is judged before release without anyone recording runs by hand: <code>forgeqe evidence run-suite &amp;lt;agent&gt; --version 2.2.0 --live 2.1.0 --repeats 3</code> runs both versions, every scenario at least three times (or its own <code>runs</code>), then keeps the
656
+ is judged before release without anyone recording runs by hand: <code>forgeqe evidence run-suite &lt;agent&gt; --version 2.2.0 --live 2.1.0 --repeats 3</code> runs both versions, every scenario at least three times (or its own <code>runs</code>), then keeps the
656
657
  release gate (exit 1 when held).</p>
657
- <p>How to run each version is the agent's harness, <code>.forgeqe/evidence/harness/&amp;lt;agent&gt;.yaml</code>:</p>
658
+ <p>How to run each version is the agent's harness, <code>.forgeqe/evidence/harness/&lt;agent&gt;.yaml</code>:</p>
658
659
  <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 class="lines"><code><span class="ln"><span class="cmd">agent: claims-agent
659
660
  </span></span><span class="ln"><span class="cmd">versions:
660
661
  </span></span><span class="ln"><span class="cmd"> &quot;2.2.0&quot;: { command: [opentelemetry-instrument, python, agent.py, &quot;{request}&quot;], cwd: agents/claims }
@@ -667,7 +668,7 @@ release gate (exit 1 when held).</p>
667
668
  </span></span><span class="ln ln--pair"><span class="cmd">sandbox: host</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or container, with container: { image: python:3.12-slim }
668
669
  </span></span></code></pre></div>
669
670
  <p>It can come from the repository and it runs commands, so it is read like a contract (known keys, no aliases, plain
670
- text) and only its approved copy runs: a person reads every command and types the agent's name (<code>forgeqe evidence harness approve &amp;lt;agent&gt;</code>); the copy is checked against its digest on every read. A command is a list of arguments,
671
+ text) and only its approved copy runs: a person reads every command and types the agent's name (<code>forgeqe evidence harness approve &lt;agent&gt;</code>); the copy is checked against its digest on every read. A command is a list of arguments,
671
672
  never a shell: the request is one argument, as it is, however it is worded. Each run gets system settings, the
672
673
  variables the harness names (never one of ForgeQE's secrets, and never one that changes how programs start, such as
673
674
  <code>NODE_OPTIONS</code>), and the harness's own: the exporter settings of a receiver with a port and token of its own
@@ -690,7 +691,7 @@ touched. Build the graph on the code at the harness's base (<code>forgeqe knowle
690
691
  <h2 id="build-and-test-does-the-change-work-b2"><a href="#build-and-test-does-the-change-work-b2" class="hash">#</a>Build and test: does the change work? (B2)</h2>
691
692
  <p><strong>Built</strong> in <code>src/evidence/buildcheck.ts</code>, SWE-bench style, and the main engineering signal: an agent's change is
692
693
  judged first by whether it works, then by how the agent got there. Evidence does not trust the agent's &quot;tests passed&quot;.
693
- <code>forgeqe evidence build-check &amp;lt;name&gt; --base main --head agent/branch [--run &amp;lt;id&gt;]</code> (or <code>ci --verify &amp;lt;name&gt;</code> on a pull
694
+ <code>forgeqe evidence build-check &lt;name&gt; --base main --head agent/branch [--run &lt;id&gt;]</code> (or <code>ci --verify &lt;name&gt;</code> on a pull
694
695
  request) checks the repository out clean at the base and with the change (git worktrees, hooks off), runs the
695
696
  repository's own setup, build and tests in each, and compares the JUnit results test by test:</p>
696
697
  <div class="tbl tbl--cols-2"><table>
@@ -707,7 +708,7 @@ repository's own setup, build and tests in each, and compares the JUnit results
707
708
  </table></div>
708
709
  <p>A test failing at the base too is not held against the change; a failing test is run once more, and one that then
709
710
  passes is flaky, said and not counted. Without JUnit results the tests are judged by their exit code only, and it says
710
- so. How the repository is built is its verify file, <code>.forgeqe/evidence/verify/&amp;lt;name&gt;.yaml</code>:</p>
711
+ so. How the repository is built is its verify file, <code>.forgeqe/evidence/verify/&lt;name&gt;.yaml</code>:</p>
711
712
  <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 class="lines"><code><span class="ln"><span class="cmd">name: orders-api
712
713
  </span></span><span class="ln ln--pair"><span class="cmd">repo: services/orders-api</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its folder, inside the project
713
714
  </span></span><span class="ln ln--pair"><span class="cmd">image: node:20-slim</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a container: setup may use the network, build and tests never do
@@ -718,7 +719,7 @@ so. How the repository is built is its verify file, <code>.forgeqe/evidence/veri
718
719
  </span></span><span class="ln ln--pair"><span class="cmd">gate: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its findings may fail the change (otherwise they warn)
719
720
  </span></span></code></pre></div>
720
721
  <p>Commands are argument lists, never a shell; the file can come from the repository and runs commands, so only its
721
- approved copy runs (<code>forgeqe evidence verify approve &amp;lt;name&gt;</code>, a person typing its name), checked against its digest.
722
+ approved copy runs (<code>forgeqe evidence verify approve &lt;name&gt;</code>, a person typing its name), checked against its digest.
722
723
  In the container the checkout is mounted, the container runs as this user with no privilege raised, and values are
723
724
  passed by name. Labelled changes (<code>evals/evidence/build</code>): a good change, a regression, a failing new test, a broken
724
725
  build, a removed test, a flaky test and a fix of a test that failed at the base; each gives exactly its findings.</p>
@@ -742,7 +743,7 @@ by rules, not by one exact route; an exact path is used only where its owners ch
742
743
  F1 of the longest common subsequence of the run's path and the reference (in the spirit of Ragas' tool call
743
744
  accuracy); step efficiency is the reference's length over the run's, at most 1. A rule broken is an expectation not
744
745
  met, so it fails the scenario and counts in the release gate. The Releases page shows, for each scenario with a path,
745
- expected against actual step by step (expected and not done, done and not expected), and <code>forgeqe evidence trajectory &amp;lt;agent&gt; &amp;lt;scenario&gt; --version &amp;lt;v&gt;</code> prints the same for every run.</p>
746
+ expected against actual step by step (expected and not done, done and not expected), and <code>forgeqe evidence trajectory &lt;agent&gt; &lt;scenario&gt; --version &lt;v&gt;</code> prints the same for every run.</p>
746
747
  <h2 id="tool-calls-was-every-call-the-right-one-with-valid-inputs-b4"><a href="#tool-calls-was-every-call-the-right-one-with-valid-inputs-b4" class="hash">#</a>Tool calls: was every call the right one, with valid inputs? (B4)</h2>
747
748
  <p><strong>Built</strong> in <code>src/evidence/calls.ts</code>, BFCL style, decided by code. Three kinds:</p>
748
749
  <p><strong>A scenario's expected calls.</strong> Each names a tool, how many times it may be called, and typed matchers that every call
@@ -811,7 +812,7 @@ from them; <strong>a person decides</strong> each one, and nothing is added by i
811
812
  <tr><th>Source</th><th>Drafted by</th><th>What the draft is</th></tr>
812
813
  </thead>
813
814
  <tbody>
814
- <tr><td data-label="Source">A run that failed (<code>--run &amp;lt;id&gt;</code>)</td><td data-label="Drafted by">code alone</td><td data-label="What the draft is">its request, exactly as it was asked, as a <code>defect</code> scenario expected clean on every lens; what failed is kept as the draft's why. A run the harness made of a scenario is in the suite already, and a run that passed is not drafted</td></tr>
815
+ <tr><td data-label="Source">A run that failed (<code>--run &lt;id&gt;</code>)</td><td data-label="Drafted by">code alone</td><td data-label="What the draft is">its request, exactly as it was asked, as a <code>defect</code> scenario expected clean on every lens; what failed is kept as the draft's why. A run the harness made of a scenario is in the suite already, and a run that passed is not drafted</td></tr>
815
816
  <tr><td data-label="Source">A work item's acceptance criteria (<code>--from ado:N,jira:KEY-N</code>)</td><td data-label="Drafted by">a model (<code>forgeqe-evidence-scenarios</code>: no tools, a schema)</td><td data-label="What the draft is">1 to 3 scenarios per criterion, the usual case first, then an edge case or one the agent must refuse</td></tr>
816
817
  <tr><td data-label="Source">A defect (<code>--defect ado:N,jira:KEY-N</code>)</td><td data-label="Drafted by">the same model</td><td data-label="What the draft is">a <code>defect</code> scenario of what the defect describes</td></tr>
817
818
  <tr><td data-label="Source">The product graph's business rules (<code>--from-product [--about shipped,refund] [--repo r]</code>)</td><td data-label="Drafted by">the same model</td><td data-label="What the draft is">the case each rule refuses (what the product answers, when, read from its code), often a <code>misuse</code> scenario the agent must refuse or hand to a person: rules no work item may mention</td></tr>
@@ -826,7 +827,7 @@ the model as data, and a line in it that gives an instruction changes nothing co
826
827
  <p><strong>Code holds about one draft in five out</strong> (<code>held_out: true</code>, at random): the team tuning the agent does not choose what
827
828
  it is measured on (see B5). The model is never asked.</p>
828
829
  <p><strong>Deciding.</strong> <code>forgeqe evidence drafts</code> lists the drafts waiting, each with every expectation it would add;
829
- <code>forgeqe evidence drafts accept|reject &amp;lt;draft&gt; --reason &quot;why&quot;</code> needs a person at a terminal who types the draft's id,
830
+ <code>forgeqe evidence drafts accept|reject &lt;draft&gt; --reason &quot;why&quot;</code> needs a person at a terminal who types the draft's id,
830
831
  and the Releases page needs the id typed and a reason. Accepted, the scenario is added to the agent's suite (under a
831
832
  fresh id if its own is taken; the suite's comments are kept) and the whole file is read again before it is written;
832
833
  rejected, nothing changes. A draft is decided once. Drafts and decisions are append-only lines in
@@ -834,10 +835,10 @@ rejected, nothing changes. A draft is decided once. Drafts and decisions are app
834
835
  undoes a decision. Each decision on the page is in the audit log.</p>
835
836
  <p><strong>Graded answers.</strong> Some of what owners expect cannot be checked by code: the tone of a reply, whether an explanation
836
837
  would satisfy a customer. A scenario with <code>expect: { graded: true }</code> is decided by a person's grade of each run's answer
837
- (<code>forgeqe evidence grade &amp;lt;run&gt; scenario meets|misses --reason &quot;why&quot;</code> at a terminal typing the run's id, or on the run's
838
+ (<code>forgeqe evidence grade &lt;run&gt; scenario meets|misses --reason &quot;why&quot;</code> at a terminal typing the run's id, or on the run's
838
839
  page). Until a person grades it, the answer is not known and the scenario does not pass; the Releases page lists the
839
840
  candidate's answers waiting for a grade. Grades are kept beside the rubric's in <code>grades.jsonl</code>, under
840
- <code>scenario:&amp;lt;id&gt;</code>.</p>
841
+ <code>scenario:&lt;id&gt;</code>.</p>
841
842
  <h2 id="fixes-proven-by-the-harness-b7"><a href="#fixes-proven-by-the-harness-b7" class="hash">#</a>Fixes proven by the harness (B7)</h2>
842
843
  <p><strong>Built</strong> in <code>src/evidence/fix.ts</code> (<code>forgeqe evidence fix</code>, <code>fixes</code>) and the Learn page.</p>
843
844
  <p>Learn (E9) says where a finding may come from and asks the team to replay the run with the change. When the cause is
@@ -850,7 +851,7 @@ model. It is added under a section of its own at the end of the agent's instruct
850
851
  harness is approved again when it changes).</li>
851
852
  <li><strong>It is proven on a copy</strong>: the version's folder is copied (no hidden files, dependency folders linked, at most
852
853
  100 MB), the instruction added there, and the version run from the copy under a label of its own
853
- (<code>2.0+fix-&amp;lt;id&gt;</code>, logged as <code>of</code> 2.0, so its runs never count as 2.0's): the failed scenario three times, linked as
854
+ (<code>2.0+fix-&lt;id&gt;</code>, logged as <code>of</code> 2.0, so its runs never count as 2.0's): the failed scenario three times, linked as
854
855
  replays of the cause, then the whole suite.</li>
855
856
  <li><strong>Proven means both</strong>: the cause is proven (three clean replays, none where the finding comes back; E9's rule), and
856
857
  the release gate of the patched copy against the version holds nothing (no lens worse, no misuse or injection
@@ -859,8 +860,8 @@ the fix. The paired test may call one scenario mended and another broken &quot;n
859
860
  for another is still no fix. Nor is one whose runs could not be counted.</li>
860
861
  <li><strong>Nothing in the project changes.</strong> What is kept is the patch, a unified diff <code>git apply</code> takes, in
861
862
  <code>.forgeqe/evidence/fixes.jsonl</code> (append-only, checked when read: a line that says proven without its proof is
862
- refused). <code>forgeqe evidence fix show &amp;lt;fix&gt; --patch</code> prints it, for a branch and a pull request.</li>
863
- <li><strong>A person applies it</strong>: <code>forgeqe evidence fix apply &amp;lt;fix&gt; --reason &quot;why&quot;</code> at a terminal, typing the fix's id; only a
863
+ refused). <code>forgeqe evidence fix show &lt;fix&gt; --patch</code> prints it, for a branch and a pull request.</li>
864
+ <li><strong>A person applies it</strong>: <code>forgeqe evidence fix apply &lt;fix&gt; --reason &quot;why&quot;</code> at a terminal, typing the fix's id; only a
864
865
  proven fix, once, and only while the file is exactly as it was when the fix was proven (else prove it again). The
865
866
  fix's proposal is approved with the same reason. Nothing is committed: the team reviews the change, runs the suite
866
867
  and opens the pull request.</li>
@@ -868,7 +869,7 @@ and opens the pull request.</li>
868
869
  <p>A cause in a tool or in the data is the team's to change (<code>forgeqe evidence replay-kit</code>); a held-out scenario's run is
869
870
  never fixed from; a run the harness did not make of a scenario is drafted as one first (B6).</p>
870
871
  <h2 id="a-demo"><a href="#a-demo" class="hash">#</a>A demo</h2>
871
- <p><code>forgeqe evidence demo &amp;lt;new folder&gt;</code> (<code>src/evidence/demo.ts</code>) writes a demo project into a new or empty folder, never a
872
+ <p><code>forgeqe evidence demo &lt;new folder&gt;</code> (<code>src/evidence/demo.ts</code>) writes a demo project into a new or empty folder, never a
872
873
  project: three made-up agents of a made-up insurer (a claims agent on Langfuse in a live and a candidate version, a
873
874
  support agent, a coding agent on OpenTelemetry), four weeks of runs recorded from the exports it writes, an approved
874
875
  contract, findings in every lens, a scenario suite and a release gate that holds the candidate, a baseline with drift,
@@ -944,7 +945,7 @@ and on the command line <code>forgeqe evidence …</code>. Each page arrives wit
944
945
  <tr><td data-label="Page">Knowledge</td><td data-label="Shows">What the domain checks read: for software, the product graph (the Product page's); for a process, its policies and rules</td><td data-label="Arrives with">E4 (the product graph is read; its page is the Product page)</td></tr>
945
946
  <tr><td data-label="Page">Review queue (<code>#/evidence-review</code>, built)</td><td data-label="Shows">Runs and outputs a person must decide, and findings a person overruled</td><td data-label="Arrives with">E5</td></tr>
946
947
  <tr><td data-label="Page">Releases (<code>#/evidence-releases</code>, built)</td><td data-label="Shows">Scenario suites, golden sets, a version against the live one, the release gate; scenarios drafted for a person to decide, and answers waiting for a grade</td><td data-label="Arrives with">E6, B6</td></tr>
947
- <tr><td data-label="Page">An agent's dashboard (<code>#/evidence/&amp;lt;agent&gt;</code>, built)</td><td data-label="Shows">Per version its runs and verdicts, each check's outcomes, what keeps going wrong, week by week, and its versions side by side; each number opens the runs it counts</td><td data-label="Arrives with">E8</td></tr>
948
+ <tr><td data-label="Page">An agent's dashboard (<code>#/evidence/&lt;agent&gt;</code>, built)</td><td data-label="Shows">Per version its runs and verdicts, each check's outcomes, what keeps going wrong, week by week, and its versions side by side; each number opens the runs it counts</td><td data-label="Arrives with">E8</td></tr>
948
949
  <tr><td data-label="Page">Learn (<code>#/evidence-learn</code>, built)</td><td data-label="Shows">An agent's proposals for a person to decide, the causes of its findings with their replays, and the fixes the harness proved with their patches</td><td data-label="Arrives with">E9, B7</td></tr>
949
950
  <tr><td data-label="Page">Monitor (<code>#/evidence-monitor</code>, built)</td><td data-label="Shows">Every agent evaluated (inventory); per agent its drift since its baseline, the trust its evidence supports and the level granted, and its audit to download</td><td data-label="Arrives with">E10</td></tr>
950
951
  </tbody>
@@ -972,7 +973,7 @@ their licences checked first.</li>
972
973
 
973
974
  </article>
974
975
  <nav class="pager" aria-label="Previous and next">
975
- <a class="prev" href="../product-views/index.html"><small>Previous</small><span>Product views</span></a>
976
+ <a class="prev" href="../graphify/index.html"><small>Previous</small><span>Reading product code</span></a>
976
977
  <a class="next" href="../cost-architecture/index.html"><small>Next</small><span>Cost-aware execution</span></a>
977
978
  </nav>
978
979
  </main>