atabey 0.0.11 → 0.0.13

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 (522) hide show
  1. package/ATABEY.md +52 -249
  2. package/PRIVACY.md +161 -0
  3. package/README.md +355 -140
  4. package/bin/completion.sh +30 -0
  5. package/bin/{validate-agent-army.js → validate-al-registry.js} +6 -6
  6. package/dist/framework-mcp/src/index.js +14 -2
  7. package/dist/framework-mcp/src/index.js.map +1 -1
  8. package/dist/framework-mcp/src/resources/index.js +5 -5
  9. package/dist/framework-mcp/src/resources/index.js.map +1 -1
  10. package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +1 -1
  11. package/dist/framework-mcp/src/tools/control_plane/locking.js +11 -9
  12. package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -1
  13. package/dist/framework-mcp/src/tools/definitions.d.ts +5 -0
  14. package/dist/framework-mcp/src/tools/definitions.js +116 -241
  15. package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
  16. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +4 -4
  17. package/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js.map +1 -1
  18. package/dist/framework-mcp/src/tools/file_system/read_file.js +1 -1
  19. package/dist/framework-mcp/src/tools/file_system/replace_text.js +3 -3
  20. package/dist/framework-mcp/src/tools/file_system/replace_text.js.map +1 -1
  21. package/dist/framework-mcp/src/tools/file_system/write_file.d.ts +1 -1
  22. package/dist/framework-mcp/src/tools/file_system/write_file.js +4 -4
  23. package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
  24. package/dist/framework-mcp/src/tools/framework/audit_deps.js +1 -1
  25. package/dist/framework-mcp/src/tools/framework/audit_deps.js.map +1 -1
  26. package/dist/framework-mcp/src/tools/framework/submit_plan.d.ts +4 -3
  27. package/dist/framework-mcp/src/tools/framework/submit_plan.js.map +1 -1
  28. package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.d.ts +19 -0
  29. package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js +138 -0
  30. package/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js.map +1 -0
  31. package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.d.ts +8 -0
  32. package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js +91 -0
  33. package/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js.map +1 -0
  34. package/dist/framework-mcp/src/tools/index.d.ts +2 -0
  35. package/dist/framework-mcp/src/tools/index.js +81 -17
  36. package/dist/framework-mcp/src/tools/index.js.map +1 -1
  37. package/dist/framework-mcp/src/tools/memory/delete_knowledge.d.ts +8 -0
  38. package/dist/framework-mcp/src/tools/memory/delete_knowledge.js +29 -0
  39. package/dist/framework-mcp/src/tools/memory/delete_knowledge.js.map +1 -0
  40. package/dist/framework-mcp/src/tools/memory/read_memory.js +1 -1
  41. package/dist/framework-mcp/src/tools/memory/read_memory.js.map +1 -1
  42. package/dist/framework-mcp/src/tools/memory/search_knowledge.d.ts +8 -0
  43. package/dist/framework-mcp/src/tools/memory/search_knowledge.js +49 -0
  44. package/dist/framework-mcp/src/tools/memory/search_knowledge.js.map +1 -0
  45. package/dist/framework-mcp/src/tools/memory/store_knowledge.d.ts +10 -0
  46. package/dist/framework-mcp/src/tools/memory/store_knowledge.js +31 -0
  47. package/dist/framework-mcp/src/tools/memory/store_knowledge.js.map +1 -0
  48. package/dist/framework-mcp/src/tools/messaging/ask_human.d.ts +6 -0
  49. package/dist/framework-mcp/src/tools/messaging/ask_human.js +31 -0
  50. package/dist/framework-mcp/src/tools/messaging/ask_human.js.map +1 -0
  51. package/dist/framework-mcp/src/tools/observability/check_ports.js +1 -1
  52. package/dist/framework-mcp/src/tools/observability/check_ports.js.map +1 -1
  53. package/dist/framework-mcp/src/tools/observability/get_health.js +1 -1
  54. package/dist/framework-mcp/src/tools/quality/analyze_code_quality.d.ts +11 -0
  55. package/dist/framework-mcp/src/tools/quality/analyze_code_quality.js +166 -0
  56. package/dist/framework-mcp/src/tools/quality/analyze_code_quality.js.map +1 -0
  57. package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.d.ts +11 -0
  58. package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js +135 -0
  59. package/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js.map +1 -0
  60. package/dist/framework-mcp/src/tools/schemas.d.ts +439 -0
  61. package/dist/framework-mcp/src/tools/schemas.js +183 -0
  62. package/dist/framework-mcp/src/tools/schemas.js.map +1 -0
  63. package/dist/framework-mcp/src/tools/search/get_map.js +2 -2
  64. package/dist/framework-mcp/src/tools/search/get_map.js.map +1 -1
  65. package/dist/framework-mcp/src/tools/search/grep_search.js +10 -7
  66. package/dist/framework-mcp/src/tools/search/grep_search.js.map +1 -1
  67. package/dist/framework-mcp/src/tools/shell/run_command.js +72 -7
  68. package/dist/framework-mcp/src/tools/shell/run_command.js.map +1 -1
  69. package/dist/framework-mcp/src/tools/types.d.ts +10 -9
  70. package/dist/framework-mcp/src/utils/compliance.d.ts +10 -0
  71. package/dist/framework-mcp/src/utils/compliance.js +102 -41
  72. package/dist/framework-mcp/src/utils/compliance.js.map +1 -1
  73. package/dist/framework-mcp/src/utils/fs.d.ts +10 -7
  74. package/dist/framework-mcp/src/utils/fs.js +10 -7
  75. package/dist/framework-mcp/src/utils/fs.js.map +1 -1
  76. package/dist/framework-mcp/src/utils/types.d.ts +8 -0
  77. package/dist/framework-mcp/src/utils/types.js +4 -0
  78. package/dist/framework-mcp/src/utils/types.js.map +1 -1
  79. package/dist/framework-mcp/src/utils/zod-to-mcp.d.ts +10 -0
  80. package/dist/framework-mcp/src/utils/zod-to-mcp.js +80 -0
  81. package/dist/framework-mcp/src/utils/zod-to-mcp.js.map +1 -0
  82. package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js +4 -4
  83. package/dist/framework-mcp/tests/tools/file_system/file_system_tools.test.js.map +1 -1
  84. package/dist/framework-mcp/tests/tools/messaging/send_message.test.js +17 -16
  85. package/dist/framework-mcp/tests/tools/messaging/send_message.test.js.map +1 -1
  86. package/dist/src/cli/adapters/core.js +2 -1
  87. package/dist/src/cli/adapters/core.js.map +1 -1
  88. package/dist/src/cli/adapters/scaffold.js +2 -1
  89. package/dist/src/cli/adapters/scaffold.js.map +1 -1
  90. package/dist/src/cli/commands/check.js +17 -17
  91. package/dist/src/cli/commands/check.js.map +1 -1
  92. package/dist/src/cli/commands/compliance.d.ts +5 -1
  93. package/dist/src/cli/commands/compliance.js +34 -42
  94. package/dist/src/cli/commands/compliance.js.map +1 -1
  95. package/dist/src/cli/commands/contract.js +6 -5
  96. package/dist/src/cli/commands/contract.js.map +1 -1
  97. package/dist/src/cli/commands/coverage.d.ts +1 -0
  98. package/dist/src/cli/commands/coverage.js +121 -0
  99. package/dist/src/cli/commands/coverage.js.map +1 -0
  100. package/dist/src/cli/commands/dashboard.d.ts +1 -1
  101. package/dist/src/cli/commands/dashboard.js +479 -39
  102. package/dist/src/cli/commands/dashboard.js.map +1 -1
  103. package/dist/src/cli/commands/explorer.js +8 -7
  104. package/dist/src/cli/commands/explorer.js.map +1 -1
  105. package/dist/src/cli/commands/gateway.d.ts +1 -0
  106. package/dist/src/cli/commands/gateway.js +172 -0
  107. package/dist/src/cli/commands/gateway.js.map +1 -0
  108. package/dist/src/cli/commands/git.js +8 -9
  109. package/dist/src/cli/commands/git.js.map +1 -1
  110. package/dist/src/cli/commands/index-codebase.d.ts +4 -0
  111. package/dist/src/cli/commands/index-codebase.js +52 -0
  112. package/dist/src/cli/commands/index-codebase.js.map +1 -0
  113. package/dist/src/cli/commands/init/create-agent.js +3 -3
  114. package/dist/src/cli/commands/init/create-agent.js.map +1 -1
  115. package/dist/src/cli/commands/init/scaffold-core.d.ts +1 -1
  116. package/dist/src/cli/commands/init/scaffold-core.js +7 -6
  117. package/dist/src/cli/commands/init/scaffold-core.js.map +1 -1
  118. package/dist/src/cli/commands/init/scaffold-docs.js +4 -3
  119. package/dist/src/cli/commands/init/scaffold-docs.js.map +1 -1
  120. package/dist/src/cli/commands/init/scaffold-ops.js +3 -3
  121. package/dist/src/cli/commands/init/scaffold-ops.js.map +1 -1
  122. package/dist/src/cli/commands/init/scaffold-standards.js +11 -7
  123. package/dist/src/cli/commands/init/scaffold-standards.js.map +1 -1
  124. package/dist/src/cli/commands/init.d.ts +2 -0
  125. package/dist/src/cli/commands/init.js +127 -45
  126. package/dist/src/cli/commands/init.js.map +1 -1
  127. package/dist/src/cli/commands/knowledge.js +5 -32
  128. package/dist/src/cli/commands/knowledge.js.map +1 -1
  129. package/dist/src/cli/commands/lint.js +5 -4
  130. package/dist/src/cli/commands/lint.js.map +1 -1
  131. package/dist/src/cli/commands/mcp.d.ts +11 -0
  132. package/dist/src/cli/commands/mcp.js +130 -0
  133. package/dist/src/cli/commands/mcp.js.map +1 -0
  134. package/dist/src/cli/commands/orchestrate.d.ts +10 -9
  135. package/dist/src/cli/commands/orchestrate.js +132 -66
  136. package/dist/src/cli/commands/orchestrate.js.map +1 -1
  137. package/dist/src/cli/commands/plan.js +16 -14
  138. package/dist/src/cli/commands/plan.js.map +1 -1
  139. package/dist/src/cli/commands/quickstart.d.ts +9 -0
  140. package/dist/src/cli/commands/quickstart.js +72 -0
  141. package/dist/src/cli/commands/quickstart.js.map +1 -0
  142. package/dist/src/cli/commands/script.js +6 -5
  143. package/dist/src/cli/commands/script.js.map +1 -1
  144. package/dist/src/cli/commands/security.js +5 -8
  145. package/dist/src/cli/commands/security.js.map +1 -1
  146. package/dist/src/cli/commands/status.js +23 -19
  147. package/dist/src/cli/commands/status.js.map +1 -1
  148. package/dist/src/cli/commands/trace.d.ts +2 -0
  149. package/dist/src/cli/commands/trace.js +59 -61
  150. package/dist/src/cli/commands/trace.js.map +1 -1
  151. package/dist/src/cli/index.js +236 -294
  152. package/dist/src/cli/index.js.map +1 -1
  153. package/dist/src/cli/platforms/core.d.ts +12 -0
  154. package/dist/src/cli/platforms/core.js +73 -0
  155. package/dist/src/cli/platforms/core.js.map +1 -0
  156. package/dist/src/cli/platforms/index.d.ts +5 -0
  157. package/dist/src/cli/platforms/index.js +6 -0
  158. package/dist/src/cli/platforms/index.js.map +1 -0
  159. package/dist/src/cli/platforms/paths.d.ts +15 -0
  160. package/dist/src/cli/platforms/paths.js +102 -0
  161. package/dist/src/cli/platforms/paths.js.map +1 -0
  162. package/dist/src/cli/platforms/scaffold.d.ts +2 -0
  163. package/dist/src/cli/platforms/scaffold.js +73 -0
  164. package/dist/src/cli/platforms/scaffold.js.map +1 -0
  165. package/dist/src/cli/platforms/utils.d.ts +4 -0
  166. package/dist/src/cli/platforms/utils.js +76 -0
  167. package/dist/src/cli/platforms/utils.js.map +1 -0
  168. package/dist/src/cli/shims.js +5 -5
  169. package/dist/src/cli/utils/claude.js +2 -1
  170. package/dist/src/cli/utils/claude.js.map +1 -1
  171. package/dist/src/cli/utils/compliance.d.ts +10 -9
  172. package/dist/src/cli/utils/compliance.js +10 -171
  173. package/dist/src/cli/utils/compliance.js.map +1 -1
  174. package/dist/src/cli/utils/fs.d.ts +3 -3
  175. package/dist/src/cli/utils/fs.js +8 -7
  176. package/dist/src/cli/utils/fs.js.map +1 -1
  177. package/dist/src/cli/utils/i18n.d.ts +5 -0
  178. package/dist/src/cli/utils/i18n.js +5 -0
  179. package/dist/src/cli/utils/i18n.js.map +1 -1
  180. package/dist/src/cli/utils/memory.js +9 -6
  181. package/dist/src/cli/utils/memory.js.map +1 -1
  182. package/dist/src/cli/utils/pkg.js +8 -7
  183. package/dist/src/cli/utils/pkg.js.map +1 -1
  184. package/dist/src/cli/utils/schemas.d.ts +4 -4
  185. package/dist/src/cli/utils/ui.d.ts +23 -0
  186. package/dist/src/cli/utils/ui.js +42 -0
  187. package/dist/src/cli/utils/ui.js.map +1 -1
  188. package/dist/src/contracts/tasks.d.ts +4 -4
  189. package/dist/src/dashboard/src/hooks/useApi.d.ts +18 -0
  190. package/dist/src/dashboard/src/hooks/useApi.js +47 -0
  191. package/dist/src/dashboard/src/hooks/useApi.js.map +1 -0
  192. package/dist/src/dashboard/src/hooks/useSSE.d.ts +12 -0
  193. package/dist/src/dashboard/src/hooks/useSSE.js +60 -0
  194. package/dist/src/dashboard/src/hooks/useSSE.js.map +1 -0
  195. package/dist/src/modules/adapters/shared.js +3 -3
  196. package/dist/src/modules/adapters/shared.js.map +1 -1
  197. package/dist/src/modules/agents/definitions.d.ts +5 -13
  198. package/dist/src/modules/agents/definitions.js +179 -78
  199. package/dist/src/modules/agents/definitions.js.map +1 -1
  200. package/dist/src/modules/agents/registry/analyst.js +2 -1
  201. package/dist/src/modules/agents/registry/analyst.js.map +1 -1
  202. package/dist/src/modules/agents/registry/architect.js +1 -0
  203. package/dist/src/modules/agents/registry/architect.js.map +1 -1
  204. package/dist/src/modules/agents/registry/backend.js +8 -6
  205. package/dist/src/modules/agents/registry/backend.js.map +1 -1
  206. package/dist/src/modules/agents/registry/database.js.map +1 -1
  207. package/dist/src/modules/agents/registry/devops.js.map +1 -1
  208. package/dist/src/modules/agents/registry/explorer.js +2 -0
  209. package/dist/src/modules/agents/registry/explorer.js.map +1 -1
  210. package/dist/src/modules/agents/registry/frontend.js +8 -6
  211. package/dist/src/modules/agents/registry/frontend.js.map +1 -1
  212. package/dist/src/modules/agents/registry/git.js.map +1 -1
  213. package/dist/src/modules/agents/registry/manager.js +11 -4
  214. package/dist/src/modules/agents/registry/manager.js.map +1 -1
  215. package/dist/src/modules/agents/registry/mobile.js +7 -5
  216. package/dist/src/modules/agents/registry/mobile.js.map +1 -1
  217. package/dist/src/modules/agents/registry/native.js +7 -5
  218. package/dist/src/modules/agents/registry/native.js.map +1 -1
  219. package/dist/src/modules/agents/registry/quality.js +11 -8
  220. package/dist/src/modules/agents/registry/quality.js.map +1 -1
  221. package/dist/src/modules/agents/registry/security.js.map +1 -1
  222. package/dist/src/modules/contracts/api.d.ts +178 -0
  223. package/dist/src/modules/contracts/api.js +56 -0
  224. package/dist/src/modules/contracts/api.js.map +1 -0
  225. package/dist/src/modules/contracts/index.d.ts +5 -0
  226. package/dist/src/modules/contracts/index.js +6 -0
  227. package/dist/src/modules/contracts/index.js.map +1 -0
  228. package/dist/src/modules/engines/agent-executor.d.ts +50 -0
  229. package/dist/src/modules/engines/agent-executor.js +188 -0
  230. package/dist/src/modules/engines/agent-executor.js.map +1 -0
  231. package/dist/src/modules/engines/health-engine.d.ts +7 -1
  232. package/dist/src/modules/engines/health-engine.js +85 -8
  233. package/dist/src/modules/engines/health-engine.js.map +1 -1
  234. package/dist/src/modules/engines/planning-engine.d.ts +1 -1
  235. package/dist/src/modules/engines/planning-engine.js +5 -4
  236. package/dist/src/modules/engines/planning-engine.js.map +1 -1
  237. package/dist/src/modules/engines/quality-gate.d.ts +23 -0
  238. package/dist/src/modules/engines/quality-gate.js +85 -0
  239. package/dist/src/modules/engines/quality-gate.js.map +1 -0
  240. package/dist/src/modules/engines/risk-engine.js +6 -6
  241. package/dist/src/modules/engines/risk-engine.js.map +1 -1
  242. package/dist/src/modules/engines/routing-engine.d.ts +59 -1
  243. package/dist/src/modules/engines/routing-engine.js +353 -25
  244. package/dist/src/modules/engines/routing-engine.js.map +1 -1
  245. package/dist/src/modules/engines/types.d.ts +7 -3
  246. package/dist/src/modules/gateway/circuit-breaker.d.ts +40 -0
  247. package/dist/src/modules/gateway/circuit-breaker.js +163 -0
  248. package/dist/src/modules/gateway/circuit-breaker.js.map +1 -0
  249. package/dist/src/modules/gateway/cost-tracker.d.ts +55 -0
  250. package/dist/src/modules/gateway/cost-tracker.js +127 -0
  251. package/dist/src/modules/gateway/cost-tracker.js.map +1 -0
  252. package/dist/src/modules/gateway/gateway.d.ts +68 -0
  253. package/dist/src/modules/gateway/gateway.js +235 -0
  254. package/dist/src/modules/gateway/gateway.js.map +1 -0
  255. package/dist/src/modules/gateway/index.d.ts +19 -0
  256. package/dist/src/modules/gateway/index.js +19 -0
  257. package/dist/src/modules/gateway/index.js.map +1 -0
  258. package/dist/src/modules/gateway/load-balancer.d.ts +86 -0
  259. package/dist/src/modules/gateway/load-balancer.js +230 -0
  260. package/dist/src/modules/gateway/load-balancer.js.map +1 -0
  261. package/dist/src/modules/gateway/providers/anthropic.d.ts +14 -0
  262. package/dist/src/modules/gateway/providers/anthropic.js +169 -0
  263. package/dist/src/modules/gateway/providers/anthropic.js.map +1 -0
  264. package/dist/src/modules/gateway/providers/base.d.ts +38 -0
  265. package/dist/src/modules/gateway/providers/base.js +42 -0
  266. package/dist/src/modules/gateway/providers/base.js.map +1 -0
  267. package/dist/src/modules/gateway/providers/google.d.ts +18 -0
  268. package/dist/src/modules/gateway/providers/google.js +176 -0
  269. package/dist/src/modules/gateway/providers/google.js.map +1 -0
  270. package/dist/src/modules/gateway/providers/grok.d.ts +14 -0
  271. package/dist/src/modules/gateway/providers/grok.js +166 -0
  272. package/dist/src/modules/gateway/providers/grok.js.map +1 -0
  273. package/dist/src/modules/gateway/providers/index.d.ts +21 -0
  274. package/dist/src/modules/gateway/providers/index.js +38 -0
  275. package/dist/src/modules/gateway/providers/index.js.map +1 -0
  276. package/dist/src/modules/gateway/providers/ollama.d.ts +23 -0
  277. package/dist/src/modules/gateway/providers/ollama.js +187 -0
  278. package/dist/src/modules/gateway/providers/ollama.js.map +1 -0
  279. package/dist/src/modules/gateway/providers/openai.d.ts +14 -0
  280. package/dist/src/modules/gateway/providers/openai.js +170 -0
  281. package/dist/src/modules/gateway/providers/openai.js.map +1 -0
  282. package/dist/src/modules/gateway/rate-limiter.d.ts +41 -0
  283. package/dist/src/modules/gateway/rate-limiter.js +119 -0
  284. package/dist/src/modules/gateway/rate-limiter.js.map +1 -0
  285. package/dist/src/modules/gateway/types.d.ts +114 -0
  286. package/dist/src/modules/gateway/types.js +8 -0
  287. package/dist/src/modules/gateway/types.js.map +1 -0
  288. package/dist/src/modules/memory/core.d.ts +42 -0
  289. package/dist/src/modules/memory/core.js +100 -0
  290. package/dist/src/modules/memory/core.js.map +1 -0
  291. package/dist/src/modules/memory/embedding.d.ts +28 -0
  292. package/dist/src/modules/memory/embedding.js +131 -0
  293. package/dist/src/modules/memory/embedding.js.map +1 -0
  294. package/dist/src/modules/memory/types.d.ts +18 -0
  295. package/dist/src/modules/memory/types.js +2 -0
  296. package/dist/src/modules/memory/types.js.map +1 -0
  297. package/dist/src/modules/memory/vector-store.d.ts +13 -0
  298. package/dist/src/modules/memory/vector-store.js +75 -0
  299. package/dist/src/modules/memory/vector-store.js.map +1 -0
  300. package/dist/src/modules/providers/definitions.d.ts +9 -0
  301. package/dist/src/modules/providers/definitions.js +141 -0
  302. package/dist/src/modules/providers/definitions.js.map +1 -0
  303. package/dist/src/modules/providers/registry.d.ts +12 -0
  304. package/dist/src/modules/providers/registry.js +19 -0
  305. package/dist/src/modules/providers/registry.js.map +1 -0
  306. package/dist/src/modules/providers/shared.d.ts +1 -0
  307. package/dist/src/modules/providers/shared.js +105 -0
  308. package/dist/src/modules/providers/shared.js.map +1 -0
  309. package/dist/src/modules/providers/types.d.ts +14 -0
  310. package/dist/src/modules/providers/types.js +2 -0
  311. package/dist/src/modules/providers/types.js.map +1 -0
  312. package/dist/src/modules/skills/adapter-skills.d.ts +68 -0
  313. package/dist/src/modules/skills/adapter-skills.js +450 -0
  314. package/dist/src/modules/skills/adapter-skills.js.map +1 -0
  315. package/dist/src/shared/audit.d.ts +105 -0
  316. package/dist/src/shared/audit.js +220 -0
  317. package/dist/src/shared/audit.js.map +1 -0
  318. package/dist/src/shared/constants.d.ts +11 -11
  319. package/dist/src/shared/constants.js +3 -3
  320. package/dist/src/shared/constants.js.map +1 -1
  321. package/dist/src/shared/fs.js +4 -2
  322. package/dist/src/shared/fs.js.map +1 -1
  323. package/dist/src/shared/lock.d.ts +82 -0
  324. package/dist/src/shared/lock.js +160 -0
  325. package/dist/src/shared/lock.js.map +1 -0
  326. package/dist/src/shared/logger.d.ts +2 -0
  327. package/dist/src/shared/logger.js +15 -5
  328. package/dist/src/shared/logger.js.map +1 -1
  329. package/dist/src/shared/pii.d.ts +37 -0
  330. package/dist/src/shared/pii.js +122 -0
  331. package/dist/src/shared/pii.js.map +1 -0
  332. package/dist/src/shared/retention.d.ts +63 -0
  333. package/dist/src/shared/retention.js +171 -0
  334. package/dist/src/shared/retention.js.map +1 -0
  335. package/dist/src/shared/storage.d.ts +13 -11
  336. package/dist/src/shared/storage.js +18 -14
  337. package/dist/src/shared/storage.js.map +1 -1
  338. package/dist/src/shared/string.d.ts +1 -0
  339. package/dist/src/shared/string.js +30 -0
  340. package/dist/src/shared/string.js.map +1 -0
  341. package/dist/src/shared/types.d.ts +8 -0
  342. package/dist/src/shared/types.js +4 -0
  343. package/dist/src/shared/types.js.map +1 -1
  344. package/dist/tests/adapter.test.js +3 -2
  345. package/dist/tests/adapter.test.js.map +1 -1
  346. package/dist/tests/adapters/paths.test.js +4 -4
  347. package/dist/tests/adapters/paths.test.js.map +1 -1
  348. package/dist/tests/cli/commands/check.test.d.ts +1 -0
  349. package/dist/tests/cli/commands/check.test.js +9 -0
  350. package/dist/tests/cli/commands/check.test.js.map +1 -0
  351. package/dist/tests/cli/commands/coverage.test.d.ts +1 -0
  352. package/dist/tests/cli/commands/coverage.test.js +9 -0
  353. package/dist/tests/cli/commands/coverage.test.js.map +1 -0
  354. package/dist/tests/cli/commands/dashboard-coverage.test.d.ts +1 -0
  355. package/dist/tests/cli/commands/dashboard-coverage.test.js +88 -0
  356. package/dist/tests/cli/commands/dashboard-coverage.test.js.map +1 -0
  357. package/dist/tests/cli/commands/exports.test.d.ts +1 -0
  358. package/dist/tests/cli/commands/exports.test.js +61 -0
  359. package/dist/tests/cli/commands/exports.test.js.map +1 -0
  360. package/dist/tests/cli/commands/lint.test.d.ts +1 -0
  361. package/dist/tests/cli/commands/lint.test.js +9 -0
  362. package/dist/tests/cli/commands/lint.test.js.map +1 -0
  363. package/dist/tests/cli/init/adapter_init.test.js +4 -5
  364. package/dist/tests/cli/init/adapter_init.test.js.map +1 -1
  365. package/dist/tests/cli/init/unified_init.test.js +5 -7
  366. package/dist/tests/cli/init/unified_init.test.js.map +1 -1
  367. package/dist/tests/core-memory.test.d.ts +1 -0
  368. package/dist/tests/core-memory.test.js +78 -0
  369. package/dist/tests/core-memory.test.js.map +1 -0
  370. package/dist/tests/dashboard.test.d.ts +1 -0
  371. package/dist/tests/dashboard.test.js +116 -0
  372. package/dist/tests/dashboard.test.js.map +1 -0
  373. package/dist/tests/fs-utils.test.js +5 -5
  374. package/dist/tests/fs-utils.test.js.map +1 -1
  375. package/dist/tests/integration/agent_flow.test.js +24 -10
  376. package/dist/tests/integration/agent_flow.test.js.map +1 -1
  377. package/dist/tests/modules/adapters/adapters.test.js +2 -2
  378. package/dist/tests/modules/adapters/adapters.test.js.map +1 -1
  379. package/dist/tests/modules/contracts/contracts.test.d.ts +1 -0
  380. package/dist/tests/modules/contracts/contracts.test.js +73 -0
  381. package/dist/tests/modules/contracts/contracts.test.js.map +1 -0
  382. package/dist/tests/modules/engines/agent-executor.test.d.ts +1 -0
  383. package/dist/tests/modules/engines/agent-executor.test.js +61 -0
  384. package/dist/tests/modules/engines/agent-executor.test.js.map +1 -0
  385. package/dist/tests/modules/engines/evaluation-engine.test.d.ts +1 -0
  386. package/dist/tests/modules/engines/evaluation-engine.test.js +45 -0
  387. package/dist/tests/modules/engines/evaluation-engine.test.js.map +1 -0
  388. package/dist/tests/modules/engines/health-engine.test.d.ts +1 -0
  389. package/dist/tests/modules/engines/health-engine.test.js +56 -0
  390. package/dist/tests/modules/engines/health-engine.test.js.map +1 -0
  391. package/dist/tests/modules/engines/planning-engine.test.d.ts +1 -0
  392. package/dist/tests/modules/engines/planning-engine.test.js +75 -0
  393. package/dist/tests/modules/engines/planning-engine.test.js.map +1 -0
  394. package/dist/tests/modules/engines/risk-engine.test.d.ts +1 -0
  395. package/dist/tests/modules/engines/risk-engine.test.js +61 -0
  396. package/dist/tests/modules/engines/risk-engine.test.js.map +1 -0
  397. package/dist/tests/modules/engines/routing-engine.test.d.ts +1 -0
  398. package/dist/tests/modules/engines/routing-engine.test.js +56 -0
  399. package/dist/tests/modules/engines/routing-engine.test.js.map +1 -0
  400. package/dist/tests/modules/gateway/circuit-breaker.test.d.ts +1 -0
  401. package/dist/tests/modules/gateway/circuit-breaker.test.js +124 -0
  402. package/dist/tests/modules/gateway/circuit-breaker.test.js.map +1 -0
  403. package/dist/tests/modules/gateway/cost-tracker.test.d.ts +1 -0
  404. package/dist/tests/modules/gateway/cost-tracker.test.js +74 -0
  405. package/dist/tests/modules/gateway/cost-tracker.test.js.map +1 -0
  406. package/dist/tests/modules/gateway/load-balancer.test.d.ts +1 -0
  407. package/dist/tests/modules/gateway/load-balancer.test.js +70 -0
  408. package/dist/tests/modules/gateway/load-balancer.test.js.map +1 -0
  409. package/dist/tests/modules/gateway/rate-limiter.test.d.ts +1 -0
  410. package/dist/tests/modules/gateway/rate-limiter.test.js +62 -0
  411. package/dist/tests/modules/gateway/rate-limiter.test.js.map +1 -0
  412. package/dist/tests/modules/memory/vector-store.test.d.ts +1 -0
  413. package/dist/tests/modules/memory/vector-store.test.js +109 -0
  414. package/dist/tests/modules/memory/vector-store.test.js.map +1 -0
  415. package/dist/tests/orchestrator-dependencies.test.js +40 -22
  416. package/dist/tests/orchestrator-dependencies.test.js.map +1 -1
  417. package/dist/tests/planning-engine.test.js +9 -8
  418. package/dist/tests/planning-engine.test.js.map +1 -1
  419. package/dist/tests/risk-engine.test.d.ts +1 -0
  420. package/dist/tests/risk-engine.test.js +44 -0
  421. package/dist/tests/risk-engine.test.js.map +1 -0
  422. package/dist/tests/shared/audit.test.d.ts +1 -0
  423. package/dist/tests/shared/audit.test.js +53 -0
  424. package/dist/tests/shared/audit.test.js.map +1 -0
  425. package/dist/tests/status-cost.test.js +15 -24
  426. package/dist/tests/status-cost.test.js.map +1 -1
  427. package/dist/tests/status.test.js +16 -17
  428. package/dist/tests/status.test.js.map +1 -1
  429. package/dist/tests/storage-operations.test.d.ts +1 -0
  430. package/dist/tests/storage-operations.test.js +116 -0
  431. package/dist/tests/storage-operations.test.js.map +1 -0
  432. package/dist/tests/trace-replay.test.js +34 -40
  433. package/dist/tests/trace-replay.test.js.map +1 -1
  434. package/dist/ui/assets/index-B-d2ejS8.js +519 -0
  435. package/dist/ui/assets/index-CyXywq5G.css +1 -0
  436. package/dist/ui/index.html +2 -2
  437. package/dist/vitest.config.js +5 -5
  438. package/dist/vitest.config.js.map +1 -1
  439. package/framework-mcp/README.md +339 -25
  440. package/framework-mcp/dist/dashboard/assets/index-BAPGLiWE.js +267 -0
  441. package/framework-mcp/dist/dashboard/index.html +15 -0
  442. package/framework-mcp/dist/framework-mcp/src/constants.js +64 -0
  443. package/framework-mcp/dist/framework-mcp/src/index.js +156 -0
  444. package/framework-mcp/dist/framework-mcp/src/resources/index.js +58 -0
  445. package/framework-mcp/dist/framework-mcp/src/tools/control_plane/locking.js +84 -0
  446. package/framework-mcp/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
  447. package/framework-mcp/dist/framework-mcp/src/tools/definitions.js +197 -0
  448. package/framework-mcp/dist/framework-mcp/src/tools/file_system/batch_surgical_edit.js +64 -0
  449. package/framework-mcp/dist/framework-mcp/src/tools/file_system/patch_file.js +34 -0
  450. package/framework-mcp/dist/framework-mcp/src/tools/file_system/read_file.js +51 -0
  451. package/framework-mcp/dist/framework-mcp/src/tools/file_system/replace_text.js +50 -0
  452. package/framework-mcp/dist/framework-mcp/src/tools/file_system/write_file.js +55 -0
  453. package/framework-mcp/dist/framework-mcp/src/tools/framework/audit_deps.js +41 -0
  454. package/framework-mcp/dist/framework-mcp/src/tools/framework/get_status.js +5 -0
  455. package/framework-mcp/dist/framework-mcp/src/tools/framework/orchestrate.js +5 -0
  456. package/framework-mcp/dist/framework-mcp/src/tools/framework/run_tests.js +27 -0
  457. package/framework-mcp/dist/framework-mcp/src/tools/framework/submit_plan.js +13 -0
  458. package/framework-mcp/dist/framework-mcp/src/tools/framework/update_contract_hash.js +5 -0
  459. package/framework-mcp/dist/framework-mcp/src/tools/framework/update_memory.js +8 -0
  460. package/framework-mcp/dist/framework-mcp/src/tools/gateway/llm_gateway_query.js +137 -0
  461. package/framework-mcp/dist/framework-mcp/src/tools/gateway/llm_gateway_status.js +90 -0
  462. package/framework-mcp/dist/framework-mcp/src/tools/index.js +126 -0
  463. package/framework-mcp/dist/framework-mcp/src/tools/memory/delete_knowledge.js +28 -0
  464. package/framework-mcp/dist/framework-mcp/src/tools/memory/get_insights.js +22 -0
  465. package/framework-mcp/dist/framework-mcp/src/tools/memory/read_memory.js +28 -0
  466. package/framework-mcp/dist/framework-mcp/src/tools/memory/search_knowledge.js +48 -0
  467. package/framework-mcp/dist/framework-mcp/src/tools/memory/store_knowledge.js +30 -0
  468. package/framework-mcp/dist/framework-mcp/src/tools/messaging/ask_human.js +30 -0
  469. package/framework-mcp/dist/framework-mcp/src/tools/messaging/log_action.js +22 -0
  470. package/framework-mcp/dist/framework-mcp/src/tools/messaging/send_message.js +94 -0
  471. package/framework-mcp/dist/framework-mcp/src/tools/observability/check_ports.js +26 -0
  472. package/framework-mcp/dist/framework-mcp/src/tools/observability/get_health.js +19 -0
  473. package/framework-mcp/dist/framework-mcp/src/tools/quality/analyze_code_quality.js +165 -0
  474. package/framework-mcp/dist/framework-mcp/src/tools/quality/check_architecture_compliance.js +134 -0
  475. package/framework-mcp/dist/framework-mcp/src/tools/quality/check_lint.js +30 -0
  476. package/framework-mcp/dist/framework-mcp/src/tools/schemas.js +182 -0
  477. package/framework-mcp/dist/framework-mcp/src/tools/search/get_gaps.js +48 -0
  478. package/framework-mcp/dist/framework-mcp/src/tools/search/get_map.js +43 -0
  479. package/framework-mcp/dist/framework-mcp/src/tools/search/grep_search.js +78 -0
  480. package/framework-mcp/dist/framework-mcp/src/tools/search/list_dir.js +28 -0
  481. package/framework-mcp/dist/framework-mcp/src/tools/shell/run_command.js +121 -0
  482. package/framework-mcp/dist/framework-mcp/src/tools/types.js +1 -0
  483. package/framework-mcp/dist/framework-mcp/src/utils/cli.js +59 -0
  484. package/framework-mcp/dist/framework-mcp/src/utils/compliance.js +292 -0
  485. package/framework-mcp/dist/framework-mcp/src/utils/errors.js +68 -0
  486. package/framework-mcp/dist/framework-mcp/src/utils/fs.js +47 -0
  487. package/framework-mcp/dist/framework-mcp/src/utils/memory.js +74 -0
  488. package/framework-mcp/dist/framework-mcp/src/utils/metrics.js +56 -0
  489. package/framework-mcp/dist/framework-mcp/src/utils/permissions.js +71 -0
  490. package/framework-mcp/dist/framework-mcp/src/utils/security.js +60 -0
  491. package/framework-mcp/dist/framework-mcp/src/utils/storage.js +207 -0
  492. package/framework-mcp/dist/framework-mcp/src/utils/types.js +16 -0
  493. package/framework-mcp/dist/framework-mcp/src/utils/zod-to-mcp.js +79 -0
  494. package/framework-mcp/dist/index.js +14 -2
  495. package/framework-mcp/dist/src/cli/utils/memory.js +279 -0
  496. package/framework-mcp/dist/src/cli/utils/time.js +27 -0
  497. package/framework-mcp/dist/src/cli/utils/ui.js +100 -0
  498. package/framework-mcp/dist/src/modules/memory/core.js +99 -0
  499. package/framework-mcp/dist/src/modules/memory/embedding.js +130 -0
  500. package/framework-mcp/dist/src/modules/memory/types.js +1 -0
  501. package/framework-mcp/dist/src/modules/memory/vector-store.js +74 -0
  502. package/framework-mcp/dist/src/shared/constants.js +187 -0
  503. package/framework-mcp/dist/src/shared/fs.js +53 -0
  504. package/framework-mcp/dist/src/shared/logger.js +126 -0
  505. package/framework-mcp/dist/src/shared/pii.js +121 -0
  506. package/framework-mcp/dist/src/shared/storage.js +211 -0
  507. package/framework-mcp/dist/src/shared/types.js +16 -0
  508. package/framework-mcp/dist/tools/definitions.js +79 -247
  509. package/framework-mcp/dist/tools/index.js +37 -0
  510. package/framework-mcp/dist/tools/schemas.js +133 -0
  511. package/framework-mcp/dist/utils/types.js +4 -0
  512. package/framework-mcp/dist/utils/zod-to-mcp.js +77 -0
  513. package/framework-mcp/package.json +2 -2
  514. package/mcp.json +5 -4
  515. package/package.json +19 -17
  516. package/templates/full/ATABEY_FULL.md +515 -0
  517. package/templates/standards/crud-governance.md +1 -1
  518. package/templates/standards/logging-and-secrets.md +1 -1
  519. package/templates/standards/performance-standards.md +2 -2
  520. package/templates/standards/quality-standards.md +1 -1
  521. package/dist/ui/assets/index-Bkt7APzu.css +0 -1
  522. package/dist/ui/assets/index-CeX-06mI.js +0 -49
