agent-enderun 0.9.0 → 0.9.2

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 (341) hide show
  1. package/.enderun/BRAIN_DASHBOARD.md +2 -2
  2. package/.enderun/PROJECT_MEMORY.md +28 -4
  3. package/.enderun/STATUS.md +24 -28
  4. package/.enderun/agents/backend.md +37 -8
  5. package/.enderun/agents/database.md +55 -0
  6. package/.enderun/agents/devops.md +28 -14
  7. package/.enderun/agents/explorer.md +1 -1
  8. package/.enderun/agents/frontend.md +21 -7
  9. package/.enderun/agents/git.md +1 -1
  10. package/.enderun/agents/manager.md +41 -20
  11. package/.enderun/agents/mobile.md +1 -1
  12. package/.enderun/agents/native.md +1 -1
  13. package/.enderun/agents/quality.md +122 -0
  14. package/.enderun/cli-commands.json +3 -3
  15. package/.enderun/config.json +7 -1
  16. package/.enderun/knowledge/context_boundary_rules.md +57 -0
  17. package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md +29 -0
  18. package/.enderun/knowledge/documentation_ownership.md +53 -0
  19. package/.enderun/knowledge/frontend_professionalization_guidelines.md +7 -7
  20. package/.enderun/knowledge/hermes_live_test_guidelines.md +5 -5
  21. package/.enderun/knowledge/lessons-learned.md +14 -0
  22. package/.enderun/knowledge/manager_authority_audit_enforcement.md +8 -8
  23. package/.enderun/knowledge/project_scaffold_guidelines.md +4 -4
  24. package/.enderun/knowledge/reference_application_guidelines.md +6 -6
  25. package/.enderun/memory-graph/agent-contexts/quality.json +1 -0
  26. package/.enderun/queue/README.md +13 -13
  27. package/README.md +204 -102
  28. package/bin/cli.js +1 -1
  29. package/bin/init-check.js +69 -0
  30. package/bin/update-contract.js +24 -2
  31. package/docs/README.md +21 -32
  32. package/docs/architecture/README.md +9 -0
  33. package/docs/architecture/standards/data-fetching-patterns.md +13 -0
  34. package/docs/architecture/standards/design-system.md +31 -0
  35. package/docs/architecture/standards/logging.md +7 -0
  36. package/docs/architecture/standards/tech-stack.md +9 -0
  37. package/docs/getting-started.md +9 -259
  38. package/docs/user/README.md +35 -0
  39. package/docs/user/action-plan-2026.md +9 -0
  40. package/docs/user/getting-started.md +13 -0
  41. package/docs/user/roadmap.md +13 -0
  42. package/eslint.config.js +1 -1
  43. package/framework-mcp/dist/index.js +7 -13
  44. package/framework-mcp/node_modules/@types/node/LICENSE +21 -0
  45. package/framework-mcp/node_modules/@types/node/README.md +15 -0
  46. package/framework-mcp/node_modules/@types/node/assert/strict.d.ts +111 -0
  47. package/framework-mcp/node_modules/@types/node/assert.d.ts +1078 -0
  48. package/framework-mcp/node_modules/@types/node/async_hooks.d.ts +603 -0
  49. package/framework-mcp/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  50. package/framework-mcp/node_modules/@types/node/buffer.d.ts +1934 -0
  51. package/framework-mcp/node_modules/@types/node/child_process.d.ts +1476 -0
  52. package/framework-mcp/node_modules/@types/node/cluster.d.ts +578 -0
  53. package/framework-mcp/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  54. package/framework-mcp/node_modules/@types/node/compatibility/index.d.ts +9 -0
  55. package/framework-mcp/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  56. package/framework-mcp/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  57. package/framework-mcp/node_modules/@types/node/console.d.ts +452 -0
  58. package/framework-mcp/node_modules/@types/node/constants.d.ts +21 -0
  59. package/framework-mcp/node_modules/@types/node/crypto.d.ts +4545 -0
  60. package/framework-mcp/node_modules/@types/node/dgram.d.ts +600 -0
  61. package/framework-mcp/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  62. package/framework-mcp/node_modules/@types/node/dns/promises.d.ts +503 -0
  63. package/framework-mcp/node_modules/@types/node/dns.d.ts +923 -0
  64. package/framework-mcp/node_modules/@types/node/domain.d.ts +170 -0
  65. package/framework-mcp/node_modules/@types/node/events.d.ts +976 -0
  66. package/framework-mcp/node_modules/@types/node/fs/promises.d.ts +1295 -0
  67. package/framework-mcp/node_modules/@types/node/fs.d.ts +4461 -0
  68. package/framework-mcp/node_modules/@types/node/globals.d.ts +172 -0
  69. package/framework-mcp/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  70. package/framework-mcp/node_modules/@types/node/http.d.ts +2089 -0
  71. package/framework-mcp/node_modules/@types/node/http2.d.ts +2721 -0
  72. package/framework-mcp/node_modules/@types/node/https.d.ts +579 -0
  73. package/framework-mcp/node_modules/@types/node/index.d.ts +97 -0
  74. package/framework-mcp/node_modules/@types/node/inspector.d.ts +253 -0
  75. package/framework-mcp/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  76. package/framework-mcp/node_modules/@types/node/module.d.ts +891 -0
  77. package/framework-mcp/node_modules/@types/node/net.d.ts +1076 -0
  78. package/framework-mcp/node_modules/@types/node/os.d.ts +506 -0
  79. package/framework-mcp/node_modules/@types/node/package.json +145 -0
  80. package/framework-mcp/node_modules/@types/node/path.d.ts +200 -0
  81. package/framework-mcp/node_modules/@types/node/perf_hooks.d.ts +968 -0
  82. package/framework-mcp/node_modules/@types/node/process.d.ts +2084 -0
  83. package/framework-mcp/node_modules/@types/node/punycode.d.ts +117 -0
  84. package/framework-mcp/node_modules/@types/node/querystring.d.ts +152 -0
  85. package/framework-mcp/node_modules/@types/node/readline/promises.d.ts +161 -0
  86. package/framework-mcp/node_modules/@types/node/readline.d.ts +594 -0
  87. package/framework-mcp/node_modules/@types/node/repl.d.ts +428 -0
  88. package/framework-mcp/node_modules/@types/node/sea.d.ts +153 -0
  89. package/framework-mcp/node_modules/@types/node/sqlite.d.ts +721 -0
  90. package/framework-mcp/node_modules/@types/node/stream/consumers.d.ts +38 -0
  91. package/framework-mcp/node_modules/@types/node/stream/promises.d.ts +90 -0
  92. package/framework-mcp/node_modules/@types/node/stream/web.d.ts +622 -0
  93. package/framework-mcp/node_modules/@types/node/stream.d.ts +1687 -0
  94. package/framework-mcp/node_modules/@types/node/string_decoder.d.ts +67 -0
  95. package/framework-mcp/node_modules/@types/node/test.d.ts +2163 -0
  96. package/framework-mcp/node_modules/@types/node/timers/promises.d.ts +108 -0
  97. package/framework-mcp/node_modules/@types/node/timers.d.ts +287 -0
  98. package/framework-mcp/node_modules/@types/node/tls.d.ts +1319 -0
  99. package/framework-mcp/node_modules/@types/node/trace_events.d.ts +197 -0
  100. package/framework-mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  101. package/framework-mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  102. package/framework-mcp/node_modules/@types/node/ts5.6/index.d.ts +97 -0
  103. package/framework-mcp/node_modules/@types/node/tty.d.ts +208 -0
  104. package/framework-mcp/node_modules/@types/node/url.d.ts +984 -0
  105. package/framework-mcp/node_modules/@types/node/util.d.ts +2606 -0
  106. package/framework-mcp/node_modules/@types/node/v8.d.ts +920 -0
  107. package/framework-mcp/node_modules/@types/node/vm.d.ts +1000 -0
  108. package/framework-mcp/node_modules/@types/node/wasi.d.ts +181 -0
  109. package/framework-mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  110. package/framework-mcp/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  111. package/framework-mcp/node_modules/@types/node/web-globals/events.d.ts +97 -0
  112. package/framework-mcp/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  113. package/framework-mcp/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  114. package/framework-mcp/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  115. package/framework-mcp/node_modules/@types/node/worker_threads.d.ts +784 -0
  116. package/framework-mcp/node_modules/@types/node/zlib.d.ts +747 -0
  117. package/framework-mcp/node_modules/typescript/LICENSE.txt +55 -0
  118. package/framework-mcp/node_modules/typescript/README.md +50 -0
  119. package/framework-mcp/node_modules/typescript/SECURITY.md +41 -0
  120. package/framework-mcp/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  121. package/framework-mcp/node_modules/typescript/bin/tsc +2 -0
  122. package/framework-mcp/node_modules/typescript/bin/tsserver +2 -0
  123. package/framework-mcp/node_modules/typescript/lib/_tsc.js +133818 -0
  124. package/framework-mcp/node_modules/typescript/lib/_tsserver.js +659 -0
  125. package/framework-mcp/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  126. package/framework-mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  127. package/framework-mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  128. package/framework-mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  129. package/framework-mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  130. package/framework-mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  131. package/framework-mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  132. package/framework-mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  133. package/framework-mcp/node_modules/typescript/lib/lib.d.ts +22 -0
  134. package/framework-mcp/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  135. package/framework-mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  136. package/framework-mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  137. package/framework-mcp/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  138. package/framework-mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  139. package/framework-mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  140. package/framework-mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  141. package/framework-mcp/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  142. package/framework-mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  143. package/framework-mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  144. package/framework-mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  145. package/framework-mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  146. package/framework-mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  147. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  148. package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  149. package/framework-mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  150. package/framework-mcp/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  151. package/framework-mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  152. package/framework-mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  153. package/framework-mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  154. package/framework-mcp/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  155. package/framework-mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  156. package/framework-mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  157. package/framework-mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  158. package/framework-mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  159. package/framework-mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  160. package/framework-mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  161. package/framework-mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  162. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  163. package/framework-mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  164. package/framework-mcp/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  165. package/framework-mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  166. package/framework-mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  167. package/framework-mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  168. package/framework-mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  169. package/framework-mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  170. package/framework-mcp/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  171. package/framework-mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  172. package/framework-mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  173. package/framework-mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  174. package/framework-mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  175. package/framework-mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  176. package/framework-mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  177. package/framework-mcp/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  178. package/framework-mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  179. package/framework-mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  180. package/framework-mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  181. package/framework-mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  182. package/framework-mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  183. package/framework-mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  184. package/framework-mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  185. package/framework-mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  186. package/framework-mcp/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  187. package/framework-mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  188. package/framework-mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  189. package/framework-mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  190. package/framework-mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  191. package/framework-mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  192. package/framework-mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  193. package/framework-mcp/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  194. package/framework-mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  195. package/framework-mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  196. package/framework-mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  197. package/framework-mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  198. package/framework-mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  199. package/framework-mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  200. package/framework-mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  201. package/framework-mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  202. package/framework-mcp/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  203. package/framework-mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  204. package/framework-mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  205. package/framework-mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  206. package/framework-mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  207. package/framework-mcp/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  208. package/framework-mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  209. package/framework-mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  210. package/framework-mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  211. package/framework-mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  212. package/framework-mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  213. package/framework-mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  214. package/framework-mcp/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  215. package/framework-mcp/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  216. package/framework-mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  217. package/framework-mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  218. package/framework-mcp/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  219. package/framework-mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  220. package/framework-mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  221. package/framework-mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  222. package/framework-mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
  223. package/framework-mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  224. package/framework-mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  225. package/framework-mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  226. package/framework-mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  227. package/framework-mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  228. package/framework-mcp/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  229. package/framework-mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  230. package/framework-mcp/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  231. package/framework-mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  232. package/framework-mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  233. package/framework-mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  234. package/framework-mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  235. package/framework-mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  236. package/framework-mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  237. package/framework-mcp/node_modules/typescript/lib/tsc.js +8 -0
  238. package/framework-mcp/node_modules/typescript/lib/tsserver.js +8 -0
  239. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  240. package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  241. package/framework-mcp/node_modules/typescript/lib/typesMap.json +497 -0
  242. package/framework-mcp/node_modules/typescript/lib/typescript.d.ts +11437 -0
  243. package/framework-mcp/node_modules/typescript/lib/typescript.js +200276 -0
  244. package/framework-mcp/node_modules/typescript/lib/typingsInstaller.js +8 -0
  245. package/framework-mcp/node_modules/typescript/lib/watchGuard.js +53 -0
  246. package/framework-mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  247. package/framework-mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  248. package/framework-mcp/node_modules/typescript/package.json +120 -0
  249. package/framework-mcp/node_modules/undici-types/LICENSE +21 -0
  250. package/framework-mcp/node_modules/undici-types/README.md +6 -0
  251. package/framework-mcp/node_modules/undici-types/agent.d.ts +31 -0
  252. package/framework-mcp/node_modules/undici-types/api.d.ts +43 -0
  253. package/framework-mcp/node_modules/undici-types/balanced-pool.d.ts +29 -0
  254. package/framework-mcp/node_modules/undici-types/cache.d.ts +36 -0
  255. package/framework-mcp/node_modules/undici-types/client.d.ts +108 -0
  256. package/framework-mcp/node_modules/undici-types/connector.d.ts +34 -0
  257. package/framework-mcp/node_modules/undici-types/content-type.d.ts +21 -0
  258. package/framework-mcp/node_modules/undici-types/cookies.d.ts +28 -0
  259. package/framework-mcp/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  260. package/framework-mcp/node_modules/undici-types/dispatcher.d.ts +256 -0
  261. package/framework-mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  262. package/framework-mcp/node_modules/undici-types/errors.d.ts +149 -0
  263. package/framework-mcp/node_modules/undici-types/eventsource.d.ts +61 -0
  264. package/framework-mcp/node_modules/undici-types/fetch.d.ts +209 -0
  265. package/framework-mcp/node_modules/undici-types/file.d.ts +39 -0
  266. package/framework-mcp/node_modules/undici-types/filereader.d.ts +54 -0
  267. package/framework-mcp/node_modules/undici-types/formdata.d.ts +108 -0
  268. package/framework-mcp/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  269. package/framework-mcp/node_modules/undici-types/global-origin.d.ts +7 -0
  270. package/framework-mcp/node_modules/undici-types/handlers.d.ts +15 -0
  271. package/framework-mcp/node_modules/undici-types/header.d.ts +4 -0
  272. package/framework-mcp/node_modules/undici-types/index.d.ts +71 -0
  273. package/framework-mcp/node_modules/undici-types/interceptors.d.ts +17 -0
  274. package/framework-mcp/node_modules/undici-types/mock-agent.d.ts +50 -0
  275. package/framework-mcp/node_modules/undici-types/mock-client.d.ts +25 -0
  276. package/framework-mcp/node_modules/undici-types/mock-errors.d.ts +12 -0
  277. package/framework-mcp/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  278. package/framework-mcp/node_modules/undici-types/mock-pool.d.ts +25 -0
  279. package/framework-mcp/node_modules/undici-types/package.json +55 -0
  280. package/framework-mcp/node_modules/undici-types/patch.d.ts +33 -0
  281. package/framework-mcp/node_modules/undici-types/pool-stats.d.ts +19 -0
  282. package/framework-mcp/node_modules/undici-types/pool.d.ts +39 -0
  283. package/framework-mcp/node_modules/undici-types/proxy-agent.d.ts +28 -0
  284. package/framework-mcp/node_modules/undici-types/readable.d.ts +65 -0
  285. package/framework-mcp/node_modules/undici-types/retry-agent.d.ts +8 -0
  286. package/framework-mcp/node_modules/undici-types/retry-handler.d.ts +116 -0
  287. package/framework-mcp/node_modules/undici-types/util.d.ts +18 -0
  288. package/framework-mcp/node_modules/undici-types/webidl.d.ts +228 -0
  289. package/framework-mcp/node_modules/undici-types/websocket.d.ts +150 -0
  290. package/framework-mcp/src/declarations.d.ts +3 -0
  291. package/framework-mcp/src/index.ts +228 -0
  292. package/package.json +4 -3
  293. package/src/cli/adapters.ts +208 -0
  294. package/src/cli/commands/app.ts +38 -0
  295. package/src/cli/commands/check.ts +87 -0
  296. package/src/cli/commands/compliance.ts +55 -0
  297. package/src/cli/commands/contract.ts +45 -0
  298. package/src/cli/commands/explorer.ts +45 -0
  299. package/src/cli/commands/git.ts +39 -0
  300. package/src/cli/commands/init.ts +272 -0
  301. package/src/cli/commands/knowledge.ts +44 -0
  302. package/src/cli/commands/lint.ts +25 -0
  303. package/src/cli/commands/log.ts +37 -0
  304. package/src/cli/commands/memory.ts +78 -0
  305. package/src/cli/commands/orchestrate.ts +111 -0
  306. package/src/cli/commands/script.ts +20 -0
  307. package/src/cli/commands/security.ts +38 -0
  308. package/src/cli/commands/status.ts +59 -0
  309. package/src/cli/commands/trace.ts +46 -0
  310. package/src/cli/index.ts +107 -0
  311. package/src/cli/utils/app.ts +764 -0
  312. package/src/cli/utils/claude.ts +56 -0
  313. package/src/cli/utils/fs.ts +139 -0
  314. package/src/cli/utils/memory.ts +141 -0
  315. package/src/cli/utils/pkg.ts +215 -0
  316. package/src/cli/utils/string.ts +48 -0
  317. package/src/cli/utils/time.ts +27 -0
  318. package/.enderun/agents/analyst.md +0 -236
  319. package/.enderun/agents/orchestrator.md +0 -172
  320. package/.enderun/agents/qa.md +0 -121
  321. package/.enderun/agents/security.md +0 -202
  322. package/.enderun/knowledge/api_design_rules.md +0 -6
  323. package/.enderun/knowledge/branded_types_pattern.md +0 -8
  324. package/.enderun/knowledge/code_review_checklist.md +0 -7
  325. package/.enderun/knowledge/contract_versioning.md +0 -7
  326. package/.enderun/knowledge/database_migration.md +0 -6
  327. package/.enderun/knowledge/deployment_checklist.md +0 -7
  328. package/.enderun/knowledge/git_commit_strategy.md +0 -10
  329. package/.enderun/knowledge/monitoring_setup.md +0 -5
  330. package/.enderun/knowledge/performance_guidelines.md +0 -11
  331. package/.enderun/knowledge/repository_patterns.md +0 -9
  332. package/.enderun/knowledge/security_scanning.md +0 -6
  333. package/.enderun/knowledge/testing_standards.md +0 -7
  334. package/.enderun/knowledge/troubleshooting_guide.md +0 -5
  335. package/.enderun/memory-graph/agent-contexts/analyst.json +0 -1
  336. package/.enderun/memory-graph/agent-contexts/orchestrator.json +0 -1
  337. package/.enderun/memory-graph/agent-contexts/qa.json +0 -1
  338. package/.enderun/memory-graph/agent-contexts/security.json +0 -1
  339. package/docs/action-plan-2026.md +0 -119
  340. package/docs/roadmap.md +0 -142
  341. package/docs/tech-stack.md +0 -30
