arkaos 4.21.0 → 4.23.0

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 (316) hide show
  1. package/README.md +1 -1
  2. package/THE-ARKAOS-GUIDE.md +72 -0
  3. package/VERSION +1 -1
  4. package/arka/SKILL.md +30 -7
  5. package/arka/skills/bootstrap-agent/SKILL.md +3 -2
  6. package/arka/skills/flow/SKILL.md +3 -2
  7. package/arka/skills/forge/SKILL.md +3 -2
  8. package/arka/skills/recipes/SKILL.md +3 -2
  9. package/arka/skills/refine/SKILL.md +3 -2
  10. package/arka/skills/research/SKILL.md +3 -2
  11. package/bin/arka-doctor +8 -0
  12. package/config/claude-agents/marta-cqo.md +9 -0
  13. package/config/standards/{claude-md-overlays → stack-rules}/laravel.md +11 -0
  14. package/config/standards/{claude-md-overlays → stack-rules}/node.md +10 -1
  15. package/config/standards/{claude-md-overlays → stack-rules}/nuxt.md +12 -1
  16. package/config/standards/stack-rules/php.md +13 -0
  17. package/config/standards/{claude-md-overlays → stack-rules}/python.md +5 -0
  18. package/config/standards/stack-rules/react.md +14 -0
  19. package/config/standards/stack-rules/vue.md +13 -0
  20. package/core/cognition/evolve.py +299 -0
  21. package/core/cognition/evolve_cli.py +55 -0
  22. package/core/cognition/insights/store.py +15 -4
  23. package/core/forge/persistence.py +27 -9
  24. package/core/forge/schema.py +45 -22
  25. package/core/governance/evidence_checks.py +101 -9
  26. package/core/governance/kb_cite_check.py +16 -6
  27. package/core/governance/stop_lint.py +293 -0
  28. package/core/governance/stop_lint_telemetry.py +141 -0
  29. package/core/governance/tool_loop_check.py +111 -0
  30. package/core/hooks/stop.py +73 -22
  31. package/core/hooks/user_prompt_submit.py +21 -23
  32. package/core/runtime/pricing.py +53 -19
  33. package/core/synapse/engine.py +46 -16
  34. package/core/synapse/graph_context_layer.py +7 -2
  35. package/core/synapse/kb_cache.py +63 -16
  36. package/core/synapse/layers.py +131 -495
  37. package/core/synapse/layers_base.py +115 -0
  38. package/core/synapse/layers_kb.py +701 -0
  39. package/core/sync/content_syncer.py +79 -10
  40. package/dashboard/app/components/AgentDependencyGraph.vue +5 -5
  41. package/dashboard/app/components/AgentEditDrawer.vue +120 -52
  42. package/dashboard/app/components/AgentSuggestionsCard.vue +4 -2
  43. package/dashboard/app/components/ConfirmDialog.vue +2 -2
  44. package/dashboard/app/components/DashboardState.vue +5 -3
  45. package/dashboard/app/components/GlobalSearch.vue +11 -7
  46. package/dashboard/app/components/KeyboardShortcutsHelp.vue +8 -6
  47. package/dashboard/app/components/KnowledgeSourcesList.vue +13 -9
  48. package/dashboard/app/components/MarkdownEditor.vue +1 -1
  49. package/dashboard/app/components/NotificationsBell.vue +8 -4
  50. package/dashboard/app/components/OnboardingTour.vue +24 -11
  51. package/dashboard/app/components/PersonaCloneDialog.vue +15 -8
  52. package/dashboard/app/components/PersonaWizard.vue +105 -72
  53. package/dashboard/app/components/SidebarFavoritesWidget.vue +5 -5
  54. package/dashboard/app/components/SidebarStatsWidget.vue +3 -1
  55. package/dashboard/app/components/Terminal.vue +9 -8
  56. package/dashboard/app/components/TextDiff.vue +27 -15
  57. package/dashboard/app/composables/useActivityFeed.ts +3 -3
  58. package/dashboard/app/composables/useApi.ts +4 -2
  59. package/dashboard/app/composables/useConfirmDialog.ts +1 -1
  60. package/dashboard/app/composables/useFavorites.ts +8 -8
  61. package/dashboard/app/composables/useTerminalThemes.ts +13 -13
  62. package/dashboard/app/composables/useThemeColor.ts +7 -4
  63. package/dashboard/app/layouts/default.vue +7 -0
  64. package/dashboard/app/pages/agents/[id].vue +319 -159
  65. package/dashboard/app/pages/agents/compare.vue +152 -52
  66. package/dashboard/app/pages/agents/index.vue +68 -55
  67. package/dashboard/app/pages/agents/new.vue +125 -58
  68. package/dashboard/app/pages/audit.vue +13 -6
  69. package/dashboard/app/pages/budget.vue +20 -18
  70. package/dashboard/app/pages/commands.vue +26 -22
  71. package/dashboard/app/pages/departments/[dept].vue +67 -31
  72. package/dashboard/app/pages/departments/compare.vue +85 -27
  73. package/dashboard/app/pages/departments/index.vue +31 -7
  74. package/dashboard/app/pages/health.vue +19 -12
  75. package/dashboard/app/pages/knowledge/index.vue +190 -78
  76. package/dashboard/app/pages/models.vue +74 -28
  77. package/dashboard/app/pages/personas/[id].vue +322 -219
  78. package/dashboard/app/pages/personas/archetypes.vue +20 -6
  79. package/dashboard/app/pages/personas/compare-with-agent.vue +109 -39
  80. package/dashboard/app/pages/personas/compare.vue +196 -124
  81. package/dashboard/app/pages/personas/index.vue +67 -60
  82. package/dashboard/app/pages/personas/new.vue +1 -1
  83. package/dashboard/app/pages/plan-canvas.vue +630 -0
  84. package/dashboard/app/pages/settings.vue +1 -0
  85. package/dashboard/app/pages/tasks.vue +80 -38
  86. package/dashboard/app/pages/trash.vue +11 -9
  87. package/dashboard/app/pages/workflows.vue +29 -19
  88. package/dashboard/nuxt.config.ts +2 -1
  89. package/dashboard/package.json +5 -0
  90. package/departments/brand/SKILL.md +3 -2
  91. package/departments/brand/skills/archetype-finder/SKILL.md +3 -2
  92. package/departments/brand/skills/colors/SKILL.md +3 -2
  93. package/departments/brand/skills/design-system/SKILL.md +3 -2
  94. package/departments/brand/skills/identity-system/SKILL.md +3 -2
  95. package/departments/brand/skills/logo-brief/SKILL.md +3 -2
  96. package/departments/brand/skills/mockup-generate/SKILL.md +3 -2
  97. package/departments/brand/skills/naming-evaluate/SKILL.md +3 -2
  98. package/departments/brand/skills/positioning-statement/SKILL.md +3 -2
  99. package/departments/brand/skills/primal-audit/SKILL.md +3 -2
  100. package/departments/brand/skills/ux-audit/SKILL.md +3 -2
  101. package/departments/brand/skills/voice-guide/SKILL.md +3 -2
  102. package/departments/brand/skills/wireframe/SKILL.md +3 -2
  103. package/departments/community/SKILL.md +3 -2
  104. package/departments/community/skills/ai-community/SKILL.md +3 -2
  105. package/departments/community/skills/betting-setup/SKILL.md +3 -2
  106. package/departments/community/skills/business-model/SKILL.md +3 -2
  107. package/departments/community/skills/content-calendar/SKILL.md +3 -2
  108. package/departments/community/skills/events-plan/SKILL.md +3 -2
  109. package/departments/community/skills/gamification-design/SKILL.md +3 -2
  110. package/departments/community/skills/growth-plan/SKILL.md +3 -2
  111. package/departments/community/skills/metrics-track/SKILL.md +3 -2
  112. package/departments/community/skills/moderation/SKILL.md +3 -2
  113. package/departments/community/skills/monetize-plan/SKILL.md +3 -2
  114. package/departments/community/skills/niche-setup/SKILL.md +3 -2
  115. package/departments/community/skills/onboarding-flow/SKILL.md +3 -2
  116. package/departments/community/skills/platform-select/SKILL.md +3 -2
  117. package/departments/content/SKILL.md +3 -2
  118. package/departments/content/skills/ai-workflow/SKILL.md +3 -2
  119. package/departments/content/skills/analytics/SKILL.md +3 -2
  120. package/departments/content/skills/calendar/SKILL.md +3 -2
  121. package/departments/content/skills/content-system/SKILL.md +3 -2
  122. package/departments/content/skills/monetization-plan/SKILL.md +3 -2
  123. package/departments/content/skills/newsletter-write/SKILL.md +3 -2
  124. package/departments/content/skills/platform-optimize/SKILL.md +3 -2
  125. package/departments/content/skills/repurpose-plan/SKILL.md +3 -2
  126. package/departments/content/skills/research-compile/SKILL.md +3 -2
  127. package/departments/content/skills/script-structure/SKILL.md +3 -2
  128. package/departments/content/skills/short-form/SKILL.md +3 -2
  129. package/departments/content/skills/thumbnail-package/SKILL.md +3 -2
  130. package/departments/content/skills/trend-hunt/SKILL.md +3 -2
  131. package/departments/content/skills/video-produce/SKILL.md +3 -2
  132. package/departments/content/skills/video-setup/SKILL.md +3 -2
  133. package/departments/content/skills/viral-design/SKILL.md +3 -2
  134. package/departments/content/skills/youtube-strategy/SKILL.md +3 -2
  135. package/departments/dev/SKILL.md +3 -2
  136. package/departments/dev/skills/ai-assisted-dev/SKILL.md +3 -2
  137. package/departments/dev/skills/animated-website/SKILL.md +7 -0
  138. package/departments/dev/skills/architecture-design/SKILL.md +3 -2
  139. package/departments/dev/skills/code-review/SKILL.md +3 -2
  140. package/departments/dev/skills/db-design/SKILL.md +3 -2
  141. package/departments/dev/skills/ddd-model/SKILL.md +3 -2
  142. package/departments/dev/skills/demo-gif/SKILL.md +3 -2
  143. package/departments/dev/skills/deploy/SKILL.md +3 -2
  144. package/departments/dev/skills/devops-pipeline/SKILL.md +3 -2
  145. package/departments/dev/skills/docs/SKILL.md +3 -2
  146. package/departments/dev/skills/mcp/SKILL.md +3 -2
  147. package/departments/dev/skills/performance-audit/SKILL.md +3 -2
  148. package/departments/dev/skills/refactor-plan/SKILL.md +3 -2
  149. package/departments/dev/skills/research/SKILL.md +3 -2
  150. package/departments/dev/skills/security-compliance/SKILL.md +3 -2
  151. package/departments/dev/skills/stack-check/SKILL.md +3 -2
  152. package/departments/ecom/SKILL.md +3 -2
  153. package/departments/ecom/skills/analytics/SKILL.md +3 -2
  154. package/departments/ecom/skills/browse-competitor/SKILL.md +3 -2
  155. package/departments/ecom/skills/cart-recovery/SKILL.md +3 -2
  156. package/departments/ecom/skills/cro-optimize/SKILL.md +3 -2
  157. package/departments/ecom/skills/customer-journey/SKILL.md +3 -2
  158. package/departments/ecom/skills/fulfillment-plan/SKILL.md +3 -2
  159. package/departments/ecom/skills/marketplace-manage/SKILL.md +3 -2
  160. package/departments/ecom/skills/pricing-strategy/SKILL.md +3 -2
  161. package/departments/ecom/skills/product-launch/SKILL.md +3 -2
  162. package/departments/ecom/skills/rfm-segment/SKILL.md +3 -2
  163. package/departments/ecom/skills/social-commerce/SKILL.md +3 -2
  164. package/departments/ecom/skills/store-audit/SKILL.md +3 -2
  165. package/departments/ecom/skills/subscription-model/SKILL.md +3 -2
  166. package/departments/finance/SKILL.md +3 -2
  167. package/departments/finance/skills/budget-plan/SKILL.md +3 -2
  168. package/departments/finance/skills/cashflow-forecast/SKILL.md +3 -2
  169. package/departments/finance/skills/ciso-advisor/SKILL.md +3 -2
  170. package/departments/finance/skills/financial-model/SKILL.md +3 -2
  171. package/departments/finance/skills/pitch-deck/SKILL.md +3 -2
  172. package/departments/finance/skills/scenario-analysis/SKILL.md +3 -2
  173. package/departments/finance/skills/unit-economics/SKILL.md +3 -2
  174. package/departments/finance/skills/valuation-model/SKILL.md +3 -2
  175. package/departments/kb/SKILL.md +3 -2
  176. package/departments/kb/skills/ai-research/SKILL.md +3 -2
  177. package/departments/kb/skills/competitive-intel/SKILL.md +3 -2
  178. package/departments/kb/skills/doc-extraction/SKILL.md +100 -0
  179. package/departments/kb/skills/doc-redaction/SKILL.md +104 -0
  180. package/departments/kb/skills/knowledge-ops/SKILL.md +3 -2
  181. package/departments/kb/skills/knowledge-review/SKILL.md +3 -2
  182. package/departments/kb/skills/learn-content/SKILL.md +3 -2
  183. package/departments/kb/skills/moc-create/SKILL.md +3 -2
  184. package/departments/kb/skills/persona-build/SKILL.md +3 -2
  185. package/departments/kb/skills/research-plan/SKILL.md +3 -2
  186. package/departments/kb/skills/search-kb/SKILL.md +3 -2
  187. package/departments/kb/skills/source-evaluate/SKILL.md +3 -2
  188. package/departments/kb/skills/taxonomy-manage/SKILL.md +3 -2
  189. package/departments/kb/skills/write-as-persona/SKILL.md +3 -2
  190. package/departments/landing/SKILL.md +3 -2
  191. package/departments/landing/skills/ab-test/SKILL.md +3 -2
  192. package/departments/landing/skills/affiliate-bridge/SKILL.md +3 -2
  193. package/departments/landing/skills/awareness-diagnose/SKILL.md +3 -2
  194. package/departments/landing/skills/email-sequence/SKILL.md +3 -2
  195. package/departments/landing/skills/funnel-metrics/SKILL.md +3 -2
  196. package/departments/landing/skills/headline-write/SKILL.md +3 -2
  197. package/departments/landing/skills/launch-sequence/SKILL.md +3 -2
  198. package/departments/landing/skills/offer-create/SKILL.md +3 -2
  199. package/departments/landing/skills/optimize-page/SKILL.md +3 -2
  200. package/departments/landing/skills/page-architect/SKILL.md +3 -2
  201. package/departments/landing/skills/persuasion-apply/SKILL.md +3 -2
  202. package/departments/landing/skills/webinar-funnel/SKILL.md +3 -2
  203. package/departments/leadership/SKILL.md +3 -2
  204. package/departments/leadership/skills/change-manage/SKILL.md +3 -2
  205. package/departments/leadership/skills/conflict-resolve/SKILL.md +3 -2
  206. package/departments/leadership/skills/culture-audit/SKILL.md +3 -2
  207. package/departments/leadership/skills/delegation-matrix/SKILL.md +3 -2
  208. package/departments/leadership/skills/disc-assess/SKILL.md +3 -2
  209. package/departments/leadership/skills/feedback-give/SKILL.md +3 -2
  210. package/departments/leadership/skills/hiring-plan/SKILL.md +3 -2
  211. package/departments/leadership/skills/performance-review/SKILL.md +3 -2
  212. package/departments/marketing/SKILL.md +3 -2
  213. package/departments/marketing/skills/ab-test/SKILL.md +3 -2
  214. package/departments/marketing/skills/analytics-report/SKILL.md +3 -2
  215. package/departments/marketing/skills/audience-segment/SKILL.md +3 -2
  216. package/departments/marketing/skills/calendar-plan/SKILL.md +3 -2
  217. package/departments/marketing/skills/competitor-analysis/SKILL.md +3 -2
  218. package/departments/marketing/skills/content-audit/SKILL.md +3 -2
  219. package/departments/marketing/skills/email-sequence/SKILL.md +3 -2
  220. package/departments/marketing/skills/growth-loop/SKILL.md +3 -2
  221. package/departments/marketing/skills/marketing-automation/SKILL.md +3 -2
  222. package/departments/marketing/skills/paid-campaign/SKILL.md +3 -2
  223. package/departments/marketing/skills/programmatic-seo/SKILL.md +3 -2
  224. package/departments/marketing/skills/seo-audit/SKILL.md +3 -2
  225. package/departments/marketing/skills/social-strategy/SKILL.md +3 -2
  226. package/departments/ops/SKILL.md +3 -2
  227. package/departments/ops/skills/bottleneck-find/SKILL.md +3 -2
  228. package/departments/ops/skills/dashboard-build/SKILL.md +3 -2
  229. package/departments/ops/skills/gdpr-compliance/SKILL.md +3 -2
  230. package/departments/ops/skills/github-ops/SKILL.md +3 -2
  231. package/departments/ops/skills/gtd-setup/SKILL.md +3 -2
  232. package/departments/ops/skills/integration-design/SKILL.md +3 -2
  233. package/departments/ops/skills/iso27001/SKILL.md +3 -2
  234. package/departments/ops/skills/lean-audit/SKILL.md +3 -2
  235. package/departments/ops/skills/metrics-dashboard/SKILL.md +3 -2
  236. package/departments/ops/skills/n8n-flow/SKILL.md +3 -2
  237. package/departments/ops/skills/quality-management/SKILL.md +3 -2
  238. package/departments/ops/skills/risk-management/SKILL.md +3 -2
  239. package/departments/ops/skills/soc2-compliance/SKILL.md +3 -2
  240. package/departments/ops/skills/sop-create/SKILL.md +3 -2
  241. package/departments/ops/skills/terminal-ops/SKILL.md +3 -2
  242. package/departments/ops/skills/workflow-automate/SKILL.md +3 -2
  243. package/departments/ops/skills/zapier-flow/SKILL.md +3 -2
  244. package/departments/org/SKILL.md +3 -2
  245. package/departments/org/skills/compensation-plan/SKILL.md +3 -2
  246. package/departments/org/skills/culture-define/SKILL.md +3 -2
  247. package/departments/org/skills/decision-framework/SKILL.md +3 -2
  248. package/departments/org/skills/hiring-plan/SKILL.md +3 -2
  249. package/departments/org/skills/meeting-optimize/SKILL.md +3 -2
  250. package/departments/org/skills/onboarding-design/SKILL.md +3 -2
  251. package/departments/org/skills/org-design/SKILL.md +3 -2
  252. package/departments/org/skills/remote-setup/SKILL.md +3 -2
  253. package/departments/org/skills/sop-process/SKILL.md +3 -2
  254. package/departments/org/skills/team-assess/SKILL.md +3 -2
  255. package/departments/pm/SKILL.md +3 -2
  256. package/departments/pm/skills/backlog-groom/SKILL.md +3 -2
  257. package/departments/pm/skills/discovery-plan/SKILL.md +3 -2
  258. package/departments/pm/skills/estimate-forecast/SKILL.md +3 -2
  259. package/departments/pm/skills/impact-map/SKILL.md +3 -2
  260. package/departments/pm/skills/kanban-setup/SKILL.md +3 -2
  261. package/departments/pm/skills/risk-register/SKILL.md +3 -2
  262. package/departments/pm/skills/roadmap-build/SKILL.md +3 -2
  263. package/departments/pm/skills/sprint-plan/SKILL.md +3 -2
  264. package/departments/pm/skills/stakeholder-map/SKILL.md +3 -2
  265. package/departments/pm/skills/standup-run/SKILL.md +3 -2
  266. package/departments/pm/skills/story-write/SKILL.md +3 -2
  267. package/departments/saas/SKILL.md +3 -2
  268. package/departments/saas/skills/benchmark-compare/SKILL.md +3 -2
  269. package/departments/saas/skills/churn-analysis/SKILL.md +3 -2
  270. package/departments/saas/skills/customer-success/SKILL.md +3 -2
  271. package/departments/saas/skills/growth-plan/SKILL.md +3 -2
  272. package/departments/saas/skills/gtm-strategy/SKILL.md +3 -2
  273. package/departments/saas/skills/launch-execute/SKILL.md +3 -2
  274. package/departments/saas/skills/metrics-dashboard/SKILL.md +3 -2
  275. package/departments/saas/skills/micro-saas-stack/SKILL.md +3 -2
  276. package/departments/saas/skills/mvp-build/SKILL.md +3 -2
  277. package/departments/saas/skills/niche-evaluate/SKILL.md +3 -2
  278. package/departments/saas/skills/onboarding-optimize/SKILL.md +3 -2
  279. package/departments/saas/skills/plg-setup/SKILL.md +3 -2
  280. package/departments/saas/skills/pricing-strategy/SKILL.md +3 -2
  281. package/departments/saas/skills/validate-idea/SKILL.md +3 -2
  282. package/departments/sales/SKILL.md +3 -2
  283. package/departments/sales/skills/challenger-sell/SKILL.md +3 -2
  284. package/departments/sales/skills/deal-qualify/SKILL.md +3 -2
  285. package/departments/sales/skills/discovery-call/SKILL.md +3 -2
  286. package/departments/sales/skills/forecast-revenue/SKILL.md +3 -2
  287. package/departments/sales/skills/negotiate-plan/SKILL.md +3 -2
  288. package/departments/sales/skills/objection-handle/SKILL.md +3 -2
  289. package/departments/sales/skills/pipeline-manage/SKILL.md +3 -2
  290. package/departments/sales/skills/pricing-negotiate/SKILL.md +3 -2
  291. package/departments/strategy/SKILL.md +3 -2
  292. package/departments/strategy/skills/blue-ocean/SKILL.md +3 -2
  293. package/departments/strategy/skills/bmc/SKILL.md +3 -2
  294. package/departments/strategy/skills/board-advisor/SKILL.md +3 -2
  295. package/departments/strategy/skills/cto-advisor/SKILL.md +3 -2
  296. package/departments/strategy/skills/extract-data/SKILL.md +3 -2
  297. package/departments/strategy/skills/five-forces/SKILL.md +3 -2
  298. package/departments/strategy/skills/growth-strategy/SKILL.md +3 -2
  299. package/departments/strategy/skills/moat-analysis/SKILL.md +3 -2
  300. package/departments/strategy/skills/position/SKILL.md +3 -2
  301. package/departments/strategy/skills/scenario-plan/SKILL.md +3 -2
  302. package/installer/config-seed.js +81 -25
  303. package/installer/graphify.js +340 -0
  304. package/installer/index.js +9 -2
  305. package/installer/keys.js +18 -3
  306. package/installer/update.js +8 -1
  307. package/knowledge/commands-registry.json +16 -3
  308. package/knowledge/skills-manifest.json +27 -1
  309. package/mcps/registry.json +9 -9
  310. package/mcps/scripts/apply-mcps.sh +6 -2
  311. package/package.json +2 -1
  312. package/pyproject.toml +1 -1
  313. package/scripts/dashboard-api.py +336 -124
  314. package/scripts/guide_gen.py +139 -0
  315. package/scripts/migrate_skills_kb_first.py +3 -2
  316. package/scripts/synapse-bridge.py +9 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **The Operating System for AI Agent Teams.**