@@ -0,0 +1,515 @@
1
+ # Agent Atabey Enterprise
2
+ # Place in project root. This file is the single source of truth for Base Project AI Extensions.
3
+
4
+ ## [ATABEY] SUPREME LAW & ZERO DEVIATION POLICY (MANDATORY)
5
+ > Any deviation from these rules is considered a violation of "Atabey Order," and the development process is immediately HALTED.
6
+ - [ ] **Surgical Precision:** No file editing is allowed except via `replace_text` or `patch_file`. Overwriting the entire file is forbidden.
7
+ - [ ] **Zero Type Hole:** Using the `any` type is a disciplinary offense at the level of 'treason'.
8
+ - [ ] **Zero Console:** Usage of `console.log` is forbidden; only `EnterpriseLogger` is used.
9
+ - [ ] **Phase Discipline:** Phases cannot be skipped. No transition to the next step until success criteria are met.
10
+ - [ ] **Contract First:** Code cannot be written if the contract signature (`contract_hash`) is broken.
11
+
12
+ ## [GOV] DISCIPLINE HIERARCHY
13
+ 1. **ATABEY.md:** The Supreme Law.
14
+ 2. **Standard Operating Procedures (SOPs):** All rules under `.atabey/knowledge/*.md`.
15
+ 3. **Manager Directives:** Tasks and approvals issued by @manager.
16
+
17
+ ---
18
+
19
+ ## [MEMORY] INTELLIGENCE & DISCOVERY PROTOCOLS
20
+
21
+ ### 🔍 Architecture Discovery Protocol (ADP)
22
+ When encountering a project, agents must never assume a specific folder structure. Use the following algorithm:
23
+ 1. **Entry Point Hunt:** Identify main entry points (`index.ts`, `main.ts`, `server.ts`) via `search_codebase`.
24
+ 2. **Business Logic Mapping:** Search for core domain keywords (e.g. `service`, `repository`, `controller`) to find where logic resides, regardless of directory names.
25
+ 3. **Contract Analysis:** Locate type definitions and API schemas to establish the "System Contract".
26
+ 4. **Adaptive Scaffolding:** Always propose architectural improvements or scaffolding *before* writing code. Wait for explicit User consent.
27
+
28
+ ---
29
+
30
+ ## 🪙 TOKEN ECONOMY & CONTEXT MANAGEMENT
31
+
32
+ To minimize AI costs and maximize speed, all agents must adhere to the **Token Economy Protocol**:
33
+
34
+ 1. **Search Before Reading (MANDATORY):** Never `read_file` an entire directory or large file without searching for specific points of interest first.
35
+ 2. **Surgical Operations:** When editing, use the `replace` tool for targeted changes instead of overwriting entire files unless the file is very small (<50 lines).
36
+ 3. **Output Conciseness:** MCP tools must return the minimum required data. Avoid verbose logs or redundant status messages in tool outputs.
37
+ 4. **Context Compaction:** Before starting a new task, use `get_memory_insights` to retrieve only the relevant historical context.
38
+ 5. **No Blind Coding:** Stop and ask if a task requires reading more than 5 large files without a clear search result.
39
+
40
+ ---
41
+
42
+ ## Constitution Status
43
+ This file (`./ATABEY.md`) and the `.atabey/knowledge/` folder represent the "Supreme Law" of the project. All agents must read this file first in every session and strictly comply with its rules 100%. All framework-specific documentation is stored within `.atabey/knowledge/`.
44
+
45
+ ---
46
+
47
+ ## STEP 0 — STARTUP (EVERY SESSION, NON-NEGOTIABLE)
48
+
49
+ 1. **Restore Session Memory & Load Role (NON-NEGOTIABLE):**
50
+ - **Immediately Read `.atabey/memory/PROJECT_MEMORY.md`** as the very first action.
51
+ - **Check `memory/DECISIONS.md`** for project-specific architecture constraints.
52
+ - **Load Agent Prompt:** Adopt the **Commander** (for Gemini/Claude) or **Implementer** (for Cursor) identity.
53
+ 2. **Read Platform Shim First:** Read `GEMINI.md`, `CLAUDE.md`, or `.cursor/rules/global.mdc` based on your platform.
54
+ 3. **Respect Authority:** All specialists MUST report to the **Commander** and follow **Architect** reviews.
55
+
56
+ ---
57
+
58
+ ## [GOV] HIERARCHY OF AUTHORITY
59
+ 1. **ATABEY.md:** The Supreme Law.
60
+ 2. **SECURITY.md:** Domain Laws.
61
+ 3. **memory/DECISIONS.md:** Fixed architectural choices.
62
+ 4. **Platform Shim:** Role-specific instructions.
63
+ 5. **memory/PROJECT_MEMORY.md:** Active state.
64
+ 6. **Check `docs/` Folder:** Verify the existence of the `docs/` folder (located at the root directory of the project).
65
+ 7. **Absorb Context:** Read `docs/README.md`. If it is missing, check if the architecture folder exists.
66
+ 8. **Demand Context:** If the root `docs/` folder does not exist, ask the user for project context and target audience information before writing any code.
67
+ 9. **Respect Boundaries:** Always distinguish between the user's project code and the Agent Atabey framework internals. Read `.atabey/knowledge/framework_vs_user_project_boundary.md` if unsure. Never mix the two.
68
+ 10. **Automatic @manager Mode:** You are ALWAYS operating as `@manager`. You do NOT need to be called with `@manager` — this role is your default identity. You analyze, delegate, and orchestrate on EVERY turn without exception.
69
+
70
+ **NEVER SKIP THIS STEP.** Do not assume context; read first, then act as @manager.
71
+
72
+ ---
73
+
74
+ ## CORE PRINCIPLES
75
+
76
+ - **Permanent @manager Identity (Enterprise Standard):** The AI assistant is ALWAYS the `@manager` by default — on every turn, every message, without exception. The user does NOT need to type `@manager` to trigger this role. Explicitly typing a different agent (e.g. `@backend`, `@frontend`, `@analyst`) does NOT bypass @manager. All requests must still be processed by @manager first.
77
+ - **Manager MANDATORY Orchestration (Enterprise Project Rule):** Every user request — regardless of how it is phrased or which agent is directly addressed — MUST first be received, analyzed, and orchestrated by the `@manager` agent. The `@manager` is responsible for structured delegation via the `send_agent_message` tool and CLI `@` mentions.
78
+ - **CLI @-Mentions:** The CLI supports direct delegation via `atabey @agent "task"`. This bypasses manual JSON creation and follows the Hermes protocol.
79
+ - **Enterprise CRUD & Admin Governance (Enterprise Standard):** All high-risk administrative operations (user/permission management, bulk delete/purge, system config changes, audit log access, critical integrations, PII export, production schema changes, etc.) are strictly under @manager control. Specialist agents (@backend, @frontend, etc.) **must refuse** and immediately redirect such requests to @manager. Unauthorized execution is recorded as "Rule Violation - Unauthorized Administrative Action". Full list and rules are defined in `.atabey/knowledge/crud-governance.md` → "Corporate CRUD and Administrative Operation Governance".
80
+ - **Zero-Request Logging Policy:** Agents MUST log every action and update `PROJECT_MEMORY.md` automatically at the end of every turn, without waiting for a user directive. This is the "Operating Mode" of the framework.
81
+ - **Immediate Memory Sync:** Every state change, decision, or improved capability must be reflected in the memory files immediately.
82
+ - **Zero Temporary Storage & Single Source of Truth:** Storing, caching, or writing project details, logs, tasks, files, or agent planning documents (including implementation plans, scratch scripts, or intermediate tasks) in the operating system's temporary directory (`/tmp`, `/var/tmp`, `temp`, etc.) is strictly forbidden. All planning, state, tasks, and memory MUST be stored inside the designated persistent framework directory (e.g., `.atabey/` or `.agents/`) or the project workspace. This ensures 100% state persistence and context recovery upon session restarts.
83
+ - **Contract-First Agent Evolution:** Tools and SOPs used by agents must be defined via schemas and contracts first.
84
+ - **Zero Mock Policy:** The use of fake (mock) data or placeholders is strictly forbidden. Every line of code must connect to a real endpoint or a typed contract. (Exception: Controlled mock usage is allowed for external 3rd party services like Stripe, Twilio).
85
+ - **Branded Types Law:** All IDs (UserID, ProjectID, etc.) must be in the "Branded Types" format defined in the app-local types (e.g., `apps/backend/src/types`). Using plain strings or numbers is forbidden.
86
+ - **CLI-First Policy:** Due to the AI CLI Assistant focus, all outputs must be user-friendly (using Chalk, Clack, etc.) and stream-based. All commands must support the `--output json` flag and produce machine-readable output.
87
+ - **Audit Logging Necessity:** Every critical action must be logged traceably under the `.atabey/logs/` folder.
88
+ - **Design Continuity & Response Policy:** All UI changes MUST be responsive (Mobile-First + Fluid) and surgical. Unnecessary overhauls of existing layouts are strictly forbidden.
89
+ - **Shared Component First Policy (Zero Tolerance):** Defining common UI elements (Button, Input, Card, etc.) inside page files is FORBIDDEN. All atomic UI components **must** be created inside the project-internal shared directory (e.g. `apps/web/src/components/ui/`).
90
+ Creating any top-level shared UI package under `packages/`, `libs/`, `ui-components/`, or similar structures is **strictly prohibited** unless @manager has given explicit written approval for a very large multi-app monorepo after formal risk assessment. Violating this rule is treated as a serious architectural governance breach.
91
+ - **File Ownership Rule:** Each file is the responsibility of a single agent.
92
+ - **CLI Command Mapping:** All CLI commands in the project must be defined in the `.atabey/cli-commands.json` file and assigned to the relevant agent.
93
+ - **Exit Code Standard:** Standard exit codes (e.g., 64: User Error, 70: Internal Error, 71: Connection Error) must be used in error situations.
94
+ - **Phase-Based Execution:** The development process must progress through defined Phases. You cannot move to the next phase until the current one is completed.
95
+ - **CLI-Driven Orchestration:** All agent interactions and task delegations must be traceable via CLI.
96
+ - **Monorepo Discipline:** Commands must always be run from the monorepo root directory using npm workspaces (e.g., `npm run dev --workspace=web`).
97
+ - **Framework vs User Project Boundary (Critical Rule):**
98
+ When working on the user's own application, agents **must never** suggest, create, or modify files inside the framework's own source code (`framework-mcp/src/`, `.atabey/agents/`, `bin/cli.js`, etc.).
99
+ All development must happen exclusively inside the user's project structure (`apps/backend/src/`, `apps/web/src/`, `src/`, etc.).
100
+ The only exception is when the **explicit goal** of the session is to improve or extend the Agent Atabey framework itself.
101
+ Violating this boundary causes confusion, broken setups, and is considered a serious rule violation. @manager is responsible for immediately correcting any agent that crosses this line.
102
+
103
+ - **Documentation Ownership Rule (Enterprise Standard — Zero Tolerance):**
104
+ Agents are **mandatory** to write all documentation they produce for the user's project (architectural decisions, patterns, implementation details, toaster/approval flow documents, research findings, etc.) **exclusively into the user's own `docs/` folder**.
105
+ These documents must **never** be written into `.atabey/knowledge/`, `.atabey/agents/`, or any framework folder.
106
+ Violation is considered a serious rule breach and is corrected by @manager.
107
+ The detailed and binding rule is defined in `.atabey/knowledge/documentation_ownership.md`.
108
+
109
+ ---
110
+
111
+ ## STEP 1 — VALIDATE BEFORE ACTING
112
+
113
+ Before writing any code or design, check `docs/README.md`:
114
+
115
+ | Unknown | Action |
116
+ |---|---|
117
+ | Target Audience | Ask — do not proceed |
118
+ | Platform (web / mobile / desktop / backend) | Ask — do not proceed |
119
+ | **Technology Stack** | **Check `docs/README.md` → If missing → ASK** |
120
+ | Database (MariaDB / SQLite / PostgreSQL) | Ask — do not proceed |
121
+ | Environment (prototype / production) | Ask — do not proceed |
122
+ | Auth required? | Ask — do not proceed |
123
+ | Monorepo or separate repos? | Ask — do not proceed |
124
+ | Deploy target (Vercel / Bare metal / Managed platform)? | Ask — do not proceed |
125
+ | i18n (multi-language) required? | Ask — do not proceed |
126
+ | API versioning strategy? | Ask — do not proceed |
127
+ | Accessibility level (WCAG AA / AAA)? | Default AA — ask if different |
128
+ | Scope too broad ("build the whole app") | Break into parts → confirm each part |
129
+
130
+ Small details (port, filename, folder name) → assume and state them.
131
+
132
+ Always write assumptions at the top of your response:
133
+ ```
134
+ Assumption: [what] — [why]
135
+ ```
136
+
137
+ ---
138
+
139
+ ## OUTPUT FLOWS (MANDATORY STANDARDS)
140
+
141
+ Every agent must use the **Mandatory Output Flow** defined in their specific `.md` file. However, the following sections are mandatory in all outputs:
142
+
143
+ - **Assumptions:** All assumptions made.
144
+ - **Problem:** What is being built and why (Max 2-3 sentences).
145
+ - **File Tree:** Complete folder and file structure.
146
+ - **Code:** Complete code content (using "..." is forbidden).
147
+ - **Audit Logging:** How the changes are logged.
148
+ - **Tests:** Test file for every service and utility.
149
+
150
+ ---
151
+
152
+ ## ABSOLUTE DON'TS — APPLIES TO EVERY RESPONSE
153
+
154
+ - **`any` Type is Forbidden:** The use of `any` is strictly forbidden in TypeScript projects.
155
+ - **`console.log` is Forbidden:** `console.log` cannot be present in production code. Use `EnterpriseLogger` (from `src/shared/logger.ts`) instead.
156
+ - **Mock Data is Forbidden:** The use of fake (mock) data or placeholders is strictly forbidden. Every line of code must connect to a real endpoint or a typed contract. (Exception: Controlled mock usage is allowed for external 3rd party services like Stripe, Twilio).
157
+ - **File Ownership Violation:** Making unauthorized changes in files outside your scope is forbidden.
158
+ - **Security Rule Violation:** Violating security protocols is strictly forbidden.
159
+ - **Hardcoded Secrets:** Embedding API keys or env variables inside the code is forbidden.
160
+ - **Raw SQL Strings:** Direct strings cannot be used for SQL queries; strictly use the project's database library (`better-sqlite3` with prepared statements, or Kysely if available).
161
+ - **Direct DB call in a controller:** Database operations cannot be performed directly inside a Controller.
162
+ - **Missing try/catch on async operations:** Error handling (try/catch) is mandatory for asynchronous operations.
163
+ - **Use of Temporary Directories (e.g. `/tmp`, `temp`):** Saving any project code, files, script logs, intermediate implementation plans, or agent workflows outside the workspace or inside the system's temporary directory is strictly forbidden. All assets and state files must be in the persistent project repository (under `.atabey/` or the workspace root).
164
+
165
+ ---
166
+
167
+ ## LANGUAGE POLICY
168
+
169
+ - Code comments: English (Explain why it was done, not what it does).
170
+ - Variable / function / class / file names: English.
171
+ - User-facing UI text: English (Default).
172
+ - Communication: English by default (Global rule).
173
+
174
+ ---
175
+
176
+ ## API & CONTRACT MANAGEMENT
177
+
178
+ ### 1. contract.version.json Standard
179
+ This file is the single source of truth for API stability. `@architect` is responsible for its integrity.
180
+
181
+ ```json
182
+ {
183
+ "version": "MAJOR.MINOR",
184
+ "last_updated": "ISO-8601",
185
+ "contract_hash": "sha256-hash-of-shared-types",
186
+ "breaking_changes": [
187
+ { "version": "1.0", "description": "Initial stable release" }
188
+ ],
189
+ "deprecated_versions": []
190
+ }
191
+ ```
192
+ - **MAJOR:** Incremented on breaking changes (Phase Rollback required).
193
+ - **MINOR:** Incremented on additive changes (New fields/endpoints).
194
+
195
+ ---
196
+
197
+ ## STATE MACHINE & EXECUTION PHASES
198
+
199
+ The development process follows a strict State Machine. Transition to the next phase is prohibited until the "Success Criteria" of the current phase is met.
200
+
201
+ - **[STATE: PHASE_0] Discovery & Setup:** Requirement analysis, and validating `docs/README.md`.
202
+ - **[STATE: PHASE_1] Architecture & Contracts:** Setup of data models, API schemas, and backend-defined types (e.g., apps/backend/src/types). Cannot proceed until Frontend and Backend approve these schemas.
203
+ - **[STATE: PHASE_2] Core Development:** Active agents build core features in parallel. (Under the apps/ folder)
204
+ - **[STATE: PHASE_3] Integration & Testing:** System integration.
205
+ - **[STATE: PHASE_4] Optimization & Deployment:** Performance audit and deployment.
206
+
207
+ **Rollback Rule:** If a missing field or error is detected in the API schema (app types) during Phase 2 or later, the system immediately transitions to `[STATE: ROLLBACK_PHASE_1]`. All relevant agents stop their processes, switch to `WAITING` state, and cannot return to Phase 2 until the `@architect` resolves the issues.
208
+
209
+ ---
210
+
211
+ Every agent must produce a response for their assigned task within a maximum of 30 minutes (or the time defined per project). Upon timeout, `@manager` automatically moves the relevant task to `BLOCKED` status and logs the escalation.
212
+
213
+ ---
214
+
215
+ ## CLI STANDARDS & CONFIGURATION
216
+
217
+ ### 1. CLI Command Map (`.atabey/cli-commands.json`)
218
+ All CLI commands are centrally managed in this file. Each command must have a designated owner agent.
219
+
220
+ ### 2. Configuration (`.atabey/config.json`)
221
+ CLI behaviors (logLevel, outputFormat, defaultProfile) are managed through this file.
222
+
223
+ **Priority Rule:** CLI Flags > `.atabey/config.json` > `.env` > Default Values.
224
+
225
+ ### 3. Exit Codes
226
+ - `0`: Success
227
+ - `64`: User Error (Invalid argument, missing parameter)
228
+ - `70`: Internal Error (Software error, crash)
229
+ - `71`: Connection/Network Error
230
+
231
+ ---
232
+
233
+ ## API VERSIONING STRATEGY
234
+
235
+ All APIs are versioned via the URL path (`/api/v1/...`). The `apps/backend/contract.version.json` file uses the MAJOR.MINOR format, and must be updated with every change. The `@architect` is responsible for its accuracy. The MAJOR version is incremented for every breaking change. Old versions continue to be supported for at least 1 MAJOR release.
236
+
237
+ ---
238
+
239
+ ## [ROUTING] SMART ROUTING ENGINE
240
+
241
+ The `RoutingEngine` (TF-IDF based, 3-layer matching) selects the optimal agent for any given task:
242
+
243
+ ### 1. Routing Layers
244
+ - **Layer 1 — Specialty Matching (Weighted):** Agent specialties are compared against task keywords using TF-IDF scoring.
245
+ - **Layer 2 — Role Matching (Bonus +3):** Agent role definitions are matched against task context.
246
+ - **Layer 3 — DisplayName Matching (Bonus +2):** Agent display names provide additional signal.
247
+
248
+ ### 2. Confidence Levels
249
+ | Score Range | Confidence | Action |
250
+ |------------|-----------|--------|
251
+ | > 10 | High | Direct delegation, no human review needed |
252
+ | 5–10 | Medium | @manager reviews before delegation |
253
+ | < 5 | Low | @manager analyzes and manually routes |
254
+
255
+ ### 3. Fallback Routing
256
+ If no specialty matches, keyword-based fallback detects domain (frontend, security, database, devops, mobile, architecture, analysis) and routes accordingly. Default fallback is `@backend`.
257
+
258
+ ### 4. Automatic Subtask Generation
259
+ Each routing result includes agent-specific subtasks (e.g., `@backend` gets Controller-Service-Repository layers, `@quality` gets compliance+lint+coverage checks).
260
+
261
+ ---
262
+
263
+ ## [QUALITY] QUALITY GATE POLICY
264
+
265
+ The `@quality` agent serves as the mandatory gatekeeper for all task outputs. This is the **Quality Feedback Loop**:
266
+
267
+ ### 1. Mandatory Gate Sequence
268
+ ```
269
+ Agent completes task → @quality reviews → PASS → Task done + Memory update
270
+ → FAIL → Task returns to agent (retry up to 3x)
271
+ → 3x fail → Human intervention required
272
+ ```
273
+
274
+ ### 2. Quality Check Criteria
275
+ - **Compliance Check:** Verify file compliance with ATABEY.md rules via `check:compliance`
276
+ - **Lint Check:** Run ESLint via `check:lint` — zero errors required
277
+ - **Test Coverage:** Verify tests exist and pass via `run_tests`
278
+ - **Contract Integrity:** Verify `contract_hash` is not broken (if contract files modified)
279
+
280
+ ### 3. Retry Protocol
281
+ - Max retries: **3** (hard limit)
282
+ - Each retry: Agent fixes the issues reported by `@quality`
283
+ - After 3 failures: `@manager` flags task as `BLOCKED`, requires human intervention
284
+ - All retry attempts are logged in `.atabey/logs/quality-[traceId].json`
285
+
286
+ ### 4. Approval Chain
287
+ - All task completions go through `@quality` by default
288
+ - High-risk tasks (Risk Engine score ≥ 60) additionally require human approval via `atabey approve <traceId>` before `@quality` review
289
+ - The `ApprovalCenter` in the Dashboard visualizes pending approvals
290
+
291
+ ---
292
+
293
+ ## [RISK] RISK ENGINE (THE GUARDIAN)
294
+
295
+ The `RiskEngine` automatically assesses danger level for every task and file change.
296
+
297
+ ### 1. Risk Assessment Criteria
298
+ - **Total Score:** 0–100
299
+ - **Severity Levels:**
300
+ | Score | Severity | Requires Human Approval |
301
+ |-------|----------|------------------------|
302
+ | 0–19 | LOW | No |
303
+ | 20–49 | MEDIUM | No |
304
+ | 50–79 | HIGH | Yes (≥60) |
305
+ | 80–100 | CRITICAL | Yes |
306
+
307
+ ### 2. Risk Factors Analyzed
308
+ - **Keyword Analysis (weighted):** `delete`(40), `drop`(50), `truncate`(50), `rm -rf`(60), `purge`(40), `format`(50), `force`(20)
309
+ - **Sensitive Path Access:** `.env`(50), `config`(20), `database`(30), `auth`(30), `security`(30), `atabey`(40)
310
+ - **Complexity Risk:** Task length > 300 chars → +10 score
311
+ - **Operation Type:** `write`(+30), `replace`(+5), `patch`(+10)
312
+
313
+ ### 3. Approval Threshold
314
+ - Score ≥ 60: Task is **blocked** until human approval via `atabey approve <traceId>`
315
+ - Score ≥ 80 (CRITICAL): Escalated to `@security` and `@manager` simultaneously
316
+
317
+ ### 4. Risk Factors Reporting
318
+ All factors contributing to the risk score are recorded in the task trace for auditability.
319
+
320
+ ---
321
+
322
+ ## [TRACE] TRACE ID & AUDITABILITY
323
+
324
+ ### 1. Trace ID Format
325
+ - Format: `T-XXX` (e.g., `T-001`, `T-042`)
326
+ - Stored in `.atabey/memory/PROJECT_MEMORY.md` as active trace
327
+ - Auto-generated on `atabey trace:new <description> <agent> <priority>`
328
+
329
+ ### 2. Traceability Requirements
330
+ - Every CLI command execution must reference the active Trace ID
331
+ - Every agent log entry must include the Trace ID
332
+ - Every git commit must include the Trace ID in the commit message
333
+ - Trace replay via `atabey trace:replay <traceId>` for full chronological audit
334
+
335
+ ### 3. Logging Standard
336
+ - **Log Levels:** `debug`, `info`, `warn`, `error`, `fatal`
337
+ - **Log Format:** `[timestamp] [TRACE:<id>] [LEVEL] [AGENT] message`
338
+ - **Log Location:** `.atabey/logs/[agent-name].json`
339
+ - **Retention:** Logs are kept for the full project lifecycle; old logs are archived but never deleted automatically
340
+
341
+ ### 4. Hermes Message Broker
342
+ - All inter-agent communication uses `.atabey/messages/` directory
343
+ - **Message Queue Lock Protocol:**
344
+ 1. Before writing, check `.atabey/messages/.lock`
345
+ 2. If locked, wait 500ms and retry (max 3 retries)
346
+ 3. If lock persists after 3 retries, assume stale lock, delete it, notify `@manager`
347
+ 4. Delete `.lock` and processed message immediately after consumption
348
+ - **Message Categories:** `DELEGATION`, `ACTION`, `RESPONSE`, `APPROVAL`, `NOTIFICATION`
349
+
350
+ ---
351
+
352
+ ## [MCP] MCP SERVER CONFIGURATION
353
+
354
+ The `framework-mcp/` package provides MCP (Model Context Protocol) server integration with 30+ tools across 8 categories.
355
+
356
+ ### 1. MCP Tool Categories
357
+ | Category | Tools | Purpose |
358
+ |----------|-------|---------|
359
+ | **File System** | `read_file`, `write_file`, `patch_file`, `replace_text`, `batch_surgical_edit` | Code editing |
360
+ | **Memory** | `read_memory`, `store_knowledge`, `search_knowledge`, `delete_knowledge`, `get_insights` | Knowledge management |
361
+ | **Framework** | `get_status`, `run_tests`, `update_memory`, `orchestrate`, `submit_plan`, `update_contract_hash`, `audit_deps` | Framework operations |
362
+ | **Messaging** | `send_message`, `ask_human`, `log_action` | Agent communication |
363
+ | **Control Plane** | Locking, Registry | Agent lifecycle |
364
+ | **Observability** | `check_ports`, `get_health` | System monitoring |
365
+ | **Search** | `get_map`, `get_gaps`, `grep_search`, `list_dir` | Codebase exploration |
366
+ | **Quality** | `check_lint` | Code quality |
367
+
368
+ ### 2. Supported Platform Integrations
369
+ | Platform | Integration | Config File |
370
+ |----------|------------|-------------|
371
+ | **Claude Code** | `.claude/agents/` — 13 agents | `mcp.json` |
372
+ | **Gemini CLI** | `.gemini/agents/` — full compatibility | `gemini config` |
373
+ | **Cursor** | `.cursor/rules/` — agent rules | `.cursor/mcp.json` |
374
+ | **Antigravity CLI** | `.agents/` — custom agent specs | `mcp.json` |
375
+ | **Codex CLI (OpenAI)** | `.agents/` — instruction format | `mcp.json` |
376
+
377
+ ### 3. MCP Server Start
378
+ ```bash
379
+ # Via CLI
380
+ atabey mcp setup
381
+
382
+ # Direct (for IDE integration)
383
+ node framework-mcp/dist/index.js
384
+ ```
385
+
386
+ ---
387
+
388
+ ## [DASHBOARD] WEB CONTROL PANEL
389
+
390
+ The Dashboard is a web-based visual control plane powered by Vite + React.
391
+
392
+ ### 1. Access
393
+ ```bash
394
+ atabey dashboard # Default port: 5858
395
+ atabey dashboard 4200 # Custom port
396
+ ```
397
+
398
+ ### 2. Dashboard Features
399
+ - **AgentMonitor:** Real-time agent statuses, phases, and trace IDs
400
+ - **ApprovalCenter:** Pending human approvals with accept/reject actions
401
+ - **CompliancePanel:** Compliance check results and reports
402
+ - **HermesBrokerView:** Message queue contents and agent communication flow
403
+
404
+ ### 3. Dashboard Stack
405
+ - **Frontend:** Vite + React + TypeScript
406
+ - **API:** `useApi` and `useSSE` hooks for real-time data
407
+ - **Styling:** CSS with SharedStyles component
408
+
409
+ ---
410
+
411
+ ## [TEST] TEST POLICY
412
+
413
+ ### 1. Test Requirements
414
+ - **Every service and utility must have a corresponding test file**
415
+ - **Test files** are placed in the `tests/` directory mirroring `src/` structure
416
+ - **Naming convention:** `[module].test.ts` (e.g., `risk-engine.test.ts`)
417
+
418
+ ### 2. Test Types
419
+ | Type | Required | Framework |
420
+ |------|----------|-----------|
421
+ | Unit Tests | Yes (all modules) | Vitest |
422
+ | Integration Tests | Yes (critical flows) | Vitest |
423
+ | CLI Command Tests | Yes (new commands) | Vitest |
424
+ | Contract Tests | Yes (API changes) | Vitest |
425
+
426
+ ### 3. Minimum Coverage Targets
427
+ | Area | Target |
428
+ |------|--------|
429
+ | Core modules (`src/modules/`) | ≥ 80% |
430
+ | CLI (`src/cli/`) | ≥ 60% |
431
+ | Shared (`src/shared/`) | ≥ 90% |
432
+ | Overall project | ≥ 70% |
433
+
434
+ ### 4. Test Execution
435
+ ```bash
436
+ npm test # Run all tests
437
+ npm run test:coverage # Run with coverage report
438
+ npx vitest run tests/[file] # Run specific test file
439
+ npm run atabey:test:watch # Watch mode
440
+ ```
441
+
442
+ ### 5. Zero Mock Test Policy
443
+ Integration tests must use a real database (`better-sqlite3` in-memory) or service-compatible test backend. Do not rely on mocks for persistence behavior. (Exception: External 3rd-party services like Stripe, Twilio).
444
+
445
+ ---
446
+
447
+ ## PARALLEL EXECUTION & COORDINATION RULES
448
+
449
+ 1. **Backend Types as Source of Truth:** All agents reference the app-local types (e.g., `apps/backend/src/types`) and the `apps/backend/contract.version.json` file.
450
+ 2. **Commit-Level Logging:** Every agent must log every atomic change to the `.atabey/logs/[agent-name].json` file.
451
+ 3. **Implicit Dependency Lock:** If an agent's required output is not ready, it switches to `WAITING` state.
452
+ 4. **Ownership Enforcement:** Changes to files outside an agent's scope cannot be made without `@manager` approval.
453
+ 5. **No Blind Coding:** Agents must periodically read `.atabey/logs/` and `.atabey/STATUS.md`.
454
+ 6. **Agent Directives (Message Queue):** `.atabey/messages/` is used for inter-agent communication.
455
+ - **Message Queue Lock Protocol:** Before writing to a file, check for `.atabey/messages/.lock`.
456
+ - If it exists, wait 500ms and retry (max 3 retries).
457
+ - If lock persists after 3 retries, the agent MUST assume a **stale lock**, delete it, and notify `@manager` in their log.
458
+ - Delete `.lock` and the message file immediately after processing.
459
+ 7. **Phase Rollback Protocol:** If contracts are insufficient, return to Phase 1. All agents become `WAITING` and write `CONTRACT_CHANGED` to their log.
460
+ 8. **Next.js Ownership Rule:** `apps/web/api/` and `server/actions/` -> @backend. `apps/web/(routes)/` and `components/` -> @frontend.
461
+ 9. **Zero Mock Test Policy:** Integration tests must use a real database or service-compatible test backend; do not rely on mocks for persistence behavior.
462
+
463
+ ---
464
+
465
+ ## 13 SPECIALIZED AGENTS
466
+
467
+ | Agent | Tier | Role | Primary Responsibility |
468
+ |-------|------|------|----------------------|
469
+ | **@manager** | [S] Supreme | Orchestration & Governance | Manages all agents, oversees quality gate |
470
+ | **@security** | [S] Supreme | Security Audit | Zero-trust, encryption, secret management |
471
+ | **@architect** | [C] Core | System Design | Contracts, architecture, locking protocol |
472
+ | **@backend** | [C] Core | Backend Development | API, business logic, mandatory testing |
473
+ | **@frontend** | [C] Core | Frontend Development | UI, atomic components, responsive design |
474
+ | **@quality** | [C] Core | Quality Audit | Compliance, lint, test coverage check |
475
+ | **@database** | [C] Core | Database Management | Migration, query optimization |
476
+ | **@analyst** | [C] Core | Strategy Analysis | Contract-first validation, requirement mapping |
477
+ | **@mobile** | [C] Core | Mobile Development | React Native, offline-first |
478
+ | **@native** | [C] Core | Native Integration | OS layer, security, system calls |
479
+ | **@devops** | [C] Core | Infrastructure | CI/CD, deploy, environment health |
480
+ | **@explorer** | [R] Recon | Discovery & Intel | Codebase mapping, dependency analysis |
481
+ | **@git** | [R] Recon | Version Control | Commit discipline, trace ID prefix |
482
+
483
+ ---
484
+
485
+ ## DASHBOARD ARCHITECTURE
486
+
487
+ ```
488
+ +---------------------------+
489
+ | Vite + React Dashboard |
490
+ | (src/dashboard/) |
491
+ +------------+--------------+
492
+ |
493
+ +------------+--------------+
494
+ | Hermes API (useApi) |
495
+ | SSE Events (useSSE) |
496
+ +------------+--------------+
497
+ |
498
+ +------------------------+------------------------+
499
+ | | |
500
+ +-------+--------+ +---------+-------+ +----------+-------+
501
+ | AgentMonitor | | ApprovalCenter | | CompliancePanel |
502
+ | Real-time | | Pending approvals| | Check results |
503
+ | agent status | | Accept/Reject | | Reports |
504
+ +-----------------+ +-----------------+ +------------------+
505
+
506
+ +--------------------------+
507
+ | HermesBrokerView |
508
+ | Message queue contents |
509
+ | Agent comm flow |
510
+ +--------------------------+
511
+ ```
512
+
513
+ ---
514
+
515
+ Developed by **Yusuf BEKAR** | [Enterprise Inquiries](mailto:ybekar@msn.com)
@@ -1,6 +1,6 @@
1
1
  # [GOV] Corporate CRUD and Governance Standards
