@llm-dev-ops/agentics-cli 1.4.53 → 1.4.54

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 (325) hide show
  1. package/dist/bundled-agents/connector-hub-agents/package-lock.json +11697 -0
  2. package/dist/bundled-agents/connector-hub-agents/package.json +75 -0
  3. package/dist/bundled-agents/connector-hub-agents/tsconfig.build.json +22 -0
  4. package/dist/bundled-agents/connector-hub-agents/tsconfig.json +57 -0
  5. package/dist/bundled-agents/copilot-agents/functions/.gcloudignore +17 -0
  6. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.d.ts +14 -0
  7. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js +35 -0
  8. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/cors.js.map +1 -0
  9. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.d.ts +55 -0
  10. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js +40 -0
  11. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/envelope.js.map +1 -0
  12. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.d.ts +22 -0
  13. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js +38 -0
  14. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/health.js.map +1 -0
  15. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.d.ts +34 -0
  16. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js +186 -0
  17. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/index.js.map +1 -0
  18. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.d.ts +36 -0
  19. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js +121 -0
  20. package/dist/bundled-agents/copilot-agents/functions/dist/functions/src/router.js.map +1 -0
  21. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.d.ts +157 -0
  22. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js +948 -0
  23. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/config-validation-agent.js.map +1 -0
  24. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.d.ts +9 -0
  25. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js +27 -0
  26. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/config-validation/index.js.map +1 -0
  27. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
  28. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js +50 -0
  29. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/agent-span-wrapper.js.map +1 -0
  30. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.d.ts +214 -0
  31. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js +91 -0
  32. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/base-agent.js.map +1 -0
  33. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.d.ts +1166 -0
  34. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js +308 -0
  35. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/config-validation-schemas.js.map +1 -0
  36. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.d.ts +59 -0
  37. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js +62 -0
  38. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decision-event.js.map +1 -0
  39. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.d.ts +400 -0
  40. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js +113 -0
  41. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/decomposer-schemas.js.map +1 -0
  42. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.d.ts +250 -0
  43. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js +169 -0
  44. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/execution-graph.js.map +1 -0
  45. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.d.ts +17 -0
  46. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js +97 -0
  47. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/index.js.map +1 -0
  48. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
  49. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js +246 -0
  50. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intelligence-schemas.js.map +1 -0
  51. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.d.ts +1085 -0
  52. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js +218 -0
  53. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
  54. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.d.ts +949 -0
  55. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js +253 -0
  56. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
  57. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.d.ts +657 -0
  58. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js +205 -0
  59. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
  60. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.d.ts +285 -0
  61. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js +106 -0
  62. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/pipeline-schemas.js.map +1 -0
  63. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.d.ts +581 -0
  64. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js +136 -0
  65. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/planner-schemas.js.map +1 -0
  66. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.d.ts +791 -0
  67. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js +225 -0
  68. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/contracts/reflection-schemas.js.map +1 -0
  69. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.d.ts +120 -0
  70. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js +535 -0
  71. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/decomposer-agent.js.map +1 -0
  72. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.d.ts +9 -0
  73. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js +18 -0
  74. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/decomposer/index.js.map +1 -0
  75. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.d.ts +4 -0
  76. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js +9 -0
  77. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/index.js.map +1 -0
  78. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
  79. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
  80. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
  81. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.d.ts +10 -0
  82. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js +25 -0
  83. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/index.js.map +1 -0
  84. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
  85. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
  86. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
  87. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.d.ts +11 -0
  88. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js +25 -0
  89. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/meta-reasoner/telemetry.js.map +1 -0
  90. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.d.ts +6 -0
  91. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js +15 -0
  92. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/index.js.map +1 -0
  93. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
  94. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
  95. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
  96. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
  97. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
  98. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
  99. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.d.ts +73 -0
  100. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js +192 -0
  101. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/objective-clarifier/telemetry.js.map +1 -0
  102. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.d.ts +11 -0
  103. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js +25 -0
  104. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/index.js.map +1 -0
  105. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.d.ts +127 -0
  106. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js +483 -0
  107. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/planner-agent.js.map +1 -0
  108. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.d.ts +49 -0
  109. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js +125 -0
  110. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/ruvector-persistence.js.map +1 -0
  111. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.d.ts +73 -0
  112. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js +192 -0
  113. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/planner/telemetry.js.map +1 -0
  114. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.d.ts +11 -0
  115. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js +27 -0
  116. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/index.js.map +1 -0
  117. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.d.ts +122 -0
  118. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js +645 -0
  119. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/reflection-agent.js.map +1 -0
  120. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.d.ts +59 -0
  121. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js +156 -0
  122. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/ruvector-persistence.js.map +1 -0
  123. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.d.ts +88 -0
  124. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js +246 -0
  125. package/dist/bundled-agents/copilot-agents/functions/dist/services/agents/reflection/telemetry.js.map +1 -0
  126. package/dist/bundled-agents/copilot-agents/functions/index.js +4 -0
  127. package/dist/bundled-agents/copilot-agents/functions/jest.config.js +29 -0
  128. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.d.ts +14 -0
  129. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js +35 -0
  130. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/cors.js.map +1 -0
  131. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.d.ts +27 -0
  132. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js +21 -0
  133. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/envelope.js.map +1 -0
  134. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.d.ts +22 -0
  135. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js +38 -0
  136. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/health.js.map +1 -0
  137. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.d.ts +34 -0
  138. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js +174 -0
  139. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/index.js.map +1 -0
  140. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.d.ts +27 -0
  141. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js +107 -0
  142. package/dist/bundled-agents/copilot-agents/functions/lib/functions/src/router.js.map +1 -0
  143. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.d.ts +157 -0
  144. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js +941 -0
  145. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/config-validation-agent.js.map +1 -0
  146. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.d.ts +9 -0
  147. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js +27 -0
  148. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/config-validation/index.js.map +1 -0
  149. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.d.ts +23 -0
  150. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js +50 -0
  151. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/agent-span-wrapper.js.map +1 -0
  152. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.d.ts +185 -0
  153. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js +86 -0
  154. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/base-agent.js.map +1 -0
  155. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.d.ts +1081 -0
  156. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js +305 -0
  157. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/config-validation-schemas.js.map +1 -0
  158. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.d.ts +59 -0
  159. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js +62 -0
  160. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decision-event.js.map +1 -0
  161. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.d.ts +315 -0
  162. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js +110 -0
  163. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/decomposer-schemas.js.map +1 -0
  164. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.d.ts +250 -0
  165. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js +169 -0
  166. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/execution-graph.js.map +1 -0
  167. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.d.ts +16 -0
  168. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js +88 -0
  169. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/index.js.map +1 -0
  170. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.d.ts +1674 -0
  171. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js +246 -0
  172. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intelligence-schemas.js.map +1 -0
  173. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.d.ts +1000 -0
  174. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js +215 -0
  175. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/intent-classifier-schemas.js.map +1 -0
  176. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.d.ts +864 -0
  177. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js +250 -0
  178. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/meta-reasoner-schemas.js.map +1 -0
  179. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.d.ts +572 -0
  180. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js +202 -0
  181. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/objective-clarifier-schemas.js.map +1 -0
  182. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.d.ts +496 -0
  183. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js +133 -0
  184. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/planner-schemas.js.map +1 -0
  185. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.d.ts +706 -0
  186. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js +222 -0
  187. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/contracts/reflection-schemas.js.map +1 -0
  188. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.d.ts +107 -0
  189. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js +360 -0
  190. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/decomposer-agent.js.map +1 -0
  191. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.d.ts +9 -0
  192. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js +18 -0
  193. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/decomposer/index.js.map +1 -0
  194. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.d.ts +4 -0
  195. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js +9 -0
  196. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/index.js.map +1 -0
  197. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.d.ts +123 -0
  198. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js +609 -0
  199. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/intent-classifier/intent-classifier-agent.js.map +1 -0
  200. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.d.ts +10 -0
  201. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js +25 -0
  202. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/index.js.map +1 -0
  203. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.d.ts +111 -0
  204. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js +686 -0
  205. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/meta-reasoner-agent.js.map +1 -0
  206. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.d.ts +11 -0
  207. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js +25 -0
  208. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/meta-reasoner/telemetry.js.map +1 -0
  209. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.d.ts +6 -0
  210. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js +15 -0
  211. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/index.js.map +1 -0
  212. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.d.ts +126 -0
  213. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js +780 -0
  214. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/objective-clarifier-agent.js.map +1 -0
  215. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.d.ts +49 -0
  216. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js +125 -0
  217. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/ruvector-persistence.js.map +1 -0
  218. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.d.ts +73 -0
  219. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js +192 -0
  220. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/objective-clarifier/telemetry.js.map +1 -0
  221. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.d.ts +11 -0
  222. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js +25 -0
  223. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/index.js.map +1 -0
  224. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.d.ts +119 -0
  225. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js +421 -0
  226. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/planner-agent.js.map +1 -0
  227. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.d.ts +49 -0
  228. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js +125 -0
  229. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/ruvector-persistence.js.map +1 -0
  230. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.d.ts +73 -0
  231. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js +192 -0
  232. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/planner/telemetry.js.map +1 -0
  233. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.d.ts +11 -0
  234. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js +27 -0
  235. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/index.js.map +1 -0
  236. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.d.ts +122 -0
  237. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js +645 -0
  238. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/reflection-agent.js.map +1 -0
  239. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.d.ts +59 -0
  240. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js +156 -0
  241. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/ruvector-persistence.js.map +1 -0
  242. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.d.ts +88 -0
  243. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js +246 -0
  244. package/dist/bundled-agents/copilot-agents/functions/lib/services/agents/reflection/telemetry.js.map +1 -0
  245. package/dist/bundled-agents/copilot-agents/functions/package-lock.json +5473 -0
  246. package/dist/bundled-agents/copilot-agents/functions/package.json +40 -0
  247. package/dist/bundled-agents/copilot-agents/functions/src/claude.ts +71 -0
  248. package/dist/bundled-agents/copilot-agents/functions/src/cors.ts +36 -0
  249. package/dist/bundled-agents/copilot-agents/functions/src/envelope.ts +77 -0
  250. package/dist/bundled-agents/copilot-agents/functions/src/handler.test.ts +340 -0
  251. package/dist/bundled-agents/copilot-agents/functions/src/health.ts +53 -0
  252. package/dist/bundled-agents/copilot-agents/functions/src/index.ts +201 -0
  253. package/dist/bundled-agents/copilot-agents/functions/src/router.ts +148 -0
  254. package/dist/bundled-agents/copilot-agents/functions/tsconfig.json +31 -0
  255. package/dist/bundled-agents/copilot-agents/package-lock.json +11825 -0
  256. package/dist/bundled-agents/copilot-agents/package.json +5 -0
  257. package/dist/bundled-agents/governance-dashboard-agents/package-lock.json +8282 -0
  258. package/dist/bundled-agents/governance-dashboard-agents/package.json +13 -0
  259. package/dist/bundled-agents/orchestrator-agents/functions/contracts/index.js +590 -0
  260. package/dist/bundled-agents/orchestrator-agents/functions/index.js +442 -0
  261. package/dist/bundled-agents/orchestrator-agents/functions/test.js +325 -0
  262. package/dist/bundled-agents/orchestrator-agents/index.js +6 -0
  263. package/dist/bundled-agents/orchestrator-agents/package-lock.json +13254 -0
  264. package/dist/bundled-agents/orchestrator-agents/package.json +20 -0
  265. package/dist/bundled-agents/platform-agents/package-lock.json +1723 -0
  266. package/dist/bundled-agents/platform-agents/package.json +22 -0
  267. package/dist/bundled-agents/platform-agents/src/agents/decision-memo.ts +463 -0
  268. package/dist/bundled-agents/platform-agents/src/agents/decision.ts +234 -0
  269. package/dist/bundled-agents/platform-agents/src/agents/executive-summary.ts +229 -0
  270. package/dist/bundled-agents/platform-agents/src/agents/risk-score.ts +327 -0
  271. package/dist/bundled-agents/platform-agents/src/claude.ts +71 -0
  272. package/dist/bundled-agents/platform-agents/src/cors.ts +24 -0
  273. package/dist/bundled-agents/platform-agents/src/envelope.ts +37 -0
  274. package/dist/bundled-agents/platform-agents/src/health.ts +20 -0
  275. package/dist/bundled-agents/platform-agents/src/index.ts +171 -0
  276. package/dist/bundled-agents/platform-agents/src/router.ts +38 -0
  277. package/dist/bundled-agents/platform-agents/src/text-analysis.ts +238 -0
  278. package/dist/bundled-agents/platform-agents/tsconfig.json +19 -0
  279. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts +3 -0
  280. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.d.ts.map +1 -0
  281. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js +43 -0
  282. package/dist/bundled-agents/sentinel-agents/lib/agents/alert.js.map +1 -0
  283. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts +3 -0
  284. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.d.ts.map +1 -0
  285. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js +30 -0
  286. package/dist/bundled-agents/sentinel-agents/lib/agents/anomaly.js.map +1 -0
  287. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts +3 -0
  288. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.d.ts.map +1 -0
  289. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js +53 -0
  290. package/dist/bundled-agents/sentinel-agents/lib/agents/correlation.js.map +1 -0
  291. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts +3 -0
  292. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.d.ts.map +1 -0
  293. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js +51 -0
  294. package/dist/bundled-agents/sentinel-agents/lib/agents/drift.js.map +1 -0
  295. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts +3 -0
  296. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.d.ts.map +1 -0
  297. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js +36 -0
  298. package/dist/bundled-agents/sentinel-agents/lib/agents/rca.js.map +1 -0
  299. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts +2 -0
  300. package/dist/bundled-agents/sentinel-agents/lib/index.d.ts.map +1 -0
  301. package/dist/bundled-agents/sentinel-agents/lib/index.js +70 -0
  302. package/dist/bundled-agents/sentinel-agents/lib/index.js.map +1 -0
  303. package/dist/bundled-agents/sentinel-agents/package-lock.json +12591 -0
  304. package/dist/bundled-agents/sentinel-agents/package.json +62 -0
  305. package/dist/bundled-agents/sentinel-agents/src/agents/alert.ts +46 -0
  306. package/dist/bundled-agents/sentinel-agents/src/agents/anomaly.ts +33 -0
  307. package/dist/bundled-agents/sentinel-agents/src/agents/correlation.ts +56 -0
  308. package/dist/bundled-agents/sentinel-agents/src/agents/drift.ts +54 -0
  309. package/dist/bundled-agents/sentinel-agents/src/agents/rca.ts +38 -0
  310. package/dist/bundled-agents/sentinel-agents/src/claude.ts +71 -0
  311. package/dist/bundled-agents/sentinel-agents/src/index.ts +77 -0
  312. package/dist/bundled-agents/sentinel-agents/tsconfig.json +20 -0
  313. package/dist/pipeline/auto-chain.d.ts.map +1 -1
  314. package/dist/pipeline/auto-chain.js +52 -0
  315. package/dist/pipeline/auto-chain.js.map +1 -1
  316. package/dist/pipeline/phase2/phases/ddd-generator.d.ts.map +1 -1
  317. package/dist/pipeline/phase2/phases/ddd-generator.js +15 -1
  318. package/dist/pipeline/phase2/phases/ddd-generator.js.map +1 -1
  319. package/dist/pipeline/phase2/phases/sparc-specification.d.ts.map +1 -1
  320. package/dist/pipeline/phase2/phases/sparc-specification.js +9 -0
  321. package/dist/pipeline/phase2/phases/sparc-specification.js.map +1 -1
  322. package/dist/pipeline/phase3/phases/domain-codegen.d.ts.map +1 -1
  323. package/dist/pipeline/phase3/phases/domain-codegen.js +41 -0
  324. package/dist/pipeline/phase3/phases/domain-codegen.js.map +1 -1
  325. package/package.json +1 -1
