@monoes/monomindcli 2.7.5 → 2.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1234) hide show
  1. package/.claude/agents/architecture/system-design/arch-system-design.md +0 -0
  2. package/.claude/agents/consensus/crdt-synchronizer.md +0 -0
  3. package/.claude/agents/consensus/quorum-manager.md +80 -777
  4. package/.claude/agents/consensus/security-manager.md +0 -0
  5. package/.claude/agents/core/coder.md +0 -0
  6. package/.claude/agents/core/coordinator.md +0 -0
  7. package/.claude/agents/core/planner.md +0 -0
  8. package/.claude/agents/core/researcher.md +0 -0
  9. package/.claude/agents/core/reviewer.md +0 -0
  10. package/.claude/agents/core/tester.md +0 -0
  11. package/.claude/agents/design/design-monodesign.md +0 -0
  12. package/.claude/agents/engineering/engineering-ai-data-remediation-engineer.md +0 -0
  13. package/.claude/agents/engineering/engineering-ai-engineer.md +0 -0
  14. package/.claude/agents/engineering/engineering-autonomous-optimization-architect.md +0 -0
  15. package/.claude/agents/engineering/engineering-backend-architect.md +0 -0
  16. package/.claude/agents/engineering/engineering-code-reviewer.md +0 -0
  17. package/.claude/agents/engineering/engineering-data-engineer.md +0 -0
  18. package/.claude/agents/engineering/engineering-database-optimizer.md +0 -0
  19. package/.claude/agents/engineering/engineering-devops-automator.md +0 -0
  20. package/.claude/agents/engineering/engineering-embedded-firmware-engineer.md +0 -0
  21. package/.claude/agents/engineering/engineering-feishu-integration-developer.md +0 -0
  22. package/.claude/agents/engineering/engineering-frontend-developer.md +0 -0
  23. package/.claude/agents/engineering/engineering-git-workflow-master.md +0 -0
  24. package/.claude/agents/engineering/engineering-incident-response-commander.md +0 -0
  25. package/.claude/agents/engineering/engineering-mobile-app-builder.md +0 -0
  26. package/.claude/agents/engineering/engineering-rapid-prototyper.md +0 -0
  27. package/.claude/agents/engineering/engineering-security-engineer.md +0 -0
  28. package/.claude/agents/engineering/engineering-senior-developer.md +0 -0
  29. package/.claude/agents/engineering/engineering-software-architect.md +0 -0
  30. package/.claude/agents/engineering/engineering-solidity-smart-contract-engineer.md +0 -0
  31. package/.claude/agents/engineering/engineering-sre.md +0 -0
  32. package/.claude/agents/engineering/engineering-technical-writer.md +0 -0
  33. package/.claude/agents/engineering/engineering-threat-detection-engineer.md +0 -0
  34. package/.claude/agents/engineering/engineering-wechat-mini-program-developer.md +0 -0
  35. package/.claude/agents/github/code-review-swarm.md +0 -0
  36. package/.claude/agents/github/github-modes.md +0 -0
  37. package/.claude/agents/github/issue-tracker.md +0 -0
  38. package/.claude/agents/github/multi-repo-swarm.md +0 -0
  39. package/.claude/agents/github/pr-manager.md +0 -0
  40. package/.claude/agents/github/project-board-sync.md +0 -0
  41. package/.claude/agents/github/release-manager.md +0 -0
  42. package/.claude/agents/github/repo-architect.md +0 -0
  43. package/.claude/agents/github/swarm-issue.md +0 -0
  44. package/.claude/agents/github/swarm-pr.md +0 -0
  45. package/.claude/agents/github/sync-coordinator.md +0 -0
  46. package/.claude/agents/github/workflow-automation.md +0 -0
  47. package/.claude/agents/goal/goal-planner.md +0 -0
  48. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +89 -125
  49. package/.claude/agents/hive-mind/scout-explorer.md +0 -0
  50. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -0
  51. package/.claude/agents/hive-mind/worker-specialist.md +0 -0
  52. package/.claude/agents/marketing/marketing-competitive-content.md +0 -0
  53. package/.claude/agents/marketing/marketing-cro-specialist.md +0 -0
  54. package/.claude/agents/marketing/marketing-email-specialist.md +0 -0
  55. package/.claude/agents/marketing/marketing-launch-strategist.md +0 -0
  56. package/.claude/agents/marketing/marketing-pricing-strategist.md +0 -0
  57. package/.claude/agents/optimization/benchmark-suite.md +0 -0
  58. package/.claude/agents/optimization/load-balancer.md +0 -0
  59. package/.claude/agents/optimization/performance-monitor.md +0 -0
  60. package/.claude/agents/optimization/resource-allocator.md +0 -0
  61. package/.claude/agents/optimization/topology-optimizer.md +0 -0
  62. package/.claude/agents/schemas/architecture-output.json +0 -0
  63. package/.claude/agents/schemas/code-review-output.json +0 -0
  64. package/.claude/agents/schemas/generic-task-input.json +0 -0
  65. package/.claude/agents/schemas/implementation-output.json +0 -0
  66. package/.claude/agents/schemas/research-output.json +0 -0
  67. package/.claude/agents/schemas/security-audit-output.json +0 -0
  68. package/.claude/agents/schemas/test-report-output.json +0 -0
  69. package/.claude/agents/specialists/integration-architect.md +0 -0
  70. package/.claude/agents/specialized/agentic-identity-trust.md +0 -0
  71. package/.claude/agents/specialized/agents-orchestrator.md +0 -0
  72. package/.claude/agents/specialized/automation-governance-architect.md +0 -0
  73. package/.claude/agents/specialized/blockchain-security-auditor.md +0 -0
  74. package/.claude/agents/specialized/compliance-auditor.md +0 -0
  75. package/.claude/agents/specialized/identity-graph-operator.md +0 -0
  76. package/.claude/agents/specialized/lsp-index-engineer.md +0 -0
  77. package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -0
  78. package/.claude/agents/specialized/specialized-cultural-intelligence-strategist.md +0 -0
  79. package/.claude/agents/specialized/specialized-developer-advocate.md +0 -0
  80. package/.claude/agents/specialized/specialized-document-generator.md +0 -0
  81. package/.claude/agents/specialized/specialized-mcp-builder.md +0 -0
  82. package/.claude/agents/specialized/specialized-model-qa.md +0 -0
  83. package/.claude/agents/specialized/specialized-workflow-architect.md +0 -0
  84. package/.claude/agents/specialized/zk-steward.md +0 -0
  85. package/.claude/agents/swarm/mesh-coordinator.md +93 -359
  86. package/.claude/agents/templates/automation-smart-agent.md +0 -0
  87. package/.claude/agents/templates/coordinator-swarm-init.md +0 -0
  88. package/.claude/agents/testing/production-validator.md +0 -0
  89. package/.claude/agents/testing/tdd-london-swarm.md +0 -0
  90. package/.claude/agents/testing/testing-accessibility-auditor.md +0 -0
  91. package/.claude/agents/testing/testing-api-tester.md +0 -0
  92. package/.claude/agents/testing/testing-evidence-collector.md +0 -0
  93. package/.claude/agents/testing/testing-performance-benchmarker.md +0 -0
  94. package/.claude/agents/testing/testing-test-results-analyzer.md +0 -0
  95. package/.claude/agents/testing/testing-tool-evaluator.md +0 -0
  96. package/.claude/agents/testing/testing-workflow-optimizer.md +0 -0
  97. package/.claude/commands/agents/README.md +0 -0
  98. package/.claude/commands/agents/agent-capabilities.md +0 -0
  99. package/.claude/commands/agents/agent-coordination.md +0 -0
  100. package/.claude/commands/agents/agent-spawning.md +0 -0
  101. package/.claude/commands/agents/agent-types.md +0 -0
  102. package/.claude/commands/analysis/README.md +0 -0
  103. package/.claude/commands/analysis/bottleneck-detect.md +0 -0
  104. package/.claude/commands/analysis/performance-bottlenecks.md +0 -0
  105. package/.claude/commands/analysis/performance-report.md +0 -0
  106. package/.claude/commands/analysis/token-usage.md +0 -0
  107. package/.claude/commands/automation/README.md +0 -0
  108. package/.claude/commands/automation/auto-agent.md +0 -0
  109. package/.claude/commands/automation/self-healing.md +0 -0
  110. package/.claude/commands/automation/session-memory.md +0 -0
  111. package/.claude/commands/automation/smart-agents.md +0 -0
  112. package/.claude/commands/automation/smart-spawn.md +0 -0
  113. package/.claude/commands/automation/workflow-select.md +0 -0
  114. package/.claude/commands/coordination/README.md +0 -0
  115. package/.claude/commands/coordination/agent-spawn.md +0 -0
  116. package/.claude/commands/coordination/swarm-init.md +0 -0
  117. package/.claude/commands/coordination/task-orchestrate.md +0 -0
  118. package/.claude/commands/github/README.md +0 -0
  119. package/.claude/commands/github/github-modes.md +0 -0
  120. package/.claude/commands/github/issue-tracker.md +0 -0
  121. package/.claude/commands/github/pr-manager.md +0 -0
  122. package/.claude/commands/github/release-manager.md +0 -0
  123. package/.claude/commands/github/repo-architect.md +0 -0
  124. package/.claude/commands/github/sync-coordinator.md +0 -0
  125. package/.claude/commands/hive-mind/README.md +0 -0
  126. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -0
  127. package/.claude/commands/hive-mind/hive-mind-init.md +0 -0
  128. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -0
  129. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -0
  130. package/.claude/commands/hive-mind/hive-mind-status.md +0 -0
  131. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -0
  132. package/.claude/commands/hive-mind/hive-mind.md +0 -0
  133. package/.claude/commands/hooks/README.md +0 -0
  134. package/.claude/commands/hooks/overview.md +0 -0
  135. package/.claude/commands/hooks/post-edit.md +0 -0
  136. package/.claude/commands/hooks/post-task.md +0 -0
  137. package/.claude/commands/hooks/pre-edit.md +0 -0
  138. package/.claude/commands/hooks/pre-task.md +0 -0
  139. package/.claude/commands/hooks/session-end.md +0 -0
  140. package/.claude/commands/hooks/setup.md +0 -0
  141. package/.claude/commands/mastermind/_repeat.md +0 -0
  142. package/.claude/commands/mastermind/_taskfile.md +0 -0
  143. package/.claude/commands/mastermind/adr.md +0 -0
  144. package/.claude/commands/mastermind/approvev1.md +0 -0
  145. package/.claude/commands/mastermind/architect.md +0 -0
  146. package/.claude/commands/mastermind/autodev.md +0 -0
  147. package/.claude/commands/mastermind/brain.md +0 -0
  148. package/.claude/commands/mastermind/budget.md +0 -0
  149. package/.claude/commands/mastermind/build.md +0 -0
  150. package/.claude/commands/mastermind/code-review.md +0 -0
  151. package/.claude/commands/mastermind/content.md +0 -0
  152. package/.claude/commands/mastermind/createorg.md +0 -0
  153. package/.claude/commands/mastermind/createtask.md +0 -0
  154. package/.claude/commands/mastermind/debug.md +0 -0
  155. package/.claude/commands/mastermind/design.md +0 -0
  156. package/.claude/commands/mastermind/do.md +0 -0
  157. package/.claude/commands/mastermind/execute.md +0 -0
  158. package/.claude/commands/mastermind/finance.md +0 -0
  159. package/.claude/commands/mastermind/finish.md +0 -0
  160. package/.claude/commands/mastermind/graph-status.md +0 -0
  161. package/.claude/commands/mastermind/help.md +0 -0
  162. package/.claude/commands/mastermind/idea.md +0 -0
  163. package/.claude/commands/mastermind/ideate.md +0 -0
  164. package/.claude/commands/mastermind/improve.md +0 -0
  165. package/.claude/commands/mastermind/loops.md +0 -0
  166. package/.claude/commands/mastermind/marketing.md +0 -0
  167. package/.claude/commands/mastermind/master.md +0 -0
  168. package/.claude/commands/mastermind/memory.md +0 -0
  169. package/.claude/commands/mastermind/okf-export.md +0 -0
  170. package/.claude/commands/mastermind/okf-import.md +0 -0
  171. package/.claude/commands/mastermind/ops.md +0 -0
  172. package/.claude/commands/mastermind/orgs.md +0 -0
  173. package/.claude/commands/mastermind/orgstatus.md +0 -0
  174. package/.claude/commands/mastermind/plan.md +0 -0
  175. package/.claude/commands/mastermind/receive-review.md +0 -0
  176. package/.claude/commands/mastermind/references/antigravity-tools.md +0 -0
  177. package/.claude/commands/mastermind/references/claude-code-tools.md +0 -0
  178. package/.claude/commands/mastermind/references/codex-tools.md +0 -0
  179. package/.claude/commands/mastermind/references/copilot-tools.md +0 -0
  180. package/.claude/commands/mastermind/references/gemini-tools.md +0 -0
  181. package/.claude/commands/mastermind/references/pi-tools.md +0 -0
  182. package/.claude/commands/mastermind/release.md +0 -0
  183. package/.claude/commands/mastermind/repeat.md +0 -0
  184. package/.claude/commands/mastermind/research.md +0 -0
  185. package/.claude/commands/mastermind/review.md +0 -0
  186. package/.claude/commands/mastermind/runorg.md +0 -0
  187. package/.claude/commands/mastermind/runorgv1.md +0 -0
  188. package/.claude/commands/mastermind/sales.md +0 -0
  189. package/.claude/commands/mastermind/skill-builder.md +0 -0
  190. package/.claude/commands/mastermind/specialagents.md +0 -0
  191. package/.claude/commands/mastermind/stoporg.md +0 -0
  192. package/.claude/commands/mastermind/swarm.md +0 -0
  193. package/.claude/commands/mastermind/taskdev.md +0 -0
  194. package/.claude/commands/mastermind/tdd.md +0 -0
  195. package/.claude/commands/mastermind/techport.md +0 -0
  196. package/.claude/commands/mastermind/topology.md +0 -0
  197. package/.claude/commands/mastermind/understand.md +0 -0
  198. package/.claude/commands/mastermind/verify.md +0 -0
  199. package/.claude/commands/mastermind/worktree.md +0 -0
  200. package/.claude/commands/mastermind.md +0 -0
  201. package/.claude/commands/memory/README.md +0 -0
  202. package/.claude/commands/memory/memory-search.md +0 -0
  203. package/.claude/commands/monitoring/README.md +0 -0
  204. package/.claude/commands/monitoring/agent-metrics.md +0 -0
  205. package/.claude/commands/monitoring/agents.md +0 -0
  206. package/.claude/commands/monitoring/status.md +0 -0
  207. package/.claude/commands/monobrowse.md +0 -0
  208. package/.claude/commands/monoes/README.md +0 -0
  209. package/.claude/commands/monoes/install.md +0 -0
  210. package/.claude/commands/monoes/monoagent.md +0 -0
  211. package/.claude/commands/monoes/monoclip.md +0 -0
  212. package/.claude/commands/monoes/monotask.md +0 -0
  213. package/.claude/commands/monograph/README.md +0 -0
  214. package/.claude/commands/monograph/monograph-build.md +0 -0
  215. package/.claude/commands/monograph/monograph-search.md +0 -0
  216. package/.claude/commands/monograph/monograph-stats.md +0 -0
  217. package/.claude/commands/monograph/monograph-watch.md +0 -0
  218. package/.claude/commands/monograph/monograph-wiki.md +0 -0
  219. package/.claude/commands/optimization/auto-topology.md +0 -0
  220. package/.claude/commands/optimization/performance-optimize.md +0 -0
  221. package/.claude/commands/pair/README.md +0 -0
  222. package/.claude/commands/pair/examples.md +0 -0
  223. package/.claude/commands/pair/modes.md +0 -0
  224. package/.claude/commands/pair/session.md +0 -0
  225. package/.claude/commands/stream-chain/pipeline.md +0 -0
  226. package/.claude/commands/stream-chain/run.md +0 -0
  227. package/.claude/commands/swarm/README.md +0 -0
  228. package/.claude/commands/swarm/analysis.md +0 -0
  229. package/.claude/commands/swarm/development.md +0 -0
  230. package/.claude/commands/swarm/examples.md +0 -0
  231. package/.claude/commands/swarm/maintenance.md +0 -0
  232. package/.claude/commands/swarm/optimization.md +0 -0
  233. package/.claude/commands/swarm/research.md +0 -0
  234. package/.claude/commands/swarm/swarm.md +0 -0
  235. package/.claude/commands/swarm/testing.md +0 -0
  236. package/.claude/commands/tokens.md +0 -0
  237. package/.claude/commands/truth/start.md +0 -0
  238. package/.claude/commands/ts.md +0 -0
  239. package/.claude/commands/workflows/README.md +0 -0
  240. package/.claude/commands/workflows/development.md +0 -0
  241. package/.claude/commands/workflows/research.md +0 -0
  242. package/.claude/commands/workflows/workflow-create.md +0 -0
  243. package/.claude/commands/workflows/workflow-execute.md +0 -0
  244. package/.claude/commands/workflows/workflow-export.md +0 -0
  245. package/.claude/helpers/build-skill-registry.cjs +323 -0
  246. package/.claude/helpers/control-start.cjs +0 -0
  247. package/.claude/helpers/control-stop.cjs +0 -0
  248. package/.claude/helpers/event-logger.cjs +0 -0
  249. package/.claude/helpers/graphify-freshen.cjs +0 -0
  250. package/.claude/helpers/handlers/adr-draft-handler.cjs +0 -0
  251. package/.claude/helpers/handlers/agent-start-handler.cjs +0 -0
  252. package/.claude/helpers/handlers/budget-status-handler.cjs +0 -0
  253. package/.claude/helpers/handlers/capture-handler.cjs +0 -0
  254. package/.claude/helpers/handlers/compact-handler.cjs +0 -0
  255. package/.claude/helpers/handlers/edit-handler.cjs +0 -0
  256. package/.claude/helpers/handlers/gates-handler.cjs +0 -0
  257. package/.claude/helpers/handlers/graph-status-handler.cjs +0 -0
  258. package/.claude/helpers/handlers/loops-status-handler.cjs +0 -0
  259. package/.claude/helpers/handlers/route-handler.cjs +0 -0
  260. package/.claude/helpers/handlers/session-handler.cjs +0 -0
  261. package/.claude/helpers/handlers/session-restore-handler.cjs +1 -1
  262. package/.claude/helpers/handlers/stats-handler.cjs +0 -0
  263. package/.claude/helpers/handlers/task-handler.cjs +0 -0
  264. package/.claude/helpers/intelligence.cjs +0 -0
  265. package/.claude/helpers/learning-service.mjs +0 -0
  266. package/.claude/helpers/loop-tracker.cjs +0 -0
  267. package/.claude/helpers/mastermind-activate.cjs +0 -0
  268. package/.claude/helpers/memory-palace.cjs +0 -0
  269. package/.claude/helpers/memory.cjs +0 -0
  270. package/.claude/helpers/metrics-db.mjs +0 -0
  271. package/.claude/helpers/monolean-activate.cjs +0 -0
  272. package/.claude/helpers/monolean-config.cjs +0 -0
  273. package/.claude/helpers/monolean-instructions.cjs +0 -0
  274. package/.claude/helpers/monolean-propagate.cjs +0 -0
  275. package/.claude/helpers/monolean-tracker.cjs +0 -0
  276. package/.claude/helpers/router.cjs +158 -34
  277. package/.claude/helpers/session.cjs +0 -0
  278. package/.claude/helpers/skill-registry.json +4739 -645
  279. package/.claude/helpers/statusline.cjs +0 -0
  280. package/.claude/helpers/toggle-statusline.cjs +0 -0
  281. package/.claude/helpers/token-tracker.cjs +0 -0
  282. package/.claude/helpers/utils/agent-registrations.cjs +0 -0
  283. package/.claude/helpers/utils/fs-helpers.cjs +0 -0
  284. package/.claude/helpers/utils/micro-agents.cjs +0 -0
  285. package/.claude/helpers/utils/monograph.cjs +0 -0
  286. package/.claude/helpers/utils/system-pressure.cjs +0 -0
  287. package/.claude/helpers/utils/telemetry.cjs +0 -0
  288. package/.claude/settings.json +0 -0
  289. package/.claude/skills/agent-browser-testing/SKILL.md +0 -0
  290. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -0
  291. package/.claude/skills/github-issue-triage/SKILL.md +0 -0
  292. package/.claude/skills/github-repo-recap/SKILL.md +0 -0
  293. package/.claude/skills/github-toolkit/SKILL.md +60 -0
  294. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -0
  295. package/.claude/skills/hooks-automation/SKILL.md +0 -0
  296. package/.claude/skills/mastermind-access/SKILL.md +0 -0
  297. package/.claude/skills/mastermind-activity/SKILL.md +0 -0
  298. package/.claude/skills/mastermind-adapter-manager/SKILL.md +0 -0
  299. package/.claude/skills/mastermind-adapters/SKILL.md +0 -0
  300. package/.claude/skills/mastermind-agent-detail/SKILL.md +0 -0
  301. package/.claude/skills/mastermind-agent-select/SKILL.md +0 -0
  302. package/.claude/skills/mastermind-agents/SKILL.md +0 -0
  303. package/.claude/skills/mastermind-approval-detail/SKILL.md +0 -0
  304. package/.claude/skills/mastermind-approvev1/SKILL.md +0 -0
  305. package/.claude/skills/mastermind-architect/SKILL.md +0 -0
  306. package/.claude/skills/mastermind-autodev/SKILL.md +0 -0
  307. package/.claude/skills/mastermind-backup/SKILL.md +0 -0
  308. package/.claude/skills/mastermind-bootstrap/SKILL.md +0 -0
  309. package/.claude/skills/mastermind-budgets/SKILL.md +0 -0
  310. package/.claude/skills/mastermind-build/SKILL.md +0 -0
  311. package/.claude/skills/mastermind-companies/SKILL.md +0 -0
  312. package/.claude/skills/mastermind-content/SKILL.md +0 -0
  313. package/.claude/skills/mastermind-costs/SKILL.md +0 -0
  314. package/.claude/skills/mastermind-createorg/SKILL.md +0 -0
  315. package/.claude/skills/mastermind-debug/SKILL.md +0 -0
  316. package/.claude/skills/mastermind-delegation/SKILL.md +0 -0
  317. package/.claude/skills/mastermind-design/SKILL.md +0 -0
  318. package/.claude/skills/mastermind-diagnose/SKILL.md +0 -0
  319. package/.claude/skills/mastermind-env/SKILL.md +0 -0
  320. package/.claude/skills/mastermind-environments/SKILL.md +0 -0
  321. package/.claude/skills/mastermind-execute/SKILL.md +0 -0
  322. package/.claude/skills/mastermind-export/SKILL.md +0 -0
  323. package/.claude/skills/mastermind-finance/SKILL.md +0 -0
  324. package/.claude/skills/mastermind-finish/SKILL.md +0 -0
  325. package/.claude/skills/mastermind-goal-detail/SKILL.md +0 -0
  326. package/.claude/skills/mastermind-goals/SKILL.md +0 -0
  327. package/.claude/skills/mastermind-heartbeatv1/SKILL.md +0 -0
  328. package/.claude/skills/mastermind-idea/SKILL.md +0 -0
  329. package/.claude/skills/mastermind-import/SKILL.md +0 -0
  330. package/.claude/skills/mastermind-inbox/SKILL.md +0 -0
  331. package/.claude/skills/mastermind-instance/SKILL.md +0 -0
  332. package/.claude/skills/mastermind-instance-settings/SKILL.md +0 -0
  333. package/.claude/skills/mastermind-intake/SKILL.md +0 -0
  334. package/.claude/skills/mastermind-invite-landing/SKILL.md +0 -0
  335. package/.claude/skills/mastermind-invites/SKILL.md +0 -0
  336. package/.claude/skills/mastermind-issue-detail/SKILL.md +0 -0
  337. package/.claude/skills/mastermind-issues/SKILL.md +0 -0
  338. package/.claude/skills/mastermind-join-queue/SKILL.md +0 -0
  339. package/.claude/skills/mastermind-liveness/SKILL.md +0 -0
  340. package/.claude/skills/mastermind-marketing/SKILL.md +0 -0
  341. package/.claude/skills/mastermind-marketing/references/copywriting-frameworks.md +0 -0
  342. package/.claude/skills/mastermind-marketing/references/persuasion-psychology.md +0 -0
  343. package/.claude/skills/mastermind-memory/SKILL.md +0 -0
  344. package/.claude/skills/mastermind-monitor/SKILL.md +0 -0
  345. package/.claude/skills/mastermind-monotask/SKILL.md +0 -0
  346. package/.claude/skills/mastermind-my-issues/SKILL.md +0 -0
  347. package/.claude/skills/mastermind-new-agent/SKILL.md +0 -0
  348. package/.claude/skills/mastermind-ops/SKILL.md +0 -0
  349. package/.claude/skills/mastermind-org-chart/SKILL.md +0 -0
  350. package/.claude/skills/mastermind-org-settings/SKILL.md +0 -0
  351. package/.claude/skills/mastermind-orgs/SKILL.md +0 -0
  352. package/.claude/skills/mastermind-orgstatus/SKILL.md +0 -0
  353. package/.claude/skills/mastermind-plan/SKILL.md +0 -0
  354. package/.claude/skills/mastermind-plan-to-tasks/SKILL.md +0 -0
  355. package/.claude/skills/mastermind-plugin-manager/SKILL.md +0 -0
  356. package/.claude/skills/mastermind-plugin-settings/SKILL.md +0 -0
  357. package/.claude/skills/mastermind-plugins/SKILL.md +0 -0
  358. package/.claude/skills/mastermind-profile/SKILL.md +0 -0
  359. package/.claude/skills/mastermind-project-detail/SKILL.md +0 -0
  360. package/.claude/skills/mastermind-project-workspace/SKILL.md +0 -0
  361. package/.claude/skills/mastermind-projects/SKILL.md +0 -0
  362. package/.claude/skills/mastermind-protocol/SKILL.md +0 -0
  363. package/.claude/skills/mastermind-receive-review/SKILL.md +0 -0
  364. package/.claude/skills/mastermind-release/SKILL.md +0 -0
  365. package/.claude/skills/mastermind-repeat/SKILL.md +0 -0
  366. package/.claude/skills/mastermind-research/SKILL.md +0 -0
  367. package/.claude/skills/mastermind-review/SKILL.md +0 -0
  368. package/.claude/skills/mastermind-routine-detail/SKILL.md +0 -0
  369. package/.claude/skills/mastermind-routines/SKILL.md +0 -0
  370. package/.claude/skills/mastermind-runorg/SKILL.md +0 -0
  371. package/.claude/skills/mastermind-runorgv1/SKILL.md +0 -0
  372. package/.claude/skills/mastermind-sales/SKILL.md +0 -0
  373. package/.claude/skills/mastermind-search/SKILL.md +0 -0
  374. package/.claude/skills/mastermind-secrets/SKILL.md +0 -0
  375. package/.claude/skills/mastermind-skill-builder/SKILL.md +0 -0
  376. package/.claude/skills/mastermind-skills/SKILL.md +0 -0
  377. package/.claude/skills/mastermind-stoporg/SKILL.md +0 -0
  378. package/.claude/skills/mastermind-taskdev/SKILL.md +0 -0
  379. package/.claude/skills/mastermind-taskdev/code-quality-reviewer-prompt.md +0 -0
  380. package/.claude/skills/mastermind-taskdev/final-reviewer-prompt.md +0 -0
  381. package/.claude/skills/mastermind-taskdev/implementer-prompt.md +0 -0
  382. package/.claude/skills/mastermind-taskdev/spec-reviewer-prompt.md +0 -0
  383. package/.claude/skills/mastermind-tasks/SKILL.md +0 -0
  384. package/.claude/skills/mastermind-tdd/SKILL.md +0 -0
  385. package/.claude/skills/mastermind-techport/SKILL.md +0 -0
  386. package/.claude/skills/mastermind-threads/SKILL.md +0 -0
  387. package/.claude/skills/mastermind-tree-control/SKILL.md +0 -0
  388. package/.claude/skills/mastermind-verify/SKILL.md +0 -0
  389. package/.claude/skills/mastermind-wiki/SKILL.md +0 -0
  390. package/.claude/skills/mastermind-workspace-detail/SKILL.md +0 -0
  391. package/.claude/skills/mastermind-workspaces/SKILL.md +0 -0
  392. package/.claude/skills/mastermind-worktree/SKILL.md +0 -0
  393. package/.claude/skills/memory-toolkit/SKILL.md +75 -0
  394. package/.claude/skills/monodesign/SKILL.md +0 -0
  395. package/.claude/skills/monodesign/adapt.md +0 -0
  396. package/.claude/skills/monodesign/agents/monodesign-asset-producer.md +0 -0
  397. package/.claude/skills/monodesign/agents/monodesign-manual-edit-applier.md +0 -0
  398. package/.claude/skills/monodesign/animate.md +0 -0
  399. package/.claude/skills/monodesign/audit.md +0 -0
  400. package/.claude/skills/monodesign/bolder.md +0 -0
  401. package/.claude/skills/monodesign/clarify.md +0 -0
  402. package/.claude/skills/monodesign/colorize.md +0 -0
  403. package/.claude/skills/monodesign/craft.md +0 -0
  404. package/.claude/skills/monodesign/critique.md +0 -0
  405. package/.claude/skills/monodesign/delight.md +0 -0
  406. package/.claude/skills/monodesign/distill.md +0 -0
  407. package/.claude/skills/monodesign/document.md +0 -0
  408. package/.claude/skills/monodesign/extract.md +0 -0
  409. package/.claude/skills/monodesign/harden.md +0 -0
  410. package/.claude/skills/monodesign/init.md +0 -0
  411. package/.claude/skills/monodesign/layout.md +0 -0
  412. package/.claude/skills/monodesign/live.md +0 -0
  413. package/.claude/skills/monodesign/onboard.md +0 -0
  414. package/.claude/skills/monodesign/optimize.md +0 -0
  415. package/.claude/skills/monodesign/overdrive.md +0 -0
  416. package/.claude/skills/monodesign/polish.md +0 -0
  417. package/.claude/skills/monodesign/quieter.md +0 -0
  418. package/.claude/skills/monodesign/reference/adapt.md +0 -0
  419. package/.claude/skills/monodesign/reference/adapt.native.md +0 -0
  420. package/.claude/skills/monodesign/reference/android.md +0 -0
  421. package/.claude/skills/monodesign/reference/animate.md +0 -0
  422. package/.claude/skills/monodesign/reference/antipatterns-catalog.md +0 -0
  423. package/.claude/skills/monodesign/reference/audit.md +0 -0
  424. package/.claude/skills/monodesign/reference/audit.native.md +0 -0
  425. package/.claude/skills/monodesign/reference/bolder.md +0 -0
  426. package/.claude/skills/monodesign/reference/brand-workflow.md +0 -0
  427. package/.claude/skills/monodesign/reference/brand.md +0 -0
  428. package/.claude/skills/monodesign/reference/clarify.md +0 -0
  429. package/.claude/skills/monodesign/reference/codex.md +0 -0
  430. package/.claude/skills/monodesign/reference/cognitive-load.md +0 -0
  431. package/.claude/skills/monodesign/reference/color-and-contrast.md +0 -0
  432. package/.claude/skills/monodesign/reference/colorize.md +0 -0
  433. package/.claude/skills/monodesign/reference/component-specs.md +0 -0
  434. package/.claude/skills/monodesign/reference/component-states.md +0 -0
  435. package/.claude/skills/monodesign/reference/component-system.md +0 -0
  436. package/.claude/skills/monodesign/reference/copy-formulas.md +0 -0
  437. package/.claude/skills/monodesign/reference/craft.md +0 -0
  438. package/.claude/skills/monodesign/reference/critique.md +0 -0
  439. package/.claude/skills/monodesign/reference/delight.md +0 -0
  440. package/.claude/skills/monodesign/reference/design-principles.md +0 -0
  441. package/.claude/skills/monodesign/reference/distill.md +0 -0
  442. package/.claude/skills/monodesign/reference/document.md +0 -0
  443. package/.claude/skills/monodesign/reference/extract.md +0 -0
  444. package/.claude/skills/monodesign/reference/harden.md +0 -0
  445. package/.claude/skills/monodesign/reference/heuristics-scoring.md +0 -0
  446. package/.claude/skills/monodesign/reference/hooks.md +0 -0
  447. package/.claude/skills/monodesign/reference/image-prompts.md +0 -0
  448. package/.claude/skills/monodesign/reference/init.md +0 -0
  449. package/.claude/skills/monodesign/reference/interaction-design.md +0 -0
  450. package/.claude/skills/monodesign/reference/ios.md +0 -0
  451. package/.claude/skills/monodesign/reference/layout.md +0 -0
  452. package/.claude/skills/monodesign/reference/live.md +0 -0
  453. package/.claude/skills/monodesign/reference/motion-design.md +0 -0
  454. package/.claude/skills/monodesign/reference/onboard.md +0 -0
  455. package/.claude/skills/monodesign/reference/optimize.md +0 -0
  456. package/.claude/skills/monodesign/reference/overdrive.md +0 -0
  457. package/.claude/skills/monodesign/reference/personas.md +0 -0
  458. package/.claude/skills/monodesign/reference/polish.md +0 -0
  459. package/.claude/skills/monodesign/reference/pre-delivery-checklist.md +0 -0
  460. package/.claude/skills/monodesign/reference/product.md +0 -0
  461. package/.claude/skills/monodesign/reference/quieter.md +0 -0
  462. package/.claude/skills/monodesign/reference/responsive-design.md +0 -0
  463. package/.claude/skills/monodesign/reference/shape.md +0 -0
  464. package/.claude/skills/monodesign/reference/spatial-design.md +0 -0
  465. package/.claude/skills/monodesign/reference/teach.md +0 -0
  466. package/.claude/skills/monodesign/reference/token-architecture.md +0 -0
  467. package/.claude/skills/monodesign/reference/typeset.md +0 -0
  468. package/.claude/skills/monodesign/reference/typography.md +0 -0
  469. package/.claude/skills/monodesign/reference/ux-research.md +0 -0
  470. package/.claude/skills/monodesign/reference/ux-rules.md +0 -0
  471. package/.claude/skills/monodesign/reference/ux-writing.md +0 -0
  472. package/.claude/skills/monodesign/scripts/command-metadata.json +0 -0
  473. package/.claude/skills/monodesign/scripts/context-signals.mjs +0 -0
  474. package/.claude/skills/monodesign/scripts/context.mjs +0 -0
  475. package/.claude/skills/monodesign/scripts/critique-storage.mjs +0 -0
  476. package/.claude/skills/monodesign/scripts/detect-csp.mjs +0 -0
  477. package/.claude/skills/monodesign/scripts/detect.mjs +0 -0
  478. package/.claude/skills/monodesign/scripts/detector/browser/injected/index.mjs +0 -0
  479. package/.claude/skills/monodesign/scripts/detector/cli/main.mjs +0 -0
  480. package/.claude/skills/monodesign/scripts/detector/design-system.mjs +0 -0
  481. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns-browser.js +7 -0
  482. package/.claude/skills/monodesign/scripts/detector/detect-antipatterns.mjs +0 -0
  483. package/.claude/skills/monodesign/scripts/detector/engines/browser/detect-url.mjs +0 -0
  484. package/.claude/skills/monodesign/scripts/detector/engines/browser/drivers.mjs +0 -0
  485. package/.claude/skills/monodesign/scripts/detector/engines/regex/detect-text.mjs +0 -0
  486. package/.claude/skills/monodesign/scripts/detector/engines/static-html/css-cascade.mjs +0 -0
  487. package/.claude/skills/monodesign/scripts/detector/engines/static-html/detect-html.mjs +0 -0
  488. package/.claude/skills/monodesign/scripts/detector/engines/visual/screenshot-contrast.mjs +0 -0
  489. package/.claude/skills/monodesign/scripts/detector/findings.mjs +0 -0
  490. package/.claude/skills/monodesign/scripts/detector/fix/css-regions.mjs +0 -0
  491. package/.claude/skills/monodesign/scripts/detector/fix/fixers.mjs +0 -0
  492. package/.claude/skills/monodesign/scripts/detector/fix/index.mjs +0 -0
  493. package/.claude/skills/monodesign/scripts/detector/node/file-system.mjs +0 -0
  494. package/.claude/skills/monodesign/scripts/detector/profile/profiler.mjs +0 -0
  495. package/.claude/skills/monodesign/scripts/detector/registry/antipatterns.mjs +0 -0
  496. package/.claude/skills/monodesign/scripts/detector/rules/checks.mjs +7 -0
  497. package/.claude/skills/monodesign/scripts/detector/shared/color.mjs +0 -0
  498. package/.claude/skills/monodesign/scripts/detector/shared/constants.mjs +0 -0
  499. package/.claude/skills/monodesign/scripts/detector/shared/fonts.mjs +0 -0
  500. package/.claude/skills/monodesign/scripts/detector/shared/inline-ignores.mjs +0 -0
  501. package/.claude/skills/monodesign/scripts/detector/shared/page.mjs +0 -0
  502. package/.claude/skills/monodesign/scripts/hook-admin.mjs +0 -0
  503. package/.claude/skills/monodesign/scripts/hook-before-edit.mjs +0 -0
  504. package/.claude/skills/monodesign/scripts/hook-lib.mjs +0 -0
  505. package/.claude/skills/monodesign/scripts/hook.mjs +0 -0
  506. package/.claude/skills/monodesign/scripts/lib/design-parser.mjs +0 -0
  507. package/.claude/skills/monodesign/scripts/lib/is-generated.mjs +0 -0
  508. package/.claude/skills/monodesign/scripts/lib/monodesign-config.mjs +0 -0
  509. package/.claude/skills/monodesign/scripts/lib/monodesign-paths.mjs +0 -0
  510. package/.claude/skills/monodesign/scripts/lib/provider.mjs +0 -0
  511. package/.claude/skills/monodesign/scripts/lib/target-args.mjs +0 -0
  512. package/.claude/skills/monodesign/scripts/live/browser-script-parts.mjs +0 -0
  513. package/.claude/skills/monodesign/scripts/live/completion.mjs +0 -0
  514. package/.claude/skills/monodesign/scripts/live/event-validation.mjs +0 -0
  515. package/.claude/skills/monodesign/scripts/live/insert-ui.mjs +0 -0
  516. package/.claude/skills/monodesign/scripts/live/manual-apply.mjs +0 -0
  517. package/.claude/skills/monodesign/scripts/live/manual-edit-routes.mjs +0 -0
  518. package/.claude/skills/monodesign/scripts/live/manual-edits-buffer.mjs +0 -0
  519. package/.claude/skills/monodesign/scripts/live/session-store.mjs +0 -0
  520. package/.claude/skills/monodesign/scripts/live/svelte-component.mjs +0 -0
  521. package/.claude/skills/monodesign/scripts/live/sveltekit-adapter.mjs +0 -0
  522. package/.claude/skills/monodesign/scripts/live/ui-core.mjs +0 -0
  523. package/.claude/skills/monodesign/scripts/live/vocabulary.mjs +0 -0
  524. package/.claude/skills/monodesign/scripts/live-accept.mjs +0 -0
  525. package/.claude/skills/monodesign/scripts/live-browser-dom.js +0 -0
  526. package/.claude/skills/monodesign/scripts/live-browser-session.js +0 -0
  527. package/.claude/skills/monodesign/scripts/live-browser.js +0 -0
  528. package/.claude/skills/monodesign/scripts/live-commit-manual-edits.mjs +0 -0
  529. package/.claude/skills/monodesign/scripts/live-complete.mjs +0 -0
  530. package/.claude/skills/monodesign/scripts/live-copy-edit-agent.mjs +0 -0
  531. package/.claude/skills/monodesign/scripts/live-discard-manual-edits.mjs +0 -0
  532. package/.claude/skills/monodesign/scripts/live-inject.mjs +0 -0
  533. package/.claude/skills/monodesign/scripts/live-insert.mjs +0 -0
  534. package/.claude/skills/monodesign/scripts/live-manual-edit-evidence.mjs +0 -0
  535. package/.claude/skills/monodesign/scripts/live-poll.mjs +0 -0
  536. package/.claude/skills/monodesign/scripts/live-resume.mjs +0 -0
  537. package/.claude/skills/monodesign/scripts/live-server.mjs +38 -1
  538. package/.claude/skills/monodesign/scripts/live-status.mjs +0 -0
  539. package/.claude/skills/monodesign/scripts/live-target.mjs +0 -0
  540. package/.claude/skills/monodesign/scripts/live-wrap.mjs +0 -0
  541. package/.claude/skills/monodesign/scripts/live.mjs +0 -0
  542. package/.claude/skills/monodesign/scripts/modern-screenshot.umd.js +0 -0
  543. package/.claude/skills/monodesign/scripts/palette.mjs +0 -0
  544. package/.claude/skills/monodesign/scripts/pin.mjs +0 -0
  545. package/.claude/skills/monodesign/shape.md +0 -0
  546. package/.claude/skills/monodesign/teach.md +0 -0
  547. package/.claude/skills/monodesign/typeset.md +0 -0
  548. package/.claude/skills/monolean/SKILL.md +0 -0
  549. package/.claude/skills/monolean-audit/SKILL.md +0 -0
  550. package/.claude/skills/monolean-debt/SKILL.md +0 -0
  551. package/.claude/skills/monolean-help/SKILL.md +0 -0
  552. package/.claude/skills/monolean-review/SKILL.md +0 -0
  553. package/.claude/skills/monomind/browse-agentcore.md +0 -0
  554. package/.claude/skills/monomind/browse-electron.md +0 -0
  555. package/.claude/skills/monomind/browse-qa.md +0 -0
  556. package/.claude/skills/monomind/browse-references/authentication.md +0 -0
  557. package/.claude/skills/monomind/browse-references/trust-boundaries.md +0 -0
  558. package/.claude/skills/monomind/browse-references/video-recording.md +0 -0
  559. package/.claude/skills/monomind/browse-slack.md +0 -0
  560. package/.claude/skills/monomind/browse-vercel.md +0 -0
  561. package/.claude/skills/monomind/browse.md +0 -0
  562. package/.claude/skills/monomotion/SKILL.md +0 -0
  563. package/.claude/skills/monomotion/rules/api-control.md +0 -0
  564. package/.claude/skills/monomotion/rules/effects.md +0 -0
  565. package/.claude/skills/monomotion/rules/integration.md +0 -0
  566. package/.claude/skills/monomotion/rules/scroll.md +0 -0
  567. package/.claude/skills/monomotion/rules/sequencing.md +0 -0
  568. package/.claude/skills/monomotion/rules/svg.md +0 -0
  569. package/.claude/skills/monomotion/rules/text.md +0 -0
  570. package/.claude/skills/pair-programming/SKILL.md +0 -0
  571. package/.claude/skills/performance-analysis/SKILL.md +0 -0
  572. package/.claude/skills/skill-builder/SKILL.md +0 -0
  573. package/.claude/skills/specialagent/SKILL.md +0 -0
  574. package/.claude/skills/stop-slop/SKILL.md +0 -0
  575. package/.claude/skills/stop-slop/references/examples.md +0 -0
  576. package/.claude/skills/stop-slop/references/phrases.md +0 -0
  577. package/.claude/skills/stop-slop/references/structures.md +0 -0
  578. package/.claude/skills/swarm-advanced/SKILL.md +0 -0
  579. package/.claude/skills/swarm-orchestration/SKILL.md +0 -0
  580. package/.claude/skills/verification-quality/SKILL.md +0 -0
  581. package/README.md +0 -0
  582. package/bin/cli.js +14 -7
  583. package/bin/preinstall.cjs +0 -0
  584. package/dist/src/commands/agent-ops.d.ts.map +1 -1
  585. package/dist/src/commands/agent-ops.js +32 -2
  586. package/dist/src/commands/agent-ops.js.map +1 -1
  587. package/dist/src/commands/browse-workflow.d.ts.map +1 -1
  588. package/dist/src/commands/browse-workflow.js +30 -0
  589. package/dist/src/commands/browse-workflow.js.map +1 -1
  590. package/dist/src/commands/cleanup.d.ts.map +1 -1
  591. package/dist/src/commands/cleanup.js +6 -2
  592. package/dist/src/commands/cleanup.js.map +1 -1
  593. package/dist/src/commands/hooks-extended-commands.d.ts.map +1 -1
  594. package/dist/src/commands/hooks-extended-commands.js +10 -2
  595. package/dist/src/commands/hooks-extended-commands.js.map +1 -1
  596. package/dist/src/commands/hooks-routing-commands.d.ts.map +1 -1
  597. package/dist/src/commands/hooks-routing-commands.js +8 -22
  598. package/dist/src/commands/hooks-routing-commands.js.map +1 -1
  599. package/dist/src/commands/memory-crud.d.ts.map +1 -1
  600. package/dist/src/commands/memory-crud.js +34 -3
  601. package/dist/src/commands/memory-crud.js.map +1 -1
  602. package/dist/src/commands/org-observe.d.ts.map +1 -1
  603. package/dist/src/commands/org-observe.js +50 -6
  604. package/dist/src/commands/org-observe.js.map +1 -1
  605. package/dist/src/commands/performance.d.ts.map +1 -1
  606. package/dist/src/commands/performance.js +38 -5
  607. package/dist/src/commands/performance.js.map +1 -1
  608. package/dist/src/commands/security-misc.d.ts.map +1 -1
  609. package/dist/src/commands/security-misc.js +18 -3
  610. package/dist/src/commands/security-misc.js.map +1 -1
  611. package/dist/src/index.d.ts.map +1 -1
  612. package/dist/src/index.js +27 -31
  613. package/dist/src/index.js.map +1 -1
  614. package/dist/src/mcp-client.d.ts.map +1 -1
  615. package/dist/src/mcp-client.js +96 -0
  616. package/dist/src/mcp-client.js.map +1 -1
  617. package/dist/src/mcp-tools/agent-tools.d.ts.map +1 -1
  618. package/dist/src/mcp-tools/agent-tools.js +5 -2
  619. package/dist/src/mcp-tools/agent-tools.js.map +1 -1
  620. package/dist/src/mcp-tools/autopilot-tools.js +2 -2
  621. package/dist/src/mcp-tools/autopilot-tools.js.map +1 -1
  622. package/dist/src/mcp-tools/embeddings-tools.js +2 -2
  623. package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
  624. package/dist/src/mcp-tools/guidance-tools.js +1 -1
  625. package/dist/src/mcp-tools/guidance-tools.js.map +1 -1
  626. package/dist/src/mcp-tools/hive-mind-tools.js +4 -4
  627. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  628. package/dist/src/mcp-tools/hooks-intelligence.js +1 -1
  629. package/dist/src/mcp-tools/hooks-intelligence.js.map +1 -1
  630. package/dist/src/mcp-tools/hooks-routing.js +1 -1
  631. package/dist/src/mcp-tools/hooks-routing.js.map +1 -1
  632. package/dist/src/mcp-tools/session-tools.d.ts.map +1 -1
  633. package/dist/src/mcp-tools/session-tools.js +16 -3
  634. package/dist/src/mcp-tools/session-tools.js.map +1 -1
  635. package/dist/src/mcp-tools/transfer-tools.d.ts +16 -5
  636. package/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -1
  637. package/dist/src/mcp-tools/transfer-tools.js +21 -234
  638. package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
  639. package/dist/src/memory/ewc-consolidation.d.ts +26 -14
  640. package/dist/src/memory/ewc-consolidation.d.ts.map +1 -1
  641. package/dist/src/memory/ewc-consolidation.js +26 -14
  642. package/dist/src/memory/ewc-consolidation.js.map +1 -1
  643. package/dist/src/memory/intelligence.d.ts.map +1 -1
  644. package/dist/src/memory/intelligence.js +17 -1
  645. package/dist/src/memory/intelligence.js.map +1 -1
  646. package/dist/src/memory/memory-bridge.d.ts +5 -1
  647. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  648. package/dist/src/memory/memory-bridge.js +34 -3
  649. package/dist/src/memory/memory-bridge.js.map +1 -1
  650. package/dist/src/memory/memory-read.d.ts +4 -0
  651. package/dist/src/memory/memory-read.d.ts.map +1 -1
  652. package/dist/src/memory/memory-read.js +5 -2
  653. package/dist/src/memory/memory-read.js.map +1 -1
  654. package/dist/src/orgrt/daemon.d.ts.map +1 -1
  655. package/dist/src/orgrt/daemon.js +6 -2
  656. package/dist/src/orgrt/daemon.js.map +1 -1
  657. package/dist/src/routing/embed-worker.js +8 -0
  658. package/dist/src/routing/embed-worker.js.map +1 -1
  659. package/dist/src/routing/route-layer-factory.d.ts +15 -0
  660. package/dist/src/routing/route-layer-factory.d.ts.map +1 -1
  661. package/dist/src/routing/route-layer-factory.js +44 -2
  662. package/dist/src/routing/route-layer-factory.js.map +1 -1
  663. package/dist/tsconfig.tsbuildinfo +1 -1
  664. package/package.json +9 -6
  665. package/scripts/deploy-ipfs-node.sh +0 -0
  666. package/scripts/setup-ipfs-registry.md +0 -0
  667. package/scripts/understand-analyze.mjs +0 -0
  668. package/.claude/agents/hive-mind/queen-coordinator.md +0 -202
  669. package/.claude/helpers/extras-registry.json +0 -5141
  670. package/dist/dashboard/server.js +0 -137
  671. package/dist/src/agents/halt-signal.d.ts +0 -25
  672. package/dist/src/agents/halt-signal.d.ts.map +0 -1
  673. package/dist/src/agents/halt-signal.js +0 -76
  674. package/dist/src/agents/halt-signal.js.map +0 -1
  675. package/dist/src/agents/index.d.ts +0 -18
  676. package/dist/src/agents/index.d.ts.map +0 -1
  677. package/dist/src/agents/index.js +0 -13
  678. package/dist/src/agents/index.js.map +0 -1
  679. package/dist/src/agents/managed-agent.d.ts +0 -41
  680. package/dist/src/agents/managed-agent.d.ts.map +0 -1
  681. package/dist/src/agents/managed-agent.js +0 -69
  682. package/dist/src/agents/managed-agent.js.map +0 -1
  683. package/dist/src/agents/prompt-experiment.d.ts +0 -23
  684. package/dist/src/agents/prompt-experiment.d.ts.map +0 -1
  685. package/dist/src/agents/prompt-experiment.js +0 -49
  686. package/dist/src/agents/prompt-experiment.js.map +0 -1
  687. package/dist/src/agents/prompt-version-manager.d.ts +0 -22
  688. package/dist/src/agents/prompt-version-manager.d.ts.map +0 -1
  689. package/dist/src/agents/prompt-version-manager.js +0 -80
  690. package/dist/src/agents/prompt-version-manager.js.map +0 -1
  691. package/dist/src/agents/registry-query.d.ts +0 -71
  692. package/dist/src/agents/registry-query.d.ts.map +0 -1
  693. package/dist/src/agents/registry-query.js +0 -125
  694. package/dist/src/agents/registry-query.js.map +0 -1
  695. package/dist/src/agents/score-decay.d.ts +0 -19
  696. package/dist/src/agents/score-decay.d.ts.map +0 -1
  697. package/dist/src/agents/score-decay.js +0 -22
  698. package/dist/src/agents/score-decay.js.map +0 -1
  699. package/dist/src/agents/shared-instructions-loader.d.ts +0 -13
  700. package/dist/src/agents/shared-instructions-loader.d.ts.map +0 -1
  701. package/dist/src/agents/shared-instructions-loader.js +0 -40
  702. package/dist/src/agents/shared-instructions-loader.js.map +0 -1
  703. package/dist/src/agents/specialization-scorer.d.ts +0 -54
  704. package/dist/src/agents/specialization-scorer.d.ts.map +0 -1
  705. package/dist/src/agents/specialization-scorer.js +0 -212
  706. package/dist/src/agents/specialization-scorer.js.map +0 -1
  707. package/dist/src/agents/termination-watcher.d.ts +0 -30
  708. package/dist/src/agents/termination-watcher.d.ts.map +0 -1
  709. package/dist/src/agents/termination-watcher.js +0 -84
  710. package/dist/src/agents/termination-watcher.js.map +0 -1
  711. package/dist/src/agents/trigger-index.d.ts +0 -20
  712. package/dist/src/agents/trigger-index.d.ts.map +0 -1
  713. package/dist/src/agents/trigger-index.js +0 -38
  714. package/dist/src/agents/trigger-index.js.map +0 -1
  715. package/dist/src/agents/trigger-scanner.d.ts +0 -64
  716. package/dist/src/agents/trigger-scanner.d.ts.map +0 -1
  717. package/dist/src/agents/trigger-scanner.js +0 -308
  718. package/dist/src/agents/trigger-scanner.js.map +0 -1
  719. package/dist/src/agents/version-diff.d.ts +0 -18
  720. package/dist/src/agents/version-diff.d.ts.map +0 -1
  721. package/dist/src/agents/version-diff.js +0 -64
  722. package/dist/src/agents/version-diff.js.map +0 -1
  723. package/dist/src/agents/version-store.d.ts +0 -60
  724. package/dist/src/agents/version-store.d.ts.map +0 -1
  725. package/dist/src/agents/version-store.js +0 -235
  726. package/dist/src/agents/version-store.js.map +0 -1
  727. package/dist/src/benchmarks/pretrain/index.d.ts +0 -45
  728. package/dist/src/benchmarks/pretrain/index.d.ts.map +0 -1
  729. package/dist/src/benchmarks/pretrain/index.js +0 -404
  730. package/dist/src/benchmarks/pretrain/index.js.map +0 -1
  731. package/dist/src/browser/actions.d.ts +0 -29
  732. package/dist/src/browser/actions.d.ts.map +0 -1
  733. package/dist/src/browser/actions.js +0 -398
  734. package/dist/src/browser/actions.js.map +0 -1
  735. package/dist/src/browser/adapters/google.d.ts +0 -3
  736. package/dist/src/browser/adapters/google.d.ts.map +0 -1
  737. package/dist/src/browser/adapters/google.js +0 -17
  738. package/dist/src/browser/adapters/google.js.map +0 -1
  739. package/dist/src/browser/adapters/microsoft.d.ts +0 -3
  740. package/dist/src/browser/adapters/microsoft.d.ts.map +0 -1
  741. package/dist/src/browser/adapters/microsoft.js +0 -16
  742. package/dist/src/browser/adapters/microsoft.js.map +0 -1
  743. package/dist/src/browser/batch.d.ts +0 -5
  744. package/dist/src/browser/batch.d.ts.map +0 -1
  745. package/dist/src/browser/batch.js +0 -2
  746. package/dist/src/browser/batch.js.map +0 -1
  747. package/dist/src/browser/browser.d.ts +0 -15
  748. package/dist/src/browser/browser.d.ts.map +0 -1
  749. package/dist/src/browser/browser.js +0 -256
  750. package/dist/src/browser/browser.js.map +0 -1
  751. package/dist/src/browser/cdp.d.ts +0 -18
  752. package/dist/src/browser/cdp.d.ts.map +0 -1
  753. package/dist/src/browser/cdp.js +0 -153
  754. package/dist/src/browser/cdp.js.map +0 -1
  755. package/dist/src/browser/console-log.d.ts +0 -23
  756. package/dist/src/browser/console-log.d.ts.map +0 -1
  757. package/dist/src/browser/console-log.js +0 -104
  758. package/dist/src/browser/console-log.js.map +0 -1
  759. package/dist/src/browser/dashboard/api-types.d.ts +0 -50
  760. package/dist/src/browser/dashboard/api-types.d.ts.map +0 -1
  761. package/dist/src/browser/dashboard/api-types.js +0 -14
  762. package/dist/src/browser/dashboard/api-types.js.map +0 -1
  763. package/dist/src/browser/dialog.d.ts +0 -12
  764. package/dist/src/browser/dialog.d.ts.map +0 -1
  765. package/dist/src/browser/dialog.js +0 -53
  766. package/dist/src/browser/dialog.js.map +0 -1
  767. package/dist/src/browser/emulation.d.ts +0 -15
  768. package/dist/src/browser/emulation.d.ts.map +0 -1
  769. package/dist/src/browser/emulation.js +0 -62
  770. package/dist/src/browser/emulation.js.map +0 -1
  771. package/dist/src/browser/find.d.ts +0 -22
  772. package/dist/src/browser/find.d.ts.map +0 -1
  773. package/dist/src/browser/find.js +0 -169
  774. package/dist/src/browser/find.js.map +0 -1
  775. package/dist/src/browser/har.d.ts +0 -27
  776. package/dist/src/browser/har.d.ts.map +0 -1
  777. package/dist/src/browser/har.js +0 -161
  778. package/dist/src/browser/har.js.map +0 -1
  779. package/dist/src/browser/index.d.ts +0 -23
  780. package/dist/src/browser/index.d.ts.map +0 -1
  781. package/dist/src/browser/index.js +0 -23
  782. package/dist/src/browser/index.js.map +0 -1
  783. package/dist/src/browser/network.d.ts +0 -32
  784. package/dist/src/browser/network.d.ts.map +0 -1
  785. package/dist/src/browser/network.js +0 -214
  786. package/dist/src/browser/network.js.map +0 -1
  787. package/dist/src/browser/pdf.d.ts +0 -15
  788. package/dist/src/browser/pdf.d.ts.map +0 -1
  789. package/dist/src/browser/pdf.js +0 -27
  790. package/dist/src/browser/pdf.js.map +0 -1
  791. package/dist/src/browser/profiler.d.ts +0 -10
  792. package/dist/src/browser/profiler.d.ts.map +0 -1
  793. package/dist/src/browser/profiler.js +0 -77
  794. package/dist/src/browser/profiler.js.map +0 -1
  795. package/dist/src/browser/record.d.ts +0 -21
  796. package/dist/src/browser/record.d.ts.map +0 -1
  797. package/dist/src/browser/record.js +0 -59
  798. package/dist/src/browser/record.js.map +0 -1
  799. package/dist/src/browser/screenshot.d.ts +0 -15
  800. package/dist/src/browser/screenshot.d.ts.map +0 -1
  801. package/dist/src/browser/screenshot.js +0 -38
  802. package/dist/src/browser/screenshot.js.map +0 -1
  803. package/dist/src/browser/session.d.ts +0 -8
  804. package/dist/src/browser/session.d.ts.map +0 -1
  805. package/dist/src/browser/session.js +0 -91
  806. package/dist/src/browser/session.js.map +0 -1
  807. package/dist/src/browser/snapshot.d.ts +0 -12
  808. package/dist/src/browser/snapshot.d.ts.map +0 -1
  809. package/dist/src/browser/snapshot.js +0 -179
  810. package/dist/src/browser/snapshot.js.map +0 -1
  811. package/dist/src/browser/storage.d.ts +0 -12
  812. package/dist/src/browser/storage.d.ts.map +0 -1
  813. package/dist/src/browser/storage.js +0 -46
  814. package/dist/src/browser/storage.js.map +0 -1
  815. package/dist/src/browser/tabs.d.ts +0 -8
  816. package/dist/src/browser/tabs.d.ts.map +0 -1
  817. package/dist/src/browser/tabs.js +0 -25
  818. package/dist/src/browser/tabs.js.map +0 -1
  819. package/dist/src/browser/trace.d.ts +0 -10
  820. package/dist/src/browser/trace.d.ts.map +0 -1
  821. package/dist/src/browser/trace.js +0 -87
  822. package/dist/src/browser/trace.js.map +0 -1
  823. package/dist/src/browser/types.d.ts +0 -111
  824. package/dist/src/browser/types.d.ts.map +0 -1
  825. package/dist/src/browser/types.js +0 -16
  826. package/dist/src/browser/types.js.map +0 -1
  827. package/dist/src/browser/vitals.d.ts +0 -15
  828. package/dist/src/browser/vitals.d.ts.map +0 -1
  829. package/dist/src/browser/vitals.js +0 -116
  830. package/dist/src/browser/vitals.js.map +0 -1
  831. package/dist/src/browser/wait.d.ts +0 -4
  832. package/dist/src/browser/wait.d.ts.map +0 -1
  833. package/dist/src/browser/wait.js +0 -146
  834. package/dist/src/browser/wait.js.map +0 -1
  835. package/dist/src/browser/workflow/builtin-handlers.d.ts +0 -3
  836. package/dist/src/browser/workflow/builtin-handlers.d.ts.map +0 -1
  837. package/dist/src/browser/workflow/builtin-handlers.js +0 -343
  838. package/dist/src/browser/workflow/builtin-handlers.js.map +0 -1
  839. package/dist/src/commands/agent-wasm.d.ts +0 -14
  840. package/dist/src/commands/agent-wasm.d.ts.map +0 -1
  841. package/dist/src/commands/agent-wasm.js +0 -333
  842. package/dist/src/commands/agent-wasm.js.map +0 -1
  843. package/dist/src/commands/embeddings.d.ts.map +0 -1
  844. package/dist/src/commands/embeddings.js.map +0 -1
  845. package/dist/src/commands/hive-mind-comms.d.ts +0 -11
  846. package/dist/src/commands/hive-mind-comms.d.ts.map +0 -1
  847. package/dist/src/commands/hive-mind-comms.js +0 -249
  848. package/dist/src/commands/hive-mind-comms.js.map +0 -1
  849. package/dist/src/commands/hive-mind-helpers.d.ts +0 -35
  850. package/dist/src/commands/hive-mind-helpers.d.ts.map +0 -1
  851. package/dist/src/commands/hive-mind-helpers.js +0 -203
  852. package/dist/src/commands/hive-mind-helpers.js.map +0 -1
  853. package/dist/src/commands/hive-mind-ops.d.ts +0 -6
  854. package/dist/src/commands/hive-mind-ops.d.ts.map +0 -1
  855. package/dist/src/commands/hive-mind-ops.js +0 -119
  856. package/dist/src/commands/hive-mind-ops.js.map +0 -1
  857. package/dist/src/commands/hive-mind-spawn.d.ts +0 -12
  858. package/dist/src/commands/hive-mind-spawn.d.ts.map +0 -1
  859. package/dist/src/commands/hive-mind-spawn.js +0 -274
  860. package/dist/src/commands/hive-mind-spawn.js.map +0 -1
  861. package/dist/src/commands/hive-mind.d.ts +0 -11
  862. package/dist/src/commands/hive-mind.d.ts.map +0 -1
  863. package/dist/src/commands/hive-mind.js +0 -142
  864. package/dist/src/commands/hive-mind.js.map +0 -1
  865. package/dist/src/commands/neural.d.ts +0 -10
  866. package/dist/src/commands/neural.d.ts.map +0 -1
  867. package/dist/src/commands/neural.js +0 -32
  868. package/dist/src/commands/neural.js.map +0 -1
  869. package/dist/src/commands/process.d.ts +0 -10
  870. package/dist/src/commands/process.d.ts.map +0 -1
  871. package/dist/src/commands/process.js +0 -734
  872. package/dist/src/commands/process.js.map +0 -1
  873. package/dist/src/commands/replay.d.ts +0 -8
  874. package/dist/src/commands/replay.d.ts.map +0 -1
  875. package/dist/src/commands/replay.js +0 -66
  876. package/dist/src/commands/replay.js.map +0 -1
  877. package/dist/src/commands/scan.d.ts +0 -10
  878. package/dist/src/commands/scan.d.ts.map +0 -1
  879. package/dist/src/commands/scan.js +0 -31
  880. package/dist/src/commands/scan.js.map +0 -1
  881. package/dist/src/commands/sync.d.ts +0 -10
  882. package/dist/src/commands/sync.d.ts.map +0 -1
  883. package/dist/src/commands/sync.js +0 -100
  884. package/dist/src/commands/sync.js.map +0 -1
  885. package/dist/src/commands/transfer-store.d.ts +0 -13
  886. package/dist/src/commands/transfer-store.d.ts.map +0 -1
  887. package/dist/src/commands/transfer-store.js +0 -442
  888. package/dist/src/commands/transfer-store.js.map +0 -1
  889. package/dist/src/commands/ui.js +0 -68
  890. package/dist/src/consensus/index.d.ts +0 -7
  891. package/dist/src/consensus/index.d.ts.map +0 -1
  892. package/dist/src/consensus/index.js +0 -6
  893. package/dist/src/consensus/index.js.map +0 -1
  894. package/dist/src/context/context-provider.d.ts +0 -44
  895. package/dist/src/context/context-provider.d.ts.map +0 -1
  896. package/dist/src/context/context-provider.js +0 -25
  897. package/dist/src/context/context-provider.js.map +0 -1
  898. package/dist/src/context/git-state-provider.d.ts +0 -12
  899. package/dist/src/context/git-state-provider.d.ts.map +0 -1
  900. package/dist/src/context/git-state-provider.js +0 -34
  901. package/dist/src/context/git-state-provider.js.map +0 -1
  902. package/dist/src/context/index.d.ts +0 -12
  903. package/dist/src/context/index.d.ts.map +0 -1
  904. package/dist/src/context/index.js +0 -12
  905. package/dist/src/context/index.js.map +0 -1
  906. package/dist/src/context/project-conventions-provider.d.ts +0 -15
  907. package/dist/src/context/project-conventions-provider.d.ts.map +0 -1
  908. package/dist/src/context/project-conventions-provider.js +0 -19
  909. package/dist/src/context/project-conventions-provider.js.map +0 -1
  910. package/dist/src/context/prompt-assembler.d.ts +0 -26
  911. package/dist/src/context/prompt-assembler.d.ts.map +0 -1
  912. package/dist/src/context/prompt-assembler.js +0 -93
  913. package/dist/src/context/prompt-assembler.js.map +0 -1
  914. package/dist/src/context/task-history-provider.d.ts +0 -24
  915. package/dist/src/context/task-history-provider.d.ts.map +0 -1
  916. package/dist/src/context/task-history-provider.js +0 -32
  917. package/dist/src/context/task-history-provider.js.map +0 -1
  918. package/dist/src/context/user-preferences-provider.d.ts +0 -14
  919. package/dist/src/context/user-preferences-provider.d.ts.map +0 -1
  920. package/dist/src/context/user-preferences-provider.js +0 -27
  921. package/dist/src/context/user-preferences-provider.js.map +0 -1
  922. package/dist/src/dlq/dlq-reader.d.ts +0 -31
  923. package/dist/src/dlq/dlq-reader.d.ts.map +0 -1
  924. package/dist/src/dlq/dlq-reader.js +0 -81
  925. package/dist/src/dlq/dlq-reader.js.map +0 -1
  926. package/dist/src/dlq/dlq-replayer.d.ts +0 -33
  927. package/dist/src/dlq/dlq-replayer.d.ts.map +0 -1
  928. package/dist/src/dlq/dlq-replayer.js +0 -90
  929. package/dist/src/dlq/dlq-replayer.js.map +0 -1
  930. package/dist/src/dlq/dlq-writer.d.ts +0 -24
  931. package/dist/src/dlq/dlq-writer.d.ts.map +0 -1
  932. package/dist/src/dlq/dlq-writer.js +0 -65
  933. package/dist/src/dlq/dlq-writer.js.map +0 -1
  934. package/dist/src/dlq/index.d.ts +0 -10
  935. package/dist/src/dlq/index.d.ts.map +0 -1
  936. package/dist/src/dlq/index.js +0 -7
  937. package/dist/src/dlq/index.js.map +0 -1
  938. package/dist/src/eval/dataset-manager.d.ts +0 -33
  939. package/dist/src/eval/dataset-manager.d.ts.map +0 -1
  940. package/dist/src/eval/dataset-manager.js +0 -107
  941. package/dist/src/eval/dataset-manager.js.map +0 -1
  942. package/dist/src/eval/dataset-runner.d.ts +0 -23
  943. package/dist/src/eval/dataset-runner.d.ts.map +0 -1
  944. package/dist/src/eval/dataset-runner.js +0 -59
  945. package/dist/src/eval/dataset-runner.js.map +0 -1
  946. package/dist/src/eval/index.d.ts +0 -10
  947. package/dist/src/eval/index.d.ts.map +0 -1
  948. package/dist/src/eval/index.js +0 -7
  949. package/dist/src/eval/index.js.map +0 -1
  950. package/dist/src/eval/trace-collector.d.ts +0 -40
  951. package/dist/src/eval/trace-collector.d.ts.map +0 -1
  952. package/dist/src/eval/trace-collector.js +0 -102
  953. package/dist/src/eval/trace-collector.js.map +0 -1
  954. package/dist/src/graph/enrich.mjs +0 -362
  955. package/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
  956. package/dist/src/infrastructure/in-memory-repositories.d.ts.map +0 -1
  957. package/dist/src/infrastructure/in-memory-repositories.js +0 -264
  958. package/dist/src/infrastructure/in-memory-repositories.js.map +0 -1
  959. package/dist/src/interactive/interrupt.d.ts +0 -22
  960. package/dist/src/interactive/interrupt.d.ts.map +0 -1
  961. package/dist/src/interactive/interrupt.js +0 -71
  962. package/dist/src/interactive/interrupt.js.map +0 -1
  963. package/dist/src/mcp/deprecation-injector.d.ts +0 -25
  964. package/dist/src/mcp/deprecation-injector.d.ts.map +0 -1
  965. package/dist/src/mcp/deprecation-injector.js +0 -48
  966. package/dist/src/mcp/deprecation-injector.js.map +0 -1
  967. package/dist/src/mcp/tool-registry.d.ts +0 -61
  968. package/dist/src/mcp/tool-registry.d.ts.map +0 -1
  969. package/dist/src/mcp/tool-registry.js +0 -246
  970. package/dist/src/mcp/tool-registry.js.map +0 -1
  971. package/dist/src/mcp-tools/a2a-tools.d.ts +0 -14
  972. package/dist/src/mcp-tools/a2a-tools.d.ts.map +0 -1
  973. package/dist/src/mcp-tools/a2a-tools.js +0 -329
  974. package/dist/src/mcp-tools/a2a-tools.js.map +0 -1
  975. package/dist/src/mcp-tools/agentdb-tools.d.ts +0 -30
  976. package/dist/src/mcp-tools/agentdb-tools.d.ts.map +0 -1
  977. package/dist/src/mcp-tools/agentdb-tools.js +0 -596
  978. package/dist/src/mcp-tools/agentdb-tools.js.map +0 -1
  979. package/dist/src/mcp-tools/coordination-tools.d.ts +0 -13
  980. package/dist/src/mcp-tools/coordination-tools.d.ts.map +0 -1
  981. package/dist/src/mcp-tools/coordination-tools.js +0 -758
  982. package/dist/src/mcp-tools/coordination-tools.js.map +0 -1
  983. package/dist/src/mcp-tools/hooks-advanced.d.ts +0 -18
  984. package/dist/src/mcp-tools/hooks-advanced.d.ts.map +0 -1
  985. package/dist/src/mcp-tools/hooks-advanced.js +0 -25
  986. package/dist/src/mcp-tools/hooks-advanced.js.map +0 -1
  987. package/dist/src/mcp-tools/hooks-synthesis.d.ts +0 -31
  988. package/dist/src/mcp-tools/hooks-synthesis.d.ts.map +0 -1
  989. package/dist/src/mcp-tools/hooks-synthesis.js +0 -196
  990. package/dist/src/mcp-tools/hooks-synthesis.js.map +0 -1
  991. package/dist/src/mcp-tools/quality/chaos-resilience/chaos-inject.d.ts +0 -229
  992. package/dist/src/mcp-tools/quality/chaos-resilience/chaos-inject.d.ts.map +0 -1
  993. package/dist/src/mcp-tools/quality/chaos-resilience/chaos-inject.js +0 -414
  994. package/dist/src/mcp-tools/quality/chaos-resilience/chaos-inject.js.map +0 -1
  995. package/dist/src/mcp-tools/quality/coverage-analysis/analyze-coverage.d.ts +0 -186
  996. package/dist/src/mcp-tools/quality/coverage-analysis/analyze-coverage.d.ts.map +0 -1
  997. package/dist/src/mcp-tools/quality/coverage-analysis/analyze-coverage.js +0 -375
  998. package/dist/src/mcp-tools/quality/coverage-analysis/analyze-coverage.js.map +0 -1
  999. package/dist/src/mcp-tools/quality/coverage-analysis/track-trends.d.ts +0 -165
  1000. package/dist/src/mcp-tools/quality/coverage-analysis/track-trends.d.ts.map +0 -1
  1001. package/dist/src/mcp-tools/quality/coverage-analysis/track-trends.js +0 -395
  1002. package/dist/src/mcp-tools/quality/coverage-analysis/track-trends.js.map +0 -1
  1003. package/dist/src/mcp-tools/quality/defect-intelligence/analyze-root-cause.d.ts +0 -277
  1004. package/dist/src/mcp-tools/quality/defect-intelligence/analyze-root-cause.d.ts.map +0 -1
  1005. package/dist/src/mcp-tools/quality/defect-intelligence/analyze-root-cause.js +0 -508
  1006. package/dist/src/mcp-tools/quality/defect-intelligence/analyze-root-cause.js.map +0 -1
  1007. package/dist/src/mcp-tools/quality/defect-intelligence/find-similar-defects.d.ts +0 -209
  1008. package/dist/src/mcp-tools/quality/defect-intelligence/find-similar-defects.d.ts.map +0 -1
  1009. package/dist/src/mcp-tools/quality/defect-intelligence/find-similar-defects.js +0 -391
  1010. package/dist/src/mcp-tools/quality/defect-intelligence/find-similar-defects.js.map +0 -1
  1011. package/dist/src/mcp-tools/quality/defect-intelligence/predict-defects.d.ts +0 -151
  1012. package/dist/src/mcp-tools/quality/defect-intelligence/predict-defects.d.ts.map +0 -1
  1013. package/dist/src/mcp-tools/quality/defect-intelligence/predict-defects.js +0 -422
  1014. package/dist/src/mcp-tools/quality/defect-intelligence/predict-defects.js.map +0 -1
  1015. package/dist/src/mcp-tools/quality/quality-assessment/assess-readiness.d.ts +0 -211
  1016. package/dist/src/mcp-tools/quality/quality-assessment/assess-readiness.d.ts.map +0 -1
  1017. package/dist/src/mcp-tools/quality/quality-assessment/assess-readiness.js +0 -437
  1018. package/dist/src/mcp-tools/quality/quality-assessment/assess-readiness.js.map +0 -1
  1019. package/dist/src/mcp-tools/quality/quality-assessment/calculate-risk.d.ts +0 -276
  1020. package/dist/src/mcp-tools/quality/quality-assessment/calculate-risk.d.ts.map +0 -1
  1021. package/dist/src/mcp-tools/quality/quality-assessment/calculate-risk.js +0 -410
  1022. package/dist/src/mcp-tools/quality/quality-assessment/calculate-risk.js.map +0 -1
  1023. package/dist/src/mcp-tools/quality/quality-assessment/evaluate-quality-gate.d.ts +0 -235
  1024. package/dist/src/mcp-tools/quality/quality-assessment/evaluate-quality-gate.d.ts.map +0 -1
  1025. package/dist/src/mcp-tools/quality/quality-assessment/evaluate-quality-gate.js +0 -363
  1026. package/dist/src/mcp-tools/quality/quality-assessment/evaluate-quality-gate.js.map +0 -1
  1027. package/dist/src/mcp-tools/quality/security-compliance/audit-compliance.d.ts +0 -170
  1028. package/dist/src/mcp-tools/quality/security-compliance/audit-compliance.d.ts.map +0 -1
  1029. package/dist/src/mcp-tools/quality/security-compliance/audit-compliance.js +0 -394
  1030. package/dist/src/mcp-tools/quality/security-compliance/audit-compliance.js.map +0 -1
  1031. package/dist/src/mcp-tools/quality/security-compliance/security-scan.d.ts +0 -167
  1032. package/dist/src/mcp-tools/quality/security-compliance/security-scan.d.ts.map +0 -1
  1033. package/dist/src/mcp-tools/quality/security-compliance/security-scan.js +0 -476
  1034. package/dist/src/mcp-tools/quality/security-compliance/security-scan.js.map +0 -1
  1035. package/dist/src/mcp-tools/quality/test-generation/generate-tests.d.ts +0 -161
  1036. package/dist/src/mcp-tools/quality/test-generation/generate-tests.d.ts.map +0 -1
  1037. package/dist/src/mcp-tools/quality/test-generation/generate-tests.js +0 -400
  1038. package/dist/src/mcp-tools/quality/test-generation/generate-tests.js.map +0 -1
  1039. package/dist/src/mcp-tools/quality/test-generation/suggest-tests.d.ts +0 -141
  1040. package/dist/src/mcp-tools/quality/test-generation/suggest-tests.d.ts.map +0 -1
  1041. package/dist/src/mcp-tools/quality/test-generation/suggest-tests.js +0 -328
  1042. package/dist/src/mcp-tools/quality/test-generation/suggest-tests.js.map +0 -1
  1043. package/dist/src/mcp-tools/quality/test-generation/tdd-cycle.d.ts +0 -144
  1044. package/dist/src/mcp-tools/quality/test-generation/tdd-cycle.d.ts.map +0 -1
  1045. package/dist/src/mcp-tools/quality/test-generation/tdd-cycle.js +0 -348
  1046. package/dist/src/mcp-tools/quality/test-generation/tdd-cycle.js.map +0 -1
  1047. package/dist/src/mcp-tools/wasm-agent-tools.d.ts +0 -9
  1048. package/dist/src/mcp-tools/wasm-agent-tools.d.ts.map +0 -1
  1049. package/dist/src/mcp-tools/wasm-agent-tools.js +0 -230
  1050. package/dist/src/mcp-tools/wasm-agent-tools.js.map +0 -1
  1051. package/dist/src/model/complexity-scorer.d.ts +0 -21
  1052. package/dist/src/model/complexity-scorer.d.ts.map +0 -1
  1053. package/dist/src/model/complexity-scorer.js +0 -106
  1054. package/dist/src/model/complexity-scorer.js.map +0 -1
  1055. package/dist/src/model/index.d.ts +0 -4
  1056. package/dist/src/model/index.d.ts.map +0 -1
  1057. package/dist/src/model/index.js +0 -4
  1058. package/dist/src/model/index.js.map +0 -1
  1059. package/dist/src/model/model-settings.d.ts +0 -22
  1060. package/dist/src/model/model-settings.d.ts.map +0 -1
  1061. package/dist/src/model/model-settings.js +0 -33
  1062. package/dist/src/model/model-settings.js.map +0 -1
  1063. package/dist/src/model/model-tier-resolver.d.ts +0 -24
  1064. package/dist/src/model/model-tier-resolver.d.ts.map +0 -1
  1065. package/dist/src/model/model-tier-resolver.js +0 -65
  1066. package/dist/src/model/model-tier-resolver.js.map +0 -1
  1067. package/dist/src/monovector/capabilities.d.ts +0 -34
  1068. package/dist/src/monovector/capabilities.d.ts.map +0 -1
  1069. package/dist/src/monovector/capabilities.js +0 -37
  1070. package/dist/src/monovector/capabilities.js.map +0 -1
  1071. package/dist/src/orchestration/index.d.ts +0 -7
  1072. package/dist/src/orchestration/index.d.ts.map +0 -1
  1073. package/dist/src/orchestration/index.js +0 -6
  1074. package/dist/src/orchestration/index.js.map +0 -1
  1075. package/dist/src/orchestration/mode-dispatcher.d.ts +0 -11
  1076. package/dist/src/orchestration/mode-dispatcher.d.ts.map +0 -1
  1077. package/dist/src/orchestration/mode-dispatcher.js +0 -31
  1078. package/dist/src/orchestration/mode-dispatcher.js.map +0 -1
  1079. package/dist/src/orchestration/routing-modes.d.ts +0 -68
  1080. package/dist/src/orchestration/routing-modes.d.ts.map +0 -1
  1081. package/dist/src/orchestration/routing-modes.js +0 -180
  1082. package/dist/src/orchestration/routing-modes.js.map +0 -1
  1083. package/dist/src/runtime/headless.d.ts +0 -60
  1084. package/dist/src/runtime/headless.d.ts.map +0 -1
  1085. package/dist/src/runtime/headless.js +0 -284
  1086. package/dist/src/runtime/headless.js.map +0 -1
  1087. package/dist/src/services/agentic-flow-bridge.d.ts +0 -50
  1088. package/dist/src/services/agentic-flow-bridge.d.ts.map +0 -1
  1089. package/dist/src/services/agentic-flow-bridge.js +0 -95
  1090. package/dist/src/services/agentic-flow-bridge.js.map +0 -1
  1091. package/dist/src/services/container-worker-pool.d.ts +0 -197
  1092. package/dist/src/services/container-worker-pool.d.ts.map +0 -1
  1093. package/dist/src/services/container-worker-pool.js +0 -623
  1094. package/dist/src/services/container-worker-pool.js.map +0 -1
  1095. package/dist/src/services/index.d.ts +0 -13
  1096. package/dist/src/services/index.d.ts.map +0 -1
  1097. package/dist/src/services/index.js +0 -11
  1098. package/dist/src/services/index.js.map +0 -1
  1099. package/dist/src/services/worker-queue.d.ts +0 -201
  1100. package/dist/src/services/worker-queue.d.ts.map +0 -1
  1101. package/dist/src/services/worker-queue.js +0 -594
  1102. package/dist/src/services/worker-queue.js.map +0 -1
  1103. package/dist/src/swarm/communication-graph.d.ts +0 -25
  1104. package/dist/src/swarm/communication-graph.d.ts.map +0 -1
  1105. package/dist/src/swarm/communication-graph.js +0 -77
  1106. package/dist/src/swarm/communication-graph.js.map +0 -1
  1107. package/dist/src/swarm/flow-enforcer.d.ts +0 -31
  1108. package/dist/src/swarm/flow-enforcer.d.ts.map +0 -1
  1109. package/dist/src/swarm/flow-enforcer.js +0 -61
  1110. package/dist/src/swarm/flow-enforcer.js.map +0 -1
  1111. package/dist/src/swarm/flow-visualizer.d.ts +0 -19
  1112. package/dist/src/swarm/flow-visualizer.d.ts.map +0 -1
  1113. package/dist/src/swarm/flow-visualizer.js +0 -68
  1114. package/dist/src/swarm/flow-visualizer.js.map +0 -1
  1115. package/dist/src/transfer/deploy-seraphine.d.ts +0 -13
  1116. package/dist/src/transfer/deploy-seraphine.d.ts.map +0 -1
  1117. package/dist/src/transfer/deploy-seraphine.js +0 -205
  1118. package/dist/src/transfer/deploy-seraphine.js.map +0 -1
  1119. package/dist/src/transfer/export.d.ts +0 -25
  1120. package/dist/src/transfer/export.d.ts.map +0 -1
  1121. package/dist/src/transfer/export.js +0 -123
  1122. package/dist/src/transfer/export.js.map +0 -1
  1123. package/dist/src/transfer/index.d.ts +0 -12
  1124. package/dist/src/transfer/index.d.ts.map +0 -1
  1125. package/dist/src/transfer/index.js +0 -31
  1126. package/dist/src/transfer/index.js.map +0 -1
  1127. package/dist/src/transfer/ipfs/client.d.ts +0 -109
  1128. package/dist/src/transfer/ipfs/client.d.ts.map +0 -1
  1129. package/dist/src/transfer/ipfs/client.js +0 -384
  1130. package/dist/src/transfer/ipfs/client.js.map +0 -1
  1131. package/dist/src/transfer/ipfs/upload.d.ts +0 -95
  1132. package/dist/src/transfer/ipfs/upload.d.ts.map +0 -1
  1133. package/dist/src/transfer/ipfs/upload.js +0 -450
  1134. package/dist/src/transfer/ipfs/upload.js.map +0 -1
  1135. package/dist/src/transfer/models/seraphine.d.ts +0 -72
  1136. package/dist/src/transfer/models/seraphine.d.ts.map +0 -1
  1137. package/dist/src/transfer/models/seraphine.js +0 -373
  1138. package/dist/src/transfer/models/seraphine.js.map +0 -1
  1139. package/dist/src/transfer/serialization/cfp.d.ts +0 -49
  1140. package/dist/src/transfer/serialization/cfp.d.ts.map +0 -1
  1141. package/dist/src/transfer/serialization/cfp.js +0 -189
  1142. package/dist/src/transfer/serialization/cfp.js.map +0 -1
  1143. package/dist/src/transfer/storage/gcs.d.ts +0 -82
  1144. package/dist/src/transfer/storage/gcs.d.ts.map +0 -1
  1145. package/dist/src/transfer/storage/gcs.js +0 -319
  1146. package/dist/src/transfer/storage/gcs.js.map +0 -1
  1147. package/dist/src/transfer/storage/index.d.ts +0 -6
  1148. package/dist/src/transfer/storage/index.d.ts.map +0 -1
  1149. package/dist/src/transfer/storage/index.js +0 -6
  1150. package/dist/src/transfer/storage/index.js.map +0 -1
  1151. package/dist/src/transfer/store/discovery.d.ts +0 -92
  1152. package/dist/src/transfer/store/discovery.d.ts.map +0 -1
  1153. package/dist/src/transfer/store/discovery.js +0 -431
  1154. package/dist/src/transfer/store/discovery.js.map +0 -1
  1155. package/dist/src/transfer/store/download.d.ts +0 -79
  1156. package/dist/src/transfer/store/download.d.ts.map +0 -1
  1157. package/dist/src/transfer/store/download.js +0 -428
  1158. package/dist/src/transfer/store/download.js.map +0 -1
  1159. package/dist/src/transfer/store/index.d.ts +0 -84
  1160. package/dist/src/transfer/store/index.d.ts.map +0 -1
  1161. package/dist/src/transfer/store/index.js +0 -153
  1162. package/dist/src/transfer/store/index.js.map +0 -1
  1163. package/dist/src/transfer/store/publish.d.ts +0 -76
  1164. package/dist/src/transfer/store/publish.d.ts.map +0 -1
  1165. package/dist/src/transfer/store/publish.js +0 -305
  1166. package/dist/src/transfer/store/publish.js.map +0 -1
  1167. package/dist/src/transfer/store/registry.d.ts +0 -66
  1168. package/dist/src/transfer/store/registry.d.ts.map +0 -1
  1169. package/dist/src/transfer/store/registry.js +0 -326
  1170. package/dist/src/transfer/store/registry.js.map +0 -1
  1171. package/dist/src/transfer/store/search.d.ts +0 -54
  1172. package/dist/src/transfer/store/search.d.ts.map +0 -1
  1173. package/dist/src/transfer/store/search.js +0 -247
  1174. package/dist/src/transfer/store/search.js.map +0 -1
  1175. package/dist/src/transfer/store/tests/standalone-test.d.ts +0 -12
  1176. package/dist/src/transfer/store/tests/standalone-test.d.ts.map +0 -1
  1177. package/dist/src/transfer/store/tests/standalone-test.js +0 -190
  1178. package/dist/src/transfer/store/tests/standalone-test.js.map +0 -1
  1179. package/dist/src/transfer/store/types.d.ts +0 -193
  1180. package/dist/src/transfer/store/types.d.ts.map +0 -1
  1181. package/dist/src/transfer/store/types.js +0 -6
  1182. package/dist/src/transfer/store/types.js.map +0 -1
  1183. package/dist/src/transfer/test-seraphine.d.ts +0 -6
  1184. package/dist/src/transfer/test-seraphine.d.ts.map +0 -1
  1185. package/dist/src/transfer/test-seraphine.js +0 -105
  1186. package/dist/src/transfer/test-seraphine.js.map +0 -1
  1187. package/dist/src/transfer/tests/test-store.d.ts +0 -7
  1188. package/dist/src/transfer/tests/test-store.d.ts.map +0 -1
  1189. package/dist/src/transfer/tests/test-store.js +0 -214
  1190. package/dist/src/transfer/tests/test-store.js.map +0 -1
  1191. package/dist/src/workflow/condition-evaluator.d.ts +0 -10
  1192. package/dist/src/workflow/condition-evaluator.d.ts.map +0 -1
  1193. package/dist/src/workflow/condition-evaluator.js +0 -82
  1194. package/dist/src/workflow/condition-evaluator.js.map +0 -1
  1195. package/dist/src/workflow/context-resolver.d.ts +0 -12
  1196. package/dist/src/workflow/context-resolver.d.ts.map +0 -1
  1197. package/dist/src/workflow/context-resolver.js +0 -23
  1198. package/dist/src/workflow/context-resolver.js.map +0 -1
  1199. package/dist/src/workflow/dag-builder.d.ts +0 -17
  1200. package/dist/src/workflow/dag-builder.d.ts.map +0 -1
  1201. package/dist/src/workflow/dag-builder.js +0 -129
  1202. package/dist/src/workflow/dag-builder.js.map +0 -1
  1203. package/dist/src/workflow/dag-executor.d.ts +0 -9
  1204. package/dist/src/workflow/dag-executor.d.ts.map +0 -1
  1205. package/dist/src/workflow/dag-executor.js +0 -116
  1206. package/dist/src/workflow/dag-executor.js.map +0 -1
  1207. package/dist/src/workflow/dag-types.d.ts +0 -41
  1208. package/dist/src/workflow/dag-types.d.ts.map +0 -1
  1209. package/dist/src/workflow/dag-types.js +0 -8
  1210. package/dist/src/workflow/dag-types.js.map +0 -1
  1211. package/dist/src/workflow/dsl-parser.d.ts +0 -12
  1212. package/dist/src/workflow/dsl-parser.d.ts.map +0 -1
  1213. package/dist/src/workflow/dsl-parser.js +0 -20
  1214. package/dist/src/workflow/dsl-parser.js.map +0 -1
  1215. package/dist/src/workflow/dsl-schema.d.ts +0 -165
  1216. package/dist/src/workflow/dsl-schema.d.ts.map +0 -1
  1217. package/dist/src/workflow/dsl-schema.js +0 -82
  1218. package/dist/src/workflow/dsl-schema.js.map +0 -1
  1219. package/dist/src/workflow/index.d.ts +0 -13
  1220. package/dist/src/workflow/index.d.ts.map +0 -1
  1221. package/dist/src/workflow/index.js +0 -11
  1222. package/dist/src/workflow/index.js.map +0 -1
  1223. package/dist/src/workflow/template-engine.d.ts +0 -11
  1224. package/dist/src/workflow/template-engine.d.ts.map +0 -1
  1225. package/dist/src/workflow/template-engine.js +0 -40
  1226. package/dist/src/workflow/template-engine.js.map +0 -1
  1227. package/dist/src/workflow/workflow-executor.d.ts +0 -29
  1228. package/dist/src/workflow/workflow-executor.d.ts.map +0 -1
  1229. package/dist/src/workflow/workflow-executor.js +0 -227
  1230. package/dist/src/workflow/workflow-executor.js.map +0 -1
  1231. package/dist/workflow/builtin-handlers.js +0 -321
  1232. package/dist/workflow/engine.js +0 -253
  1233. package/dist/workflow/expression.js +0 -98
  1234. package/dist/workflow/types.js +0 -2
