@capagents/forgeqe 2.4.4 → 2.4.6

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 (134) hide show
  1. package/HOW_TO_USE.md +24 -4
  2. package/dist/docs-site/CREDITS.md +26 -0
  3. package/dist/docs-site/LICENSE.ubuntu.txt +96 -0
  4. package/dist/docs-site/architecture-map/arch.css +345 -0
  5. package/dist/docs-site/architecture-map/arch.js +119 -0
  6. package/dist/docs-site/architecture-map/index.html +184 -0
  7. package/dist/docs-site/docs/architecture/index.html +655 -0
  8. package/dist/docs-site/docs/containers/index.html +434 -0
  9. package/dist/docs-site/docs/cost-architecture/index.html +538 -0
  10. package/dist/docs-site/docs/desktop/index.html +496 -0
  11. package/dist/docs-site/docs/desktop-ci/index.html +225 -0
  12. package/dist/docs-site/docs/docs.css +307 -0
  13. package/dist/docs-site/docs/docs.js +206 -0
  14. package/dist/docs-site/docs/feature-test-prompts/index.html +255 -0
  15. package/dist/docs-site/docs/guardrails/index.html +155 -0
  16. package/dist/docs-site/docs/index.html +4706 -0
  17. package/dist/docs-site/docs/mobile/index.html +353 -0
  18. package/dist/docs-site/docs/model-routing/index.html +244 -0
  19. package/dist/docs-site/docs/product-knowledge/index.html +156 -0
  20. package/dist/docs-site/docs/search.js +4 -0
  21. package/dist/docs-site/docs/web-app/index.html +295 -0
  22. package/dist/docs-site/img/capgemini-color.svg +21 -0
  23. package/dist/docs-site/img/favicon.png +0 -0
  24. package/dist/docs-site/img/icons/api.svg +1 -0
  25. package/dist/docs-site/img/icons/architecture.svg +1 -0
  26. package/dist/docs-site/img/icons/branch.svg +1 -0
  27. package/dist/docs-site/img/icons/browser-agent.svg +1 -0
  28. package/dist/docs-site/img/icons/case.svg +1 -0
  29. package/dist/docs-site/img/icons/container.svg +1 -0
  30. package/dist/docs-site/img/icons/context-engine.svg +1 -0
  31. package/dist/docs-site/img/icons/desktop.svg +1 -0
  32. package/dist/docs-site/img/icons/download.svg +1 -0
  33. package/dist/docs-site/img/icons/explorer.svg +1 -0
  34. package/dist/docs-site/img/icons/feature.svg +1 -0
  35. package/dist/docs-site/img/icons/healer.svg +1 -0
  36. package/dist/docs-site/img/icons/knowledge-base.svg +1 -0
  37. package/dist/docs-site/img/icons/mobile.svg +1 -0
  38. package/dist/docs-site/img/icons/model.svg +1 -0
  39. package/dist/docs-site/img/icons/network.svg +1 -0
  40. package/dist/docs-site/img/icons/orchestrator.svg +1 -0
  41. package/dist/docs-site/img/icons/plug.svg +1 -0
  42. package/dist/docs-site/img/icons/pr-reviewer.svg +1 -0
  43. package/dist/docs-site/img/icons/replay.svg +1 -0
  44. package/dist/docs-site/img/icons/report.svg +1 -0
  45. package/dist/docs-site/img/icons/result.svg +1 -0
  46. package/dist/docs-site/img/icons/rule.svg +1 -0
  47. package/dist/docs-site/img/icons/scribe.svg +1 -0
  48. package/dist/docs-site/img/icons/shield.svg +1 -0
  49. package/dist/docs-site/img/icons/specs.svg +1 -0
  50. package/dist/docs-site/img/icons/speed.svg +1 -0
  51. package/dist/docs-site/img/icons/stories.svg +1 -0
  52. package/dist/docs-site/img/icons/terminal.svg +1 -0
  53. package/dist/docs-site/img/icons/test-finder.svg +1 -0
  54. package/dist/docs-site/img/icons/visual.svg +1 -0
  55. package/dist/docs-site/img/icons/web.svg +1 -0
  56. package/dist/docs-site/img/icons/wikis.svg +1 -0
  57. package/dist/docs-site/img/logos/android.svg +1 -0
  58. package/dist/docs-site/img/logos/appium.svg +1 -0
  59. package/dist/docs-site/img/logos/apple.svg +1 -0
  60. package/dist/docs-site/img/logos/azure.svg +1 -0
  61. package/dist/docs-site/img/logos/azuredevops.svg +12 -0
  62. package/dist/docs-site/img/logos/azurepipelines.svg +1 -0
  63. package/dist/docs-site/img/logos/browserstack.svg +1 -0
  64. package/dist/docs-site/img/logos/chrome.svg +1 -0
  65. package/dist/docs-site/img/logos/claudecode.svg +1 -0
  66. package/dist/docs-site/img/logos/confluence.svg +1 -0
  67. package/dist/docs-site/img/logos/docker.svg +1 -0
  68. package/dist/docs-site/img/logos/email.svg +1 -0
  69. package/dist/docs-site/img/logos/github.svg +1 -0
  70. package/dist/docs-site/img/logos/githubactions.svg +1 -0
  71. package/dist/docs-site/img/logos/jira.svg +1 -0
  72. package/dist/docs-site/img/logos/lmstudio.svg +1 -0
  73. package/dist/docs-site/img/logos/maestro.png +0 -0
  74. package/dist/docs-site/img/logos/ollama.svg +1 -0
  75. package/dist/docs-site/img/logos/openai.svg +1 -0
  76. package/dist/docs-site/img/logos/podman.svg +1 -0
  77. package/dist/docs-site/img/logos/qtest.svg +1 -0
  78. package/dist/docs-site/img/logos/teams.svg +1 -0
  79. package/dist/docs-site/img/logos/testmu.svg +1 -0
  80. package/dist/docs-site/img/logos/testrail.svg +1 -0
  81. package/dist/docs-site/img/logos/vllm.svg +1 -0
  82. package/dist/docs-site/img/logos/windows.svg +1 -0
  83. package/dist/docs-site/img/logos/wiremock.png +0 -0
  84. package/dist/docs-site/img/logos/xray.svg +1 -0
  85. package/dist/docs-site/img/logos/zephyr.png +0 -0
  86. package/dist/docs-site/img/wordmark-white.webp +0 -0
  87. package/dist/docs-site/site-header.css +29 -0
  88. package/dist/forgeqe.js +1010 -1048
  89. package/dist/template.html +4 -4
  90. package/dist/web/assets/ApiTests-CNUbGOAY.js +2 -0
  91. package/dist/web/assets/Chat-DU2a1lg2.js +3 -0
  92. package/dist/web/assets/{Data-BB-IahMh.js → Data-BMmaUggv.js} +4 -4
  93. package/dist/web/assets/Features-Ciy-CcIJ.js +1 -0
  94. package/dist/web/assets/Jobs-D6siJpbm.js +3 -0
  95. package/dist/web/assets/Quality-BrEGVxJH.js +1 -0
  96. package/dist/web/assets/Record-DrlDedsV.js +1 -0
  97. package/dist/web/assets/Regression-DpRx7yLr.js +2 -0
  98. package/dist/web/assets/Reports-BE4Jg3Pa.js +2 -0
  99. package/dist/web/assets/Response-pcvzCf4S.js +8 -0
  100. package/dist/web/assets/Runs-DemSYbtq.js +2 -0
  101. package/dist/web/assets/{circle-dashed-BzDi4lOK.js → circle-dashed-CEZcCi0T.js} +1 -1
  102. package/dist/web/assets/{external-link-7UCuXRch.js → external-link-NCKfigiH.js} +1 -1
  103. package/dist/web/assets/{file-chart-column-increasing-lJjSX1iR.js → file-chart-column-increasing-tV7y_ABu.js} +1 -1
  104. package/dist/web/assets/frame-Dq1wC8eF.js +3 -0
  105. package/dist/web/assets/index-C_8DS1Wt.js +26 -0
  106. package/dist/web/assets/index-E1pAbXe5.css +2 -0
  107. package/dist/web/assets/{markdown-DCFfynVM.js → markdown-BmsRBxB-.js} +8 -8
  108. package/dist/web/assets/{sticky-note-CJn6JUwD.js → sticky-note-CinvvKBc.js} +1 -1
  109. package/dist/web/assets/{terminal-CcBS6Zf0.js → terminal-EkGTrfG9.js} +1 -1
  110. package/dist/web/assets/{trending-up-GGhSrbVh.js → trending-up-BLA071mC.js} +1 -1
  111. package/dist/web/index.html +3 -3
  112. package/docs/WEB_APP.md +16 -2
  113. package/docs/user-guide.html +27 -6
  114. package/docs/walkthrough/hotfix-narration.md +752 -0
  115. package/docs/walkthrough/index.html +238 -39
  116. package/forgeqe.example.yaml +12 -0
  117. package/package.json +2 -1
  118. package/prompts/brain.md +1 -0
  119. package/py/forgeqe_mobile/hyperexecute.py +1 -0
  120. package/dist/web/assets/ApiTests-CcCxkGF_.js +0 -2
  121. package/dist/web/assets/Chat-LTwJQfTv.js +0 -3
  122. package/dist/web/assets/Features-DtoKlY0g.js +0 -1
  123. package/dist/web/assets/Jobs-D6faC6C7.js +0 -3
  124. package/dist/web/assets/Quality-CuUpXKAD.js +0 -1
  125. package/dist/web/assets/Record-DZMZbuhu.js +0 -1
  126. package/dist/web/assets/Regression-BbNaH9Pg.js +0 -2
  127. package/dist/web/assets/Reports-D3RuBF6R.js +0 -2
  128. package/dist/web/assets/Response-BEbHVFJ7.js +0 -8
  129. package/dist/web/assets/Runs-LK-9464Y.js +0 -2
  130. package/dist/web/assets/frame-DqlMk9Ke.js +0 -3
  131. package/dist/web/assets/index-BBV4dkvi.css +0 -2
  132. package/dist/web/assets/index-DKn6ThbU.js +0 -26
  133. package/dist/web/assets/rotate-ccw-oBSoDTXr.js +0 -1
  134. package/dist/web/assets/trash-BOoKIhsY.js +0 -1
