agentic-qe 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/.claude/skills/skills-manifest.json +1 -1
  2. package/CHANGELOG.md +43 -0
  3. package/dist/audit/witness-chain.d.ts +1 -1
  4. package/dist/cli/bundle.js +8 -8
  5. package/dist/cli/chunks/adapter-53WBPKXU.js +2 -0
  6. package/dist/cli/chunks/{agent-booster-wasm-PQYB7VRU.js → agent-booster-wasm-AKAOHSCX.js} +2 -2
  7. package/dist/cli/chunks/{agent-handler-QDAB5NQS.js → agent-handler-MTGPOUVP.js} +2 -2
  8. package/dist/cli/chunks/agent-memory-branch-UFPKWUFK.js +2 -0
  9. package/dist/cli/chunks/aqe-learning-engine-MV7NGY24.js +2 -0
  10. package/dist/cli/chunks/{audit-S7JUYYVP.js → audit-VBEZHNHO.js} +2 -2
  11. package/dist/cli/chunks/base-DZVGMQN2.js +2 -0
  12. package/dist/cli/chunks/better-sqlite3-IRPHIXRU.js +2 -0
  13. package/dist/cli/chunks/brain-handler-7EO3FFRZ.js +68 -0
  14. package/dist/cli/chunks/{branch-enumerator-XK4V5W7L.js → branch-enumerator-MZRGP35N.js} +2 -2
  15. package/dist/cli/chunks/{browser-PALA5PL3.js → browser-VSIWQE7J.js} +2 -2
  16. package/dist/cli/chunks/browser-workflow-3J5YNMEI.js +2 -0
  17. package/dist/cli/chunks/chunk-25LFUL2K.js +79 -0
  18. package/dist/cli/chunks/{chunk-LHJQD2VU.js → chunk-2EC5Z2J4.js} +68 -68
  19. package/dist/cli/chunks/{chunk-4YOMLWEK.js → chunk-2VVV73PW.js} +1 -1
  20. package/dist/cli/chunks/{chunk-BPWXXEH2.js → chunk-2WBCYSUN.js} +128 -128
  21. package/dist/cli/chunks/{chunk-X3KI6JOY.js → chunk-2Z2TFEOL.js} +2 -2
  22. package/dist/cli/chunks/chunk-34U7JDCN.js +2 -0
  23. package/dist/cli/chunks/{chunk-24FKIJNC.js → chunk-3GZKAORV.js} +2 -2
  24. package/dist/cli/chunks/{chunk-72WOAVK6.js → chunk-4D2ZG2QO.js} +1 -1
  25. package/dist/cli/chunks/{chunk-B36CDR4U.js → chunk-4DAOZQ3V.js} +2 -2
  26. package/dist/cli/chunks/{chunk-CL6POIX4.js → chunk-4FMHBBG5.js} +1 -1
  27. package/dist/cli/chunks/{chunk-BXAXGEFC.js → chunk-4FT3PND7.js} +5 -5
  28. package/dist/cli/chunks/{chunk-IGJPMN4I.js → chunk-4LA7IW3V.js} +1 -1
  29. package/dist/cli/chunks/{chunk-JRYGQO2W.js → chunk-4PKXIBX2.js} +1 -1
  30. package/dist/cli/chunks/{chunk-YPFOCNOE.js → chunk-4UH25U4O.js} +1 -1
  31. package/dist/cli/chunks/{chunk-U5RN7YQW.js → chunk-4Z27TRQF.js} +2 -2
  32. package/dist/cli/chunks/{chunk-YW2THB5Q.js → chunk-563PJBDM.js} +2 -2
  33. package/dist/cli/chunks/{chunk-BDIEMZ22.js → chunk-56IWS2KY.js} +2 -2
  34. package/dist/cli/chunks/chunk-5AUKULWO.js +2 -0
  35. package/dist/cli/chunks/{chunk-VSVXUTJN.js → chunk-5L6AU3QK.js} +2 -2
  36. package/dist/cli/chunks/{chunk-RTGGL7D7.js → chunk-5RL66XSH.js} +2 -2
  37. package/dist/cli/chunks/{chunk-YANUP2RO.js → chunk-65M7C6SH.js} +1 -1
  38. package/dist/cli/chunks/{chunk-ESVQ6MEB.js → chunk-6SOJVEU7.js} +2 -2
  39. package/dist/cli/chunks/{chunk-UFUVUO3J.js → chunk-727BDQ3K.js} +2 -2
  40. package/dist/cli/chunks/{chunk-TLHP5EII.js → chunk-7NOIIC7G.js} +1 -1
  41. package/dist/cli/chunks/{chunk-N4TL73TH.js → chunk-7SLN2JGP.js} +8 -8
  42. package/dist/cli/chunks/{chunk-NZ2VCPN4.js → chunk-AA33R5U4.js} +2 -2
  43. package/dist/cli/chunks/{chunk-Y7BHKZFJ.js → chunk-AKSJQ6B3.js} +2 -2
  44. package/dist/cli/chunks/{chunk-3ZOONQG6.js → chunk-BIVIPF4O.js} +1 -1
  45. package/dist/cli/chunks/{chunk-VOS4NQSF.js → chunk-BKCTNRC5.js} +2 -2
  46. package/dist/cli/chunks/{chunk-B6LLWYQ6.js → chunk-BOH22AKC.js} +2 -2
  47. package/dist/cli/chunks/{chunk-OI5NGQO2.js → chunk-BY47GV4T.js} +2 -2
  48. package/dist/cli/chunks/chunk-CCYMJKWX.js +2 -0
  49. package/dist/cli/chunks/chunk-CL3K5EJK.js +2 -0
  50. package/dist/cli/chunks/{chunk-GPQ57KA4.js → chunk-CQBSGYRA.js} +2 -2
  51. package/dist/cli/chunks/{chunk-MZOFWJTM.js → chunk-CQP7ZFME.js} +2 -2
  52. package/dist/cli/chunks/chunk-DBE34QES.js +2 -0
  53. package/dist/cli/chunks/chunk-DHE66JRR.js +12 -0
  54. package/dist/cli/chunks/{chunk-2BZFNEN2.js → chunk-DNLMZTE2.js} +1 -1
  55. package/dist/cli/chunks/{chunk-XLRQYLWW.js → chunk-DSE57A5N.js} +1 -1
  56. package/dist/cli/chunks/{chunk-SUSEVMZT.js → chunk-E25S5E2D.js} +1 -1
  57. package/dist/cli/chunks/{chunk-FEKY7T6Q.js → chunk-FAXVVLPL.js} +2 -2
  58. package/dist/cli/chunks/chunk-FRJLP7IB.js +2 -0
  59. package/dist/cli/chunks/{chunk-CS2KS7LP.js → chunk-FUIHWBVF.js} +1 -1
  60. package/dist/cli/chunks/{chunk-LNQIY6BP.js → chunk-GCMVJS5X.js} +2 -2
  61. package/dist/cli/chunks/{chunk-XT2V2322.js → chunk-GITD7SRQ.js} +2 -2
  62. package/dist/cli/chunks/{chunk-JJO7Y4H3.js → chunk-GK72GUHA.js} +3 -3
  63. package/dist/cli/chunks/{chunk-6EOS7KX2.js → chunk-GPLERTZU.js} +2 -2
  64. package/dist/cli/chunks/{chunk-2E5NQNSU.js → chunk-HW4ISY5B.js} +11 -11
  65. package/dist/cli/chunks/{chunk-HRO6OZQD.js → chunk-ICDXWIFZ.js} +1 -1
  66. package/dist/cli/chunks/{chunk-3NZLZHJI.js → chunk-J4BS6IWE.js} +1 -1
  67. package/dist/cli/chunks/{chunk-4VUPRTVX.js → chunk-JOVINE23.js} +2 -2
  68. package/dist/cli/chunks/chunk-JV7LX6OT.js +95 -0
  69. package/dist/cli/chunks/{chunk-6SVX4DJC.js → chunk-KBA7FBK3.js} +3 -3
  70. package/dist/cli/chunks/chunk-KDDZYXP4.js +2 -0
  71. package/dist/cli/chunks/{chunk-GAOJV3OX.js → chunk-KNVAAVHH.js} +2 -2
  72. package/dist/cli/chunks/{chunk-CWFB6BSA.js → chunk-KQTJ2YLI.js} +4 -4
  73. package/dist/cli/chunks/{chunk-FGA7VIFR.js → chunk-KTYUCZEM.js} +3 -3
  74. package/dist/cli/chunks/{chunk-RU5WAHB7.js → chunk-KZTO5EVM.js} +2 -2
  75. package/dist/cli/chunks/{chunk-IFNIIK34.js → chunk-KZUJBZ7B.js} +3 -3
  76. package/dist/cli/chunks/{chunk-GKNNSCLC.js → chunk-L5WZUPZF.js} +2 -2
  77. package/dist/cli/chunks/{chunk-MDUHYUHF.js → chunk-L5YEPSDU.js} +2 -2
  78. package/dist/cli/chunks/chunk-LCAA6H4J.js +2 -0
  79. package/dist/cli/chunks/{chunk-XRE2HCWG.js → chunk-LMMEUVE5.js} +1 -1
  80. package/dist/cli/chunks/{chunk-7VDBAVTY.js → chunk-MN742FIH.js} +2 -2
  81. package/dist/cli/chunks/chunk-MY4LMIG7.js +180 -0
  82. package/dist/cli/chunks/{chunk-WGMPEW2T.js → chunk-N3F3CX4V.js} +2 -2
  83. package/dist/cli/chunks/{chunk-YVA65UZL.js → chunk-NJY7ZA77.js} +1 -1
  84. package/dist/cli/chunks/{chunk-3IHG3WOY.js → chunk-NM6TIEJ3.js} +3 -3
  85. package/dist/cli/chunks/{chunk-KP5NUODU.js → chunk-NRCKGXJJ.js} +1 -1
  86. package/dist/cli/chunks/{chunk-3ADGXLTM.js → chunk-PFNFC43Q.js} +1 -1
  87. package/dist/cli/chunks/{chunk-4VBTXZRM.js → chunk-PJFLO37I.js} +2 -2
  88. package/dist/cli/chunks/{chunk-XIBDETCS.js → chunk-PNL5G6TE.js} +2 -2
  89. package/dist/cli/chunks/{chunk-AFLLQ5PP.js → chunk-Q4A72ZTV.js} +2 -2
  90. package/dist/cli/chunks/{chunk-EHDQJQ6Y.js → chunk-QEQTC4WQ.js} +5 -5
  91. package/dist/cli/chunks/{chunk-IAV2JMIX.js → chunk-QIH3E775.js} +2 -2
  92. package/dist/cli/chunks/{chunk-GRUUQAR6.js → chunk-QNBQBSAI.js} +2 -2
  93. package/dist/cli/chunks/{chunk-WIEC7VKK.js → chunk-QODE4LM6.js} +2 -2
  94. package/dist/cli/chunks/{chunk-HY6PMO5W.js → chunk-QPRVX4H2.js} +2 -2
  95. package/dist/cli/chunks/chunk-RC5CPXON.js +2 -0
  96. package/dist/cli/chunks/{chunk-TWUWL5EJ.js → chunk-RITN3XR4.js} +2 -2
  97. package/dist/cli/chunks/{chunk-WBQSXPBI.js → chunk-RJROC5M3.js} +2 -2
  98. package/dist/cli/chunks/chunk-RQGYJK7H.js +2 -0
  99. package/dist/cli/chunks/{chunk-XO6PVK2P.js → chunk-S3RDH5CI.js} +2 -2
  100. package/dist/cli/chunks/{chunk-3IUNFTIF.js → chunk-SCF7NRVE.js} +1 -1
  101. package/dist/cli/chunks/chunk-SDTVHR63.js +2 -0
  102. package/dist/cli/chunks/chunk-SGAW2WLI.js +65 -0
  103. package/dist/cli/chunks/{chunk-N2NS2PHA.js → chunk-SNVM4YJS.js} +2 -2
  104. package/dist/cli/chunks/{chunk-JXM26HEE.js → chunk-SRRFWTNF.js} +2 -2
  105. package/dist/cli/chunks/{chunk-UQHYFOBX.js → chunk-STE42EMB.js} +2 -2
  106. package/dist/cli/chunks/{chunk-WJ3DLOXF.js → chunk-T5GV6UIO.js} +2 -2
  107. package/dist/cli/chunks/{chunk-4YS3IJ45.js → chunk-TKF447CW.js} +1 -1
  108. package/dist/cli/chunks/{chunk-ZAPS3UGQ.js → chunk-TTOE336G.js} +3 -3
  109. package/dist/cli/chunks/{chunk-YAGODYIG.js → chunk-UKDOMLBI.js} +3 -3
  110. package/dist/cli/chunks/{chunk-JBANAPWG.js → chunk-V6XBAZNH.js} +1 -1
  111. package/dist/cli/chunks/{chunk-BULKFVYX.js → chunk-VHVWAXCF.js} +1 -1
  112. package/dist/cli/chunks/{chunk-5SKGFSKD.js → chunk-VL7YOOC2.js} +2 -2
  113. package/dist/cli/chunks/{chunk-AKE543X2.js → chunk-VUAO4VFC.js} +2 -2
  114. package/dist/cli/chunks/{chunk-7R6YMLVS.js → chunk-WG4GHAML.js} +2 -2
  115. package/dist/cli/chunks/{chunk-BTREG4IW.js → chunk-WXWY2GAF.js} +2 -2
  116. package/dist/cli/chunks/chunk-X35GP7TR.js +1 -0
  117. package/dist/cli/chunks/chunk-X6LCMOGC.js +2 -0
  118. package/dist/cli/chunks/{chunk-BGXNSCXX.js → chunk-XFMKJ3UD.js} +1 -1
  119. package/dist/cli/chunks/{chunk-BLBRY5UD.js → chunk-XH53ARZD.js} +2 -2
  120. package/dist/cli/chunks/chunk-XIBVVZGB.js +2 -0
  121. package/dist/cli/chunks/chunk-XYJL6DKI.js +2 -0
  122. package/dist/cli/chunks/{chunk-5T2ZQWKF.js → chunk-Y6O7CDLI.js} +2 -2
  123. package/dist/cli/chunks/{chunk-4I2IOUS4.js → chunk-YXCU4CJX.js} +1 -1
  124. package/dist/cli/chunks/{chunk-YR6ZZGH7.js → chunk-Z2IKNC5M.js} +1 -1
  125. package/dist/cli/chunks/{chunk-OLHKGP35.js → chunk-Z54EO6E6.js} +2 -2
  126. package/dist/cli/chunks/{chunk-ZDATDCYN.js → chunk-Z5HXGVXZ.js} +1 -1
  127. package/dist/cli/chunks/{ci-J374KDLI.js → ci-2BCOBWFG.js} +2 -2
  128. package/dist/cli/chunks/ci-output-FB4OJHAC.js +2 -0
  129. package/dist/cli/chunks/{claude-flow-setup-245JLJCN.js → claude-flow-setup-NEEFZTMB.js} +2 -2
  130. package/dist/cli/chunks/client-EF555KYW.js +2 -0
  131. package/dist/cli/chunks/{cline-installer-LBA2M5N3.js → cline-installer-ODO2PS4K.js} +2 -2
  132. package/dist/cli/chunks/{code-U4N4WONM.js → code-NSOF62VE.js} +2 -2
  133. package/dist/cli/chunks/{code-index-extractor-A57Z6BO4.js → code-index-extractor-YQL5XN52.js} +2 -2
  134. package/dist/cli/chunks/{codex-installer-UXMK2N4T.js → codex-installer-SPEY6VYT.js} +2 -2
  135. package/dist/cli/chunks/{completions-W66BSCOE.js → completions-OWKBUMBE.js} +2 -2
  136. package/dist/cli/chunks/complexity-analyzer-PGTXKP73.js +2 -0
  137. package/dist/cli/chunks/{continuedev-installer-LRFZ2SJM.js → continuedev-installer-KGOXAC7L.js} +2 -2
  138. package/dist/cli/chunks/{copilot-installer-CQ3JYBIB.js → copilot-installer-BF3UA3TG.js} +2 -2
  139. package/dist/cli/chunks/cost-tracker-2HDJ66E2.js +2 -0
  140. package/dist/cli/chunks/{coverage-4PUEQXAY.js → coverage-KPA2PHIN.js} +3 -3
  141. package/dist/cli/chunks/cross-domain-router-GXFNK5TS.js +2 -0
  142. package/dist/cli/chunks/{cursor-installer-JZEDEDHA.js → cursor-installer-7CDZFHTV.js} +2 -2
  143. package/dist/cli/chunks/{daemon-B7TWGHXQ.js → daemon-4BPGCKDJ.js} +3 -3
  144. package/dist/cli/chunks/dag-attention-scheduler-2MAVGSBB.js +2 -0
  145. package/dist/cli/chunks/detect-WRPWTGP5.js +2 -0
  146. package/dist/cli/chunks/{domain-handler-FT5FLZWL.js → domain-handler-JZVSJ7AG.js} +2 -2
  147. package/dist/cli/chunks/domain-transfer-XGIZOR2X.js +2 -0
  148. package/dist/cli/chunks/dream-3IKF5XH4.js +2 -0
  149. package/dist/cli/chunks/esm-node-DHAE52OW.js +2 -0
  150. package/dist/cli/chunks/{eval-GHMPFGWV.js → eval-T7YPAS4G.js} +2 -2
  151. package/dist/cli/chunks/{fast-paths-B3R647KN.js → fast-paths-QECJTKCQ.js} +2 -2
  152. package/dist/cli/chunks/{feature-flags-DWS7ARSX.js → feature-flags-LIFURSFZ.js} +2 -2
  153. package/dist/cli/chunks/feature-flags-R4QZYTIW.js +2 -0
  154. package/dist/cli/chunks/file-discovery-4W3K3W4C.js +2 -0
  155. package/dist/cli/chunks/{fleet-EKOKMOMW.js → fleet-NLLQWCI5.js} +3 -3
  156. package/dist/cli/chunks/gnn-wrapper-XEII72LN.js +2 -0
  157. package/dist/cli/chunks/{heartbeat-handler-MBBS4IBU.js → heartbeat-handler-DJ65RE5D.js} +4 -4
  158. package/dist/cli/chunks/{heartbeat-scheduler-XDGMOT7X.js → heartbeat-scheduler-H664265Q.js} +2 -2
  159. package/dist/cli/chunks/hnsw-adapter-DML5KXQR.js +2 -0
  160. package/dist/cli/chunks/hnsw-index-BUPPGVR6.js +2 -0
  161. package/dist/cli/chunks/hnsw-legacy-bridge-SQIDTWAA.js +2 -0
  162. package/dist/cli/chunks/hnswlib-node-WICYCU5U.js +2 -0
  163. package/dist/cli/chunks/{hooks-L5VLZGEK.js → hooks-GZUHUD63.js} +6 -6
  164. package/dist/cli/chunks/hypergraph-engine-MLCDZ6BL.js +2 -0
  165. package/dist/cli/chunks/{hypergraph-handler-3HDGB5SZ.js → hypergraph-handler-NNDDI4R3.js} +3 -3
  166. package/dist/cli/chunks/impact-analyzer-DPTMJRYS.js +2 -0
  167. package/dist/cli/chunks/{init-handler-JDET6WUN.js → init-handler-IJ6BHE6A.js} +6 -6
  168. package/dist/cli/chunks/init-wizard-35PUDJPW.js +2 -0
  169. package/dist/cli/chunks/kernel-2HZ44ZJ4.js +2 -0
  170. package/dist/cli/chunks/{kilocode-installer-GZZG5AFW.js → kilocode-installer-EPZFFPFE.js} +2 -2
  171. package/dist/cli/chunks/{kiro-installer-IWNY5TKH.js → kiro-installer-5VACG3HU.js} +2 -2
  172. package/dist/cli/chunks/knowledge-graph-JL62G72U.js +2 -0
  173. package/dist/cli/chunks/{learning-722ZNSZ6.js → learning-6FITK6XY.js} +3 -3
  174. package/dist/cli/chunks/{llm-router-DNAV746L.js → llm-router-4DDC6AKJ.js} +2 -2
  175. package/dist/cli/chunks/{load-Y3GCUFM4.js → load-KGDNVUBX.js} +2 -2
  176. package/dist/cli/chunks/load-test-LN245SSD.js +2 -0
  177. package/dist/cli/chunks/{mcp-LKPIBZ3W.js → mcp-4LETGVIV.js} +2 -2
  178. package/dist/cli/chunks/{memory-L57MLFOP.js → memory-II4I4QMO.js} +5 -5
  179. package/dist/cli/chunks/memory-backend-SVM7YRIE.js +2 -0
  180. package/dist/cli/chunks/memory-handlers-TQXTOJGQ.js +2 -0
  181. package/dist/cli/chunks/opencode-installer-EU6JCWBW.js +3 -0
  182. package/dist/cli/chunks/{orchestrator-QHSBB2UC.js → orchestrator-YLMGJVSP.js} +5 -5
  183. package/dist/cli/chunks/{pipeline-D3QER35Z.js → pipeline-MPZJWYKK.js} +2 -2
  184. package/dist/cli/chunks/{platform-T4E7Q3RD.js → platform-YH35ZZFZ.js} +2 -2
  185. package/dist/cli/chunks/{plugin-JHW2YPRC.js → plugin-B7JYZFNQ.js} +2 -2
  186. package/dist/cli/chunks/{prime-radiant-advanced-wasm-G7CFNNQV.js → prime-radiant-advanced-wasm-KTUK6UE2.js} +2 -2
  187. package/dist/cli/chunks/protocol-executor-IEN2XB4L.js +2 -0
  188. package/dist/cli/chunks/{protocol-handler-2BQQ4HDM.js → protocol-handler-3NXMVU34.js} +2 -2
  189. package/dist/cli/chunks/{prove-UQ6JFT73.js → prove-H5LMGSUC.js} +2 -2
  190. package/dist/cli/chunks/qe-reasoning-bank-Q3ZV3JRG.js +2 -0
  191. package/dist/cli/chunks/{quality-JRZYMC77.js → quality-RCWHY6GO.js} +2 -2
  192. package/dist/cli/chunks/queen-coordinator-E6ON3JUR.js +2 -0
  193. package/dist/cli/chunks/real-embeddings-NKH4VURF.js +2 -0
  194. package/dist/cli/chunks/{roocode-installer-F4E2LAYR.js → roocode-installer-SB7QJYM3.js} +2 -2
  195. package/dist/cli/chunks/router-WMC3LZ3C.js +2 -0
  196. package/dist/cli/chunks/routing-feedback-VKCZRCE3.js +2 -0
  197. package/dist/cli/chunks/{routing-handler-VNKFUUGB.js → routing-handler-SY7GKG2W.js} +2 -2
  198. package/dist/cli/chunks/ruvector-commands-HATTO3UQ.js +8 -0
  199. package/dist/cli/chunks/rvf-dual-writer-D57EXQUD.js +2 -0
  200. package/dist/cli/chunks/rvf-migration-adapter-OWDYN6KD.js +2 -0
  201. package/dist/cli/chunks/rvf-migration-coordinator-SIQVJB5S.js +2 -0
  202. package/dist/cli/chunks/rvf-native-adapter-C7NBH5UN.js +2 -0
  203. package/dist/cli/chunks/safe-db-5KLXCNXN.js +2 -0
  204. package/dist/cli/chunks/schedule-HAWWOXWB.js +2 -0
  205. package/dist/cli/chunks/scheduler-HTRDY5BC.js +2 -0
  206. package/dist/cli/chunks/{security-EBEG2OPU.js → security-DS3XLZWN.js} +3 -3
  207. package/dist/cli/chunks/shared-rvf-adapter-6I2Z5UGL.js +2 -0
  208. package/dist/cli/chunks/shared-rvf-dual-writer-YB7AH6XJ.js +2 -0
  209. package/dist/cli/chunks/sqlite-persistence-WNNRGTGG.js +2 -0
  210. package/dist/cli/chunks/{status-handler-VZ32M4G4.js → status-handler-TUYHE4FT.js} +2 -2
  211. package/dist/cli/chunks/{structural-health-K6LRCKV6.js → structural-health-XNGBNRRD.js} +2 -2
  212. package/dist/cli/chunks/{sync-MHSHNLIM.js → sync-K6CIRKBB.js} +2 -2
  213. package/dist/cli/chunks/{task-handler-JNOIBZ2G.js → task-handler-7PJY67DR.js} +2 -2
  214. package/dist/cli/chunks/task-handlers-WB5CDWUR.js +2 -0
  215. package/dist/cli/chunks/{test-DO22BNIL.js → test-WV5ALEBB.js} +4 -4
  216. package/dist/cli/chunks/{test-scheduling-VLRQZEFL.js → test-scheduling-N55ZGGA2.js} +3 -3
  217. package/dist/cli/chunks/token-bootstrap-SINWHAKR.js +2 -0
  218. package/dist/cli/chunks/{token-usage-LG3PXRXH.js → token-usage-R7TGEVGL.js} +2 -2
  219. package/dist/cli/chunks/transformers-6DBLXPV7.js +2 -0
  220. package/dist/cli/chunks/{tree-sitter-wasm-parser-FT2KB66N.js → tree-sitter-wasm-parser-7C7FKMQW.js} +2 -2
  221. package/dist/cli/chunks/types-VNPMOKQT.js +2 -0
  222. package/dist/cli/chunks/unified-memory-72SKVZ7Y.js +2 -0
  223. package/dist/cli/chunks/unified-memory-hnsw-TMN2L77W.js +2 -0
  224. package/dist/cli/chunks/unified-persistence-MDN3SRCR.js +2 -0
  225. package/dist/cli/chunks/{validate-VQCRSVNQ.js → validate-53MNIRAF.js} +2 -2
  226. package/dist/cli/chunks/{validate-swarm-A5DHAWTP.js → validate-swarm-ZY4RGUFO.js} +2 -2
  227. package/dist/cli/chunks/{vibium-RZBSL4EB.js → vibium-PBADBIV6.js} +2 -2
  228. package/dist/cli/chunks/visual-security-TRBCXPIB.js +2 -0
  229. package/dist/cli/chunks/{web-tree-sitter-7C4NXEOF.js → web-tree-sitter-O7VI6RLB.js} +2 -2
  230. package/dist/cli/chunks/{windsurf-installer-ES3KPQG3.js → windsurf-installer-HV3C3TAD.js} +2 -2
  231. package/dist/cli/chunks/witness-chain-4WIMYP4X.js +2 -0
  232. package/dist/cli/chunks/witness-chain-JOI2YYGK.js +2 -0
  233. package/dist/cli/chunks/{workflow-JETHX4ML.js → workflow-5RVAQ4TM.js} +4 -4
  234. package/dist/cli/chunks/workflow-orchestrator-2NQ72S3C.js +2 -0
  235. package/dist/cli/chunks/{wrappers-WP5RH745.js → wrappers-RRHCCA3E.js} +2 -2
  236. package/dist/cli/commands/ruvector-commands.js +14 -2
  237. package/dist/cli/index.js +10 -15
  238. package/dist/coordination/agent-memory-branch.d.ts +117 -0
  239. package/dist/coordination/agent-memory-branch.js +213 -0
  240. package/dist/coordination/agent-teams/mailbox.d.ts +43 -0
  241. package/dist/coordination/agent-teams/mailbox.js +130 -4
  242. package/dist/coordination/handlers/handler-utils.d.ts +1 -0
  243. package/dist/coordination/handlers/handler-utils.js +9 -2
  244. package/dist/coordination/handlers/quality-handlers.js +7 -1
  245. package/dist/domains/contract-testing/coordinator.js +11 -0
  246. package/dist/domains/quality-assessment/coherence/gate-controller.d.ts +20 -1
  247. package/dist/domains/quality-assessment/coherence/gate-controller.js +64 -0
  248. package/dist/domains/quality-assessment/coherence/index.d.ts +3 -3
  249. package/dist/domains/quality-assessment/coherence/index.js +2 -2
  250. package/dist/domains/quality-assessment/coherence/types.d.ts +39 -0
  251. package/dist/domains/quality-assessment/coherence/types.js +11 -0
  252. package/dist/domains/quality-assessment/coordinator.d.ts +14 -0
  253. package/dist/domains/quality-assessment/coordinator.js +92 -0
  254. package/dist/domains/test-execution/coordinator.d.ts +19 -0
  255. package/dist/domains/test-execution/coordinator.js +102 -5
  256. package/dist/domains/test-generation/coordinator.js +11 -0
  257. package/dist/domains/test-generation/interfaces.d.ts +2 -0
  258. package/dist/domains/test-generation/services/test-generator.d.ts +9 -0
  259. package/dist/domains/test-generation/services/test-generator.js +37 -0
  260. package/dist/init/agents-installer.d.ts +5 -3
  261. package/dist/init/agents-installer.js +17 -43
  262. package/dist/init/find-package-root.d.ts +22 -0
  263. package/dist/init/find-package-root.js +46 -0
  264. package/dist/init/n8n-installer.d.ts +4 -2
  265. package/dist/init/n8n-installer.js +23 -23
  266. package/dist/init/opencode-installer.d.ts +0 -5
  267. package/dist/init/opencode-installer.js +12 -39
  268. package/dist/init/skills-installer.d.ts +5 -2
  269. package/dist/init/skills-installer.js +15 -37
  270. package/dist/integrations/embeddings/index/HNSWIndex.d.ts +9 -2
  271. package/dist/integrations/embeddings/index/HNSWIndex.js +110 -35
  272. package/dist/integrations/ruvector/cognitive-routing.d.ts +67 -0
  273. package/dist/integrations/ruvector/cognitive-routing.js +208 -0
  274. package/dist/integrations/ruvector/feature-flags.d.ts +84 -0
  275. package/dist/integrations/ruvector/feature-flags.js +59 -0
  276. package/dist/integrations/ruvector/hdc-fingerprint.d.ts +76 -0
  277. package/dist/integrations/ruvector/hdc-fingerprint.js +217 -0
  278. package/dist/integrations/ruvector/hyperbolic-hnsw.d.ts +59 -0
  279. package/dist/integrations/ruvector/hyperbolic-hnsw.js +194 -0
  280. package/dist/integrations/ruvector/index.d.ts +5 -2
  281. package/dist/integrations/ruvector/index.js +13 -2
  282. package/dist/integrations/ruvector/shared-rvf-adapter.d.ts +24 -0
  283. package/dist/integrations/ruvector/shared-rvf-adapter.js +55 -0
  284. package/dist/integrations/ruvector/shared-rvf-dual-writer.d.ts +6 -0
  285. package/dist/integrations/ruvector/shared-rvf-dual-writer.js +38 -0
  286. package/dist/integrations/ruvector/sona-persistence.d.ts +8 -0
  287. package/dist/integrations/ruvector/sona-persistence.js +10 -0
  288. package/dist/integrations/ruvector/vector-delta-tracker.d.ts +96 -0
  289. package/dist/integrations/ruvector/vector-delta-tracker.js +226 -0
  290. package/dist/kernel/agent-coordinator.d.ts +75 -1
  291. package/dist/kernel/agent-coordinator.js +250 -1
  292. package/dist/kernel/hnsw-legacy-bridge.d.ts +38 -0
  293. package/dist/kernel/hnsw-legacy-bridge.js +88 -0
  294. package/dist/kernel/hnsw-shadow-validator.d.ts +91 -0
  295. package/dist/kernel/hnsw-shadow-validator.js +139 -0
  296. package/dist/kernel/index.d.ts +1 -1
  297. package/dist/kernel/index.js +1 -1
  298. package/dist/kernel/interfaces.d.ts +39 -0
  299. package/dist/kernel/kernel.d.ts +23 -0
  300. package/dist/kernel/kernel.js +106 -1
  301. package/dist/kernel/unified-memory.d.ts +1 -1
  302. package/dist/kernel/unified-memory.js +7 -3
  303. package/dist/learning/aqe-learning-engine.d.ts +65 -0
  304. package/dist/learning/aqe-learning-engine.js +134 -0
  305. package/dist/learning/dream/dream-engine.d.ts +6 -1
  306. package/dist/learning/dream/dream-engine.js +37 -2
  307. package/dist/learning/dream/dream-scheduler.d.ts +25 -0
  308. package/dist/learning/dream/dream-scheduler.js +120 -0
  309. package/dist/learning/dream/rvcow-branch-manager.d.ts +6 -3
  310. package/dist/learning/dream/rvcow-branch-manager.js +60 -5
  311. package/dist/learning/experience-capture.d.ts +3 -3
  312. package/dist/learning/hyperbolic-pattern-index.d.ts +82 -0
  313. package/dist/learning/hyperbolic-pattern-index.js +142 -0
  314. package/dist/learning/index.d.ts +3 -3
  315. package/dist/learning/index.js +1 -1
  316. package/dist/learning/metrics-tracker.d.ts +44 -0
  317. package/dist/learning/metrics-tracker.js +37 -0
  318. package/dist/learning/pattern-promotion.d.ts +3 -3
  319. package/dist/learning/pattern-store.d.ts +45 -2
  320. package/dist/learning/pattern-store.js +239 -4
  321. package/dist/learning/qe-patterns.d.ts +1 -1
  322. package/dist/learning/qe-reasoning-bank.js +1 -1
  323. package/dist/learning/rvf-pattern-migration.d.ts +50 -0
  324. package/dist/learning/rvf-pattern-migration.js +106 -0
  325. package/dist/learning/rvf-pattern-store.d.ts +69 -0
  326. package/dist/learning/rvf-pattern-store.js +449 -0
  327. package/dist/mcp/bundle.js +1894 -1804
  328. package/dist/mcp/handlers/index.d.ts +1 -0
  329. package/dist/mcp/handlers/index.js +2 -0
  330. package/dist/mcp/handlers/migration-handlers.d.ts +52 -0
  331. package/dist/mcp/handlers/migration-handlers.js +85 -0
  332. package/dist/mcp/protocol-server.d.ts +1 -0
  333. package/dist/mcp/protocol-server.js +63 -2
  334. package/dist/mcp/types.d.ts +1 -1
  335. package/dist/optimization/early-exit-token-optimizer.d.ts +7 -7
  336. package/dist/optimization/early-exit-token-optimizer.js +3 -3
  337. package/dist/persistence/rvf-consistency-validator.d.ts +85 -0
  338. package/dist/persistence/rvf-consistency-validator.js +182 -0
  339. package/dist/persistence/rvf-migration-adapter.d.ts +125 -0
  340. package/dist/persistence/rvf-migration-adapter.js +303 -0
  341. package/dist/persistence/rvf-migration-coordinator.d.ts +115 -0
  342. package/dist/persistence/rvf-migration-coordinator.js +224 -0
  343. package/dist/persistence/rvf-stage-gate.d.ts +70 -0
  344. package/dist/persistence/rvf-stage-gate.js +163 -0
  345. package/package.json +10 -10
  346. package/dist/cli/chunks/adapter-WBR5NXS3.js +0 -2
  347. package/dist/cli/chunks/aqe-learning-engine-TK4JQCGT.js +0 -2
  348. package/dist/cli/chunks/base-2WXOSMBQ.js +0 -2
  349. package/dist/cli/chunks/better-sqlite3-7KY2RDXO.js +0 -2
  350. package/dist/cli/chunks/brain-handler-PPEGDCN4.js +0 -68
  351. package/dist/cli/chunks/browser-workflow-42F7GK5T.js +0 -2
  352. package/dist/cli/chunks/chunk-263XS447.js +0 -2
  353. package/dist/cli/chunks/chunk-2I7J3O6V.js +0 -2
  354. package/dist/cli/chunks/chunk-3JPRUND5.js +0 -2
  355. package/dist/cli/chunks/chunk-3THRQEZ2.js +0 -95
  356. package/dist/cli/chunks/chunk-4B6NCELM.js +0 -2
  357. package/dist/cli/chunks/chunk-62ADTHV7.js +0 -2
  358. package/dist/cli/chunks/chunk-BR26T7ZS.js +0 -180
  359. package/dist/cli/chunks/chunk-DRT3WKQW.js +0 -2
  360. package/dist/cli/chunks/chunk-FIA6X7UL.js +0 -2
  361. package/dist/cli/chunks/chunk-J3KWWR6Z.js +0 -1
  362. package/dist/cli/chunks/chunk-JZSDOIXA.js +0 -2
  363. package/dist/cli/chunks/chunk-MV6CMOJQ.js +0 -65
  364. package/dist/cli/chunks/chunk-N5UXCLFI.js +0 -2
  365. package/dist/cli/chunks/chunk-OF4D7MYI.js +0 -2
  366. package/dist/cli/chunks/chunk-QOVHWZEP.js +0 -1
  367. package/dist/cli/chunks/chunk-RFSN6IDA.js +0 -79
  368. package/dist/cli/chunks/chunk-X5IJGWYG.js +0 -2
  369. package/dist/cli/chunks/ci-output-7JN7F6CI.js +0 -2
  370. package/dist/cli/chunks/client-MCSNSH2C.js +0 -2
  371. package/dist/cli/chunks/complexity-analyzer-AB4OZARV.js +0 -2
  372. package/dist/cli/chunks/cost-tracker-4F723RB6.js +0 -2
  373. package/dist/cli/chunks/cross-domain-router-OWR5IJ5G.js +0 -2
  374. package/dist/cli/chunks/dag-attention-scheduler-JWO6XI6A.js +0 -2
  375. package/dist/cli/chunks/detect-L6ZZHUSX.js +0 -2
  376. package/dist/cli/chunks/domain-transfer-5Y4FGJAJ.js +0 -2
  377. package/dist/cli/chunks/dream-4TDBIYED.js +0 -2
  378. package/dist/cli/chunks/esm-node-2PKHKOTS.js +0 -2
  379. package/dist/cli/chunks/feature-flags-IVQ3AL4Q.js +0 -2
  380. package/dist/cli/chunks/file-discovery-QFPA6GMV.js +0 -2
  381. package/dist/cli/chunks/gnn-wrapper-OYC55N5E.js +0 -2
  382. package/dist/cli/chunks/hnsw-index-YO7CT23I.js +0 -2
  383. package/dist/cli/chunks/hnswlib-node-56YWVXFE.js +0 -2
  384. package/dist/cli/chunks/hypergraph-engine-A4Y2ZRAG.js +0 -2
  385. package/dist/cli/chunks/impact-analyzer-UEIGXSZ4.js +0 -2
  386. package/dist/cli/chunks/init-wizard-JWZUGIPJ.js +0 -2
  387. package/dist/cli/chunks/kernel-YNDTVKIW.js +0 -2
  388. package/dist/cli/chunks/knowledge-graph-NGJKFTSN.js +0 -2
  389. package/dist/cli/chunks/load-test-GZUBXFF3.js +0 -2
  390. package/dist/cli/chunks/memory-backend-3NQIZUXE.js +0 -2
  391. package/dist/cli/chunks/memory-handlers-MDZQ7HVW.js +0 -2
  392. package/dist/cli/chunks/opencode-installer-4HUB36H5.js +0 -3
  393. package/dist/cli/chunks/protocol-executor-SPUVRDWT.js +0 -2
  394. package/dist/cli/chunks/qe-reasoning-bank-3HBK2FVD.js +0 -2
  395. package/dist/cli/chunks/queen-coordinator-RW3NKO5A.js +0 -2
  396. package/dist/cli/chunks/real-embeddings-GK63VF35.js +0 -2
  397. package/dist/cli/chunks/router-RJGHWDQ3.js +0 -2
  398. package/dist/cli/chunks/routing-feedback-ZXBXFKX6.js +0 -2
  399. package/dist/cli/chunks/ruvector-commands-2TLNHC3A.js +0 -8
  400. package/dist/cli/chunks/rvf-dual-writer-MQW2SJLT.js +0 -2
  401. package/dist/cli/chunks/rvf-native-adapter-LKFKTMUN.js +0 -2
  402. package/dist/cli/chunks/safe-db-G22E5ROA.js +0 -2
  403. package/dist/cli/chunks/schedule-Y7VVCPYV.js +0 -2
  404. package/dist/cli/chunks/scheduler-AUQIFQB7.js +0 -2
  405. package/dist/cli/chunks/shared-rvf-dual-writer-BVSCQAFS.js +0 -2
  406. package/dist/cli/chunks/sqlite-persistence-JAVHUGGL.js +0 -2
  407. package/dist/cli/chunks/task-handlers-P5DSUKND.js +0 -2
  408. package/dist/cli/chunks/token-bootstrap-4VJKGVMK.js +0 -2
  409. package/dist/cli/chunks/transformers-GY7SIKEU.js +0 -2
  410. package/dist/cli/chunks/types-QJGNBKP2.js +0 -2
  411. package/dist/cli/chunks/unified-memory-XYGENQUT.js +0 -2
  412. package/dist/cli/chunks/unified-memory-hnsw-MVEGQBF3.js +0 -2
  413. package/dist/cli/chunks/unified-persistence-PFRCWEUG.js +0 -2
  414. package/dist/cli/chunks/visual-security-V47BLGJM.js +0 -2
  415. package/dist/cli/chunks/witness-chain-BR63P4A7.js +0 -2
  416. package/dist/cli/chunks/workflow-orchestrator-7PZMX3JZ.js +0 -2