@@ -1,803 +1,106 @@
1
1
  ---
2
2
  name: quorum-manager
3
- description: Implements dynamic quorum adjustment and intelligent membership management
3
+ description: Runs confidence-weighted vote tallies over subagent votes and manages membership thresholds for monomind's single-process consensus primitives
4
+ capability:
5
+ role: quorum-manager
6
+ goal: Collect votes from participating agents, apply the correct threshold rule, and produce a tamper-evident record of the decision
7
+ version: "2.0.0"
8
+ expertise:
9
+ - confidence-weighted vote tallying
10
+ - threshold selection (majority / supermajority / 2f+1)
11
+ - membership tracking within a hive session
12
+ - tamper-evident decision auditing
13
+ task_types:
14
+ - vote-tally
15
+ - threshold-selection
16
+ - decision-audit
17
+ output_type: ConsensusDecision
18
+ model_preference: sonnet
19
+ termination: Decision resolved (approved or rejected) and written to the audit log, or explicitly blocked with the reason
4
20
  ---
5
21
 
6
22
  # Quorum Manager
7
23
 
8
- Implements dynamic quorum adjustment and intelligent membership management for distributed consensus protocols.
24
+ You run vote tallies for multi-agent decisions and decide whether a proposal has met its threshold.
9
25
 