@@ -12,7 +12,7 @@ This dashboard provides a high-level overview of the Army's performance, quality
12
12
  | **Active Trace IDs** | 0 | 🟢 None |
13
13
  | **Agent Velocity** | — | — |
14
14
  | **Contract Integrity** | 100% | ✅ Valid |
15
- | **Army Size** | 12 agents | ✅ Complete |
15
+ | **Army Size** | 10 agents | ✅ Complete |
16
16
 
17
17
  ---
18
18
 
@@ -29,7 +29,7 @@ This dashboard provides a high-level overview of the Army's performance, quality
29
29
  - **Dependency Cycles**: 0 detected.
30
30
  - **Complexity Spikes**: 0 identified.
31
31
  - **Database Migrations**: N/A (framework core)
32
- - **Memory Graph**: ✅ Online (12 contexts + shared-facts)
32
+ - **Memory Graph**: ✅ Online (10 contexts + shared-facts)
33
33
  - **Task Queue**: ✅ Active (file-based, no external deps)
34
34
 
35
35
  ---
@@ -1,20 +1,44 @@
1
1
  ## CURRENT STATUS
2
2
 
3
- - Phase: PHASE_0 (Discovery & Setup)
4
- - Trace ID: 01HGT8J5E2N0W0W0W0W0W0W0W0
5
- - @manager state: IDLE - System Restored to Factory Settings.
3
+ - Phase: PHASE_1 (Architecture & Contracts)
4
+ - Trace ID: 01HGT8J5E2N0W0W0W0W0W0W0W4
5
+ - @manager state: ENTERPRISE_FULL_PROFILE_ACTIVE
6
6
 