@@ -0,0 +1,208 @@
1
+ /**
2
+ * R13: Cognitive Routing — Predictive Coding for Agent Communication
3
+ *
4
+ * Bandwidth reduction via sliding-window prediction + delta-only transmission.
5
+ * Oscillatory routing multiplexes concurrent message streams round-robin.
6
+ * TypeScript-only; no external dependencies.
7
+ *
8
+ * @module integrations/ruvector/cognitive-routing
9
+ */
10
+ import { getRuVectorFeatureFlags } from './feature-flags.js';
11
+ const DEFAULT_CONFIG = {
12
+ predictionWindowSize: 10, compressionThreshold: 0.3,
13
+ maxConcurrentStreams: 8, oscillationFrequencyMs: 100,
14
+ };
15
+ function estimateSize(value) {
16
+ try {
17
+ return JSON.stringify(value).length;
18
+ }
19
+ catch {
20
+ return 0;
21
+ }
22
+ }
23
+ function computeDelta(predicted, actual) {
24
+ const delta = {};
25
+ let hasChanges = false;
26
+ for (const key of Object.keys(actual)) {
27
+ if (JSON.stringify(predicted[key]) !== JSON.stringify(actual[key])) {
28
+ delta[key] = actual[key];
29
+ hasChanges = true;
30
+ }
31
+ }
32
+ for (const key of Object.keys(predicted)) {
33
+ if (!(key in actual)) {
34
+ delta[key] = undefined;
35
+ hasChanges = true;
36
+ }
37
+ }
38
+ return hasChanges ? delta : null;
39
+ }
40
+ function applyDelta(predicted, delta) {
41
+ const result = { ...predicted };
42
+ for (const [key, value] of Object.entries(delta)) {
43
+ if (value === undefined)
44
+ delete result[key];
45
+ else
46
+ result[key] = value;
47
+ }
48
+ return result;
49
+ }
50
+ /** Sliding-window predictor: predicts next payload as copy of last seen. */
51
+ export class MessagePredictor {
52
+ windowSize;
53
+ windows = new Map();
54
+ constructor(windowSize) { this.windowSize = Math.max(1, windowSize); }
55
+ predict(streamId) {
56
+ const w = this.windows.get(streamId);
57
+ if (!w || w.length === 0)
58
+ return null;
59
+ const last = w[w.length - 1];
60
+ if (typeof last !== 'object' || last === null || Array.isArray(last))
61
+ return null;
62
+ return { ...last };
63
+ }
64
+ record(streamId, payload) {
65
+ let w = this.windows.get(streamId);
66
+ if (!w) {
67
+ w = [];
68
+ this.windows.set(streamId, w);
69
+ }
70
+ w.push(payload);
71
+ if (w.length > this.windowSize)
72
+ w.shift();
73
+ }
74
+ removeStream(streamId) { this.windows.delete(streamId); }
75
+ }
76
+ /** Round-robin multiplexer for concurrent message streams. */
77
+ export class OscillatoryRouter {
78
+ maxStreams;
79
+ cycleMs;
80
+ streamIds = [];
81
+ currentIndex = 0;
82
+ constructor(maxStreams, cycleMs) {
83
+ this.maxStreams = Math.max(1, maxStreams);
84
+ this.cycleMs = Math.max(1, cycleMs);
85
+ }
86
+ addStream(streamId) {
87
+ if (this.streamIds.includes(streamId) || this.streamIds.length >= this.maxStreams)
88
+ return false;
89
+ this.streamIds.push(streamId);
90
+ return true;
91
+ }
92
+ removeStream(streamId) {
93
+ const idx = this.streamIds.indexOf(streamId);
94
+ if (idx === -1)
95
+ return false;
96
+ this.streamIds.splice(idx, 1);
97
+ if (this.currentIndex >= this.streamIds.length)
98
+ this.currentIndex = 0;
99
+ return true;
100
+ }
101
+ nextStream() {
102
+ if (this.streamIds.length === 0)
103
+ return null;
104
+ const s = this.streamIds[this.currentIndex];
105
+ this.currentIndex = (this.currentIndex + 1) % this.streamIds.length;
106
+ return s;
107
+ }
108
+ getActiveStreams() { return [...this.streamIds]; }
109
+ get activeCount() { return this.streamIds.length; }
110
+ }
111
+ /** Combines MessagePredictor + OscillatoryRouter for bandwidth-efficient routing. */
112
+ export class CognitiveRouter {
113
+ config;
114
+ predictor;
115
+ router;
116
+ lastPayloads = new Map();
117
+ totalMessages = 0;
118
+ compressedMessages = 0;
119
+ totalOriginalBytes = 0;
120
+ totalCompressedBytes = 0;
121
+ constructor(config) {
122
+ this.config = { ...DEFAULT_CONFIG, ...config };
123
+ this.predictor = new MessagePredictor(this.config.predictionWindowSize);
124
+ this.router = new OscillatoryRouter(this.config.maxConcurrentStreams, this.config.oscillationFrequencyMs);
125
+ }
126
+ send(streamId, senderId, receiverId, payload) {
127
+ this.totalMessages++;
128
+ const originalSize = estimateSize(payload);
129
+ this.totalOriginalBytes += originalSize;
130
+ let compressed = false;
131
+ let transmittedPayload = payload;
132
+ let compressedSize = originalSize;
133
+ if (typeof payload === 'object' && payload !== null && !Array.isArray(payload)) {
134
+ const prediction = this.predictor.predict(streamId);
135
+ if (prediction) {
136
+ const delta = computeDelta(prediction, payload);
137
+ if (delta) {
138
+ const deltaSize = estimateSize(delta);
139
+ if (1 - deltaSize / Math.max(originalSize, 1) >= this.config.compressionThreshold) {
140
+ transmittedPayload = { __delta: true, __changes: delta };
141
+ compressedSize = estimateSize(transmittedPayload);
142
+ compressed = true;
143
+ this.compressedMessages++;
144
+ }
145
+ }
146
+ else {
147
+ transmittedPayload = { __delta: true, __changes: {} };
148
+ compressedSize = estimateSize(transmittedPayload);
149
+ compressed = true;
150
+ this.compressedMessages++;
151
+ }
152
+ }
153
+ }
154
+ this.totalCompressedBytes += compressedSize;
155
+ this.predictor.record(streamId, payload);
156
+ this.lastPayloads.set(streamId, payload);
157
+ return { streamId, senderId, receiverId, payload: transmittedPayload,
158
+ compressed, originalSize, compressedSize, timestamp: Date.now() };
159
+ }
160
+ receive(message) {
161
+ if (!message.compressed || typeof message.payload !== 'object' || message.payload === null) {
162
+ this.lastPayloads.set(message.streamId, message.payload);
163
+ this.predictor.record(message.streamId, message.payload);
164
+ return message.payload;
165
+ }
166
+ const envelope = message.payload;
167
+ if (!envelope.__delta) {
168
+ this.lastPayloads.set(message.streamId, message.payload);
169
+ this.predictor.record(message.streamId, message.payload);
170
+ return message.payload;
171
+ }
172
+ const prediction = this.predictor.predict(message.streamId);
173
+ const changes = (envelope.__changes ?? {});
174
+ if (!prediction)
175
+ return changes;
176
+ const reconstructed = applyDelta(prediction, changes);
177
+ this.predictor.record(message.streamId, reconstructed);
178
+ this.lastPayloads.set(message.streamId, reconstructed);
179
+ return reconstructed;
180
+ }
181
+ getStats() {
182
+ const saved = this.totalOriginalBytes - this.totalCompressedBytes;
183
+ return {
184
+ totalMessages: this.totalMessages, compressedMessages: this.compressedMessages,
185
+ bandwidthSavedBytes: Math.max(0, saved),
186
+ bandwidthReductionPercent: this.totalOriginalBytes > 0
187
+ ? (Math.max(0, saved) / this.totalOriginalBytes) * 100 : 0,
188
+ activeStreams: this.router.activeCount,
189
+ };
190
+ }
191
+ addStream(streamId) { this.router.addStream(streamId); }
192
+ removeStream(streamId) {
193
+ this.router.removeStream(streamId);
194
+ this.predictor.removeStream(streamId);
195
+ this.lastPayloads.delete(streamId);
196
+ }
197
+ }
198
+ /** Create a CognitiveRouter if the feature flag is enabled, otherwise null. */
199
+ export function createCognitiveRouter(config) {
200
+ if (!isCognitiveRoutingEnabled())
201
+ return null;
202
+ return new CognitiveRouter(config);
203
+ }
204
+ /** Check if Cognitive Routing feature flag is enabled. */
205
+ export function isCognitiveRoutingEnabled() {
206
+ return getRuVectorFeatureFlags().useCognitiveRouting;
207
+ }
208
+ //# sourceMappingURL=cognitive-routing.js.map
@@ -189,6 +189,42 @@ export interface RuVectorFeatureFlags {
189
189
  * @default true
190
190
  */
191
191
  useReasoningQEC: boolean;
192
+ /**
193
+ * Enable RVF-backed PatternStore (ADR-066)
194
+ * Replaces SQLite BLOB + in-memory HNSW rebuild with @ruvector/rvf-node
195
+ * persistent HNSW. Eliminates cold-start index rebuild, provides sub-ms
196
+ * search via native SIMD acceleration, and enables COW branching (ADR-067/069).
197
+ * Pattern metadata remains in SQLite; only vector storage moves to RVF.
198
+ * @default false — will flip to true after benchmarks confirm improvement
199
+ */
200
+ useRVFPatternStore: boolean;
201
+ /**
202
+ * Enable Agent Memory Branching via RVF COW (ADR-067)
203
+ * Each spawned agent gets a lightweight COW-derived .rvf branch file.
204
+ * Agent writes are isolated; successful agents merge back, failed agents
205
+ * discard at zero cost. Requires useRVFPatternStore to be enabled.
206
+ * @default false — will flip to true after benchmarks confirm improvement
207
+ */
208
+ useAgentMemoryBranching: boolean;
209
+ /**
210
+ * Enable Unified HNSW Provider (ADR-071)
211
+ * Routes all three legacy HNSW implementations (TypeScript, RuvectorFlatIndex,
212
+ * QEGNNEmbeddingIndex) through a single HnswAdapter backend. Eliminates
213
+ * inconsistent search results and triples maintenance burden.
214
+ * @default false — will flip to true after shadow validation confirms <2% divergence
215
+ */
216
+ useUnifiedHnsw: boolean;
217
+ /**
218
+ * RVF Migration Stage (ADR-072)
219
+ * Controls the gradual migration from SQLite to RVF primary persistence.
220
+ * Stage 0: SQLite only (legacy, no RVF involvement)
221
+ * Stage 1: Hybrid (current — ADR-065, RvfPatternStore for vectors, SQLite for metadata)
222
+ * Stage 2: Dual-write, SQLite source of truth (both engines receive writes, reads from SQLite)
223
+ * Stage 3: Dual-write, RVF source of truth (both engines receive writes, reads from RVF)
224
+ * Stage 4: RVF primary, SQLite escape hatch (writes to RVF only, SQLite for fallback)
225
+ * @default 1 — current hybrid
226
+ */
227
+ rvfMigrationStage: 0 | 1 | 2 | 3 | 4;
192
228
  /**
193
229
  * Enable HDC Pattern Fingerprinting (R1, ADR-087)
194
230
  * Uses 10,000-bit binary hypervectors with XOR binding for O(1) compositional
@@ -301,6 +337,24 @@ export interface RuVectorFeatureFlags {
301
337
  * @default false
302
338
  */
303
339
  useGrangerCausality: boolean;
340
+ /**
341
+ * Enable Cognitive Routing (R13, ADR-087)
342
+ * Predictive coding for agent communication bandwidth reduction. Predicts
343
+ * next message from sliding window context and sends only the delta.
344
+ * Oscillatory routing multiplexes concurrent message streams.
345
+ * Consumer: agent communication layer
346
+ * @default false
347
+ */
348
+ useCognitiveRouting: boolean;
349
+ /**
350
+ * Enable Hyperbolic HNSW (R14, ADR-087)
351
+ * Poincare ball embeddings for hierarchical data. Maps tree-structured data
352
+ * (module hierarchies, test suite trees) into hyperbolic space where distances
353
+ * naturally preserve parent-child relationships.
354
+ * Consumer: code-intelligence hierarchical search
355
+ * @default false
356
+ */
357
+ useHyperbolicHnsw: boolean;
304
358
  }