@@ -0,0 +1,434 @@
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>Containers · 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/containers/">
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></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></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="index.html" aria-current="page"><img class="pix" src="../../img/icons/knowledge-base.svg" alt="" width="40" height="40"><span>Containers</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="../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/knowledge-base.svg" alt="" width="40" height="40">Containers</h1>
122
+ <article class="prose">
123
+ <p>Status: the tests run against a fake runtime on any OS. They check the commands ForgeQE builds, the checks on config,
124
+ compose files, mounts and secrets, the mock stubs, and tests in a container. <code>tests/containers.live.test.ts</code> runs on
125
+ real Docker (and is skipped without it):</p>
126
+ <ul>
127
+ <li>Postgres from forgeqe.yaml and from a compose file.</li>
128
+ <li>A WireMock mock that answers a recorded run's calls.</li>
129
+ <li>A tests container that reaches the database by name and writes its results into the repository as this machine's
130
+ user.</li>
131
+ </ul>
132
+ <p>The <code>containers</code> job of <code>.github/workflows/ci.yml</code> runs both on GitHub's Docker. There, a skipped live test fails the job.</p>
133
+ <p>ForgeQE uses Docker or Podman, when one is installed, for five jobs:</p>
134
+ <ul>
135
+ <li><strong>Services a test run needs:</strong> a database, a queue, a cache, or the API under test. The project declares them in
136
+ forgeqe.yaml, or in a docker-compose file that forgeqe.yaml names.</li>
137
+ <li><strong>Mocks of an API:</strong> WireMock stubs made from the calls a browser run recorded, or from an OpenAPI description, so
138
+ the tests can run without the real service.</li>
139
+ <li><strong>The repository's tests in a container:</strong> <code>run_tests</code> runs the command the user confirmed in an image, instead of
140
+ on this machine, after starting the services the tests need.</li>
141
+ <li><strong>A workspace for the coding agents:</strong> with <code>containers.workspace</code>, Scribe's shell commands (build, restore, run,
142
+ git) and every test ForgeQE runs for it go to a container of the project's image. The agents stay on this machine.</li>
143
+ <li><strong>A browser in a container:</strong> with <code>browser.provider: docker</code>, the browser agent, the replay and Scribe's live
144
+ browser drive Chromium in a container of Microsoft's Playwright image.</li>
145
+ </ul>
146
+ <p>Scribe also has a <code>testcontainers</code> skill, for tests that start their own services from code (below).</p>
147
+ <p>ForgeQE's agent uses them through two tools, <code>services</code> and <code>mock_service</code>. The CLI has <code>forgeqe services</code>. When
148
+ neither Docker nor Podman is on PATH, the agent isn't offered these tools.</p>
149
+ <h2 id="use"><a href="#use" class="hash">#</a>Use</h2>
150
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe services # the declared services, what runs, whether the runtime answers
151
+ forgeqe services up # start every declared service and wait until each is ready
152
+ forgeqe services up db queue # just these
153
+ forgeqe services logs db --lines 50 # last lines, secrets removed
154
+ forgeqe services down # stop and remove this project's containers (mocks included)
155
+ </code></pre></div>
156
+ <p>In the shell or <code>forgeqe run</code>, you can ask, for example:</p>
157
+ <ul>
158
+ <li>&quot;start the database&quot;</li>
159
+ <li>&quot;is the queue up?&quot;</li>
160
+ <li>&quot;mock the payments API from the last run&quot;</li>
161
+ <li>&quot;make a mock service from openapi.yaml and point order-api at it&quot;</li>
162
+ <li>&quot;stop the services&quot;</li>
163
+ </ul>
164
+ <p>The agent asks before it starts anything.</p>
165
+ <h2 id="declaring-services"><a href="#declaring-services" class="hash">#</a>Declaring services</h2>
166
+ <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># forgeqe.yaml
167
+ containers:
168
+ runtime: docker # docker | podman; default: docker, else podman, on PATH
169
+ services:
170
+ db:
171
+ description: Orders database for the API tests
172
+ image: postgres:16.4 # an exact version, or name@sha256:&amp;lt;digest&gt;
173
+ ports: [5432] # 127.0.0.1:5432 -&gt; 5432; &quot;15432:5432&quot; maps another port of this machine
174
+ env: # plain values only
175
+ POSTGRES_DB: shop
176
+ POSTGRES_USER: shop
177
+ secrets: [POSTGRES_PASSWORD] # environment variable names; their values come from the environment or .env
178
+ volumes:
179
+ - ./db/init:/docker-entrypoint-initdb.d # read-only; a folder or file inside the project
180
+ command: [&quot;-c&quot;, &quot;log_statement=all&quot;] # arguments for the image's entrypoint
181
+ ready: { tcp: 5432 } # or { http: /health, port: 8080 }; without it: the container runs
182
+ timeout: 90 # seconds to wait until ready (default 60)
183
+ queue:
184
+ image: rabbitmq:3.13.7-management
185
+ ports: [5672, 15672]
186
+ ready: { http: /, port: 15672 }
187
+ mock:
188
+ image: wiremock/wiremock:3.9.1 # the default
189
+ </code></pre></div>
190
+ <div class="tbl"><table>
191
+ <thead>
192
+ <tr><th>Setting</th><th>Rule</th></tr>
193
+ </thead>
194
+ <tbody>
195
+ <tr><td>Service name</td><td>Lower-case letters, digits and <code>-</code>, starting with a letter. Names starting with <code>mock-</code> are kept for mocks.</td></tr>
196
+ <tr><td><code>image</code></td><td>Must have an exact tag or a digest. An untagged image or <code>latest</code> is refused, because it changes under the same name.</td></tr>
197
+ <tr><td><code>ports</code></td><td>Always bound to 127.0.0.1. An address such as <code>0.0.0.0:5432:5432</code> is refused.</td></tr>
198
+ <tr><td><code>env</code></td><td>Plain values on one line. Secrets go under <code>secrets</code>.</td></tr>
199
+ <tr><td><code>secrets</code></td><td>Variable names. They are passed to the runtime by name (<code>--env NAME</code>), so the value is never on a command line. One of ForgeQE's own keys (a model key, a tracker token) is refused.</td></tr>
200
+ <tr><td><code>volumes</code></td><td>Always read-only. Must be inside the folder of forgeqe.yaml, and can't be the whole folder.</td></tr>
201
+ <tr><td><code>command</code></td><td>A list of arguments, never one command string.</td></tr>
202
+ <tr><td><code>depends_on</code></td><td>Services to start first.</td></tr>
203
+ <tr><td>Anything else</td><td>Refused with an error, not ignored. That includes <code>privileged</code>, <code>network</code>, <code>cap_add</code>, <code>devices</code>, <code>user</code>, <code>pid</code> and the socket.</td></tr>
204
+ </tbody>
205
+ </table></div>
206
+ <p>Every service, whether from forgeqe.yaml or a compose file, can list <code>depends_on</code>. <code>up</code> starts a service after the
207
+ ones it depends on; a circle is refused.</p>
208
+ <h2 id="compose-files"><a href="#compose-files" class="hash">#</a>Compose files</h2>
209
+ <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>containers:
210
+ compose: docker-compose.yml # or a list; inside the project
211
+ </code></pre></div>
212
+ <p>ForgeQE reads each service of the file and translates it into a forgeqe.yaml service. The same rules then check it,
213
+ and a service declared in forgeqe.yaml wins over the compose file's service of the same name. Compose itself never
214
+ runs.</p>
215
+ <div class="tbl"><table>
216
+ <thead>
217
+ <tr><th>Compose</th><th>ForgeQE</th></tr>
218
+ </thead>
219
+ <tbody>
220
+ <tr><td><code>image</code></td><td>Required; an exact version or a digest. <code>build</code> is refused: build and tag the image first.</td></tr>
221
+ <tr><td><code>ports</code></td><td><code>&quot;5432&quot;</code>, <code>&quot;15432:5432&quot;</code>, <code>&quot;127.0.0.1:15432:5432&quot;</code>, or the long form; always bound to 127.0.0.1. Any other address, and UDP, are refused.</td></tr>
222
+ <tr><td><code>environment</code></td><td>Plain values are passed as they are. <code>KEY: ${KEY}</code>, <code>KEY</code> alone in the list form, and <code>KEY: ${KEY:-default}</code> pass the variable by name as a secret. <code>${OTHER}</code> under another name, and values that mix text and <code>${…}</code>, are refused.</td></tr>
223
+ <tr><td><code>volumes</code></td><td>Bind mounts (<code>./db/init:/docker-entrypoint-initdb.d</code>) are mounted read-only, and <code>:rw</code> is noted. Named and anonymous volumes are left out, so the container keeps no data between runs. A path outside the project is refused when the service starts.</td></tr>
224
+ <tr><td><code>command</code></td><td>A list, or a string split into arguments (compose uses no shell, and neither does ForgeQE).</td></tr>
225
+ <tr><td><code>depends_on</code></td><td>List or map form: the start order. <code>condition</code> is not used; ForgeQE waits until each service is ready.</td></tr>
226
+ <tr><td><code>x-forgeqe</code></td><td><code>ready</code>, <code>timeout</code>, <code>description</code>, as in forgeqe.yaml. Without <code>ready</code>, a service with ports is ready when its first port takes connections.</td></tr>
227
+ <tr><td><code>container_name</code>, <code>restart</code>, <code>labels</code>, <code>healthcheck</code>, <code>networks</code>, <code>expose</code>, <code>deploy</code>, <code>profiles</code>, …</td><td>Ignored: ForgeQE names, labels and networks the containers itself.</td></tr>
228
+ <tr><td><code>privileged</code>, <code>network_mode</code>, <code>cap_add</code>, <code>devices</code>, <code>pid</code>, <code>ipc</code>, <code>user</code>, <code>security_opt</code>, <code>volumes_from</code>, <code>env_file</code>, <code>entrypoint</code>, <code>extends</code>, …</td><td>Refused, and the error names the setting.</td></tr>
229
+ </tbody>
230
+ </table></div>
231
+ <p>What was left out (a named volume, a mount made read-only) is listed in <code>notes</code>.</p>
232
+ <h2 id="the-project-network"><a href="#the-project-network" class="hash">#</a>The project network</h2>
233
+ <p>Each project's containers join their own network, <code>forgeqe-&amp;lt;project&gt;</code>, under their service name. So the API container
234
+ reaches the database as <code>db:5432</code>, and the tests container reaches both. No other container joins the network, and no
235
+ container is on the host's network. <code>forgeqe services down</code> with no names also removes the network.</p>
236
+ <h2 id="tests-in-a-container"><a href="#tests-in-a-container" class="hash">#</a>Tests in a container</h2>
237
+ <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>containers:
238
+ tests:
239
+ image: mcr.microsoft.com/playwright:v1.48.2-jammy # an exact version; the tests' toolchain
240
+ services: [db, order-api] # started first (when not running yet); the tests reach them by name
241
+ env: { DB_HOST: db }
242
+ secrets: [TEST_DB_PASSWORD]
243
+ </code></pre></div>
244
+ <p>With <code>containers.tests</code> set, <code>run_tests</code> runs the tests in that image unless it is called with <code>in_container: false</code>.
245
+ Its confirmation says where the tests will run. The container:</p>
246
+ <ul>
247
+ <li><strong>Runs the command the user confirmed</strong> with the image's own shell, <code>sh -c &quot;&amp;lt;command&gt;&quot;</code>, inside the container,
248
+ never on this machine.</li>
249
+ <li><strong>Mounts the repository read-write at its own path</strong> and works in it, so results land where ForgeQE reads them.
250
+ On this machine, the tests already have the whole disk. A folder outside the repository that the results go to is
251
+ mounted the same way.</li>
252
+ <li><strong>Runs as this machine's user</strong> (<code>--user uid:gid</code>), so files it writes are yours. It also gets
253
+ <code>--security-opt no-new-privileges</code>, <code>--pids-limit 4096</code> and <code>--rm</code>, and it is removed by name when the run ends or is
254
+ stopped.</li>
255
+ <li><strong>Gets only these variables:</strong> <code>CI=1</code>, <code>NO_COLOR</code>, <code>HOME=/tmp</code>, the environment's <code>FORGEQE_ACTIVE_ENV</code>,
256
+ <code>FORGEQE_APP_*</code> and <code>FORGEQE_VAR_*</code>, the saved logins' variables, and <code>containers.tests</code> <code>env</code> and <code>secrets</code>.
257
+ Secrets are passed by name. ForgeQE's own keys are never passed.</li>
258
+ <li><strong>Has secret values removed from its output</strong>, as on this machine.</li>
259
+ </ul>
260
+ <p>This needs a Linux or macOS machine, because the repository is mounted at its own path.</p>
261
+ <h2 id="the-workspace"><a href="#the-workspace" class="hash">#</a>The workspace</h2>
262
+ <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>containers:
263
+ workspace:
264
+ image: mcr.microsoft.com/playwright/dotnet:v1.63.0-noble # an exact version; the project's toolchain
265
+ services: [db] # started first; reached by name
266
+ env: { NEXUS_ENVIRONMENT: CI, DOTNET_ROLL_FORWARD: Major }
267
+ secrets: [TEST_DB_PASSWORD] # by name; values from the environment or .env
268
+ </code></pre></div>
269
+ <p>With <code>containers.workspace</code> set:</p>
270
+ <ul>
271
+ <li><strong>Scribe's shell runs in the container.</strong> The agent runtime runs each command as <code>$SHELL -c &amp;lt;command&gt;</code>. ForgeQE
272
+ sets <code>SHELL</code> to a script that runs the same command with <code>docker exec … sh -c &amp;lt;command&gt;</code>, in the same folder,
273
+ in the workspace container. A folder outside the repository is refused, since the container has only the
274
+ repository. The agent is told its commands run in a Linux container of that image.</li>
275
+ <li><strong>Every test ForgeQE runs goes to the same image:</strong> the coding loop's runs, <code>heal</code>, <code>suite</code>'s existing tests and
276
+ <code>run_tests</code>. Each run gets its own container (<code>docker run --rm</code>), so stopping a run removes it. Browsers the test
277
+ starts are found with <code>docker top</code>, as ForgeQE finds them on this machine.</li>
278
+ <li><strong>What stays on this machine:</strong> the agent runtime, the model key, ForgeQE's other secrets, the file tools (read,
279
+ edit, write; the repository is the same folder in both places), and ForgeQE's own agent, which works with you
280
+ on this machine and keeps its shell here. <code>FORGEQE_HOST_RUN=1</code> runs everything on this machine for a session.</li>
281
+ <li><strong>The container:</strong>
282
+ <ul>
283
+ <li>one per ForgeQE process and project, <code>forgeqe-&amp;lt;project&gt;-workspace-&amp;lt;id&gt;</code>, removed when ForgeQE ends;</li>
284
+ <li>the repository mounted read-write at its own path; credential files in it (<code>.env</code>, <code>.env.*</code> except templates,
285
+ <code>.npmrc</code>, <code>.netrc</code>, <code>*.pem</code>, <code>*.key</code>, <code>id_*</code> keys) covered with an empty read-only file, and <code>.ssh</code>, <code>.aws</code>,
286
+ <code>.azure</code>, <code>.docker</code>, <code>.kube</code> and <code>.forgeqe/sessions</code> with an empty folder;</li>
287
+ <li><code>HOME</code> on the project's volume <code>forgeqe-&amp;lt;project&gt;-home</code>, so NuGet, npm and pip caches outlive the session. Docker
288
+ creates the volume for root, so ForgeQE runs <code>chown</code> in it once, with a fixed command;</li>
289
+ <li>this machine's user (<code>--user uid:gid</code>), <code>no-new-privileges</code>, <code>--pids-limit 4096</code>, the project network;</li>
290
+ <li>only <code>CI=1</code>, <code>HOME</code>, the <code>env</code> and <code>secrets</code> listed, and, in each command, the environment's <code>FORGEQE_APP_*</code> and
291
+ <code>FORGEQE_VAR_*</code> and the saved logins' variables, by name.</li>
292
+ </ul>
293
+ </li>
294
+ <li><strong><code>containers.tests</code></strong> still names the image <code>run_tests</code> uses when it is set. Without it, <code>run_tests</code> uses the
295
+ workspace's image.</li>
296
+ </ul>
297
+ <p>This needs a Linux or macOS machine, as tests in a container do.</p>
298
+ <h2 id="the-browser-in-a-container"><a href="#the-browser-in-a-container" class="hash">#</a>The browser in a container</h2>
299
+ <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>browser:
300
+ provider: docker # or per run: --browser-provider docker
301
+ containers:
302
+ browser: # optional
303
+ image: mcr.microsoft.com/playwright:v1.63.0-noble # default; needs Node.js and /ms-playwright
304
+ headless: false # default: browser.headless; a visible browser runs on a virtual display (Xvfb)
305
+ </code></pre></div>
306
+ <ul>
307
+ <li><strong>One container per use:</strong> each browser run (a suite runs <code>suite.parallel</code> at once) gets its own, and a coding job
308
+ gets one that its replay and live browser share. Each is removed when its run or job ends.</li>
309
+ <li><strong>Connection:</strong> Chromium listens on 127.0.0.1 inside the container. CDP has no authentication of its own, so a small
310
+ gateway in front of it (<code>BROWSER_SERVER</code> in <code>src/containers/browser.ts</code>, run with the image's Node.js) accepts a
311
+ connection only with a random 48-character token in its path, compared in constant time, and refuses a browser
312
+ <code>Origin</code> that is not local. The port is published on 127.0.0.1 only. The token reaches the engine, the replay and
313
+ the live browser's MCP server through the environment, never a file or a command line.</li>
314
+ <li><strong>Visible or headless:</strong> a visible browser runs on Xvfb inside the container. Sites that turn headless browsers
315
+ away see an ordinary one, but you do not see it on your screen. Runs keep screenshots and traces as usual.</li>
316
+ <li><strong>Reaching the app:</strong> the container joins the project network, so a declared service is reached by its name
317
+ (<code>http://order-api:8080</code>). An app this machine serves is <code>http://host.docker.internal:&amp;lt;port&gt;</code>; <code>localhost</code> is the
318
+ container itself, and ForgeQE warns when a run starts there.</li>
319
+ <li><strong>Replay:</strong> one pass, in a new browser context. The second pass (without Playwright's automation switches) needs a
320
+ launch, which a running browser does not have.</li>
321
+ <li>A run explored in a container is replayed in one even when the provider is changed back later (<code>run.json</code>).</li>
322
+ </ul>
323
+ <h2 id="testcontainers-scribe"><a href="#testcontainers-scribe" class="hash">#</a>Testcontainers (Scribe)</h2>
324
+ <p>When a test needs a real service, or the repository already uses Testcontainers (Java, .NET, Node, Python, Go), Scribe
325
+ loads the <code>testcontainers</code> skill. It reuses the repository's containers and fixtures, pins images, waits for
326
+ readiness, uses the mapped port, and sets the app's own configuration from it. It never uses privileged mode, the
327
+ host network, the Docker socket, or a <code>docker</code> command from a test. These containers belong to the tests in the
328
+ repository: the tests start and stop them, wherever they run.</p>
329
+ <h2 id="mocks"><a href="#mocks" class="hash">#</a>Mocks</h2>
330
+ <p><code>mock_service</code> builds WireMock stubs and runs WireMock on a free port of 127.0.0.1:</p>
331
+ <ul>
332
+ <li><strong>From a run</strong> (the default: the latest run, or <code>run_dir</code>):
333
+ <ul>
334
+ <li>One stub per method, path and query of the app's own API calls, answering with the last status, content type
335
+ and body the app got.</li>
336
+ <li>Other sites' calls are left out unless <code>third_party</code> is set.</li>
337
+ <li>Failed calls are left out.</li>
338
+ <li>Answers that were cut when recorded are listed under <code>skipped</code>.</li>
339
+ </ul>
340
+ </li>
341
+ <li><strong>From a description</strong> (<code>spec</code>: OpenAPI 3 or Swagger 2, a link or a file):
342
+ <ul>
343
+ <li>One stub per REST operation.</li>
344
+ <li>Each stub answers with the operation's first success status and a body from the schema's examples, or values
345
+ made from its types.</li>
346
+ <li>A path parameter (<code>/orders/{id}</code>) matches any one path segment.</li>
347
+ <li>Instead of a description, you can give a contract set from <code>api_contracts</code> (<code>set_id</code>).</li>
348
+ </ul>
349
+ </li>
350
+ <li><strong>GraphQL, SOAP and gRPC</strong> are listed under <code>skipped</code>, not mocked.</li>
351
+ </ul>
352
+ <p>A spec given as a link is fetched by ForgeQE itself, with no credentials, as <code>api_contracts</code> does. The stubs are written to <code>.forgeqe/mocks/&amp;lt;name&gt;/mappings/</code>. You can read and edit them there. The folder is mounted
353
+ read-only at <code>/home/wiremock/mappings</code>. WireMock runs with <code>--enable-stub-cors</code>, so a web app on another local port
354
+ can call it.</p>
355
+ <p>With <code>for_app: &amp;lt;api app&gt;</code>, the active environment's API app points at the mock for the rest of the session. That
356
+ covers the API tools, and the tests ForgeQE runs, which read <code>FORGEQE_APP_&amp;lt;APP&gt;_URL</code>. env.yaml itself is not
357
+ changed.</p>
358
+ <h2 id="lifetime"><a href="#lifetime" class="hash">#</a>Lifetime</h2>
359
+ <ul>
360
+ <li><strong>Services and mocks the agent starts</strong> are removed when the shell, <code>forgeqe run</code>, or <code>forgeqe mcp</code> ends, as are
361
+ the workspace and browser containers (<code>forgeqe.kind</code> <code>workspace</code> and <code>browser</code>). The home volume stays.</li>
362
+ <li><strong><code>forgeqe services up</code></strong> keeps its services running after the command ends, until <code>forgeqe services down</code>.</li>
363
+ <li><strong>Container names</strong> are <code>forgeqe-&amp;lt;project&gt;-&amp;lt;service&gt;</code>. <code>&amp;lt;project&gt;</code> is a hash of the project folder, so two projects
364
+ never share a container. Starting a service replaces its earlier container. Removing a container also removes the anonymous volumes its image declares (a database's data folder), so nothing is left on the machine. A container is never reused with old
365
+ settings.</li>
366
+ <li><strong>Labels:</strong> each container carries <code>forgeqe=1</code>, <code>forgeqe.project</code>, <code>forgeqe.service</code> and <code>forgeqe.kind</code>.
367
+ <code>down</code> and <code>status</code> look only at this project's containers.</li>
368
+ </ul>
369
+ <h2 id="security"><a href="#security" class="hash">#</a>Security</h2>
370
+ <p>ForgeQE's agent reads text other people control: tickets, web pages, repositories. A container command built from that
371
+ text could mount the whole disk or run privileged, so:</p>
372
+ <ul>
373
+ <li><strong>No commands from the model.</strong> The agent names services that forgeqe.yaml declares, and ForgeQE builds the
374
+ argument array (<code>docker run …</code>). It never uses a shell. Images, flags and mounts never come from a request.</li>
375
+ <li><strong>The same restrictions for every container:</strong> <code>--security-opt no-new-privileges</code>, <code>--pids-limit 1024</code>, ports on
376
+ 127.0.0.1, and read-only mounts. There is no setting to turn these off.</li>
377
+ <li><strong>Mounts are checked like uploads</strong> (except a mock's stubs folder, which ForgeQE writes itself and mounts read-only). The path is resolved with <code>realpath</code> and must be inside the project. A mount
378
+ that is or holds a hidden file or folder (<code>.env</code>, <code>.git</code>, <code>.npmrc</code>), a file named like a key (<code>*.pem</code>, <code>id_rsa</code>,
379
+ <code>llms.json</code>) or a link is refused. A container can send what it reads anywhere.</li>
380
+ <li><strong>Environment:</strong>
381
+ <ul>
382
+ <li>The <code>docker</code> and <code>podman</code> programs see only the system settings and the variables they need to find their daemon
383
+ (<code>DOCKER_HOST</code>, <code>DOCKER_CONTEXT</code>, <code>CONTAINER_HOST</code>, …), plus the service's listed secrets.</li>
384
+ <li>A container gets only its <code>env</code> and <code>secrets</code>.</li>
385
+ <li>Logs and errors have secret values replaced with <code>***</code>.</li>
386
+ </ul>
387
+ </li>
388
+ <li><strong>Not in the agents' shell:</strong> <code>docker</code>, <code>podman</code>, <code>nerdctl</code>, <code>docker-compose</code> and <code>podman-compose</code> are denied in the
389
+ shell of ForgeQE's agent and of Scribe. So the only way to start a container is these tools.</li>
390
+ <li><strong>Asked first:</strong> <code>services up</code> and <code>mock_service</code> ask the user before starting, as <code>run_tests</code> does.</li>
391
+ </ul>
392
+ <h2 id="code"><a href="#code" class="hash">#</a>Code</h2>
393
+ <div class="tbl"><table>
394
+ <thead>
395
+ <tr><th>File</th><th>Contents</th></tr>
396
+ </thead>
397
+ <tbody>
398
+ <tr><td><code>src/containers/config.ts</code></td><td><code>containers:</code> in forgeqe.yaml: services, images, ports, env, secrets, mounts, ready checks</td></tr>
399
+ <tr><td><code>src/containers/run.ts</code></td><td>The runtime (docker or podman), <code>run</code> arguments, mount and secret checks, start and wait, status, logs, stop, the session's containers</td></tr>
400
+ <tr><td><code>src/containers/mock.ts</code></td><td>WireMock stubs from run traffic and from contract sets; values from JSON schemas</td></tr>
401
+ <tr><td><code>src/containers/compose.ts</code></td><td>docker-compose files as services: what is translated, ignored, left out or refused</td></tr>
402
+ <tr><td><code>src/containers/tests.ts</code></td><td><code>run_tests</code> in a container: arguments, environment, mounts, output, browsers from <code>docker top</code></td></tr>
403
+ <tr><td><code>src/containers/workspace.ts</code></td><td><code>containers.workspace</code>: the container, its home volume, the agent's shell script, its test runner</td></tr>
404
+ <tr><td><code>src/containers/active.ts</code></td><td>The registered workspaces, by repository: <code>runTestCommand</code> and <code>openSession</code> look them up</td></tr>
405
+ <tr><td><code>src/containers/masks.ts</code></td><td>The repository's credential files and folders, covered in every container that mounts it</td></tr>
406
+ <tr><td><code>src/containers/browser.ts</code></td><td><code>browser.provider: docker</code>: the browser container, its token gateway, the endpoint</td></tr>
407
+ <tr><td><code>src/containers/command.ts</code></td><td><code>forgeqe services</code></td></tr>
408
+ <tr><td><code>skills/testcontainers/SKILL.md</code></td><td>Scribe's Testcontainers skill</td></tr>
409
+ <tr><td><code>src/mcp/containertools.ts</code></td><td>The agent's <code>services</code> and <code>mock_service</code></td></tr>
410
+ </tbody>
411
+ </table></div>
412
+ <p>Tests: <code>bun test tests/containers.test.ts tests/workspace.test.ts</code>, which use a fake runtime that records each command
413
+ (<code>workspace.test.ts</code> also runs the gateway against a stand-in browser, and the agent runtime against the workspace's
414
+ script). <code>tests/containers.live.test.ts</code> uses real Docker.</p>
415
+
416
+ </article>
417
+ <nav class="pager" aria-label="Previous and next">
418
+ <a class="prev" href="../mobile/index.html"><small>Previous</small><span>Mobile apps</span></a>
419
+ <a class="next" href="../product-knowledge/index.html"><small>Next</small><span>Product knowledge</span></a>
420
+ </nav>
421
+ </main>
422
+ <aside class="docs-toc" aria-label="On this page">
423
+ <p class="side-head">On this page</p><ul><li><a href="#use">Use</a></li><li><a href="#declaring-services">Declaring services</a></li><li><a href="#compose-files">Compose files</a></li><li><a href="#the-project-network">The project network</a></li><li><a href="#tests-in-a-container">Tests in a container</a></li><li><a href="#the-workspace">The workspace</a></li><li><a href="#the-browser-in-a-container">The browser in a container</a></li><li><a href="#testcontainers-scribe">Testcontainers (Scribe)</a></li><li><a href="#mocks">Mocks</a></li><li><a href="#lifetime">Lifetime</a></li><li><a href="#security">Security</a></li><li><a href="#code">Code</a></li></ul>
424
+ </aside>
425
+ </div>
426
+ <footer class="foot">
427
+ <div class="container foot__row">
428
+ <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>
429
+ <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/sample-report/">Sample report</a></li></ul></nav>
430
+ </div>
431
+ <p class="container foot__legal">© 2026 Capgemini · forgeqe.qualityai.co.uk · Built from ForgeQE's own docs</p>
432
+ </footer>
433
+ </body>
434
+ </html>