7
7
  ## ACTIVE TASKS
8
8
 
9
9
  | Trace ID | Task | Agent | Priority | Status |
10
10
  | :--- | :--- | :--- | :--- | :--- |
11
+ | 01HGT8J5E2N0W0W0W0W0W0W0W4 | Define initial API contracts (Dashboard) | @backend | P0 | COMPLETED |
12
+ | 01HGT8J5E2N0W0W0W0W0W0W0W4 | Knowledge Base Rehabilitation & Governance Audit | @manager | P0 | COMPLETED |
13
+ | 01HGT8J5E2N0W0W0W0W0W0W0W4 | Transition to Dynamic Hermes Orchestration Loop | @manager | P0 | COMPLETED |
11
14
 
12
15
  ## CRITICAL DECISIONS
13
16
  - **Tech Stack:** Node.js/Fastify, React/Vite, PostgreSQL, Kysely.
14
17
  - **Surgical Standard:** replace_text/patch_file is mandatory for all edits.
15
18
  - **Contract First:** All developments must start with type definitions.
16
19
  - **Memory Standard:** Auto-pruning active (max 10 entries).
20
+ - **Sovereign Backend Structure:** Every backend service MUST maintain its own database logic (schema, migrations, seeds) within `src/database/` to ensure full isolation.
17
21
 
