@capagents/forgeqe 2.9.5 → 2.9.7

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 (97) hide show
  1. package/HOW_TO_USE.md +130 -1
  2. package/README.md +3 -0
  3. package/dist/docs-site/docs/architecture/index.html +1 -1
  4. package/dist/docs-site/docs/containers/index.html +2 -2
  5. package/dist/docs-site/docs/cost-architecture/index.html +1 -1
  6. package/dist/docs-site/docs/custom-agents-first-run/index.html +216 -0
  7. package/dist/docs-site/docs/desktop/index.html +1 -1
  8. package/dist/docs-site/docs/desktop-ci/index.html +1 -1
  9. package/dist/docs-site/docs/evidence/index.html +992 -0
  10. package/dist/docs-site/docs/feature-test-prompts/index.html +1 -1
  11. package/dist/docs-site/docs/graphify/index.html +380 -0
  12. package/dist/docs-site/docs/guardrails/index.html +2 -2
  13. package/dist/docs-site/docs/index.html +141 -6
  14. package/dist/docs-site/docs/mobile/index.html +1 -1
  15. package/dist/docs-site/docs/model-routing/index.html +1 -1
  16. package/dist/docs-site/docs/product-graph/index.html +356 -0
  17. package/dist/docs-site/docs/product-knowledge/index.html +3 -3
  18. package/dist/docs-site/docs/product-views/index.html +431 -0
  19. package/dist/docs-site/docs/search.js +1 -1
  20. package/dist/docs-site/docs/web-app/index.html +2 -2
  21. package/dist/forgeqe.js +1866 -1664
  22. package/dist/web/assets/{Agent-BU8FKiQt.js → Agent-I5mRol1P.js} +1 -1
  23. package/dist/web/assets/{ApiTests-Bsv3NhD5.js → ApiTests--JGFKbOa.js} +1 -1
  24. package/dist/web/assets/{Browse-D-ho9bS_.js → Browse-CIcl1j4N.js} +2 -2
  25. package/dist/web/assets/Chat-Baph1nlV.js +3 -0
  26. package/dist/web/assets/{CommandPalette-CrLuxoE5.js → CommandPalette-Dd0seTKQ.js} +1 -1
  27. package/dist/web/assets/{Compare-DfHMTNGi.js → Compare-B7barE31.js} +1 -1
  28. package/dist/web/assets/{Cost-BYb3T8-c.js → Cost-CGXZTXSz.js} +1 -1
  29. package/dist/web/assets/{Data-EF_k6c_T.js → Data-DGKi3KHS.js} +1 -1
  30. package/dist/web/assets/{Desktop-DY5Q1Sd3.js → Desktop-wfNhaxat.js} +1 -1
  31. package/dist/web/assets/{DesktopReview-DFKpYor2.js → DesktopReview-Cxn3mgKO.js} +1 -1
  32. package/dist/web/assets/{Evidence-Db9H4-Nu.js → Evidence-BZ-WKU9t.js} +1 -1
  33. package/dist/web/assets/{Explore-B0EkFCFe.js → Explore-pa8l7kiC.js} +1 -1
  34. package/dist/web/assets/{Features-8jsv2A1d.js → Features-JDMSSUpb.js} +1 -1
  35. package/dist/web/assets/{Flags-DtzmOA5o.js → Flags-DcWTBteQ.js} +1 -1
  36. package/dist/web/assets/{Flaky-BCzOx7Mq.js → Flaky-DnHWlzlk.js} +1 -1
  37. package/dist/web/assets/{ForceGraph-i1zlas5l.js → ForceGraph-BLYMwmyj.js} +1 -1
  38. package/dist/web/assets/{Impact-Da9L1tDd.js → Impact-Dn5PPQ5Z.js} +1 -1
  39. package/dist/web/assets/{Jobs-CHw00lcx.js → Jobs-CNhlUenm.js} +1 -1
  40. package/dist/web/assets/{KindPage-DiOmtzVZ.js → KindPage-BPwFdxHe.js} +1 -1
  41. package/dist/web/assets/{Migration-Cu4JgOj1.js → Migration-DsGwJd40.js} +1 -1
  42. package/dist/web/assets/{Product-DmvUI7pH.js → Product-DsolJU4Y.js} +1 -1
  43. package/dist/web/assets/{Production-CLoOV4jl.js → Production-Cnh3wWiK.js} +1 -1
  44. package/dist/web/assets/{Quality-ylTg9e0c.js → Quality-W_rQ6nRf.js} +1 -1
  45. package/dist/web/assets/{Readiness-BMD5Uj8D.js → Readiness-IWAIRZwC.js} +1 -1
  46. package/dist/web/assets/Record-DOImb7O7.js +2 -0
  47. package/dist/web/assets/{Regression-D_Hy9bMt.js → Regression-DQuiIAFx.js} +1 -1
  48. package/dist/web/assets/{Reports-DXphAHAy.js → Reports-C16UVZtQ.js} +1 -1
  49. package/dist/web/assets/{Response-PDQ8zEZU.js → Response-Vh2lEWnS.js} +1 -1
  50. package/dist/web/assets/{RunDiff-C3MIKipo.js → RunDiff-CVnhT7JE.js} +1 -1
  51. package/dist/web/assets/{Runs-DSQZwCpE.js → Runs-CI8NJB1v.js} +1 -1
  52. package/dist/web/assets/{Steps-CY6WROAr.js → Steps-Bwe4WAjy.js} +1 -1
  53. package/dist/web/assets/{TestCases-BjgWdtPi.js → TestCases-D5oOzYL4.js} +1 -1
  54. package/dist/web/assets/{TestData-CDziNp2d.js → TestData-27tyi6OD.js} +1 -1
  55. package/dist/web/assets/{TestDebt-D59zFYSu.js → TestDebt-D9k3uAiS.js} +1 -1
  56. package/dist/web/assets/{Tosca-umw1O224.js → Tosca-CMmixiPy.js} +1 -1
  57. package/dist/web/assets/{WhatsNew-DqNMAytd.js → WhatsNew-CuCua9dD.js} +1 -1
  58. package/dist/web/assets/{dataParts-DGVc48Ed.js → dataParts-D06wI4i1.js} +1 -1
  59. package/dist/web/assets/{families-DlfXDoO8.js → families-B0QIuAe3.js} +1 -1
  60. package/dist/web/assets/filters-mFECJpMB.js +1 -0
  61. package/dist/web/assets/{fold-BKAl2p_2.js → fold-CeQ84ypG.js} +1 -1
  62. package/dist/web/assets/frame-BcGZt823.js +4 -0
  63. package/dist/web/assets/{index-BLUj4Sgh.js → index-CotEpFLY.js} +19 -17
  64. package/dist/web/assets/index-VgSzQGK8.css +2 -0
  65. package/dist/web/assets/{logos-J0WPxDqj.js → logos-DN9jLn4q.js} +1 -1
  66. package/dist/web/assets/{palette-DViz4KwG.js → palette-BdMPhc9j.js} +1 -1
  67. package/dist/web/assets/{parts-W2J4TR3o.js → parts-z_AE9U-M.js} +1 -1
  68. package/dist/web/assets/{productParts-_8gKGn4o.js → productParts-C4vc_bLJ.js} +1 -1
  69. package/dist/web/assets/{qualityParts-DnbSeK-G.js → qualityParts-Cfirt7dZ.js} +1 -1
  70. package/dist/web/assets/{recordTest-etYNiLQy.js → recordTest-GvGQjhR4.js} +1 -1
  71. package/dist/web/assets/{rows-CbXelp5_.js → rows-CiR4hGkv.js} +1 -1
  72. package/dist/web/assets/{segmented-B7n6eLrO.js → segmented-DANusepM.js} +1 -1
  73. package/dist/web/assets/thread-CyTIuLgk.js +5 -0
  74. package/dist/web/assets/{usePageChat-DMOtRwzT.js → usePageChat-DOTAHsIS.js} +1 -1
  75. package/dist/web/index.html +4 -4
  76. package/docs/user-guide.html +137 -2
  77. package/env.example.yaml +1 -0
  78. package/forgeqe.example.yaml +14 -0
  79. package/package.json +1 -1
  80. package/prompts/brain.md +6 -3
  81. package/prompts/doc-reader.md +49 -0
  82. package/prompts/knowledge-agent.md +64 -0
  83. package/py/forgeqe_engine/brand.py +10 -1
  84. package/py/forgeqe_engine/capture.py +28 -12
  85. package/py/forgeqe_engine/logins.py +27 -0
  86. package/py/forgeqe_engine/loops.py +9 -0
  87. package/py/forgeqe_engine/memory.py +59 -0
  88. package/py/forgeqe_engine/recordsession.py +315 -40
  89. package/py/forgeqe_engine/service.py +11 -3
  90. package/py/forgeqe_engine/webrecord.py +153 -12
  91. package/py/forgeqe_engine/webrecord_page.py +211 -45
  92. package/dist/web/assets/Chat-czaM5kUi.js +0 -3
  93. package/dist/web/assets/Record-CoCnmfqW.js +0 -2
  94. package/dist/web/assets/filters-NVjc0d8i.js +0 -1
  95. package/dist/web/assets/frame-B0nzdTfN.js +0 -4
  96. package/dist/web/assets/index-RzPHjTCW.css +0 -2
  97. package/dist/web/assets/thread-BIUxcjeu.js +0 -5