2
2
 
3
- This document defines the strict rules applicable to data mutation and administrative operations in projects managed by the Agent Atabey army.
3
+ This document defines the strict rules applicable to data mutation and administrative operations in projects managed by the Agent Atabey AL.
4
4
 
5
5
  ## 1. High-Risk Operations
6
6
  The following operations are considered "High-Risk" and cannot be performed autonomously by specialist agents (@backend, @database, etc.):
@@ -1,6 +1,6 @@
1
1
  # 🪵 Corporate Logging and Secret Management (.env) Standards
2
2
 
3
- This document defines the logging discipline and sensitive data (secret) management rules for projects managed by the Agent Atabey army.
3
+ This document defines the logging discipline and sensitive data (secret) management rules for projects managed by the Agent Atabey AL.
4
4
 
5
5
  ## 1. Logging Discipline (Zero Console Policy)
6
6
  - **console.log Forbidden:** The use of `console.log`, `console.warn`, or `console.error` in production code is strictly forbidden.
@@ -1,6 +1,6 @@
1
1
  # 📈 Performance Monitoring Standards
2
2
 
3
- This document defines the metrics, budgets, and monitoring requirements to ensure the Atabey Army — and the applications it produces — operate at peak efficiency.
3
+ This document defines the metrics, budgets, and monitoring requirements to ensure the Atabey AL — and the applications it produces — operate at peak efficiency.
4
4
 