4
4
 
5
- 86 agents. 17 departments. 290 skills. Enterprise frameworks. Multi-runtime. One install.
5
+ 86 agents. 17 departments. 292 skills. Enterprise frameworks. Multi-runtime. One install.
6
6
 
7
7
  ```bash
8
8
  npx arkaos install
@@ -0,0 +1,72 @@
1
+ # The ArkaOS Guide
2
+
3
+ > v4.23.0 — 86 agents, 17 departments, 292 skills, 270 commands, 16 ADRs.
4
+ > One file, everything you need to start. Generated by `scripts/guide_gen.py` — never hand-edited.
5
+
6
+ ## What it is
7
+
8
+ ArkaOS is an operating system for AI agent teams: specialized
9
+ departments with framework-backed agents, a constitution with a
10
+ Quality Gate that holds veto power, and an evidence flow where
11
+ gates pass on tool output read from disk — never on narration.
12
+
13
+ ## Start here
14
+
15
+ ```bash
16
+ npx arkaos install # detects your runtime, installs the core
17
+ npx arkaos doctor # canonical health check (venv, hooks,
18
+ # fastpath, security advisory)
19
+ ```
20
+
21
+ Then inside your runtime: `/arka setup` (profile) and `/do <what
22
+ you need>` — plain language routes to the right department.
23
+
24
+ ## Keep it updated (two steps)
25
+
26
+ ```bash
27
+ npx arkaos@latest update # step 1: core, hooks, CLI
28
+ ```
29
+
30
+ Then `/arka update` inside the runtime — step 2 syncs every
31
+ project (skills, MCP configs, settings, stack rules).
32
+
33
+ ## Departments
34
+
35
+ Every request routes through a department squad — ArkaOS never
36
+ answers as a generic assistant.
37
+
38
+ | Prefix | Commands |
39
+ |---|---|
40
+ | `/arka` | 22 |
41
+ | `/brand` | 12 |
42
+ | `/community` | 14 |
43
+ | `/content` | 19 |
44
+ | `/dev` | 36 |
45
+ | `/do` | 1 |
46
+ | `/ecom` | 18 |
47
+ | `/fin` | 10 |
48
+ | `/kb` | 22 |
49
+ | `/landing` | 14 |
50
+ | `/lead` | 10 |
51
+ | `/mkt` | 12 |
52
+ | `/ops` | 24 |
53
+ | `/org` | 10 |
54
+ | `/pm` | 12 |
55
+ | `/saas` | 14 |
56
+ | `/sales` | 10 |
57
+ | `/strat` | 10 |
58
+
59
+ ## How work ships
60
+
61
+ 1. **G1 CONTEXT** — routing + grounding before anything runs.
62
+ 2. **G2 PLAN** — explicit approval before code.
63
+ 3. **G3 EXECUTE** — real test runs with exit codes on record.
64
+ 4. **G4 REVIEW** — the Quality Gate (CQO + copy + tech reviewers)
65
+ issues a binary APPROVED/REJECTED; failing evidence can never
66
+ be overridden by narrative.
67
+
68
+ ## Go deeper
69
+
70
+ - Wiki: https://github.com/andreagroferreira/arka-os/wiki
71
+ - npm: https://www.npmjs.com/package/arkaos
72
+ - Dashboard: `npx arkaos dashboard` (localhost:3333)
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.21.0
1
+ 4.23.0
package/arka/SKILL.md CHANGED
@@ -7,25 +7,47 @@ description: >
7
7
  allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
8
8
  ---
9
9
 
10
- ## KB-First Research (non-negotiable)
10
+ ## KB-First Research (`always-research` SHOULD)
11
11
 
12
12
  Canonical home of the doctrine — every skill's compact
13
- `arka:kb-first-prefix` pointer references this section. Before any
13
+ `arka:kb-first-prefix` pointer references this section. The Knowledge Base
14
+ has two co-equal faces over the same corpus: **Obsidian** (note content)
15
+ and **Graphify** (the knowledge graph — how concepts connect). Before any
14
16
  external research (Context7, WebSearch, WebFetch, Firecrawl):
15
17
 
16
18
  1. Call `mcp__obsidian__search_notes` on the query first.
17
- 2. Cite relevant hits with `[[wikilinks]]` or explicitly declare a KB gap.
18
- 3. Only after (1) and (2) may external tools run.
19
+ 2. When Graphify is configured, also call `mcp__graphify__query_graph`
20
+ (or `god_nodes` / `shortest_path`) for the relationship view.
21
+ 3. Cite relevant hits with `[[wikilinks]]` and/or graph nodes, or
22
+ explicitly declare a KB gap.
23
+ 4. Only after (1)–(3) may external tools run.
24
+
25
+ **Fail-open:** Graphify runs on a per-user endpoint (home LAN, localhost,
26
+ or VPS — see `knowledge.graphify` config). When it is not configured or
27
+ not reachable, treat it as a gap and proceed with Obsidian alone; never
28
+ block a turn waiting on it. Obsidian remains the mandatory first step.
19
29
 
20
30
  The Synapse L2.5 layer pre-injects top KB matches on every user prompt;
21
31
  treat them as your default source. External research supplements the vault;
22
- it does not replace it. Enforcement: the Stop hook's kb-cite check
23
- measures citation compliance per turn.
32
+ it does not replace it.
33
+
34
+ **Enforcement** runs on three surfaces, in the order they fire:
35
+
36
+ | Surface | Effect |
37
+ | --- | --- |
38
+ | PreToolUse gate (`core/workflow/research_gate.py`) | DENIES the tool call in the current turn on a repeat violation |
39
+ | Quality Gate | DOD item `kb-research-cited` (`definition_of_done.universal`) is `hard: true` — a failed hard item blocks the done marker (rule `definition-of-done-per-domain`) |
40
+ | Stop hook (`core/governance/kb_cite_check.py`) | SOFT — measures citation compliance and nudges the next turn, never blocks this one |
41
+
42
+ Governing rule: `always-research` (SHOULD, `config/constitution.yaml`).
43
+ `kb-research-cited` is a Definition-of-Done item (`hard: true`), not an
44
+ entry in the must/should/non-negotiable rule lists — the two are
45
+ complementary, not alternatives.
24
46
 
25
47
  # ArkaOS — Main Orchestrator
26
48
 
27
49
  > **The Operating System for AI Agent Teams**
28
- > 86 agents. 17 departments. 290 skills. Multi-runtime. Dashboard. Knowledge RAG.
50
+ > 86 agents. 17 departments. 292 skills. Multi-runtime. Dashboard. Knowledge RAG.
29
51
 
30
52
  ## ⛔ Evidence flow — 4 gates (NON-NEGOTIABLE)
31
53
 
@@ -175,6 +197,7 @@ violation (squad-routing, arka-supremacy, spec-driven, mandatory-qa).
175
197
  | `/arka mcps [period]` | MCP usage — aggregates the PostToolUse MCP telemetry (`~/.arkaos/telemetry/mcp-usage.jsonl`) by day/week/month/all. Shows total calls, servers in use, top servers and top tools. Shells out to `~/.arkaos/bin/arka-py -m core.runtime.mcp_telemetry_cli <period>`. |
176
198
  | `/arka compliance [period]` | Behavior compliance summary (PR29 v2.48.0) — aggregates stop-hook telemetry by day/week/month/all. Shows rates for the four contracts: closing marker, `[arka:meta]` tag, KB citation pass, sycophancy clean. Shells out to `~/.arkaos/bin/arka-py -m core.governance.compliance_telemetry_cli <period>`. |
177
199
  | `/arka reorganize [--since-days N]` | Dreaming → Agent reorganizer. Aggregates recent KB pattern/anti-pattern/lesson artifacts (default last 7 days) into a markdown proposal at `~/.arkaos/reorganize-proposals/<date>.md`. **Propose-only** — never modifies agent YAMLs. Sanitizes client identifiers from titles and body excerpts; drops `tags:` field entirely to prevent project-name leaks. **Auto-fires on session start when today's proposal is missing** (PR24 v2.46.0 stale-aware trigger, 30s timeout, background). Shells out to `~/.arkaos/bin/arka-py -m core.cognition.reorganizer_cli [--since-days N] [--dry-run]`. |
200
+ | `/arka evolve [--min-projects N] [--min-confidence X]` | Instinct evolution. Ingests accumulated cross-project signals (`~/.arkaos/gotchas.json`) into the InsightStore as deterministic instincts (confidence in the [0.3, 0.9] band from occurrence count) and writes a markdown proposal at `~/.arkaos/evolve-proposals/<date>.md` with cross-project promotion candidates (`InsightStore.promotable`) and the strongest instincts. **Propose-only** — nothing is promoted or modified; LLM-free (Dreaming owns vault clustering). Redacts client identifiers; never renders project names. Shells out to `~/.arkaos/bin/arka-py -m core.cognition.evolve_cli [--min-projects N] [--min-confidence X] [--dry-run]`. |
178
201
  | `/arka standup` | Daily standup (projects, priorities, blockers, updates) |
179
202
  | `/arka monitor` | System health monitoring |
180
203
  | `/arka onboard <path>` | Onboard an existing project into ArkaOS |
@@ -16,8 +16,9 @@ allowed-tools: [Agent, Read, Write, Bash]
16
16
  ---
17
17
 
18
18
  <!-- arka:kb-first-prefix begin -->
19
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
20
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
19
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
20
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
21
+ > or graph nodes — or declare the gap — BEFORE any external research.
21
22
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
22
23
  <!-- arka:kb-first-prefix end -->
23
24
 
@@ -18,8 +18,9 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
18
18
  ---
19
19
 
20
20
  <!-- arka:kb-first-prefix begin -->
21
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
22
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
21
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
22
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
23
+ > or graph nodes — or declare the gap — BEFORE any external research.
23
24
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
24
25
  <!-- arka:kb-first-prefix end -->
25
26
 
@@ -19,8 +19,9 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
19
19
  ---
20
20
 
21
21
  <!-- arka:kb-first-prefix begin -->
22
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
23
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
22
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
23
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
24
+ > or graph nodes — or declare the gap — BEFORE any external research.
24
25
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
25
26
  <!-- arka:kb-first-prefix end -->
26
27
 
@@ -14,8 +14,9 @@ allowed-tools: [Read, Bash]
14
14
  ---
15
15
 
16
16
  <!-- arka:kb-first-prefix begin -->
17
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
18
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
17
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
18
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
19
+ > or graph nodes — or declare the gap — BEFORE any external research.
19
20
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
20
21
  <!-- arka:kb-first-prefix end -->
21
22
 
@@ -15,8 +15,9 @@ allowed-tools: [Read, AskUserQuestion, Skill]
15
15
  ---
16
16
 
17
17
  <!-- arka:kb-first-prefix begin -->
18
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
19
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
18
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
19
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
20
+ > or graph nodes — or declare the gap — BEFORE any external research.
20
21
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
21
22
  <!-- arka:kb-first-prefix end -->
22
23
 
@@ -17,8 +17,9 @@ allowed-tools: [Agent, Read, Write, mcp__obsidian__search_notes]
17
17
  ---
18
18
 
19
19
  <!-- arka:kb-first-prefix begin -->
20
- > **KB-first:** query `mcp__obsidian__search_notes` and cite
21
- > `[[wikilinks]]` — or declare the gap — BEFORE any external research.
20
+ > **KB-first:** query `mcp__obsidian__search_notes` (and
21
+ > `mcp__graphify__query_graph` when configured) and cite `[[wikilinks]]`
22
+ > or graph nodes — or declare the gap — BEFORE any external research.
22
23
  > Full doctrine: `arka/SKILL.md` (KB-First Research).
23
24
  <!-- arka:kb-first-prefix end -->
24
25
 
package/bin/arka-doctor CHANGED
@@ -3,6 +3,11 @@
3
3
  # ARKA OS — Doctor (Health Check System)
4
4
  # Usage: arka doctor [--fix] [--json]
5
5
  # 18 modular checks: fail = critical, warn = advisory
6
+ #
7
+ # SCOPE: this doctor audits the legacy v1 layout (~/.arka-os +
8
+ # ~/.claude/skills). The CANONICAL doctor for the engine (venv, hooks,
9
+ # fastpath, security advisory) is `npx arkaos doctor` — see issue #358
10
+ # for the consolidation/migration map.
6
11
  # ============================================================================
7
12
  set -euo pipefail
8
13
 
@@ -421,4 +426,7 @@ else
421
426
  echo -e " ${G}All checks passed!${N} ARKA OS is healthy."
422
427
  fi
423
428
  echo ""
429
+ echo -e " ${C}Note:${N} this audits the legacy v1 layout (~/.arka-os + ~/.claude/skills)."
430
+ echo -e " For the engine (venv, hooks, fastpath, security advisory) run: ${C}npx arkaos doctor${N}"
431
+ echo ""
424
432
  fi
@@ -41,6 +41,15 @@ evidence report, never from model size.
41
41
  justification in notes; otherwise REJECTED.
42
42
  4. Record the outcome via `core.governance.review_workflow` passing
43
43
  `evidence_overall` — it raises on APPROVED-over-fail by design.
44
+ 5. Record the eval label (evals ADR 2026-07-09) as your FINAL act — the
45
+ corpus only grows if the verdict-issuer writes it, and dispatch
46
+ through this agent bypasses the department SKILL's step 6: write your
47
+ final QGVerdict JSON to a temp file and run
48
+ `~/.arkaos/bin/arka-py -m core.evals.record_cli --file <f> --kind qg
49
+ --department <dept> --deliverable "<title>"`. It fails LOUDLY on
50
+ invalid JSON — if it fails, fix the JSON and re-run; never skip.
51
+ Every review feeds `~/.arkaos/telemetry/qg-verdicts.jsonl`, redo
52
+ verdicts included (a REJECTED→APPROVED pair is two labels).
44
53
 
45
54
  ## Verdict Format
46
55
 
@@ -1,3 +1,12 @@
1
+ ---
2
+ paths:
3
+ - "app/**/*.php"
4
+ - "routes/**/*.php"
5
+ - "database/**/*.php"
6
+ - "config/**/*.php"
7
+ - "tests/**/*.php"
8
+ ---
9
+
1
10
  ## Laravel Stack Conventions
2
11
 
3
12
  - Services + Repositories pattern; no logic in controllers.
@@ -5,4 +14,6 @@
5
14
  - API Resources for response shaping.
6
15
  - Feature Tests with RefreshDatabase trait.
7
16
  - Eloquent relationships over raw joins.
17
+ - Policies for authorization; never inline ability checks.
18
+ - Queued jobs for slow work; never block the request cycle.
8
19
  - Conventional commits: `feat(scope): ...`, `fix(scope): ...`.
@@ -1,7 +1,16 @@
1
- ## Node.js Stack Conventions
1
+ ---
2
+ paths:
3
+ - "**/*.js"
4
+ - "**/*.mjs"
5
+ - "**/*.cjs"
6
+ - "**/*.ts"
7
+ ---
8
+
9
+ ## Node.js / JavaScript Stack Conventions
2
10
 
3
11
  - ESM modules (import/export); no CommonJS `require()`.
4
12
  - Support Node and Bun runtimes when writing CLI tooling.
5
13
  - Graceful fallbacks when optional dependencies are missing.
6
14
  - All paths via `os.homedir()` or `path.join`; never hardcoded.
7
15
  - No interactive prompts in headless/CI runs.
16
+ - Prefer built-in `node:` modules over dependencies.
@@ -1,8 +1,19 @@
1
- ## Nuxt / Vue Stack Conventions
1
+ ---
2
+ paths:
3
+ - "**/*.vue"
4
+ - "composables/**"
5
+ - "pages/**"
6
+ - "layouts/**"
7
+ - "server/**"
8
+ - "nuxt.config.*"
9
+ ---
10
+
11
+ ## Nuxt Stack Conventions
2
12
 
3
13
  - Composition API only; no Options API.
4
14
  - TypeScript everywhere; no plain JS Vue files.
5
15
  - `composables/` for shared reactive logic.
6
16
  - `useFetch`/`useAsyncData` for server-side data.
7
17
  - `~` alias for project root imports.
18
+ - Server routes in `server/api/`; never fetch third parties from components.
8
19
  - Tailwind for styling; avoid scoped styles unless necessary.
@@ -0,0 +1,13 @@
1
+ ---
2
+ paths:
3
+ - "**/*.php"
4
+ ---
5
+
6
+ ## PHP Stack Conventions
7
+
8
+ - PHP 8.2+ syntax: constructor promotion, readonly, enums, match.
9
+ - `declare(strict_types=1)` in every file.
10
+ - Typed properties, parameters, and return types everywhere.
11
+ - Composer autoload (PSR-4); never `require` project files by path.
12
+ - Exceptions over error returns; never `@` error suppression.
13
+ - Pint (or the project formatter) must pass before a change is done.
@@ -1,3 +1,8 @@
1
+ ---
2
+ paths:
3
+ - "**/*.py"
4
+ ---
5
+
1
6
  ## Python Stack Conventions
2
7
 
3
8
  - Type hints on every function signature.
@@ -0,0 +1,14 @@
1
+ ---
2
+ paths:
3
+ - "**/*.tsx"
4
+ - "**/*.jsx"
5
+ ---
6
+
7
+ ## React / Next.js Stack Conventions
8
+
9
+ - TypeScript everywhere; no plain JSX files.
10
+ - Server Components by default; `"use client"` only when interaction demands it.
11
+ - App Router (`app/`); no new Pages Router code.
12
+ - shadcn/ui + Tailwind for UI primitives.
13
+ - Hooks for shared logic; no HOC or render-prop patterns in new code.
14
+ - Co-locate component, styles, and test; PascalCase component files.
@@ -0,0 +1,13 @@
1
+ ---
2
+ paths:
3
+ - "**/*.vue"
4
+ ---
5
+
6
+ ## Vue Stack Conventions
7
+
8
+ - Composition API only; no Options API.
9
+ - `<script setup lang="ts">` in every component.
10
+ - Props and emits fully typed (`defineProps`/`defineEmits` generics).
11
+ - Shared reactive logic lives in composables, not mixins.
12
+ - One component per file; PascalCase filenames.
13
+ - v-for always keyed; no index keys on mutable lists.