18
22
  ## HISTORY
19
23
  - **SYSTEM INITIALIZED:** Framework v0.9.0 promoted to stable release state.
20
- - **CLEAN SLATE:** All developmental logs, messages, and temporary histories purged for fresh start.
24
+ - **PHASE TRANSITION:** Moved to PHASE_1. Enterprise profile selected.
25
+ - **CONTRACT DEFINITION:** API contracts defined and hash updated.
26
+ - **AGENT ADDED:** Created @database agent for schema and seeding authority.
27
+ - **AGENT MERGE:** Governance (@manager) and Orchestration (@orchestrator) roles merged into unified @manager authority.
28
+ - **DESIGN MANDATE:** Formally adopted 'Mobile-First, Responsive' design discipline and created Design System documentation.
29
+ - **UI GOVERNANCE:** Banned native browser dialogues (`alert`/`confirm`) and mandated integrated `Toaster`/`Modal` components.
30
+ - **LOGGING GOVERNANCE:** Implemented structured logging, banned `console.log`, and mandated audit logging for state-mutating operations.
31
+ - **LEARNING ENGINE:** Implemented 'Lessons Learned Engine'. Agents analyze failures to create 'Prevention Rules' and verify them before every task.
32
+ - **GOVERNANCE UPDATE:** Adopted 'Strategic Consultation Mandate'. Agents must now propose at least two distinct strategic options for major implementations and await user direction.
33
+ - **LANGUAGE MANDATE:** Standardized all documentation, agent definitions, and system reports to English-Only.
34
+ - **GOVERNANCE UPDATE:** Adopted 'Self-Contained Sovereign Services' structure for all backend applications.
35
+ - **VERSION BUMP:** Framework version updated to v0.9.1.
36
+ - **KNOWLEDGE REHABILITATION:** Inlined 13 stub files into agent definitions and added missing `documentation_ownership.md` to establish strict documentation boundaries.
37
+ - **DYNAMIC ORCHESTRATION TRANSITION:** Removed static template code generators, implemented dynamic Hermes Orchestrator Loop, and resolved critical CLI ReferenceError import bugs.
38
+ - **DYNAMIC PATH RESOLUTION ALIGNMENT:** Eliminated all hardcoded framework and application directories, introducing configuration-driven dynamic path mapping via `paths` inside `config.json`.
39
+ - **COMPILER & TYPE SAFETY REMEDIATION:** Fixed type-safety signature mismatches in `fs.ts` and const reassignment issues in `log.ts`, ensuring perfect TypeScript compiler build verification with zero errors.
40
+ - **ESLINT RUNTIME ALIGNMENT:** Patched ESLint to completely ignore hidden framework files, preventing EPERM scan crashes under sandboxed runtime restrictions.
41
+ - **VERSION BUMP:** Framework version updated to v0.9.2.
42
+ - **PACKAGING BUG FIX:** Included entire `framework-mcp` folder inside npm packaging files configuration, resolving compiler input errors during downstream workspace installations.
43
+
44
+
@@ -1,5 +1,5 @@
1
- # 🏛️ AGENT ENDERUN — ORDU KOMUTA DASHBOARDI
2
- > v0.9.0 | State Machine Active | Memory Graph: Online
1
+ # 🏛️ AGENT ENDERUN — ARMY COMMAND DASHBOARD
2
+ > v0.9.2 | State Machine Active | Memory Graph: Online
3
3
 
4
4
  ---
5
5
 
@@ -7,13 +7,11 @@
7
7
 
8
8
  | Agent | State | CurrentTask | BlockedBy | HealthScore | LastAction |
9
9
  | :--- | :--- | :--- | :--- | :--- | :--- |
10
- | @manager | ACTIVE | Readiness Mühürleme | — | 10/10 | v0.9.0 Promotion |
11
- | @orchestrator | IDLE | — | — | 9.8/10 | Path Synchronization |
12
- | @analyst | IDLE | — | — | 9.6/10 | Contract Review |
10
+ | @manager | ACTIVE | Readiness Status | — | 10/10 | v0.9.1 Promotion |
11
+ | @quality | IDLE | — | — | 9.7/10 | Governance Audit |
12
+ | @database | IDLE | — | — | 9.5/10 | |
13
13
  | @backend | IDLE | — | — | 9.2/10 | — |
14
14
  | @frontend | IDLE | — | — | 9.0/10 | — |
15
- | @security | IDLE | — | — | 9.3/10 | — |
16
- | @qa | IDLE | — | — | 9.1/10 | — |
17
15
  | @devops | IDLE | — | — | 9.0/10 | — |
18
16
  | @explorer | IDLE | — | — | 9.4/10 | — |
19
17
  | @git | IDLE | — | — | 9.1/10 | — |
@@ -24,33 +22,31 @@
24
22
 
25
23
  ## 📈 Intelligence Metrics
26
24
 
27
- | Metrik | Değer |
25
+ | Metric | Value |
28
26
  | :--- | :--- |
29
- | **Framework Versiyonu** | v0.8.8 |
30
- | **Sistem Sağlığı** | 🟢 GREEN |
31
- | **Büyük Yönetişim Denetimi** | TAMAMLANDI |
32
- | **Aktif Görevler** | 1 |
33
- | **Blokaj Sayısı** | 0 |
34
- | **Aktif Agent Sayısı** | 12 |
35
- | **Kuyruk Boyutu** | 0 |
27
+ | **Framework Version** | v0.9.2 |
28
+ | **System Health** | 🟢 GREEN |
29
+ | **Major Governance Audit** | COMPLETED |
30
+ | **Active Tasks** | 1 |
31
+ | **Number of Blockers** | 0 |
32
+ | **Active Agent Count** | 10 |
33
+ | **Queue Size** | 0 |
36
34
 
37
35
  ---
38
36
 
39
37
  ## 🔗 Hermes Channel Map
40
38
 
41
39
  ```
42
- @manager → @backend, @frontend, @analyst, @explorer, @git, @orchestrator
43
- @orchestrator * (tüm agentlar)
44
- @security → @manager, @backend, @git
45
- @qa → @manager, @backend, @frontend
46
- @devops → @manager, @git, @security
47
- @backend → @manager, @analyst
48
- @frontend → @manager
49
- @analyst → @manager
50
- @git → @manager
51
- @explorer → @manager
52
- @mobile → @manager
53
- @native → @manager
40
+ @manager → @backend, @frontend, @explorer, @git, @database, @devops, @quality, @mobile, @native
41
+ @quality @manager, @backend, @frontend, @git, @devops
42
+ @devops → @manager, @git, @quality
43
+ @backend → @manager, @quality
44
+ @frontend → @manager
45
+ @git → @manager
46
+ @explorer → @manager
47
+ @database → @manager
48
+ @mobile → @manager
49
+ @native → @manager
54
50
  ```
55
51
 
56
52
  ---
@@ -59,4 +55,4 @@
59
55
 
60
56
  `IDLE → BRIEFED → EXECUTING → DONE → IDLE`
61
57
 
62
- Detay: `.enderun/agents/schema/agent-lifecycle-schema.json`
58
+ Details: `.enderun/agents/schema/agent-lifecycle-schema.json`
@@ -14,8 +14,8 @@ description: "Domain Logic & Databases Specialist Agent for Agent Enderun"
14
14
  - `.enderun/knowledge/`
15
15
  - **Hermes Channels:**