305
359
  /**
306
360
  * Default feature flags - all enabled by default
@@ -453,6 +507,26 @@ export declare function isCoherenceActionGateEnabled(): boolean;
453
507
  * @returns true if useReasoningQEC flag is set
454
508
  */
455
509
  export declare function isReasoningQECEnabled(): boolean;
510
+ /**
511
+ * Check if RVF-backed PatternStore is enabled (ADR-066)
512
+ * @returns true if useRVFPatternStore flag is set
513
+ */
514
+ export declare function isRVFPatternStoreEnabled(): boolean;
515
+ /**
516
+ * Check if Agent Memory Branching is enabled (ADR-067)
517
+ * @returns true if useAgentMemoryBranching flag is set
518
+ */
519
+ export declare function isAgentMemoryBranchingEnabled(): boolean;
520
+ /**
521
+ * Check if Unified HNSW Provider is enabled (ADR-071)
522
+ * @returns true if useUnifiedHnsw flag is set
523
+ */
524
+ export declare function isUnifiedHnswEnabled(): boolean;
525
+ /**
526
+ * Get the current RVF migration stage (ADR-072)
527
+ * @returns 0-4 representing the migration stage
528
+ */
529
+ export declare function getRvfMigrationStage(): 0 | 1 | 2 | 3 | 4;
456
530
  /**
457
531
  * Check if HDC Pattern Fingerprinting is enabled (R1, ADR-087)
458
532
  * @returns true if useHDCFingerprinting flag is set
@@ -518,6 +592,16 @@ export declare function isEpropOnlineLearningEnabled(): boolean;
518
592
  * @returns true if useGrangerCausality flag is set
519
593
  */