10
- ## Core Responsibilities
26
+ ## Scope — read this before you plan anything
11
27
 
12
- 1. **Dynamic Quorum Calculation**: Adapt quorum requirements based on real-time network conditions
13
- 2. **Membership Management**: Handle seamless node addition, removal, and failure scenarios
14
- 3. **Network Monitoring**: Assess connectivity, latency, and partition detection
15
- 4. **Weighted Voting**: Implement capability-based voting weight assignments
16
- 5. **Fault Tolerance Optimization**: Balance availability and consistency guarantees
28
+ Monomind's consensus is **vote counting inside a single process**. There is no
29
+ network, no leader election, no log replication, no partition detection, and no
30
+ node failure model. `gossip` and `crdt` are rejected at runtime by
31
+ `hive-mind_init`, not implemented.
17
32
 
18
- ## Technical Implementation
33
+ Do not design around network conditions, latency-adaptive quorum sizing, or
34
+ membership churn across hosts. None of that exists, and plans that assume it
35
+ will not run. Everything below is what the code actually provides.
19
36
 
20
- ### Core Quorum Management System
21
- ```javascript
22
- class QuorumManager {
23
- constructor(nodeId, consensusProtocol) {
24
- this.nodeId = nodeId;
25
- this.protocol = consensusProtocol;
26
- this.currentQuorum = new Map(); // nodeId -> QuorumNode
27
- this.quorumHistory = [];
28
- this.networkMonitor = new NetworkConditionMonitor();
29
- this.membershipTracker = new MembershipTracker();
30
- this.faultToleranceCalculator = new FaultToleranceCalculator();
31
- this.adjustmentStrategies = new Map();
32
-
33
- this.initializeStrategies();
34
- }
37
+ ## What actually exists
35
38
 
36
- // Initialize quorum adjustment strategies
37
- initializeStrategies() {
38
- this.adjustmentStrategies.set('NETWORK_BASED', new NetworkBasedStrategy());
39
- this.adjustmentStrategies.set('PERFORMANCE_BASED', new PerformanceBasedStrategy());
40
- this.adjustmentStrategies.set('FAULT_TOLERANCE_BASED', new FaultToleranceStrategy());
41
- this.adjustmentStrategies.set('HYBRID', new HybridStrategy());
42
- }
39
+ **`weightedTally(votes)`** `packages/@monomind/cli/src/consensus/tally.ts`
43
40
 
44
- // Calculate optimal quorum size based on current conditions
45
- async calculateOptimalQuorum(context = {}) {
46
- const networkConditions = await this.networkMonitor.getCurrentConditions();
47
- const membershipStatus = await this.membershipTracker.getMembershipStatus();
48
- const performanceMetrics = context.performanceMetrics || await this.getPerformanceMetrics();
49
-
50
- const analysisInput = {
51
- networkConditions: networkConditions,
52
- membershipStatus: membershipStatus,
53
- performanceMetrics: performanceMetrics,
54
- currentQuorum: this.currentQuorum,
55
- protocol: this.protocol,
56
- faultToleranceRequirements: context.faultToleranceRequirements || this.getDefaultFaultTolerance()
57
- };
58
-
59
- // Apply multiple strategies and select optimal result
60
- const strategyResults = new Map();
61
-
62
- for (const [strategyName, strategy] of this.adjustmentStrategies) {
63
- try {
64
- const result = await strategy.calculateQuorum(analysisInput);
65
- strategyResults.set(strategyName, result);
66
- } catch (error) {
67
- console.warn(`Strategy ${strategyName} failed:`, error);
68
- }
69
- }
70
-
71
- // Select best strategy result
72
- const optimalResult = this.selectOptimalStrategy(strategyResults, analysisInput);
73
-
74
- return {
75
- recommendedQuorum: optimalResult.quorum,
76
- strategy: optimalResult.strategy,
77
- confidence: optimalResult.confidence,
78
- reasoning: optimalResult.reasoning,
79
- expectedImpact: optimalResult.expectedImpact
80
- };
81
- }
41
+ Each vote is `{ agentId, vote: boolean, confidence: number }`. Confidence is
42
+ clamped to `[0,1]` and used as the vote's weight. Quorum passes when
43
+ `weightedApproval / totalWeight > 0.5`. Votes are capped at 1000. Returns raw
44
+ approved/rejected counts alongside the weighted sums.
82
45
 
83
- // Apply quorum changes with validation and rollback capability
84
- async adjustQuorum(newQuorumConfig, options = {}) {
85
- const adjustmentId = `adjustment_${Date.now()}`;
86
-
87
- try {
88
- // Validate new quorum configuration
89
- await this.validateQuorumConfiguration(newQuorumConfig);
90
-
91
- // Create adjustment plan
92
- const adjustmentPlan = await this.createAdjustmentPlan(
93
- this.currentQuorum, newQuorumConfig
94
- );
95
-
96
- // Execute adjustment with monitoring
97
- const adjustmentResult = await this.executeQuorumAdjustment(
98
- adjustmentPlan, adjustmentId, options
99
- );
100
-
101
- // Verify adjustment success
102
- await this.verifyQuorumAdjustment(adjustmentResult);
103
-
104
- // Update current quorum
105
- this.currentQuorum = newQuorumConfig.quorum;
106
-
107
- // Record successful adjustment
108
- this.recordQuorumChange(adjustmentId, adjustmentResult);
109
-
110
- return {
111
- success: true,
112
- adjustmentId: adjustmentId,
113
- previousQuorum: adjustmentPlan.previousQuorum,
114
- newQuorum: this.currentQuorum,
115
- impact: adjustmentResult.impact
116
- };
117
-
118
- } catch (error) {
119
- console.error(`Quorum adjustment failed:`, error);
120
-
121
- // Attempt rollback
122
- await this.rollbackQuorumAdjustment(adjustmentId);
123
-
124
- throw error;
125
- }
126
- }
46
+ **Threshold rules** `calculateRequiredVotes()` in `mcp-tools/hive-mind-tools.ts`
127
47
 
128
- async executeQuorumAdjustment(adjustmentPlan, adjustmentId, options) {
129
- const startTime = Date.now();
130
-
131
- // Phase 1: Prepare nodes for quorum change
132
- await this.prepareNodesForAdjustment(adjustmentPlan.affectedNodes);
133
-
134
- // Phase 2: Execute membership changes
135
- const membershipChanges = await this.executeMembershipChanges(
136
- adjustmentPlan.membershipChanges
137
- );
138
-
139
- // Phase 3: Update voting weights if needed
140
- if (adjustmentPlan.weightChanges.length > 0) {
141
- await this.updateVotingWeights(adjustmentPlan.weightChanges);
142
- }
143
-
144
- // Phase 4: Reconfigure consensus protocol
145
- await this.reconfigureConsensusProtocol(adjustmentPlan.protocolChanges);
146
-
147
- // Phase 5: Verify new quorum is operational
148
- const verificationResult = await this.verifyQuorumOperational(adjustmentPlan.newQuorum);
149
-
150
- const endTime = Date.now();
151
-
152
- return {
153
- adjustmentId: adjustmentId,
154
- duration: endTime - startTime,
155
- membershipChanges: membershipChanges,
156
- verificationResult: verificationResult,
157
- impact: await this.measureAdjustmentImpact(startTime, endTime)
158
- };
159
- }
160
- }
161
- ```
48
+ | Strategy | Required votes | Honest description |
49
+ |---|---|---|
50
+ | `bft` | `floor(2n/3) + 1` | A 2f+1 vote threshold. Not Byzantine fault tolerance — no message authentication, no adversarial node model. |
51
+ | `raft` | `floor(n/2) + 1` | Simple majority. Not Raft — no leader election, no term-based log replication. |
52
+ | `quorum` | majority / supermajority / unanimous preset | Configurable threshold. This is the only name that means what it says. |
162
53
 
