@toyako/hive 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1591) hide show
  1. package/.agent-hive/audit/audit-1782626932077.json +42 -0
  2. package/.agent-hive/audit/audit-1782632399175.json +34 -0
  3. package/.agent-hive/benchmark/runtime-benchmark.json +32 -0
  4. package/.agent-hive/logs/trace-mqaj7s0x.jsonl +2 -0
  5. package/.agent-hive/runtime/checkpoint/snapshot-task-1782567056424-vmzojglrb.json +13 -0
  6. package/.agent-hive/runtime/checkpoint/snapshot-task-1782567218044-r9j58nsum.json +10 -0
  7. package/.agent-hive/runtime/checkpoint/task-1782561125960-o9kjl8iv4.json +24 -0
  8. package/.agent-hive/runtime/checkpoint/task-1782561318850-fqy5h4dj0.json +50 -0
  9. package/.agent-hive/runtime/checkpoint/task-1782561318861-oy9cxrfwx.json +24 -0
  10. package/.agent-hive/runtime/checkpoint/task-1782561835241-68etmejqz.json +24 -0
  11. package/.agent-hive/runtime/checkpoint/task-1782567056424-vmzojglrb.json +24 -0
  12. package/.agent-hive/runtime/checkpoint/task-1782567218044-r9j58nsum.json +24 -0
  13. package/.agent-hive/runtime/checkpoint/task-1782632389172-yzxn6p6tq.json +25 -0
  14. package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/package.json +8 -0
  15. package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.js +19 -0
  16. package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/src/auth.test.js +17 -0
  17. package/.agent-hive/sandbox/sandbox-task-1782567056424-vmzojglrb-1782567056431/test-grand-review.js +270 -0
  18. package/.agent-hive/sandbox/sandbox-task-1782567218044-r9j58nsum-1782567218053/auth.js +7 -0
  19. package/.agent-hive/stability/stability_window_trace_20260703_1713.json +12 -0
  20. package/.agent-hive/stability/stability_window_trace_20260703_1746.json +12 -0
  21. package/.agent-hive/stability/stability_window_trace_20260703_195119745.json +12 -0
  22. package/.agent-hive/stability/stability_window_trace_20260703_195119755.json +12 -0
  23. package/.agent-hive/stability/stability_window_trace_20260703_195119765.json +12 -0
  24. package/.agent-hive/stability/stability_window_trace_20260703_195119782.json +12 -0
  25. package/.agent-hive/stability/stability_window_trace_20260703_195119791.json +12 -0
  26. package/.agent-hive/stability/stability_window_trace_20260703_195119801.json +12 -0
  27. package/.agent-hive/stability/stability_window_trace_20260703_195119810.json +12 -0
  28. package/.agent-hive/stability/stability_window_trace_20260703_195119818.json +12 -0
  29. package/.agent-hive/stability/stability_window_trace_20260703_195119826.json +12 -0
  30. package/.agent-hive/stability/stability_window_trace_20260703_195119835.json +12 -0
  31. package/.agent-hive/stability/stability_window_trace_20260703_195202743.json +12 -0
  32. package/.agent-hive/stability/stability_window_trace_20260703_195202749.json +12 -0
  33. package/.agent-hive/stability/stability_window_trace_20260703_195202762.json +12 -0
  34. package/.agent-hive/stability/stability_window_trace_20260703_195202768.json +12 -0
  35. package/.agent-hive/stability/stability_window_trace_20260703_195202773.json +12 -0
  36. package/.agent-hive/stability/stability_window_trace_20260703_195202778.json +12 -0
  37. package/.agent-hive/stability/stability_window_trace_20260703_195202784.json +12 -0
  38. package/.agent-hive/stability/stability_window_trace_20260703_195202789.json +12 -0
  39. package/.agent-hive/stability/stability_window_trace_20260703_195202794.json +12 -0
  40. package/.agent-hive/stability/stability_window_trace_20260703_195202800.json +12 -0
  41. package/.agent-hive/stability/stability_window_trace_20260703_195322538.json +12 -0
  42. package/.agent-hive/stability/stability_window_trace_20260703_195322552.json +12 -0
  43. package/.agent-hive/stability/stability_window_trace_20260703_195322557.json +12 -0
  44. package/.agent-hive/stability/stability_window_trace_20260703_195322562.json +12 -0
  45. package/.agent-hive/stability/stability_window_trace_20260703_195322567.json +12 -0
  46. package/.agent-hive/stability/stability_window_trace_20260703_195322573.json +12 -0
  47. package/.agent-hive/stability/stability_window_trace_20260703_195322579.json +12 -0
  48. package/.agent-hive/stability/stability_window_trace_20260703_195322584.json +12 -0
  49. package/.agent-hive/stability/stability_window_trace_20260703_195322589.json +12 -0
  50. package/.agent-hive/stability/stability_window_trace_20260703_195322595.json +12 -0
  51. package/.agent-hive/stability/stability_window_trace_20260703_213404476.json +12 -0
  52. package/.agent-hive/stability/stability_window_trace_20260703_213404482.json +12 -0
  53. package/.agent-hive/stability/stability_window_trace_20260703_213404488.json +12 -0
  54. package/.agent-hive/stability/stability_window_trace_20260703_213404494.json +12 -0
  55. package/.agent-hive/stability/stability_window_trace_20260703_213404499.json +12 -0
  56. package/.agent-hive/stability/stability_window_trace_20260703_213404504.json +12 -0
  57. package/.agent-hive/stability/stability_window_trace_20260703_213404512.json +12 -0
  58. package/.agent-hive/stability/stability_window_trace_20260703_213404519.json +12 -0
  59. package/.agent-hive/stability/stability_window_trace_20260703_213404526.json +12 -0
  60. package/.agent-hive/stability/stability_window_trace_20260703_213404533.json +12 -0
  61. package/.agent-hive/traces/task-bench-claude-code-01.json +37 -0
  62. package/.agent-hive/traces/task-bench-claude-code-02.json +37 -0
  63. package/.agent-hive/traces/task-bench-claude-code-03.json +37 -0
  64. package/.agent-hive/traces/task-bench-claude-code-04.json +37 -0
  65. package/.agent-hive/traces/task-bench-claude-plan-01.json +37 -0
  66. package/.agent-hive/traces/task-bench-claude-plan-02.json +37 -0
  67. package/.agent-hive/traces/task-bench-claude-plan-03.json +37 -0
  68. package/.agent-hive/traces/task-bench-claude-reason-01.json +37 -0
  69. package/.agent-hive/traces/task-bench-claude-reason-02.json +37 -0
  70. package/.agent-hive/traces/task-bench-claude-reason-03.json +37 -0
  71. package/.agent-hive/traces/task-bench-claude-review-01.json +37 -0
  72. package/.agent-hive/traces/task-bench-claude-review-02.json +37 -0
  73. package/.agent-hive/traces/task-bench-claude-review-03.json +37 -0
  74. package/.agent-hive/traces/task-bench-codex-code-01.json +37 -0
  75. package/.agent-hive/traces/task-bench-codex-code-02.json +37 -0
  76. package/.agent-hive/traces/task-bench-codex-code-03.json +37 -0
  77. package/.agent-hive/traces/task-bench-codex-code-04.json +37 -0
  78. package/.agent-hive/traces/task-bench-codex-plan-01.json +37 -0
  79. package/.agent-hive/traces/task-bench-codex-plan-02.json +37 -0
  80. package/.agent-hive/traces/task-bench-codex-plan-03.json +37 -0
  81. package/.agent-hive/traces/task-bench-codex-reason-01.json +37 -0
  82. package/.agent-hive/traces/task-bench-codex-reason-02.json +37 -0
  83. package/.agent-hive/traces/task-bench-codex-reason-03.json +37 -0
  84. package/.agent-hive/traces/task-bench-codex-review-01.json +37 -0
  85. package/.agent-hive/traces/task-bench-codex-review-02.json +37 -0
  86. package/.agent-hive/traces/task-bench-codex-review-03.json +37 -0
  87. package/.agent-hive/traces/task-bench-hermes-code-01.json +37 -0
  88. package/.agent-hive/traces/task-bench-hermes-code-02.json +37 -0
  89. package/.agent-hive/traces/task-bench-hermes-code-03.json +37 -0
  90. package/.agent-hive/traces/task-bench-hermes-code-04.json +37 -0
  91. package/.agent-hive/traces/task-bench-hermes-plan-01.json +37 -0
  92. package/.agent-hive/traces/task-bench-hermes-plan-02.json +37 -0
  93. package/.agent-hive/traces/task-bench-hermes-plan-03.json +37 -0
  94. package/.agent-hive/traces/task-bench-hermes-reason-01.json +37 -0
  95. package/.agent-hive/traces/task-bench-hermes-reason-02.json +37 -0
  96. package/.agent-hive/traces/task-bench-hermes-reason-03.json +37 -0
  97. package/.agent-hive/traces/task-bench-hermes-review-01.json +37 -0
  98. package/.agent-hive/traces/task-bench-hermes-review-02.json +37 -0
  99. package/.agent-hive/traces/task-bench-hermes-review-03.json +37 -0
  100. package/.det-hash-manifest.json +9 -0
  101. package/.github/ISSUE_TEMPLATE/bug_report.md +34 -0
  102. package/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  103. package/.github/ISSUE_TEMPLATE/runtime_compatibility.md +35 -0
  104. package/.github/workflows/ci.yml +44 -0
  105. package/.github/workflows/hive-ci.yml +43 -0
  106. package/CHANGELOG.md +66 -0
  107. package/CONTRIBUTING.md +61 -0
  108. package/LICENSE +21 -0
  109. package/README.es.md +36 -0
  110. package/README.ja.md +36 -0
  111. package/README.md +115 -0
  112. package/README.zh-CN.md +117 -0
  113. package/RELEASE.md +116 -0
  114. package/audit-scoreboard.json +55 -0
  115. package/benchmarks/version.json +20 -0
  116. package/dist/adapters/ClaudeAdapter.d.ts +14 -0
  117. package/dist/adapters/ClaudeAdapter.d.ts.map +1 -0
  118. package/dist/adapters/ClaudeAdapter.js +251 -0
  119. package/dist/adapters/ClaudeAdapter.js.map +1 -0
  120. package/dist/adapters/CodexAdapter.d.ts +16 -0
  121. package/dist/adapters/CodexAdapter.d.ts.map +1 -0
  122. package/dist/adapters/CodexAdapter.js +140 -0
  123. package/dist/adapters/CodexAdapter.js.map +1 -0
  124. package/dist/adapters/HermesAdapter.d.ts +15 -0
  125. package/dist/adapters/HermesAdapter.d.ts.map +1 -0
  126. package/dist/adapters/HermesAdapter.js +223 -0
  127. package/dist/adapters/HermesAdapter.js.map +1 -0
  128. package/dist/adapters/MockClaudeAdapter.d.ts +29 -0
  129. package/dist/adapters/MockClaudeAdapter.d.ts.map +1 -0
  130. package/dist/adapters/MockClaudeAdapter.js +62 -0
  131. package/dist/adapters/MockClaudeAdapter.js.map +1 -0
  132. package/dist/adapters/MockCodexAdapter.d.ts +16 -0
  133. package/dist/adapters/MockCodexAdapter.d.ts.map +1 -0
  134. package/dist/adapters/MockCodexAdapter.js +34 -0
  135. package/dist/adapters/MockCodexAdapter.js.map +1 -0
  136. package/dist/adapters/OpenClawAdapter.d.ts +15 -0
  137. package/dist/adapters/OpenClawAdapter.d.ts.map +1 -0
  138. package/dist/adapters/OpenClawAdapter.js +195 -0
  139. package/dist/adapters/OpenClawAdapter.js.map +1 -0
  140. package/dist/adapters/registry.d.ts +31 -0
  141. package/dist/adapters/registry.d.ts.map +1 -0
  142. package/dist/adapters/registry.js +42 -0
  143. package/dist/adapters/registry.js.map +1 -0
  144. package/dist/api/HiveAPI.d.ts +46 -0
  145. package/dist/api/HiveAPI.d.ts.map +1 -0
  146. package/dist/api/HiveAPI.js +117 -0
  147. package/dist/api/HiveAPI.js.map +1 -0
  148. package/dist/api/MeshAPI.d.ts +46 -0
  149. package/dist/api/MeshAPI.d.ts.map +1 -0
  150. package/dist/api/MeshAPI.js +117 -0
  151. package/dist/api/MeshAPI.js.map +1 -0
  152. package/dist/benchmark/BenchmarkDataset.d.ts +28 -0
  153. package/dist/benchmark/BenchmarkDataset.d.ts.map +1 -0
  154. package/dist/benchmark/BenchmarkDataset.js +102 -0
  155. package/dist/benchmark/BenchmarkDataset.js.map +1 -0
  156. package/dist/benchmark/BenchmarkPlan.d.ts +155 -0
  157. package/dist/benchmark/BenchmarkPlan.d.ts.map +1 -0
  158. package/dist/benchmark/BenchmarkPlan.js +310 -0
  159. package/dist/benchmark/BenchmarkPlan.js.map +1 -0
  160. package/dist/benchmark/BenchmarkReport.d.ts +44 -0
  161. package/dist/benchmark/BenchmarkReport.d.ts.map +1 -0
  162. package/dist/benchmark/BenchmarkReport.js +152 -0
  163. package/dist/benchmark/BenchmarkReport.js.map +1 -0
  164. package/dist/benchmark/BenchmarkRunner.d.ts +30 -0
  165. package/dist/benchmark/BenchmarkRunner.d.ts.map +1 -0
  166. package/dist/benchmark/BenchmarkRunner.js +115 -0
  167. package/dist/benchmark/BenchmarkRunner.js.map +1 -0
  168. package/dist/benchmark/BenchmarkSuite.d.ts +21 -0
  169. package/dist/benchmark/BenchmarkSuite.d.ts.map +1 -0
  170. package/dist/benchmark/BenchmarkSuite.js +174 -0
  171. package/dist/benchmark/BenchmarkSuite.js.map +1 -0
  172. package/dist/benchmark/index.d.ts +13 -0
  173. package/dist/benchmark/index.d.ts.map +1 -0
  174. package/dist/benchmark/index.js +26 -0
  175. package/dist/benchmark/index.js.map +1 -0
  176. package/dist/broker/AgentRegistry.d.ts +15 -0
  177. package/dist/broker/AgentRegistry.d.ts.map +1 -0
  178. package/dist/broker/AgentRegistry.js +103 -0
  179. package/dist/broker/AgentRegistry.js.map +1 -0
  180. package/dist/broker/Broker.d.ts +52 -0
  181. package/dist/broker/Broker.d.ts.map +1 -0
  182. package/dist/broker/Broker.js +119 -0
  183. package/dist/broker/Broker.js.map +1 -0
  184. package/dist/broker/GraphOperations.d.ts +38 -0
  185. package/dist/broker/GraphOperations.d.ts.map +1 -0
  186. package/dist/broker/GraphOperations.js +66 -0
  187. package/dist/broker/GraphOperations.js.map +1 -0
  188. package/dist/broker/MessageBus.d.ts +22 -0
  189. package/dist/broker/MessageBus.d.ts.map +1 -0
  190. package/dist/broker/MessageBus.js +85 -0
  191. package/dist/broker/MessageBus.js.map +1 -0
  192. package/dist/broker/MessageRouter.d.ts +51 -0
  193. package/dist/broker/MessageRouter.d.ts.map +1 -0
  194. package/dist/broker/MessageRouter.js +145 -0
  195. package/dist/broker/MessageRouter.js.map +1 -0
  196. package/dist/broker/TaskProcessor.d.ts +35 -0
  197. package/dist/broker/TaskProcessor.d.ts.map +1 -0
  198. package/dist/broker/TaskProcessor.js +476 -0
  199. package/dist/broker/TaskProcessor.js.map +1 -0
  200. package/dist/broker/TaskRouter.d.ts +9 -0
  201. package/dist/broker/TaskRouter.d.ts.map +1 -0
  202. package/dist/broker/TaskRouter.js +36 -0
  203. package/dist/broker/TaskRouter.js.map +1 -0
  204. package/dist/channels/ChannelPlugin.d.ts +28 -0
  205. package/dist/channels/ChannelPlugin.d.ts.map +1 -0
  206. package/dist/channels/ChannelPlugin.js +7 -0
  207. package/dist/channels/ChannelPlugin.js.map +1 -0
  208. package/dist/ci/CIGate.d.ts +62 -0
  209. package/dist/ci/CIGate.d.ts.map +1 -0
  210. package/dist/ci/CIGate.js +146 -0
  211. package/dist/ci/CIGate.js.map +1 -0
  212. package/dist/ci/ContractLock.d.ts +41 -0
  213. package/dist/ci/ContractLock.d.ts.map +1 -0
  214. package/dist/ci/ContractLock.js +103 -0
  215. package/dist/ci/ContractLock.js.map +1 -0
  216. package/dist/cli/hive-cli.d.ts +14 -0
  217. package/dist/cli/hive-cli.d.ts.map +1 -0
  218. package/dist/cli/hive-cli.js +82 -0
  219. package/dist/cli/hive-cli.js.map +1 -0
  220. package/dist/cli.d.ts +14 -0
  221. package/dist/cli.d.ts.map +1 -0
  222. package/dist/cli.js +193 -0
  223. package/dist/cli.js.map +1 -0
  224. package/dist/command/CommandAST.d.ts +28 -0
  225. package/dist/command/CommandAST.d.ts.map +1 -0
  226. package/dist/command/CommandAST.js +22 -0
  227. package/dist/command/CommandAST.js.map +1 -0
  228. package/dist/commands/cli.d.ts +3 -0
  229. package/dist/commands/cli.d.ts.map +1 -0
  230. package/dist/commands/cli.js +848 -0
  231. package/dist/commands/cli.js.map +1 -0
  232. package/dist/commands/demo.d.ts +2 -0
  233. package/dist/commands/demo.d.ts.map +1 -0
  234. package/dist/commands/demo.js +71 -0
  235. package/dist/commands/demo.js.map +1 -0
  236. package/dist/commands/experiment-routing.d.ts +2 -0
  237. package/dist/commands/experiment-routing.d.ts.map +1 -0
  238. package/dist/commands/experiment-routing.js +347 -0
  239. package/dist/commands/experiment-routing.js.map +1 -0
  240. package/dist/commands/run-validation.d.ts +2 -0
  241. package/dist/commands/run-validation.d.ts.map +1 -0
  242. package/dist/commands/run-validation.js.map +1 -0
  243. package/dist/commands/test-benchmark.d.ts +2 -0
  244. package/dist/commands/test-benchmark.d.ts.map +1 -0
  245. package/dist/commands/test-benchmark.js +214 -0
  246. package/dist/commands/test-benchmark.js.map +1 -0
  247. package/dist/commands/test-conversation.d.ts +2 -0
  248. package/dist/commands/test-conversation.d.ts.map +1 -0
  249. package/dist/commands/test-conversation.js +358 -0
  250. package/dist/commands/test-conversation.js.map +1 -0
  251. package/dist/commands/test-crash.d.ts +2 -0
  252. package/dist/commands/test-crash.d.ts.map +1 -0
  253. package/dist/commands/test-crash.js +65 -0
  254. package/dist/commands/test-crash.js.map +1 -0
  255. package/dist/commands/test-cross-platform.d.ts +2 -0
  256. package/dist/commands/test-cross-platform.d.ts.map +1 -0
  257. package/dist/commands/test-cross-platform.js +62 -0
  258. package/dist/commands/test-cross-platform.js.map +1 -0
  259. package/dist/commands/test-graph.d.ts +2 -0
  260. package/dist/commands/test-graph.d.ts.map +1 -0
  261. package/dist/commands/test-graph.js +526 -0
  262. package/dist/commands/test-graph.js.map +1 -0
  263. package/dist/commands/test-observability.d.ts +2 -0
  264. package/dist/commands/test-observability.d.ts.map +1 -0
  265. package/dist/commands/test-observability.js +162 -0
  266. package/dist/commands/test-observability.js.map +1 -0
  267. package/dist/commands/test-orchestration.d.ts +2 -0
  268. package/dist/commands/test-orchestration.d.ts.map +1 -0
  269. package/dist/commands/test-orchestration.js +110 -0
  270. package/dist/commands/test-orchestration.js.map +1 -0
  271. package/dist/commands/test-real-world.d.ts +2 -0
  272. package/dist/commands/test-real-world.d.ts.map +1 -0
  273. package/dist/commands/test-real-world.js +176 -0
  274. package/dist/commands/test-real-world.js.map +1 -0
  275. package/dist/commands/test-reviewer.d.ts +2 -0
  276. package/dist/commands/test-reviewer.d.ts.map +1 -0
  277. package/dist/commands/test-reviewer.js +125 -0
  278. package/dist/commands/test-reviewer.js.map +1 -0
  279. package/dist/commands/test-runtime-intelligence.d.ts +2 -0
  280. package/dist/commands/test-runtime-intelligence.d.ts.map +1 -0
  281. package/dist/commands/test-runtime-intelligence.js +224 -0
  282. package/dist/commands/test-runtime-intelligence.js.map +1 -0
  283. package/dist/commands/test-stress.d.ts +2 -0
  284. package/dist/commands/test-stress.d.ts.map +1 -0
  285. package/dist/commands/test-stress.js +116 -0
  286. package/dist/commands/test-stress.js.map +1 -0
  287. package/dist/commands/test-timeout.d.ts +2 -0
  288. package/dist/commands/test-timeout.d.ts.map +1 -0
  289. package/dist/commands/test-timeout.js +126 -0
  290. package/dist/commands/test-timeout.js.map +1 -0
  291. package/dist/commands/test-v2-integration.d.ts +2 -0
  292. package/dist/commands/test-v2-integration.d.ts.map +1 -0
  293. package/dist/commands/test-v2-integration.js +634 -0
  294. package/dist/commands/test-v2-integration.js.map +1 -0
  295. package/dist/commands/test-validation.d.ts +2 -0
  296. package/dist/commands/test-validation.d.ts.map +1 -0
  297. package/dist/commands/test-validation.js +198 -0
  298. package/dist/commands/test-validation.js.map +1 -0
  299. package/dist/compiler/ArchitectureSynthesizer.d.ts +42 -0
  300. package/dist/compiler/ArchitectureSynthesizer.d.ts.map +1 -0
  301. package/dist/compiler/ArchitectureSynthesizer.js +90 -0
  302. package/dist/compiler/ArchitectureSynthesizer.js.map +1 -0
  303. package/dist/compiler/BlueprintPackager.d.ts +21 -0
  304. package/dist/compiler/BlueprintPackager.d.ts.map +1 -0
  305. package/dist/compiler/BlueprintPackager.js +13 -0
  306. package/dist/compiler/BlueprintPackager.js.map +1 -0
  307. package/dist/compiler/CommandCompiler.d.ts +23 -0
  308. package/dist/compiler/CommandCompiler.d.ts.map +1 -0
  309. package/dist/compiler/CommandCompiler.js +49 -0
  310. package/dist/compiler/CommandCompiler.js.map +1 -0
  311. package/dist/compiler/DAGCompiler.d.ts +12 -0
  312. package/dist/compiler/DAGCompiler.d.ts.map +1 -0
  313. package/dist/compiler/DAGCompiler.js +20 -0
  314. package/dist/compiler/DAGCompiler.js.map +1 -0
  315. package/dist/compiler/DomainModelGenerator.d.ts +38 -0
  316. package/dist/compiler/DomainModelGenerator.d.ts.map +1 -0
  317. package/dist/compiler/DomainModelGenerator.js +104 -0
  318. package/dist/compiler/DomainModelGenerator.js.map +1 -0
  319. package/dist/compiler/FeasibilityGate.d.ts +27 -0
  320. package/dist/compiler/FeasibilityGate.d.ts.map +1 -0
  321. package/dist/compiler/FeasibilityGate.js +62 -0
  322. package/dist/compiler/FeasibilityGate.js.map +1 -0
  323. package/dist/compiler/InputNormalizer.d.ts +34 -0
  324. package/dist/compiler/InputNormalizer.d.ts.map +1 -0
  325. package/dist/compiler/InputNormalizer.js +72 -0
  326. package/dist/compiler/InputNormalizer.js.map +1 -0
  327. package/dist/compiler/IntentParser.d.ts +40 -0
  328. package/dist/compiler/IntentParser.d.ts.map +1 -0
  329. package/dist/compiler/IntentParser.js +96 -0
  330. package/dist/compiler/IntentParser.js.map +1 -0
  331. package/dist/compiler/ModulePlanner.d.ts +13 -0
  332. package/dist/compiler/ModulePlanner.d.ts.map +1 -0
  333. package/dist/compiler/ModulePlanner.js +25 -0
  334. package/dist/compiler/ModulePlanner.js.map +1 -0
  335. package/dist/compiler/PromptCompiler.d.ts +19 -0
  336. package/dist/compiler/PromptCompiler.d.ts.map +1 -0
  337. package/dist/compiler/PromptCompiler.js +31 -0
  338. package/dist/compiler/PromptCompiler.js.map +1 -0
  339. package/dist/compiler/index.d.ts +34 -0
  340. package/dist/compiler/index.d.ts.map +1 -0
  341. package/dist/compiler/index.js +66 -0
  342. package/dist/compiler/index.js.map +1 -0
  343. package/dist/context/ContextManager.d.ts +24 -0
  344. package/dist/context/ContextManager.d.ts.map +1 -0
  345. package/dist/context/ContextManager.js +51 -0
  346. package/dist/context/ContextManager.js.map +1 -0
  347. package/dist/control-plane/BudgetController.d.ts +54 -0
  348. package/dist/control-plane/BudgetController.d.ts.map +1 -0
  349. package/dist/control-plane/BudgetController.js +98 -0
  350. package/dist/control-plane/BudgetController.js.map +1 -0
  351. package/dist/control-plane/ControlPlane.d.ts +82 -0
  352. package/dist/control-plane/ControlPlane.d.ts.map +1 -0
  353. package/dist/control-plane/ControlPlane.js +196 -0
  354. package/dist/control-plane/ControlPlane.js.map +1 -0
  355. package/dist/control-plane/ConvergenceGuard.d.ts +39 -0
  356. package/dist/control-plane/ConvergenceGuard.d.ts.map +1 -0
  357. package/dist/control-plane/ConvergenceGuard.js +72 -0
  358. package/dist/control-plane/ConvergenceGuard.js.map +1 -0
  359. package/dist/control-plane/DriftDetector.d.ts +44 -0
  360. package/dist/control-plane/DriftDetector.d.ts.map +1 -0
  361. package/dist/control-plane/DriftDetector.js +83 -0
  362. package/dist/control-plane/DriftDetector.js.map +1 -0
  363. package/dist/control-plane/MetricStabilityLock.d.ts +38 -0
  364. package/dist/control-plane/MetricStabilityLock.d.ts.map +1 -0
  365. package/dist/control-plane/MetricStabilityLock.js +63 -0
  366. package/dist/control-plane/MetricStabilityLock.js.map +1 -0
  367. package/dist/control-plane/index.d.ts +17 -0
  368. package/dist/control-plane/index.d.ts.map +1 -0
  369. package/dist/control-plane/index.js +25 -0
  370. package/dist/control-plane/index.js.map +1 -0
  371. package/dist/convergence/ConvergenceValidator.d.ts +143 -0
  372. package/dist/convergence/ConvergenceValidator.d.ts.map +1 -0
  373. package/dist/convergence/ConvergenceValidator.js +264 -0
  374. package/dist/convergence/ConvergenceValidator.js.map +1 -0
  375. package/dist/convergence/index.d.ts +12 -0
  376. package/dist/convergence/index.d.ts.map +1 -0
  377. package/dist/convergence/index.js +23 -0
  378. package/dist/convergence/index.js.map +1 -0
  379. package/dist/conversation/ConversationManager.d.ts +55 -0
  380. package/dist/conversation/ConversationManager.d.ts.map +1 -0
  381. package/dist/conversation/ConversationManager.js +176 -0
  382. package/dist/conversation/ConversationManager.js.map +1 -0
  383. package/dist/dashboard/EventStore.d.ts +27 -0
  384. package/dist/dashboard/EventStore.d.ts.map +1 -0
  385. package/dist/dashboard/EventStore.js +36 -0
  386. package/dist/dashboard/EventStore.js.map +1 -0
  387. package/dist/dashboard/FailureIntelligence.d.ts +77 -0
  388. package/dist/dashboard/FailureIntelligence.d.ts.map +1 -0
  389. package/dist/dashboard/FailureIntelligence.js +251 -0
  390. package/dist/dashboard/FailureIntelligence.js.map +1 -0
  391. package/dist/dashboard/ObservationDashboard.d.ts +85 -0
  392. package/dist/dashboard/ObservationDashboard.d.ts.map +1 -0
  393. package/dist/dashboard/ObservationDashboard.js +178 -0
  394. package/dist/dashboard/ObservationDashboard.js.map +1 -0
  395. package/dist/dashboard/StabilityCurve.d.ts +23 -0
  396. package/dist/dashboard/StabilityCurve.d.ts.map +1 -0
  397. package/dist/dashboard/StabilityCurve.js +53 -0
  398. package/dist/dashboard/StabilityCurve.js.map +1 -0
  399. package/dist/engine/ExecutionEngine.d.ts +29 -0
  400. package/dist/engine/ExecutionEngine.d.ts.map +1 -0
  401. package/dist/engine/ExecutionEngine.js +139 -0
  402. package/dist/engine/ExecutionEngine.js.map +1 -0
  403. package/dist/engine/PlatformAdapter.d.ts +19 -0
  404. package/dist/engine/PlatformAdapter.d.ts.map +1 -0
  405. package/dist/engine/PlatformAdapter.js +77 -0
  406. package/dist/engine/PlatformAdapter.js.map +1 -0
  407. package/dist/engine/ResultNormalizer.d.ts +21 -0
  408. package/dist/engine/ResultNormalizer.d.ts.map +1 -0
  409. package/dist/engine/ResultNormalizer.js +57 -0
  410. package/dist/engine/ResultNormalizer.js.map +1 -0
  411. package/dist/engine/StructuredLogger.d.ts +25 -0
  412. package/dist/engine/StructuredLogger.d.ts.map +1 -0
  413. package/dist/engine/StructuredLogger.js +81 -0
  414. package/dist/engine/StructuredLogger.js.map +1 -0
  415. package/dist/evaluation/BaselineRunner.d.ts +26 -0
  416. package/dist/evaluation/BaselineRunner.d.ts.map +1 -0
  417. package/dist/evaluation/BaselineRunner.js +107 -0
  418. package/dist/evaluation/BaselineRunner.js.map +1 -0
  419. package/dist/evaluation/DecisionTrace.d.ts +20 -0
  420. package/dist/evaluation/DecisionTrace.d.ts.map +1 -0
  421. package/dist/evaluation/DecisionTrace.js +21 -0
  422. package/dist/evaluation/DecisionTrace.js.map +1 -0
  423. package/dist/evaluation/EvaluationMetrics.d.ts +34 -0
  424. package/dist/evaluation/EvaluationMetrics.d.ts.map +1 -0
  425. package/dist/evaluation/EvaluationMetrics.js +28 -0
  426. package/dist/evaluation/EvaluationMetrics.js.map +1 -0
  427. package/dist/evaluation/GroundTruthDataset.d.ts +18 -0
  428. package/dist/evaluation/GroundTruthDataset.d.ts.map +1 -0
  429. package/dist/evaluation/GroundTruthDataset.js +69 -0
  430. package/dist/evaluation/GroundTruthDataset.js.map +1 -0
  431. package/dist/evaluation/RealWorldBenchmark.d.ts +21 -0
  432. package/dist/evaluation/RealWorldBenchmark.d.ts.map +1 -0
  433. package/dist/evaluation/RealWorldBenchmark.js +73 -0
  434. package/dist/evaluation/RealWorldBenchmark.js.map +1 -0
  435. package/dist/evaluation/RealWorldRunner.d.ts +55 -0
  436. package/dist/evaluation/RealWorldRunner.d.ts.map +1 -0
  437. package/dist/evaluation/RealWorldRunner.js +133 -0
  438. package/dist/evaluation/RealWorldRunner.js.map +1 -0
  439. package/dist/evaluation/ValidationRunner.d.ts +42 -0
  440. package/dist/evaluation/ValidationRunner.d.ts.map +1 -0
  441. package/dist/evaluation/ValidationRunner.js +123 -0
  442. package/dist/evaluation/ValidationRunner.js.map +1 -0
  443. package/dist/events/AgentEvent.d.ts +62 -0
  444. package/dist/events/AgentEvent.d.ts.map +1 -0
  445. package/dist/events/AgentEvent.js +6 -0
  446. package/dist/events/AgentEvent.js.map +1 -0
  447. package/dist/events/DecisionEvent.d.ts +16 -0
  448. package/dist/events/DecisionEvent.d.ts.map +1 -0
  449. package/dist/events/DecisionEvent.js +6 -0
  450. package/dist/events/DecisionEvent.js.map +1 -0
  451. package/dist/events/ExecutionEvent.d.ts +48 -0
  452. package/dist/events/ExecutionEvent.d.ts.map +1 -0
  453. package/dist/events/ExecutionEvent.js +3 -0
  454. package/dist/events/ExecutionEvent.js.map +1 -0
  455. package/dist/events/SystemEvent.d.ts +11 -0
  456. package/dist/events/SystemEvent.d.ts.map +1 -0
  457. package/dist/events/SystemEvent.js +6 -0
  458. package/dist/events/SystemEvent.js.map +1 -0
  459. package/dist/evolution/EvolutionEngine.d.ts +121 -0
  460. package/dist/evolution/EvolutionEngine.d.ts.map +1 -0
  461. package/dist/evolution/EvolutionEngine.js +288 -0
  462. package/dist/evolution/EvolutionEngine.js.map +1 -0
  463. package/dist/evolution/index.d.ts +15 -0
  464. package/dist/evolution/index.d.ts.map +1 -0
  465. package/dist/evolution/index.js +24 -0
  466. package/dist/evolution/index.js.map +1 -0
  467. package/dist/execution-fabric/DistributedExecutionFabric.d.ts +108 -0
  468. package/dist/execution-fabric/DistributedExecutionFabric.d.ts.map +1 -0
  469. package/dist/execution-fabric/DistributedExecutionFabric.js +236 -0
  470. package/dist/execution-fabric/DistributedExecutionFabric.js.map +1 -0
  471. package/dist/execution-fabric/index.d.ts +10 -0
  472. package/dist/execution-fabric/index.d.ts.map +1 -0
  473. package/dist/execution-fabric/index.js +14 -0
  474. package/dist/execution-fabric/index.js.map +1 -0
  475. package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts +94 -0
  476. package/dist/execution-graph/DynamicExecutionGraphRuntime.d.ts.map +1 -0
  477. package/dist/execution-graph/DynamicExecutionGraphRuntime.js +243 -0
  478. package/dist/execution-graph/DynamicExecutionGraphRuntime.js.map +1 -0
  479. package/dist/execution-graph/ExecutionGraphEngine.d.ts +88 -0
  480. package/dist/execution-graph/ExecutionGraphEngine.d.ts.map +1 -0
  481. package/dist/execution-graph/ExecutionGraphEngine.js +222 -0
  482. package/dist/execution-graph/ExecutionGraphEngine.js.map +1 -0
  483. package/dist/execution-graph/index.d.ts +9 -0
  484. package/dist/execution-graph/index.d.ts.map +1 -0
  485. package/dist/execution-graph/index.js +16 -0
  486. package/dist/execution-graph/index.js.map +1 -0
  487. package/dist/execution-runtime/ExecutionRuntime.d.ts +99 -0
  488. package/dist/execution-runtime/ExecutionRuntime.d.ts.map +1 -0
  489. package/dist/execution-runtime/ExecutionRuntime.js +216 -0
  490. package/dist/execution-runtime/ExecutionRuntime.js.map +1 -0
  491. package/dist/execution-runtime/index.d.ts +10 -0
  492. package/dist/execution-runtime/index.d.ts.map +1 -0
  493. package/dist/execution-runtime/index.js +14 -0
  494. package/dist/execution-runtime/index.js.map +1 -0
  495. package/dist/git-governance/GitGovernanceRuntime.d.ts +200 -0
  496. package/dist/git-governance/GitGovernanceRuntime.d.ts.map +1 -0
  497. package/dist/git-governance/GitGovernanceRuntime.js +418 -0
  498. package/dist/git-governance/GitGovernanceRuntime.js.map +1 -0
  499. package/dist/git-governance/index.d.ts +16 -0
  500. package/dist/git-governance/index.d.ts.map +1 -0
  501. package/dist/git-governance/index.js +33 -0
  502. package/dist/git-governance/index.js.map +1 -0
  503. package/dist/governance/EngineeringGovernanceLayer.d.ts +79 -0
  504. package/dist/governance/EngineeringGovernanceLayer.d.ts.map +1 -0
  505. package/dist/governance/EngineeringGovernanceLayer.js +212 -0
  506. package/dist/governance/EngineeringGovernanceLayer.js.map +1 -0
  507. package/dist/graph/AgentGraph.d.ts +52 -0
  508. package/dist/graph/AgentGraph.d.ts.map +1 -0
  509. package/dist/graph/AgentGraph.js +274 -0
  510. package/dist/graph/AgentGraph.js.map +1 -0
  511. package/dist/graph/GraphValidator.d.ts +39 -0
  512. package/dist/graph/GraphValidator.d.ts.map +1 -0
  513. package/dist/graph/GraphValidator.js +93 -0
  514. package/dist/graph/GraphValidator.js.map +1 -0
  515. package/dist/graph/TopologyTemplates.d.ts +39 -0
  516. package/dist/graph/TopologyTemplates.d.ts.map +1 -0
  517. package/dist/graph/TopologyTemplates.js +131 -0
  518. package/dist/graph/TopologyTemplates.js.map +1 -0
  519. package/dist/hardening/RuntimeHardening.d.ts +169 -0
  520. package/dist/hardening/RuntimeHardening.d.ts.map +1 -0
  521. package/dist/hardening/RuntimeHardening.js +330 -0
  522. package/dist/hardening/RuntimeHardening.js.map +1 -0
  523. package/dist/hardening/index.d.ts +7 -0
  524. package/dist/hardening/index.d.ts.map +1 -0
  525. package/dist/hardening/index.js +15 -0
  526. package/dist/hardening/index.js.map +1 -0
  527. package/dist/index.d.ts +8 -0
  528. package/dist/index.d.ts.map +1 -0
  529. package/dist/index.js +15 -0
  530. package/dist/index.js.map +1 -0
  531. package/dist/kernel/ExecutionState.d.ts +68 -0
  532. package/dist/kernel/ExecutionState.d.ts.map +1 -0
  533. package/dist/kernel/ExecutionState.js +124 -0
  534. package/dist/kernel/ExecutionState.js.map +1 -0
  535. package/dist/kernel/FailureInterceptor.d.ts +51 -0
  536. package/dist/kernel/FailureInterceptor.d.ts.map +1 -0
  537. package/dist/kernel/FailureInterceptor.js +112 -0
  538. package/dist/kernel/FailureInterceptor.js.map +1 -0
  539. package/dist/kernel/KernelGate.d.ts +41 -0
  540. package/dist/kernel/KernelGate.d.ts.map +1 -0
  541. package/dist/kernel/KernelGate.js +62 -0
  542. package/dist/kernel/KernelGate.js.map +1 -0
  543. package/dist/kernel/MultiAgentExecutionKernel.d.ts +103 -0
  544. package/dist/kernel/MultiAgentExecutionKernel.d.ts.map +1 -0
  545. package/dist/kernel/MultiAgentExecutionKernel.js +187 -0
  546. package/dist/kernel/MultiAgentExecutionKernel.js.map +1 -0
  547. package/dist/kernel/RuntimeKernel.d.ts +160 -0
  548. package/dist/kernel/RuntimeKernel.d.ts.map +1 -0
  549. package/dist/kernel/RuntimeKernel.js +422 -0
  550. package/dist/kernel/RuntimeKernel.js.map +1 -0
  551. package/dist/kernel/index.d.ts +9 -0
  552. package/dist/kernel/index.d.ts.map +1 -0
  553. package/dist/kernel/index.js +20 -0
  554. package/dist/kernel/index.js.map +1 -0
  555. package/dist/knowledge/KnowledgeSystem.d.ts +62 -0
  556. package/dist/knowledge/KnowledgeSystem.d.ts.map +1 -0
  557. package/dist/knowledge/KnowledgeSystem.js +102 -0
  558. package/dist/knowledge/KnowledgeSystem.js.map +1 -0
  559. package/dist/learning/ExecutionEpisodeStore.d.ts +64 -0
  560. package/dist/learning/ExecutionEpisodeStore.d.ts.map +1 -0
  561. package/dist/learning/ExecutionEpisodeStore.js +62 -0
  562. package/dist/learning/ExecutionEpisodeStore.js.map +1 -0
  563. package/dist/learning/InsightEngine.d.ts +31 -0
  564. package/dist/learning/InsightEngine.d.ts.map +1 -0
  565. package/dist/learning/InsightEngine.js +63 -0
  566. package/dist/learning/InsightEngine.js.map +1 -0
  567. package/dist/learning/LearningLoopEngine.d.ts +48 -0
  568. package/dist/learning/LearningLoopEngine.d.ts.map +1 -0
  569. package/dist/learning/LearningLoopEngine.js +82 -0
  570. package/dist/learning/LearningLoopEngine.js.map +1 -0
  571. package/dist/learning/MemoryCompressor.d.ts +31 -0
  572. package/dist/learning/MemoryCompressor.d.ts.map +1 -0
  573. package/dist/learning/MemoryCompressor.js +76 -0
  574. package/dist/learning/MemoryCompressor.js.map +1 -0
  575. package/dist/learning/PolicyOptimizer.d.ts +26 -0
  576. package/dist/learning/PolicyOptimizer.d.ts.map +1 -0
  577. package/dist/learning/PolicyOptimizer.js +91 -0
  578. package/dist/learning/PolicyOptimizer.js.map +1 -0
  579. package/dist/learning/PolicyStore.d.ts +47 -0
  580. package/dist/learning/PolicyStore.d.ts.map +1 -0
  581. package/dist/learning/PolicyStore.js +79 -0
  582. package/dist/learning/PolicyStore.js.map +1 -0
  583. package/dist/loop-layer/EvaluationEngine.d.ts +23 -0
  584. package/dist/loop-layer/EvaluationEngine.d.ts.map +1 -0
  585. package/dist/loop-layer/EvaluationEngine.js +42 -0
  586. package/dist/loop-layer/EvaluationEngine.js.map +1 -0
  587. package/dist/loop-layer/LoopController.d.ts +33 -0
  588. package/dist/loop-layer/LoopController.d.ts.map +1 -0
  589. package/dist/loop-layer/LoopController.js +79 -0
  590. package/dist/loop-layer/LoopController.js.map +1 -0
  591. package/dist/loop-layer/ObservationEngine.d.ts +62 -0
  592. package/dist/loop-layer/ObservationEngine.d.ts.map +1 -0
  593. package/dist/loop-layer/ObservationEngine.js +126 -0
  594. package/dist/loop-layer/ObservationEngine.js.map +1 -0
  595. package/dist/memory/ContextCompressor.d.ts +27 -0
  596. package/dist/memory/ContextCompressor.d.ts.map +1 -0
  597. package/dist/memory/ContextCompressor.js +71 -0
  598. package/dist/memory/ContextCompressor.js.map +1 -0
  599. package/dist/memory/MemoryManager.d.ts +28 -0
  600. package/dist/memory/MemoryManager.d.ts.map +1 -0
  601. package/dist/memory/MemoryManager.js +81 -0
  602. package/dist/memory/MemoryManager.js.map +1 -0
  603. package/dist/memory/MemorySearch.d.ts +20 -0
  604. package/dist/memory/MemorySearch.d.ts.map +1 -0
  605. package/dist/memory/MemorySearch.js +92 -0
  606. package/dist/memory/MemorySearch.js.map +1 -0
  607. package/dist/memory/MemoryStore.d.ts +30 -0
  608. package/dist/memory/MemoryStore.d.ts.map +1 -0
  609. package/dist/memory/MemoryStore.js +84 -0
  610. package/dist/memory/MemoryStore.js.map +1 -0
  611. package/dist/observability/ConversationTrace.d.ts +25 -0
  612. package/dist/observability/ConversationTrace.d.ts.map +1 -0
  613. package/dist/observability/ConversationTrace.js +104 -0
  614. package/dist/observability/ConversationTrace.js.map +1 -0
  615. package/dist/observability/DecisionRecorder.d.ts +29 -0
  616. package/dist/observability/DecisionRecorder.d.ts.map +1 -0
  617. package/dist/observability/DecisionRecorder.js +113 -0
  618. package/dist/observability/DecisionRecorder.js.map +1 -0
  619. package/dist/observability/RuntimeMetrics.d.ts +27 -0
  620. package/dist/observability/RuntimeMetrics.d.ts.map +1 -0
  621. package/dist/observability/RuntimeMetrics.js +126 -0
  622. package/dist/observability/RuntimeMetrics.js.map +1 -0
  623. package/dist/observability/TaskTimeline.d.ts +26 -0
  624. package/dist/observability/TaskTimeline.d.ts.map +1 -0
  625. package/dist/observability/TaskTimeline.js +117 -0
  626. package/dist/observability/TaskTimeline.js.map +1 -0
  627. package/dist/observation/SystemScoreCalculator.d.ts +66 -0
  628. package/dist/observation/SystemScoreCalculator.d.ts.map +1 -0
  629. package/dist/observation/SystemScoreCalculator.js +158 -0
  630. package/dist/observation/SystemScoreCalculator.js.map +1 -0
  631. package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts +2 -0
  632. package/dist/observation/__tests__/SystemScoreCalculator.test.d.ts.map +1 -0
  633. package/dist/observation/__tests__/SystemScoreCalculator.test.js +61 -0
  634. package/dist/observation/__tests__/SystemScoreCalculator.test.js.map +1 -0
  635. package/dist/orchestration/AgentRouter.d.ts +19 -0
  636. package/dist/orchestration/AgentRouter.d.ts.map +1 -0
  637. package/dist/orchestration/AgentRouter.js +53 -0
  638. package/dist/orchestration/AgentRouter.js.map +1 -0
  639. package/dist/orchestration/DAGExecutor.d.ts +22 -0
  640. package/dist/orchestration/DAGExecutor.d.ts.map +1 -0
  641. package/dist/orchestration/DAGExecutor.js +123 -0
  642. package/dist/orchestration/DAGExecutor.js.map +1 -0
  643. package/dist/orchestration/JudgeAgent.d.ts +14 -0
  644. package/dist/orchestration/JudgeAgent.d.ts.map +1 -0
  645. package/dist/orchestration/JudgeAgent.js +58 -0
  646. package/dist/orchestration/JudgeAgent.js.map +1 -0
  647. package/dist/orchestration/Planner.d.ts +10 -0
  648. package/dist/orchestration/Planner.d.ts.map +1 -0
  649. package/dist/orchestration/Planner.js +45 -0
  650. package/dist/orchestration/Planner.js.map +1 -0
  651. package/dist/orchestration/ReviewerAgent.d.ts +12 -0
  652. package/dist/orchestration/ReviewerAgent.d.ts.map +1 -0
  653. package/dist/orchestration/ReviewerAgent.js +67 -0
  654. package/dist/orchestration/ReviewerAgent.js.map +1 -0
  655. package/dist/orchestration/contracts/Agent.d.ts +42 -0
  656. package/dist/orchestration/contracts/Agent.d.ts.map +1 -0
  657. package/dist/orchestration/contracts/Agent.js +3 -0
  658. package/dist/orchestration/contracts/Agent.js.map +1 -0
  659. package/dist/orchestration/registry/AgentProfile.d.ts +12 -0
  660. package/dist/orchestration/registry/AgentProfile.d.ts.map +1 -0
  661. package/dist/orchestration/registry/AgentProfile.js +3 -0
  662. package/dist/orchestration/registry/AgentProfile.js.map +1 -0
  663. package/dist/orchestration/registry/AgentRegistry.d.ts +15 -0
  664. package/dist/orchestration/registry/AgentRegistry.d.ts.map +1 -0
  665. package/dist/orchestration/registry/AgentRegistry.js +29 -0
  666. package/dist/orchestration/registry/AgentRegistry.js.map +1 -0
  667. package/dist/planning/ProjectPlanningLayer.d.ts +68 -0
  668. package/dist/planning/ProjectPlanningLayer.d.ts.map +1 -0
  669. package/dist/planning/ProjectPlanningLayer.js +176 -0
  670. package/dist/planning/ProjectPlanningLayer.js.map +1 -0
  671. package/dist/platform/PlatformCapabilities.d.ts +12 -0
  672. package/dist/platform/PlatformCapabilities.d.ts.map +1 -0
  673. package/dist/platform/PlatformCapabilities.js +66 -0
  674. package/dist/platform/PlatformCapabilities.js.map +1 -0
  675. package/dist/platform/auth/AuthService.d.ts +32 -0
  676. package/dist/platform/auth/AuthService.d.ts.map +1 -0
  677. package/dist/platform/auth/AuthService.js +43 -0
  678. package/dist/platform/auth/AuthService.js.map +1 -0
  679. package/dist/platform/index.d.ts +43 -0
  680. package/dist/platform/index.d.ts.map +1 -0
  681. package/dist/platform/index.js +67 -0
  682. package/dist/platform/index.js.map +1 -0
  683. package/dist/platform/sdk/index.d.ts +44 -0
  684. package/dist/platform/sdk/index.d.ts.map +1 -0
  685. package/dist/platform/sdk/index.js +67 -0
  686. package/dist/platform/sdk/index.js.map +1 -0
  687. package/dist/platform/server/ApiServer.d.ts +62 -0
  688. package/dist/platform/server/ApiServer.d.ts.map +1 -0
  689. package/dist/platform/server/ApiServer.js +232 -0
  690. package/dist/platform/server/ApiServer.js.map +1 -0
  691. package/dist/platform/services/MetricsService.d.ts +58 -0
  692. package/dist/platform/services/MetricsService.d.ts.map +1 -0
  693. package/dist/platform/services/MetricsService.js +81 -0
  694. package/dist/platform/services/MetricsService.js.map +1 -0
  695. package/dist/platform/validation/PlatformValidation.d.ts +30 -0
  696. package/dist/platform/validation/PlatformValidation.d.ts.map +1 -0
  697. package/dist/platform/validation/PlatformValidation.js +91 -0
  698. package/dist/platform/validation/PlatformValidation.js.map +1 -0
  699. package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts +33 -0
  700. package/dist/platform/validation/benchmark/BenchmarkFramework.d.ts.map +1 -0
  701. package/dist/platform/validation/benchmark/BenchmarkFramework.js +63 -0
  702. package/dist/platform/validation/benchmark/BenchmarkFramework.js.map +1 -0
  703. package/dist/platform/validation/chaos/FaultInjector.d.ts +44 -0
  704. package/dist/platform/validation/chaos/FaultInjector.d.ts.map +1 -0
  705. package/dist/platform/validation/chaos/FaultInjector.js +57 -0
  706. package/dist/platform/validation/chaos/FaultInjector.js.map +1 -0
  707. package/dist/product/AutoTopologySelector.d.ts +30 -0
  708. package/dist/product/AutoTopologySelector.d.ts.map +1 -0
  709. package/dist/product/AutoTopologySelector.js +113 -0
  710. package/dist/product/AutoTopologySelector.js.map +1 -0
  711. package/dist/product/ProductEngineeringLayer.d.ts +65 -0
  712. package/dist/product/ProductEngineeringLayer.d.ts.map +1 -0
  713. package/dist/product/ProductEngineeringLayer.js +168 -0
  714. package/dist/product/ProductEngineeringLayer.js.map +1 -0
  715. package/dist/product/ProviderRegistry.d.ts +13 -0
  716. package/dist/product/ProviderRegistry.d.ts.map +1 -0
  717. package/dist/product/ProviderRegistry.js +21 -0
  718. package/dist/product/ProviderRegistry.js.map +1 -0
  719. package/dist/product/TaskIntentClassifier.d.ts +20 -0
  720. package/dist/product/TaskIntentClassifier.d.ts.map +1 -0
  721. package/dist/product/TaskIntentClassifier.js +88 -0
  722. package/dist/product/TaskIntentClassifier.js.map +1 -0
  723. package/dist/production/ProductionRuntime.d.ts +50 -0
  724. package/dist/production/ProductionRuntime.d.ts.map +1 -0
  725. package/dist/production/ProductionRuntime.js +137 -0
  726. package/dist/production/ProductionRuntime.js.map +1 -0
  727. package/dist/production/checkpoint/CheckpointManager.d.ts +59 -0
  728. package/dist/production/checkpoint/CheckpointManager.d.ts.map +1 -0
  729. package/dist/production/checkpoint/CheckpointManager.js +84 -0
  730. package/dist/production/checkpoint/CheckpointManager.js.map +1 -0
  731. package/dist/production/compensation/CompensationEngine.d.ts +28 -0
  732. package/dist/production/compensation/CompensationEngine.d.ts.map +1 -0
  733. package/dist/production/compensation/CompensationEngine.js +52 -0
  734. package/dist/production/compensation/CompensationEngine.js.map +1 -0
  735. package/dist/production/events/EventStore.d.ts +54 -0
  736. package/dist/production/events/EventStore.d.ts.map +1 -0
  737. package/dist/production/events/EventStore.js +71 -0
  738. package/dist/production/events/EventStore.js.map +1 -0
  739. package/dist/production/plugins/PluginRegistry.d.ts +50 -0
  740. package/dist/production/plugins/PluginRegistry.d.ts.map +1 -0
  741. package/dist/production/plugins/PluginRegistry.js +63 -0
  742. package/dist/production/plugins/PluginRegistry.js.map +1 -0
  743. package/dist/production/scheduler/Scheduler.d.ts +55 -0
  744. package/dist/production/scheduler/Scheduler.d.ts.map +1 -0
  745. package/dist/production/scheduler/Scheduler.js +72 -0
  746. package/dist/production/scheduler/Scheduler.js.map +1 -0
  747. package/dist/production-observation/ProductionObservation.d.ts +137 -0
  748. package/dist/production-observation/ProductionObservation.d.ts.map +1 -0
  749. package/dist/production-observation/ProductionObservation.js +278 -0
  750. package/dist/production-observation/ProductionObservation.js.map +1 -0
  751. package/dist/production-observation/index.d.ts +14 -0
  752. package/dist/production-observation/index.d.ts.map +1 -0
  753. package/dist/production-observation/index.js +25 -0
  754. package/dist/production-observation/index.js.map +1 -0
  755. package/dist/productionization/ProductionizationPlan.d.ts +211 -0
  756. package/dist/productionization/ProductionizationPlan.d.ts.map +1 -0
  757. package/dist/productionization/ProductionizationPlan.js +498 -0
  758. package/dist/productionization/ProductionizationPlan.js.map +1 -0
  759. package/dist/productionization/index.d.ts +16 -0
  760. package/dist/productionization/index.d.ts.map +1 -0
  761. package/dist/productionization/index.js +33 -0
  762. package/dist/productionization/index.js.map +1 -0
  763. package/dist/prompts/prompts/reviewer.txt +17 -0
  764. package/dist/prompts/prompts/revision.txt +10 -0
  765. package/dist/prompts/reviewer.txt +17 -0
  766. package/dist/prompts/revision.txt +10 -0
  767. package/dist/providers/OpenAIProvider.d.ts +22 -0
  768. package/dist/providers/OpenAIProvider.d.ts.map +1 -0
  769. package/dist/providers/OpenAIProvider.js +55 -0
  770. package/dist/providers/OpenAIProvider.js.map +1 -0
  771. package/dist/providers/ProviderAdapter.d.ts +27 -0
  772. package/dist/providers/ProviderAdapter.d.ts.map +1 -0
  773. package/dist/providers/ProviderAdapter.js +7 -0
  774. package/dist/providers/ProviderAdapter.js.map +1 -0
  775. package/dist/reasoning/ArchitectureCandidateGenerator.d.ts +31 -0
  776. package/dist/reasoning/ArchitectureCandidateGenerator.d.ts.map +1 -0
  777. package/dist/reasoning/ArchitectureCandidateGenerator.js +89 -0
  778. package/dist/reasoning/ArchitectureCandidateGenerator.js.map +1 -0
  779. package/dist/reasoning/ArchitectureSpaceGenerator.d.ts +21 -0
  780. package/dist/reasoning/ArchitectureSpaceGenerator.d.ts.map +1 -0
  781. package/dist/reasoning/ArchitectureSpaceGenerator.js +55 -0
  782. package/dist/reasoning/ArchitectureSpaceGenerator.js.map +1 -0
  783. package/dist/reasoning/ConstraintInferenceEngine.d.ts +45 -0
  784. package/dist/reasoning/ConstraintInferenceEngine.d.ts.map +1 -0
  785. package/dist/reasoning/ConstraintInferenceEngine.js +97 -0
  786. package/dist/reasoning/ConstraintInferenceEngine.js.map +1 -0
  787. package/dist/reasoning/DecisionEngine.d.ts +28 -0
  788. package/dist/reasoning/DecisionEngine.d.ts.map +1 -0
  789. package/dist/reasoning/DecisionEngine.js +66 -0
  790. package/dist/reasoning/DecisionEngine.js.map +1 -0
  791. package/dist/reasoning/ExplainabilityLayer.d.ts +29 -0
  792. package/dist/reasoning/ExplainabilityLayer.d.ts.map +1 -0
  793. package/dist/reasoning/ExplainabilityLayer.js +51 -0
  794. package/dist/reasoning/ExplainabilityLayer.js.map +1 -0
  795. package/dist/reasoning/FailureSimulationEngine.d.ts +27 -0
  796. package/dist/reasoning/FailureSimulationEngine.d.ts.map +1 -0
  797. package/dist/reasoning/FailureSimulationEngine.js +80 -0
  798. package/dist/reasoning/FailureSimulationEngine.js.map +1 -0
  799. package/dist/reasoning/TradeoffReasoningEngine.d.ts +29 -0
  800. package/dist/reasoning/TradeoffReasoningEngine.d.ts.map +1 -0
  801. package/dist/reasoning/TradeoffReasoningEngine.js +92 -0
  802. package/dist/reasoning/TradeoffReasoningEngine.js.map +1 -0
  803. package/dist/reasoning/index.d.ts +59 -0
  804. package/dist/reasoning/index.d.ts.map +1 -0
  805. package/dist/reasoning/index.js +79 -0
  806. package/dist/reasoning/index.js.map +1 -0
  807. package/dist/review/ReviewConsensus.d.ts +55 -0
  808. package/dist/review/ReviewConsensus.d.ts.map +1 -0
  809. package/dist/review/ReviewConsensus.js +174 -0
  810. package/dist/review/ReviewConsensus.js.map +1 -0
  811. package/dist/runtime/CapabilityDiscovery.d.ts +39 -0
  812. package/dist/runtime/CapabilityDiscovery.d.ts.map +1 -0
  813. package/dist/runtime/CapabilityDiscovery.js +157 -0
  814. package/dist/runtime/CapabilityDiscovery.js.map +1 -0
  815. package/dist/runtime/EventBus.d.ts +26 -0
  816. package/dist/runtime/EventBus.d.ts.map +1 -0
  817. package/dist/runtime/EventBus.js +103 -0
  818. package/dist/runtime/EventBus.js.map +1 -0
  819. package/dist/runtime/FailureAnalyzer.d.ts +24 -0
  820. package/dist/runtime/FailureAnalyzer.d.ts.map +1 -0
  821. package/dist/runtime/FailureAnalyzer.js +71 -0
  822. package/dist/runtime/FailureAnalyzer.js.map +1 -0
  823. package/dist/runtime/ReplayEngine.d.ts +19 -0
  824. package/dist/runtime/ReplayEngine.d.ts.map +1 -0
  825. package/dist/runtime/ReplayEngine.js +50 -0
  826. package/dist/runtime/ReplayEngine.js.map +1 -0
  827. package/dist/runtime/RuntimeConfig.d.ts +27 -0
  828. package/dist/runtime/RuntimeConfig.d.ts.map +1 -0
  829. package/dist/runtime/RuntimeConfig.js +121 -0
  830. package/dist/runtime/RuntimeConfig.js.map +1 -0
  831. package/dist/runtime/RuntimeScoreManager.d.ts +49 -0
  832. package/dist/runtime/RuntimeScoreManager.d.ts.map +1 -0
  833. package/dist/runtime/RuntimeScoreManager.js +139 -0
  834. package/dist/runtime/RuntimeScoreManager.js.map +1 -0
  835. package/dist/runtime/RuntimeSelector.d.ts +32 -0
  836. package/dist/runtime/RuntimeSelector.d.ts.map +1 -0
  837. package/dist/runtime/RuntimeSelector.js +86 -0
  838. package/dist/runtime/RuntimeSelector.js.map +1 -0
  839. package/dist/runtime/v2/RuntimeCore.d.ts +141 -0
  840. package/dist/runtime/v2/RuntimeCore.d.ts.map +1 -0
  841. package/dist/runtime/v2/RuntimeCore.js +373 -0
  842. package/dist/runtime/v2/RuntimeCore.js.map +1 -0
  843. package/dist/runtime/v2/audit/AuditTrail.d.ts +155 -0
  844. package/dist/runtime/v2/audit/AuditTrail.d.ts.map +1 -0
  845. package/dist/runtime/v2/audit/AuditTrail.js +300 -0
  846. package/dist/runtime/v2/audit/AuditTrail.js.map +1 -0
  847. package/dist/runtime/v2/budget/BudgetGuard.d.ts +121 -0
  848. package/dist/runtime/v2/budget/BudgetGuard.d.ts.map +1 -0
  849. package/dist/runtime/v2/budget/BudgetGuard.js +248 -0
  850. package/dist/runtime/v2/budget/BudgetGuard.js.map +1 -0
  851. package/dist/runtime/v2/capability/CapabilityRegistry.d.ts +116 -0
  852. package/dist/runtime/v2/capability/CapabilityRegistry.d.ts.map +1 -0
  853. package/dist/runtime/v2/capability/CapabilityRegistry.js +207 -0
  854. package/dist/runtime/v2/capability/CapabilityRegistry.js.map +1 -0
  855. package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts +116 -0
  856. package/dist/runtime/v2/checkpoint/HumanCheckpoint.d.ts.map +1 -0
  857. package/dist/runtime/v2/checkpoint/HumanCheckpoint.js +265 -0
  858. package/dist/runtime/v2/checkpoint/HumanCheckpoint.js.map +1 -0
  859. package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts +101 -0
  860. package/dist/runtime/v2/concurrency/ConcurrencyManager.d.ts.map +1 -0
  861. package/dist/runtime/v2/concurrency/ConcurrencyManager.js +202 -0
  862. package/dist/runtime/v2/concurrency/ConcurrencyManager.js.map +1 -0
  863. package/dist/runtime/v2/dashboard/DashboardApi.d.ts +172 -0
  864. package/dist/runtime/v2/dashboard/DashboardApi.d.ts.map +1 -0
  865. package/dist/runtime/v2/dashboard/DashboardApi.js +336 -0
  866. package/dist/runtime/v2/dashboard/DashboardApi.js.map +1 -0
  867. package/dist/runtime/v2/dashboard/DashboardServer.d.ts +45 -0
  868. package/dist/runtime/v2/dashboard/DashboardServer.d.ts.map +1 -0
  869. package/dist/runtime/v2/dashboard/DashboardServer.js +184 -0
  870. package/dist/runtime/v2/dashboard/DashboardServer.js.map +1 -0
  871. package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts +168 -0
  872. package/dist/runtime/v2/discovery/DiscoveryEngine.d.ts.map +1 -0
  873. package/dist/runtime/v2/discovery/DiscoveryEngine.js +418 -0
  874. package/dist/runtime/v2/discovery/DiscoveryEngine.js.map +1 -0
  875. package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts +79 -0
  876. package/dist/runtime/v2/evaluator/EvaluatorPipeline.d.ts.map +1 -0
  877. package/dist/runtime/v2/evaluator/EvaluatorPipeline.js +261 -0
  878. package/dist/runtime/v2/evaluator/EvaluatorPipeline.js.map +1 -0
  879. package/dist/runtime/v2/hydration/HydrationEngine.d.ts +68 -0
  880. package/dist/runtime/v2/hydration/HydrationEngine.d.ts.map +1 -0
  881. package/dist/runtime/v2/hydration/HydrationEngine.js +272 -0
  882. package/dist/runtime/v2/hydration/HydrationEngine.js.map +1 -0
  883. package/dist/runtime/v2/index.d.ts +33 -0
  884. package/dist/runtime/v2/index.d.ts.map +1 -0
  885. package/dist/runtime/v2/index.js +117 -0
  886. package/dist/runtime/v2/index.js.map +1 -0
  887. package/dist/runtime/v2/intent/TaskContract.d.ts +97 -0
  888. package/dist/runtime/v2/intent/TaskContract.d.ts.map +1 -0
  889. package/dist/runtime/v2/intent/TaskContract.js +85 -0
  890. package/dist/runtime/v2/intent/TaskContract.js.map +1 -0
  891. package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts +109 -0
  892. package/dist/runtime/v2/isolation/WorkspaceIsolation.d.ts.map +1 -0
  893. package/dist/runtime/v2/isolation/WorkspaceIsolation.js +294 -0
  894. package/dist/runtime/v2/isolation/WorkspaceIsolation.js.map +1 -0
  895. package/dist/runtime/v2/observation/EventBus.d.ts +68 -0
  896. package/dist/runtime/v2/observation/EventBus.d.ts.map +1 -0
  897. package/dist/runtime/v2/observation/EventBus.js +116 -0
  898. package/dist/runtime/v2/observation/EventBus.js.map +1 -0
  899. package/dist/runtime/v2/persistence/PersistenceEngine.d.ts +113 -0
  900. package/dist/runtime/v2/persistence/PersistenceEngine.d.ts.map +1 -0
  901. package/dist/runtime/v2/persistence/PersistenceEngine.js +334 -0
  902. package/dist/runtime/v2/persistence/PersistenceEngine.js.map +1 -0
  903. package/dist/runtime/v2/planner/PlannerEngine.d.ts +48 -0
  904. package/dist/runtime/v2/planner/PlannerEngine.d.ts.map +1 -0
  905. package/dist/runtime/v2/planner/PlannerEngine.js +90 -0
  906. package/dist/runtime/v2/planner/PlannerEngine.js.map +1 -0
  907. package/dist/runtime/v2/policy/PolicyEngine.d.ts +66 -0
  908. package/dist/runtime/v2/policy/PolicyEngine.d.ts.map +1 -0
  909. package/dist/runtime/v2/policy/PolicyEngine.js +244 -0
  910. package/dist/runtime/v2/policy/PolicyEngine.js.map +1 -0
  911. package/dist/runtime/v2/provider/AnthropicProvider.d.ts +24 -0
  912. package/dist/runtime/v2/provider/AnthropicProvider.d.ts.map +1 -0
  913. package/dist/runtime/v2/provider/AnthropicProvider.js +139 -0
  914. package/dist/runtime/v2/provider/AnthropicProvider.js.map +1 -0
  915. package/dist/runtime/v2/provider/GoogleProvider.d.ts +24 -0
  916. package/dist/runtime/v2/provider/GoogleProvider.d.ts.map +1 -0
  917. package/dist/runtime/v2/provider/GoogleProvider.js +146 -0
  918. package/dist/runtime/v2/provider/GoogleProvider.js.map +1 -0
  919. package/dist/runtime/v2/provider/OpenAIProvider.d.ts +31 -0
  920. package/dist/runtime/v2/provider/OpenAIProvider.d.ts.map +1 -0
  921. package/dist/runtime/v2/provider/OpenAIProvider.js +189 -0
  922. package/dist/runtime/v2/provider/OpenAIProvider.js.map +1 -0
  923. package/dist/runtime/v2/provider/ProviderManager.d.ts +67 -0
  924. package/dist/runtime/v2/provider/ProviderManager.d.ts.map +1 -0
  925. package/dist/runtime/v2/provider/ProviderManager.js +118 -0
  926. package/dist/runtime/v2/provider/ProviderManager.js.map +1 -0
  927. package/dist/runtime/v2/provider/ProviderRegistry.d.ts +144 -0
  928. package/dist/runtime/v2/provider/ProviderRegistry.d.ts.map +1 -0
  929. package/dist/runtime/v2/provider/ProviderRegistry.js +154 -0
  930. package/dist/runtime/v2/provider/ProviderRegistry.js.map +1 -0
  931. package/dist/runtime/v2/queue/RuntimeQueue.d.ts +129 -0
  932. package/dist/runtime/v2/queue/RuntimeQueue.d.ts.map +1 -0
  933. package/dist/runtime/v2/queue/RuntimeQueue.js +240 -0
  934. package/dist/runtime/v2/queue/RuntimeQueue.js.map +1 -0
  935. package/dist/runtime/v2/recovery/RecoveryEngine.d.ts +112 -0
  936. package/dist/runtime/v2/recovery/RecoveryEngine.d.ts.map +1 -0
  937. package/dist/runtime/v2/recovery/RecoveryEngine.js +293 -0
  938. package/dist/runtime/v2/recovery/RecoveryEngine.js.map +1 -0
  939. package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts +129 -0
  940. package/dist/runtime/v2/scheduler/SchedulerEngine.d.ts.map +1 -0
  941. package/dist/runtime/v2/scheduler/SchedulerEngine.js +306 -0
  942. package/dist/runtime/v2/scheduler/SchedulerEngine.js.map +1 -0
  943. package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts +69 -0
  944. package/dist/runtime/v2/state-machine/RuntimeStateMachine.d.ts.map +1 -0
  945. package/dist/runtime/v2/state-machine/RuntimeStateMachine.js +152 -0
  946. package/dist/runtime/v2/state-machine/RuntimeStateMachine.js.map +1 -0
  947. package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts +104 -0
  948. package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.d.ts.map +1 -0
  949. package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js +321 -0
  950. package/dist/runtime/v2/workflow/RuntimeWorkflowBridge.js.map +1 -0
  951. package/dist/runtime/v2.1/ControlPlane.d.ts +83 -0
  952. package/dist/runtime/v2.1/ControlPlane.d.ts.map +1 -0
  953. package/dist/runtime/v2.1/ControlPlane.js +178 -0
  954. package/dist/runtime/v2.1/ControlPlane.js.map +1 -0
  955. package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts +53 -0
  956. package/dist/runtime/v2.1/bridge/ExecutionBridge.d.ts.map +1 -0
  957. package/dist/runtime/v2.1/bridge/ExecutionBridge.js +109 -0
  958. package/dist/runtime/v2.1/bridge/ExecutionBridge.js.map +1 -0
  959. package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts +105 -0
  960. package/dist/runtime/v2.1/contract/ShadowContractLayer.d.ts.map +1 -0
  961. package/dist/runtime/v2.1/contract/ShadowContractLayer.js +267 -0
  962. package/dist/runtime/v2.1/contract/ShadowContractLayer.js.map +1 -0
  963. package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts +62 -0
  964. package/dist/runtime/v2.1/decision/ShadowDecisionLayer.d.ts.map +1 -0
  965. package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js +105 -0
  966. package/dist/runtime/v2.1/decision/ShadowDecisionLayer.js.map +1 -0
  967. package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts +50 -0
  968. package/dist/runtime/v2.1/der/ChaosExecutionMode.d.ts.map +1 -0
  969. package/dist/runtime/v2.1/der/ChaosExecutionMode.js +89 -0
  970. package/dist/runtime/v2.1/der/ChaosExecutionMode.js.map +1 -0
  971. package/dist/runtime/v2.1/der/DER.d.ts +138 -0
  972. package/dist/runtime/v2.1/der/DER.d.ts.map +1 -0
  973. package/dist/runtime/v2.1/der/DER.js +395 -0
  974. package/dist/runtime/v2.1/der/DER.js.map +1 -0
  975. package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts +63 -0
  976. package/dist/runtime/v2.1/der/FaultInjectionLayer.d.ts.map +1 -0
  977. package/dist/runtime/v2.1/der/FaultInjectionLayer.js +138 -0
  978. package/dist/runtime/v2.1/der/FaultInjectionLayer.js.map +1 -0
  979. package/dist/runtime/v2.1/der/StressMetrics.d.ts +65 -0
  980. package/dist/runtime/v2.1/der/StressMetrics.d.ts.map +1 -0
  981. package/dist/runtime/v2.1/der/StressMetrics.js +127 -0
  982. package/dist/runtime/v2.1/der/StressMetrics.js.map +1 -0
  983. package/dist/runtime/v2.1/index.d.ts +22 -0
  984. package/dist/runtime/v2.1/index.d.ts.map +1 -0
  985. package/dist/runtime/v2.1/index.js +51 -0
  986. package/dist/runtime/v2.1/index.js.map +1 -0
  987. package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts +99 -0
  988. package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.d.ts.map +1 -0
  989. package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js +174 -0
  990. package/dist/runtime/v2.1/observability/ShadowObservabilityLayer.js.map +1 -0
  991. package/dist/runtime/v2.1/validation/CutoverGate.d.ts +82 -0
  992. package/dist/runtime/v2.1/validation/CutoverGate.d.ts.map +1 -0
  993. package/dist/runtime/v2.1/validation/CutoverGate.js +129 -0
  994. package/dist/runtime/v2.1/validation/CutoverGate.js.map +1 -0
  995. package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts +58 -0
  996. package/dist/runtime/v2.1/validation/DivergenceAnalyzer.d.ts.map +1 -0
  997. package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js +130 -0
  998. package/dist/runtime/v2.1/validation/DivergenceAnalyzer.js.map +1 -0
  999. package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts +45 -0
  1000. package/dist/runtime/v2.1/validation/ValidationDashboard.d.ts.map +1 -0
  1001. package/dist/runtime/v2.1/validation/ValidationDashboard.js +112 -0
  1002. package/dist/runtime/v2.1/validation/ValidationDashboard.js.map +1 -0
  1003. package/dist/runtime/v2.1/validation/ValidationEngine.d.ts +89 -0
  1004. package/dist/runtime/v2.1/validation/ValidationEngine.d.ts.map +1 -0
  1005. package/dist/runtime/v2.1/validation/ValidationEngine.js +194 -0
  1006. package/dist/runtime/v2.1/validation/ValidationEngine.js.map +1 -0
  1007. package/dist/runtime-core/agents/hermes.d.ts +18 -0
  1008. package/dist/runtime-core/agents/hermes.d.ts.map +1 -0
  1009. package/dist/runtime-core/agents/hermes.js +21 -0
  1010. package/dist/runtime-core/agents/hermes.js.map +1 -0
  1011. package/dist/runtime-core/agents/registry.d.ts +27 -0
  1012. package/dist/runtime-core/agents/registry.d.ts.map +1 -0
  1013. package/dist/runtime-core/agents/registry.js +29 -0
  1014. package/dist/runtime-core/agents/registry.js.map +1 -0
  1015. package/dist/runtime-core/agents/worker.d.ts +18 -0
  1016. package/dist/runtime-core/agents/worker.d.ts.map +1 -0
  1017. package/dist/runtime-core/agents/worker.js +21 -0
  1018. package/dist/runtime-core/agents/worker.js.map +1 -0
  1019. package/dist/runtime-core/index.d.ts +24 -0
  1020. package/dist/runtime-core/index.d.ts.map +1 -0
  1021. package/dist/runtime-core/index.js +55 -0
  1022. package/dist/runtime-core/index.js.map +1 -0
  1023. package/dist/runtime-core/orchestrator.d.ts +47 -0
  1024. package/dist/runtime-core/orchestrator.d.ts.map +1 -0
  1025. package/dist/runtime-core/orchestrator.js +87 -0
  1026. package/dist/runtime-core/orchestrator.js.map +1 -0
  1027. package/dist/runtime-core/tools/fs.d.ts +9 -0
  1028. package/dist/runtime-core/tools/fs.d.ts.map +1 -0
  1029. package/dist/runtime-core/tools/fs.js +57 -0
  1030. package/dist/runtime-core/tools/fs.js.map +1 -0
  1031. package/dist/runtime-core/tools/registry.d.ts +23 -0
  1032. package/dist/runtime-core/tools/registry.d.ts.map +1 -0
  1033. package/dist/runtime-core/tools/registry.js +29 -0
  1034. package/dist/runtime-core/tools/registry.js.map +1 -0
  1035. package/dist/runtime-v2/agents/PlannerAgent.d.ts +16 -0
  1036. package/dist/runtime-v2/agents/PlannerAgent.d.ts.map +1 -0
  1037. package/dist/runtime-v2/agents/PlannerAgent.js +34 -0
  1038. package/dist/runtime-v2/agents/PlannerAgent.js.map +1 -0
  1039. package/dist/runtime-v2/context/ContextBus.d.ts +45 -0
  1040. package/dist/runtime-v2/context/ContextBus.d.ts.map +1 -0
  1041. package/dist/runtime-v2/context/ContextBus.js +68 -0
  1042. package/dist/runtime-v2/context/ContextBus.js.map +1 -0
  1043. package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts +75 -0
  1044. package/dist/runtime-v2/graph/GraphRuntimeEngine.d.ts.map +1 -0
  1045. package/dist/runtime-v2/graph/GraphRuntimeEngine.js +171 -0
  1046. package/dist/runtime-v2/graph/GraphRuntimeEngine.js.map +1 -0
  1047. package/dist/runtime-v2/index.d.ts +24 -0
  1048. package/dist/runtime-v2/index.d.ts.map +1 -0
  1049. package/dist/runtime-v2/index.js +58 -0
  1050. package/dist/runtime-v2/index.js.map +1 -0
  1051. package/dist/runtime.d.ts +10 -0
  1052. package/dist/runtime.d.ts.map +1 -0
  1053. package/dist/runtime.js +13 -0
  1054. package/dist/runtime.js.map +1 -0
  1055. package/dist/safety/CircuitBreaker.d.ts +55 -0
  1056. package/dist/safety/CircuitBreaker.d.ts.map +1 -0
  1057. package/dist/safety/CircuitBreaker.js +138 -0
  1058. package/dist/safety/CircuitBreaker.js.map +1 -0
  1059. package/dist/safety/HopCounter.d.ts +30 -0
  1060. package/dist/safety/HopCounter.d.ts.map +1 -0
  1061. package/dist/safety/HopCounter.js +55 -0
  1062. package/dist/safety/HopCounter.js.map +1 -0
  1063. package/dist/safety/MessageDeduplicator.d.ts +33 -0
  1064. package/dist/safety/MessageDeduplicator.d.ts.map +1 -0
  1065. package/dist/safety/MessageDeduplicator.js +64 -0
  1066. package/dist/safety/MessageDeduplicator.js.map +1 -0
  1067. package/dist/safety/TimeBudget.d.ts +69 -0
  1068. package/dist/safety/TimeBudget.d.ts.map +1 -0
  1069. package/dist/safety/TimeBudget.js +109 -0
  1070. package/dist/safety/TimeBudget.js.map +1 -0
  1071. package/dist/safety/__tests__/CircuitBreaker.test.d.ts +2 -0
  1072. package/dist/safety/__tests__/CircuitBreaker.test.d.ts.map +1 -0
  1073. package/dist/safety/__tests__/CircuitBreaker.test.js +98 -0
  1074. package/dist/safety/__tests__/CircuitBreaker.test.js.map +1 -0
  1075. package/dist/sandbox/ExecutionSandbox.d.ts +16 -0
  1076. package/dist/sandbox/ExecutionSandbox.d.ts.map +1 -0
  1077. package/dist/sandbox/ExecutionSandbox.js +52 -0
  1078. package/dist/sandbox/ExecutionSandbox.js.map +1 -0
  1079. package/dist/security/P0IncidentResponse.d.ts +90 -0
  1080. package/dist/security/P0IncidentResponse.d.ts.map +1 -0
  1081. package/dist/security/P0IncidentResponse.js +161 -0
  1082. package/dist/security/P0IncidentResponse.js.map +1 -0
  1083. package/dist/security/SecurityHardening.d.ts +121 -0
  1084. package/dist/security/SecurityHardening.d.ts.map +1 -0
  1085. package/dist/security/SecurityHardening.js +228 -0
  1086. package/dist/security/SecurityHardening.js.map +1 -0
  1087. package/dist/security/index.d.ts +15 -0
  1088. package/dist/security/index.d.ts.map +1 -0
  1089. package/dist/security/index.js +23 -0
  1090. package/dist/security/index.js.map +1 -0
  1091. package/dist/self-healing/ExecutionTrace.d.ts +80 -0
  1092. package/dist/self-healing/ExecutionTrace.d.ts.map +1 -0
  1093. package/dist/self-healing/ExecutionTrace.js +132 -0
  1094. package/dist/self-healing/ExecutionTrace.js.map +1 -0
  1095. package/dist/self-healing/FailureClassifier.d.ts +40 -0
  1096. package/dist/self-healing/FailureClassifier.d.ts.map +1 -0
  1097. package/dist/self-healing/FailureClassifier.js +176 -0
  1098. package/dist/self-healing/FailureClassifier.js.map +1 -0
  1099. package/dist/self-healing/LoopMemory.d.ts +54 -0
  1100. package/dist/self-healing/LoopMemory.d.ts.map +1 -0
  1101. package/dist/self-healing/LoopMemory.js +79 -0
  1102. package/dist/self-healing/LoopMemory.js.map +1 -0
  1103. package/dist/self-healing/PolicyEngine.d.ts +31 -0
  1104. package/dist/self-healing/PolicyEngine.d.ts.map +1 -0
  1105. package/dist/self-healing/PolicyEngine.js +92 -0
  1106. package/dist/self-healing/PolicyEngine.js.map +1 -0
  1107. package/dist/self-healing/RetryPolicy.d.ts +50 -0
  1108. package/dist/self-healing/RetryPolicy.d.ts.map +1 -0
  1109. package/dist/self-healing/RetryPolicy.js +94 -0
  1110. package/dist/self-healing/RetryPolicy.js.map +1 -0
  1111. package/dist/self-healing/RuntimeEvents.d.ts +50 -0
  1112. package/dist/self-healing/RuntimeEvents.d.ts.map +1 -0
  1113. package/dist/self-healing/RuntimeEvents.js +68 -0
  1114. package/dist/self-healing/RuntimeEvents.js.map +1 -0
  1115. package/dist/self-healing/SelfHealingRuntime.d.ts +41 -0
  1116. package/dist/self-healing/SelfHealingRuntime.d.ts.map +1 -0
  1117. package/dist/self-healing/SelfHealingRuntime.js +245 -0
  1118. package/dist/self-healing/SelfHealingRuntime.js.map +1 -0
  1119. package/dist/stability/StabilityEngine.d.ts +67 -0
  1120. package/dist/stability/StabilityEngine.d.ts.map +1 -0
  1121. package/dist/stability/StabilityEngine.js +214 -0
  1122. package/dist/stability/StabilityEngine.js.map +1 -0
  1123. package/dist/stability/TaskQualityGate.d.ts +41 -0
  1124. package/dist/stability/TaskQualityGate.d.ts.map +1 -0
  1125. package/dist/stability/TaskQualityGate.js +90 -0
  1126. package/dist/stability/TaskQualityGate.js.map +1 -0
  1127. package/dist/stability-loop/StabilityHardeningLoop.d.ts +158 -0
  1128. package/dist/stability-loop/StabilityHardeningLoop.d.ts.map +1 -0
  1129. package/dist/stability-loop/StabilityHardeningLoop.js +331 -0
  1130. package/dist/stability-loop/StabilityHardeningLoop.js.map +1 -0
  1131. package/dist/stability-loop/index.d.ts +18 -0
  1132. package/dist/stability-loop/index.d.ts.map +1 -0
  1133. package/dist/stability-loop/index.js +35 -0
  1134. package/dist/stability-loop/index.js.map +1 -0
  1135. package/dist/trace/CausalEngine.d.ts +56 -0
  1136. package/dist/trace/CausalEngine.d.ts.map +1 -0
  1137. package/dist/trace/CausalEngine.js +131 -0
  1138. package/dist/trace/CausalEngine.js.map +1 -0
  1139. package/dist/trace/ExecutionTraceModel.d.ts +127 -0
  1140. package/dist/trace/ExecutionTraceModel.d.ts.map +1 -0
  1141. package/dist/trace/ExecutionTraceModel.js +136 -0
  1142. package/dist/trace/ExecutionTraceModel.js.map +1 -0
  1143. package/dist/trace/KnowledgeInfluenceTracker.d.ts +54 -0
  1144. package/dist/trace/KnowledgeInfluenceTracker.d.ts.map +1 -0
  1145. package/dist/trace/KnowledgeInfluenceTracker.js +76 -0
  1146. package/dist/trace/KnowledgeInfluenceTracker.js.map +1 -0
  1147. package/dist/trace/flexibility/AdaptiveRuntime.d.ts +30 -0
  1148. package/dist/trace/flexibility/AdaptiveRuntime.d.ts.map +1 -0
  1149. package/dist/trace/flexibility/AdaptiveRuntime.js +42 -0
  1150. package/dist/trace/flexibility/AdaptiveRuntime.js.map +1 -0
  1151. package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts +52 -0
  1152. package/dist/trace/flexibility/ExecutionFlexibilityEngine.d.ts.map +1 -0
  1153. package/dist/trace/flexibility/ExecutionFlexibilityEngine.js +57 -0
  1154. package/dist/trace/flexibility/ExecutionFlexibilityEngine.js.map +1 -0
  1155. package/dist/trace/flexibility/FlexibleExecutionGate.d.ts +25 -0
  1156. package/dist/trace/flexibility/FlexibleExecutionGate.d.ts.map +1 -0
  1157. package/dist/trace/flexibility/FlexibleExecutionGate.js +48 -0
  1158. package/dist/trace/flexibility/FlexibleExecutionGate.js.map +1 -0
  1159. package/dist/trace/flexibility/index.d.ts +17 -0
  1160. package/dist/trace/flexibility/index.d.ts.map +1 -0
  1161. package/dist/trace/flexibility/index.js +23 -0
  1162. package/dist/trace/flexibility/index.js.map +1 -0
  1163. package/dist/trace/gate/DeviationDetectionEngine.d.ts +60 -0
  1164. package/dist/trace/gate/DeviationDetectionEngine.d.ts.map +1 -0
  1165. package/dist/trace/gate/DeviationDetectionEngine.js +143 -0
  1166. package/dist/trace/gate/DeviationDetectionEngine.js.map +1 -0
  1167. package/dist/trace/gate/ExecutionTracePlan.d.ts +55 -0
  1168. package/dist/trace/gate/ExecutionTracePlan.d.ts.map +1 -0
  1169. package/dist/trace/gate/ExecutionTracePlan.js +67 -0
  1170. package/dist/trace/gate/ExecutionTracePlan.js.map +1 -0
  1171. package/dist/trace/gate/TraceExecutionGate.d.ts +63 -0
  1172. package/dist/trace/gate/TraceExecutionGate.d.ts.map +1 -0
  1173. package/dist/trace/gate/TraceExecutionGate.js +129 -0
  1174. package/dist/trace/gate/TraceExecutionGate.js.map +1 -0
  1175. package/dist/trace/gate/index.d.ts +15 -0
  1176. package/dist/trace/gate/index.d.ts.map +1 -0
  1177. package/dist/trace/gate/index.js +21 -0
  1178. package/dist/trace/gate/index.js.map +1 -0
  1179. package/dist/trace/index.d.ts +13 -0
  1180. package/dist/trace/index.d.ts.map +1 -0
  1181. package/dist/trace/index.js +19 -0
  1182. package/dist/trace/index.js.map +1 -0
  1183. package/dist/trace/proof/ExecutionProofSystem.d.ts +94 -0
  1184. package/dist/trace/proof/ExecutionProofSystem.d.ts.map +1 -0
  1185. package/dist/trace/proof/ExecutionProofSystem.js +185 -0
  1186. package/dist/trace/proof/ExecutionProofSystem.js.map +1 -0
  1187. package/dist/trace/proof/index.d.ts +11 -0
  1188. package/dist/trace/proof/index.d.ts.map +1 -0
  1189. package/dist/trace/proof/index.js +15 -0
  1190. package/dist/trace/proof/index.js.map +1 -0
  1191. package/dist/types/index.d.ts +194 -0
  1192. package/dist/types/index.d.ts.map +1 -0
  1193. package/dist/types/index.js +4 -0
  1194. package/dist/types/index.js.map +1 -0
  1195. package/dist/unified/UnifiedExecutionEngine.d.ts +118 -0
  1196. package/dist/unified/UnifiedExecutionEngine.d.ts.map +1 -0
  1197. package/dist/unified/UnifiedExecutionEngine.js +187 -0
  1198. package/dist/unified/UnifiedExecutionEngine.js.map +1 -0
  1199. package/dist/unified/index.d.ts +17 -0
  1200. package/dist/unified/index.d.ts.map +1 -0
  1201. package/dist/unified/index.js +21 -0
  1202. package/dist/unified/index.js.map +1 -0
  1203. package/dist/utils/OutputNormalizer.d.ts +8 -0
  1204. package/dist/utils/OutputNormalizer.d.ts.map +1 -0
  1205. package/dist/utils/OutputNormalizer.js +48 -0
  1206. package/dist/utils/OutputNormalizer.js.map +1 -0
  1207. package/dist/utils/RevisionHistory.d.ts +9 -0
  1208. package/dist/utils/RevisionHistory.d.ts.map +1 -0
  1209. package/dist/utils/RevisionHistory.js +72 -0
  1210. package/dist/utils/RevisionHistory.js.map +1 -0
  1211. package/dist/utils/TaskQueue.d.ts +12 -0
  1212. package/dist/utils/TaskQueue.d.ts.map +1 -0
  1213. package/dist/utils/TaskQueue.js +107 -0
  1214. package/dist/utils/TaskQueue.js.map +1 -0
  1215. package/dist/utils/logger.d.ts +16 -0
  1216. package/dist/utils/logger.d.ts.map +1 -0
  1217. package/dist/utils/logger.js +66 -0
  1218. package/dist/utils/logger.js.map +1 -0
  1219. package/dist/utils/uuid.d.ts +2 -0
  1220. package/dist/utils/uuid.d.ts.map +1 -0
  1221. package/dist/utils/uuid.js +41 -0
  1222. package/dist/utils/uuid.js.map +1 -0
  1223. package/dist/validate.d.ts +22 -0
  1224. package/dist/validate.d.ts.map +1 -0
  1225. package/dist/validate.js +46 -0
  1226. package/dist/validate.js.map +1 -0
  1227. package/dist/workflow/WorkflowMachine.d.ts +55 -0
  1228. package/dist/workflow/WorkflowMachine.d.ts.map +1 -0
  1229. package/dist/workflow/WorkflowMachine.js +185 -0
  1230. package/dist/workflow/WorkflowMachine.js.map +1 -0
  1231. package/docs/AGENT-HIVE-CAPABILITY-MATRIX-AUDIT.md +281 -0
  1232. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1-PRODUCT-READY-SPEC.md +346 -0
  1233. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-FINAL-SYSTEM-SPEC.md +509 -0
  1234. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0-NEW.md +390 -0
  1235. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.0.md +369 -0
  1236. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-FINAL-SPEC.md +380 -0
  1237. package/docs/AGENT-HIVE-EXECUTION-KERNEL-v1.1-RUNTIME-CORE.md +296 -0
  1238. package/docs/AGENT-HIVE-PHASE-10-EXECUTION-KERNEL-SYSTEM.md +399 -0
  1239. package/docs/AGENT-HIVE-PHASE-10-FINAL-FORM-v2-HARD-TRUTH-ENFORCEMENT-SYSTEM.md +350 -0
  1240. package/docs/AGENT-HIVE-PHASE-10-FINAL-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-ROOT-CAUSE-AUDIT.md +286 -0
  1241. package/docs/AGENT-HIVE-PHASE-10-HARD-EXECUTION-TRUTH-SYSTEM-INVARIANT-AUDIT.md +283 -0
  1242. package/docs/AGENT-HIVE-PHASE-5-EXECUTION-VALIDATION-REPORT.md +356 -0
  1243. package/docs/AGENT-HIVE-PHASE-5.1-PLANNER-ERROR-AUDIT.md +323 -0
  1244. package/docs/AGENT-HIVE-PHASE-6-TRUTH-AUDIT.md +454 -0
  1245. package/docs/AGENT-HIVE-PHASE-7-PRODUCTION-READINESS-AUDIT.md +210 -0
  1246. package/docs/AGENT-HIVE-PHASE-8-HARD-EXECUTION-TRUTH-ENFORCEMENT-AUDIT.md +310 -0
  1247. package/docs/AGENT-HIVE-PHASE-9-EXECUTION-COLLAPSE-TEST-SYSTEM.md +241 -0
  1248. package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT-v2.md +260 -0
  1249. package/docs/AGENT-HIVE-RELEASE-VALIDATION-REPORT.md +282 -0
  1250. package/docs/AGENT-HIVE-RUNTIME-v2.0-ARCHITECTURE-AUDIT.md +500 -0
  1251. package/docs/AGENT-HIVE-RUNTIME-v2.0-ULTIMATE-INVARIANTS-AUDIT.md +170 -0
  1252. package/docs/AGENT-HIVE-v1.4-lite-KERNEL-PATCH-INTEGRATION-REPORT.md +182 -0
  1253. package/docs/ARCHITECTURE-FREEZE-VALIDATION-REPORT.md +157 -0
  1254. package/docs/ARCHITECTURE.md +51 -0
  1255. package/docs/QUICKSTART.md +44 -0
  1256. package/docs/adr/ADR-001-runtime-architecture.md +28 -0
  1257. package/docs/adr/ADR-002-dag-execution.md +11 -0
  1258. package/docs/adr/ADR-003-observation-layer.md +11 -0
  1259. package/docs/adr/ADR-004-policy-engine.md +11 -0
  1260. package/docs/adr/ADR-005-self-healing.md +24 -0
  1261. package/docs/adr/ADR-006-checkpoint.md +24 -0
  1262. package/docs/adr/ADR-007-event-sourcing.md +11 -0
  1263. package/docs/adr/ADR-008-plugin-sdk.md +11 -0
  1264. package/docs/adr/ADR-009-scheduler.md +24 -0
  1265. package/docs/adr/ADR-010-platform-api.md +11 -0
  1266. package/docs/agent-hive-full-audit-report.md +281 -0
  1267. package/docs/agent-hive-observation.md +100 -0
  1268. package/docs/architecture/overview.md +78 -0
  1269. package/docs/architecture-current.md +301 -0
  1270. package/docs/architecture-review-v2.1.7.md +402 -0
  1271. package/docs/audit-report.md +172 -0
  1272. package/docs/branding-final.md +44 -0
  1273. package/docs/branding-review.md +51 -0
  1274. package/docs/continuous-validation.md +59 -0
  1275. package/docs/dashboard-runtime-validation.md +44 -0
  1276. package/docs/dashboard.md +32 -0
  1277. package/docs/experiment-results.json +341 -0
  1278. package/docs/failure-intelligence-report.md +39 -0
  1279. package/docs/hermes-audit-report.md +119 -0
  1280. package/docs/install-validation.md +43 -0
  1281. package/docs/observability-report.md +71 -0
  1282. package/docs/observability.md +187 -0
  1283. package/docs/orchestration-report.md +119 -0
  1284. package/docs/plugins/README.md +64 -0
  1285. package/docs/positioning.md +67 -0
  1286. package/docs/product-entry.md +55 -0
  1287. package/docs/providers.md +56 -0
  1288. package/docs/real-project-validation.md +120 -0
  1289. package/docs/real-workload-stream.md +69 -0
  1290. package/docs/real-world-validation-report.md +76 -0
  1291. package/docs/release-checklist-v1.1.md +25 -0
  1292. package/docs/runtime-benchmark.md +118 -0
  1293. package/docs/self-hosting.md +64 -0
  1294. package/docs/stability.md +49 -0
  1295. package/docs/task-injection-set.md +49 -0
  1296. package/docs/user-feedback-v1.md +59 -0
  1297. package/docs/v2.0-architecture-proposal.md +684 -0
  1298. package/docs/validation-report.md +116 -0
  1299. package/docs/value-analysis.md +110 -0
  1300. package/examples/ai-workflow/index.js +34 -0
  1301. package/examples/demo/index.js +87 -0
  1302. package/examples/demo/package.json +7 -0
  1303. package/jest.config.js +31 -0
  1304. package/package.json +34 -0
  1305. package/runtime.json.example +26 -0
  1306. package/src/adapters/ClaudeAdapter.ts +229 -0
  1307. package/src/adapters/CodexAdapter.ts +108 -0
  1308. package/src/adapters/HermesAdapter.ts +196 -0
  1309. package/src/adapters/MockClaudeAdapter.ts +70 -0
  1310. package/src/adapters/MockCodexAdapter.ts +36 -0
  1311. package/src/adapters/OpenClawAdapter.ts +172 -0
  1312. package/src/adapters/registry.ts +54 -0
  1313. package/src/api/HiveAPI.ts +148 -0
  1314. package/src/benchmark/BenchmarkDataset.ts +80 -0
  1315. package/src/benchmark/BenchmarkPlan.ts +451 -0
  1316. package/src/benchmark/BenchmarkReport.ts +147 -0
  1317. package/src/benchmark/BenchmarkRunner.ts +143 -0
  1318. package/src/benchmark/BenchmarkSuite.ts +193 -0
  1319. package/src/benchmark/index.ts +39 -0
  1320. package/src/broker/AgentRegistry.ts +76 -0
  1321. package/src/broker/Broker.ts +115 -0
  1322. package/src/broker/GraphOperations.ts +73 -0
  1323. package/src/broker/MessageBus.ts +92 -0
  1324. package/src/broker/MessageRouter.ts +159 -0
  1325. package/src/broker/TaskProcessor.ts +520 -0
  1326. package/src/broker/TaskProcessor.ts.backup +472 -0
  1327. package/src/broker/TaskRouter.ts +32 -0
  1328. package/src/channels/ChannelPlugin.ts +34 -0
  1329. package/src/ci/CIGate.ts +150 -0
  1330. package/src/ci/ContractLock.ts +92 -0
  1331. package/src/cli/hive-cli.ts +104 -0
  1332. package/src/cli.ts +218 -0
  1333. package/src/command/CommandAST.ts +40 -0
  1334. package/src/commands/cli.ts +819 -0
  1335. package/src/commands/demo.ts +81 -0
  1336. package/src/commands/experiment-routing.ts +360 -0
  1337. package/src/commands/generate-dashboard.js +235 -0
  1338. package/src/commands/run-daily-validation.js +125 -0
  1339. package/src/commands/run-validation.ts +316 -0
  1340. package/src/commands/test-benchmark.ts +208 -0
  1341. package/src/commands/test-conversation.ts +284 -0
  1342. package/src/commands/test-crash.ts +67 -0
  1343. package/src/commands/test-cross-platform.ts +65 -0
  1344. package/src/commands/test-graph.ts +466 -0
  1345. package/src/commands/test-observability.ts +137 -0
  1346. package/src/commands/test-orchestration.ts +122 -0
  1347. package/src/commands/test-real-world.ts +180 -0
  1348. package/src/commands/test-reviewer.ts +136 -0
  1349. package/src/commands/test-runtime-intelligence.ts +235 -0
  1350. package/src/commands/test-stress.ts +131 -0
  1351. package/src/commands/test-timeout.ts +145 -0
  1352. package/src/commands/test-v2-integration.ts +615 -0
  1353. package/src/commands/test-validation.ts +210 -0
  1354. package/src/compiler/ArchitectureSynthesizer.ts +117 -0
  1355. package/src/compiler/BlueprintPackager.ts +32 -0
  1356. package/src/compiler/CommandCompiler.ts +66 -0
  1357. package/src/compiler/DAGCompiler.ts +25 -0
  1358. package/src/compiler/DomainModelGenerator.ts +132 -0
  1359. package/src/compiler/FeasibilityGate.ts +81 -0
  1360. package/src/compiler/InputNormalizer.ts +88 -0
  1361. package/src/compiler/IntentParser.ts +109 -0
  1362. package/src/compiler/ModulePlanner.ts +32 -0
  1363. package/src/compiler/PromptCompiler.ts +39 -0
  1364. package/src/compiler/index.ts +84 -0
  1365. package/src/context/ContextManager.ts +63 -0
  1366. package/src/control-plane/BudgetController.ts +120 -0
  1367. package/src/control-plane/ControlPlane.ts +254 -0
  1368. package/src/control-plane/ConvergenceGuard.ts +85 -0
  1369. package/src/control-plane/DriftDetector.ts +99 -0
  1370. package/src/control-plane/MetricStabilityLock.ts +75 -0
  1371. package/src/control-plane/index.ts +24 -0
  1372. package/src/convergence/ConvergenceValidator.ts +367 -0
  1373. package/src/convergence/index.ts +35 -0
  1374. package/src/conversation/ConversationManager.ts +158 -0
  1375. package/src/dashboard/EventStore.ts +54 -0
  1376. package/src/dashboard/FailureIntelligence.ts +302 -0
  1377. package/src/dashboard/ObservationDashboard.ts +256 -0
  1378. package/src/dashboard/StabilityCurve.ts +69 -0
  1379. package/src/dashboard/index.html +144 -0
  1380. package/src/engine/ExecutionEngine.ts +132 -0
  1381. package/src/engine/PlatformAdapter.ts +49 -0
  1382. package/src/engine/ResultNormalizer.ts +69 -0
  1383. package/src/engine/StructuredLogger.ts +61 -0
  1384. package/src/evaluation/BaselineRunner.ts +124 -0
  1385. package/src/evaluation/DecisionTrace.ts +33 -0
  1386. package/src/evaluation/EvaluationMetrics.ts +42 -0
  1387. package/src/evaluation/GroundTruthDataset.ts +84 -0
  1388. package/src/evaluation/RealWorldBenchmark.ts +91 -0
  1389. package/src/evaluation/RealWorldRunner.ts +171 -0
  1390. package/src/evaluation/ValidationRunner.ts +156 -0
  1391. package/src/events/AgentEvent.ts +45 -0
  1392. package/src/events/DecisionEvent.ts +16 -0
  1393. package/src/events/ExecutionEvent.ts +38 -0
  1394. package/src/events/SystemEvent.ts +11 -0
  1395. package/src/evolution/EvolutionEngine.ts +388 -0
  1396. package/src/evolution/index.ts +27 -0
  1397. package/src/execution-fabric/DistributedExecutionFabric.ts +304 -0
  1398. package/src/execution-fabric/index.ts +16 -0
  1399. package/src/execution-graph/DynamicExecutionGraphRuntime.ts +319 -0
  1400. package/src/execution-graph/ExecutionGraphEngine.ts +290 -0
  1401. package/src/execution-graph/index.ts +28 -0
  1402. package/src/execution-runtime/ExecutionRuntime.ts +290 -0
  1403. package/src/execution-runtime/index.ts +17 -0
  1404. package/src/governance/EngineeringGovernanceLayer.ts +287 -0
  1405. package/src/graph/AgentGraph.ts +276 -0
  1406. package/src/graph/GraphValidator.ts +107 -0
  1407. package/src/graph/TopologyTemplates.ts +152 -0
  1408. package/src/hardening/RuntimeHardening.ts +381 -0
  1409. package/src/hardening/index.ts +18 -0
  1410. package/src/index.ts +8 -0
  1411. package/src/kernel/ExecutionState.ts +133 -0
  1412. package/src/kernel/FailureInterceptor.ts +136 -0
  1413. package/src/kernel/KernelGate.ts +77 -0
  1414. package/src/kernel/MultiAgentExecutionKernel.ts +274 -0
  1415. package/src/kernel/RuntimeKernel.ts +494 -0
  1416. package/src/kernel/index.ts +32 -0
  1417. package/src/knowledge/KnowledgeSystem.ts +145 -0
  1418. package/src/learning/ExecutionEpisodeStore.ts +95 -0
  1419. package/src/learning/InsightEngine.ts +78 -0
  1420. package/src/learning/LearningLoopEngine.ts +97 -0
  1421. package/src/learning/MemoryCompressor.ts +94 -0
  1422. package/src/learning/PolicyOptimizer.ts +102 -0
  1423. package/src/learning/PolicyStore.ts +94 -0
  1424. package/src/loop-layer/EvaluationEngine.ts +55 -0
  1425. package/src/loop-layer/LoopController.ts +95 -0
  1426. package/src/loop-layer/ObservationEngine.ts +159 -0
  1427. package/src/memory/ContextCompressor.ts +80 -0
  1428. package/src/memory/MemoryManager.ts +52 -0
  1429. package/src/memory/MemorySearch.ts +91 -0
  1430. package/src/memory/MemoryStore.ts +72 -0
  1431. package/src/observability/ConversationTrace.ts +89 -0
  1432. package/src/observability/DecisionRecorder.ts +95 -0
  1433. package/src/observability/RuntimeMetrics.ts +114 -0
  1434. package/src/observability/TaskTimeline.ts +102 -0
  1435. package/src/observation/SystemScoreCalculator.ts +182 -0
  1436. package/src/observation/__tests__/SystemScoreCalculator.test.ts +71 -0
  1437. package/src/orchestration/AgentRouter.ts +69 -0
  1438. package/src/orchestration/DAGExecutor.ts +150 -0
  1439. package/src/orchestration/JudgeAgent.ts +69 -0
  1440. package/src/orchestration/Planner.ts +52 -0
  1441. package/src/orchestration/ReviewerAgent.ts +76 -0
  1442. package/src/orchestration/contracts/Agent.ts +46 -0
  1443. package/src/orchestration/registry/AgentProfile.ts +11 -0
  1444. package/src/orchestration/registry/AgentRegistry.ts +36 -0
  1445. package/src/planning/ProjectPlanningLayer.ts +230 -0
  1446. package/src/platform/PlatformCapabilities.ts +42 -0
  1447. package/src/platform/auth/AuthService.ts +50 -0
  1448. package/src/platform/index.ts +73 -0
  1449. package/src/platform/sdk/index.ts +87 -0
  1450. package/src/platform/server/ApiServer.ts +226 -0
  1451. package/src/platform/services/MetricsService.ts +97 -0
  1452. package/src/platform/validation/PlatformValidation.ts +109 -0
  1453. package/src/platform/validation/benchmark/BenchmarkFramework.ts +83 -0
  1454. package/src/platform/validation/chaos/FaultInjector.ts +85 -0
  1455. package/src/product/AutoTopologySelector.ts +137 -0
  1456. package/src/product/ProductEngineeringLayer.ts +215 -0
  1457. package/src/product/ProviderRegistry.ts +25 -0
  1458. package/src/product/TaskIntentClassifier.ts +105 -0
  1459. package/src/production/ProductionRuntime.ts +161 -0
  1460. package/src/production/checkpoint/CheckpointManager.ts +103 -0
  1461. package/src/production/compensation/CompensationEngine.ts +71 -0
  1462. package/src/production/events/EventStore.ts +100 -0
  1463. package/src/production/plugins/PluginRegistry.ts +84 -0
  1464. package/src/production/scheduler/Scheduler.ts +93 -0
  1465. package/src/production-observation/ProductionObservation.ts +404 -0
  1466. package/src/production-observation/index.ts +41 -0
  1467. package/src/productionization/ProductionizationPlan.ts +591 -0
  1468. package/src/productionization/index.ts +45 -0
  1469. package/src/prompts/reviewer.txt +17 -0
  1470. package/src/prompts/revision.txt +10 -0
  1471. package/src/providers/OpenAIProvider.ts +61 -0
  1472. package/src/providers/ProviderAdapter.ts +32 -0
  1473. package/src/reasoning/ArchitectureCandidateGenerator.ts +103 -0
  1474. package/src/reasoning/ArchitectureSpaceGenerator.ts +73 -0
  1475. package/src/reasoning/ConstraintInferenceEngine.ts +110 -0
  1476. package/src/reasoning/DecisionEngine.ts +102 -0
  1477. package/src/reasoning/ExplainabilityLayer.ts +72 -0
  1478. package/src/reasoning/FailureSimulationEngine.ts +102 -0
  1479. package/src/reasoning/TradeoffReasoningEngine.ts +114 -0
  1480. package/src/reasoning/index.ts +115 -0
  1481. package/src/review/ReviewConsensus.ts +243 -0
  1482. package/src/runtime/CapabilityDiscovery.ts +142 -0
  1483. package/src/runtime/EventBus.ts +84 -0
  1484. package/src/runtime/FailureAnalyzer.ts +87 -0
  1485. package/src/runtime/ReplayEngine.ts +62 -0
  1486. package/src/runtime/RuntimeConfig.ts +101 -0
  1487. package/src/runtime/RuntimeScoreManager.ts +134 -0
  1488. package/src/runtime/RuntimeSelector.ts +118 -0
  1489. package/src/runtime/v2/RuntimeCore.ts +453 -0
  1490. package/src/runtime/v2/audit/AuditTrail.ts +393 -0
  1491. package/src/runtime/v2/budget/BudgetGuard.ts +304 -0
  1492. package/src/runtime/v2/capability/CapabilityRegistry.ts +244 -0
  1493. package/src/runtime/v2/checkpoint/HumanCheckpoint.ts +364 -0
  1494. package/src/runtime/v2/concurrency/ConcurrencyManager.ts +263 -0
  1495. package/src/runtime/v2/dashboard/DashboardApi.ts +534 -0
  1496. package/src/runtime/v2/dashboard/DashboardServer.ts +160 -0
  1497. package/src/runtime/v2/discovery/DiscoveryEngine.ts +488 -0
  1498. package/src/runtime/v2/evaluator/EvaluatorPipeline.ts +300 -0
  1499. package/src/runtime/v2/hydration/HydrationEngine.ts +289 -0
  1500. package/src/runtime/v2/index.ts +211 -0
  1501. package/src/runtime/v2/intent/TaskContract.ts +182 -0
  1502. package/src/runtime/v2/isolation/WorkspaceIsolation.ts +330 -0
  1503. package/src/runtime/v2/observation/EventBus.ts +137 -0
  1504. package/src/runtime/v2/persistence/PersistenceEngine.ts +330 -0
  1505. package/src/runtime/v2/planner/PlannerEngine.ts +134 -0
  1506. package/src/runtime/v2/policy/PolicyEngine.ts +288 -0
  1507. package/src/runtime/v2/provider/AnthropicProvider.ts +133 -0
  1508. package/src/runtime/v2/provider/GoogleProvider.ts +136 -0
  1509. package/src/runtime/v2/provider/OpenAIProvider.ts +184 -0
  1510. package/src/runtime/v2/provider/ProviderManager.ts +150 -0
  1511. package/src/runtime/v2/provider/ProviderRegistry.ts +262 -0
  1512. package/src/runtime/v2/queue/RuntimeQueue.ts +280 -0
  1513. package/src/runtime/v2/recovery/RecoveryEngine.ts +357 -0
  1514. package/src/runtime/v2/scheduler/SchedulerEngine.ts +358 -0
  1515. package/src/runtime/v2/state-machine/RuntimeStateMachine.ts +186 -0
  1516. package/src/runtime/v2/workflow/RuntimeWorkflowBridge.ts +410 -0
  1517. package/src/runtime/v2.1/ControlPlane.ts +249 -0
  1518. package/src/runtime/v2.1/bridge/ExecutionBridge.ts +142 -0
  1519. package/src/runtime/v2.1/contract/ShadowContractLayer.ts +343 -0
  1520. package/src/runtime/v2.1/decision/ShadowDecisionLayer.ts +165 -0
  1521. package/src/runtime/v2.1/der/ChaosExecutionMode.ts +120 -0
  1522. package/src/runtime/v2.1/der/DER.ts +468 -0
  1523. package/src/runtime/v2.1/der/FaultInjectionLayer.ts +181 -0
  1524. package/src/runtime/v2.1/der/StressMetrics.ts +170 -0
  1525. package/src/runtime/v2.1/index.ts +101 -0
  1526. package/src/runtime/v2.1/observability/ShadowObservabilityLayer.ts +226 -0
  1527. package/src/runtime/v2.1/validation/CutoverGate.ts +179 -0
  1528. package/src/runtime/v2.1/validation/DivergenceAnalyzer.ts +165 -0
  1529. package/src/runtime/v2.1/validation/ValidationDashboard.ts +139 -0
  1530. package/src/runtime/v2.1/validation/ValidationEngine.ts +308 -0
  1531. package/src/runtime-core/agents/hermes.ts +20 -0
  1532. package/src/runtime-core/agents/registry.ts +35 -0
  1533. package/src/runtime-core/agents/worker.ts +20 -0
  1534. package/src/runtime-core/index.ts +60 -0
  1535. package/src/runtime-core/orchestrator.ts +123 -0
  1536. package/src/runtime-core/tools/fs.ts +24 -0
  1537. package/src/runtime-core/tools/registry.ts +34 -0
  1538. package/src/runtime-v2/agents/PlannerAgent.ts +34 -0
  1539. package/src/runtime-v2/context/ContextBus.ts +72 -0
  1540. package/src/runtime-v2/graph/GraphRuntimeEngine.ts +217 -0
  1541. package/src/runtime-v2/index.ts +62 -0
  1542. package/src/runtime.ts +10 -0
  1543. package/src/safety/CircuitBreaker.ts +152 -0
  1544. package/src/safety/HopCounter.ts +57 -0
  1545. package/src/safety/MessageDeduplicator.ts +69 -0
  1546. package/src/safety/TimeBudget.ts +129 -0
  1547. package/src/safety/__tests__/CircuitBreaker.test.ts +113 -0
  1548. package/src/sandbox/ExecutionSandbox.ts +65 -0
  1549. package/src/security/P0IncidentResponse.ts +201 -0
  1550. package/src/security/SecurityHardening.ts +272 -0
  1551. package/src/security/index.ts +29 -0
  1552. package/src/self-healing/ExecutionTrace.ts +164 -0
  1553. package/src/self-healing/FailureClassifier.ts +212 -0
  1554. package/src/self-healing/LoopMemory.ts +98 -0
  1555. package/src/self-healing/PolicyEngine.ts +117 -0
  1556. package/src/self-healing/RetryPolicy.ts +120 -0
  1557. package/src/self-healing/RuntimeEvents.ts +93 -0
  1558. package/src/self-healing/SelfHealingRuntime.ts +282 -0
  1559. package/src/stability/StabilityEngine.ts +216 -0
  1560. package/src/stability/TaskQualityGate.ts +119 -0
  1561. package/src/stability-loop/StabilityHardeningLoop.ts +470 -0
  1562. package/src/stability-loop/index.ts +53 -0
  1563. package/src/trace/CausalEngine.ts +160 -0
  1564. package/src/trace/ExecutionTraceModel.ts +242 -0
  1565. package/src/trace/KnowledgeInfluenceTracker.ts +92 -0
  1566. package/src/trace/flexibility/AdaptiveRuntime.ts +41 -0
  1567. package/src/trace/flexibility/ExecutionFlexibilityEngine.ts +97 -0
  1568. package/src/trace/flexibility/FlexibleExecutionGate.ts +51 -0
  1569. package/src/trace/flexibility/index.ts +26 -0
  1570. package/src/trace/gate/DeviationDetectionEngine.ts +182 -0
  1571. package/src/trace/gate/ExecutionTracePlan.ts +108 -0
  1572. package/src/trace/gate/TraceExecutionGate.ts +163 -0
  1573. package/src/trace/gate/index.ts +15 -0
  1574. package/src/trace/index.ts +13 -0
  1575. package/src/trace/proof/ExecutionProofSystem.ts +232 -0
  1576. package/src/trace/proof/index.ts +16 -0
  1577. package/src/types/index.ts +286 -0
  1578. package/src/unified/UnifiedExecutionEngine.ts +281 -0
  1579. package/src/unified/index.ts +24 -0
  1580. package/src/utils/OutputNormalizer.ts +45 -0
  1581. package/src/utils/RevisionHistory.ts +39 -0
  1582. package/src/utils/TaskQueue.ts +80 -0
  1583. package/src/utils/logger.ts +44 -0
  1584. package/src/utils/uuid.ts +5 -0
  1585. package/src/validate.ts +50 -0
  1586. package/src/workflow/WorkflowMachine.ts +229 -0
  1587. package/test-grand-review.js +192 -0
  1588. package/tests/test-system-score.ts +167 -0
  1589. package/toyako-hive-4.0.0-rc.1.tgz +0 -0
  1590. package/tsconfig.json +20 -0
  1591. package/tsconfig.test.json +9 -0
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Ground Truth Dataset — 50 benchmark tasks with expected outcomes.
3
+ */
4
+ export interface BenchmarkTask {
5
+ id: string;
6
+ category: string;
7
+ task: string;
8
+ expected: {
9
+ files: string[];
10
+ tests: string[];
11
+ acceptanceCriteria: string[];
12
+ minScore: number;
13
+ };
14
+ }
15
+
16
+ export const BENCHMARK_DATASET: BenchmarkTask[] = [
17
+ // CLI Refactor (10)
18
+ { id: "cli-01", category: "cli-refactor", task: "Extract command handler functions from a monolithic switch statement", expected: { files: ["commands/"], tests: ["handler extraction"], acceptanceCriteria: ["Each command in separate function", "No switch statement > 50 lines"], minScore: 70 } },
19
+ { id: "cli-02", category: "cli-refactor", task: "Add proper error handling to CLI commands", expected: { files: ["commands/"], tests: ["error handling"], acceptanceCriteria: ["Try-catch on all async commands", "User-friendly error messages"], minScore: 70 } },
20
+ { id: "cli-03", category: "cli-refactor", task: "Implement consistent help text for all commands", expected: { files: ["commands/"], tests: ["help text"], acceptanceCriteria: ["All commands have --help", "Consistent format"], minScore: 60 } },
21
+ { id: "cli-04", category: "cli-refactor", task: "Add input validation to CLI arguments", expected: { files: ["commands/"], tests: ["validation"], acceptanceCriteria: ["Required args checked", "Type validation"], minScore: 70 } },
22
+ { id: "cli-05", category: "cli-refactor", task: "Refactor config loading to use a centralized config module", expected: { files: ["config/"], tests: ["config loading"], acceptanceCriteria: ["Single config source", "No hardcoded values"], minScore: 70 } },
23
+ { id: "cli-06", category: "cli-refactor", task: "Add verbose/debug output mode to CLI", expected: { files: ["commands/"], tests: ["debug mode"], acceptanceCriteria: ["--verbose flag", "Debug output"], minScore: 60 } },
24
+ { id: "cli-07", category: "cli-refactor", task: "Implement command aliases for frequently used commands", expected: { files: ["commands/"], tests: ["aliases"], acceptanceCriteria: ["Short aliases work", "Documented"], minScore: 50 } },
25
+ { id: "cli-08", category: "cli-refactor", task: "Add progress indicators for long-running commands", expected: { files: ["commands/"], tests: ["progress"], acceptanceCriteria: ["Spinner or progress bar", "Non-blocking"], minScore: 60 } },
26
+ { id: "cli-09", category: "cli-refactor", task: "Refactor output formatting to support JSON and table modes", expected: { files: ["commands/"], tests: ["output format"], acceptanceCriteria: ["--json flag", "Table default"], minScore: 70 } },
27
+ { id: "cli-10", category: "cli-refactor", task: "Add shell completion support", expected: { files: ["commands/"], tests: ["completion"], acceptanceCriteria: ["bash/zsh completion", "Dynamic suggestions"], minScore: 50 } },
28
+
29
+ // Bug Fix (10)
30
+ { id: "bug-01", category: "bug-fix", task: "Fix race condition in parallel task execution", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["race condition"], acceptanceCriteria: ["No data corruption", "Consistent results"], minScore: 80 } },
31
+ { id: "bug-02", category: "bug-fix", task: "Fix memory leak in EventBus event storage", expected: { files: ["runtime/EventBus.ts"], tests: ["memory leak"], acceptanceCriteria: ["Events cleaned up", "No unbounded growth"], minScore: 80 } },
32
+ { id: "bug-03", category: "bug-fix", task: "Fix timeout handling in ExecutionEngine", expected: { files: ["engine/ExecutionEngine.ts"], tests: ["timeout"], acceptanceCriteria: ["Clean timeout", "No zombie processes"], minScore: 80 } },
33
+ { id: "bug-04", category: "bug-fix", task: "Fix path normalization on Windows", expected: { files: ["engine/ResultNormalizer.ts"], tests: ["path normalization"], acceptanceCriteria: ["Windows paths work", "No backslash issues"], minScore: 70 } },
34
+ { id: "bug-05", category: "bug-fix", task: "Fix concurrent file writes in StructuredLogger", expected: { files: ["engine/StructuredLogger.ts"], tests: ["concurrent write"], acceptanceCriteria: ["No file corruption", "All entries saved"], minScore: 80 } },
35
+ { id: "bug-06", category: "bug-fix", task: "Fix agent router returning null for valid tasks", expected: { files: ["orchestration/AgentRouter.ts"], tests: ["router null"], acceptanceCriteria: ["Valid tasks always routed", "No silent fail"], minScore: 80 } },
36
+ { id: "bug-07", category: "bug-fix", task: "Fix planner generating duplicate task IDs", expected: { files: ["orchestration/Planner.ts"], tests: ["duplicate IDs"], acceptanceCriteria: ["All IDs unique", "No collisions"], minScore: 70 } },
37
+ { id: "bug-08", category: "bug-fix", task: "Fix reviewer accepting empty outputs", expected: { files: ["orchestration/ReviewerAgent.ts"], tests: ["empty output"], acceptanceCriteria: ["Empty output rejected", "Score < 60"], minScore: 70 } },
38
+ { id: "bug-09", category: "bug-fix", task: "Fix DAG executor not handling circular dependencies", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["circular deps"], acceptanceCriteria: ["Detection", "Error message"], minScore: 80 } },
39
+ { id: "bug-10", category: "bug-fix", task: "Fix replay engine missing events from crashed agents", expected: { files: ["runtime/ReplayEngine.ts"], tests: ["missing events"], acceptanceCriteria: ["Partial replay works", "Graceful degradation"], minScore: 70 } },
40
+
41
+ // Feature (10)
42
+ { id: "feat-01", category: "feature", task: "Implement agent priority-based routing", expected: { files: ["orchestration/AgentRouter.ts"], tests: ["priority routing"], acceptanceCriteria: ["Higher priority preferred", "Tie-breaking"], minScore: 70 } },
43
+ { id: "feat-02", category: "feature", task: "Add retry logic with exponential backoff", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["retry logic"], acceptanceCriteria: ["Exponential backoff", "Max retries"], minScore: 70 } },
44
+ { id: "feat-03", category: "feature", task: "Implement agent health monitoring", expected: { files: ["orchestration/registry/"], tests: ["health check"], acceptanceCriteria: ["Periodic checks", "Unhealthy agents disabled"], minScore: 60 } },
45
+ { id: "feat-04", category: "feature", task: "Add task result caching", expected: { files: ["orchestration/"], tests: ["caching"], acceptanceCriteria: ["Cache hit", "TTL support"], minScore: 60 } },
46
+ { id: "feat-05", category: "feature", task: "Implement conversation context compression", expected: { files: ["memory/ContextCompressor.ts"], tests: ["compression"], acceptanceCriteria: ["50%+ compression", "No info loss"], minScore: 70 } },
47
+ { id: "feat-06", category: "feature", task: "Add agent capability discovery", expected: { files: ["orchestration/registry/"], tests: ["capability discovery"], acceptanceCriteria: ["Auto-detect capabilities", "Update registry"], minScore: 60 } },
48
+ { id: "feat-07", category: "feature", task: "Implement task dependency visualization", expected: { files: ["orchestration/"], tests: ["visualization"], acceptanceCriteria: ["DAG output", "Mermaid format"], minScore: 50 } },
49
+ { id: "feat-08", category: "feature", task: "Add cost tracking per task", expected: { files: ["evaluation/"], tests: ["cost tracking"], acceptanceCriteria: ["Token count", "Cost estimate"], minScore: 60 } },
50
+ { id: "feat-09", category: "feature", task: "Implement agent load balancing", expected: { files: ["orchestration/AgentRouter.ts"], tests: ["load balancing"], acceptanceCriteria: ["Even distribution", "No overload"], minScore: 60 } },
51
+ { id: "feat-10", category: "feature", task: "Add execution trace export to JSON", expected: { files: ["runtime/"], tests: ["export"], acceptanceCriteria: ["Valid JSON", "Complete trace"], minScore: 60 } },
52
+
53
+ // Architecture (10)
54
+ { id: "arch-01", category: "architecture", task: "Review and optimize module dependency graph", expected: { files: ["docs/"], tests: ["dependency review"], acceptanceCriteria: ["No circular deps", "Clean layering"], minScore: 70 } },
55
+ { id: "arch-02", category: "architecture", task: "Design plugin system for custom agents", expected: { files: ["orchestration/"], tests: ["plugin system"], acceptanceCriteria: ["Plugin interface", "Dynamic loading"], minScore: 60 } },
56
+ { id: "arch-03", category: "architecture", task: "Implement event-driven architecture for agent communication", expected: { files: ["runtime/EventBus.ts"], tests: ["event-driven"], acceptanceCriteria: ["Pub/sub", "Decoupled agents"], minScore: 70 } },
57
+ { id: "arch-04", category: "architecture", task: "Design scalable task queue with priority support", expected: { files: ["orchestration/"], tests: ["task queue"], acceptanceCriteria: ["Priority ordering", "Persistence"], minScore: 70 } },
58
+ { id: "arch-05", category: "architecture", task: "Implement configuration validation layer", expected: { files: ["config/"], tests: ["config validation"], acceptanceCriteria: ["Schema validation", "Error messages"], minScore: 60 } },
59
+ { id: "arch-06", category: "architecture", task: "Design multi-tenant agent isolation", expected: { files: ["orchestration/"], tests: ["isolation"], acceptanceCriteria: ["Tenant separation", "No cross-talk"], minScore: 60 } },
60
+ { id: "arch-07", category: "architecture", task: "Implement graceful degradation for agent failures", expected: { files: ["orchestration/"], tests: ["degradation"], acceptanceCriteria: ["Fallback agents", "Reduced capability"], minScore: 70 } },
61
+ { id: "arch-08", category: "architecture", task: "Design audit trail for all agent actions", expected: { files: ["runtime/"], tests: ["audit trail"], acceptanceCriteria: ["Complete logging", "Tamper-proof"], minScore: 70 } },
62
+ { id: "arch-09", category: "architecture", task: "Implement rate limiting for API calls", expected: { files: ["engine/"], tests: ["rate limiting"], acceptanceCriteria: ["Token bucket", "Graceful queuing"], minScore: 60 } },
63
+ { id: "arch-10", category: "architecture", task: "Design horizontal scaling strategy", expected: { files: ["docs/"], tests: ["scaling"], acceptanceCriteria: ["Stateless design", "Load balancer compatible"], minScore: 50 } },
64
+
65
+ // Recovery (10)
66
+ { id: "recv-01", category: "recovery", task: "Recover from agent timeout during execution", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["timeout recovery"], acceptanceCriteria: ["Clean timeout", "Retry or skip"], minScore: 70 } },
67
+ { id: "recv-02", category: "recovery", task: "Recover from network failure during API call", expected: { files: ["engine/"], tests: ["network recovery"], acceptanceCriteria: ["Retry with backoff", "Error reported"], minScore: 70 } },
68
+ { id: "recv-03", category: "recovery", task: "Recover from corrupted event log", expected: { files: ["runtime/EventBus.ts"], tests: ["corrupt log"], acceptanceCriteria: ["Partial recovery", "Error logged"], minScore: 70 } },
69
+ { id: "recv-04", category: "recovery", task: "Recover from agent crash mid-task", expected: { files: ["orchestration/"], tests: ["crash recovery"], acceptanceCriteria: ["Task re-assigned", "No data loss"], minScore: 70 } },
70
+ { id: "recv-05", category: "recovery", task: "Recover from disk full during logging", expected: { files: ["engine/StructuredLogger.ts"], tests: ["disk full"], acceptanceCriteria: ["Graceful degradation", "In-memory fallback"], minScore: 60 } },
71
+ { id: "recv-06", category: "recovery", task: "Recover from invalid AST in command", expected: { files: ["sandbox/ExecutionSandbox.ts"], tests: ["invalid AST"], acceptanceCriteria: ["Validation error", "No crash"], minScore: 70 } },
72
+ { id: "recv-07", category: "recovery", task: "Recover from reviewer producing invalid score", expected: { files: ["orchestration/ReviewerAgent.ts"], tests: ["invalid score"], acceptanceCriteria: ["Score clamped", "Default to FAIL"], minScore: 70 } },
73
+ { id: "recv-08", category: "recovery", task: "Recover from DAG with missing dependencies", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["missing deps"], acceptanceCriteria: ["Error message", "No infinite loop"], minScore: 80 } },
74
+ { id: "recv-09", category: "recovery", task: "Recover from memory pressure during large DAG", expected: { files: ["orchestration/DAGExecutor.ts"], tests: ["memory pressure"], acceptanceCriteria: ["Batch execution", "No OOM"], minScore: 60 } },
75
+ { id: "recv-10", category: "recovery", task: "Recover from concurrent modification of agent registry", expected: { files: ["orchestration/registry/AgentRegistry.ts"], tests: ["concurrent mod"], acceptanceCriteria: ["No corruption", "Consistent state"], minScore: 70 } },
76
+ ];
77
+
78
+ export function getBenchmarksByCategory(category: string): BenchmarkTask[] {
79
+ return BENCHMARK_DATASET.filter(t => t.category === category);
80
+ }
81
+
82
+ export function getBenchmarkById(id: string): BenchmarkTask | undefined {
83
+ return BENCHMARK_DATASET.find(t => t.id === id);
84
+ }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * RealWorldBenchmark — 50 real-world tasks with difficulty tiers.
3
+ */
4
+ export type Difficulty = "L1" | "L2" | "L3" | "L4";
5
+ export type Category = "self-development" | "bug-fix" | "feature-delivery" | "adversarial" | "exploratory";
6
+
7
+ export interface RealWorldTask {
8
+ id: string;
9
+ category: Category;
10
+ difficulty: Difficulty;
11
+ task: string;
12
+ expected: {
13
+ outputs: string[];
14
+ tests: string[];
15
+ acceptanceCriteria: string[];
16
+ };
17
+ }
18
+
19
+ export const REAL_WORLD_BENCHMARKS: RealWorldTask[] = [
20
+ // === Self Development (10) ===
21
+ { id: "rw-01", category: "self-development", difficulty: "L2", task: "Add plugin loading system to Agent Hive CLI", expected: { outputs: ["src/plugins/PluginLoader.ts"], tests: ["plugin load", "plugin not found"], acceptanceCriteria: ["Dynamic plugin import", "Error on missing plugin"] } },
22
+ { id: "rw-02", category: "self-development", difficulty: "L3", task: "Implement config validation with schema for .agent-hive/config.json", expected: { outputs: ["src/config/ConfigValidator.ts"], tests: ["valid config", "invalid config", "missing fields"], acceptanceCriteria: ["Schema validation", "Descriptive errors"] } },
23
+ { id: "rw-03", category: "self-development", difficulty: "L2", task: "Add workflow DSL parser for task definitions", expected: { outputs: ["src/workflow/WorkflowDSL.ts"], tests: ["parse simple", "parse complex"], acceptanceCriteria: ["DSL syntax", "Error on invalid"] } },
24
+ { id: "rw-04", category: "self-development", difficulty: "L3", task: "Build replay visualization showing agent message flow", expected: { outputs: ["src/runtime/ReplayVisualizer.ts"], tests: ["generate mermaid", "generate timeline"], acceptanceCriteria: ["Mermaid output", "Timeline output"] } },
25
+ { id: "rw-05", category: "self-development", difficulty: "L2", task: "Add task dashboard showing active/completed/failed tasks", expected: { outputs: ["src/commands/dashboard.ts"], tests: ["show active", "show completed"], acceptanceCriteria: ["Task counts", "Status display"] } },
26
+ { id: "rw-06", category: "self-development", difficulty: "L1", task: "Add --json output flag to all CLI commands", expected: { outputs: ["src/commands/cli.ts"], tests: ["json output", "default output"], acceptanceCriteria: ["Valid JSON", "All commands supported"] } },
27
+ { id: "rw-07", category: "self-development", difficulty: "L4", task: "Implement hot-reload for agent configurations", expected: { outputs: ["src/orchestration/registry/HotReloader.ts"], tests: ["reload on change", "no restart"], acceptanceCriteria: ["File watcher", "Config update"] } },
28
+ { id: "rw-08", category: "self-development", difficulty: "L2", task: "Add agent performance profiling per task", expected: { outputs: ["src/evaluation/AgentProfiler.ts"], tests: ["profile task", "aggregate stats"], acceptanceCriteria: ["Per-agent stats", "Duration tracking"] } },
29
+ { id: "rw-09", category: "self-development", difficulty: "L3", task: "Implement task priority queue with weighted scheduling", expected: { outputs: ["src/orchestration/TaskQueue.ts"], tests: ["priority order", "weight balance"], acceptanceCriteria: ["Priority respected", "Fair scheduling"] } },
30
+ { id: "rw-10", category: "self-development", difficulty: "L1", task: "Add version check command showing all component versions", expected: { outputs: ["src/commands/version.ts"], tests: ["show versions"], acceptanceCriteria: ["All components listed"] } },
31
+
32
+ // === Bug Fix (10) ===
33
+ { id: "rw-11", category: "bug-fix", difficulty: "L2", task: "Fix Windows path separator in log output (backslash vs forward slash)", expected: { outputs: ["src/engine/ResultNormalizer.ts"], tests: ["windows path normalized"], acceptanceCriteria: ["Consistent path format"] } },
34
+ { id: "rw-12", category: "bug-fix", difficulty: "L3", task: "Fix CLI hanging when OpenAI SDK keeps event loop alive", expected: { outputs: ["src/commands/cli.ts"], tests: ["clean exit"], acceptanceCriteria: ["Process exits after command"] } },
35
+ { id: "rw-13", category: "bug-fix", difficulty: "L2", task: "Fix EventBus file write race condition on concurrent publishes", expected: { outputs: ["src/runtime/EventBus.ts"], tests: ["concurrent write"], acceptanceCriteria: ["No data corruption"] } },
36
+ { id: "rw-14", category: "bug-fix", difficulty: "L1", task: "Fix --version flag being treated as task instead of command", expected: { outputs: ["src/commands/cli.ts"], tests: ["--version works"], acceptanceCriteria: ["Shows version, not task"] } },
37
+ { id: "rw-15", category: "bug-fix", difficulty: "L3", task: "Fix DAG executor infinite loop when all tasks have unmet dependencies", expected: { outputs: ["src/orchestration/DAGExecutor.ts"], tests: ["deadlock detection"], acceptanceCriteria: ["Error on deadlock"] } },
38
+ { id: "rw-16", category: "bug-fix", difficulty: "L2", task: "Fix reviewer accepting empty string output as valid", expected: { outputs: ["src/orchestration/ReviewerAgent.ts"], tests: ["empty rejected"], acceptanceCriteria: ["Score < 60 for empty"] } },
39
+ { id: "rw-17", category: "bug-fix", difficulty: "L1", task: "Fix missing .agent-hive directory causing crash on first run", expected: { outputs: ["src/commands/cli.ts"], tests: ["auto create dirs"], acceptanceCriteria: ["No crash, dirs created"] } },
40
+ { id: "rw-18", category: "bug-fix", difficulty: "L3", task: "Fix sandbox not detecting pipe character in command name", expected: { outputs: ["src/sandbox/ExecutionSandbox.ts"], tests: ["pipe rejected"], acceptanceCriteria: ["| in cmd rejected"] } },
41
+ { id: "rw-19", category: "bug-fix", difficulty: "L2", task: "Fix memory search returning results from wrong project", expected: { outputs: ["src/memory/MemorySearch.ts"], tests: ["project scoping"], acceptanceCriteria: ["Results filtered by project"] } },
42
+ { id: "rw-20", category: "bug-fix", difficulty: "L1", task: "Fix doctor command not checking API connectivity", expected: { outputs: ["src/commands/cli.ts"], tests: ["api check"], acceptanceCriteria: ["API status shown"] } },
43
+
44
+ // === Feature Delivery (10) ===
45
+ { id: "rw-21", category: "feature-delivery", difficulty: "L3", task: "Implement agent template system for creating new agents", expected: { outputs: ["src/orchestration/templates/AgentTemplate.ts"], tests: ["create from template", "custom template"], acceptanceCriteria: ["Template loading", "Agent creation"] } },
46
+ { id: "rw-22", category: "feature-delivery", difficulty: "L2", task: "Add workflow template library (code-review, bug-fix, feature)", expected: { outputs: ["src/orchestration/templates/WorkflowTemplate.ts"], tests: ["load template", "apply template"], acceptanceCriteria: ["Template library", "DAG generation"] } },
47
+ { id: "rw-23", category: "feature-delivery", difficulty: "L3", task: "Implement CLI extension system for custom commands", expected: { outputs: ["src/commands/ExtensionLoader.ts"], tests: ["load extension", "register command"], acceptanceCriteria: ["Dynamic commands", "Error handling"] } },
48
+ { id: "rw-24", category: "feature-delivery", difficulty: "L4", task: "Build plugin marketplace listing available plugins", expected: { outputs: ["src/plugins/Marketplace.ts"], tests: ["list plugins", "install plugin"], acceptanceCriteria: ["Plugin registry", "Install flow"] } },
49
+ { id: "rw-25", category: "feature-delivery", difficulty: "L2", task: "Add task export to JSON/CSV formats", expected: { outputs: ["src/commands/export.ts"], tests: ["export json", "export csv"], acceptanceCriteria: ["Valid formats", "All fields"] } },
50
+ { id: "rw-26", category: "feature-delivery", difficulty: "L3", task: "Implement agent-to-agent direct messaging", expected: { outputs: ["src/orchestration/AgentMessenger.ts"], tests: ["send message", "receive message"], acceptanceCriteria: ["Direct channel", "Delivery confirmation"] } },
51
+ { id: "rw-27", category: "feature-delivery", difficulty: "L2", task: "Add execution cost estimation before running tasks", expected: { outputs: ["src/evaluation/CostEstimator.ts"], tests: ["estimate tokens", "estimate cost"], acceptanceCriteria: ["Token estimate", "Cost estimate"] } },
52
+ { id: "rw-28", category: "feature-delivery", difficulty: "L1", task: "Add dry-run mode showing what would execute without running", expected: { outputs: ["src/commands/cli.ts"], tests: ["dry run output"], acceptanceCriteria: ["Plan shown", "No execution"] } },
53
+ { id: "rw-29", category: "feature-delivery", difficulty: "L3", task: "Implement task scheduling with cron-like syntax", expected: { outputs: ["src/orchestration/TaskScheduler.ts"], tests: ["schedule task", "cron parse"], acceptanceCriteria: ["Cron syntax", "Auto-trigger"] } },
54
+ { id: "rw-30", category: "feature-delivery", difficulty: "L2", task: "Add agent capability auto-discovery from execution history", expected: { outputs: ["src/orchestration/registry/CapabilityDiscovery.ts"], tests: ["discover caps", "update registry"], acceptanceCriteria: ["Auto-detect", "Registry update"] } },
55
+
56
+ // === Adversarial (10) ===
57
+ { id: "rw-31", category: "adversarial", difficulty: "L3", task: "Detect and reject task that claims success but produces no output", expected: { outputs: ["src/orchestration/ReviewerAgent.ts"], tests: ["fake success detected"], acceptanceCriteria: ["Empty output = FAIL"] } },
58
+ { id: "rw-32", category: "adversarial", difficulty: "L4", task: "Detect task that produces fake test results", expected: { outputs: ["src/evaluation/FakeTestDetector.ts"], tests: ["fake test detected"], acceptanceCriteria: ["Test output validation"] } },
59
+ { id: "rw-33", category: "adversarial", difficulty: "L3", task: "Detect task that references non-existent files as output", expected: { outputs: ["src/evaluation/OutputValidator.ts"], tests: ["missing file detected"], acceptanceCriteria: ["File existence check"] } },
60
+ { id: "rw-34", category: "adversarial", difficulty: "L2", task: "Detect task that produces incorrect logic (wrong algorithm)", expected: { outputs: ["src/evaluation/LogicValidator.ts"], tests: ["logic error detected"], acceptanceCriteria: ["Output correctness"] } },
61
+ { id: "rw-35", category: "adversarial", difficulty: "L3", task: "Detect judge collusion with reviewer (always same decision)", expected: { outputs: ["src/evaluation/CollusionDetector.ts"], tests: ["collusion detected"], acceptanceCriteria: ["Independence check"] } },
62
+ { id: "rw-36", category: "adversarial", difficulty: "L2", task: "Detect agent that takes credit for another agent's work", expected: { outputs: ["src/evaluation/AttributionChecker.ts"], tests: ["attribution verified"], acceptanceCriteria: ["Agent attribution"] } },
63
+ { id: "rw-37", category: "adversarial", difficulty: "L4", task: "Detect task that passes tests but has hidden security vulnerability", expected: { outputs: ["src/evaluation/SecurityScanner.ts"], tests: ["vuln detected"], acceptanceCriteria: ["Security pattern check"] } },
64
+ { id: "rw-38", category: "adversarial", difficulty: "L2", task: "Detect task that modifies benchmark files to pass", expected: { outputs: ["src/evaluation/BenchmarkGuard.ts"], tests: ["benchmark tamper detected"], acceptanceCriteria: ["Checksum verification"] } },
65
+ { id: "rw-39", category: "adversarial", difficulty: "L3", task: "Detect task that times out but reports success", expected: { outputs: ["src/evaluation/TimeoutValidator.ts"], tests: ["timeout success detected"], acceptanceCriteria: ["Time consistency"] } },
66
+ { id: "rw-40", category: "adversarial", difficulty: "L1", task: "Detect task with empty instruction", expected: { outputs: ["src/sandbox/ExecutionSandbox.ts"], tests: ["empty instruction rejected"], acceptanceCriteria: ["Validation error"] } },
67
+
68
+ // === Exploratory (10) ===
69
+ { id: "rw-41", category: "exploratory", difficulty: "L2", task: "Explore: Can Agent Hive refactor its own Planner?", expected: { outputs: ["docs/self-refactor-report.md"], tests: ["planner analysis"], acceptanceCriteria: ["Analysis complete", "Recommendations"] } },
70
+ { id: "rw-42", category: "exploratory", difficulty: "L3", task: "Explore: What happens when all agents fail simultaneously?", expected: { outputs: ["docs/all-fail-scenario.md"], tests: ["all fail handled"], acceptanceCriteria: ["Graceful degradation"] } },
71
+ { id: "rw-43", category: "exploratory", difficulty: "L2", task: "Explore: Can we add a new agent type without code changes?", expected: { outputs: ["docs/dynamic-agent-report.md"], tests: ["dynamic agent"], acceptanceCriteria: ["Config-based agent"] } },
72
+ { id: "rw-44", category: "exploratory", difficulty: "L3", task: "Explore: Performance characteristics under 100 concurrent tasks", expected: { outputs: ["docs/performance-report.md"], tests: ["load test"], acceptanceCriteria: ["No crash", "Metrics collected"] } },
73
+ { id: "rw-45", category: "exploratory", difficulty: "L1", task: "Explore: What CLI commands do users actually use?", expected: { outputs: ["docs/usage-analysis.md"], tests: ["usage tracking"], acceptanceCriteria: ["Command frequency"] } },
74
+ { id: "rw-46", category: "exploratory", difficulty: "L4", task: "Explore: Can Agent Hive generate its own test suite?", expected: { outputs: ["docs/auto-test-report.md"], tests: ["generated tests"], acceptanceCriteria: ["Test generation", "Tests pass"] } },
75
+ { id: "rw-47", category: "exploratory", difficulty: "L2", task: "Explore: What is the optimal number of agents for a task?", expected: { outputs: ["docs/agent-scaling-report.md"], tests: ["scaling analysis"], acceptanceCriteria: ["Recommendation"] } },
76
+ { id: "rw-48", category: "exploratory", difficulty: "L3", task: "Explore: Can replay data be used to train better routers?", expected: { outputs: ["docs/replay-training-report.md"], tests: ["training analysis"], acceptanceCriteria: ["Training feasibility"] } },
77
+ { id: "rw-49", category: "exploratory", difficulty: "L1", task: "Explore: What error messages do users see most often?", expected: { outputs: ["docs/error-analysis.md"], tests: ["error frequency"], acceptanceCriteria: ["Top errors listed"] } },
78
+ { id: "rw-50", category: "exploratory", difficulty: "L3", task: "Explore: Can Agent Hive work with non-OpenAI providers?", expected: { outputs: ["docs/provider-compat-report.md"], tests: ["provider test"], acceptanceCriteria: ["Compatibility matrix"] } },
79
+ ];
80
+
81
+ export function getByCategory(cat: Category): RealWorldTask[] {
82
+ return REAL_WORLD_BENCHMARKS.filter(t => t.category === cat);
83
+ }
84
+
85
+ export function getByDifficulty(diff: Difficulty): RealWorldTask[] {
86
+ return REAL_WORLD_BENCHMARKS.filter(t => t.difficulty === diff);
87
+ }
88
+
89
+ export function getById(id: string): RealWorldTask | undefined {
90
+ return REAL_WORLD_BENCHMARKS.find(t => t.id === id);
91
+ }
@@ -0,0 +1,171 @@
1
+ /**
2
+ * RealWorldRunner — runs real-world benchmarks through the full orchestration pipeline.
3
+ */
4
+ import { RealWorldTask, REAL_WORLD_BENCHMARKS, Difficulty } from "./RealWorldBenchmark";
5
+ import { DecisionTraceCollector, DecisionTrace } from "./DecisionTrace";
6
+ import { Planner } from "../orchestration/Planner";
7
+ import { AgentRouter } from "../orchestration/AgentRouter";
8
+ import { AgentRegistry } from "../orchestration/registry/AgentRegistry";
9
+ import { ReviewerAgent } from "../orchestration/ReviewerAgent";
10
+ import { JudgeAgent } from "../orchestration/JudgeAgent";
11
+ import { Agent, Task, TaskResult, ReviewResult, JudgeResult } from "../orchestration/contracts/Agent";
12
+
13
+ export interface SuccessCriteria {
14
+ implementation: boolean;
15
+ testsPassed: boolean;
16
+ reviewerApproved: boolean;
17
+ judgeApproved: boolean;
18
+ }
19
+
20
+ export interface RealWorldResult {
21
+ taskId: string;
22
+ category: string;
23
+ difficulty: Difficulty;
24
+ success: boolean;
25
+ criteria: SuccessCriteria;
26
+ plannerScore: number;
27
+ routerScore: number;
28
+ reviewScore: number;
29
+ judgeScore: number;
30
+ executionTimeMs: number;
31
+ decisionTraces: DecisionTrace[];
32
+ }
33
+
34
+ export interface RealWorldMetrics {
35
+ taskCompletionRate: number;
36
+ taskSuccessRate: number;
37
+ reviewerAccuracy: number;
38
+ judgeAccuracy: number;
39
+ retryRate: number;
40
+ failureRate: number;
41
+ averageExecutionTimeMs: number;
42
+ difficultyBreakdown: Record<Difficulty, { total: number; passed: number; rate: number }>;
43
+ }
44
+
45
+ export class RealWorldRunner {
46
+ private planner: Planner;
47
+ private router: AgentRouter;
48
+ private reviewer: ReviewerAgent;
49
+ private judge: JudgeAgent;
50
+ private traceCollector: DecisionTraceCollector;
51
+
52
+ constructor(registry: AgentRegistry) {
53
+ this.planner = new Planner();
54
+ this.router = new AgentRouter(registry);
55
+ this.reviewer = new ReviewerAgent();
56
+ this.judge = new JudgeAgent();
57
+ this.traceCollector = new DecisionTraceCollector();
58
+ }
59
+
60
+ async runTask(task: RealWorldTask): Promise<RealWorldResult> {
61
+ const startTime = Date.now();
62
+ const traceId = `rw-${task.id}`;
63
+
64
+ // 1. Plan
65
+ const plan = this.planner.plan(task.task);
66
+ this.traceCollector.record({
67
+ traceId, agent: "planner", decision: `Split into ${plan.length} tasks`,
68
+ rationale: `Task type detection: ${task.task.slice(0, 50)}`, confidence: 0.8, timestamp: Date.now(),
69
+ });
70
+ const plannerScore = this.evaluatePlan(plan, task);
71
+
72
+ // 2. Route
73
+ let routerScore = 100;
74
+ for (const t of plan) {
75
+ const route = this.router.route(t);
76
+ if (!route.assignedAgent) routerScore -= 20;
77
+ this.traceCollector.record({
78
+ traceId, agent: "router", decision: `Route ${t.id} → ${route.assignedAgent?.id || "none"}`,
79
+ rationale: route.reason, confidence: route.assignedAgent ? 0.9 : 0.1, timestamp: Date.now(),
80
+ });
81
+ }
82
+ routerScore = Math.max(0, routerScore);
83
+
84
+ // 3. Execute (simulated)
85
+ const result: TaskResult = {
86
+ taskId: task.id, agentId: "multi-agent", success: true,
87
+ output: `Real-world output for: ${task.task}`, durationMs: Date.now() - startTime + 20,
88
+ };
89
+
90
+ // 4. Review
91
+ const review = await this.reviewer.review(result);
92
+ this.traceCollector.record({
93
+ traceId, agent: "reviewer", decision: review.approved ? "APPROVE" : "REJECT",
94
+ rationale: `Score: ${review.score}, Findings: ${review.findings.length}`, confidence: review.score / 100, timestamp: Date.now(),
95
+ });
96
+
97
+ // 5. Judge
98
+ const judgeResult = this.judge.judge(result, review);
99
+ this.traceCollector.record({
100
+ traceId, agent: "judge", decision: judgeResult.accepted ? "ACCEPT" : "REJECT",
101
+ rationale: judgeResult.reason, confidence: judgeResult.score / 100, timestamp: Date.now(),
102
+ });
103
+
104
+ // 6. Success criteria
105
+ const criteria: SuccessCriteria = {
106
+ implementation: result.success,
107
+ testsPassed: result.success,
108
+ reviewerApproved: review.approved,
109
+ judgeApproved: judgeResult.accepted,
110
+ };
111
+ const success = criteria.implementation && criteria.testsPassed && criteria.reviewerApproved && criteria.judgeApproved;
112
+
113
+ return {
114
+ taskId: task.id,
115
+ category: task.category,
116
+ difficulty: task.difficulty,
117
+ success,
118
+ criteria,
119
+ plannerScore,
120
+ routerScore,
121
+ reviewScore: review.score,
122
+ judgeScore: judgeResult.score,
123
+ executionTimeMs: Date.now() - startTime,
124
+ decisionTraces: this.traceCollector.getByTraceId(traceId),
125
+ };
126
+ }
127
+
128
+ async runAll(): Promise<{ results: RealWorldResult[]; metrics: RealWorldMetrics }> {
129
+ const results: RealWorldResult[] = [];
130
+ for (const task of REAL_WORLD_BENCHMARKS) {
131
+ results.push(await this.runTask(task));
132
+ }
133
+ return { results, metrics: this.computeMetrics(results) };
134
+ }
135
+
136
+ private evaluatePlan(plan: Task[], task: RealWorldTask): number {
137
+ let score = 100;
138
+ if (plan.length > 6) score -= (plan.length - 6) * 10;
139
+ if (plan.length === 1 && task.task.length > 50) score -= 20;
140
+ if (!plan.some(t => t.dependencies.length > 0) && plan.length > 1) score -= 15;
141
+ return Math.max(0, score);
142
+ }
143
+
144
+ private computeMetrics(results: RealWorldResult[]): RealWorldMetrics {
145
+ const n = results.length || 1;
146
+ const diffBreakdown: Record<Difficulty, { total: number; passed: number; rate: number }> = {
147
+ L1: { total: 0, passed: 0, rate: 0 },
148
+ L2: { total: 0, passed: 0, rate: 0 },
149
+ L3: { total: 0, passed: 0, rate: 0 },
150
+ L4: { total: 0, passed: 0, rate: 0 },
151
+ };
152
+ for (const r of results) {
153
+ diffBreakdown[r.difficulty].total++;
154
+ if (r.success) diffBreakdown[r.difficulty].passed++;
155
+ }
156
+ for (const d of ["L1", "L2", "L3", "L4"] as Difficulty[]) {
157
+ diffBreakdown[d].rate = diffBreakdown[d].total > 0 ? diffBreakdown[d].passed / diffBreakdown[d].total : 0;
158
+ }
159
+
160
+ return {
161
+ taskCompletionRate: results.filter(r => r.criteria.implementation).length / n,
162
+ taskSuccessRate: results.filter(r => r.success).length / n,
163
+ reviewerAccuracy: results.filter(r => r.criteria.reviewerApproved === r.success).length / n,
164
+ judgeAccuracy: results.filter(r => r.criteria.judgeApproved === r.success).length / n,
165
+ retryRate: 0,
166
+ failureRate: results.filter(r => !r.success).length / n,
167
+ averageExecutionTimeMs: results.reduce((s, r) => s + r.executionTimeMs, 0) / n,
168
+ difficultyBreakdown: diffBreakdown,
169
+ };
170
+ }
171
+ }
@@ -0,0 +1,156 @@
1
+ /**
2
+ * ValidationRunner — runs benchmarks and produces validation reports.
3
+ */
4
+ import { BenchmarkTask, BENCHMARK_DATASET } from "./GroundTruthDataset";
5
+ import { EvaluationMetricsCollector, EvaluationMetrics } from "./EvaluationMetrics";
6
+ import { Planner } from "../orchestration/Planner";
7
+ import { AgentRouter } from "../orchestration/AgentRouter";
8
+ import { AgentRegistry } from "../orchestration/registry/AgentRegistry";
9
+ import { EventBus } from "../runtime/EventBus";
10
+ import { DAGExecutor } from "../orchestration/DAGExecutor";
11
+ import { ReviewerAgent } from "../orchestration/ReviewerAgent";
12
+ import { JudgeAgent } from "../orchestration/JudgeAgent";
13
+ import { Agent, Task, TaskResult, ReviewResult, JudgeResult } from "../orchestration/contracts/Agent";
14
+
15
+ export interface ValidationResult {
16
+ taskId: string;
17
+ category: string;
18
+ task: string;
19
+ plannerScore: number;
20
+ routerScore: number;
21
+ reviewScore: number;
22
+ judgeScore: number;
23
+ passed: boolean;
24
+ durationMs: number;
25
+ }
26
+
27
+ export interface ValidationReport {
28
+ timestamp: string;
29
+ totalTasks: number;
30
+ passed: number;
31
+ failed: number;
32
+ metrics: EvaluationMetrics;
33
+ results: ValidationResult[];
34
+ }
35
+
36
+ export class ValidationRunner {
37
+ private planner: Planner;
38
+ private router: AgentRouter;
39
+ private dag: DAGExecutor;
40
+ private reviewer: ReviewerAgent;
41
+ private judge: JudgeAgent;
42
+ private metrics: EvaluationMetricsCollector;
43
+
44
+ constructor(agents: Map<string, Agent>, registry: AgentRegistry, eventBus: EventBus) {
45
+ this.planner = new Planner();
46
+ this.router = new AgentRouter(registry);
47
+ this.dag = new DAGExecutor(this.router, agents, eventBus);
48
+ this.reviewer = new ReviewerAgent();
49
+ this.judge = new JudgeAgent();
50
+ this.metrics = new EvaluationMetricsCollector();
51
+ }
52
+
53
+ /** Run a single benchmark task */
54
+ async runTask(benchmark: BenchmarkTask): Promise<ValidationResult> {
55
+ const startTime = Date.now();
56
+
57
+ // 1. Plan
58
+ const plan = this.planner.plan(benchmark.task);
59
+ const plannerScore = this.evaluatePlan(plan, benchmark);
60
+
61
+ // 2. Route
62
+ let routerScore = 100;
63
+ for (const task of plan) {
64
+ const route = this.router.route(task);
65
+ if (!route.assignedAgent) routerScore -= 20;
66
+ }
67
+ routerScore = Math.max(0, routerScore);
68
+
69
+ // 3. Execute (simulated)
70
+ const execResults = new Map<string, TaskResult>();
71
+ for (const task of plan) {
72
+ execResults.set(task.id, {
73
+ taskId: task.id,
74
+ agentId: "simulated",
75
+ success: true,
76
+ output: `Simulated output for: ${task.title}`,
77
+ durationMs: 10,
78
+ });
79
+ }
80
+
81
+ // 4. Review
82
+ const firstResult = Array.from(execResults.values())[0];
83
+ const review = await this.reviewer.review(firstResult);
84
+ const reviewScore = review.score;
85
+
86
+ // 5. Judge
87
+ const judgeResult = this.judge.judge(firstResult, review);
88
+ const judgeScore = judgeResult.score;
89
+
90
+ const durationMs = Date.now() - startTime;
91
+ const passed = judgeResult.accepted && plannerScore >= 50;
92
+
93
+ // Record metrics
94
+ this.metrics.record({
95
+ completed: true,
96
+ success: passed,
97
+ reviewCorrect: reviewScore >= benchmark.expected.minScore,
98
+ judgeCorrect: judgeResult.accepted === passed,
99
+ reviewFP: !passed && review.approved,
100
+ reviewFN: passed && !review.approved,
101
+ judgeIndependent: judgeResult.accepted !== review.approved,
102
+ retried: false,
103
+ failed: !passed,
104
+ executionTime: durationMs,
105
+ });
106
+
107
+ return {
108
+ taskId: benchmark.id,
109
+ category: benchmark.category,
110
+ task: benchmark.task,
111
+ plannerScore,
112
+ routerScore,
113
+ reviewScore,
114
+ judgeScore,
115
+ passed,
116
+ durationMs,
117
+ };
118
+ }
119
+
120
+ /** Run all benchmarks */
121
+ async runAll(): Promise<ValidationReport> {
122
+ const results: ValidationResult[] = [];
123
+ for (const benchmark of BENCHMARK_DATASET) {
124
+ results.push(await this.runTask(benchmark));
125
+ }
126
+
127
+ return {
128
+ timestamp: new Date().toISOString(),
129
+ totalTasks: results.length,
130
+ passed: results.filter(r => r.passed).length,
131
+ failed: results.filter(r => !r.passed).length,
132
+ metrics: this.metrics.compute(),
133
+ results,
134
+ };
135
+ }
136
+
137
+ private evaluatePlan(plan: Task[], benchmark: BenchmarkTask): number {
138
+ let score = 100;
139
+
140
+ // Over-splitting penalty
141
+ if (plan.length > 6) score -= (plan.length - 6) * 10;
142
+
143
+ // Under-splitting penalty
144
+ if (plan.length === 1 && benchmark.task.length > 50) score -= 30;
145
+
146
+ // Dependency correctness
147
+ const hasDeps = plan.some(t => t.dependencies.length > 0);
148
+ if (!hasDeps && plan.length > 1) score -= 20;
149
+
150
+ // Unique IDs
151
+ const ids = new Set(plan.map(t => t.id));
152
+ if (ids.size !== plan.length) score -= 30;
153
+
154
+ return Math.max(0, score);
155
+ }
156
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * AgentEvent — events related to agent lifecycle.
3
+ */
4
+
5
+ export interface AgentReceivedTask {
6
+ type: "AgentReceivedTask";
7
+ id: string;
8
+ traceId: string;
9
+ timestamp: number;
10
+ payload: { agentId: string; taskId: string; instruction: string };
11
+ }
12
+
13
+ export interface AgentPlanned {
14
+ type: "AgentPlanned";
15
+ id: string;
16
+ traceId: string;
17
+ timestamp: number;
18
+ payload: { agentId: string; plan: string; taskId: string };
19
+ }
20
+
21
+ export interface AgentExecuted {
22
+ type: "AgentExecuted";
23
+ id: string;
24
+ traceId: string;
25
+ timestamp: number;
26
+ payload: { agentId: string; taskId: string; output: string; exitCode: number; durationMs: number };
27
+ }
28
+
29
+ export interface AgentCompleted {
30
+ type: "AgentCompleted";
31
+ id: string;
32
+ traceId: string;
33
+ timestamp: number;
34
+ payload: { agentId: string; taskId: string; score: number };
35
+ }
36
+
37
+ export interface AgentFailed {
38
+ type: "AgentFailed";
39
+ id: string;
40
+ traceId: string;
41
+ timestamp: number;
42
+ payload: { agentId: string; taskId: string; error: string };
43
+ }
44
+
45
+ export type AgentEvent = AgentReceivedTask | AgentPlanned | AgentExecuted | AgentCompleted | AgentFailed;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * DecisionEvent — events related to agent decisions.
3
+ */
4
+
5
+ export interface DecisionEvent {
6
+ type: "DecisionMade";
7
+ id: string;
8
+ traceId: string;
9
+ timestamp: number;
10
+ payload: {
11
+ agentId: string;
12
+ decision: string;
13
+ reason: string;
14
+ confidence: number;
15
+ };
16
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * ExecutionEvent — events related to command execution.
3
+ */
4
+ import { CompiledCommand } from "../compiler/CommandCompiler";
5
+
6
+ export interface ExecutionStarted {
7
+ type: "ExecutionStarted";
8
+ id: string;
9
+ traceId: string;
10
+ timestamp: number;
11
+ payload: { command: string; args: string[] };
12
+ }
13
+
14
+ export interface ExecutionCompiled {
15
+ type: "ExecutionCompiled";
16
+ id: string;
17
+ traceId: string;
18
+ timestamp: number;
19
+ payload: { compiled: CompiledCommand };
20
+ }
21
+
22
+ export interface ExecutionCompleted {
23
+ type: "ExecutionCompleted";
24
+ id: string;
25
+ traceId: string;
26
+ timestamp: number;
27
+ payload: { stdout: string; stderr: string; exitCode: number; durationMs: number };
28
+ }
29
+
30
+ export interface ExecutionFailed {
31
+ type: "ExecutionFailed";
32
+ id: string;
33
+ traceId: string;
34
+ timestamp: number;
35
+ payload: { error: string; exitCode: number; durationMs: number };
36
+ }
37
+
38
+ export type ExecutionEvent = ExecutionStarted | ExecutionCompiled | ExecutionCompleted | ExecutionFailed;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * SystemEvent — system-level events.
3
+ */
4
+
5
+ export interface SystemEvent {
6
+ type: "SystemStarted" | "SystemShutdown" | "TaskSubmitted" | "TaskCompleted" | "TaskFailed";
7
+ id: string;
8
+ traceId: string;
9
+ timestamp: number;
10
+ payload: Record<string, unknown>;
11
+ }