520
594
  export declare function isGrangerCausalityEnabled(): boolean;
595
+ /**
596
+ * Check if Cognitive Routing is enabled (R13, ADR-087)
597
+ * @returns true if useCognitiveRouting flag is set
598
+ */
599
+ export declare function isCognitiveRoutingEnabled(): boolean;
600
+ /**
601
+ * Check if Hyperbolic HNSW is enabled (R14, ADR-087)
602
+ * @returns true if useHyperbolicHnsw flag is set
603
+ */
604
+ export declare function isHyperbolicHnswEnabled(): boolean;
521
605
  /**
522
606
  * Initialize feature flags from environment variables
523
607
  *
@@ -36,6 +36,11 @@ const DEFAULT_FEATURE_FLAGS = {
36
36
  useDAGAttention: true,
37
37
  useCoherenceActionGate: true,
38
38
  useReasoningQEC: true,
39
+ // RVF Cluster (ADR-065–072)
40
+ useRVFPatternStore: true, // benchmarked: 0.4ms cold-start, 0.5ms search p50
41
+ useAgentMemoryBranching: true, // COW derive + ingest-log merge, wired into kernel boot (ADR-067)
42
+ useUnifiedHnsw: true, // HnswLegacyBridge routes all consumers through unified backend (ADR-071)
43
+ rvfMigrationStage: 2, // ADR-072: dual-write (stage 2) — both engines receive writes, SQLite reads
39
44
  // Phase 5 (ADR-087) — enabled by default, opt-out
40
45
  useHDCFingerprinting: true,
41
46
  useCusumDriftDetection: true,
@@ -53,6 +58,9 @@ const DEFAULT_FEATURE_FLAGS = {
53
58
  // Phase 5 Milestone 4 (ADR-087) — verified, default true (opt-out)
54
59
  useEpropOnlineLearning: true,
55
60
  useGrangerCausality: true,
61
+ // Phase 5 Milestone 5 (ADR-087) — backlog/speculative, default false (opt-in)
62
+ useCognitiveRouting: false,
63
+ useHyperbolicHnsw: false,
56
64
  };
57
65
  // ============================================================================
58
66
  // Internal State
@@ -261,6 +269,35 @@ export function isCoherenceActionGateEnabled() {
261
269
  export function isReasoningQECEnabled() {
262
270
  return currentFeatureFlags.useReasoningQEC;
263
271
  }
272
+ // RVF Cluster (ADR-065–072) convenience functions
273
+ /**
274
+ * Check if RVF-backed PatternStore is enabled (ADR-066)
275
+ * @returns true if useRVFPatternStore flag is set
276
+ */
277
+ export function isRVFPatternStoreEnabled() {
278
+ return currentFeatureFlags.useRVFPatternStore;
279
+ }
280
+ /**
281
+ * Check if Agent Memory Branching is enabled (ADR-067)
282
+ * @returns true if useAgentMemoryBranching flag is set
283
+ */
284
+ export function isAgentMemoryBranchingEnabled() {
285
+ return currentFeatureFlags.useAgentMemoryBranching;
286
+ }
287
+ /**
288
+ * Check if Unified HNSW Provider is enabled (ADR-071)
289
+ * @returns true if useUnifiedHnsw flag is set
290
+ */
291
+ export function isUnifiedHnswEnabled() {
292
+ return currentFeatureFlags.useUnifiedHnsw;
293
+ }
294
+ /**
295
+ * Get the current RVF migration stage (ADR-072)
296
+ * @returns 0-4 representing the migration stage
297
+ */
298
+ export function getRvfMigrationStage() {
299
+ return currentFeatureFlags.rvfMigrationStage;
300
+ }
264
301
  // Phase 5 (ADR-087) convenience functions