@@ -0,0 +1,356 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>The product knowledge graph (design) · ForgeQE docs</title>
7
+ <meta name="description" content="Status:">
8
+ <meta name="theme-color" content="#080a10">
9
+ <link rel="canonical" href="https://forgeqe.qualityai.co.uk/docs/product-graph/">
10
+ <link rel="icon" type="image/png" href="../../img/favicon.png">
11
+ <link rel="stylesheet" href="../docs.css">
12
+ <script src="../search.js" defer></script>
13
+ <script src="../docs.js" defer></script>
14
+ </head>
15
+ <body class="docs">
16
+ <svg aria-hidden="true" style="position:absolute;width:0;height:0;overflow:hidden" xmlns="http://www.w3.org/2000/svg"><!-- Lucide icons v0.454.0, ISC licence (https://lucide.dev) -->
17
+ <symbol id="i-monitor" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="14" x="2" y="3" rx="2" />
18
+ <line x1="8" x2="16" y1="21" y2="21" />
19
+ <line x1="12" x2="12" y1="17" y2="21" /></symbol>
20
+ <symbol id="i-smartphone" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2" />
21
+ <path d="M12 18h.01" /></symbol>
22
+ <symbol id="i-braces" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" />
23
+ <path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" /></symbol>
24
+ <symbol id="i-container" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z" />
25
+ <path d="M10 21.9V14L2.1 9.1" />
26
+ <path d="m10 14 11.9-6.9" />
27
+ <path d="M14 19.8v-8.1" />
28
+ <path d="M18 17.5V9.4" /></symbol>
29
+ <symbol id="i-shield-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />
30
+ <path d="m9 12 2 2 4-4" /></symbol>
31
+ <symbol id="i-file-text" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
32
+ <path d="M14 2v4a2 2 0 0 0 2 2h4" />
33
+ <path d="M10 9H8" />
34
+ <path d="M16 13H8" />
35
+ <path d="M16 17H8" /></symbol>
36
+ <symbol id="i-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5" />
37
+ <line x1="12" x2="20" y1="19" y2="19" /></symbol>
38
+ <symbol id="i-brain" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z" />
39
+ <path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z" />
40
+ <path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4" />
41
+ <path d="M17.599 6.5a3 3 0 0 0 .399-1.375" />
42
+ <path d="M6.003 5.125A3 3 0 0 0 6.401 6.5" />
43
+ <path d="M3.477 10.896a4 4 0 0 1 .585-.396" />
44
+ <path d="M19.938 10.5a4 4 0 0 1 .585.396" />
45
+ <path d="M6 18a4 4 0 0 1-1.967-.516" />
46
+ <path d="M19.967 17.484A4 4 0 0 1 18 18" /></symbol>
47
+ <symbol id="i-git-branch" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15" />
48
+ <circle cx="18" cy="6" r="3" />
49
+ <circle cx="6" cy="18" r="3" />
50
+ <path d="M18 9a9 9 0 0 1-9 9" /></symbol>
51
+ <symbol id="i-database" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3" />
52
+ <path d="M3 5V19A9 3 0 0 0 21 19V5" />
53
+ <path d="M3 12A9 3 0 0 0 21 12" /></symbol>
54
+ <symbol id="i-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z" /></symbol>
55
+ <symbol id="i-scan-search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2" />
56
+ <path d="M17 3h2a2 2 0 0 1 2 2v2" />
57
+ <path d="M21 17v2a2 2 0 0 1-2 2h-2" />
58
+ <path d="M7 21H5a2 2 0 0 1-2-2v-2" />
59
+ <circle cx="12" cy="12" r="3" />
60
+ <path d="m16 16-1.9-1.9" /></symbol>
61
+ <symbol id="i-bug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 1.88 1.88" />
62
+ <path d="M14.12 3.88 16 2" />
63
+ <path d="M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" />
64
+ <path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" />
65
+ <path d="M12 20v-9" />
66
+ <path d="M6.53 9C4.6 8.8 3 7.1 3 5" />
67
+ <path d="M6 13H2" />
68
+ <path d="M3 21c0-2.1 1.7-3.9 3.8-4" />
69
+ <path d="M20.97 5c0 2.1-1.6 3.8-3.5 4" />
70
+ <path d="M22 13h-4" />
71
+ <path d="M17.2 17c2.1.1 3.8 1.9 3.8 4" /></symbol>
72
+ <symbol id="i-repeat" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m17 2 4 4-4 4" />
73
+ <path d="M3 11v-1a4 4 0 0 1 4-4h14" />
74
+ <path d="m7 22-4-4 4-4" />
75
+ <path d="M21 13v1a4 4 0 0 1-4 4H3" /></symbol>
76
+ <symbol id="i-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6" />
77
+ <polyline points="8 6 2 12 8 18" /></symbol>
78
+ <symbol id="i-lock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2" />
79
+ <path d="M7 11V7a5 5 0 0 1 10 0v4" /></symbol>
80
+ <symbol id="i-plug" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22v-5" />
81
+ <path d="M9 8V2" />
82
+ <path d="M15 8V2" />
83
+ <path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z" /></symbol>
84
+ <symbol id="i-layers" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" />
85
+ <path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" />
86
+ <path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" /></symbol>
87
+ <symbol id="i-chevron-right" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6" /></symbol>
88
+ <symbol id="i-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
89
+ <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></symbol>
90
+ <symbol id="i-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="6 3 20 12 6 21 6 3" /></symbol>
91
+ <symbol id="i-maximize" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9" /><polyline points="9 21 3 21 3 15" /><line x1="21" x2="14" y1="3" y2="10" /><line x1="3" x2="10" y1="21" y2="14" /></symbol>
92
+ <symbol id="i-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18" /><path d="m6 6 12 12" /></symbol>
93
+ <symbol id="i-mail" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2" /><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" /></symbol>
94
+ <symbol id="i-message-square" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" /></symbol>
95
+ </svg>
96
+
97
+ <a class="skip" href="#main">Skip to content</a>
98
+ <header class="nav" id="navigation">
99
+ <div class="nav__bar">
100
+ <a class="nav__logo" href="https://forgeqe.github.io/" aria-label="ForgeQE by Capgemini, home"><img src="../../img/wordmark-white.webp" alt="" width="160" height="76"><span class="nav__by">by <img src="../../img/capgemini-color.svg" alt="" width="92" height="21"></span></a>
101
+ <nav aria-label="Main"><ul class="nav__links"><li><a href="https://forgeqe.github.io/"><img class="pix pix--nav" src="../../img/icons/context-engine.svg" alt="" width="40" height="40">Product</a></li><li><a href="../index.html" aria-current="page"><img class="pix pix--nav" src="../../img/icons/wikis.svg" alt="" width="40" height="40">Docs</a></li><li><a href="https://forgeqe.github.io/security/"><img class="pix pix--nav" src="../../img/icons/shield.svg" alt="" width="40" height="40">Security</a></li><li><a href="../../architecture-map/index.html"><img class="pix pix--nav" src="../../img/icons/architecture.svg" alt="" width="40" height="40">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><img class="pix pix--nav" src="../../img/icons/mail.svg" alt="" width="40" height="40">Contact us</a></li></ul></nav>
102
+ <div class="nav__end">
103
+ <button class="search-open" type="button" aria-haspopup="dialog"><svg class="icon" aria-hidden="true"><use href="#i-scan-search"></use></svg><span>Search</span><kbd>/</kbd></button>
104
+ <button class="nav__menu" type="button" aria-expanded="false" aria-controls="menu"><span class="sr-only">Open the menu</span><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8h16M4 16h16"/></svg></button>
105
+ </div>
106
+ </div>
107
+ <div class="menu" id="menu" hidden><ul><li><a href="https://forgeqe.github.io/"><img class="pix pix--nav" src="../../img/icons/context-engine.svg" alt="" width="40" height="40">Product</a></li><li><a href="../index.html" aria-current="page"><img class="pix pix--nav" src="../../img/icons/wikis.svg" alt="" width="40" height="40">Docs</a></li><li><a href="https://forgeqe.github.io/security/"><img class="pix pix--nav" src="../../img/icons/shield.svg" alt="" width="40" height="40">Security</a></li><li><a href="../../architecture-map/index.html"><img class="pix pix--nav" src="../../img/icons/architecture.svg" alt="" width="40" height="40">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/"><img class="pix pix--nav" src="../../img/icons/mail.svg" alt="" width="40" height="40">Contact us</a></li></ul></div>
108
+ </header>
109
+ <div class="container docs-layout">
110
+ <nav class="docs-side" aria-label="Docs">
111
+ <a class="side-home" href="../index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40">User guide</a>
112
+ <div class="side-group"><p class="side-head">Guide</p><ul><li><a href="../index.html#overview" data-chapter="overview"><img class="pix" src="../../img/icons/context-engine.svg" alt="" width="40" height="40"><span>Overview</span><b>01</b></a></li><li><a href="../index.html#get-started" data-chapter="get-started"><img class="pix" src="../../img/icons/download.svg" alt="" width="40" height="40"><span>Get started</span><b>02</b></a></li><li><a href="../index.html#using" data-chapter="using"><img class="pix" src="../../img/icons/orchestrator.svg" alt="" width="40" height="40"><span>Using ForgeQE</span><b>03</b></a></li></ul></div><div class="side-group"><p class="side-head">Capability areas</p><ul><li><a href="../index.html#area-browser" data-chapter="area-browser"><img class="pix" src="../../img/icons/browser-agent.svg" alt="" width="40" height="40"><span>Browser</span><b>04</b></a></li><li><a href="../index.html#area-test-cases" data-chapter="area-test-cases"><img class="pix" src="../../img/icons/case.svg" alt="" width="40" height="40"><span>Test cases</span><b>05</b></a></li><li><a href="../index.html#area-setup" data-chapter="area-setup"><img class="pix" src="../../img/icons/healer.svg" alt="" width="40" height="40"><span>Setup</span><b>06</b></a></li><li><a href="../index.html#area-desktop" data-chapter="area-desktop"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop</span><b>07</b></a></li><li><a href="../index.html#area-mobile" data-chapter="area-mobile"><img class="pix" src="../../img/icons/mobile.svg" alt="" width="40" height="40"><span>Mobile</span><b>08</b></a></li><li><a href="../index.html#area-operations" data-chapter="area-operations"><img class="pix" src="../../img/icons/network.svg" alt="" width="40" height="40"><span>Operations</span><b>09</b></a></li><li><a href="../index.html#area-data" data-chapter="area-data"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Data</span><b>10</b></a></li><li><a href="../index.html#area-automated-tests" data-chapter="area-automated-tests"><img class="pix" src="../../img/icons/scribe.svg" alt="" width="40" height="40"><span>Automated tests</span><b>11</b></a></li><li><a href="../index.html#area-pull-requests" data-chapter="area-pull-requests"><img class="pix" src="../../img/icons/pr-reviewer.svg" alt="" width="40" height="40"><span>Pull requests</span><b>12</b></a></li><li><a href="../index.html#area-api" data-chapter="area-api"><img class="pix" src="../../img/icons/api.svg" alt="" width="40" height="40"><span>API</span><b>13</b></a></li><li><a href="../index.html#area-quality" data-chapter="area-quality"><img class="pix" src="../../img/icons/result.svg" alt="" width="40" height="40"><span>Quality</span><b>14</b></a></li><li><a href="../index.html#area-release" data-chapter="area-release"><img class="pix" src="../../img/icons/speed.svg" alt="" width="40" height="40"><span>Release</span><b>15</b></a></li><li><a href="../index.html#area-systems" data-chapter="area-systems"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Systems</span><b>16</b></a></li></ul></div><div class="side-group"><p class="side-head">Reference</p><ul><li><a href="../index.html#reference" data-chapter="reference"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Reference</span><b>17</b></a></li></ul></div>
113
+ <div class="side-group"><p class="side-head">More documentation</p><ul><li><a href="../web-app/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>The web app</span></a></li><li><a href="../desktop/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop apps</span></a></li><li><a href="../desktop-ci/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop in CI</span></a></li><li><a href="../mobile/index.html"><img class="pix" src="../../img/icons/mobile.svg" alt="" width="40" height="40"><span>Mobile apps</span></a></li><li><a href="../containers/index.html"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Containers</span></a></li><li><a href="../custom-agents-first-run/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Custom agents: a first run</span></a></li><li><a href="../evidence/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Evidence (design and status)</span></a></li><li><a href="../product-knowledge/index.html"><img class="pix" src="../../img/icons/context-engine.svg" alt="" width="40" height="40"><span>Product knowledge</span></a></li><li><a href="index.html" aria-current="page"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>The product knowledge graph (design)</span></a></li><li><a href="../product-views/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Product views (design)</span></a></li><li><a href="../graphify/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Reading product code (Graphify)</span></a></li><li><a href="../guardrails/index.html"><img class="pix" src="../../img/icons/shield.svg" alt="" width="40" height="40"><span>Guardrails</span></a></li><li><a href="../feature-test-prompts/index.html"><img class="pix" src="../../img/icons/scribe.svg" alt="" width="40" height="40"><span>Feature test prompts</span></a></li><li><a href="../architecture/index.html"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Architecture</span></a></li><li><a href="../cost-architecture/index.html"><img class="pix" src="../../img/icons/speed.svg" alt="" width="40" height="40"><span>Cost-aware execution</span></a></li><li><a href="../model-routing/index.html"><img class="pix" src="../../img/icons/orchestrator.svg" alt="" width="40" height="40"><span>Model routing</span></a></li></ul></div>
114
+ <div class="side-group"><p class="side-head">Pages of their own</p><ul>
115
+ <li><a href="https://forgeqe.github.io/security/"><img class="pix" src="../../img/icons/shield.svg" alt="" width="40" height="40"><span>Security and data flows</span></a></li>
116
+ <li><a href="../../architecture-map/index.html"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Architecture map</span></a></li>
117
+ </ul></div>
118
+ </nav>
119
+ <main id="main" class="docs-main">
120
+ <p class="crumbs"><a href="../index.html">Docs</a><span>/</span>More documentation</p>
121
+ <h1 class="topic-h"><img class="pix pix--title" src="../../img/icons/wikis.svg" alt="" width="40" height="40">The product knowledge graph (design)</h1>
122
+ <article class="prose">
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
+ <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,
126
+ queryable picture of how the product works, built from <strong>all of the product's repositories and documents</strong>, so a task
127
+ starts from what the product actually does instead of guesses.</p>
128
+ <ul>
129
+ <li>ForgeQE builds it, with the model in <code>llms.json</code>. It does not depend on Claude Code or any editor plugin.</li>
130
+ <li>One product graph, merged from many repositories, plus generated Markdown pages that people can read and review.</li>
131
+ <li>Agents query it by requirement (&quot;what happens when a customer cancels an order?&quot;) and get only the parts that
132
+ matter, with <code>repo:file:line</code> references they can open.</li>
133
+ <li>Rebuilding is incremental: only what changed since the last build is read again, and only that goes to the model.</li>
134
+ </ul>
135
+ <h2 id="what-exists-today"><a href="#what-exists-today" class="hash">#</a>What exists today</h2>
136
+ <div class="tbl"><table>
137
+ <thead>
138
+ <tr><th>Piece</th><th>Where</th><th>Used for</th></tr>
139
+ </thead>
140
+ <tbody>
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>
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
+ <tr><td>Confluence pages</td><td><code>src/cases/confluence.ts</code></td><td>Test cases today; documents here</td></tr>
145
+ <tr><td>Model routing</td><td><code>src/router/</code></td><td>Picks the model per area of work</td></tr>
146
+ <tr><td>Agent sessions with a JSON schema</td><td><code>openSession</code> in <code>src/code/runtime.ts</code>, as <code>src/refine.ts</code> uses it</td><td>Structured model output</td></tr>
147
+ </tbody>
148
+ </table></div>
149
+ <p>The product graph builds on these: the same parsers, the same knowledge folder, the same model routing and sessions.</p>
150
+ <h2 id="format"><a href="#format" class="hash">#</a>Format</h2>
151
+ <p>The graph follows the open schema of <a href="https://github.com/Egonex-AI/Understand-Anything" class="ext" rel="noopener">Understand-Anything</a> (MIT):
152
+ typed nodes (<code>file</code>, <code>class</code>, <code>function</code>, <code>service</code>, <code>endpoint</code>, <code>table</code>, <code>config</code>, <code>document</code>, <code>domain</code>, <code>flow</code>,
153
+ <code>step</code>, <code>entity</code>, <code>claim</code>, …) and typed, weighted edges (<code>imports</code>, <code>calls</code>, <code>reads_from</code>, <code>writes_to</code>, <code>tested_by</code>,
154
+ <code>documents</code>, <code>contains_flow</code>, <code>flow_step</code>, <code>cross_domain</code>, …), each node with a summary, tags, and a file and line range.
155
+ Using the same shape keeps it readable by that project's dashboard, and lets a team import a graph it already built
156
+ there. Only the format is shared; ForgeQE's code is its own.</p>
157
+ <p>ForgeQE adds a <code>repo</code> field to each node and prefixes ids with the repository (<code>api:file:src/orders/cancel.ts</code>), so many
158
+ repositories merge into one graph without clashes, and edges may cross repositories.</p>
159
+ <p>ForgeQE also adds <code>evidence</code> to every node and edge (PRODUCT_VIEWS.md): its source (<code>code</code>, <code>config</code>, <code>spec</code>,
160
+ <code>schema</code>, <code>doc</code>, <code>runtime</code>, <code>person</code>, <code>model</code>), its state (<code>observed</code>, <code>inferred</code>, <code>unknown</code>), a confidence, how it was
161
+ found, and where (repository, file, line, or link) with the line it rests on. Beside the graph, <code>graph/coverage.json</code>
162
+ counts what was linked and lists the gaps: calls that no route or several routes fit, calls to other hosts, and tables
163
+ no repository defines, each with where it is and what would settle it.</p>
164
+ <h2 id="settings-forgeqeyaml"><a href="#settings-forgeqeyaml" class="hash">#</a>Settings (<code>forgeqe.yaml</code>)</h2>
165
+ <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>product:
166
+ name: Shop
167
+ repos: # by name, like databases: and containers.services:
168
+ web: { path: ../shop-web } # a local clone
169
+ api: { git: https://github.com/acme/shop-api, branch: main, token_env: GITHUB_TOKEN } # or its link: fetched
170
+ # into ForgeQE's cache (src/product/gitsource.ts), latest commit only, when it moved
171
+ docs:
172
+ - ../shop-docs # folders of .md / .txt
173
+ - confluence: SHOP # a Confluence space, with the existing sign-in
174
+ links: # knowledge from links (see &quot;Links&quot; below)
175
+ - url: https://help.shop.example/ # a help centre or docs site: this page and the pages it links to
176
+ depth: 2 # how many links deep to follow, on the same site only (default 1)
177
+ max_pages: 200
178
+ - url: https://api.shop.example/openapi.json # an API description: endpoints read exactly, no model needed
179
+ - url: https://acme.atlassian.net/wiki/spaces/SHOP/pages/123 # a Confluence page and its children
180
+ - app: shop-web # a web app of env.yaml: what ForgeQE's runs and explorations learned about it
181
+ exclude: [&quot;**/generated/**&quot;] # beside each repo's .gitignore and .forgeqeignore
182
+ model: true # false: structure only, nothing goes to a model
183
+ max_model_files: 400 # most changed files the model reads in one build
184
+ </code></pre></div>
185
+ <p>Every option gets a field on the web app's Settings page (<code>tests/settings-coverage.test.ts</code>).</p>
186
+ <h2 id="where-it-is-written"><a href="#where-it-is-written" class="hash">#</a>Where it is written</h2>
187
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre><code>.forgeqe/knowledge/
188
+ product/ generated pages: overview, one per domain and per service (Markdown, reviewable)
189
+ graph/
190
+ product-graph.json the merged graph agents query
191
+ repos/&amp;lt;name&gt;.json one graph per repository
192
+ meta.json per repository: last commit read, file fingerprints, model, cost
193
+ </code></pre></div>
194
+ <p>The generated pages sit in the knowledge folder, so today's matching (<code>relevantKnowledge</code>) picks them up with no change.
195
+ The team's own notes stay beside them and win where the two disagree.</p>
196
+ <h2 id="model"><a href="#model" class="hash">#</a>Model</h2>
197
+ <p>The model steps use the profiles already in <code>llms.json</code>: <code>github_copilot</code> (through ForgeQE's Copilot gateway on
198
+ 127.0.0.1, on the user's seat), <code>azure</code>, <code>openai</code>, <code>openai_compatible</code>, or <code>ollama</code>. They run as agent sessions with a
199
+ JSON schema (<code>openSession</code>), on the <code>analysis</code> route of model routing (<code>src/router/</code>), so a team that routes analysis to
200
+ Copilot builds its knowledge on Copilot with no other setting. <code>--profile &amp;lt;name&gt;</code> picks a profile for one build.
201
+ Copilot costs no tokens, so the cost prompt then shows only the number of files and requests.</p>
202
+ <h2 id="building-forgeqe-knowledge-build---repo-name---full---no-model"><a href="#building-forgeqe-knowledge-build---repo-name---full---no-model" class="hash">#</a>Building: <code>forgeqe knowledge build [--repo &amp;lt;name&gt;] [--full] [--no-model]</code></h2>
203
+ <ol>
204
+ <li><strong>Scan</strong> (no model). Each repository's files, languages, and frameworks (<code>package.json</code>, <code>pom.xml</code>, <code>*.csproj</code>,
205
+ <code>requirements.txt</code>, <code>pyproject.toml</code>). <code>.gitignore</code> and <code>.forgeqeignore</code> apply. Hidden files and files named like
206
+ credentials are never read.</li>
207
+ <li><strong>Structure</strong> (no model). Graphify (<code>src/product/graphify.ts</code>, docs/GRAPHIFY.md) reads the code in about 40
208
+ languages: <code>class</code> and <code>function</code> nodes (a method as <code>Class.name</code>) and <code>calls</code>, <code>imports</code>, <code>inherits</code>, <code>implements</code>
209
+ and <code>contains</code> edges between them. A call from a test becomes <code>tested_by</code> on what it calls. Its <code>EXTRACTED</code> links are
210
+ observed and its <code>INFERRED</code> ones inferred, each with its file, line and quote. ForgeQE installs Graphify, pinned, into
211
+ <code>~/.forgeqe/knowledge/.venv</code> the first time; a rebuild reads only the changed files again. ForgeQE's own tree-sitter
212
+ facts add to the same nodes. Pattern rules add:
213
+ <ul>
214
+ <li><code>endpoint</code> nodes from route definitions (Express, ASP.NET <code>[Http*]</code>, Spring <code>@*Mapping</code>, FastAPI and Flask);</li>
215
+ <li><code>table</code> nodes from migrations and SQL;</li>
216
+ <li><code>config</code> nodes, with <code>tested_by</code> edges from tests to the code they import;</li>
217
+ <li><strong>cross-repository edges</strong>: an HTTP call in one repository matched by method and path to an endpoint in another.</li>
218
+ </ul>
219
+ </li>
220
+ <li><strong>Understanding</strong> (model, batched). Each file gets a summary, tags, and complexity. Each repository gets its
221
+ services and layers. The product gets its domains, business flows and steps, business rules, glossary, and roles,
222
+ each linked to the nodes that implement it.</li>
223
+ <li><strong>Documents</strong> (model). Folders and Confluence pages are split into sections. Each becomes a <code>document</code> node, with
224
+ <code>entity</code> and <code>claim</code> nodes and <code>documents</code> edges to the code they describe.</li>
225
+ <li><strong>Links</strong> (see below). Each fetched page becomes a <code>document</code> node. An API description becomes <code>endpoint</code> nodes.
226
+ What ForgeQE learned in the live app becomes <code>page</code> and <code>screen</code> nodes.</li>
227
+ <li><strong>Pages</strong>. The overview, domain pages, and service pages are written as Markdown.</li>
228
+ </ol>
229
+ <p>Before a build that uses the model, ForgeQE shows how many files will be read and the estimated cost (<code>src/tokenomics</code>),
230
+ and asks. A rebuild uses <code>git diff</code> from the commit in <code>meta.json</code> plus file fingerprints, re-reads only the changed files,
231
+ and redoes the domain step only when the structure changed.</p>
232
+ <h2 id="links"><a href="#links" class="hash">#</a>Links</h2>
233
+ <p>A link is a source like a folder, read the way its kind needs. As built, sources are a map by name under
234
+ <code>product.docs</code> (like <code>product.repos</code>), each with one of <code>path</code>, <code>url</code>, <code>confluence</code>, or <code>app</code>:</p>
235
+ <div class="tbl"><table>
236
+ <thead>
237
+ <tr><th>Link</th><th>How it is read</th><th>Becomes</th></tr>
238
+ </thead>
239
+ <tbody>
240
+ <tr><td>A web page or docs site (help centre, user guide, release notes, public API docs)</td><td>Fetched over HTTPS. Links on the same site are followed up to <code>depth</code> and <code>max_pages</code>; <code>sitemap.xml</code> and <code>robots.txt</code> are honoured. The text is taken from the HTML, and scripts and styles are dropped.</td><td><code>document</code> nodes split at headings, then <code>entity</code>, <code>claim</code>, and <code>documents</code> edges (step 4)</td></tr>
241
+ <tr><td>An OpenAPI / Swagger, WSDL, or GraphQL description</td><td>Read with ForgeQE's API spec readers (<code>src/api/spec.ts</code>), with no model</td><td><code>endpoint</code> and <code>schema</code> nodes, matched to the code that serves them</td></tr>
242
+ <tr><td>A Confluence page or space</td><td>The existing Confluence reader and sign-in (<code>src/cases/confluence.ts</code>)</td><td><code>document</code> nodes, with child pages followed</td></tr>
243
+ <tr><td>A page that renders only in a browser, or needs a login</td><td>The browser engine with the app's login from env.yaml. Login values reach the model only as <code>&amp;lt;secret&gt;</code> placeholders.</td><td><code>document</code> nodes</td></tr>
244
+ <tr><td>A web app of <code>env.yaml</code> (<code>app:</code>)</td><td>Page memory: the pages, elements, and flows ForgeQE's runs and <code>forgeqe explore</code> recorded (<code>src/memory.ts</code>)</td><td><code>page</code> and <code>screen</code> nodes, linked to the endpoints they call and the code that serves them</td></tr>
245
+ </tbody>
246
+ </table></div>
247
+ <p>The last row is unique to ForgeQE: it joins what the product <em>says</em> (documents), what it <em>is</em> (code), and what it <em>does</em>
248
+ on screen (page memory) in one graph. So a requirement leads to the screen, the API call behind it, and the code.</p>
249
+ <p>Rules for links (as built):</p>
250
+ <ul>
251
+ <li>The link in the settings is the person's choice, so it may be on the company network (an intranet wiki is a
252
+ common source). What a page links to, and every redirect, is followed only on that same host, so a page cannot send
253
+ ForgeQE to <code>169.254.169.254</code> or another internal service. Only <code>http</code> and <code>https</code>, never a link with a user name or
254
+ password in it; a token (<code>token_env</code>) is sent to that host only.</li>
255
+ <li><code>robots.txt</code> is honoured. Each page is at most 2 MB and 20 seconds, and only text is read.</li>
256
+ <li>Page text is untrusted, like repository text. Instructions in it are data, and a page cannot add links to settings.</li>
257
+ <li>A rebuild fetches a page again only when its <code>ETag</code> or <code>Last-Modified</code> changed, so the model reads only what changed.</li>
258
+ <li>A one-off link can be added from the shell or the web app (<code>/knowledge add &amp;lt;url&gt;</code>), and is saved to settings first.</li>
259
+ </ul>
260
+ <h2 id="querying"><a href="#querying" class="hash">#</a>Querying</h2>
261
+ <ul>
262
+ <li><code>src/product/query.ts</code>:
263
+ <ol>
264
+ <li>finds the nodes that match a requirement (names, summaries, tags, and stemmed words, as <code>knowledge.ts</code> does);</li>
265
+ <li>adds their neighbours by edge weight;</li>
266
+ <li>returns a compact block within a character budget, each line with <code>repo:file:line</code>.</li>
267
+ </ol>
268
+ </li>
269
+ <li><strong>The <code>product_knowledge</code> tool</strong> for ForgeQE's agent (<code>src/mcp/producttools.ts</code>), one tool with an <code>op</code>, as
270
+ <code>data_flows</code> is: <code>search</code>, <code>node</code> (one node and its neighbours), <code>impact</code> (what depends on a file, class, endpoint,
271
+ or table, across repositories, and the tests that cover it: a function or class with known callers is followed
272
+ through them, the routes those calls are made under, and the services that call those routes, with each link only
273
+ inferred marked; anything else through its file's importers), <code>status</code>, <code>gaps</code>, and <code>build</code>. Phase 2 adds <code>flow</code> (a
274
+ business flow, step by step). The same questions from a terminal:
275
+ <code>forgeqe knowledge build|status|search|node|impact|path|flow|gaps|check|ask|findings</code>. <code>path &amp;lt;from&gt; &amp;lt;to&gt;</code> (op <code>path</code>,
276
+ <code>ref</code> and <code>to</code>) is the cheapest chain of links by which one reaches the other: calls, an endpoint's handler, calls
277
+ between services, table reads and writes, inheritance, and imports, which cost the most, so a chain of calls wins.
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
+ inferred is marked. <code>ask</code> (op <code>ask</code>) runs the
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
282
+ today's knowledge sections.</li>
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
+ <li><strong>Web app</strong>: a Knowledge page shows the graph, the generated pages, and build status, and starts a rebuild.</li>
285
+ </ul>
286
+ <h2 id="sharing-srcproductsharets-srcproductpipelinets"><a href="#sharing-srcproductsharets-srcproductpipelinets" class="hash">#</a>Sharing (<code>src/product/share.ts</code>, <code>src/product/pipeline.ts</code>)</h2>
287
+ <p><code>forgeqe knowledge export</code> writes the knowledge folder's own files (the graph, its per-repository and per-source files,
288
+ coverage, history, findings, feedback, what the model wrote, and the pages) as one gzipped JSON pack, each file with
289
+ its SHA-256, and the commits it was built from. <code>import</code> and <code>pull</code> read a pack as untrusted data: only paths on a fixed
290
+ list, no <code>..</code>, hidden or absolute path, every checksum matching, at most 100 MB packed and 512 MB unpacked, every folder
291
+ resolving inside the knowledge folder; the files are staged and moved into place only when all are good. A person's
292
+ feedback and findings are merged, theirs first. <code>product.shared</code> is a branch of a git repository (fetched like a
293
+ repository, <code>gitsource.ts</code>), an https link (the token to that host only; a redirect elsewhere goes without it), or a
294
+ file. <code>forgeqe knowledge pipeline init</code> writes the GitHub Actions and Azure DevOps pipelines: ForgeQE at its exact
295
+ version, secrets by name, the last pack imported first, then build, export, the artifact, and the <code>forgeqe-knowledge</code>
296
+ branch rewritten to one commit holding the pack (made with <code>git hash-object</code>/<code>mktree</code>/<code>commit-tree</code>, so the checkout
297
+ is never changed).</p>
298
+ <h2 id="security-see-claudemd"><a href="#security-see-claudemd" class="hash">#</a>Security (see CLAUDE.md)</h2>
299
+ <ul>
300
+ <li>Repository and document paths come from settings. Each is resolved with <code>realpathSync</code>, and every file read stays
301
+ inside it. Hidden files and credential-like files are skipped.</li>
302
+ <li>Code and documents are sent only to the model the user configured, and only when <code>model</code> is not <code>false</code>.</li>
303
+ <li>Model output is untrusted. Secrets are redacted (<code>redactSecrets</code>) before anything is written. Summaries never reach a
304
+ shell or an HTML sink. In prompts they appear as quoted data, after the team's own notes. The web page draws them as
305
+ text.</li>
306
+ <li>The git commands use argument arrays, never a shell. A repository read from its link (<code>gitsource.ts</code>) takes only
307
+ https and ssh (<code>protocol.allow=never</code> with those two allowed), never <code>ext::</code>, <code>file://</code>, a local path, <code>..</code>, a link with
308
+ a password, or a user name or branch that starts like an option; <code>--</code> comes before the link. Hooks, fsmonitor,
309
+ submodules and LFS are off and symbolic links are checked out as plain files. The token comes from <code>token_env</code> and is
310
+ sent as an <code>http.&amp;lt;host&gt;.extraHeader</code> through git's environment, so it is in no argument, link or file, and is cut out of
311
+ any error shown.</li>
312
+ <li>A repository's database (<code>product.repos.&amp;lt;name&gt;.database</code>, a <code>databases:</code> entry) is read through ForgeQE's data engine
313
+ (<code>src/product/dbschema.ts</code>): that entry's own sign-in and an environment of only its variables, and only an entry that
314
+ is not writable. Its tables, columns, keys and foreign keys join the graph as <code>schema</code> evidence; a table the code
315
+ defines too gets both readings, and the build says which tables and columns differ between the code and the database.
316
+ Names from the database are plain text, capped.</li>
317
+ <li>PDF, Word and Excel files of a docs folder are read as text by Graphify's converters (their size caps), only files the
318
+ folder's scan lists (no hidden, credential-named or linked-out file), each path checked inside the folder again.</li>
319
+ <li>Graphify runs with an argument array and no shell, models off (<code>GRAPHIFY_BACKEND=none</code>), an environment of system
320
+ settings only, git's fsmonitor off, a time limit, and its output in ForgeQE's cache, never in the repository. It gets
321
+ ForgeQE's own file list, and its result is untrusted (<code>parseGraphify</code>): a known format and version only, a node only in
322
+ a listed file, a function's name only plain (no spaces, no shell characters), an edge only between nodes it kept.</li>
323
+ <li>Tests feed hostile input: a repository path of <code>../../.ssh</code>, a summary holding <code>&amp;lt;script&gt;</code> and <code>; rm -rf ~</code>, and a
324
+ document link of <code>javascript:</code>.</li>
325
+ </ul>
326
+ <h2 id="phases"><a href="#phases" class="hash">#</a>Phases</h2>
327
+ <ol>
328
+ <li><strong>Structure graph</strong>: settings, scan and structure for several local repositories, the merged file, the query, the MCP
329
+ tools, and tests. No model.</li>
330
+ <li><strong>Understanding</strong>: model summaries, domains, flows, generated pages, incremental rebuilds, and the cost prompt.</li>
331
+ <li><strong>Documents and links</strong>: folders, API description links, web pages and docs sites, page memory of the apps, then
332
+ Confluence and pages that need a browser.</li>
333
+ <li><strong>Use everywhere</strong>: prompt blocks for planners and the browser agent, the Requirement_Agent provider, the web
334
+ Knowledge page.</li>
335
+ <li><strong>Remote repositories</strong>: <code>url</code> and <code>ref</code> instead of <code>path</code>, cloned into ForgeQE's cache.</li>
336
+ </ol>
337
+
338
+ </article>
339
+ <nav class="pager" aria-label="Previous and next">
340
+ <a class="prev" href="../product-knowledge/index.html"><small>Previous</small><span>Product knowledge</span></a>
341
+ <a class="next" href="../product-views/index.html"><small>Next</small><span>Product views (design)</span></a>
342
+ </nav>
343
+ </main>
344
+ <aside class="docs-toc" aria-label="On this page">
345
+ <p class="side-head">On this page</p><ul><li><a href="#goal">Goal</a></li><li><a href="#what-exists-today">What exists today</a></li><li><a href="#format">Format</a></li><li><a href="#settings-forgeqeyaml">Settings (forgeqe.yaml)</a></li><li><a href="#where-it-is-written">Where it is written</a></li><li><a href="#model">Model</a></li><li><a href="#building-forgeqe-knowledge-build---repo-name---full---no-model">Building: forgeqe knowledge build [--repo &lt;name&gt;] [--full] [--no-model]</a></li><li><a href="#links">Links</a></li><li><a href="#querying">Querying</a></li><li><a href="#sharing-srcproductsharets-srcproductpipelinets">Sharing (src/product/share.ts, src/product/pipeline.ts)</a></li><li><a href="#security-see-claudemd">Security (see CLAUDE.md)</a></li><li><a href="#phases">Phases</a></li></ul>
346
+ </aside>
347
+ </div>
348
+ <footer class="foot">
349
+ <div class="container foot__row">
350
+ <a class="foot__brand" href="https://forgeqe.github.io/"><img src="../../img/wordmark-white.webp" alt="ForgeQE" width="160" height="76"><span>AI writes the code. <em>ForgeQE proves it works.</em></span></a>
351
+ <nav aria-label="Footer"><ul><li><a href="https://forgeqe.github.io/">Product</a></li><li><a href="../index.html">Docs</a></li><li><a href="https://forgeqe.github.io/security/">Security</a></li><li><a href="../../architecture-map/index.html">Architecture</a></li><li><a href="https://forgeqe.github.io/contact/">Contact us</a></li><li><a href="https://forgeqe.github.io/sample-report/">Sample report</a></li></ul></nav>
352
+ </div>
353
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
354
+ </footer>
355
+ </body>
356
+ </html>
@@ -110,7 +110,7 @@
110
110
  <nav class="docs-side" aria-label="Docs">
111
111
  <a class="side-home" href="../index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40">User guide</a>
112
112
  <div class="side-group"><p class="side-head">Guide</p><ul><li><a href="../index.html#overview" data-chapter="overview"><img class="pix" src="../../img/icons/context-engine.svg" alt="" width="40" height="40"><span>Overview</span><b>01</b></a></li><li><a href="../index.html#get-started" data-chapter="get-started"><img class="pix" src="../../img/icons/download.svg" alt="" width="40" height="40"><span>Get started</span><b>02</b></a></li><li><a href="../index.html#using" data-chapter="using"><img class="pix" src="../../img/icons/orchestrator.svg" alt="" width="40" height="40"><span>Using ForgeQE</span><b>03</b></a></li></ul></div><div class="side-group"><p class="side-head">Capability areas</p><ul><li><a href="../index.html#area-browser" data-chapter="area-browser"><img class="pix" src="../../img/icons/browser-agent.svg" alt="" width="40" height="40"><span>Browser</span><b>04</b></a></li><li><a href="../index.html#area-test-cases" data-chapter="area-test-cases"><img class="pix" src="../../img/icons/case.svg" alt="" width="40" height="40"><span>Test cases</span><b>05</b></a></li><li><a href="../index.html#area-setup" data-chapter="area-setup"><img class="pix" src="../../img/icons/healer.svg" alt="" width="40" height="40"><span>Setup</span><b>06</b></a></li><li><a href="../index.html#area-desktop" data-chapter="area-desktop"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop</span><b>07</b></a></li><li><a href="../index.html#area-mobile" data-chapter="area-mobile"><img class="pix" src="../../img/icons/mobile.svg" alt="" width="40" height="40"><span>Mobile</span><b>08</b></a></li><li><a href="../index.html#area-operations" data-chapter="area-operations"><img class="pix" src="../../img/icons/network.svg" alt="" width="40" height="40"><span>Operations</span><b>09</b></a></li><li><a href="../index.html#area-data" data-chapter="area-data"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Data</span><b>10</b></a></li><li><a href="../index.html#area-automated-tests" data-chapter="area-automated-tests"><img class="pix" src="../../img/icons/scribe.svg" alt="" width="40" height="40"><span>Automated tests</span><b>11</b></a></li><li><a href="../index.html#area-pull-requests" data-chapter="area-pull-requests"><img class="pix" src="../../img/icons/pr-reviewer.svg" alt="" width="40" height="40"><span>Pull requests</span><b>12</b></a></li><li><a href="../index.html#area-api" data-chapter="area-api"><img class="pix" src="../../img/icons/api.svg" alt="" width="40" height="40"><span>API</span><b>13</b></a></li><li><a href="../index.html#area-quality" data-chapter="area-quality"><img class="pix" src="../../img/icons/result.svg" alt="" width="40" height="40"><span>Quality</span><b>14</b></a></li><li><a href="../index.html#area-release" data-chapter="area-release"><img class="pix" src="../../img/icons/speed.svg" alt="" width="40" height="40"><span>Release</span><b>15</b></a></li><li><a href="../index.html#area-systems" data-chapter="area-systems"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Systems</span><b>16</b></a></li></ul></div><div class="side-group"><p class="side-head">Reference</p><ul><li><a href="../index.html#reference" data-chapter="reference"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Reference</span><b>17</b></a></li></ul></div>
113
- <div class="side-group"><p class="side-head">More documentation</p><ul><li><a href="../web-app/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>The web app</span></a></li><li><a href="../desktop/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop apps</span></a></li><li><a href="../desktop-ci/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop in CI</span></a></li><li><a href="../mobile/index.html"><img class="pix" src="../../img/icons/mobile.svg" alt="" width="40" height="40"><span>Mobile apps</span></a></li><li><a href="../containers/index.html"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Containers</span></a></li><li><a href="index.html" aria-current="page"><img class="pix" src="../../img/icons/context-engine.svg" alt="" width="40" height="40"><span>Product knowledge</span></a></li><li><a href="../guardrails/index.html"><img class="pix" src="../../img/icons/shield.svg" alt="" width="40" height="40"><span>Guardrails</span></a></li><li><a href="../feature-test-prompts/index.html"><img class="pix" src="../../img/icons/scribe.svg" alt="" width="40" height="40"><span>Feature test prompts</span></a></li><li><a href="../architecture/index.html"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Architecture</span></a></li><li><a href="../cost-architecture/index.html"><img class="pix" src="../../img/icons/speed.svg" alt="" width="40" height="40"><span>Cost-aware execution</span></a></li><li><a href="../model-routing/index.html"><img class="pix" src="../../img/icons/orchestrator.svg" alt="" width="40" height="40"><span>Model routing</span></a></li></ul></div>
113
+ <div class="side-group"><p class="side-head">More documentation</p><ul><li><a href="../web-app/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>The web app</span></a></li><li><a href="../desktop/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop apps</span></a></li><li><a href="../desktop-ci/index.html"><img class="pix" src="../../img/icons/desktop.svg" alt="" width="40" height="40"><span>Desktop in CI</span></a></li><li><a href="../mobile/index.html"><img class="pix" src="../../img/icons/mobile.svg" alt="" width="40" height="40"><span>Mobile apps</span></a></li><li><a href="../containers/index.html"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Containers</span></a></li><li><a href="../custom-agents-first-run/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Custom agents: a first run</span></a></li><li><a href="../evidence/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Evidence (design and status)</span></a></li><li><a href="index.html" aria-current="page"><img class="pix" src="../../img/icons/context-engine.svg" alt="" width="40" height="40"><span>Product knowledge</span></a></li><li><a href="../product-graph/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>The product knowledge graph (design)</span></a></li><li><a href="../product-views/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Product views (design)</span></a></li><li><a href="../graphify/index.html"><img class="pix" src="../../img/icons/wikis.svg" alt="" width="40" height="40"><span>Reading product code (Graphify)</span></a></li><li><a href="../guardrails/index.html"><img class="pix" src="../../img/icons/shield.svg" alt="" width="40" height="40"><span>Guardrails</span></a></li><li><a href="../feature-test-prompts/index.html"><img class="pix" src="../../img/icons/scribe.svg" alt="" width="40" height="40"><span>Feature test prompts</span></a></li><li><a href="../architecture/index.html"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Architecture</span></a></li><li><a href="../cost-architecture/index.html"><img class="pix" src="../../img/icons/speed.svg" alt="" width="40" height="40"><span>Cost-aware execution</span></a></li><li><a href="../model-routing/index.html"><img class="pix" src="../../img/icons/orchestrator.svg" alt="" width="40" height="40"><span>Model routing</span></a></li></ul></div>
114
114
  <div class="side-group"><p class="side-head">Pages of their own</p><ul>
115
115
  <li><a href="https://forgeqe.github.io/security/"><img class="pix" src="../../img/icons/shield.svg" alt="" width="40" height="40"><span>Security and data flows</span></a></li>
116
116
  <li><a href="../../architecture-map/index.html"><img class="pix" src="../../img/icons/architecture.svg" alt="" width="40" height="40"><span>Architecture map</span></a></li>
@@ -137,8 +137,8 @@ characters, so runs stay cheap).</li>
137
137
 
138
138
  </article>
139
139
  <nav class="pager" aria-label="Previous and next">
140
- <a class="prev" href="../containers/index.html"><small>Previous</small><span>Containers</span></a>
141
- <a class="next" href="../guardrails/index.html"><small>Next</small><span>Guardrails</span></a>
140
+ <a class="prev" href="../evidence/index.html"><small>Previous</small><span>Evidence (design and status)</span></a>
141
+ <a class="next" href="../product-graph/index.html"><small>Next</small><span>The product knowledge graph (design)</span></a>
142
142
  </nav>
143
143
  </main>
144
144
  <aside class="docs-toc" aria-label="On this page">