16
16
  - `@backend->@manager`
17
- - `@backend->@analyst`
18
- - `@backend->@orchestrator`
17
+ - `@backend->@quality`
18
+ - `@backend->@manager`
19
19
  - **Tags:** specialist
20
20
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
21
21
 
@@ -24,7 +24,9 @@ description: "Domain Logic & Databases Specialist Agent for Agent Enderun"
24
24
  - Define and version all shared contracts and branded types before any consumer code is written.
25
25
  - All high-risk endpoints must carry isHighRiskAdminAction + managerApproval validation.
26
26
  - Use only branded ID types. No plain strings for identifiers.
27
- - Log every contract change and migration with Trace ID.
27
+ - **Logging Standard:** `console.log` usage is FORBIDDEN. Use the centralized `Logger` service (`apps/backend/src/services/logger.ts`) for all logging.
28
+ - **Audit Logging:** Every state-mutating operation (POST, PUT, PATCH, DELETE) MUST trigger an `AuditService.log()` call, linking the action to the responsible agent, Trace ID, and entity ID.
29
+ - **Lesson Check (Mandatory):** Before initiating any task, check `.enderun/knowledge/lessons-learned.md`. If a previous failure matches current scope/context, strictly enforce the 'Prevention Rule'. Ignoring this is a Critical Rule Violation.
28
30
 
29
31
  ---
30
32
 
@@ -95,13 +97,16 @@ export class NotFoundError extends DomainError {
95
97
  **Rule:** Never use `throw new Error()`. Always use one of the DomainError subclasses.
96
98
 
97
99
  ### 2. Branded Types (Mandatory)
98
- All IDs must be branded types:
100
+ All IDs must be branded types to ensure complete type safety and prevent runtime errors.
101
+ Example:
99
102
  ```ts
100
103
  export type UserID = string & { __brand: 'UserID' };
101
104
  export type OrderID = string & { __brand: 'OrderID' };
105
+ // Alternative Brand utility
106
+ export type Brand<T, B> = T & { __brand: B };
107
+ export type ProjectID = Brand<string, 'ProjectID'>;
102
108
  ```
103
-
104
- Using plain `string` or `number` IDs is forbidden.
109
+ Using plain `string` or `number` IDs is strictly forbidden where a specific ID is expected.
105
110
 
106
111
  ### 3. Types Structure (Standard)
107
112
  The `apps/backend/src/types/` directory must be organized as follows:
@@ -123,10 +128,29 @@ All routes must use a global error handler. Errors must be returned in the stand
123
128
  }