265
302
  /**
266
303
  * Check if HDC Pattern Fingerprinting is enabled (R1, ADR-087)
@@ -356,6 +393,21 @@ export function isEpropOnlineLearningEnabled() {
356
393
  export function isGrangerCausalityEnabled() {
357
394
  return currentFeatureFlags.useGrangerCausality;
358
395
  }
396
+ // Phase 5 Milestone 5 (ADR-087) convenience functions
397
+ /**
398
+ * Check if Cognitive Routing is enabled (R13, ADR-087)
399
+ * @returns true if useCognitiveRouting flag is set
400
+ */
401
+ export function isCognitiveRoutingEnabled() {
402
+ return currentFeatureFlags.useCognitiveRouting;
403
+ }
404
+ /**
405
+ * Check if Hyperbolic HNSW is enabled (R14, ADR-087)
406
+ * @returns true if useHyperbolicHnsw flag is set
407
+ */
408
+ export function isHyperbolicHnswEnabled() {
409
+ return currentFeatureFlags.useHyperbolicHnsw;
410
+ }
359
411
  // ============================================================================
360
412
  // Environment Variable Support
361
413
  // ============================================================================
@@ -466,6 +518,13 @@ export function initFeatureFlagsFromEnv() {
466
518
  if (process.env.RUVECTOR_USE_GRANGER_CAUSALITY !== undefined) {
467
519
  envFlags.useGrangerCausality = process.env.RUVECTOR_USE_GRANGER_CAUSALITY === 'true';
468
520
  }
521
+ // Phase 5 Milestone 5 (ADR-087) env vars
522
+ if (process.env.RUVECTOR_USE_COGNITIVE_ROUTING !== undefined) {
523
+ envFlags.useCognitiveRouting = process.env.RUVECTOR_USE_COGNITIVE_ROUTING === 'true';
524
+ }
525
+ if (process.env.RUVECTOR_USE_HYPERBOLIC_HNSW !== undefined) {
526
+ envFlags.useHyperbolicHnsw = process.env.RUVECTOR_USE_HYPERBOLIC_HNSW === 'true';
527
+ }
469
528
  setRuVectorFeatureFlags(envFlags);
470
529
  }