@@ -0,0 +1,1674 @@
1
+ /**
2
+ * Phase 7: Intelligence & Expansion (Layer 2) - Signal Schemas
3
+ *
4
+ * DecisionEvent rules - Agents MUST emit:
5
+ * - hypothesis_signal
6
+ * - simulation_outcome_signal
7
+ * - confidence_delta_signal
8
+ *
9
+ * Role clarity:
10
+ * - Agents MAY: reason, simulate, explore
11
+ * - Agents MUST: emit signals, avoid final decisions
12
+ *
13
+ * Performance budgets:
14
+ * - MAX_TOKENS=2500
15
+ * - MAX_LATENCY_MS=5000
16
+ */
17
+ import { z } from 'zod';
18
+ /**
19
+ * Performance budget constants for Phase 7
20
+ */
21
+ export declare const PHASE7_PERFORMANCE_BUDGETS: {
22
+ readonly MAX_TOKENS: 2500;
23
+ readonly MAX_LATENCY_MS: 5000;
24
+ };
25
+ /**
26
+ * Hypothesis Signal Schema
27
+ *
28
+ * Emitted when the agent forms a hypothesis during reasoning.
29
+ * Hypotheses are exploratory - they NEVER constitute final decisions.
30
+ */
31
+ export declare const HypothesisSignalSchema: z.ZodObject<{
32
+ signal_type: z.ZodLiteral<"hypothesis_signal">;
33
+ hypothesis_id: z.ZodString;
34
+ /** The hypothesis statement */
35
+ statement: z.ZodString;
36
+ /** Domain/area the hypothesis relates to */
37
+ domain: z.ZodString;
38
+ /** Supporting evidence or reasoning */
39
+ supporting_evidence: z.ZodArray<z.ZodObject<{
40
+ evidence_id: z.ZodString;
41
+ description: z.ZodString;
42
+ weight: z.ZodNumber;
43
+ source: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ description: string;
46
+ weight: number;
47
+ evidence_id: string;
48
+ source?: string | undefined;
49
+ }, {
50
+ description: string;
51
+ weight: number;
52
+ evidence_id: string;
53
+ source?: string | undefined;
54
+ }>, "many">;
55
+ /** Counter-evidence or alternative explanations */
56
+ counter_evidence: z.ZodArray<z.ZodObject<{
57
+ evidence_id: z.ZodString;
58
+ description: z.ZodString;
59
+ weight: z.ZodNumber;
60
+ source: z.ZodOptional<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ description: string;
63
+ weight: number;
64
+ evidence_id: string;
65
+ source?: string | undefined;
66
+ }, {
67
+ description: string;
68
+ weight: number;
69
+ evidence_id: string;
70
+ source?: string | undefined;
71
+ }>, "many">;
72
+ /** Initial confidence before simulation */
73
+ initial_confidence: z.ZodNumber;
74
+ /** Conditions that would strengthen the hypothesis */
75
+ strengthening_conditions: z.ZodArray<z.ZodString, "many">;
76
+ /** Conditions that would weaken the hypothesis */
77
+ weakening_conditions: z.ZodArray<z.ZodString, "many">;
78
+ /** Related hypotheses (if exploring multiple paths) */
79
+ related_hypothesis_ids: z.ZodArray<z.ZodString, "many">;
80
+ /** Timestamp of hypothesis formation */
81
+ formed_at: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ domain: string;
84
+ statement: string;
85
+ signal_type: "hypothesis_signal";
86
+ hypothesis_id: string;
87
+ supporting_evidence: {
88
+ description: string;
89
+ weight: number;
90
+ evidence_id: string;
91
+ source?: string | undefined;
92
+ }[];
93
+ counter_evidence: {
94
+ description: string;
95
+ weight: number;
96
+ evidence_id: string;
97
+ source?: string | undefined;
98
+ }[];
99
+ initial_confidence: number;
100
+ strengthening_conditions: string[];
101
+ weakening_conditions: string[];
102
+ related_hypothesis_ids: string[];
103
+ formed_at: string;
104
+ }, {
105
+ domain: string;
106
+ statement: string;
107
+ signal_type: "hypothesis_signal";
108
+ hypothesis_id: string;
109
+ supporting_evidence: {
110
+ description: string;
111
+ weight: number;
112
+ evidence_id: string;
113
+ source?: string | undefined;
114
+ }[];
115
+ counter_evidence: {
116
+ description: string;
117
+ weight: number;
118
+ evidence_id: string;
119
+ source?: string | undefined;
120
+ }[];
121
+ initial_confidence: number;
122
+ strengthening_conditions: string[];
123
+ weakening_conditions: string[];
124
+ related_hypothesis_ids: string[];
125
+ formed_at: string;
126
+ }>;
127
+ export type HypothesisSignal = z.infer<typeof HypothesisSignalSchema>;
128
+ /**
129
+ * Simulation Outcome Signal Schema
130
+ *
131
+ * Emitted after simulating a scenario or testing a hypothesis.
132
+ * Simulations explore possibilities - they NEVER trigger actions.
133
+ */
134
+ export declare const SimulationOutcomeSignalSchema: z.ZodObject<{
135
+ signal_type: z.ZodLiteral<"simulation_outcome_signal">;
136
+ simulation_id: z.ZodString;
137
+ /** The hypothesis being tested (if applicable) */
138
+ hypothesis_id: z.ZodOptional<z.ZodString>;
139
+ /** What scenario was simulated */
140
+ scenario: z.ZodObject<{
141
+ name: z.ZodString;
142
+ description: z.ZodString;
143
+ initial_conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
144
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ name: string;
147
+ description: string;
148
+ initial_conditions: Record<string, unknown>;
149
+ parameters: Record<string, unknown>;
150
+ }, {
151
+ name: string;
152
+ description: string;
153
+ initial_conditions: Record<string, unknown>;
154
+ parameters: Record<string, unknown>;
155
+ }>;
156
+ /** Simulation outcome classification */
157
+ outcome: z.ZodEnum<["hypothesis_supported", "hypothesis_weakened", "hypothesis_refuted", "inconclusive", "unexpected_result", "simulation_error"]>;
158
+ /** Detailed results from the simulation */
159
+ results: z.ZodObject<{
160
+ primary_finding: z.ZodString;
161
+ secondary_findings: z.ZodArray<z.ZodString, "many">;
162
+ metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
163
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
164
+ artifact_id: z.ZodString;
165
+ type: z.ZodString;
166
+ description: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: string;
169
+ description: string;
170
+ artifact_id: string;
171
+ }, {
172
+ type: string;
173
+ description: string;
174
+ artifact_id: string;
175
+ }>, "many">>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ primary_finding: string;
178
+ secondary_findings: string[];
179
+ metrics?: Record<string, number> | undefined;
180
+ artifacts?: {
181
+ type: string;
182
+ description: string;
183
+ artifact_id: string;
184
+ }[] | undefined;
185
+ }, {
186
+ primary_finding: string;
187
+ secondary_findings: string[];
188
+ metrics?: Record<string, number> | undefined;
189
+ artifacts?: {
190
+ type: string;
191
+ description: string;
192
+ artifact_id: string;
193
+ }[] | undefined;
194
+ }>;
195
+ /** Confidence in the simulation outcome */
196
+ outcome_confidence: z.ZodNumber;
197
+ /** Resource usage during simulation */
198
+ resource_usage: z.ZodObject<{
199
+ tokens_used: z.ZodNumber;
200
+ latency_ms: z.ZodNumber;
201
+ within_budget: z.ZodBoolean;
202
+ }, "strip", z.ZodTypeAny, {
203
+ tokens_used: number;
204
+ latency_ms: number;
205
+ within_budget: boolean;
206
+ }, {
207
+ tokens_used: number;
208
+ latency_ms: number;
209
+ within_budget: boolean;
210
+ }>;
211
+ /** Recommendations for further exploration (NOT actions) */
212
+ exploration_recommendations: z.ZodArray<z.ZodObject<{
213
+ recommendation_id: z.ZodString;
214
+ type: z.ZodEnum<["additional_simulation", "hypothesis_refinement", "data_collection", "domain_expansion"]>;
215
+ description: z.ZodString;
216
+ priority: z.ZodNumber;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
219
+ description: string;
220
+ priority: number;
221
+ recommendation_id: string;
222
+ }, {
223
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
224
+ description: string;
225
+ priority: number;
226
+ recommendation_id: string;
227
+ }>, "many">;
228
+ /** Simulation completed timestamp */
229
+ completed_at: z.ZodString;
230
+ }, "strip", z.ZodTypeAny, {
231
+ signal_type: "simulation_outcome_signal";
232
+ simulation_id: string;
233
+ scenario: {
234
+ name: string;
235
+ description: string;
236
+ initial_conditions: Record<string, unknown>;
237
+ parameters: Record<string, unknown>;
238
+ };
239
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
240
+ results: {
241
+ primary_finding: string;
242
+ secondary_findings: string[];
243
+ metrics?: Record<string, number> | undefined;
244
+ artifacts?: {
245
+ type: string;
246
+ description: string;
247
+ artifact_id: string;
248
+ }[] | undefined;
249
+ };
250
+ outcome_confidence: number;
251
+ resource_usage: {
252
+ tokens_used: number;
253
+ latency_ms: number;
254
+ within_budget: boolean;
255
+ };
256
+ exploration_recommendations: {
257
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
258
+ description: string;
259
+ priority: number;
260
+ recommendation_id: string;
261
+ }[];
262
+ completed_at: string;
263
+ hypothesis_id?: string | undefined;
264
+ }, {
265
+ signal_type: "simulation_outcome_signal";
266
+ simulation_id: string;
267
+ scenario: {
268
+ name: string;
269
+ description: string;
270
+ initial_conditions: Record<string, unknown>;
271
+ parameters: Record<string, unknown>;
272
+ };
273
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
274
+ results: {
275
+ primary_finding: string;
276
+ secondary_findings: string[];
277
+ metrics?: Record<string, number> | undefined;
278
+ artifacts?: {
279
+ type: string;
280
+ description: string;
281
+ artifact_id: string;
282
+ }[] | undefined;
283
+ };
284
+ outcome_confidence: number;
285
+ resource_usage: {
286
+ tokens_used: number;
287
+ latency_ms: number;
288
+ within_budget: boolean;
289
+ };
290
+ exploration_recommendations: {
291
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
292
+ description: string;
293
+ priority: number;
294
+ recommendation_id: string;
295
+ }[];
296
+ completed_at: string;
297
+ hypothesis_id?: string | undefined;
298
+ }>;
299
+ export type SimulationOutcomeSignal = z.infer<typeof SimulationOutcomeSignalSchema>;
300
+ /**
301
+ * Confidence Delta Signal Schema
302
+ *
303
+ * Emitted when confidence in a hypothesis changes.
304
+ * Tracks reasoning progression - NEVER triggers final decisions.
305
+ */
306
+ export declare const ConfidenceDeltaSignalSchema: z.ZodObject<{
307
+ signal_type: z.ZodLiteral<"confidence_delta_signal">;
308
+ delta_id: z.ZodString;
309
+ /** The hypothesis whose confidence changed */
310
+ hypothesis_id: z.ZodString;
311
+ /** Simulation that caused the change (if applicable) */
312
+ simulation_id: z.ZodOptional<z.ZodString>;
313
+ /** Previous confidence value */
314
+ previous_confidence: z.ZodNumber;
315
+ /** New confidence value */
316
+ new_confidence: z.ZodNumber;
317
+ /** The actual delta (can be positive or negative) */
318
+ delta: z.ZodNumber;
319
+ /** Reason for the confidence change */
320
+ reason: z.ZodObject<{
321
+ category: z.ZodEnum<["new_evidence", "contradicting_evidence", "simulation_result", "reasoning_refinement", "assumption_invalidated", "scope_change", "uncertainty_quantification"]>;
322
+ description: z.ZodString;
323
+ contributing_factors: z.ZodArray<z.ZodObject<{
324
+ factor: z.ZodString;
325
+ impact: z.ZodNumber;
326
+ }, "strip", z.ZodTypeAny, {
327
+ impact: number;
328
+ factor: string;
329
+ }, {
330
+ impact: number;
331
+ factor: string;
332
+ }>, "many">;
333
+ }, "strip", z.ZodTypeAny, {
334
+ description: string;
335
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
336
+ contributing_factors: {
337
+ impact: number;
338
+ factor: string;
339
+ }[];
340
+ }, {
341
+ description: string;
342
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
343
+ contributing_factors: {
344
+ impact: number;
345
+ factor: string;
346
+ }[];
347
+ }>;
348
+ /** Whether confidence is still within actionable thresholds */
349
+ thresholds: z.ZodObject<{
350
+ /** Confidence required for recommendation */
351
+ recommendation_threshold: z.ZodNumber;
352
+ /** Current distance from threshold */
353
+ distance_from_threshold: z.ZodNumber;
354
+ /** Trend direction over recent deltas */
355
+ trend: z.ZodEnum<["increasing", "decreasing", "stable", "oscillating"]>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ recommendation_threshold: number;
358
+ distance_from_threshold: number;
359
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
360
+ }, {
361
+ recommendation_threshold: number;
362
+ distance_from_threshold: number;
363
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
364
+ }>;
365
+ /** Timestamp of confidence change */
366
+ changed_at: z.ZodString;
367
+ }, "strip", z.ZodTypeAny, {
368
+ signal_type: "confidence_delta_signal";
369
+ hypothesis_id: string;
370
+ delta_id: string;
371
+ previous_confidence: number;
372
+ new_confidence: number;
373
+ delta: number;
374
+ reason: {
375
+ description: string;
376
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
377
+ contributing_factors: {
378
+ impact: number;
379
+ factor: string;
380
+ }[];
381
+ };
382
+ thresholds: {
383
+ recommendation_threshold: number;
384
+ distance_from_threshold: number;
385
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
386
+ };
387
+ changed_at: string;
388
+ simulation_id?: string | undefined;
389
+ }, {
390
+ signal_type: "confidence_delta_signal";
391
+ hypothesis_id: string;
392
+ delta_id: string;
393
+ previous_confidence: number;
394
+ new_confidence: number;
395
+ delta: number;
396
+ reason: {
397
+ description: string;
398
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
399
+ contributing_factors: {
400
+ impact: number;
401
+ factor: string;
402
+ }[];
403
+ };
404
+ thresholds: {
405
+ recommendation_threshold: number;
406
+ distance_from_threshold: number;
407
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
408
+ };
409
+ changed_at: string;
410
+ simulation_id?: string | undefined;
411
+ }>;
412
+ export type ConfidenceDeltaSignal = z.infer<typeof ConfidenceDeltaSignalSchema>;
413
+ /**
414
+ * Intelligence Layer Input Schema
415
+ *
416
+ * Input for the intelligence layer agent to perform reasoning,
417
+ * simulation, and exploration tasks.
418
+ */
419
+ export declare const IntelligenceLayerInputSchema: z.ZodObject<{
420
+ /** Execution mode */
421
+ mode: z.ZodEnum<["reason", "simulate", "explore"]>;
422
+ /** The objective or question to investigate */
423
+ objective: z.ZodObject<{
424
+ statement: z.ZodString;
425
+ domain: z.ZodString;
426
+ constraints: z.ZodArray<z.ZodString, "many">;
427
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
428
+ }, "strip", z.ZodTypeAny, {
429
+ constraints: string[];
430
+ domain: string;
431
+ statement: string;
432
+ context?: Record<string, unknown> | undefined;
433
+ }, {
434
+ constraints: string[];
435
+ domain: string;
436
+ statement: string;
437
+ context?: Record<string, unknown> | undefined;
438
+ }>;
439
+ /** Previous hypotheses to build upon (if any) */
440
+ prior_hypotheses: z.ZodOptional<z.ZodArray<z.ZodObject<{
441
+ signal_type: z.ZodLiteral<"hypothesis_signal">;
442
+ hypothesis_id: z.ZodString;
443
+ /** The hypothesis statement */
444
+ statement: z.ZodString;
445
+ /** Domain/area the hypothesis relates to */
446
+ domain: z.ZodString;
447
+ /** Supporting evidence or reasoning */
448
+ supporting_evidence: z.ZodArray<z.ZodObject<{
449
+ evidence_id: z.ZodString;
450
+ description: z.ZodString;
451
+ weight: z.ZodNumber;
452
+ source: z.ZodOptional<z.ZodString>;
453
+ }, "strip", z.ZodTypeAny, {
454
+ description: string;
455
+ weight: number;
456
+ evidence_id: string;
457
+ source?: string | undefined;
458
+ }, {
459
+ description: string;
460
+ weight: number;
461
+ evidence_id: string;
462
+ source?: string | undefined;
463
+ }>, "many">;
464
+ /** Counter-evidence or alternative explanations */
465
+ counter_evidence: z.ZodArray<z.ZodObject<{
466
+ evidence_id: z.ZodString;
467
+ description: z.ZodString;
468
+ weight: z.ZodNumber;
469
+ source: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ description: string;
472
+ weight: number;
473
+ evidence_id: string;
474
+ source?: string | undefined;
475
+ }, {
476
+ description: string;
477
+ weight: number;
478
+ evidence_id: string;
479
+ source?: string | undefined;
480
+ }>, "many">;
481
+ /** Initial confidence before simulation */
482
+ initial_confidence: z.ZodNumber;
483
+ /** Conditions that would strengthen the hypothesis */
484
+ strengthening_conditions: z.ZodArray<z.ZodString, "many">;
485
+ /** Conditions that would weaken the hypothesis */
486
+ weakening_conditions: z.ZodArray<z.ZodString, "many">;
487
+ /** Related hypotheses (if exploring multiple paths) */
488
+ related_hypothesis_ids: z.ZodArray<z.ZodString, "many">;
489
+ /** Timestamp of hypothesis formation */
490
+ formed_at: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ domain: string;
493
+ statement: string;
494
+ signal_type: "hypothesis_signal";
495
+ hypothesis_id: string;
496
+ supporting_evidence: {
497
+ description: string;
498
+ weight: number;
499
+ evidence_id: string;
500
+ source?: string | undefined;
501
+ }[];
502
+ counter_evidence: {
503
+ description: string;
504
+ weight: number;
505
+ evidence_id: string;
506
+ source?: string | undefined;
507
+ }[];
508
+ initial_confidence: number;
509
+ strengthening_conditions: string[];
510
+ weakening_conditions: string[];
511
+ related_hypothesis_ids: string[];
512
+ formed_at: string;
513
+ }, {
514
+ domain: string;
515
+ statement: string;
516
+ signal_type: "hypothesis_signal";
517
+ hypothesis_id: string;
518
+ supporting_evidence: {
519
+ description: string;
520
+ weight: number;
521
+ evidence_id: string;
522
+ source?: string | undefined;
523
+ }[];
524
+ counter_evidence: {
525
+ description: string;
526
+ weight: number;
527
+ evidence_id: string;
528
+ source?: string | undefined;
529
+ }[];
530
+ initial_confidence: number;
531
+ strengthening_conditions: string[];
532
+ weakening_conditions: string[];
533
+ related_hypothesis_ids: string[];
534
+ formed_at: string;
535
+ }>, "many">>;
536
+ /** Previous simulation outcomes (if any) */
537
+ prior_simulations: z.ZodOptional<z.ZodArray<z.ZodObject<{
538
+ signal_type: z.ZodLiteral<"simulation_outcome_signal">;
539
+ simulation_id: z.ZodString;
540
+ /** The hypothesis being tested (if applicable) */
541
+ hypothesis_id: z.ZodOptional<z.ZodString>;
542
+ /** What scenario was simulated */
543
+ scenario: z.ZodObject<{
544
+ name: z.ZodString;
545
+ description: z.ZodString;
546
+ initial_conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
547
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
548
+ }, "strip", z.ZodTypeAny, {
549
+ name: string;
550
+ description: string;
551
+ initial_conditions: Record<string, unknown>;
552
+ parameters: Record<string, unknown>;
553
+ }, {
554
+ name: string;
555
+ description: string;
556
+ initial_conditions: Record<string, unknown>;
557
+ parameters: Record<string, unknown>;
558
+ }>;
559
+ /** Simulation outcome classification */
560
+ outcome: z.ZodEnum<["hypothesis_supported", "hypothesis_weakened", "hypothesis_refuted", "inconclusive", "unexpected_result", "simulation_error"]>;
561
+ /** Detailed results from the simulation */
562
+ results: z.ZodObject<{
563
+ primary_finding: z.ZodString;
564
+ secondary_findings: z.ZodArray<z.ZodString, "many">;
565
+ metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
566
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
567
+ artifact_id: z.ZodString;
568
+ type: z.ZodString;
569
+ description: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ type: string;
572
+ description: string;
573
+ artifact_id: string;
574
+ }, {
575
+ type: string;
576
+ description: string;
577
+ artifact_id: string;
578
+ }>, "many">>;
579
+ }, "strip", z.ZodTypeAny, {
580
+ primary_finding: string;
581
+ secondary_findings: string[];
582
+ metrics?: Record<string, number> | undefined;
583
+ artifacts?: {
584
+ type: string;
585
+ description: string;
586
+ artifact_id: string;
587
+ }[] | undefined;
588
+ }, {
589
+ primary_finding: string;
590
+ secondary_findings: string[];
591
+ metrics?: Record<string, number> | undefined;
592
+ artifacts?: {
593
+ type: string;
594
+ description: string;
595
+ artifact_id: string;
596
+ }[] | undefined;
597
+ }>;
598
+ /** Confidence in the simulation outcome */
599
+ outcome_confidence: z.ZodNumber;
600
+ /** Resource usage during simulation */
601
+ resource_usage: z.ZodObject<{
602
+ tokens_used: z.ZodNumber;
603
+ latency_ms: z.ZodNumber;
604
+ within_budget: z.ZodBoolean;
605
+ }, "strip", z.ZodTypeAny, {
606
+ tokens_used: number;
607
+ latency_ms: number;
608
+ within_budget: boolean;
609
+ }, {
610
+ tokens_used: number;
611
+ latency_ms: number;
612
+ within_budget: boolean;
613
+ }>;
614
+ /** Recommendations for further exploration (NOT actions) */
615
+ exploration_recommendations: z.ZodArray<z.ZodObject<{
616
+ recommendation_id: z.ZodString;
617
+ type: z.ZodEnum<["additional_simulation", "hypothesis_refinement", "data_collection", "domain_expansion"]>;
618
+ description: z.ZodString;
619
+ priority: z.ZodNumber;
620
+ }, "strip", z.ZodTypeAny, {
621
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
622
+ description: string;
623
+ priority: number;
624
+ recommendation_id: string;
625
+ }, {
626
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
627
+ description: string;
628
+ priority: number;
629
+ recommendation_id: string;
630
+ }>, "many">;
631
+ /** Simulation completed timestamp */
632
+ completed_at: z.ZodString;
633
+ }, "strip", z.ZodTypeAny, {
634
+ signal_type: "simulation_outcome_signal";
635
+ simulation_id: string;
636
+ scenario: {
637
+ name: string;
638
+ description: string;
639
+ initial_conditions: Record<string, unknown>;
640
+ parameters: Record<string, unknown>;
641
+ };
642
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
643
+ results: {
644
+ primary_finding: string;
645
+ secondary_findings: string[];
646
+ metrics?: Record<string, number> | undefined;
647
+ artifacts?: {
648
+ type: string;
649
+ description: string;
650
+ artifact_id: string;
651
+ }[] | undefined;
652
+ };
653
+ outcome_confidence: number;
654
+ resource_usage: {
655
+ tokens_used: number;
656
+ latency_ms: number;
657
+ within_budget: boolean;
658
+ };
659
+ exploration_recommendations: {
660
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
661
+ description: string;
662
+ priority: number;
663
+ recommendation_id: string;
664
+ }[];
665
+ completed_at: string;
666
+ hypothesis_id?: string | undefined;
667
+ }, {
668
+ signal_type: "simulation_outcome_signal";
669
+ simulation_id: string;
670
+ scenario: {
671
+ name: string;
672
+ description: string;
673
+ initial_conditions: Record<string, unknown>;
674
+ parameters: Record<string, unknown>;
675
+ };
676
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
677
+ results: {
678
+ primary_finding: string;
679
+ secondary_findings: string[];
680
+ metrics?: Record<string, number> | undefined;
681
+ artifacts?: {
682
+ type: string;
683
+ description: string;
684
+ artifact_id: string;
685
+ }[] | undefined;
686
+ };
687
+ outcome_confidence: number;
688
+ resource_usage: {
689
+ tokens_used: number;
690
+ latency_ms: number;
691
+ within_budget: boolean;
692
+ };
693
+ exploration_recommendations: {
694
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
695
+ description: string;
696
+ priority: number;
697
+ recommendation_id: string;
698
+ }[];
699
+ completed_at: string;
700
+ hypothesis_id?: string | undefined;
701
+ }>, "many">>;
702
+ /** Confidence history for tracking deltas */
703
+ confidence_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ signal_type: z.ZodLiteral<"confidence_delta_signal">;
705
+ delta_id: z.ZodString;
706
+ /** The hypothesis whose confidence changed */
707
+ hypothesis_id: z.ZodString;
708
+ /** Simulation that caused the change (if applicable) */
709
+ simulation_id: z.ZodOptional<z.ZodString>;
710
+ /** Previous confidence value */
711
+ previous_confidence: z.ZodNumber;
712
+ /** New confidence value */
713
+ new_confidence: z.ZodNumber;
714
+ /** The actual delta (can be positive or negative) */
715
+ delta: z.ZodNumber;
716
+ /** Reason for the confidence change */
717
+ reason: z.ZodObject<{
718
+ category: z.ZodEnum<["new_evidence", "contradicting_evidence", "simulation_result", "reasoning_refinement", "assumption_invalidated", "scope_change", "uncertainty_quantification"]>;
719
+ description: z.ZodString;
720
+ contributing_factors: z.ZodArray<z.ZodObject<{
721
+ factor: z.ZodString;
722
+ impact: z.ZodNumber;
723
+ }, "strip", z.ZodTypeAny, {
724
+ impact: number;
725
+ factor: string;
726
+ }, {
727
+ impact: number;
728
+ factor: string;
729
+ }>, "many">;
730
+ }, "strip", z.ZodTypeAny, {
731
+ description: string;
732
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
733
+ contributing_factors: {
734
+ impact: number;
735
+ factor: string;
736
+ }[];
737
+ }, {
738
+ description: string;
739
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
740
+ contributing_factors: {
741
+ impact: number;
742
+ factor: string;
743
+ }[];
744
+ }>;
745
+ /** Whether confidence is still within actionable thresholds */
746
+ thresholds: z.ZodObject<{
747
+ /** Confidence required for recommendation */
748
+ recommendation_threshold: z.ZodNumber;
749
+ /** Current distance from threshold */
750
+ distance_from_threshold: z.ZodNumber;
751
+ /** Trend direction over recent deltas */
752
+ trend: z.ZodEnum<["increasing", "decreasing", "stable", "oscillating"]>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ recommendation_threshold: number;
755
+ distance_from_threshold: number;
756
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
757
+ }, {
758
+ recommendation_threshold: number;
759
+ distance_from_threshold: number;
760
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
761
+ }>;
762
+ /** Timestamp of confidence change */
763
+ changed_at: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ signal_type: "confidence_delta_signal";
766
+ hypothesis_id: string;
767
+ delta_id: string;
768
+ previous_confidence: number;
769
+ new_confidence: number;
770
+ delta: number;
771
+ reason: {
772
+ description: string;
773
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
774
+ contributing_factors: {
775
+ impact: number;
776
+ factor: string;
777
+ }[];
778
+ };
779
+ thresholds: {
780
+ recommendation_threshold: number;
781
+ distance_from_threshold: number;
782
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
783
+ };
784
+ changed_at: string;
785
+ simulation_id?: string | undefined;
786
+ }, {
787
+ signal_type: "confidence_delta_signal";
788
+ hypothesis_id: string;
789
+ delta_id: string;
790
+ previous_confidence: number;
791
+ new_confidence: number;
792
+ delta: number;
793
+ reason: {
794
+ description: string;
795
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
796
+ contributing_factors: {
797
+ impact: number;
798
+ factor: string;
799
+ }[];
800
+ };
801
+ thresholds: {
802
+ recommendation_threshold: number;
803
+ distance_from_threshold: number;
804
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
805
+ };
806
+ changed_at: string;
807
+ simulation_id?: string | undefined;
808
+ }>, "many">>;
809
+ /** Performance constraints */
810
+ performance_limits: z.ZodOptional<z.ZodObject<{
811
+ max_tokens: z.ZodDefault<z.ZodNumber>;
812
+ max_latency_ms: z.ZodDefault<z.ZodNumber>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ max_tokens: number;
815
+ max_latency_ms: number;
816
+ }, {
817
+ max_tokens?: number | undefined;
818
+ max_latency_ms?: number | undefined;
819
+ }>>;
820
+ /** Optional correlation ID for multi-step reasoning chains */
821
+ reasoning_chain_id: z.ZodOptional<z.ZodString>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ objective: {
824
+ constraints: string[];
825
+ domain: string;
826
+ statement: string;
827
+ context?: Record<string, unknown> | undefined;
828
+ };
829
+ mode: "reason" | "simulate" | "explore";
830
+ prior_hypotheses?: {
831
+ domain: string;
832
+ statement: string;
833
+ signal_type: "hypothesis_signal";
834
+ hypothesis_id: string;
835
+ supporting_evidence: {
836
+ description: string;
837
+ weight: number;
838
+ evidence_id: string;
839
+ source?: string | undefined;
840
+ }[];
841
+ counter_evidence: {
842
+ description: string;
843
+ weight: number;
844
+ evidence_id: string;
845
+ source?: string | undefined;
846
+ }[];
847
+ initial_confidence: number;
848
+ strengthening_conditions: string[];
849
+ weakening_conditions: string[];
850
+ related_hypothesis_ids: string[];
851
+ formed_at: string;
852
+ }[] | undefined;
853
+ prior_simulations?: {
854
+ signal_type: "simulation_outcome_signal";
855
+ simulation_id: string;
856
+ scenario: {
857
+ name: string;
858
+ description: string;
859
+ initial_conditions: Record<string, unknown>;
860
+ parameters: Record<string, unknown>;
861
+ };
862
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
863
+ results: {
864
+ primary_finding: string;
865
+ secondary_findings: string[];
866
+ metrics?: Record<string, number> | undefined;
867
+ artifacts?: {
868
+ type: string;
869
+ description: string;
870
+ artifact_id: string;
871
+ }[] | undefined;
872
+ };
873
+ outcome_confidence: number;
874
+ resource_usage: {
875
+ tokens_used: number;
876
+ latency_ms: number;
877
+ within_budget: boolean;
878
+ };
879
+ exploration_recommendations: {
880
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
881
+ description: string;
882
+ priority: number;
883
+ recommendation_id: string;
884
+ }[];
885
+ completed_at: string;
886
+ hypothesis_id?: string | undefined;
887
+ }[] | undefined;
888
+ confidence_history?: {
889
+ signal_type: "confidence_delta_signal";
890
+ hypothesis_id: string;
891
+ delta_id: string;
892
+ previous_confidence: number;
893
+ new_confidence: number;
894
+ delta: number;
895
+ reason: {
896
+ description: string;
897
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
898
+ contributing_factors: {
899
+ impact: number;
900
+ factor: string;
901
+ }[];
902
+ };
903
+ thresholds: {
904
+ recommendation_threshold: number;
905
+ distance_from_threshold: number;
906
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
907
+ };
908
+ changed_at: string;
909
+ simulation_id?: string | undefined;
910
+ }[] | undefined;
911
+ performance_limits?: {
912
+ max_tokens: number;
913
+ max_latency_ms: number;
914
+ } | undefined;
915
+ reasoning_chain_id?: string | undefined;
916
+ }, {
917
+ objective: {
918
+ constraints: string[];
919
+ domain: string;
920
+ statement: string;
921
+ context?: Record<string, unknown> | undefined;
922
+ };
923
+ mode: "reason" | "simulate" | "explore";
924
+ prior_hypotheses?: {
925
+ domain: string;
926
+ statement: string;
927
+ signal_type: "hypothesis_signal";
928
+ hypothesis_id: string;
929
+ supporting_evidence: {
930
+ description: string;
931
+ weight: number;
932
+ evidence_id: string;
933
+ source?: string | undefined;
934
+ }[];
935
+ counter_evidence: {
936
+ description: string;
937
+ weight: number;
938
+ evidence_id: string;
939
+ source?: string | undefined;
940
+ }[];
941
+ initial_confidence: number;
942
+ strengthening_conditions: string[];
943
+ weakening_conditions: string[];
944
+ related_hypothesis_ids: string[];
945
+ formed_at: string;
946
+ }[] | undefined;
947
+ prior_simulations?: {
948
+ signal_type: "simulation_outcome_signal";
949
+ simulation_id: string;
950
+ scenario: {
951
+ name: string;
952
+ description: string;
953
+ initial_conditions: Record<string, unknown>;
954
+ parameters: Record<string, unknown>;
955
+ };
956
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
957
+ results: {
958
+ primary_finding: string;
959
+ secondary_findings: string[];
960
+ metrics?: Record<string, number> | undefined;
961
+ artifacts?: {
962
+ type: string;
963
+ description: string;
964
+ artifact_id: string;
965
+ }[] | undefined;
966
+ };
967
+ outcome_confidence: number;
968
+ resource_usage: {
969
+ tokens_used: number;
970
+ latency_ms: number;
971
+ within_budget: boolean;
972
+ };
973
+ exploration_recommendations: {
974
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
975
+ description: string;
976
+ priority: number;
977
+ recommendation_id: string;
978
+ }[];
979
+ completed_at: string;
980
+ hypothesis_id?: string | undefined;
981
+ }[] | undefined;
982
+ confidence_history?: {
983
+ signal_type: "confidence_delta_signal";
984
+ hypothesis_id: string;
985
+ delta_id: string;
986
+ previous_confidence: number;
987
+ new_confidence: number;
988
+ delta: number;
989
+ reason: {
990
+ description: string;
991
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
992
+ contributing_factors: {
993
+ impact: number;
994
+ factor: string;
995
+ }[];
996
+ };
997
+ thresholds: {
998
+ recommendation_threshold: number;
999
+ distance_from_threshold: number;
1000
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1001
+ };
1002
+ changed_at: string;
1003
+ simulation_id?: string | undefined;
1004
+ }[] | undefined;
1005
+ performance_limits?: {
1006
+ max_tokens?: number | undefined;
1007
+ max_latency_ms?: number | undefined;
1008
+ } | undefined;
1009
+ reasoning_chain_id?: string | undefined;
1010
+ }>;
1011
+ export type IntelligenceLayerInput = z.infer<typeof IntelligenceLayerInputSchema>;
1012
+ /**
1013
+ * Intelligence Layer Output Schema
1014
+ *
1015
+ * Output containing all signals emitted during intelligence operations.
1016
+ * Contains signals ONLY - no final decisions or actions.
1017
+ */
1018
+ export declare const IntelligenceLayerOutputSchema: z.ZodObject<{
1019
+ /** Unique output identifier */
1020
+ output_id: z.ZodString;
1021
+ /** Mode that was executed */
1022
+ mode_executed: z.ZodEnum<["reason", "simulate", "explore"]>;
1023
+ /** All hypothesis signals generated */
1024
+ hypothesis_signals: z.ZodArray<z.ZodObject<{
1025
+ signal_type: z.ZodLiteral<"hypothesis_signal">;
1026
+ hypothesis_id: z.ZodString;
1027
+ /** The hypothesis statement */
1028
+ statement: z.ZodString;
1029
+ /** Domain/area the hypothesis relates to */
1030
+ domain: z.ZodString;
1031
+ /** Supporting evidence or reasoning */
1032
+ supporting_evidence: z.ZodArray<z.ZodObject<{
1033
+ evidence_id: z.ZodString;
1034
+ description: z.ZodString;
1035
+ weight: z.ZodNumber;
1036
+ source: z.ZodOptional<z.ZodString>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ description: string;
1039
+ weight: number;
1040
+ evidence_id: string;
1041
+ source?: string | undefined;
1042
+ }, {
1043
+ description: string;
1044
+ weight: number;
1045
+ evidence_id: string;
1046
+ source?: string | undefined;
1047
+ }>, "many">;
1048
+ /** Counter-evidence or alternative explanations */
1049
+ counter_evidence: z.ZodArray<z.ZodObject<{
1050
+ evidence_id: z.ZodString;
1051
+ description: z.ZodString;
1052
+ weight: z.ZodNumber;
1053
+ source: z.ZodOptional<z.ZodString>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ description: string;
1056
+ weight: number;
1057
+ evidence_id: string;
1058
+ source?: string | undefined;
1059
+ }, {
1060
+ description: string;
1061
+ weight: number;
1062
+ evidence_id: string;
1063
+ source?: string | undefined;
1064
+ }>, "many">;
1065
+ /** Initial confidence before simulation */
1066
+ initial_confidence: z.ZodNumber;
1067
+ /** Conditions that would strengthen the hypothesis */
1068
+ strengthening_conditions: z.ZodArray<z.ZodString, "many">;
1069
+ /** Conditions that would weaken the hypothesis */
1070
+ weakening_conditions: z.ZodArray<z.ZodString, "many">;
1071
+ /** Related hypotheses (if exploring multiple paths) */
1072
+ related_hypothesis_ids: z.ZodArray<z.ZodString, "many">;
1073
+ /** Timestamp of hypothesis formation */
1074
+ formed_at: z.ZodString;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ domain: string;
1077
+ statement: string;
1078
+ signal_type: "hypothesis_signal";
1079
+ hypothesis_id: string;
1080
+ supporting_evidence: {
1081
+ description: string;
1082
+ weight: number;
1083
+ evidence_id: string;
1084
+ source?: string | undefined;
1085
+ }[];
1086
+ counter_evidence: {
1087
+ description: string;
1088
+ weight: number;
1089
+ evidence_id: string;
1090
+ source?: string | undefined;
1091
+ }[];
1092
+ initial_confidence: number;
1093
+ strengthening_conditions: string[];
1094
+ weakening_conditions: string[];
1095
+ related_hypothesis_ids: string[];
1096
+ formed_at: string;
1097
+ }, {
1098
+ domain: string;
1099
+ statement: string;
1100
+ signal_type: "hypothesis_signal";
1101
+ hypothesis_id: string;
1102
+ supporting_evidence: {
1103
+ description: string;
1104
+ weight: number;
1105
+ evidence_id: string;
1106
+ source?: string | undefined;
1107
+ }[];
1108
+ counter_evidence: {
1109
+ description: string;
1110
+ weight: number;
1111
+ evidence_id: string;
1112
+ source?: string | undefined;
1113
+ }[];
1114
+ initial_confidence: number;
1115
+ strengthening_conditions: string[];
1116
+ weakening_conditions: string[];
1117
+ related_hypothesis_ids: string[];
1118
+ formed_at: string;
1119
+ }>, "many">;
1120
+ /** All simulation outcome signals generated */
1121
+ simulation_outcome_signals: z.ZodArray<z.ZodObject<{
1122
+ signal_type: z.ZodLiteral<"simulation_outcome_signal">;
1123
+ simulation_id: z.ZodString;
1124
+ /** The hypothesis being tested (if applicable) */
1125
+ hypothesis_id: z.ZodOptional<z.ZodString>;
1126
+ /** What scenario was simulated */
1127
+ scenario: z.ZodObject<{
1128
+ name: z.ZodString;
1129
+ description: z.ZodString;
1130
+ initial_conditions: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1131
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ name: string;
1134
+ description: string;
1135
+ initial_conditions: Record<string, unknown>;
1136
+ parameters: Record<string, unknown>;
1137
+ }, {
1138
+ name: string;
1139
+ description: string;
1140
+ initial_conditions: Record<string, unknown>;
1141
+ parameters: Record<string, unknown>;
1142
+ }>;
1143
+ /** Simulation outcome classification */
1144
+ outcome: z.ZodEnum<["hypothesis_supported", "hypothesis_weakened", "hypothesis_refuted", "inconclusive", "unexpected_result", "simulation_error"]>;
1145
+ /** Detailed results from the simulation */
1146
+ results: z.ZodObject<{
1147
+ primary_finding: z.ZodString;
1148
+ secondary_findings: z.ZodArray<z.ZodString, "many">;
1149
+ metrics: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1150
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1151
+ artifact_id: z.ZodString;
1152
+ type: z.ZodString;
1153
+ description: z.ZodString;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ type: string;
1156
+ description: string;
1157
+ artifact_id: string;
1158
+ }, {
1159
+ type: string;
1160
+ description: string;
1161
+ artifact_id: string;
1162
+ }>, "many">>;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ primary_finding: string;
1165
+ secondary_findings: string[];
1166
+ metrics?: Record<string, number> | undefined;
1167
+ artifacts?: {
1168
+ type: string;
1169
+ description: string;
1170
+ artifact_id: string;
1171
+ }[] | undefined;
1172
+ }, {
1173
+ primary_finding: string;
1174
+ secondary_findings: string[];
1175
+ metrics?: Record<string, number> | undefined;
1176
+ artifacts?: {
1177
+ type: string;
1178
+ description: string;
1179
+ artifact_id: string;
1180
+ }[] | undefined;
1181
+ }>;
1182
+ /** Confidence in the simulation outcome */
1183
+ outcome_confidence: z.ZodNumber;
1184
+ /** Resource usage during simulation */
1185
+ resource_usage: z.ZodObject<{
1186
+ tokens_used: z.ZodNumber;
1187
+ latency_ms: z.ZodNumber;
1188
+ within_budget: z.ZodBoolean;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ tokens_used: number;
1191
+ latency_ms: number;
1192
+ within_budget: boolean;
1193
+ }, {
1194
+ tokens_used: number;
1195
+ latency_ms: number;
1196
+ within_budget: boolean;
1197
+ }>;
1198
+ /** Recommendations for further exploration (NOT actions) */
1199
+ exploration_recommendations: z.ZodArray<z.ZodObject<{
1200
+ recommendation_id: z.ZodString;
1201
+ type: z.ZodEnum<["additional_simulation", "hypothesis_refinement", "data_collection", "domain_expansion"]>;
1202
+ description: z.ZodString;
1203
+ priority: z.ZodNumber;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1206
+ description: string;
1207
+ priority: number;
1208
+ recommendation_id: string;
1209
+ }, {
1210
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1211
+ description: string;
1212
+ priority: number;
1213
+ recommendation_id: string;
1214
+ }>, "many">;
1215
+ /** Simulation completed timestamp */
1216
+ completed_at: z.ZodString;
1217
+ }, "strip", z.ZodTypeAny, {
1218
+ signal_type: "simulation_outcome_signal";
1219
+ simulation_id: string;
1220
+ scenario: {
1221
+ name: string;
1222
+ description: string;
1223
+ initial_conditions: Record<string, unknown>;
1224
+ parameters: Record<string, unknown>;
1225
+ };
1226
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
1227
+ results: {
1228
+ primary_finding: string;
1229
+ secondary_findings: string[];
1230
+ metrics?: Record<string, number> | undefined;
1231
+ artifacts?: {
1232
+ type: string;
1233
+ description: string;
1234
+ artifact_id: string;
1235
+ }[] | undefined;
1236
+ };
1237
+ outcome_confidence: number;
1238
+ resource_usage: {
1239
+ tokens_used: number;
1240
+ latency_ms: number;
1241
+ within_budget: boolean;
1242
+ };
1243
+ exploration_recommendations: {
1244
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1245
+ description: string;
1246
+ priority: number;
1247
+ recommendation_id: string;
1248
+ }[];
1249
+ completed_at: string;
1250
+ hypothesis_id?: string | undefined;
1251
+ }, {
1252
+ signal_type: "simulation_outcome_signal";
1253
+ simulation_id: string;
1254
+ scenario: {
1255
+ name: string;
1256
+ description: string;
1257
+ initial_conditions: Record<string, unknown>;
1258
+ parameters: Record<string, unknown>;
1259
+ };
1260
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
1261
+ results: {
1262
+ primary_finding: string;
1263
+ secondary_findings: string[];
1264
+ metrics?: Record<string, number> | undefined;
1265
+ artifacts?: {
1266
+ type: string;
1267
+ description: string;
1268
+ artifact_id: string;
1269
+ }[] | undefined;
1270
+ };
1271
+ outcome_confidence: number;
1272
+ resource_usage: {
1273
+ tokens_used: number;
1274
+ latency_ms: number;
1275
+ within_budget: boolean;
1276
+ };
1277
+ exploration_recommendations: {
1278
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1279
+ description: string;
1280
+ priority: number;
1281
+ recommendation_id: string;
1282
+ }[];
1283
+ completed_at: string;
1284
+ hypothesis_id?: string | undefined;
1285
+ }>, "many">;
1286
+ /** All confidence delta signals generated */
1287
+ confidence_delta_signals: z.ZodArray<z.ZodObject<{
1288
+ signal_type: z.ZodLiteral<"confidence_delta_signal">;
1289
+ delta_id: z.ZodString;
1290
+ /** The hypothesis whose confidence changed */
1291
+ hypothesis_id: z.ZodString;
1292
+ /** Simulation that caused the change (if applicable) */
1293
+ simulation_id: z.ZodOptional<z.ZodString>;
1294
+ /** Previous confidence value */
1295
+ previous_confidence: z.ZodNumber;
1296
+ /** New confidence value */
1297
+ new_confidence: z.ZodNumber;
1298
+ /** The actual delta (can be positive or negative) */
1299
+ delta: z.ZodNumber;
1300
+ /** Reason for the confidence change */
1301
+ reason: z.ZodObject<{
1302
+ category: z.ZodEnum<["new_evidence", "contradicting_evidence", "simulation_result", "reasoning_refinement", "assumption_invalidated", "scope_change", "uncertainty_quantification"]>;
1303
+ description: z.ZodString;
1304
+ contributing_factors: z.ZodArray<z.ZodObject<{
1305
+ factor: z.ZodString;
1306
+ impact: z.ZodNumber;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ impact: number;
1309
+ factor: string;
1310
+ }, {
1311
+ impact: number;
1312
+ factor: string;
1313
+ }>, "many">;
1314
+ }, "strip", z.ZodTypeAny, {
1315
+ description: string;
1316
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1317
+ contributing_factors: {
1318
+ impact: number;
1319
+ factor: string;
1320
+ }[];
1321
+ }, {
1322
+ description: string;
1323
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1324
+ contributing_factors: {
1325
+ impact: number;
1326
+ factor: string;
1327
+ }[];
1328
+ }>;
1329
+ /** Whether confidence is still within actionable thresholds */
1330
+ thresholds: z.ZodObject<{
1331
+ /** Confidence required for recommendation */
1332
+ recommendation_threshold: z.ZodNumber;
1333
+ /** Current distance from threshold */
1334
+ distance_from_threshold: z.ZodNumber;
1335
+ /** Trend direction over recent deltas */
1336
+ trend: z.ZodEnum<["increasing", "decreasing", "stable", "oscillating"]>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ recommendation_threshold: number;
1339
+ distance_from_threshold: number;
1340
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1341
+ }, {
1342
+ recommendation_threshold: number;
1343
+ distance_from_threshold: number;
1344
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1345
+ }>;
1346
+ /** Timestamp of confidence change */
1347
+ changed_at: z.ZodString;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ signal_type: "confidence_delta_signal";
1350
+ hypothesis_id: string;
1351
+ delta_id: string;
1352
+ previous_confidence: number;
1353
+ new_confidence: number;
1354
+ delta: number;
1355
+ reason: {
1356
+ description: string;
1357
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1358
+ contributing_factors: {
1359
+ impact: number;
1360
+ factor: string;
1361
+ }[];
1362
+ };
1363
+ thresholds: {
1364
+ recommendation_threshold: number;
1365
+ distance_from_threshold: number;
1366
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1367
+ };
1368
+ changed_at: string;
1369
+ simulation_id?: string | undefined;
1370
+ }, {
1371
+ signal_type: "confidence_delta_signal";
1372
+ hypothesis_id: string;
1373
+ delta_id: string;
1374
+ previous_confidence: number;
1375
+ new_confidence: number;
1376
+ delta: number;
1377
+ reason: {
1378
+ description: string;
1379
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1380
+ contributing_factors: {
1381
+ impact: number;
1382
+ factor: string;
1383
+ }[];
1384
+ };
1385
+ thresholds: {
1386
+ recommendation_threshold: number;
1387
+ distance_from_threshold: number;
1388
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1389
+ };
1390
+ changed_at: string;
1391
+ simulation_id?: string | undefined;
1392
+ }>, "many">;
1393
+ /** Summary of intelligence operations */
1394
+ summary: z.ZodObject<{
1395
+ hypotheses_formed: z.ZodNumber;
1396
+ simulations_run: z.ZodNumber;
1397
+ confidence_updates: z.ZodNumber;
1398
+ highest_confidence_hypothesis: z.ZodOptional<z.ZodString>;
1399
+ highest_confidence_value: z.ZodOptional<z.ZodNumber>;
1400
+ /** Explicit statement that no final decisions were made */
1401
+ final_decision_status: z.ZodLiteral<"no_final_decision">;
1402
+ }, "strip", z.ZodTypeAny, {
1403
+ hypotheses_formed: number;
1404
+ simulations_run: number;
1405
+ confidence_updates: number;
1406
+ final_decision_status: "no_final_decision";
1407
+ highest_confidence_hypothesis?: string | undefined;
1408
+ highest_confidence_value?: number | undefined;
1409
+ }, {
1410
+ hypotheses_formed: number;
1411
+ simulations_run: number;
1412
+ confidence_updates: number;
1413
+ final_decision_status: "no_final_decision";
1414
+ highest_confidence_hypothesis?: string | undefined;
1415
+ highest_confidence_value?: number | undefined;
1416
+ }>;
1417
+ /** Resource consumption tracking */
1418
+ resource_consumption: z.ZodObject<{
1419
+ total_tokens_used: z.ZodNumber;
1420
+ total_latency_ms: z.ZodNumber;
1421
+ budget_tokens_remaining: z.ZodNumber;
1422
+ budget_latency_remaining_ms: z.ZodNumber;
1423
+ within_budget: z.ZodBoolean;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ within_budget: boolean;
1426
+ total_tokens_used: number;
1427
+ total_latency_ms: number;
1428
+ budget_tokens_remaining: number;
1429
+ budget_latency_remaining_ms: number;
1430
+ }, {
1431
+ within_budget: boolean;
1432
+ total_tokens_used: number;
1433
+ total_latency_ms: number;
1434
+ budget_tokens_remaining: number;
1435
+ budget_latency_remaining_ms: number;
1436
+ }>;
1437
+ /** Suggestions for human decision-makers (NOT agent decisions) */
1438
+ human_decision_suggestions: z.ZodArray<z.ZodObject<{
1439
+ suggestion_id: z.ZodString;
1440
+ hypothesis_id: z.ZodString;
1441
+ confidence: z.ZodNumber;
1442
+ rationale: z.ZodString;
1443
+ caveats: z.ZodArray<z.ZodString, "many">;
1444
+ }, "strip", z.ZodTypeAny, {
1445
+ confidence: number;
1446
+ hypothesis_id: string;
1447
+ suggestion_id: string;
1448
+ rationale: string;
1449
+ caveats: string[];
1450
+ }, {
1451
+ confidence: number;
1452
+ hypothesis_id: string;
1453
+ suggestion_id: string;
1454
+ rationale: string;
1455
+ caveats: string[];
1456
+ }>, "many">;
1457
+ /** Completion timestamp */
1458
+ completed_at: z.ZodString;
1459
+ }, "strip", z.ZodTypeAny, {
1460
+ summary: {
1461
+ hypotheses_formed: number;
1462
+ simulations_run: number;
1463
+ confidence_updates: number;
1464
+ final_decision_status: "no_final_decision";
1465
+ highest_confidence_hypothesis?: string | undefined;
1466
+ highest_confidence_value?: number | undefined;
1467
+ };
1468
+ completed_at: string;
1469
+ output_id: string;
1470
+ mode_executed: "reason" | "simulate" | "explore";
1471
+ hypothesis_signals: {
1472
+ domain: string;
1473
+ statement: string;
1474
+ signal_type: "hypothesis_signal";
1475
+ hypothesis_id: string;
1476
+ supporting_evidence: {
1477
+ description: string;
1478
+ weight: number;
1479
+ evidence_id: string;
1480
+ source?: string | undefined;
1481
+ }[];
1482
+ counter_evidence: {
1483
+ description: string;
1484
+ weight: number;
1485
+ evidence_id: string;
1486
+ source?: string | undefined;
1487
+ }[];
1488
+ initial_confidence: number;
1489
+ strengthening_conditions: string[];
1490
+ weakening_conditions: string[];
1491
+ related_hypothesis_ids: string[];
1492
+ formed_at: string;
1493
+ }[];
1494
+ simulation_outcome_signals: {
1495
+ signal_type: "simulation_outcome_signal";
1496
+ simulation_id: string;
1497
+ scenario: {
1498
+ name: string;
1499
+ description: string;
1500
+ initial_conditions: Record<string, unknown>;
1501
+ parameters: Record<string, unknown>;
1502
+ };
1503
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
1504
+ results: {
1505
+ primary_finding: string;
1506
+ secondary_findings: string[];
1507
+ metrics?: Record<string, number> | undefined;
1508
+ artifacts?: {
1509
+ type: string;
1510
+ description: string;
1511
+ artifact_id: string;
1512
+ }[] | undefined;
1513
+ };
1514
+ outcome_confidence: number;
1515
+ resource_usage: {
1516
+ tokens_used: number;
1517
+ latency_ms: number;
1518
+ within_budget: boolean;
1519
+ };
1520
+ exploration_recommendations: {
1521
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1522
+ description: string;
1523
+ priority: number;
1524
+ recommendation_id: string;
1525
+ }[];
1526
+ completed_at: string;
1527
+ hypothesis_id?: string | undefined;
1528
+ }[];
1529
+ confidence_delta_signals: {
1530
+ signal_type: "confidence_delta_signal";
1531
+ hypothesis_id: string;
1532
+ delta_id: string;
1533
+ previous_confidence: number;
1534
+ new_confidence: number;
1535
+ delta: number;
1536
+ reason: {
1537
+ description: string;
1538
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1539
+ contributing_factors: {
1540
+ impact: number;
1541
+ factor: string;
1542
+ }[];
1543
+ };
1544
+ thresholds: {
1545
+ recommendation_threshold: number;
1546
+ distance_from_threshold: number;
1547
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1548
+ };
1549
+ changed_at: string;
1550
+ simulation_id?: string | undefined;
1551
+ }[];
1552
+ resource_consumption: {
1553
+ within_budget: boolean;
1554
+ total_tokens_used: number;
1555
+ total_latency_ms: number;
1556
+ budget_tokens_remaining: number;
1557
+ budget_latency_remaining_ms: number;
1558
+ };
1559
+ human_decision_suggestions: {
1560
+ confidence: number;
1561
+ hypothesis_id: string;
1562
+ suggestion_id: string;
1563
+ rationale: string;
1564
+ caveats: string[];
1565
+ }[];
1566
+ }, {
1567
+ summary: {
1568
+ hypotheses_formed: number;
1569
+ simulations_run: number;
1570
+ confidence_updates: number;
1571
+ final_decision_status: "no_final_decision";
1572
+ highest_confidence_hypothesis?: string | undefined;
1573
+ highest_confidence_value?: number | undefined;
1574
+ };
1575
+ completed_at: string;
1576
+ output_id: string;
1577
+ mode_executed: "reason" | "simulate" | "explore";
1578
+ hypothesis_signals: {
1579
+ domain: string;
1580
+ statement: string;
1581
+ signal_type: "hypothesis_signal";
1582
+ hypothesis_id: string;
1583
+ supporting_evidence: {
1584
+ description: string;
1585
+ weight: number;
1586
+ evidence_id: string;
1587
+ source?: string | undefined;
1588
+ }[];
1589
+ counter_evidence: {
1590
+ description: string;
1591
+ weight: number;
1592
+ evidence_id: string;
1593
+ source?: string | undefined;
1594
+ }[];
1595
+ initial_confidence: number;
1596
+ strengthening_conditions: string[];
1597
+ weakening_conditions: string[];
1598
+ related_hypothesis_ids: string[];
1599
+ formed_at: string;
1600
+ }[];
1601
+ simulation_outcome_signals: {
1602
+ signal_type: "simulation_outcome_signal";
1603
+ simulation_id: string;
1604
+ scenario: {
1605
+ name: string;
1606
+ description: string;
1607
+ initial_conditions: Record<string, unknown>;
1608
+ parameters: Record<string, unknown>;
1609
+ };
1610
+ outcome: "hypothesis_supported" | "hypothesis_weakened" | "hypothesis_refuted" | "inconclusive" | "unexpected_result" | "simulation_error";
1611
+ results: {
1612
+ primary_finding: string;
1613
+ secondary_findings: string[];
1614
+ metrics?: Record<string, number> | undefined;
1615
+ artifacts?: {
1616
+ type: string;
1617
+ description: string;
1618
+ artifact_id: string;
1619
+ }[] | undefined;
1620
+ };
1621
+ outcome_confidence: number;
1622
+ resource_usage: {
1623
+ tokens_used: number;
1624
+ latency_ms: number;
1625
+ within_budget: boolean;
1626
+ };
1627
+ exploration_recommendations: {
1628
+ type: "additional_simulation" | "hypothesis_refinement" | "data_collection" | "domain_expansion";
1629
+ description: string;
1630
+ priority: number;
1631
+ recommendation_id: string;
1632
+ }[];
1633
+ completed_at: string;
1634
+ hypothesis_id?: string | undefined;
1635
+ }[];
1636
+ confidence_delta_signals: {
1637
+ signal_type: "confidence_delta_signal";
1638
+ hypothesis_id: string;
1639
+ delta_id: string;
1640
+ previous_confidence: number;
1641
+ new_confidence: number;
1642
+ delta: number;
1643
+ reason: {
1644
+ description: string;
1645
+ category: "new_evidence" | "contradicting_evidence" | "simulation_result" | "reasoning_refinement" | "assumption_invalidated" | "scope_change" | "uncertainty_quantification";
1646
+ contributing_factors: {
1647
+ impact: number;
1648
+ factor: string;
1649
+ }[];
1650
+ };
1651
+ thresholds: {
1652
+ recommendation_threshold: number;
1653
+ distance_from_threshold: number;
1654
+ trend: "increasing" | "decreasing" | "stable" | "oscillating";
1655
+ };
1656
+ changed_at: string;
1657
+ simulation_id?: string | undefined;
1658
+ }[];
1659
+ resource_consumption: {
1660
+ within_budget: boolean;
1661
+ total_tokens_used: number;
1662
+ total_latency_ms: number;
1663
+ budget_tokens_remaining: number;
1664
+ budget_latency_remaining_ms: number;
1665
+ };
1666
+ human_decision_suggestions: {
1667
+ confidence: number;
1668
+ hypothesis_id: string;
1669
+ suggestion_id: string;
1670
+ rationale: string;
1671
+ caveats: string[];
1672
+ }[];
1673
+ }>;
1674
+ export type IntelligenceLayerOutput = z.infer<typeof IntelligenceLayerOutputSchema>;