124
129
  ```
125
130
 
126
- ### 5. Gold Standard Enforcement
131
+ ### 5. API Design Rules
132
+ 1. **Versioned Routes**: All APIs must start with `/api/v1/`.
133
+ 2. **Kebab-Case**: Use kebab-case for URL paths.
134
+ 3. **Standard Responses**: Always wrap data in `{ data, traceId, timestamp }`.
135
+ 4. **Method Discipline**: GET (read), POST (create), PUT (update), DELETE (remove).
136
+
137
+ ### 6. Repository Pattern Standards
138
+ - **Purpose**: Decouple the data access logic from the business logic. This ensures that changes in the database schema or ORM do not break the entire application.
139
+ - **Principles**:
140
+ 1. **Abstraction**: Use interfaces to define the repository contract.
141
+ 2. **Implementation**: Use Kysely or preferred ORM for actual DB calls.
142
+ 3. **Single Responsibility**: One repository per domain entity.
143
+
144
+ ### 7. Contract Versioning Workflow
145
+ 1. **Change**: Modify types in `apps/backend/src/types`.
146
+ 2. **Hash**: Generate new SHA-256 hash using the `update_contract_hash` tool.
147
+ 3. **Sync**: Update `apps/backend/contract.version.json`.
148
+ 4. **Audit**: @analyst verifies the sync status via the `verify_api_contract` tool.
149
+
150
+ ### 8. Gold Standard Enforcement
127
151
  - The DomainError hierarchy above is mandatory for error handling.
128
152
  - Branded Types + the structure above is mandatory for types.
129
- - The standard error-handler middleware pattern must be used.
153
+ - The standard error-handler middleware pattern, API Design Rules, Repository Patterns, and Contract Versioning are mandatory.
130
154
  - When a new high-quality pattern is developed, it is added to this agent's knowledge and becomes the project standard.
131
155
 
132
156
  ---
@@ -335,6 +359,11 @@ When app types or API documentation changes:
335
359
  | Hardcoded secrets | `.env` hierarchy is mandatory |
336
360
  | Returning error with 200 OK | Real HTTP status (4xx, 5xx) is mandatory |
337
361
 
362
+ ## 📚 Knowledge References
363
+
364
+ All backend development must be aligned with the following internal standards:
365
+ - [Async Error Handling & Resilience Pattern](file:///Users/ybekar/Desktop/Projeler/agent-enderun/.enderun/knowledge/async_error_handling.md) — Asynchronous error management, retry strategies, and central logging guidelines.
366
+
338
367
  ---
339
368
 
340
369
  **Agent Completion Report**
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: database
3
+ description: "Database Architecture, Performance Tuning & Seeding Authority"
4
+ ---
5
+
6
+ # @database — Database Architecture & Multi-Engine Authority
7
+
8
+ - **Role:** Database Architecture & Multi-Engine Authority
9
+ - **Specialization:**
10
+ - **Engines:** PostgreSQL, MySQL, MariaDB
11
+ - **Optimization:** Deep engine-specific performance tuning (my.cnf/postgresql.conf), advanced indexing (BRIN, GIN, B-Tree), query optimization, and execution plan analysis.
12
+ - **Tooling:** Kysely, Migration management, Seeding.
13
+ - **Autonomous Powers:**
14
+ 1. **Architecture & Tuning:** Define engine-specific configurations and optimization strategies for high-performance workloads.
15
+ 2. **Schema & Migration:** Maintain engine-agnostic (via Kysely) and engine-specific schemas.
16
+ 3. **Performance Audit:** Analyze `EXPLAIN ANALYZE` reports and provide tuning recommendations.
17
+ 4. **Seeding:** Production-quality, contract-aware data generation.
18
+ - **Permitted Directories:**
19
+ - `apps/*/src/database/`
20
+ - `apps/*/src/database/migrations/`
21
+ - `apps/*/src/database/seeds/`
22
+ - `docs/database/`
23
+ - **Tags:** data, core, backend, performance
24
+
25
+ ## Core Rules
26
+ - **Self-Contained Database Protocol:** Every backend application MUST manage its own database schema, migrations, and seeds within its own `src/database/` directory. No cross-service database access or shared migration/seed folders.
27
+ - **Contract-First:** All schemas MUST be derived from branded types.
28
+ - **Performance-First Tuning:** All engine configurations must be documented with rationale based on projected workloads (Read-Heavy vs. Write-Heavy).
29
+ - **Kysely Standard:** Use Kysely for application-level queries. For engine-specific tuning, provide clearly commented configuration files.
30
+ - **Zero Mock Policy:** Realistic, contract-aware seed data.
31
+ - **Audit Logging:** Log every configuration change and tuning action to `.enderun/logs/database.json`.
32
+
33
+ ---
34
+
35
+ ## Briefing Template
36
+ ```
37
+ ## Agent Directive
38
+ **Trace ID:** [ULID]
39
+ **Priority:** [P0 | P1 | P2 | P3]
40
+ **Task:** [Schema Definition / Performance Tuning / Migration / Seeding]
41
+ **Engine:** [PostgreSQL | MySQL | MariaDB]
42
+ **Continuity:** Follow existing engine-specific patterns in apps/backend.
43
+ **Success Criteria:** Schema matches types, performance targets met, configurations documented.
44
+ ```
45
+
46
+ ---
47
+
48
+ ## 🏗️ Database Migration Standards (Mandatory)
49
+
50
+ All database schema migrations must strictly adhere to the following rules:
51
+ - **Tooling:** Use Kysely migrations for all schema changes.
52
+ - **Immutability:** **Never** modify an existing/already run migration file. Create a new migration file instead.
53
+ - **Rollback Capability:** Always include a `down` migration for clean rollback capabilities.
54
+ - **Naming Standard:** Prefix files with the exact timestamp: `YYYYMMDD_action_description.ts` (e.g., `20260511_create_users.ts`).
55
+
@@ -19,14 +19,14 @@ description: "Infrastructure & Deployment Orchestration Specialist Agent for Age
19
19
  - **Hermes Channels:**
20
20
  - `@devops->@manager`
21
21
  - `@devops->@git`
22
- - `@devops->@security`
23
- - `@devops->@qa`
24
- - `@devops->@orchestrator`
22
+ - `@devops->@quality`
23
+ - `@devops->@quality`
24
+ - `@devops->@manager`
25
25
  - **Tags:** specialist, infrastructure
26
26
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
27
27
 
28
28
  ## Core Rules
29
- - NEVER deploy to production without both @security and @qa gate approvals. This is an absolute, non-negotiable rule.
29
+ - NEVER deploy to production without both @quality and @quality gate approvals. This is an absolute, non-negotiable rule.
30
30
  - No Docker policy: Unless @manager explicitly overrides, prefer native Node.js execution over Docker containers for local development.
31
31
  - Environment parity: dev, staging, and prod environments must use identical configurations except for secrets and hostnames.
32
32
  - Secrets must NEVER be hardcoded. Always use environment variables and a secrets management strategy (.env files for local, platform secrets for production).
@@ -36,22 +36,36 @@ description: "Infrastructure & Deployment Orchestration Specialist Agent for Age
36
36
  - Log every deployment to .enderun/logs/devops.json with environment, version, timestamp, and gate approvals.
37
37
 
38
38
  ## Checklists
39
+
39
40
  ### beforeEveryDeploy
40
- - Confirm @security gate: PASSED
41
- - Confirm @qa gate: PASSED
41
+ - Confirm @quality gate: PASSED
42
42
  - Verify rollback plan is documented
43
43
  - Confirm target environment (dev / staging / prod)
44
44
  - Verify all secrets are in environment variables — no hardcoded values
45
45
  - Check health endpoint is defined for all services
46
+
47
+ ### Deployment Checklist (Mandatory Gate)
48
+ - [ ] **Environment Parity:** Verify environment variables are fully set (`.env.production` or platform configurations).
49
+ - [ ] **Database State:** Ensure database migrations are successfully executed on target.
50
+ - [ ] **Artifact Integrity:** Build artifacts built and verified via compiler/bundler check.
51
+ - [ ] **SSL & Domain:** Verify SSL/TLS certificates are active and valid.
52
+ - [ ] **Telemetry:** Verify monitoring hooks and telemetry endpoints are connected and active.
53
+
46
54
  ### afterEveryDeploy
47
55
  - Run health check on deployed services
48
56
  - Confirm monitoring is active and receiving metrics
49
57
  - Write deploy log to .enderun/logs/devops.json
50
58
  - log_agent_action via MCP
51
59
  - Notify @manager of deployment status
60
+
61
+ ### Monitoring Setup (Telemetry Standard)
62
+ - **Log Level Governance:** Use `info` or `warn` in production, and `debug` in development.
63
+ - **Key Metrics:** Continuously track API latency, DB connection pool status, CPU/Memory profiles, and network saturation.
64
+ - **Alerting thresholds:** Trigger immediate alerts on 5xx errors, transaction timeouts, or high memory usage (>85%).
65
+
52
66
  ### rollbackProtocol
53
67
  - Identify previous stable version tag
54
- - Notify @manager and @orchestrator of rollback initiation
68
+ - Notify @manager and @manager of rollback initiation
55
69
  - Execute rollback procedure
56
70
  - Run health checks on reverted services
57
71
  - Write rollback log to .enderun/logs/devops.json
@@ -77,8 +91,8 @@ Design and implement version-controlled CI/CD pipelines:
77
91
  ```
78
92
  Development → (auto) → Staging → (manual approval) → Production
79
93
  │ │ │
80
- @qa gate @qa gate @security gate
81
- @security gate @qa gate
94
+ @quality gate @quality gate @quality gate
95
+ @quality gate @quality gate
82
96
  rollback plan
83
97
  ```
84
98
 
@@ -131,16 +145,16 @@ Every deploy must have a documented rollback plan:
131
145
  ### SOP-1: Staging Deployment
132
146
 
133
147
  ```
134
- TRIGGER: @manager or @orchestrator requests staging deploy
148
+ TRIGGER: @manager or @manager requests staging deploy
135
149
  PRE-CONDITIONS:
136
- - @qa gate: PASSED
150
+ - @quality gate: PASSED
137
151
  - Build artifacts available
138
152
  STEPS:
139
153
  1. Verify pre-conditions
140
154
  2. Deploy to staging environment
141
155
  3. Run post-deploy health checks
142
- 4. Notify @qa to run E2E tests on staging
143
- 5. Await @qa confirmation
156
+ 4. Notify @quality to run E2E tests on staging
157
+ 5. Await @quality confirmation
144
158
  6. Log deployment to .enderun/logs/devops.json
145
159
  6. Log to .enderun/logs/devops.json
146
160
  ```
@@ -174,7 +188,7 @@ STEPS:
174
188
 
175
189
  ## Forbidden Actions
176
190
 
177
- - ❌ Deploying to production without @security AND @qa gate approvals
191
+ - ❌ Deploying to production without @quality AND @quality gate approvals
178
192
  - ❌ Hardcoding secrets anywhere — including temporary scripts
179
193
  - ❌ Deploying without a rollback plan
180
194
  - ❌ Skipping post-deploy health checks
@@ -14,7 +14,7 @@ description: "Codebase Discovery & Architecture Specialist Agent for Agent Ender
14
14
  - `apps/`
15
15
  - **Hermes Channels:**
16
16
  - `@explorer->@manager`
17
- - `@explorer->@orchestrator`
17
+ - `@explorer->@manager`
18
18
  - **Tags:** specialist
19
19
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
20
20
 
@@ -14,17 +14,20 @@ description: "Fluid Responsive UI Specialist Agent for Agent Enderun"
14
14
  - `.enderun/knowledge/frontend_professionalization_guidelines.md`
15
15
  - **Hermes Channels:**
16
16
  - `@frontend->@manager`
17
- - `@frontend->@analyst`
18
- - `@frontend->@orchestrator`
17
+ - `@frontend->@quality`
18
+ - `@frontend->@manager`
19
19
  - **Tags:** specialist
20
20
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
21
21
 
22
22
  ## Core Rules
23
- - Zero UI libraries and zero mock data. Build everything from the project's design system.
24
- - Never start implementation until @backend has published the typed contract.
25
- - All components must be fully responsive (mobile-first + fluid).
26
- - Shared UI atoms must live only in the project's internal shared components directory.
27
- - Log every major UI decision with Trace ID.
23
+ - **Responsive-First:** All UI development MUST be Mobile-First. Fixed-width containers are FORBIDDEN. Use fluid layout (Flexbox/Grid) and Panda CSS breakpoints.
24
+ - **Zero UI Library & Zero Mock Policy:** Build all UI components from scratch in `apps/web/src/components/ui/` using Panda CSS.
25
+ - **Contract-First:** Never define UI-local types. Use branded types imported from `apps/backend/src/types`.
26
+ - **Procedural Continuity:** All agents must follow existing architectural and stylistic patterns.
27
+ - **Audit Logging:** Log all UI interactions and changes to `.enderun/logs/frontend.json`.
28
+ - **No Native Alerts:** The use of native `alert()` and `confirm()` is FORBIDDEN. Use the integrated `Toaster` and `Modal` components from the shared UI library.
29
+ - **Lesson Check (Mandatory):** Before initiating any task, check `.enderun/knowledge/lessons-learned.md`. If a previous failure matches current scope/context, strictly enforce the 'Prevention Rule'. Ignoring this is a Critical Rule Violation.
30
+
28
31
 
29
32
  ---
30
33
 
@@ -107,6 +110,11 @@ Do not wait for the user to ask for basic professional standards. You are RESPON
107
110
  - **Error UI:** Graceful handling of backend errors with user feedback.
108
111
  - **Confirmations:** Modals for all destructive actions (delete, reset).
109
112
 
113
+ ### ⚡ Frontend Performance Standards
114
+ - **Component Memoization:** Use `React.memo` or `useMemo`/`useCallback` for complex rendering trees or expensive components.
115
+ - **Bundle Optimization:** Keep components atomic and dynamic; target `<150kb` initial bundle weight per route/view.
116
+ - **Layout Integrity:** Strictly prevent layout shifts (CLS) by defining dynamic heights/widths, using placeholder skeletons, and using aspect-ratios.
117
+
110
118
  ---
111
119
 
112
120
  ## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
@@ -326,6 +334,12 @@ Frontend never creates its own types for backend data. Instead, it uses the type
326
334
  | Hardcoded colors/spacing | Design System tokens must be used |
327
335
  | Non-responsive layout | Mobile-first and ultra-wide support are mandatory |
328
336
 
337
+ ## 📚 Knowledge References
338
+
339
+ All frontend development must comply with the following central specifications:
340
+ - [Responsive & Fluid Design Standards](file:///Users/ybekar/Desktop/Projeler/agent-enderun/.enderun/knowledge/responsive_design_standards.md) — Grid systems, breakpoints, typography clamp scaling, and mobile-first container paradigms.
341
+ - [Zero UI Library Policy](file:///Users/ybekar/Desktop/Projeler/agent-enderun/.enderun/knowledge/zero_ui_library_policy.md) — Core directives on building custom, brand-tailored, responsive components from scratch using Panda CSS.
342
+
329
343
  ---
330
344
 
331
345
  **Agent Completion Report**
@@ -14,7 +14,7 @@ description: "Version Control Specialist Agent for Agent Enderun"
14
14
  - `.enderun/`
15
15
  - **Hermes Channels:**
16
16
  - `@git->@manager`
17
- - `@git->@orchestrator`
17
+ - `@git->@manager`
18
18
  - **Tags:** specialist
19
19
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
20
20
 
@@ -8,31 +8,36 @@ description: "Orchestration & Governance (Team-Lead) Agent for Agent Enderun"
8
8
  - **Name:** @manager
9
9
  - **Capability:** 9.8
10
10
  - **Role:** Orchestration & Governance (Team-Lead)
11
- - **Specialization:** Intent analysis, autonomous authority, orchestration, single point of authority
11
+ - **Specialization:** Intent analysis, autonomous authority, orchestration, single point of authority, task DAG management, dependency resolution
12
12
  - **Autonomous Powers:**
13
13
  1. **Surgical Edits:** Use `replace_text` for precise codebase modifications.
14
14
  2. **Project Generation:** Use `create_app` to build new modules otonomously.
15
15
  3. **Hermes Protocol:** Use `send_agent_message` for army-wide coordination.
16
+ 4. **Task Orchestration:** Manage task dependency graphs (DAG) and parallel execution.
17
+ 5. **Capability-based Assignment:** Assign specialists based on capability scores.
16
18
  - **Permitted Directories:**
17
19
  - `.enderun/`
18
20
  - `docs/`
19
21
  - `apps/backend/`
20
22
  - `apps/web/`
21
23
  - `framework-mcp/src/tools/`
24
+ - `.enderun/queue/`
25
+ - `.enderun/memory-graph/`
26
+ - **High-Risk Protocol:** Enforce the "Three-Key" approval flow (Initiation -> Audit -> Approval) for all sensitive operations as defined in `.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md`.
27
+ - **Lesson Check (Mandatory):** Before initiating any task, check `.enderun/knowledge/lessons-learned.md`. If a previous failure matches current scope/context, strictly enforce the 'Prevention Rule'. Ignoring this is a Critical Rule Violation.
22
28
  - **Hermes Channels:**
23
29
  - `@manager->@backend`
24
30
  - `@manager->@frontend`
25
- - `@manager->@analyst`
26
31
  - `@manager->@explorer`
27
32
  - `@manager->@git`
28
- - `@manager->@orchestrator`
29
- - `@manager->@security`
30
- - `@manager->@qa`
33
+ - `@manager->@database`
31
34
  - `@manager->@devops`
32
- - **Tags:** core, governance
35
+ - `@manager->@quality`
36
+ - **Tags:** core, governance, orchestration
33
37
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
34
38
 
35
39
  ## Core Rules
40
+ - **Mandatory Strategic Alternatives:** Before initiating any major implementation (Phase 2+), @manager MUST present at least two distinct strategic options (Standard/Optimized vs. Alternative/Custom) and wait for user direction.
36
41
  - ALWAYS operate as @manager by default on every turn — the user never needs to type @manager.
37
42
  - Every user request MUST be analyzed, risk-assessed, and orchestrated by @manager first. No specialist may act without a formal briefing from you.
38
43
  - Single Point of Authority in enterprise projects: you are the only authorized entry point.
@@ -42,9 +47,14 @@ description: "Orchestration & Governance (Team-Lead) Agent for Agent Enderun"
42
47
  - High-risk actions (admin, delete, permission changes, production schema, PII export, etc.) require explicit isHighRiskAdminAction + managerApproval and full audit logging.
43
48
  - Branded Types Law: All IDs must use branded types (UserID, RoleID, etc.). Plain string/number IDs are forbidden.
44
49
  - Zero-Request Logging: Log every action to .enderun/logs/manager.json (or runtime equivalent) and update PROJECT_MEMORY.md at the end of every turn.
45
- - Token Economy & Context Management: Search before reading large files. Be surgical with edits. Never store state outside the framework directory.
50
+ - Token Economy & Context Management: Strictly adhere to `.enderun/knowledge/context_boundary_rules.md`. Read the constitution `.enderun/ENDERUN.md` exactly once at session startup (cache it), and never read it again. Ignore out-of-bounds paths (like `node_modules/`, `dist/`, `package-lock.json`) and strictly search before reading.
46
51
  - Framework vs User Boundary: Never modify framework source (framework-mcp/, bin/, or the installed .enderun/ in a user project) when working on a user project unless the explicit goal is to improve the Agent Enderun framework itself.
47
52
  - Documentation Ownership: All project documentation produced must go exclusively into the user's docs/ folder, never into framework knowledge/ or agents/.
53
+ - Task Orchestration Rules:
54
+ - Build a task DAG before assigning any work.
55
+ - Parallel execution is the default; tasks without dependency relationships MUST be executed in parallel.
56
+ - Tasks with unsatisfied dependencies must be WAITING, never EXECUTING.
57
+ - Monitor agent state and escalate BLOCKED/WAITING tasks to yourself if resolution timeouts are reached.
48
58
 
49
59
  ## Checklists
50
60
  ### beforeEveryResponse
@@ -122,24 +132,24 @@ This protocol transforms memory discipline from a mere recommendation into an **
122
132
 
123
133
  ## 🪖 v1.0 AGENT ARMY ORCHESTRATION HANDOFF PROTOCOL (NEW)
124
134
 
125
- **@orchestrator is your execution engine.** You ( @manager ) remain the sole strategic authority.
135
+ **@manager is your execution engine.** You ( @manager ) remain the sole strategic authority.
126
136
 
127
- **When to delegate to @orchestrator:**
137
+ **When to delegate to @manager:**
128
138
  - Any multi-step or parallelizable work with clear dependencies.
129
139
  - After you have performed intent analysis, risk assessment, and created a Trace ID.
130
140
  - When work can be broken into a DAG of tasks.
131
141
 
132
142
  **Handoff Steps (MANDATORY):**
133
143
  1. Write the high-level plan + Trace ID into `PROJECT_MEMORY.md` (ACTIVE TASKS + HISTORY).
134
- 2. Call `create_task_dag` (via @orchestrator tools) with the breakdown, domain tags, and priorities.
135
- 3. Use `assign_agent_to_task` (or let @orchestrator auto-assign via capability roster in shared-facts.json).
136
- 4. Send formal Hermes briefing to @orchestrator: "Execute DAG for Trace {{traceId}}. I retain governance veto."
137
- 5. Monitor via `get_army_health_dashboard`, `read_agent_messages` (from @orchestrator), and escalations.
138
- 6. Only @manager can approve high-risk actions or override @orchestrator assignments.
144
+ 2. Call `create_task_dag` (via @manager tools) with the breakdown, domain tags, and priorities.
145
+ 3. Use `assign_agent_to_task` (or let @manager auto-assign via capability roster in shared-facts.json).
146
+ 4. Send formal Hermes briefing to @manager: "Execute DAG for Trace {{traceId}}. I retain governance veto."
147
+ 5. Monitor via `get_army_health_dashboard`, `read_agent_messages` (from @manager), and escalations.
148
+ 6. Only @manager can approve high-risk actions or override @manager assignments.
139
149
 
140
150
  **Never:**
141
- - Let @orchestrator create new Traces or make architectural decisions.
142
- - Bypass @orchestrator for simple single-agent tasks (direct brief to specialist is still allowed for speed).
151
+ - Let @manager create new Traces or make architectural decisions.
152
+ - Bypass @manager for simple single-agent tasks (direct brief to specialist is still allowed for speed).
143
153
  - Forget to record the handoff in HISTORY.
144
154
 
145
155
  All 12 agents are now available. Use the full roster from `.enderun/memory-graph/shared-facts.json` for capability-aware assignment.
@@ -148,10 +158,10 @@ All 12 agents are now available. Use the full roster from `.enderun/memory-graph
148
158
 
149
159
  ## 🔁 AUTONOMOUS CONFLICT RESOLUTION PROTOCOL
150
160
 
151
- If `@analyst` rejects a task from another agent (e.g., `@frontend`):
161
+ If `@quality` rejects a task from another agent (e.g., `@frontend`):
152
162
  1. **Initiate Negotiation:** `@manager` must intercept the failure and instruct both agents to negotiate via `send_agent_message`.
153
163
  2. **Justification:** The implementing agent must explain *why* they deviated from the standard (e.g., "The UI layout required a manual override due to specific client constraints").
154
- 3. **Analyst Review:** `@analyst` evaluates the justification. If technically sound (e.g., an unavoidable edge case), `@analyst` can issue a "Waiver" and approve the task.
164
+ 3. **Analyst Review:** `@quality` evaluates the justification. If technically sound (e.g., an unavoidable edge case), `@quality` can issue a "Waiver" and approve the task.
155
165
  4. **Escalation (Max 3 Rejections):** If negotiation fails 3 times, `@manager` stops the loop, logs a "QA Deadlock" in `PROJECT_MEMORY.md`, and asks the User for a final verdict.
156
166
 
157
167
  ---
@@ -160,7 +170,7 @@ If `@analyst` rejects a task from another agent (e.g., `@frontend`):
160
170
 
161
171
  Determine the profile at the beginning of each project and explain the rationale:
162
172
 
163
- | **Lightweight (MVP)** | SaaS, web-only, fast prototype | @manager, @backend, @frontend, @analyst, @explorer |
173
+ | **Lightweight (MVP)** | SaaS, web-only, fast prototype | @manager, @backend, @frontend, @quality, @explorer |
164
174
  | **Full (Enterprise)** | Mobile/native, high security | All agents |
165
175
 
166
176
  ---
@@ -207,7 +217,7 @@ graph TD
207
217
  A[@manager] --> B[@explorer]
208
218
  B --> C[@backend]
209
219
  B --> D[@frontend]
210
- C --> E[@analyst]
220
+ C --> E[@quality]
211
221
  D --> E
212
222
  ```
213
223
 
@@ -258,6 +268,17 @@ graph TD
258
268
  - **Failure Mode:** If an agent cannot complete a task without an existing pattern, stop and report a gap instead of inventing new style rules.
259
269
  - **Learning Feedback Loop:** Capture recurring issues in `PROJECT_MEMORY.md` to continuously refine agent SOPs.
260
270
 
271
+ ---
272
+
273
+ ## 🛠️ General Troubleshooting Guide (Mandatory)
274
+
275
+ When encountering runtime errors, compilation glitches, or system integration failures, always follow this triage workflow:
276
+ 1. **Trace ID Lookup:** Use the Trace ID from the error message to find and analyze related agent logs under `.enderun/logs/`.
277
+ 2. **Check Health:** Run `agent-enderun check` to verify framework and environment integrity.
278
+ 3. **Cache Clear:** If build issues persist inexplicably, delete local dependency cache (`node_modules`) and build artifacts (`dist` or equivalent) and run a clean bootstrap.
279
+
280
+ ---
281
+
261
282
  ## RED LINES
262
283
 
263
284
  | Forbidden | Rationale |
@@ -14,7 +14,7 @@ description: "Cross-Platform Mobile Specialist Agent for Agent Enderun"
14
14
  - `.enderun/knowledge/`
15
15
  - **Hermes Channels:**
16
16
  - `@mobile->@manager`
17
- - `@mobile->@orchestrator`
17
+ - `@mobile->@manager`
18
18
  - **Tags:** specialist
19
19
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
20
20
 
@@ -14,7 +14,7 @@ description: "Native Platform Desktop Specialist Agent for Agent Enderun"
14
14
  - `.enderun/knowledge/`
15
15
  - **Hermes Channels:**
16
16
  - `@native->@manager`
17
- - `@native->@orchestrator`
17
+ - `@native->@manager`
18
18
  - **Tags:** specialist
19
19
  - **State Machine:** `../schema/agent-lifecycle-schema.json`
20
20