471
530
  // ============================================================================
@@ -44,6 +44,74 @@ export interface PatternInput {
44
44
  type: string;
45
45
  content?: string;
46
46
  }
47
+ /**
48
+ * Generate a random binary hypervector using crypto-quality randomness.
49
+ * @param dimensions Number of bits. Default: 10000
50
+ */
51
+ export declare function createRandomHypervector(dimensions?: number): Uint8Array;
52
+ /**
53
+ * XOR binding — component-wise XOR of two packed-bit vectors.
54
+ * This is the key composition operation in HDC.
55
+ */
56
+ export declare function bind(a: Uint8Array, b: Uint8Array): Uint8Array;
57
+ /**
58
+ * Majority-rule bundling — creates a "superposition" of vectors.
59
+ * For each bit position, takes the majority value across all input vectors.
60
+ * Ties are broken by setting the bit to 1 (arbitrary but deterministic).
61
+ */
62
+ export declare function bundle(vectors: Uint8Array[]): Uint8Array;
63
+ /**
64
+ * Hamming distance between two packed-bit vectors, normalized to [0, 1].
65
+ * @param dimensions Total number of bits for normalization. If omitted, uses byteLength * 8.
66
+ */
67
+ export declare function hammingDistance(a: Uint8Array, b: Uint8Array, dimensions?: number): number;
68
+ /**
69
+ * Hamming similarity: 1 - hammingDistance. Returns value in [0, 1].
70
+ */
71
+ export declare function hammingSimilarity(a: Uint8Array, b: Uint8Array, dimensions?: number): number;
72
+ /**
73
+ * Circular bit shift (permutation) for sequence encoding.
74
+ * Shifts the entire bit vector left by `shifts` positions, wrapping around.
75
+ */
76
+ export declare function permute(v: Uint8Array, shifts?: number): Uint8Array;
77
+ /**
78
+ * Token-based HDC pattern fingerprinter.
79
+ *
80
+ * Maps string tokens deterministically to hypervectors, then composes
81
+ * them via XOR binding. Suitable for Agent Booster Tier 1 fingerprinting
82
+ * where tokens like "slow", "flaky", "database" are composed into a
83
+ * single concept fingerprint.
84
+ */
85
+ export declare class HDCPatternFingerprinter {
86
+ private readonly dimensions;
87
+ private readonly baseSeed;
88
+ private readonly byteLen;
89
+ private readonly tokenCache;
90
+ constructor(config?: {
91
+ dimensions?: number;
92
+ seed?: number;
93
+ });
94
+ /**
95
+ * Deterministic mapping from a string token to a hypervector.
96
+ * Uses seeded hash to generate bits. Results are cached.
97
+ */
98
+ tokenToHypervector(token: string): Uint8Array;
99
+ /**
100
+ * Bind all tokens: token1 XOR token2 XOR ... tokenN.
101
+ * XOR is commutative and associative, so order does not matter.
102
+ * Returns a zero vector for an empty token list.
103
+ */
104
+ fingerprintPattern(tokens: string[]): Uint8Array;
105
+ /**
106
+ * Bind tokens, then bundle with a context fingerprint.
107
+ * Context tokens are fingerprinted separately (via XOR bind) and
108
+ * then bundled (majority-rule) with the main token fingerprint.
109
+ */
110
+ fingerprintWithContext(tokens: string[], context: string[]): Uint8Array;
111
+ /** Hamming similarity between two vectors, normalized to [0, 1]. */
112
+ similarity(a: Uint8Array, b: Uint8Array): number;
113
+ private generateSeededVector;
114
+ }
47
115
  /**
48
116
  * Hyperdimensional Computing fingerprinter for QE patterns.
49
117
  *
@@ -124,4 +192,12 @@ export declare class HdcFingerprinter {
124
192
  * ```
125
193
  */
126
194
  export declare function createHdcFingerprinter(config?: Partial<HdcConfig>): HdcFingerprinter;
195
+ /**
196
+ * Feature-flag-gated factory for HDCPatternFingerprinter.
197
+ * Returns null when isHDCFingerprintingEnabled() is false.
198
+ */
199
+ export declare function createHDCFingerprinter(config?: {
200
+ dimensions?: number;
201
+ seed?: number;
202
+ }): HDCPatternFingerprinter | null;
127
203
  //# sourceMappingURL=hdc-fingerprint.d.ts.map