163
- ### Network-Based Quorum Strategy
164
- ```javascript
165
- class NetworkBasedStrategy {
166
- constructor() {
167
- this.networkAnalyzer = new NetworkAnalyzer();
168
- this.connectivityMatrix = new ConnectivityMatrix();
169
- this.partitionPredictor = new PartitionPredictor();
170
- }
54
+ **`detectByzantineVoters()`** flags one narrow case: the same voter casting
55
+ opposite votes on two still-pending proposals of the same `type`, in this
56
+ process. It is a double-vote check, not fault detection.
171
57
 
172
- async calculateQuorum(analysisInput) {
173
- const { networkConditions, membershipStatus, currentQuorum } = analysisInput;
174
-
175
- // Analyze network topology and connectivity
176
- const topologyAnalysis = await this.analyzeNetworkTopology(membershipStatus.activeNodes);
177
-
178
- // Predict potential network partitions
179
- const partitionRisk = await this.assessPartitionRisk(networkConditions, topologyAnalysis);
180
-
181
- // Calculate minimum quorum for fault tolerance
182
- const minQuorum = this.calculateMinimumQuorum(
183
- membershipStatus.activeNodes.length,
184
- partitionRisk.maxPartitionSize
185
- );
186
-
187
- // Optimize for network conditions
188
- const optimizedQuorum = await this.optimizeForNetworkConditions(
189
- minQuorum,
190
- networkConditions,
191
- topologyAnalysis
192
- );
193
-
194
- return {
195
- quorum: optimizedQuorum,
196
- strategy: 'NETWORK_BASED',
197
- confidence: this.calculateConfidence(networkConditions, topologyAnalysis),
198
- reasoning: this.generateReasoning(optimizedQuorum, partitionRisk, networkConditions),
199
- expectedImpact: {
200
- availability: this.estimateAvailabilityImpact(optimizedQuorum),
201
- performance: this.estimatePerformanceImpact(optimizedQuorum, networkConditions)
202
- }
203
- };
204
- }
58
+ **`AuditWriter`** `packages/@monomind/cli/src/consensus/audit-writer.ts`
205
59
 
206
- async analyzeNetworkTopology(activeNodes) {
207
- const topology = {
208
- nodes: activeNodes.length,
209
- edges: 0,
210
- clusters: [],
211
- diameter: 0,
212
- connectivity: new Map()
213
- };
214
-
215
- // Build connectivity matrix
216
- for (const node of activeNodes) {
217
- const connections = await this.getNodeConnections(node);
218
- topology.connectivity.set(node.id, connections);
219
- topology.edges += connections.length;
220
- }
221
-
222
- // Identify network clusters
223
- topology.clusters = await this.identifyNetworkClusters(topology.connectivity);
224
-
225
- // Calculate network diameter
226
- topology.diameter = await this.calculateNetworkDiameter(topology.connectivity);
227
-
228
- return topology;
229
- }
60
+ Real and worth using. `record()` writes an HMAC-signed decision record;
61
+ `verifyDecision()` detects tampering in vote signatures or the record itself;
62
+ `listDecisions()` reads history. This gives genuine non-repudiation for the
63
+ tally's history — orthogonal to whether the protocol is distributed.
230
64
 
231
- async assessPartitionRisk(networkConditions, topologyAnalysis) {
232
- const riskFactors = {
233
- connectivityReliability: this.assessConnectivityReliability(networkConditions),
234
- geographicDistribution: this.assessGeographicRisk(topologyAnalysis),
235
- networkLatency: this.assessLatencyRisk(networkConditions),
236
- historicalPartitions: await this.getHistoricalPartitionData()
237
- };
238
-
239
- // Calculate overall partition risk
240
- const overallRisk = this.calculateOverallPartitionRisk(riskFactors);
241
-
242
- // Estimate maximum partition size
243
- const maxPartitionSize = this.estimateMaxPartitionSize(
244
- topologyAnalysis,
245
- riskFactors
246
- );
247
-
248
- return {
249
- overallRisk: overallRisk,
250
- maxPartitionSize: maxPartitionSize,
251
- riskFactors: riskFactors,
252
- mitigationStrategies: this.suggestMitigationStrategies(riskFactors)
253
- };
254
- }
65
+ ## Tools
255
66
 
256
- calculateMinimumQuorum(totalNodes, maxPartitionSize) {
257
- // For Byzantine fault tolerance: need > 2/3 of total nodes
258
- const byzantineMinimum = Math.floor(2 * totalNodes / 3) + 1;
259
-
260
- // For network partition tolerance: need > 1/2 of largest connected component
261
- const partitionMinimum = Math.floor((totalNodes - maxPartitionSize) / 2) + 1;
262
-
263
- // Use the more restrictive requirement
264
- return Math.max(byzantineMinimum, partitionMinimum);
265
- }
67
+ Default-visible: `hive-mind_status`, `hive-mind_join`.
266
68
 
267
- async optimizeForNetworkConditions(minQuorum, networkConditions, topologyAnalysis) {
268
- const optimization = {
269
- baseQuorum: minQuorum,
270
- nodes: new Map(),
271
- totalWeight: 0
272
- };
273
-
274
- // Select nodes for quorum based on network position and reliability
275
- const nodeScores = await this.scoreNodesForQuorum(networkConditions, topologyAnalysis);
276
-
277
- // Sort nodes by score (higher is better)
278
- const sortedNodes = Array.from(nodeScores.entries())
279
- .sort(([,scoreA], [,scoreB]) => scoreB - scoreA);
280
-
281
- // Select top nodes for quorum
282
- let selectedCount = 0;
283
- for (const [nodeId, score] of sortedNodes) {
284
- if (selectedCount < minQuorum) {
285
- const weight = this.calculateNodeWeight(nodeId, score, networkConditions);
286
- optimization.nodes.set(nodeId, {
287
- weight: weight,
288
- score: score,
289
- role: selectedCount === 0 ? 'primary' : 'secondary'
290
- });
291
- optimization.totalWeight += weight;
292
- selectedCount++;
293
- }
294
- }
295
-
296
- return optimization;
297
- }
69
+ Gated behind `MONOMIND_MCP_SPECULATIVE=1`: `hive-mind_consensus`,
70
+ `hive-mind_init`, `hive-mind_spawn`, `hive-mind_broadcast`, `hive-mind_memory`,
71
+ `hive-mind_leave`, `hive-mind_shutdown`, `hive-mind_audit_list`,
72
+ `hive-mind_audit_verify`. If a gated tool is unavailable, say so and stop —
73
+ do not simulate the result.
298
74
 
299
- async scoreNodesForQuorum(networkConditions, topologyAnalysis) {
300
- const scores = new Map();
301
-
302
- for (const [nodeId, connections] of topologyAnalysis.connectivity) {
303
- let score = 0;
304
-
305
- // Connectivity score (more connections = higher score)
306
- score += (connections.length / topologyAnalysis.nodes) * 30;
307
-
308
- // Network position score (central nodes get higher scores)
309
- const centrality = this.calculateCentrality(nodeId, topologyAnalysis);
310
- score += centrality * 25;
311
-
312
- // Reliability score based on network conditions
313
- const reliability = await this.getNodeReliability(nodeId, networkConditions);
314
- score += reliability * 25;
315
-
316
- // Geographic diversity score
317
- const geoScore = await this.getGeographicDiversityScore(nodeId, topologyAnalysis);
318
- score += geoScore * 20;
319
-
320
- scores.set(nodeId, score);
321
- }
322
-
323
- return scores;
324
- }
75
+ Also real and useful here: `memory_batch` / `memory_pattern-store` (persisting
76
+ decision context), `swarm_status`, `task_create`, `performance_metrics`.
325
77
 
326
- calculateNodeWeight(nodeId, score, networkConditions) {
327
- // Base weight of 1, adjusted by score and conditions
328
- let weight = 1.0;
329
-
330
- // Adjust based on normalized score (0-1)
331
- const normalizedScore = score / 100;
332
- weight *= (0.5 + normalizedScore);
333
-
334
- // Adjust based on network latency
335
- const nodeLatency = networkConditions.nodeLatencies.get(nodeId) || 100;
336
- const latencyFactor = Math.max(0.1, 1.0 - (nodeLatency / 1000)); // Lower latency = higher weight
337
- weight *= latencyFactor;
338
-
339
- // Ensure minimum weight
340
- return Math.max(0.1, Math.min(2.0, weight));
341
- }
342
- }
343
- ```
78
+ **These tool names do not exist** — do not call them: `memory_usage`,
79
+ `coordination_sync`, `metrics_collect`, `task_orchestrate`.
344
80
 