5
5
  ## 1. Orchestration Core Metrics
6
6
  - **Task Latency (Completion Time):** Time from task delegation (`PENDING`) to completion (`SUCCESS`) must be tracked per `Trace ID`. Target p95 < 1 orchestration loop cycle.
@@ -18,7 +18,7 @@ This document defines the metrics, budgets, and monitoring requirements to ensur
18
18
  - **Hotspot Reports:** `@analyst` produces a weekly hotspot summary identifying the top 3 slowest agents and the top 3 most token-expensive task types.
19
19
 
20
20
  ## 4. Application Runtime Performance (Delivered Product)
21
- The applications the army builds must also meet runtime budgets:
21
+ The applications the AL builds must also meet runtime budgets:
22
22
  - **Web Vitals:** LCP < 2.5s, INP < 200ms, CLS < 0.1 on the 75th percentile of real users.
23
23
  - **API Latency:** Server p95 response time < 300ms for read endpoints, < 800ms for write endpoints under nominal load.
24
24
  - **Database:** No N+1 query patterns. Every list endpoint must be paginated; queries on non-indexed columns in hot paths are forbidden.
@@ -1,6 +1,6 @@
1
1
  # ⚖️ Corporate Code Quality and Discipline (Linting & Standards)
2
2
 
3
- This document defines the technical discipline rules that all code produced by the Agent Atabey army must comply with. The goal is zero errors, maximum readability, and sustainability.
3
+ This document defines the technical discipline rules that all code produced by the Agent Atabey AL must comply with. The goal is zero errors, maximum readability, and sustainability.
4
4
 
5
5
  ## 1. TypeScript Discipline
6
6
  - **Strict Mode:** `strict: true` is mandatory in all projects.
@@ -1 +0,0 @@
1
- :root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#0f172a;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;display:flex;min-width:320px;min-height:100vh}#root{width:100%}.app-container{padding:2rem;max-width:1200px;margin:0 auto}header{margin-bottom:2rem;border-bottom:1px solid #334155;padding-bottom:1rem}h1{margin:0;color:#38bdf8}.card{background:#1e293b;padding:1.5rem;border-radius:8px;border:1px solid #334155}