345
- ### Performance-Based Quorum Strategy
346
- ```javascript
347
- class PerformanceBasedStrategy {
348
- constructor() {
349
- this.performanceAnalyzer = new PerformanceAnalyzer();
350
- this.throughputOptimizer = new ThroughputOptimizer();
351
- this.latencyOptimizer = new LatencyOptimizer();
352
- }
81
+ ## Operating procedure
353
82
 
354
- async calculateQuorum(analysisInput) {
355
- const { performanceMetrics, membershipStatus, protocol } = analysisInput;
356
-
357
- // Analyze current performance bottlenecks
358
- const bottlenecks = await this.identifyPerformanceBottlenecks(performanceMetrics);
359
-
360
- // Calculate throughput-optimal quorum size
361
- const throughputOptimal = await this.calculateThroughputOptimalQuorum(
362
- performanceMetrics, membershipStatus.activeNodes
363
- );
364
-
365
- // Calculate latency-optimal quorum size
366
- const latencyOptimal = await this.calculateLatencyOptimalQuorum(
367
- performanceMetrics, membershipStatus.activeNodes
368
- );
369
-
370
- // Balance throughput and latency requirements
371
- const balancedQuorum = await this.balanceThroughputAndLatency(
372
- throughputOptimal, latencyOptimal, performanceMetrics.requirements
373
- );
374
-
375
- return {
376
- quorum: balancedQuorum,
377
- strategy: 'PERFORMANCE_BASED',
378
- confidence: this.calculatePerformanceConfidence(performanceMetrics),
379
- reasoning: this.generatePerformanceReasoning(
380
- balancedQuorum, throughputOptimal, latencyOptimal, bottlenecks
381
- ),
382
- expectedImpact: {
383
- throughputImprovement: this.estimateThroughputImpact(balancedQuorum),
384
- latencyImprovement: this.estimateLatencyImpact(balancedQuorum)
385
- }
386
- };
387
- }
83
+ 1. **Establish the participant set.** `hive-mind_status` gives the current
84
+ worker list. The denominator for any threshold is that list — state it
85
+ explicitly before tallying.
86
+ 2. **Pick the threshold and name it honestly.** Choose `quorum` with an explicit
87
+ preset unless the caller specifically asked for the `bft`/`raft` labels. When
88
+ you do use those labels, restate what they actually mean so nobody downstream
89
+ assumes distributed guarantees.
90
+ 3. **Collect votes with calibrated confidence.** Confidence is the weight, so an
91
+ agent that is unsure must say so — uniform 1.0 confidence silently reduces
92
+ this to unweighted counting.
93
+ 4. **Tally and report both numbers.** Report the raw approved/rejected split
94
+ *and* the weighted result. They can disagree, and that disagreement is
95
+ informative.
96
+ 5. **Record the decision.** Write it through the audit path so it can be
97
+ verified later.
388
98
 
389
- async calculateThroughputOptimalQuorum(performanceMetrics, activeNodes) {
390
- const currentThroughput = performanceMetrics.throughput;
391
- const targetThroughput = performanceMetrics.requirements.targetThroughput;
392
-
393
- // Analyze relationship between quorum size and throughput
394
- const throughputCurve = await this.analyzeThroughputCurve(activeNodes);
395
-
396
- // Find quorum size that maximizes throughput while meeting requirements
397
- let optimalSize = Math.ceil(activeNodes.length / 2) + 1; // Minimum viable quorum
398
- let maxThroughput = 0;
399
-
400
- for (let size = optimalSize; size <= activeNodes.length; size++) {
401
- const projectedThroughput = this.projectThroughput(size, throughputCurve);
402
-
403
- if (projectedThroughput > maxThroughput && projectedThroughput >= targetThroughput) {
404
- maxThroughput = projectedThroughput;
405
- optimalSize = size;
406
- } else if (projectedThroughput < maxThroughput * 0.9) {
407
- // Stop if throughput starts decreasing significantly
408
- break;
409
- }
410
- }
411
-
412
- return await this.selectOptimalNodes(activeNodes, optimalSize, 'THROUGHPUT');
413
- }
99
+ ## Reporting rules
414
100
 
415
- async calculateLatencyOptimalQuorum(performanceMetrics, activeNodes) {
416
- const currentLatency = performanceMetrics.latency;
417
- const targetLatency = performanceMetrics.requirements.maxLatency;
418
-
419
- // Analyze relationship between quorum size and latency
420
- const latencyCurve = await this.analyzeLatencyCurve(activeNodes);
421
-
422
- // Find minimum quorum size that meets latency requirements
423
- const minViableQuorum = Math.ceil(activeNodes.length / 2) + 1;
424
-
425
- for (let size = minViableQuorum; size <= activeNodes.length; size++) {
426
- const projectedLatency = this.projectLatency(size, latencyCurve);
427
-
428
- if (projectedLatency <= targetLatency) {
429
- return await this.selectOptimalNodes(activeNodes, size, 'LATENCY');
430
- }
431
- }
432
-
433
- // If no size meets requirements, return minimum viable with warning
434
- console.warn('No quorum size meets latency requirements');
435
- return await this.selectOptimalNodes(activeNodes, minViableQuorum, 'LATENCY');
436
- }
437
-
438
- async selectOptimalNodes(availableNodes, targetSize, optimizationTarget) {
439
- const nodeScores = new Map();
440
-
441
- // Score nodes based on optimization target
442
- for (const node of availableNodes) {
443
- let score = 0;
444
-
445
- if (optimizationTarget === 'THROUGHPUT') {
446
- score = await this.scoreThroughputCapability(node);
447
- } else if (optimizationTarget === 'LATENCY') {
448
- score = await this.scoreLatencyPerformance(node);
449
- }
450
-
451
- nodeScores.set(node.id, score);
452
- }
453
-
454
- // Select top-scoring nodes
455
- const sortedNodes = availableNodes.sort((a, b) =>
456
- nodeScores.get(b.id) - nodeScores.get(a.id)
457
- );
458
-
459
- const selectedNodes = new Map();
460
-
461
- for (let i = 0; i < Math.min(targetSize, sortedNodes.length); i++) {
462
- const node = sortedNodes[i];
463
- selectedNodes.set(node.id, {
464
- weight: this.calculatePerformanceWeight(node, nodeScores.get(node.id)),
465
- score: nodeScores.get(node.id),
466
- role: i === 0 ? 'primary' : 'secondary',
467
- optimizationTarget: optimizationTarget
468
- });
469
- }
470
-
471
- return {
472
- nodes: selectedNodes,
473
- totalWeight: Array.from(selectedNodes.values())
474
- .reduce((sum, node) => sum + node.weight, 0),
475
- optimizationTarget: optimizationTarget
476
- };
477
- }
478
-
479
- async scoreThroughputCapability(node) {
480
- let score = 0;
481
-
482
- // CPU capacity score
483
- const cpuCapacity = await this.getNodeCPUCapacity(node);
484
- score += (cpuCapacity / 100) * 30; // 30% weight for CPU
485
-
486
- // Network bandwidth score
487
- const bandwidth = await this.getNodeBandwidth(node);
488
- score += (bandwidth / 1000) * 25; // 25% weight for bandwidth (Mbps)
489
-
490
- // Memory capacity score
491
- const memory = await this.getNodeMemory(node);
492
- score += (memory / 8192) * 20; // 20% weight for memory (MB)
493
-
494
- // Historical throughput performance
495
- const historicalPerformance = await this.getHistoricalThroughput(node);
496
- score += (historicalPerformance / 1000) * 25; // 25% weight for historical performance
497
-
498
- return Math.min(100, score); // Normalize to 0-100
499
- }
500
-
501
- async scoreLatencyPerformance(node) {
502
- let score = 100; // Start with perfect score, subtract penalties
503
-
504
- // Network latency penalty
505
- const avgLatency = await this.getAverageNodeLatency(node);
506
- score -= (avgLatency / 10); // Subtract 1 point per 10ms latency
507
-
508
- // CPU load penalty
509
- const cpuLoad = await this.getNodeCPULoad(node);
510
- score -= (cpuLoad / 2); // Subtract 0.5 points per 1% CPU load
511
-
512
- // Geographic distance penalty (for distributed networks)
513
- const geoLatency = await this.getGeographicLatency(node);
514
- score -= (geoLatency / 20); // Subtract 1 point per 20ms geo latency
515
-
516
- // Consistency penalty (nodes with inconsistent performance)
517
- const consistencyScore = await this.getPerformanceConsistency(node);
518
- score *= consistencyScore; // Multiply by consistency factor (0-1)
519
-
520
- return Math.max(0, score);
521
- }
522
- }
523
- ```
524
-
525
- ### Fault Tolerance Strategy
526
- ```javascript
527
- class FaultToleranceStrategy {
528
- constructor() {
529
- this.faultAnalyzer = new FaultAnalyzer();
530
- this.reliabilityCalculator = new ReliabilityCalculator();
531
- this.redundancyOptimizer = new RedundancyOptimizer();
532
- }
533
-
534
- async calculateQuorum(analysisInput) {
535
- const { membershipStatus, faultToleranceRequirements, networkConditions } = analysisInput;
536
-
537
- // Analyze fault scenarios
538
- const faultScenarios = await this.analyzeFaultScenarios(
539
- membershipStatus.activeNodes, networkConditions
540
- );
541
-
542
- // Calculate minimum quorum for fault tolerance requirements
543
- const minQuorum = this.calculateFaultTolerantQuorum(
544
- faultScenarios, faultToleranceRequirements
545
- );
546
-
547
- // Optimize node selection for maximum fault tolerance
548
- const faultTolerantQuorum = await this.optimizeForFaultTolerance(
549
- membershipStatus.activeNodes, minQuorum, faultScenarios
550
- );
551
-
552
- return {
553
- quorum: faultTolerantQuorum,
554
- strategy: 'FAULT_TOLERANCE_BASED',
555
- confidence: this.calculateFaultConfidence(faultScenarios),
556
- reasoning: this.generateFaultToleranceReasoning(
557
- faultTolerantQuorum, faultScenarios, faultToleranceRequirements
558
- ),
559
- expectedImpact: {
560
- availability: this.estimateAvailabilityImprovement(faultTolerantQuorum),
561
- resilience: this.estimateResilienceImprovement(faultTolerantQuorum)
562
- }
563
- };
564
- }
565
-
566
- async analyzeFaultScenarios(activeNodes, networkConditions) {
567
- const scenarios = [];
568
-
569
- // Single node failure scenarios
570
- for (const node of activeNodes) {
571
- const scenario = await this.analyzeSingleNodeFailure(node, activeNodes, networkConditions);
572
- scenarios.push(scenario);
573
- }
574
-
575
- // Multiple node failure scenarios
576
- const multiFailureScenarios = await this.analyzeMultipleNodeFailures(
577
- activeNodes, networkConditions
578
- );
579
- scenarios.push(...multiFailureScenarios);
580
-
581
- // Network partition scenarios
582
- const partitionScenarios = await this.analyzeNetworkPartitionScenarios(
583
- activeNodes, networkConditions
584
- );
585
- scenarios.push(...partitionScenarios);
586
-
587
- // Correlated failure scenarios
588
- const correlatedFailureScenarios = await this.analyzeCorrelatedFailures(
589
- activeNodes, networkConditions
590
- );
591
- scenarios.push(...correlatedFailureScenarios);
592
-
593
- return this.prioritizeScenariosByLikelihood(scenarios);
594
- }
595
-
596
- calculateFaultTolerantQuorum(faultScenarios, requirements) {
597
- let maxRequiredQuorum = 0;
598
-
599
- for (const scenario of faultScenarios) {
600
- if (scenario.likelihood >= requirements.minLikelihoodToConsider) {
601
- const requiredQuorum = this.calculateQuorumForScenario(scenario, requirements);
602
- maxRequiredQuorum = Math.max(maxRequiredQuorum, requiredQuorum);
603
- }
604
- }
605
-
606
- return maxRequiredQuorum;
607
- }
608
-
609
- calculateQuorumForScenario(scenario, requirements) {
610
- const totalNodes = scenario.totalNodes;
611
- const failedNodes = scenario.failedNodes;
612
- const availableNodes = totalNodes - failedNodes;
613
-
614
- // For Byzantine fault tolerance
615
- if (requirements.byzantineFaultTolerance) {
616
- const maxByzantineNodes = Math.floor((totalNodes - 1) / 3);
617
- return Math.floor(2 * totalNodes / 3) + 1;
618
- }
619
-
620
- // For crash fault tolerance
621
- return Math.floor(availableNodes / 2) + 1;
622
- }
623
-
624
- async optimizeForFaultTolerance(activeNodes, minQuorum, faultScenarios) {
625
- const optimizedQuorum = {
626
- nodes: new Map(),
627
- totalWeight: 0,
628
- faultTolerance: {
629
- singleNodeFailures: 0,
630
- multipleNodeFailures: 0,
631
- networkPartitions: 0
632
- }
633
- };
634
-
635
- // Score nodes based on fault tolerance contribution
636
- const nodeScores = await this.scoreFaultToleranceContribution(
637
- activeNodes, faultScenarios
638
- );
639
-
640
- // Select nodes to maximize fault tolerance coverage
641
- const selectedNodes = this.selectFaultTolerantNodes(
642
- activeNodes, minQuorum, nodeScores, faultScenarios
643
- );
644
-
645
- for (const [nodeId, nodeData] of selectedNodes) {
646
- optimizedQuorum.nodes.set(nodeId, {
647
- weight: nodeData.weight,
648
- score: nodeData.score,
649
- role: nodeData.role,
650
- faultToleranceContribution: nodeData.faultToleranceContribution
651
- });
652
- optimizedQuorum.totalWeight += nodeData.weight;
653
- }
654
-
655
- // Calculate fault tolerance metrics for selected quorum
656
- optimizedQuorum.faultTolerance = await this.calculateFaultToleranceMetrics(
657
- selectedNodes, faultScenarios
658
- );
659
-
660
- return optimizedQuorum;
661
- }
662
-
663
- async scoreFaultToleranceContribution(activeNodes, faultScenarios) {
664
- const scores = new Map();
665
-
666
- for (const node of activeNodes) {
667
- let score = 0;
668
-
669
- // Independence score (nodes in different failure domains get higher scores)
670
- const independenceScore = await this.calculateIndependenceScore(node, activeNodes);
671
- score += independenceScore * 40;
672
-
673
- // Reliability score (historical uptime and performance)
674
- const reliabilityScore = await this.calculateReliabilityScore(node);
675
- score += reliabilityScore * 30;
676
-
677
- // Geographic diversity score
678
- const diversityScore = await this.calculateDiversityScore(node, activeNodes);
679
- score += diversityScore * 20;
680
-
681
- // Recovery capability score
682
- const recoveryScore = await this.calculateRecoveryScore(node);
683
- score += recoveryScore * 10;
684
-
685
- scores.set(node.id, score);
686
- }
687
-
688
- return scores;
689
- }
690
-
691
- selectFaultTolerantNodes(activeNodes, minQuorum, nodeScores, faultScenarios) {
692
- const selectedNodes = new Map();
693
- const remainingNodes = [...activeNodes];
694
-
695
- // Greedy selection to maximize fault tolerance coverage
696
- while (selectedNodes.size < minQuorum && remainingNodes.length > 0) {
697
- let bestNode = null;
698
- let bestScore = -1;
699
- let bestIndex = -1;
700
-
701
- for (let i = 0; i < remainingNodes.length; i++) {
702
- const node = remainingNodes[i];
703
- const additionalCoverage = this.calculateAdditionalFaultCoverage(
704
- node, selectedNodes, faultScenarios
705
- );
706
-
707
- const combinedScore = nodeScores.get(node.id) + (additionalCoverage * 50);
708
-
709
- if (combinedScore > bestScore) {
710
- bestScore = combinedScore;
711
- bestNode = node;
712
- bestIndex = i;
713
- }
714
- }
715
-
716
- if (bestNode) {
717
- selectedNodes.set(bestNode.id, {
718
- weight: this.calculateFaultToleranceWeight(bestNode, nodeScores.get(bestNode.id)),
719
- score: nodeScores.get(bestNode.id),
720
- role: selectedNodes.size === 0 ? 'primary' : 'secondary',
721
- faultToleranceContribution: this.calculateFaultToleranceContribution(bestNode)
722
- });
723
-
724
- remainingNodes.splice(bestIndex, 1);
725
- } else {
726
- break; // No more beneficial nodes
727
- }
728
- }
729
-
730
- return selectedNodes;
731
- }
732
- }
733
- ```
734
-
735
- ## MCP Integration Hooks
736
-
737
- ### Quorum State Management
738
- ```javascript
739
- // Store quorum configuration and history
740
- await this.mcpTools.memory_usage({
741
- action: 'store',
742
- key: `quorum_config_${this.nodeId}`,
743
- value: JSON.stringify({
744
- currentQuorum: Array.from(this.currentQuorum.entries()),
745
- strategy: this.activeStrategy,
746
- networkConditions: this.lastNetworkAnalysis,
747
- adjustmentHistory: this.quorumHistory.slice(-10)
748
- }),
749
- namespace: 'quorum_management',
750
- ttl: 3600000 // 1 hour
751
- });
752
-
753
- // Coordinate with swarm for membership changes
754
- const swarmStatus = await this.mcpTools.swarm_status({
755
- swarmId: this.swarmId
756
- });
757
-
758
- await this.mcpTools.coordination_sync({
759
- swarmId: this.swarmId
760
- });
761
- ```
762
-
763
- ### Performance Monitoring Integration
764
- ```javascript
765
- // Track quorum adjustment performance
766
- await this.mcpTools.metrics_collect({
767
- components: [
768
- 'quorum_adjustment_latency',
769
- 'consensus_availability',
770
- 'fault_tolerance_coverage',
771
- 'network_partition_recovery_time'
772
- ]
773
- });
774
-
775
- // Neural learning for quorum optimization
776
- await this.mcpTools.neural_patterns({
777
- action: 'learn',
778
- operation: 'quorum_optimization',
779
- outcome: JSON.stringify({
780
- adjustmentType: adjustment.strategy,
781
- performanceImpact: measurementResults,
782
- networkConditions: currentNetworkState,
783
- faultToleranceImprovement: faultToleranceMetrics
784
- })
785
- });
786
- ```
787
-
788
- ### Task Orchestration for Quorum Changes
789
- ```javascript
790
- // Orchestrate complex quorum adjustments
791
- await this.mcpTools.task_orchestrate({
792
- task: 'quorum_adjustment',
793
- strategy: 'sequential',
794
- priority: 'high',
795
- dependencies: [
796
- 'network_analysis',
797
- 'membership_validation',
798
- 'performance_assessment'
799
- ]
800
- });
801
- ```
802
-
803
- This Quorum Manager provides intelligent, adaptive quorum management that optimizes for network conditions, performance requirements, and fault tolerance needs while maintaining the safety and liveness properties of distributed consensus protocols.
101
+ - Report the participant count you actually tallied. Never infer a larger set.
102
+ - If votes are missing, report the decision as blocked on incomplete
103
+ participation do not extrapolate from the votes you have.
104
+ - Never describe a result as "Byzantine fault tolerant", "Raft consensus", or
105
+ "distributed agreement". It is a weighted vote count in one process. Saying
106
+ otherwise is the specific failure this agent exists to avoid.