agentfootprint 13.0.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2280) hide show
  1. package/AGENTS.md +1 -1
  2. package/CAPABILITIES.md +2 -2
  3. package/README.md +7 -3
  4. package/ai-instructions/claude-code/SKILL.md +1 -1
  5. package/ai-instructions/setup.sh +0 -0
  6. package/bin/agentfootprint-index.mjs +0 -0
  7. package/bin/agentfootprint-lint-tools.mjs +0 -0
  8. package/dist/adapters/observability/auditShapes.js +9 -31
  9. package/dist/adapters/observability/auditShapes.js.map +1 -1
  10. package/dist/bridge/eventMeta.js +1 -1
  11. package/dist/bridge/eventMeta.js.map +1 -1
  12. package/dist/context-bisect/ablation.js +1 -1
  13. package/dist/context-bisect/ablation.js.map +1 -1
  14. package/dist/context-bisect/arms/probe.js +1 -1
  15. package/dist/context-bisect/arms/probe.js.map +1 -1
  16. package/dist/context-bisect/restoration.js +1 -1
  17. package/dist/context-bisect/restoration.js.map +1 -1
  18. package/dist/core/Agent.js +799 -1144
  19. package/dist/core/Agent.js.map +1 -1
  20. package/dist/core/LLMCall.js +47 -86
  21. package/dist/core/LLMCall.js.map +1 -1
  22. package/dist/core/RunnerBase.js +139 -213
  23. package/dist/core/RunnerBase.js.map +1 -1
  24. package/dist/core/agent/arguments/answerRows.js +85 -0
  25. package/dist/core/agent/arguments/answerRows.js.map +1 -0
  26. package/dist/core/agent/arguments/ask.js +28 -91
  27. package/dist/core/agent/arguments/ask.js.map +1 -1
  28. package/dist/core/agent/arguments/dispatch.js +26 -9
  29. package/dist/core/agent/arguments/dispatch.js.map +1 -1
  30. package/dist/core/agent/arguments/kept.js +1 -1
  31. package/dist/core/agent/arguments/partialWindow.js +1 -1
  32. package/dist/core/agent/arguments/partialWindow.js.map +1 -1
  33. package/dist/core/agent/arguments/pendingPrivateAsk.js +123 -0
  34. package/dist/core/agent/arguments/pendingPrivateAsk.js.map +1 -0
  35. package/dist/core/agent/arguments/privateAnswers.js +213 -0
  36. package/dist/core/agent/arguments/privateAnswers.js.map +1 -0
  37. package/dist/core/agent/arguments/resolutionRows.js +175 -0
  38. package/dist/core/agent/arguments/resolutionRows.js.map +1 -0
  39. package/dist/core/agent/arguments/resolve.js +8 -144
  40. package/dist/core/agent/arguments/resolve.js.map +1 -1
  41. package/dist/core/agent/arguments/serve.js +3 -13
  42. package/dist/core/agent/arguments/serve.js.map +1 -1
  43. package/dist/core/agent/arguments/subflow.js +7 -1
  44. package/dist/core/agent/arguments/subflow.js.map +1 -1
  45. package/dist/core/agent/buildAgentChart.js.map +1 -1
  46. package/dist/core/agent/buildToolRegistry.js +1 -1
  47. package/dist/core/agent/callerIdentity.js +21 -106
  48. package/dist/core/agent/callerIdentity.js.map +1 -1
  49. package/dist/core/agent/chartContract.js +4 -0
  50. package/dist/core/agent/chartContract.js.map +1 -0
  51. package/dist/core/agent/checkpointDomain.js +59 -0
  52. package/dist/core/agent/checkpointDomain.js.map +1 -0
  53. package/dist/core/agent/componentObservers.js +134 -0
  54. package/dist/core/agent/componentObservers.js.map +1 -0
  55. package/dist/core/agent/componentResources.js +114 -0
  56. package/dist/core/agent/componentResources.js.map +1 -0
  57. package/dist/core/agent/evidence/evidenceIndex.js +1 -1
  58. package/dist/core/agent/evidence/evidenceIndex.js.map +1 -1
  59. package/dist/core/agent/evidence/frames.js +2 -1
  60. package/dist/core/agent/evidence/frames.js.map +1 -1
  61. package/dist/core/agent/evidence/servedJson.js +1 -1
  62. package/dist/core/agent/findings/contingent.js +1 -1
  63. package/dist/core/agent/findings/judge.js +1 -1
  64. package/dist/core/agent/findings/unsettled.js +3 -3
  65. package/dist/core/agent/honesty/inputsMountContract.js +3 -0
  66. package/dist/core/agent/honesty/inputsMountContract.js.map +1 -0
  67. package/dist/core/agent/honesty/mounts.js +42 -30
  68. package/dist/core/agent/honesty/mounts.js.map +1 -1
  69. package/dist/core/agent/hostTurn.js +40 -0
  70. package/dist/core/agent/hostTurn.js.map +1 -0
  71. package/dist/core/agent/pauseOwnership.js +105 -0
  72. package/dist/core/agent/pauseOwnership.js.map +1 -0
  73. package/dist/core/agent/presentTool.js +1 -1
  74. package/dist/core/agent/resultCeiling.js +1 -1
  75. package/dist/core/agent/resumeAnswer.js +49 -0
  76. package/dist/core/agent/resumeAnswer.js.map +1 -0
  77. package/dist/core/agent/resumeCheckpoint.js +40 -0
  78. package/dist/core/agent/resumeCheckpoint.js.map +1 -0
  79. package/dist/core/agent/resumeError.js +15 -0
  80. package/dist/core/agent/resumeError.js.map +1 -0
  81. package/dist/core/agent/run/clocks.js +88 -0
  82. package/dist/core/agent/run/clocks.js.map +1 -0
  83. package/dist/core/agent/run/commitRunRedaction.js +16 -0
  84. package/dist/core/agent/run/commitRunRedaction.js.map +1 -0
  85. package/dist/core/agent/run/eventStageIds.js +44 -0
  86. package/dist/core/agent/run/eventStageIds.js.map +1 -0
  87. package/dist/core/agent/run/injectionDelivery.js +30 -0
  88. package/dist/core/agent/run/injectionDelivery.js.map +1 -0
  89. package/dist/core/agent/run/ledgerFacts.js +36 -0
  90. package/dist/core/agent/run/ledgerFacts.js.map +1 -0
  91. package/dist/core/agent/run/resumeRedaction.js +41 -0
  92. package/dist/core/agent/run/resumeRedaction.js.map +1 -0
  93. package/dist/core/agent/run/withoutTime.js +17 -0
  94. package/dist/core/agent/run/withoutTime.js.map +1 -0
  95. package/dist/core/agent/runValues.js +18 -0
  96. package/dist/core/agent/runValues.js.map +1 -0
  97. package/dist/core/agent/scripts/rows.js +1 -1
  98. package/dist/core/agent/selfCallNotice.js +1 -1
  99. package/dist/core/agent/selfCallNotice.js.map +1 -1
  100. package/dist/core/agent/stages/argumentAsk.js +39 -10
  101. package/dist/core/agent/stages/argumentAsk.js.map +1 -1
  102. package/dist/core/agent/stages/argumentParties.js +54 -0
  103. package/dist/core/agent/stages/argumentParties.js.map +1 -0
  104. package/dist/core/agent/stages/batchParties.js +88 -0
  105. package/dist/core/agent/stages/batchParties.js.map +1 -0
  106. package/dist/core/agent/stages/callLLM.js +3 -3
  107. package/dist/core/agent/stages/callLLM.js.map +1 -1
  108. package/dist/core/agent/stages/finalStageContract.js +4 -0
  109. package/dist/core/agent/stages/finalStageContract.js.map +1 -0
  110. package/dist/core/agent/stages/prepareFinal.js +10 -1
  111. package/dist/core/agent/stages/prepareFinal.js.map +1 -1
  112. package/dist/core/agent/stages/searchCoverage.js +1 -1
  113. package/dist/core/agent/stages/seed.js +16 -32
  114. package/dist/core/agent/stages/seed.js.map +1 -1
  115. package/dist/core/agent/stages/servedParties.js +220 -0
  116. package/dist/core/agent/stages/servedParties.js.map +1 -0
  117. package/dist/core/agent/stages/timeLayer.js +2 -2
  118. package/dist/core/agent/stages/toolCallShape.js +22 -0
  119. package/dist/core/agent/stages/toolCallShape.js.map +1 -0
  120. package/dist/core/agent/stages/toolCalls/access/argumentGate.js +48 -0
  121. package/dist/core/agent/stages/toolCalls/access/argumentGate.js.map +1 -0
  122. package/dist/core/agent/stages/toolCalls/access/argumentValidation.js +33 -0
  123. package/dist/core/agent/stages/toolCalls/access/argumentValidation.js.map +1 -0
  124. package/dist/core/agent/stages/toolCalls/access/bindings.js +98 -0
  125. package/dist/core/agent/stages/toolCalls/access/bindings.js.map +1 -0
  126. package/dist/core/agent/stages/toolCalls/access/callState.js +79 -0
  127. package/dist/core/agent/stages/toolCalls/access/callState.js.map +1 -0
  128. package/dist/core/agent/stages/toolCalls/access/capabilityQuestion.js +81 -0
  129. package/dist/core/agent/stages/toolCalls/access/capabilityQuestion.js.map +1 -0
  130. package/dist/core/agent/stages/toolCalls/access/checkInAdmission.js +144 -0
  131. package/dist/core/agent/stages/toolCalls/access/checkInAdmission.js.map +1 -0
  132. package/dist/core/agent/stages/toolCalls/access/heldAnswer.js +39 -0
  133. package/dist/core/agent/stages/toolCalls/access/heldAnswer.js.map +1 -0
  134. package/dist/core/agent/stages/toolCalls/access/middlewareAdmission.js +141 -0
  135. package/dist/core/agent/stages/toolCalls/access/middlewareAdmission.js.map +1 -0
  136. package/dist/core/agent/stages/toolCalls/access/toolPermission.js +103 -0
  137. package/dist/core/agent/stages/toolCalls/access/toolPermission.js.map +1 -0
  138. package/dist/core/agent/stages/toolCalls/batch/completion.js +28 -0
  139. package/dist/core/agent/stages/toolCalls/batch/completion.js.map +1 -0
  140. package/dist/core/agent/stages/toolCalls/batch/dispatchContext.js +137 -0
  141. package/dist/core/agent/stages/toolCalls/batch/dispatchContext.js.map +1 -0
  142. package/dist/core/agent/stages/toolCalls/batch/execute.js +181 -0
  143. package/dist/core/agent/stages/toolCalls/batch/execute.js.map +1 -0
  144. package/dist/core/agent/stages/toolCalls/batch/findingsAdmission.js +52 -0
  145. package/dist/core/agent/stages/toolCalls/batch/findingsAdmission.js.map +1 -0
  146. package/dist/core/agent/stages/toolCalls/batch/inputResolutions.js +22 -0
  147. package/dist/core/agent/stages/toolCalls/batch/inputResolutions.js.map +1 -0
  148. package/dist/core/agent/stages/toolCalls/batch/paused.js +93 -0
  149. package/dist/core/agent/stages/toolCalls/batch/paused.js.map +1 -0
  150. package/dist/core/agent/stages/toolCalls/batch/refusal.js +36 -0
  151. package/dist/core/agent/stages/toolCalls/batch/refusal.js.map +1 -0
  152. package/dist/core/agent/stages/toolCalls/batch/settle.js +69 -0
  153. package/dist/core/agent/stages/toolCalls/batch/settle.js.map +1 -0
  154. package/dist/core/agent/stages/toolCalls/batch/settlementOperations.js +107 -0
  155. package/dist/core/agent/stages/toolCalls/batch/settlementOperations.js.map +1 -0
  156. package/dist/core/agent/stages/toolCalls/compose.js +353 -0
  157. package/dist/core/agent/stages/toolCalls/compose.js.map +1 -0
  158. package/dist/core/agent/stages/toolCalls/contracts/access.js +3 -0
  159. package/dist/core/agent/stages/toolCalls/contracts/access.js.map +1 -0
  160. package/dist/core/agent/stages/toolCalls/contracts/artifacts.js +3 -0
  161. package/dist/core/agent/stages/toolCalls/contracts/artifacts.js.map +1 -0
  162. package/dist/core/agent/stages/toolCalls/contracts/batchCall.js +3 -0
  163. package/dist/core/agent/stages/toolCalls/contracts/batchCall.js.map +1 -0
  164. package/dist/core/agent/stages/toolCalls/contracts/callCells.js +3 -0
  165. package/dist/core/agent/stages/toolCalls/contracts/callCells.js.map +1 -0
  166. package/dist/core/agent/stages/toolCalls/contracts/callFacts.js +3 -0
  167. package/dist/core/agent/stages/toolCalls/contracts/callFacts.js.map +1 -0
  168. package/dist/core/agent/stages/toolCalls/contracts/catalog.js +3 -0
  169. package/dist/core/agent/stages/toolCalls/contracts/catalog.js.map +1 -0
  170. package/dist/core/agent/stages/toolCalls/contracts/dispatchBatch.js +3 -0
  171. package/dist/core/agent/stages/toolCalls/contracts/dispatchBatch.js.map +1 -0
  172. package/dist/core/agent/stages/toolCalls/contracts/dispatchCall.js +3 -0
  173. package/dist/core/agent/stages/toolCalls/contracts/dispatchCall.js.map +1 -0
  174. package/dist/core/agent/stages/toolCalls/contracts/evidence.js +3 -0
  175. package/dist/core/agent/stages/toolCalls/contracts/evidence.js.map +1 -0
  176. package/dist/core/agent/stages/toolCalls/contracts/handlerDeps.js +3 -0
  177. package/dist/core/agent/stages/toolCalls/contracts/handlerDeps.js.map +1 -0
  178. package/dist/core/agent/stages/toolCalls/contracts/inputsDispatch.js +10 -0
  179. package/dist/core/agent/stages/toolCalls/contracts/inputsDispatch.js.map +1 -0
  180. package/dist/core/agent/stages/toolCalls/contracts/invocationInputs.js +3 -0
  181. package/dist/core/agent/stages/toolCalls/contracts/invocationInputs.js.map +1 -0
  182. package/dist/core/agent/stages/toolCalls/contracts/observation.js +3 -0
  183. package/dist/core/agent/stages/toolCalls/contracts/observation.js.map +1 -0
  184. package/dist/core/agent/stages/toolCalls/contracts/operations/artifacts.js +3 -0
  185. package/dist/core/agent/stages/toolCalls/contracts/operations/artifacts.js.map +1 -0
  186. package/dist/core/agent/stages/toolCalls/contracts/operations/catalog.js +3 -0
  187. package/dist/core/agent/stages/toolCalls/contracts/operations/catalog.js.map +1 -0
  188. package/dist/core/agent/stages/toolCalls/contracts/operations/context.js +3 -0
  189. package/dist/core/agent/stages/toolCalls/contracts/operations/context.js.map +1 -0
  190. package/dist/core/agent/stages/toolCalls/contracts/operations/coverage.js +3 -0
  191. package/dist/core/agent/stages/toolCalls/contracts/operations/coverage.js.map +1 -0
  192. package/dist/core/agent/stages/toolCalls/contracts/operations/credentials.js +3 -0
  193. package/dist/core/agent/stages/toolCalls/contracts/operations/credentials.js.map +1 -0
  194. package/dist/core/agent/stages/toolCalls/contracts/operations/effects.js +3 -0
  195. package/dist/core/agent/stages/toolCalls/contracts/operations/effects.js.map +1 -0
  196. package/dist/core/agent/stages/toolCalls/contracts/operations/integrity.js +3 -0
  197. package/dist/core/agent/stages/toolCalls/contracts/operations/integrity.js.map +1 -0
  198. package/dist/core/agent/stages/toolCalls/contracts/operations/limits.js +3 -0
  199. package/dist/core/agent/stages/toolCalls/contracts/operations/limits.js.map +1 -0
  200. package/dist/core/agent/stages/toolCalls/contracts/operations/middleware.js +3 -0
  201. package/dist/core/agent/stages/toolCalls/contracts/operations/middleware.js.map +1 -0
  202. package/dist/core/agent/stages/toolCalls/contracts/operations/observations.js +3 -0
  203. package/dist/core/agent/stages/toolCalls/contracts/operations/observations.js.map +1 -0
  204. package/dist/core/agent/stages/toolCalls/contracts/operations/progress.js +3 -0
  205. package/dist/core/agent/stages/toolCalls/contracts/operations/progress.js.map +1 -0
  206. package/dist/core/agent/stages/toolCalls/contracts/operations/resources.js +3 -0
  207. package/dist/core/agent/stages/toolCalls/contracts/operations/resources.js.map +1 -0
  208. package/dist/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.js +3 -0
  209. package/dist/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.js.map +1 -0
  210. package/dist/core/agent/stages/toolCalls/contracts/operations/scripts.js +3 -0
  211. package/dist/core/agent/stages/toolCalls/contracts/operations/scripts.js.map +1 -0
  212. package/dist/core/agent/stages/toolCalls/contracts/operations/semantics.js +3 -0
  213. package/dist/core/agent/stages/toolCalls/contracts/operations/semantics.js.map +1 -0
  214. package/dist/core/agent/stages/toolCalls/contracts/operations/settlement.js +3 -0
  215. package/dist/core/agent/stages/toolCalls/contracts/operations/settlement.js.map +1 -0
  216. package/dist/core/agent/stages/toolCalls/contracts/operations/steps.js +3 -0
  217. package/dist/core/agent/stages/toolCalls/contracts/operations/steps.js.map +1 -0
  218. package/dist/core/agent/stages/toolCalls/contracts/resources.js +3 -0
  219. package/dist/core/agent/stages/toolCalls/contracts/resources.js.map +1 -0
  220. package/dist/core/agent/stages/toolCalls/contracts/results.js +3 -0
  221. package/dist/core/agent/stages/toolCalls/contracts/results.js.map +1 -0
  222. package/dist/core/agent/stages/toolCalls/contracts/resumeFrames.js +3 -0
  223. package/dist/core/agent/stages/toolCalls/contracts/resumeFrames.js.map +1 -0
  224. package/dist/core/agent/stages/toolCalls/contracts/routing.js +3 -0
  225. package/dist/core/agent/stages/toolCalls/contracts/routing.js.map +1 -0
  226. package/dist/core/agent/stages/toolCalls/decorators/limitsOperations.js +84 -0
  227. package/dist/core/agent/stages/toolCalls/decorators/limitsOperations.js.map +1 -0
  228. package/dist/core/agent/stages/toolCalls/decorators/middlewareOperations.js +87 -0
  229. package/dist/core/agent/stages/toolCalls/decorators/middlewareOperations.js.map +1 -0
  230. package/dist/core/agent/stages/toolCalls/decorators/reportingCredentials.js +53 -0
  231. package/dist/core/agent/stages/toolCalls/decorators/reportingCredentials.js.map +1 -0
  232. package/dist/core/agent/stages/toolCalls/evidence/coverageOperations.js +236 -0
  233. package/dist/core/agent/stages/toolCalls/evidence/coverageOperations.js.map +1 -0
  234. package/dist/core/agent/stages/toolCalls/evidence/integrityOperations.js +141 -0
  235. package/dist/core/agent/stages/toolCalls/evidence/integrityOperations.js.map +1 -0
  236. package/dist/core/agent/stages/toolCalls/evidence/judgeLanded.js +59 -0
  237. package/dist/core/agent/stages/toolCalls/evidence/judgeLanded.js.map +1 -0
  238. package/dist/core/agent/stages/toolCalls/evidence/madeInRun.js +7 -0
  239. package/dist/core/agent/stages/toolCalls/evidence/madeInRun.js.map +1 -0
  240. package/dist/core/agent/stages/toolCalls/evidence/producerCorpus.js +38 -0
  241. package/dist/core/agent/stages/toolCalls/evidence/producerCorpus.js.map +1 -0
  242. package/dist/core/agent/stages/toolCalls/evidence/scriptsOperations.js +160 -0
  243. package/dist/core/agent/stages/toolCalls/evidence/scriptsOperations.js.map +1 -0
  244. package/dist/core/agent/stages/toolCalls/evidence/semanticsOperations.js +94 -0
  245. package/dist/core/agent/stages/toolCalls/evidence/semanticsOperations.js.map +1 -0
  246. package/dist/core/agent/stages/toolCalls/evidence/sourceClock.js +22 -0
  247. package/dist/core/agent/stages/toolCalls/evidence/sourceClock.js.map +1 -0
  248. package/dist/core/agent/stages/toolCalls/evidence/towers.js +42 -0
  249. package/dist/core/agent/stages/toolCalls/evidence/towers.js.map +1 -0
  250. package/dist/core/agent/stages/toolCalls/execution/artifactsOperations.js +265 -0
  251. package/dist/core/agent/stages/toolCalls/execution/artifactsOperations.js.map +1 -0
  252. package/dist/core/agent/stages/toolCalls/execution/callStart.js +107 -0
  253. package/dist/core/agent/stages/toolCalls/execution/callStart.js.map +1 -0
  254. package/dist/core/agent/stages/toolCalls/execution/catalogOperations.js +200 -0
  255. package/dist/core/agent/stages/toolCalls/execution/catalogOperations.js.map +1 -0
  256. package/dist/core/agent/stages/toolCalls/execution/contextOperations.js +190 -0
  257. package/dist/core/agent/stages/toolCalls/execution/contextOperations.js.map +1 -0
  258. package/dist/core/agent/stages/toolCalls/execution/credentialAdmission.js +128 -0
  259. package/dist/core/agent/stages/toolCalls/execution/credentialAdmission.js.map +1 -0
  260. package/dist/core/agent/stages/toolCalls/execution/credentialsOperations.js +15 -0
  261. package/dist/core/agent/stages/toolCalls/execution/credentialsOperations.js.map +1 -0
  262. package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js +172 -0
  263. package/dist/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -0
  264. package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js +515 -0
  265. package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -0
  266. package/dist/core/agent/stages/toolCalls/execution/initialInvocation.js +368 -0
  267. package/dist/core/agent/stages/toolCalls/execution/initialInvocation.js.map +1 -0
  268. package/dist/core/agent/stages/toolCalls/execution/resourcesOperations.js +90 -0
  269. package/dist/core/agent/stages/toolCalls/execution/resourcesOperations.js.map +1 -0
  270. package/dist/core/agent/stages/toolCalls/execution/resumedInvocation.js +429 -0
  271. package/dist/core/agent/stages/toolCalls/execution/resumedInvocation.js.map +1 -0
  272. package/dist/core/agent/stages/toolCalls/execution/wantedArguments.js +18 -0
  273. package/dist/core/agent/stages/toolCalls/execution/wantedArguments.js.map +1 -0
  274. package/dist/core/agent/stages/toolCalls/helpers/dedupeIds.js +10 -0
  275. package/dist/core/agent/stages/toolCalls/helpers/dedupeIds.js.map +1 -0
  276. package/dist/core/agent/stages/toolCalls/helpers/dispatchRefusals.js +83 -0
  277. package/dist/core/agent/stages/toolCalls/helpers/dispatchRefusals.js.map +1 -0
  278. package/dist/core/agent/stages/toolCalls/helpers/mountedCursor.js +46 -0
  279. package/dist/core/agent/stages/toolCalls/helpers/mountedCursor.js.map +1 -0
  280. package/dist/core/agent/stages/toolCalls/helpers/periodWarnings.js +60 -0
  281. package/dist/core/agent/stages/toolCalls/helpers/periodWarnings.js.map +1 -0
  282. package/dist/core/agent/stages/toolCalls/helpers/readSkillRefusal.js +141 -0
  283. package/dist/core/agent/stages/toolCalls/helpers/readSkillRefusal.js.map +1 -0
  284. package/dist/core/agent/stages/toolCalls/helpers/sourceNote.js +10 -0
  285. package/dist/core/agent/stages/toolCalls/helpers/sourceNote.js.map +1 -0
  286. package/dist/core/agent/stages/toolCalls/helpers/unscopedRun.js +15 -0
  287. package/dist/core/agent/stages/toolCalls/helpers/unscopedRun.js.map +1 -0
  288. package/dist/core/agent/stages/toolCalls/index.js +33 -0
  289. package/dist/core/agent/stages/toolCalls/index.js.map +1 -0
  290. package/dist/core/agent/stages/toolCalls/observation/callSettlement.js +48 -0
  291. package/dist/core/agent/stages/toolCalls/observation/callSettlement.js.map +1 -0
  292. package/dist/core/agent/stages/toolCalls/observation/observationsOperations.js +61 -0
  293. package/dist/core/agent/stages/toolCalls/observation/observationsOperations.js.map +1 -0
  294. package/dist/core/agent/stages/toolCalls/observation/progressOperations.js +32 -0
  295. package/dist/core/agent/stages/toolCalls/observation/progressOperations.js.map +1 -0
  296. package/dist/core/agent/stages/toolCalls/resume/ask.js +427 -0
  297. package/dist/core/agent/stages/toolCalls/resume/ask.js.map +1 -0
  298. package/dist/core/agent/stages/toolCalls/resume/checkIn.js +193 -0
  299. package/dist/core/agent/stages/toolCalls/resume/checkIn.js.map +1 -0
  300. package/dist/core/agent/stages/toolCalls/resume/credential.js +139 -0
  301. package/dist/core/agent/stages/toolCalls/resume/credential.js.map +1 -0
  302. package/dist/core/agent/stages/toolCalls/resume/handler.js +175 -0
  303. package/dist/core/agent/stages/toolCalls/resume/handler.js.map +1 -0
  304. package/dist/core/agent/stages/toolCalls/resume/plain.js +144 -0
  305. package/dist/core/agent/stages/toolCalls/resume/plain.js.map +1 -0
  306. package/dist/core/agent/stages/toolCalls/routing/effectsOperations.js +264 -0
  307. package/dist/core/agent/stages/toolCalls/routing/effectsOperations.js.map +1 -0
  308. package/dist/core/agent/stages/toolCalls/routing/policyHalt.js +40 -0
  309. package/dist/core/agent/stages/toolCalls/routing/policyHalt.js.map +1 -0
  310. package/dist/core/agent/stages/toolCalls/routing/readSkillRoute.js +238 -0
  311. package/dist/core/agent/stages/toolCalls/routing/readSkillRoute.js.map +1 -0
  312. package/dist/core/agent/stages/toolCalls/routing/skillActivation.js +52 -0
  313. package/dist/core/agent/stages/toolCalls/routing/skillActivation.js.map +1 -0
  314. package/dist/core/agent/stages/toolCalls/routing/stepsOperations.js +149 -0
  315. package/dist/core/agent/stages/toolCalls/routing/stepsOperations.js.map +1 -0
  316. package/dist/core/agent/stages/toolResolver.js +84 -38
  317. package/dist/core/agent/stages/toolResolver.js.map +1 -1
  318. package/dist/core/agent/toolChoice/pick.js +1 -1
  319. package/dist/core/agent/toolResultCap.js +0 -0
  320. package/dist/core/agent/types.js +0 -3
  321. package/dist/core/agent/types.js.map +1 -1
  322. package/dist/core/agent/window/toolNames.js +3 -3
  323. package/dist/core/answerConsumption.js +16 -0
  324. package/dist/core/answerConsumption.js.map +1 -0
  325. package/dist/core/checkin.js +1 -1
  326. package/dist/core/codeRunnerTool.js +1 -1
  327. package/dist/core/consentLedger.js +124 -0
  328. package/dist/core/consentLedger.js.map +1 -0
  329. package/dist/core/consentRequest.js +38 -156
  330. package/dist/core/consentRequest.js.map +1 -1
  331. package/dist/core/conversation.js +15 -48
  332. package/dist/core/conversation.js.map +1 -1
  333. package/dist/core/memberRun.js +2 -1
  334. package/dist/core/memberRun.js.map +1 -1
  335. package/dist/core/pause.js +5 -5
  336. package/dist/core/pauseRecord.js +23 -0
  337. package/dist/core/pauseRecord.js.map +1 -0
  338. package/dist/core/runEntry.js +30 -0
  339. package/dist/core/runEntry.js.map +1 -0
  340. package/dist/core/runnerCoreValues.js +3 -0
  341. package/dist/core/runnerCoreValues.js.map +1 -0
  342. package/dist/core/runnerExecution.js +175 -0
  343. package/dist/core/runnerExecution.js.map +1 -0
  344. package/dist/core/runnerLive.js.map +1 -1
  345. package/dist/core/slots/buildThinkingSubflow.js +2 -2
  346. package/dist/core/slots/buildThinkingSubflow.js.map +1 -1
  347. package/dist/core/slots/buildToolsSlot.js +25 -102
  348. package/dist/core/slots/buildToolsSlot.js.map +1 -1
  349. package/dist/core/slots/discoverTools.js +99 -0
  350. package/dist/core/slots/discoverTools.js.map +1 -0
  351. package/dist/core-flow/Conditional.js +25 -72
  352. package/dist/core-flow/Conditional.js.map +1 -1
  353. package/dist/core-flow/Graph.js +63 -120
  354. package/dist/core-flow/Graph.js.map +1 -1
  355. package/dist/core-flow/Loop.js +28 -82
  356. package/dist/core-flow/Loop.js.map +1 -1
  357. package/dist/core-flow/Parallel.js +58 -148
  358. package/dist/core-flow/Parallel.js.map +1 -1
  359. package/dist/core-flow/Sequence.js +25 -73
  360. package/dist/core-flow/Sequence.js.map +1 -1
  361. package/dist/core-flow/Workflow.js +24 -72
  362. package/dist/core-flow/Workflow.js.map +1 -1
  363. package/dist/esm/adapters/observability/auditShapes.d.ts +5 -31
  364. package/dist/esm/adapters/observability/auditShapes.js +9 -31
  365. package/dist/esm/adapters/observability/auditShapes.js.map +1 -1
  366. package/dist/esm/adapters/observability/otel.d.ts +1 -1
  367. package/dist/esm/bridge/eventMeta.d.ts +2 -0
  368. package/dist/esm/bridge/eventMeta.js +1 -1
  369. package/dist/esm/bridge/eventMeta.js.map +1 -1
  370. package/dist/esm/context-bisect/ablation.js +1 -1
  371. package/dist/esm/context-bisect/ablation.js.map +1 -1
  372. package/dist/esm/context-bisect/arms/probe.js +1 -1
  373. package/dist/esm/context-bisect/arms/probe.js.map +1 -1
  374. package/dist/esm/context-bisect/restoration.js +1 -1
  375. package/dist/esm/context-bisect/restoration.js.map +1 -1
  376. package/dist/esm/core/Agent.d.ts +18 -121
  377. package/dist/esm/core/Agent.js +800 -1145
  378. package/dist/esm/core/Agent.js.map +1 -1
  379. package/dist/esm/core/LLMCall.d.ts +1 -4
  380. package/dist/esm/core/LLMCall.js +49 -88
  381. package/dist/esm/core/LLMCall.js.map +1 -1
  382. package/dist/esm/core/RunnerBase.d.ts +42 -114
  383. package/dist/esm/core/RunnerBase.js +140 -210
  384. package/dist/esm/core/RunnerBase.js.map +1 -1
  385. package/dist/esm/core/agent/arguments/answerRows.d.ts +26 -0
  386. package/dist/esm/core/agent/arguments/answerRows.js +78 -0
  387. package/dist/esm/core/agent/arguments/answerRows.js.map +1 -0
  388. package/dist/esm/core/agent/arguments/ask.d.ts +5 -11
  389. package/dist/esm/core/agent/arguments/ask.js +24 -87
  390. package/dist/esm/core/agent/arguments/ask.js.map +1 -1
  391. package/dist/esm/core/agent/arguments/dispatch.d.ts +4 -4
  392. package/dist/esm/core/agent/arguments/dispatch.js +27 -10
  393. package/dist/esm/core/agent/arguments/dispatch.js.map +1 -1
  394. package/dist/esm/core/agent/arguments/kept.d.ts +1 -1
  395. package/dist/esm/core/agent/arguments/kept.js +1 -1
  396. package/dist/esm/core/agent/arguments/partialWindow.d.ts +2 -1
  397. package/dist/esm/core/agent/arguments/partialWindow.js +1 -1
  398. package/dist/esm/core/agent/arguments/partialWindow.js.map +1 -1
  399. package/dist/esm/core/agent/arguments/pendingPrivateAsk.d.ts +37 -0
  400. package/dist/esm/core/agent/arguments/pendingPrivateAsk.js +114 -0
  401. package/dist/esm/core/agent/arguments/pendingPrivateAsk.js.map +1 -0
  402. package/dist/esm/core/agent/arguments/privateAnswers.d.ts +46 -0
  403. package/dist/esm/core/agent/arguments/privateAnswers.js +198 -0
  404. package/dist/esm/core/agent/arguments/privateAnswers.js.map +1 -0
  405. package/dist/esm/core/agent/arguments/resolutionRows.d.ts +29 -0
  406. package/dist/esm/core/agent/arguments/resolutionRows.js +171 -0
  407. package/dist/esm/core/agent/arguments/resolutionRows.js.map +1 -0
  408. package/dist/esm/core/agent/arguments/resolve.d.ts +2 -13
  409. package/dist/esm/core/agent/arguments/resolve.js +8 -144
  410. package/dist/esm/core/agent/arguments/resolve.js.map +1 -1
  411. package/dist/esm/core/agent/arguments/serve.d.ts +0 -5
  412. package/dist/esm/core/agent/arguments/serve.js +3 -12
  413. package/dist/esm/core/agent/arguments/serve.js.map +1 -1
  414. package/dist/esm/core/agent/arguments/subflow.js +7 -1
  415. package/dist/esm/core/agent/arguments/subflow.js.map +1 -1
  416. package/dist/esm/core/agent/buildAgentChart.d.ts +3 -326
  417. package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
  418. package/dist/esm/core/agent/buildToolRegistry.d.ts +1 -1
  419. package/dist/esm/core/agent/buildToolRegistry.js +1 -1
  420. package/dist/esm/core/agent/callerIdentity.d.ts +9 -64
  421. package/dist/esm/core/agent/callerIdentity.js +21 -106
  422. package/dist/esm/core/agent/callerIdentity.js.map +1 -1
  423. package/dist/esm/core/agent/chartContract.d.ts +327 -0
  424. package/dist/esm/core/agent/chartContract.js +3 -0
  425. package/dist/esm/core/agent/chartContract.js.map +1 -0
  426. package/dist/esm/core/agent/checkpointDomain.d.ts +11 -0
  427. package/dist/esm/core/agent/checkpointDomain.js +53 -0
  428. package/dist/esm/core/agent/checkpointDomain.js.map +1 -0
  429. package/dist/esm/core/agent/componentObservers.d.ts +14 -0
  430. package/dist/esm/core/agent/componentObservers.js +129 -0
  431. package/dist/esm/core/agent/componentObservers.js.map +1 -0
  432. package/dist/esm/core/agent/componentResources.d.ts +39 -0
  433. package/dist/esm/core/agent/componentResources.js +110 -0
  434. package/dist/esm/core/agent/componentResources.js.map +1 -0
  435. package/dist/esm/core/agent/evidence/evidenceIndex.js +1 -1
  436. package/dist/esm/core/agent/evidence/evidenceIndex.js.map +1 -1
  437. package/dist/esm/core/agent/evidence/frames.js +3 -2
  438. package/dist/esm/core/agent/evidence/frames.js.map +1 -1
  439. package/dist/esm/core/agent/evidence/servedJson.d.ts +1 -1
  440. package/dist/esm/core/agent/evidence/servedJson.js +1 -1
  441. package/dist/esm/core/agent/findings/contingent.d.ts +1 -1
  442. package/dist/esm/core/agent/findings/contingent.js +1 -1
  443. package/dist/esm/core/agent/findings/judge.d.ts +1 -1
  444. package/dist/esm/core/agent/findings/judge.js +1 -1
  445. package/dist/esm/core/agent/findings/types.d.ts +1 -1
  446. package/dist/esm/core/agent/findings/unsettled.d.ts +3 -3
  447. package/dist/esm/core/agent/findings/unsettled.js +3 -3
  448. package/dist/esm/core/agent/honesty/inputsMountContract.d.ts +66 -0
  449. package/dist/esm/core/agent/honesty/inputsMountContract.js +2 -0
  450. package/dist/esm/core/agent/honesty/inputsMountContract.js.map +1 -0
  451. package/dist/esm/core/agent/honesty/mounts.d.ts +4 -66
  452. package/dist/esm/core/agent/honesty/mounts.js +42 -30
  453. package/dist/esm/core/agent/honesty/mounts.js.map +1 -1
  454. package/dist/esm/core/agent/hostTurn.d.ts +17 -0
  455. package/dist/esm/core/agent/hostTurn.js +36 -0
  456. package/dist/esm/core/agent/hostTurn.js.map +1 -0
  457. package/dist/esm/core/agent/pauseOwnership.d.ts +24 -0
  458. package/dist/esm/core/agent/pauseOwnership.js +97 -0
  459. package/dist/esm/core/agent/pauseOwnership.js.map +1 -0
  460. package/dist/esm/core/agent/presentTool.d.ts +1 -1
  461. package/dist/esm/core/agent/presentTool.js +1 -1
  462. package/dist/esm/core/agent/resultCeiling.d.ts +1 -1
  463. package/dist/esm/core/agent/resultCeiling.js +1 -1
  464. package/dist/esm/core/agent/resumeAnswer.d.ts +10 -0
  465. package/dist/esm/core/agent/resumeAnswer.js +43 -0
  466. package/dist/esm/core/agent/resumeAnswer.js.map +1 -0
  467. package/dist/esm/core/agent/resumeCheckpoint.d.ts +12 -0
  468. package/dist/esm/core/agent/resumeCheckpoint.js +34 -0
  469. package/dist/esm/core/agent/resumeCheckpoint.js.map +1 -0
  470. package/dist/esm/core/agent/resumeError.d.ts +8 -0
  471. package/dist/esm/core/agent/resumeError.js +11 -0
  472. package/dist/esm/core/agent/resumeError.js.map +1 -0
  473. package/dist/esm/core/agent/run/clocks.d.ts +44 -0
  474. package/dist/esm/core/agent/run/clocks.js +81 -0
  475. package/dist/esm/core/agent/run/clocks.js.map +1 -0
  476. package/dist/esm/core/agent/run/commitRunRedaction.d.ts +4 -0
  477. package/dist/esm/core/agent/run/commitRunRedaction.js +12 -0
  478. package/dist/esm/core/agent/run/commitRunRedaction.js.map +1 -0
  479. package/dist/esm/core/agent/run/eventStageIds.d.ts +40 -0
  480. package/dist/esm/core/agent/run/eventStageIds.js +41 -0
  481. package/dist/esm/core/agent/run/eventStageIds.js.map +1 -0
  482. package/dist/esm/core/agent/run/injectionDelivery.d.ts +4 -0
  483. package/dist/esm/core/agent/run/injectionDelivery.js +26 -0
  484. package/dist/esm/core/agent/run/injectionDelivery.js.map +1 -0
  485. package/dist/esm/core/agent/run/ledgerFacts.d.ts +8 -0
  486. package/dist/esm/core/agent/run/ledgerFacts.js +31 -0
  487. package/dist/esm/core/agent/run/ledgerFacts.js.map +1 -0
  488. package/dist/esm/core/agent/run/resumeRedaction.d.ts +6 -0
  489. package/dist/esm/core/agent/run/resumeRedaction.js +36 -0
  490. package/dist/esm/core/agent/run/resumeRedaction.js.map +1 -0
  491. package/dist/esm/core/agent/run/withoutTime.d.ts +8 -0
  492. package/dist/esm/core/agent/run/withoutTime.js +13 -0
  493. package/dist/esm/core/agent/run/withoutTime.js.map +1 -0
  494. package/dist/esm/core/agent/runValues.d.ts +71 -0
  495. package/dist/esm/core/agent/runValues.js +14 -0
  496. package/dist/esm/core/agent/runValues.js.map +1 -0
  497. package/dist/esm/core/agent/scripts/rows.d.ts +1 -1
  498. package/dist/esm/core/agent/scripts/rows.js +1 -1
  499. package/dist/esm/core/agent/scripts/types.d.ts +1 -1
  500. package/dist/esm/core/agent/selfCallNotice.js +1 -1
  501. package/dist/esm/core/agent/selfCallNotice.js.map +1 -1
  502. package/dist/esm/core/agent/stages/argumentAsk.d.ts +7 -1
  503. package/dist/esm/core/agent/stages/argumentAsk.js +39 -10
  504. package/dist/esm/core/agent/stages/argumentAsk.js.map +1 -1
  505. package/dist/esm/core/agent/stages/argumentParties.d.ts +3 -0
  506. package/dist/esm/core/agent/stages/argumentParties.js +50 -0
  507. package/dist/esm/core/agent/stages/argumentParties.js.map +1 -0
  508. package/dist/esm/core/agent/stages/batchParties.d.ts +21 -0
  509. package/dist/esm/core/agent/stages/batchParties.js +81 -0
  510. package/dist/esm/core/agent/stages/batchParties.js.map +1 -0
  511. package/dist/esm/core/agent/stages/callLLM.js +3 -3
  512. package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
  513. package/dist/esm/core/agent/stages/finalStageContract.d.ts +45 -0
  514. package/dist/esm/core/agent/stages/finalStageContract.js +3 -0
  515. package/dist/esm/core/agent/stages/finalStageContract.js.map +1 -0
  516. package/dist/esm/core/agent/stages/prepareFinal.d.ts +2 -45
  517. package/dist/esm/core/agent/stages/prepareFinal.js +9 -0
  518. package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -1
  519. package/dist/esm/core/agent/stages/searchCoverage.d.ts +1 -1
  520. package/dist/esm/core/agent/stages/searchCoverage.js +1 -1
  521. package/dist/esm/core/agent/stages/seed.js +15 -31
  522. package/dist/esm/core/agent/stages/seed.js.map +1 -1
  523. package/dist/esm/core/agent/stages/servedParties.d.ts +39 -0
  524. package/dist/esm/core/agent/stages/servedParties.js +214 -0
  525. package/dist/esm/core/agent/stages/servedParties.js.map +1 -0
  526. package/dist/esm/core/agent/stages/timeLayer.d.ts +3 -3
  527. package/dist/esm/core/agent/stages/timeLayer.js +2 -2
  528. package/dist/esm/core/agent/stages/toolCallShape.d.ts +7 -0
  529. package/dist/esm/core/agent/stages/toolCallShape.js +18 -0
  530. package/dist/esm/core/agent/stages/toolCallShape.js.map +1 -0
  531. package/dist/esm/core/agent/stages/toolCalls/access/argumentGate.d.ts +21 -0
  532. package/dist/esm/core/agent/stages/toolCalls/access/argumentGate.js +44 -0
  533. package/dist/esm/core/agent/stages/toolCalls/access/argumentGate.js.map +1 -0
  534. package/dist/esm/core/agent/stages/toolCalls/access/argumentValidation.d.ts +10 -0
  535. package/dist/esm/core/agent/stages/toolCalls/access/argumentValidation.js +29 -0
  536. package/dist/esm/core/agent/stages/toolCalls/access/argumentValidation.js.map +1 -0
  537. package/dist/esm/core/agent/stages/toolCalls/access/bindings.d.ts +61 -0
  538. package/dist/esm/core/agent/stages/toolCalls/access/bindings.js +88 -0
  539. package/dist/esm/core/agent/stages/toolCalls/access/bindings.js.map +1 -0
  540. package/dist/esm/core/agent/stages/toolCalls/access/callState.d.ts +14 -0
  541. package/dist/esm/core/agent/stages/toolCalls/access/callState.js +75 -0
  542. package/dist/esm/core/agent/stages/toolCalls/access/callState.js.map +1 -0
  543. package/dist/esm/core/agent/stages/toolCalls/access/capabilityQuestion.d.ts +28 -0
  544. package/dist/esm/core/agent/stages/toolCalls/access/capabilityQuestion.js +77 -0
  545. package/dist/esm/core/agent/stages/toolCalls/access/capabilityQuestion.js.map +1 -0
  546. package/dist/esm/core/agent/stages/toolCalls/access/checkInAdmission.d.ts +44 -0
  547. package/dist/esm/core/agent/stages/toolCalls/access/checkInAdmission.js +140 -0
  548. package/dist/esm/core/agent/stages/toolCalls/access/checkInAdmission.js.map +1 -0
  549. package/dist/esm/core/agent/stages/toolCalls/access/heldAnswer.d.ts +8 -0
  550. package/dist/esm/core/agent/stages/toolCalls/access/heldAnswer.js +35 -0
  551. package/dist/esm/core/agent/stages/toolCalls/access/heldAnswer.js.map +1 -0
  552. package/dist/esm/core/agent/stages/toolCalls/access/middlewareAdmission.d.ts +50 -0
  553. package/dist/esm/core/agent/stages/toolCalls/access/middlewareAdmission.js +137 -0
  554. package/dist/esm/core/agent/stages/toolCalls/access/middlewareAdmission.js.map +1 -0
  555. package/dist/esm/core/agent/stages/toolCalls/access/toolPermission.d.ts +24 -0
  556. package/dist/esm/core/agent/stages/toolCalls/access/toolPermission.js +99 -0
  557. package/dist/esm/core/agent/stages/toolCalls/access/toolPermission.js.map +1 -0
  558. package/dist/esm/core/agent/stages/toolCalls/batch/completion.d.ts +18 -0
  559. package/dist/esm/core/agent/stages/toolCalls/batch/completion.js +24 -0
  560. package/dist/esm/core/agent/stages/toolCalls/batch/completion.js.map +1 -0
  561. package/dist/esm/core/agent/stages/toolCalls/batch/dispatchContext.d.ts +36 -0
  562. package/dist/esm/core/agent/stages/toolCalls/batch/dispatchContext.js +133 -0
  563. package/dist/esm/core/agent/stages/toolCalls/batch/dispatchContext.js.map +1 -0
  564. package/dist/esm/core/agent/stages/toolCalls/batch/execute.d.ts +7 -0
  565. package/dist/esm/core/agent/stages/toolCalls/batch/execute.js +154 -0
  566. package/dist/esm/core/agent/stages/toolCalls/batch/execute.js.map +1 -0
  567. package/dist/esm/core/agent/stages/toolCalls/batch/findingsAdmission.d.ts +18 -0
  568. package/dist/esm/core/agent/stages/toolCalls/batch/findingsAdmission.js +48 -0
  569. package/dist/esm/core/agent/stages/toolCalls/batch/findingsAdmission.js.map +1 -0
  570. package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.d.ts +6 -0
  571. package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.js +18 -0
  572. package/dist/esm/core/agent/stages/toolCalls/batch/inputResolutions.js.map +1 -0
  573. package/dist/esm/core/agent/stages/toolCalls/batch/paused.d.ts +65 -0
  574. package/dist/esm/core/agent/stages/toolCalls/batch/paused.js +88 -0
  575. package/dist/esm/core/agent/stages/toolCalls/batch/paused.js.map +1 -0
  576. package/dist/esm/core/agent/stages/toolCalls/batch/refusal.d.ts +5 -0
  577. package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js +32 -0
  578. package/dist/esm/core/agent/stages/toolCalls/batch/refusal.js.map +1 -0
  579. package/dist/esm/core/agent/stages/toolCalls/batch/settle.d.ts +66 -0
  580. package/dist/esm/core/agent/stages/toolCalls/batch/settle.js +63 -0
  581. package/dist/esm/core/agent/stages/toolCalls/batch/settle.js.map +1 -0
  582. package/dist/esm/core/agent/stages/toolCalls/batch/settlementOperations.d.ts +17 -0
  583. package/dist/esm/core/agent/stages/toolCalls/batch/settlementOperations.js +103 -0
  584. package/dist/esm/core/agent/stages/toolCalls/batch/settlementOperations.js.map +1 -0
  585. package/dist/esm/core/agent/stages/toolCalls/compose.d.ts +239 -0
  586. package/dist/esm/core/agent/stages/toolCalls/compose.js +349 -0
  587. package/dist/esm/core/agent/stages/toolCalls/compose.js.map +1 -0
  588. package/dist/esm/core/agent/stages/toolCalls/contracts/access.d.ts +110 -0
  589. package/dist/esm/core/agent/stages/toolCalls/contracts/access.js +2 -0
  590. package/dist/esm/core/agent/stages/toolCalls/contracts/access.js.map +1 -0
  591. package/dist/esm/core/agent/stages/toolCalls/contracts/artifacts.d.ts +26 -0
  592. package/dist/esm/core/agent/stages/toolCalls/contracts/artifacts.js +2 -0
  593. package/dist/esm/core/agent/stages/toolCalls/contracts/artifacts.js.map +1 -0
  594. package/dist/esm/core/agent/stages/toolCalls/contracts/batchCall.d.ts +8 -0
  595. package/dist/esm/core/agent/stages/toolCalls/contracts/batchCall.js +2 -0
  596. package/dist/esm/core/agent/stages/toolCalls/contracts/batchCall.js.map +1 -0
  597. package/dist/esm/core/agent/stages/toolCalls/contracts/callCells.d.ts +43 -0
  598. package/dist/esm/core/agent/stages/toolCalls/contracts/callCells.js +2 -0
  599. package/dist/esm/core/agent/stages/toolCalls/contracts/callCells.js.map +1 -0
  600. package/dist/esm/core/agent/stages/toolCalls/contracts/callFacts.d.ts +50 -0
  601. package/dist/esm/core/agent/stages/toolCalls/contracts/callFacts.js +2 -0
  602. package/dist/esm/core/agent/stages/toolCalls/contracts/callFacts.js.map +1 -0
  603. package/dist/esm/core/agent/stages/toolCalls/contracts/catalog.d.ts +56 -0
  604. package/dist/esm/core/agent/stages/toolCalls/contracts/catalog.js +2 -0
  605. package/dist/esm/core/agent/stages/toolCalls/contracts/catalog.js.map +1 -0
  606. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchBatch.d.ts +17 -0
  607. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchBatch.js +2 -0
  608. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchBatch.js.map +1 -0
  609. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchCall.d.ts +14 -0
  610. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchCall.js +2 -0
  611. package/dist/esm/core/agent/stages/toolCalls/contracts/dispatchCall.js.map +1 -0
  612. package/dist/esm/core/agent/stages/toolCalls/contracts/evidence.d.ts +211 -0
  613. package/dist/esm/core/agent/stages/toolCalls/contracts/evidence.js +2 -0
  614. package/dist/esm/core/agent/stages/toolCalls/contracts/evidence.js.map +1 -0
  615. package/dist/esm/core/agent/stages/toolCalls/contracts/handlerDeps.d.ts +11 -0
  616. package/dist/esm/core/agent/stages/toolCalls/contracts/handlerDeps.js +2 -0
  617. package/dist/esm/core/agent/stages/toolCalls/contracts/handlerDeps.js.map +1 -0
  618. package/dist/esm/core/agent/stages/toolCalls/contracts/inputsDispatch.d.ts +2 -0
  619. package/dist/esm/core/agent/stages/toolCalls/contracts/inputsDispatch.js +9 -0
  620. package/dist/esm/core/agent/stages/toolCalls/contracts/inputsDispatch.js.map +1 -0
  621. package/dist/esm/core/agent/stages/toolCalls/contracts/invocationInputs.d.ts +11 -0
  622. package/dist/esm/core/agent/stages/toolCalls/contracts/invocationInputs.js +2 -0
  623. package/dist/esm/core/agent/stages/toolCalls/contracts/invocationInputs.js.map +1 -0
  624. package/dist/esm/core/agent/stages/toolCalls/contracts/observation.d.ts +24 -0
  625. package/dist/esm/core/agent/stages/toolCalls/contracts/observation.js +2 -0
  626. package/dist/esm/core/agent/stages/toolCalls/contracts/observation.js.map +1 -0
  627. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/artifacts.d.ts +37 -0
  628. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/artifacts.js +2 -0
  629. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/artifacts.js.map +1 -0
  630. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/catalog.d.ts +31 -0
  631. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/catalog.js +2 -0
  632. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/catalog.js.map +1 -0
  633. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/context.d.ts +14 -0
  634. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/context.js +2 -0
  635. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/context.js.map +1 -0
  636. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/coverage.d.ts +23 -0
  637. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/coverage.js +2 -0
  638. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/coverage.js.map +1 -0
  639. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/credentials.d.ts +5 -0
  640. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/credentials.js +2 -0
  641. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/credentials.js.map +1 -0
  642. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/effects.d.ts +14 -0
  643. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/effects.js +2 -0
  644. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/effects.js.map +1 -0
  645. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/integrity.d.ts +16 -0
  646. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/integrity.js +2 -0
  647. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/integrity.js.map +1 -0
  648. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/limits.d.ts +19 -0
  649. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/limits.js +2 -0
  650. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/limits.js.map +1 -0
  651. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/middleware.d.ts +25 -0
  652. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/middleware.js +2 -0
  653. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/middleware.js.map +1 -0
  654. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/observations.d.ts +8 -0
  655. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/observations.js +2 -0
  656. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/observations.js.map +1 -0
  657. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/progress.d.ts +11 -0
  658. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/progress.js +2 -0
  659. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/progress.js.map +1 -0
  660. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resources.d.ts +12 -0
  661. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resources.js +2 -0
  662. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resources.js.map +1 -0
  663. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.d.ts +30 -0
  664. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.js +2 -0
  665. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.js.map +1 -0
  666. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/scripts.d.ts +40 -0
  667. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/scripts.js +2 -0
  668. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/scripts.js.map +1 -0
  669. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/semantics.d.ts +10 -0
  670. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/semantics.js +2 -0
  671. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/semantics.js.map +1 -0
  672. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/settlement.d.ts +13 -0
  673. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/settlement.js +2 -0
  674. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/settlement.js.map +1 -0
  675. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/steps.d.ts +26 -0
  676. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/steps.js +2 -0
  677. package/dist/esm/core/agent/stages/toolCalls/contracts/operations/steps.js.map +1 -0
  678. package/dist/esm/core/agent/stages/toolCalls/contracts/resources.d.ts +67 -0
  679. package/dist/esm/core/agent/stages/toolCalls/contracts/resources.js +2 -0
  680. package/dist/esm/core/agent/stages/toolCalls/contracts/resources.js.map +1 -0
  681. package/dist/esm/core/agent/stages/toolCalls/contracts/results.d.ts +26 -0
  682. package/dist/esm/core/agent/stages/toolCalls/contracts/results.js +2 -0
  683. package/dist/esm/core/agent/stages/toolCalls/contracts/results.js.map +1 -0
  684. package/dist/esm/core/agent/stages/toolCalls/contracts/resumeFrames.d.ts +14 -0
  685. package/dist/esm/core/agent/stages/toolCalls/contracts/resumeFrames.js +2 -0
  686. package/dist/esm/core/agent/stages/toolCalls/contracts/resumeFrames.js.map +1 -0
  687. package/dist/esm/core/agent/stages/toolCalls/contracts/routing.d.ts +114 -0
  688. package/dist/esm/core/agent/stages/toolCalls/contracts/routing.js +2 -0
  689. package/dist/esm/core/agent/stages/toolCalls/contracts/routing.js.map +1 -0
  690. package/dist/esm/core/agent/stages/toolCalls/decorators/limitsOperations.d.ts +4 -0
  691. package/dist/esm/core/agent/stages/toolCalls/decorators/limitsOperations.js +80 -0
  692. package/dist/esm/core/agent/stages/toolCalls/decorators/limitsOperations.js.map +1 -0
  693. package/dist/esm/core/agent/stages/toolCalls/decorators/middlewareOperations.d.ts +4 -0
  694. package/dist/esm/core/agent/stages/toolCalls/decorators/middlewareOperations.js +83 -0
  695. package/dist/esm/core/agent/stages/toolCalls/decorators/middlewareOperations.js.map +1 -0
  696. package/dist/esm/core/agent/stages/toolCalls/decorators/reportingCredentials.d.ts +29 -0
  697. package/dist/esm/core/agent/stages/toolCalls/decorators/reportingCredentials.js +48 -0
  698. package/dist/esm/core/agent/stages/toolCalls/decorators/reportingCredentials.js.map +1 -0
  699. package/dist/esm/core/agent/stages/toolCalls/evidence/coverageOperations.d.ts +9 -0
  700. package/dist/esm/core/agent/stages/toolCalls/evidence/coverageOperations.js +232 -0
  701. package/dist/esm/core/agent/stages/toolCalls/evidence/coverageOperations.js.map +1 -0
  702. package/dist/esm/core/agent/stages/toolCalls/evidence/integrityOperations.d.ts +4 -0
  703. package/dist/esm/core/agent/stages/toolCalls/evidence/integrityOperations.js +137 -0
  704. package/dist/esm/core/agent/stages/toolCalls/evidence/integrityOperations.js.map +1 -0
  705. package/dist/esm/core/agent/stages/toolCalls/evidence/judgeLanded.d.ts +29 -0
  706. package/dist/esm/core/agent/stages/toolCalls/evidence/judgeLanded.js +32 -0
  707. package/dist/esm/core/agent/stages/toolCalls/evidence/judgeLanded.js.map +1 -0
  708. package/dist/esm/core/agent/stages/toolCalls/evidence/madeInRun.d.ts +6 -0
  709. package/dist/esm/core/agent/stages/toolCalls/evidence/madeInRun.js +3 -0
  710. package/dist/esm/core/agent/stages/toolCalls/evidence/madeInRun.js.map +1 -0
  711. package/dist/esm/core/agent/stages/toolCalls/evidence/producerCorpus.d.ts +22 -0
  712. package/dist/esm/core/agent/stages/toolCalls/evidence/producerCorpus.js +34 -0
  713. package/dist/esm/core/agent/stages/toolCalls/evidence/producerCorpus.js.map +1 -0
  714. package/dist/esm/core/agent/stages/toolCalls/evidence/scriptsOperations.d.ts +11 -0
  715. package/dist/esm/core/agent/stages/toolCalls/evidence/scriptsOperations.js +156 -0
  716. package/dist/esm/core/agent/stages/toolCalls/evidence/scriptsOperations.js.map +1 -0
  717. package/dist/esm/core/agent/stages/toolCalls/evidence/semanticsOperations.d.ts +4 -0
  718. package/dist/esm/core/agent/stages/toolCalls/evidence/semanticsOperations.js +90 -0
  719. package/dist/esm/core/agent/stages/toolCalls/evidence/semanticsOperations.js.map +1 -0
  720. package/dist/esm/core/agent/stages/toolCalls/evidence/sourceClock.d.ts +11 -0
  721. package/dist/esm/core/agent/stages/toolCalls/evidence/sourceClock.js +18 -0
  722. package/dist/esm/core/agent/stages/toolCalls/evidence/sourceClock.js.map +1 -0
  723. package/dist/esm/core/agent/stages/toolCalls/evidence/towers.d.ts +18 -0
  724. package/dist/esm/core/agent/stages/toolCalls/evidence/towers.js +38 -0
  725. package/dist/esm/core/agent/stages/toolCalls/evidence/towers.js.map +1 -0
  726. package/dist/esm/core/agent/stages/toolCalls/execution/artifactsOperations.d.ts +12 -0
  727. package/dist/esm/core/agent/stages/toolCalls/execution/artifactsOperations.js +261 -0
  728. package/dist/esm/core/agent/stages/toolCalls/execution/artifactsOperations.js.map +1 -0
  729. package/dist/esm/core/agent/stages/toolCalls/execution/callStart.d.ts +35 -0
  730. package/dist/esm/core/agent/stages/toolCalls/execution/callStart.js +103 -0
  731. package/dist/esm/core/agent/stages/toolCalls/execution/callStart.js.map +1 -0
  732. package/dist/esm/core/agent/stages/toolCalls/execution/catalogOperations.d.ts +17 -0
  733. package/dist/esm/core/agent/stages/toolCalls/execution/catalogOperations.js +173 -0
  734. package/dist/esm/core/agent/stages/toolCalls/execution/catalogOperations.js.map +1 -0
  735. package/dist/esm/core/agent/stages/toolCalls/execution/contextOperations.d.ts +15 -0
  736. package/dist/esm/core/agent/stages/toolCalls/execution/contextOperations.js +186 -0
  737. package/dist/esm/core/agent/stages/toolCalls/execution/contextOperations.js.map +1 -0
  738. package/dist/esm/core/agent/stages/toolCalls/execution/credentialAdmission.d.ts +48 -0
  739. package/dist/esm/core/agent/stages/toolCalls/execution/credentialAdmission.js +124 -0
  740. package/dist/esm/core/agent/stages/toolCalls/execution/credentialAdmission.js.map +1 -0
  741. package/dist/esm/core/agent/stages/toolCalls/execution/credentialsOperations.d.ts +9 -0
  742. package/dist/esm/core/agent/stages/toolCalls/execution/credentialsOperations.js +11 -0
  743. package/dist/esm/core/agent/stages/toolCalls/execution/credentialsOperations.js.map +1 -0
  744. package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.d.ts +40 -0
  745. package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js +168 -0
  746. package/dist/esm/core/agent/stages/toolCalls/execution/deliveredResult.js.map +1 -0
  747. package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.d.ts +5 -0
  748. package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js +511 -0
  749. package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -0
  750. package/dist/esm/core/agent/stages/toolCalls/execution/initialInvocation.d.ts +70 -0
  751. package/dist/esm/core/agent/stages/toolCalls/execution/initialInvocation.js +341 -0
  752. package/dist/esm/core/agent/stages/toolCalls/execution/initialInvocation.js.map +1 -0
  753. package/dist/esm/core/agent/stages/toolCalls/execution/resourcesOperations.d.ts +9 -0
  754. package/dist/esm/core/agent/stages/toolCalls/execution/resourcesOperations.js +86 -0
  755. package/dist/esm/core/agent/stages/toolCalls/execution/resourcesOperations.js.map +1 -0
  756. package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts +42 -0
  757. package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.js +402 -0
  758. package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.js.map +1 -0
  759. package/dist/esm/core/agent/stages/toolCalls/execution/wantedArguments.d.ts +19 -0
  760. package/dist/esm/core/agent/stages/toolCalls/execution/wantedArguments.js +14 -0
  761. package/dist/esm/core/agent/stages/toolCalls/execution/wantedArguments.js.map +1 -0
  762. package/dist/esm/core/agent/stages/toolCalls/helpers/dedupeIds.d.ts +3 -0
  763. package/dist/esm/core/agent/stages/toolCalls/helpers/dedupeIds.js +6 -0
  764. package/dist/esm/core/agent/stages/toolCalls/helpers/dedupeIds.js.map +1 -0
  765. package/dist/esm/core/agent/stages/toolCalls/helpers/dispatchRefusals.d.ts +61 -0
  766. package/dist/esm/core/agent/stages/toolCalls/helpers/dispatchRefusals.js +78 -0
  767. package/dist/esm/core/agent/stages/toolCalls/helpers/dispatchRefusals.js.map +1 -0
  768. package/dist/esm/core/agent/stages/toolCalls/helpers/mountedCursor.d.ts +41 -0
  769. package/dist/esm/core/agent/stages/toolCalls/helpers/mountedCursor.js +42 -0
  770. package/dist/esm/core/agent/stages/toolCalls/helpers/mountedCursor.js.map +1 -0
  771. package/dist/esm/core/agent/stages/toolCalls/helpers/periodWarnings.d.ts +23 -0
  772. package/dist/esm/core/agent/stages/toolCalls/helpers/periodWarnings.js +54 -0
  773. package/dist/esm/core/agent/stages/toolCalls/helpers/periodWarnings.js.map +1 -0
  774. package/dist/esm/core/agent/stages/toolCalls/helpers/readSkillRefusal.d.ts +87 -0
  775. package/dist/esm/core/agent/stages/toolCalls/helpers/readSkillRefusal.js +137 -0
  776. package/dist/esm/core/agent/stages/toolCalls/helpers/readSkillRefusal.js.map +1 -0
  777. package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +8 -0
  778. package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.js +7 -0
  779. package/dist/esm/core/agent/stages/toolCalls/helpers/sourceNote.js.map +1 -0
  780. package/dist/esm/core/agent/stages/toolCalls/helpers/unscopedRun.d.ts +11 -0
  781. package/dist/esm/core/agent/stages/toolCalls/helpers/unscopedRun.js +12 -0
  782. package/dist/esm/core/agent/stages/toolCalls/helpers/unscopedRun.js.map +1 -0
  783. package/dist/esm/core/agent/stages/toolCalls/index.d.ts +14 -0
  784. package/dist/esm/core/agent/stages/toolCalls/index.js +21 -0
  785. package/dist/esm/core/agent/stages/toolCalls/index.js.map +1 -0
  786. package/dist/esm/core/agent/stages/toolCalls/observation/callSettlement.d.ts +29 -0
  787. package/dist/esm/core/agent/stages/toolCalls/observation/callSettlement.js +44 -0
  788. package/dist/esm/core/agent/stages/toolCalls/observation/callSettlement.js.map +1 -0
  789. package/dist/esm/core/agent/stages/toolCalls/observation/observationsOperations.d.ts +4 -0
  790. package/dist/esm/core/agent/stages/toolCalls/observation/observationsOperations.js +57 -0
  791. package/dist/esm/core/agent/stages/toolCalls/observation/observationsOperations.js.map +1 -0
  792. package/dist/esm/core/agent/stages/toolCalls/observation/progressOperations.d.ts +7 -0
  793. package/dist/esm/core/agent/stages/toolCalls/observation/progressOperations.js +28 -0
  794. package/dist/esm/core/agent/stages/toolCalls/observation/progressOperations.js.map +1 -0
  795. package/dist/esm/core/agent/stages/toolCalls/resume/ask.d.ts +44 -0
  796. package/dist/esm/core/agent/stages/toolCalls/resume/ask.js +400 -0
  797. package/dist/esm/core/agent/stages/toolCalls/resume/ask.js.map +1 -0
  798. package/dist/esm/core/agent/stages/toolCalls/resume/checkIn.d.ts +39 -0
  799. package/dist/esm/core/agent/stages/toolCalls/resume/checkIn.js +189 -0
  800. package/dist/esm/core/agent/stages/toolCalls/resume/checkIn.js.map +1 -0
  801. package/dist/esm/core/agent/stages/toolCalls/resume/credential.d.ts +37 -0
  802. package/dist/esm/core/agent/stages/toolCalls/resume/credential.js +135 -0
  803. package/dist/esm/core/agent/stages/toolCalls/resume/credential.js.map +1 -0
  804. package/dist/esm/core/agent/stages/toolCalls/resume/handler.d.ts +6 -0
  805. package/dist/esm/core/agent/stages/toolCalls/resume/handler.js +148 -0
  806. package/dist/esm/core/agent/stages/toolCalls/resume/handler.js.map +1 -0
  807. package/dist/esm/core/agent/stages/toolCalls/resume/plain.d.ts +32 -0
  808. package/dist/esm/core/agent/stages/toolCalls/resume/plain.js +140 -0
  809. package/dist/esm/core/agent/stages/toolCalls/resume/plain.js.map +1 -0
  810. package/dist/esm/core/agent/stages/toolCalls/routing/effectsOperations.d.ts +4 -0
  811. package/dist/esm/core/agent/stages/toolCalls/routing/effectsOperations.js +260 -0
  812. package/dist/esm/core/agent/stages/toolCalls/routing/effectsOperations.js.map +1 -0
  813. package/dist/esm/core/agent/stages/toolCalls/routing/policyHalt.d.ts +17 -0
  814. package/dist/esm/core/agent/stages/toolCalls/routing/policyHalt.js +36 -0
  815. package/dist/esm/core/agent/stages/toolCalls/routing/policyHalt.js.map +1 -0
  816. package/dist/esm/core/agent/stages/toolCalls/routing/readSkillRoute.d.ts +20 -0
  817. package/dist/esm/core/agent/stages/toolCalls/routing/readSkillRoute.js +234 -0
  818. package/dist/esm/core/agent/stages/toolCalls/routing/readSkillRoute.js.map +1 -0
  819. package/dist/esm/core/agent/stages/toolCalls/routing/skillActivation.d.ts +15 -0
  820. package/dist/esm/core/agent/stages/toolCalls/routing/skillActivation.js +48 -0
  821. package/dist/esm/core/agent/stages/toolCalls/routing/skillActivation.js.map +1 -0
  822. package/dist/esm/core/agent/stages/toolCalls/routing/stepsOperations.d.ts +4 -0
  823. package/dist/esm/core/agent/stages/toolCalls/routing/stepsOperations.js +145 -0
  824. package/dist/esm/core/agent/stages/toolCalls/routing/stepsOperations.js.map +1 -0
  825. package/dist/esm/core/agent/stages/toolResolver.d.ts +3 -2
  826. package/dist/esm/core/agent/stages/toolResolver.js +84 -38
  827. package/dist/esm/core/agent/stages/toolResolver.js.map +1 -1
  828. package/dist/esm/core/agent/toolChoice/pick.d.ts +1 -1
  829. package/dist/esm/core/agent/toolChoice/pick.js +1 -1
  830. package/dist/esm/core/agent/toolResultCap.d.ts +1 -1
  831. package/dist/esm/core/agent/toolResultCap.js +0 -0
  832. package/dist/esm/core/agent/types.d.ts +16 -27
  833. package/dist/esm/core/agent/types.js +0 -3
  834. package/dist/esm/core/agent/types.js.map +1 -1
  835. package/dist/esm/core/agent/window/toolNames.d.ts +3 -3
  836. package/dist/esm/core/agent/window/toolNames.js +3 -3
  837. package/dist/esm/core/answerConsumption.d.ts +7 -0
  838. package/dist/esm/core/answerConsumption.js +12 -0
  839. package/dist/esm/core/answerConsumption.js.map +1 -0
  840. package/dist/esm/core/checkin.d.ts +1 -1
  841. package/dist/esm/core/checkin.js +1 -1
  842. package/dist/esm/core/codeRunnerTool.d.ts +1 -1
  843. package/dist/esm/core/codeRunnerTool.js +1 -1
  844. package/dist/esm/core/consentLedger.d.ts +21 -0
  845. package/dist/esm/core/consentLedger.js +116 -0
  846. package/dist/esm/core/consentLedger.js.map +1 -0
  847. package/dist/esm/core/consentRequest.d.ts +35 -54
  848. package/dist/esm/core/consentRequest.js +34 -153
  849. package/dist/esm/core/consentRequest.js.map +1 -1
  850. package/dist/esm/core/conversation.d.ts +8 -29
  851. package/dist/esm/core/conversation.js +14 -47
  852. package/dist/esm/core/conversation.js.map +1 -1
  853. package/dist/esm/core/memberRun.d.ts +1 -0
  854. package/dist/esm/core/memberRun.js +1 -1
  855. package/dist/esm/core/memberRun.js.map +1 -1
  856. package/dist/esm/core/pause.d.ts +5 -5
  857. package/dist/esm/core/pause.js +5 -5
  858. package/dist/esm/core/pauseRecord.d.ts +13 -0
  859. package/dist/esm/core/pauseRecord.js +19 -0
  860. package/dist/esm/core/pauseRecord.js.map +1 -0
  861. package/dist/esm/core/runEntry.d.ts +8 -0
  862. package/dist/esm/core/runEntry.js +26 -0
  863. package/dist/esm/core/runEntry.js.map +1 -0
  864. package/dist/esm/core/runnerCoreValues.d.ts +16 -0
  865. package/dist/esm/core/runnerCoreValues.js +2 -0
  866. package/dist/esm/core/runnerCoreValues.js.map +1 -0
  867. package/dist/esm/core/runnerExecution.d.ts +71 -0
  868. package/dist/esm/core/runnerExecution.js +170 -0
  869. package/dist/esm/core/runnerExecution.js.map +1 -0
  870. package/dist/esm/core/runnerLive.d.ts +32 -1
  871. package/dist/esm/core/runnerLive.js.map +1 -1
  872. package/dist/esm/core/slots/buildThinkingSubflow.d.ts +1 -1
  873. package/dist/esm/core/slots/buildThinkingSubflow.js +2 -2
  874. package/dist/esm/core/slots/buildThinkingSubflow.js.map +1 -1
  875. package/dist/esm/core/slots/buildToolsSlot.d.ts +27 -56
  876. package/dist/esm/core/slots/buildToolsSlot.js +25 -102
  877. package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
  878. package/dist/esm/core/slots/discoverTools.d.ts +21 -0
  879. package/dist/esm/core/slots/discoverTools.js +94 -0
  880. package/dist/esm/core/slots/discoverTools.js.map +1 -0
  881. package/dist/esm/core-flow/Conditional.d.ts +0 -2
  882. package/dist/esm/core-flow/Conditional.js +28 -75
  883. package/dist/esm/core-flow/Conditional.js.map +1 -1
  884. package/dist/esm/core-flow/Graph.d.ts +18 -23
  885. package/dist/esm/core-flow/Graph.js +66 -123
  886. package/dist/esm/core-flow/Graph.js.map +1 -1
  887. package/dist/esm/core-flow/Loop.d.ts +0 -2
  888. package/dist/esm/core-flow/Loop.js +29 -83
  889. package/dist/esm/core-flow/Loop.js.map +1 -1
  890. package/dist/esm/core-flow/Parallel.d.ts +11 -40
  891. package/dist/esm/core-flow/Parallel.js +61 -151
  892. package/dist/esm/core-flow/Parallel.js.map +1 -1
  893. package/dist/esm/core-flow/Sequence.d.ts +0 -2
  894. package/dist/esm/core-flow/Sequence.js +28 -76
  895. package/dist/esm/core-flow/Sequence.js.map +1 -1
  896. package/dist/esm/core-flow/Workflow.d.ts +0 -2
  897. package/dist/esm/core-flow/Workflow.js +27 -75
  898. package/dist/esm/core-flow/Workflow.js.map +1 -1
  899. package/dist/esm/events/dispatcher.d.ts +2 -2
  900. package/dist/esm/events/dispatcher.js +2 -2
  901. package/dist/esm/events/payloads/access.d.ts +88 -0
  902. package/dist/esm/events/payloads/access.js +2 -0
  903. package/dist/esm/events/payloads/access.js.map +1 -0
  904. package/dist/esm/events/payloads/agent.d.ts +241 -0
  905. package/dist/esm/events/payloads/agent.js +2 -0
  906. package/dist/esm/events/payloads/agent.js.map +1 -0
  907. package/dist/esm/events/payloads/answer.d.ts +95 -0
  908. package/dist/esm/events/payloads/answer.js +2 -0
  909. package/dist/esm/events/payloads/answer.js.map +1 -0
  910. package/dist/esm/events/payloads/artifacts.d.ts +139 -0
  911. package/dist/esm/events/payloads/artifacts.js +2 -0
  912. package/dist/esm/events/payloads/artifacts.js.map +1 -0
  913. package/dist/esm/events/payloads/consent.d.ts +86 -0
  914. package/dist/esm/events/payloads/consent.js +2 -0
  915. package/dist/esm/events/payloads/consent.js.map +1 -0
  916. package/dist/esm/events/payloads/context.d.ts +276 -0
  917. package/dist/esm/events/payloads/context.js +2 -0
  918. package/dist/esm/events/payloads/context.js.map +1 -0
  919. package/dist/esm/events/payloads/cost.d.ts +40 -0
  920. package/dist/esm/events/payloads/cost.js +2 -0
  921. package/dist/esm/events/payloads/cost.js.map +1 -0
  922. package/dist/esm/events/payloads/dependencyTypes.d.ts +18 -0
  923. package/dist/esm/events/payloads/dependencyTypes.js +2 -0
  924. package/dist/esm/events/payloads/dependencyTypes.js.map +1 -0
  925. package/dist/esm/events/payloads/evaluation.d.ts +297 -0
  926. package/dist/esm/events/payloads/evaluation.js +2 -0
  927. package/dist/esm/events/payloads/evaluation.js.map +1 -0
  928. package/dist/esm/events/payloads/fallback.d.ts +6 -0
  929. package/dist/esm/events/payloads/fallback.js +2 -0
  930. package/dist/esm/events/payloads/fallback.js.map +1 -0
  931. package/dist/esm/events/payloads/findings.d.ts +243 -0
  932. package/dist/esm/events/payloads/findings.js +2 -0
  933. package/dist/esm/events/payloads/findings.js.map +1 -0
  934. package/dist/esm/events/payloads/flow.d.ts +68 -0
  935. package/dist/esm/events/payloads/flow.js +2 -0
  936. package/dist/esm/events/payloads/flow.js.map +1 -0
  937. package/dist/esm/events/payloads/integrity.d.ts +48 -0
  938. package/dist/esm/events/payloads/integrity.js +3 -0
  939. package/dist/esm/events/payloads/integrity.js.map +1 -0
  940. package/dist/esm/events/payloads/maps.d.ts +47 -0
  941. package/dist/esm/events/payloads/maps.js +3 -0
  942. package/dist/esm/events/payloads/maps.js.map +1 -0
  943. package/dist/esm/events/payloads/mcpRequests.d.ts +327 -0
  944. package/dist/esm/events/payloads/mcpRequests.js +3 -0
  945. package/dist/esm/events/payloads/mcpRequests.js.map +1 -0
  946. package/dist/esm/events/payloads/memory.d.ts +117 -0
  947. package/dist/esm/events/payloads/memory.js +3 -0
  948. package/dist/esm/events/payloads/memory.js.map +1 -0
  949. package/dist/esm/events/payloads/reliability.d.ts +149 -0
  950. package/dist/esm/events/payloads/reliability.js +2 -0
  951. package/dist/esm/events/payloads/reliability.js.map +1 -0
  952. package/dist/esm/events/payloads/runConfiguration.d.ts +224 -0
  953. package/dist/esm/events/payloads/runConfiguration.js +2 -0
  954. package/dist/esm/events/payloads/runConfiguration.js.map +1 -0
  955. package/dist/esm/events/payloads/skills.d.ts +359 -0
  956. package/dist/esm/events/payloads/skills.js +2 -0
  957. package/dist/esm/events/payloads/skills.js.map +1 -0
  958. package/dist/esm/events/payloads/stream.d.ts +230 -0
  959. package/dist/esm/events/payloads/stream.js +2 -0
  960. package/dist/esm/events/payloads/stream.js.map +1 -0
  961. package/dist/esm/events/payloads/thinking.d.ts +118 -0
  962. package/dist/esm/events/payloads/thinking.js +2 -0
  963. package/dist/esm/events/payloads/thinking.js.map +1 -0
  964. package/dist/esm/events/payloads/toolCatalog.d.ts +157 -0
  965. package/dist/esm/events/payloads/toolCatalog.js +2 -0
  966. package/dist/esm/events/payloads/toolCatalog.js.map +1 -0
  967. package/dist/esm/events/payloads/toolChoice.d.ts +65 -0
  968. package/dist/esm/events/payloads/toolChoice.js +2 -0
  969. package/dist/esm/events/payloads/toolChoice.js.map +1 -0
  970. package/dist/esm/events/payloads/toolEffects.d.ts +329 -0
  971. package/dist/esm/events/payloads/toolEffects.js +2 -0
  972. package/dist/esm/events/payloads/toolEffects.js.map +1 -0
  973. package/dist/esm/events/payloads/toolSemantics.d.ts +68 -0
  974. package/dist/esm/events/payloads/toolSemantics.js +2 -0
  975. package/dist/esm/events/payloads/toolSemantics.js.map +1 -0
  976. package/dist/esm/events/payloads/toolSessionPayloads.d.ts +50 -0
  977. package/dist/esm/events/payloads/toolSessionPayloads.js +17 -0
  978. package/dist/esm/events/payloads/toolSessionPayloads.js.map +1 -0
  979. package/dist/esm/events/payloads/validation.d.ts +29 -0
  980. package/dist/esm/events/payloads/validation.js +2 -0
  981. package/dist/esm/events/payloads/validation.js.map +1 -0
  982. package/dist/esm/events/payloads.d.ts +26 -3888
  983. package/dist/esm/events/registry.d.ts +8 -15
  984. package/dist/esm/events/registry.js +5 -15
  985. package/dist/esm/events/registry.js.map +1 -1
  986. package/dist/esm/hosting/answeredPause.d.ts +9 -23
  987. package/dist/esm/hosting/answeredPause.js +15 -27
  988. package/dist/esm/hosting/answeredPause.js.map +1 -1
  989. package/dist/esm/hosting/durability.d.ts +10 -7
  990. package/dist/esm/hosting/durability.js +10 -8
  991. package/dist/esm/hosting/durability.js.map +1 -1
  992. package/dist/esm/hosting/standingAgent.d.ts +4 -14
  993. package/dist/esm/hosting/standingAgent.js +73 -109
  994. package/dist/esm/hosting/standingAgent.js.map +1 -1
  995. package/dist/esm/hosting/stream.d.ts +3 -3
  996. package/dist/esm/hosting/stream.js +2 -5
  997. package/dist/esm/hosting/stream.js.map +1 -1
  998. package/dist/esm/hosting/streamHandler.js +5 -5
  999. package/dist/esm/hosting/streamHandler.js.map +1 -1
  1000. package/dist/esm/index.d.ts +2 -1
  1001. package/dist/esm/index.js +2 -4
  1002. package/dist/esm/index.js.map +1 -1
  1003. package/dist/esm/influence-core/attribute.js +1 -1
  1004. package/dist/esm/influence-core/attribute.js.map +1 -1
  1005. package/dist/esm/influence-core/contrastive.js +1 -1
  1006. package/dist/esm/influence-core/contrastive.js.map +1 -1
  1007. package/dist/esm/influence-core/margin.js +1 -1
  1008. package/dist/esm/influence-core/margin.js.map +1 -1
  1009. package/dist/esm/influence-core/signals.js +1 -1
  1010. package/dist/esm/influence-core/signals.js.map +1 -1
  1011. package/dist/esm/influence-core/similarity.js +1 -1
  1012. package/dist/esm/influence-core/similarity.js.map +1 -1
  1013. package/dist/esm/injection-engine/buildInjectionEngineSubflow.js +1 -1
  1014. package/dist/esm/injection-engine/buildInjectionEngineSubflow.js.map +1 -1
  1015. package/dist/esm/injection-engine/devWarn.d.ts +3 -2
  1016. package/dist/esm/injection-engine/devWarn.js +3 -2
  1017. package/dist/esm/injection-engine/devWarn.js.map +1 -1
  1018. package/dist/esm/injection-engine/entryScorer.js +1 -1
  1019. package/dist/esm/injection-engine/entryScorer.js.map +1 -1
  1020. package/dist/esm/injection-engine/hostContract.d.ts +3 -3
  1021. package/dist/esm/injection-engine/skillExamples.d.ts +1 -1
  1022. package/dist/esm/injection-engine/skillGraph/cursorEvidence.d.ts +48 -0
  1023. package/dist/esm/injection-engine/skillGraph/cursorEvidence.js +54 -0
  1024. package/dist/esm/injection-engine/skillGraph/cursorEvidence.js.map +1 -0
  1025. package/dist/esm/injection-engine/skillGraph/cursorResolution.d.ts +4 -0
  1026. package/dist/esm/injection-engine/skillGraph/cursorResolution.js +241 -0
  1027. package/dist/esm/injection-engine/skillGraph/cursorResolution.js.map +1 -0
  1028. package/dist/esm/injection-engine/skillGraph/decision.d.ts +21 -0
  1029. package/dist/esm/injection-engine/skillGraph/decision.js +10 -0
  1030. package/dist/esm/injection-engine/skillGraph/decision.js.map +1 -0
  1031. package/dist/esm/injection-engine/skillGraph/entryScores.d.ts +14 -0
  1032. package/dist/esm/injection-engine/skillGraph/entryScores.js +30 -0
  1033. package/dist/esm/injection-engine/skillGraph/entryScores.js.map +1 -0
  1034. package/dist/esm/injection-engine/skillGraph/entrySuppression.d.ts +23 -0
  1035. package/dist/esm/injection-engine/skillGraph/entrySuppression.js +46 -0
  1036. package/dist/esm/injection-engine/skillGraph/entrySuppression.js.map +1 -0
  1037. package/dist/esm/injection-engine/skillGraph/graphConfig.d.ts +39 -0
  1038. package/dist/esm/injection-engine/skillGraph/graphConfig.js +2 -0
  1039. package/dist/esm/injection-engine/skillGraph/graphConfig.js.map +1 -0
  1040. package/dist/esm/injection-engine/skillGraph/graphContracts.d.ts +479 -0
  1041. package/dist/esm/injection-engine/skillGraph/graphContracts.js +14 -0
  1042. package/dist/esm/injection-engine/skillGraph/graphContracts.js.map +1 -0
  1043. package/dist/esm/injection-engine/skillGraph/graphCursor.d.ts +125 -0
  1044. package/dist/esm/injection-engine/skillGraph/graphCursor.js +2 -0
  1045. package/dist/esm/injection-engine/skillGraph/graphCursor.js.map +1 -0
  1046. package/dist/esm/injection-engine/skillGraph/graphDrawing.d.ts +2 -0
  1047. package/dist/esm/injection-engine/skillGraph/graphDrawing.js +31 -0
  1048. package/dist/esm/injection-engine/skillGraph/graphDrawing.js.map +1 -0
  1049. package/dist/esm/injection-engine/skillGraph/graphRoutes.d.ts +269 -0
  1050. package/dist/esm/injection-engine/skillGraph/graphRoutes.js +2 -0
  1051. package/dist/esm/injection-engine/skillGraph/graphRoutes.js.map +1 -0
  1052. package/dist/esm/injection-engine/skillGraph/passMemo.d.ts +24 -0
  1053. package/dist/esm/injection-engine/skillGraph/passMemo.js +37 -0
  1054. package/dist/esm/injection-engine/skillGraph/passMemo.js.map +1 -0
  1055. package/dist/esm/injection-engine/skillGraph/reachability.d.ts +71 -0
  1056. package/dist/esm/injection-engine/skillGraph/reachability.js +62 -0
  1057. package/dist/esm/injection-engine/skillGraph/reachability.js.map +1 -0
  1058. package/dist/esm/injection-engine/skillGraph/routePredicates.d.ts +36 -0
  1059. package/dist/esm/injection-engine/skillGraph/routePredicates.js +57 -0
  1060. package/dist/esm/injection-engine/skillGraph/routePredicates.js.map +1 -0
  1061. package/dist/esm/injection-engine/skillGraph/routingView.d.ts +3 -0
  1062. package/dist/esm/injection-engine/skillGraph/routingView.js +24 -0
  1063. package/dist/esm/injection-engine/skillGraph/routingView.js.map +1 -0
  1064. package/dist/esm/injection-engine/skillGraph/treeCompilation.d.ts +38 -0
  1065. package/dist/esm/injection-engine/skillGraph/treeCompilation.js +153 -0
  1066. package/dist/esm/injection-engine/skillGraph/treeCompilation.js.map +1 -0
  1067. package/dist/esm/injection-engine/skillGraph/triggerCompilation.d.ts +16 -0
  1068. package/dist/esm/injection-engine/skillGraph/triggerCompilation.js +75 -0
  1069. package/dist/esm/injection-engine/skillGraph/triggerCompilation.js.map +1 -0
  1070. package/dist/esm/injection-engine/skillGraph.d.ts +12 -948
  1071. package/dist/esm/injection-engine/skillGraph.js +22 -816
  1072. package/dist/esm/injection-engine/skillGraph.js.map +1 -1
  1073. package/dist/esm/injection-engine/skillIntent.d.ts +1 -1
  1074. package/dist/esm/injection-engine/skillMatch.d.ts +2 -1
  1075. package/dist/esm/injection-engine/skillMatch.js +2 -1
  1076. package/dist/esm/injection-engine/skillMatch.js.map +1 -1
  1077. package/dist/esm/injection-engine/skillToolDescriptors.js +2 -2
  1078. package/dist/esm/injection-engine/skillToolDescriptors.js.map +1 -1
  1079. package/dist/esm/injection-engine/startRuleClaim.d.ts +1 -1
  1080. package/dist/esm/injection-engine/types.d.ts +1 -1
  1081. package/dist/esm/lib/cosine.js.map +1 -0
  1082. package/dist/esm/lib/iterationBudget.d.ts +3 -0
  1083. package/dist/esm/lib/iterationBudget.js +7 -0
  1084. package/dist/esm/lib/iterationBudget.js.map +1 -1
  1085. package/dist/esm/lib/saidByPerson.d.ts +1 -0
  1086. package/dist/esm/lib/saidByPerson.js +2 -0
  1087. package/dist/esm/lib/saidByPerson.js.map +1 -1
  1088. package/dist/esm/lib/spokenIds.js +2 -2
  1089. package/dist/esm/lib/spokenIds.js.map +1 -1
  1090. package/dist/esm/lib/toolBytes.d.ts +1 -1
  1091. package/dist/esm/lib/toolBytes.js +2 -2
  1092. package/dist/esm/lib/toolBytes.js.map +1 -1
  1093. package/dist/esm/maps/engagement/lease.js +1 -1
  1094. package/dist/esm/maps/engagement/lease.js.map +1 -1
  1095. package/dist/esm/memory/causal/evidenceRecorder.d.ts +8 -56
  1096. package/dist/esm/memory/causal/evidenceRecorder.js +221 -213
  1097. package/dist/esm/memory/causal/evidenceRecorder.js.map +1 -1
  1098. package/dist/esm/memory/causal/loadSnapshot.js +16 -59
  1099. package/dist/esm/memory/causal/loadSnapshot.js.map +1 -1
  1100. package/dist/esm/memory/causal/observation.d.ts +72 -0
  1101. package/dist/esm/memory/causal/observation.js +13 -0
  1102. package/dist/esm/memory/causal/observation.js.map +1 -0
  1103. package/dist/esm/memory/causal/snapshotProjection.d.ts +5 -0
  1104. package/dist/esm/memory/causal/snapshotProjection.js +61 -0
  1105. package/dist/esm/memory/causal/snapshotProjection.js.map +1 -0
  1106. package/dist/esm/memory/causal/snapshotSchema.d.ts +8 -0
  1107. package/dist/esm/memory/causal/snapshotSchema.js +168 -0
  1108. package/dist/esm/memory/causal/snapshotSchema.js.map +1 -0
  1109. package/dist/esm/memory/causal/types.d.ts +5 -82
  1110. package/dist/esm/memory/causal/types.js +0 -18
  1111. package/dist/esm/memory/causal/types.js.map +1 -1
  1112. package/dist/esm/memory/causal/writeSnapshot.js +17 -14
  1113. package/dist/esm/memory/causal/writeSnapshot.js.map +1 -1
  1114. package/dist/esm/memory/embedding/index.d.ts +1 -1
  1115. package/dist/esm/memory/embedding/index.js +1 -1
  1116. package/dist/esm/memory/embedding/index.js.map +1 -1
  1117. package/dist/esm/memory/stages/types.d.ts +1 -1
  1118. package/dist/esm/memory/store/InMemoryStore.js +1 -1
  1119. package/dist/esm/memory/store/InMemoryStore.js.map +1 -1
  1120. package/dist/esm/memory/store/staticVectorStore.js +1 -1
  1121. package/dist/esm/memory/store/staticVectorStore.js.map +1 -1
  1122. package/dist/esm/memory/wire/mountMemoryPipeline.d.ts +7 -7
  1123. package/dist/esm/memory/wire/mountMemoryPipeline.js +8 -2
  1124. package/dist/esm/memory/wire/mountMemoryPipeline.js.map +1 -1
  1125. package/dist/esm/patterns/LlmRouter.d.ts +11 -149
  1126. package/dist/esm/patterns/LlmRouter.js +51 -179
  1127. package/dist/esm/patterns/LlmRouter.js.map +1 -1
  1128. package/dist/esm/patterns/LlmSwarm.d.ts +5 -49
  1129. package/dist/esm/patterns/LlmSwarm.js +7 -70
  1130. package/dist/esm/patterns/LlmSwarm.js.map +1 -1
  1131. package/dist/esm/patterns/MapReduce.js +33 -23
  1132. package/dist/esm/patterns/MapReduce.js.map +1 -1
  1133. package/dist/esm/patterns/Swarm.d.ts +14 -45
  1134. package/dist/esm/patterns/Swarm.js +230 -76
  1135. package/dist/esm/patterns/Swarm.js.map +1 -1
  1136. package/dist/esm/patterns/index.d.ts +1 -1
  1137. package/dist/esm/patterns/index.js.map +1 -1
  1138. package/dist/esm/patterns/routing.d.ts +15 -0
  1139. package/dist/esm/patterns/routing.js +18 -0
  1140. package/dist/esm/patterns/routing.js.map +1 -0
  1141. package/dist/esm/provider-contract/types.d.ts +5 -5
  1142. package/dist/esm/recorders/core/CompactionMeter.d.ts +1 -1
  1143. package/dist/esm/recorders/observability/BoundaryRecorder.d.ts +13 -427
  1144. package/dist/esm/recorders/observability/BoundaryRecorder.js +7 -283
  1145. package/dist/esm/recorders/observability/BoundaryRecorder.js.map +1 -1
  1146. package/dist/esm/recorders/observability/boundaryRecorder/agentInternal.d.ts +13 -0
  1147. package/dist/esm/recorders/observability/boundaryRecorder/agentInternal.js +58 -0
  1148. package/dist/esm/recorders/observability/boundaryRecorder/agentInternal.js.map +1 -0
  1149. package/dist/esm/recorders/observability/boundaryRecorder/domainEvents.d.ts +210 -0
  1150. package/dist/esm/recorders/observability/boundaryRecorder/domainEvents.js +2 -0
  1151. package/dist/esm/recorders/observability/boundaryRecorder/domainEvents.js.map +1 -0
  1152. package/dist/esm/recorders/observability/boundaryRecorder/eventBuilders.d.ts +11 -0
  1153. package/dist/esm/recorders/observability/boundaryRecorder/eventBuilders.js +77 -0
  1154. package/dist/esm/recorders/observability/boundaryRecorder/eventBuilders.js.map +1 -0
  1155. package/dist/esm/recorders/observability/boundaryRecorder/flowEvents.d.ts +12 -0
  1156. package/dist/esm/recorders/observability/boundaryRecorder/flowEvents.js +2 -0
  1157. package/dist/esm/recorders/observability/boundaryRecorder/flowEvents.js.map +1 -0
  1158. package/dist/esm/recorders/observability/boundaryRecorder/leanContent.d.ts +52 -0
  1159. package/dist/esm/recorders/observability/boundaryRecorder/leanContent.js +52 -0
  1160. package/dist/esm/recorders/observability/boundaryRecorder/leanContent.js.map +1 -0
  1161. package/dist/esm/recorders/observability/boundaryRecorder/options.d.ts +95 -0
  1162. package/dist/esm/recorders/observability/boundaryRecorder/options.js +2 -0
  1163. package/dist/esm/recorders/observability/boundaryRecorder/options.js.map +1 -0
  1164. package/dist/esm/recorders/observability/boundaryRecorder/rangeLabels.d.ts +33 -0
  1165. package/dist/esm/recorders/observability/boundaryRecorder/rangeLabels.js +39 -0
  1166. package/dist/esm/recorders/observability/boundaryRecorder/rangeLabels.js.map +1 -0
  1167. package/dist/esm/recorders/observability/boundaryRecorder/rollups.d.ts +53 -0
  1168. package/dist/esm/recorders/observability/boundaryRecorder/rollups.js +69 -0
  1169. package/dist/esm/recorders/observability/boundaryRecorder/rollups.js.map +1 -0
  1170. package/dist/esm/recorders/observability/fileRecordingSink.d.ts +2 -4
  1171. package/dist/esm/recorders/observability/fileRecordingSink.js +2 -4
  1172. package/dist/esm/recorders/observability/fileRecordingSink.js.map +1 -1
  1173. package/dist/esm/recorders/observability/recordingEnvelope.d.ts +6 -10
  1174. package/dist/esm/recorders/observability/recordingEnvelope.js +6 -10
  1175. package/dist/esm/recorders/observability/recordingEnvelope.js.map +1 -1
  1176. package/dist/esm/redaction/coverage.d.ts +5 -3
  1177. package/dist/esm/redaction/coverage.js +5 -3
  1178. package/dist/esm/redaction/coverage.js.map +1 -1
  1179. package/dist/esm/redaction/declared.d.ts +4 -0
  1180. package/dist/esm/redaction/declared.js +15 -2
  1181. package/dist/esm/redaction/declared.js.map +1 -1
  1182. package/dist/esm/redaction/knownStrings.d.ts +5 -34
  1183. package/dist/esm/redaction/knownStrings.js +10 -34
  1184. package/dist/esm/redaction/knownStrings.js.map +1 -1
  1185. package/dist/esm/redaction/marker.d.ts +1 -1
  1186. package/dist/esm/redaction/marker.js +1 -1
  1187. package/dist/esm/redaction/privateCaller.d.ts +43 -0
  1188. package/dist/esm/redaction/privateCaller.js +74 -0
  1189. package/dist/esm/redaction/privateCaller.js.map +1 -0
  1190. package/dist/esm/redaction/privateCheckpoint.d.ts +22 -0
  1191. package/dist/esm/redaction/privateCheckpoint.js +89 -0
  1192. package/dist/esm/redaction/privateCheckpoint.js.map +1 -0
  1193. package/dist/esm/redaction/privateFields.d.ts +28 -0
  1194. package/dist/esm/redaction/privateFields.js +152 -0
  1195. package/dist/esm/redaction/privateFields.js.map +1 -0
  1196. package/dist/esm/redaction/privateRun.d.ts +32 -0
  1197. package/dist/esm/redaction/privateRun.js +105 -0
  1198. package/dist/esm/redaction/privateRun.js.map +1 -0
  1199. package/dist/esm/redaction/runRedaction.d.ts +47 -41
  1200. package/dist/esm/redaction/runRedaction.js +134 -91
  1201. package/dist/esm/redaction/runRedaction.js.map +1 -1
  1202. package/dist/esm/redaction/served.d.ts +10 -4
  1203. package/dist/esm/redaction/served.js +28 -7
  1204. package/dist/esm/redaction/served.js.map +1 -1
  1205. package/dist/esm/resilience/withCircuitBreaker.d.ts +1 -1
  1206. package/dist/esm/resilience/withCircuitBreaker.js +1 -1
  1207. package/dist/esm/security/extractSequence.js +1 -1
  1208. package/dist/esm/semantics/coverage/answer.js +1 -1
  1209. package/dist/esm/semantics/coverage/answer.js.map +1 -1
  1210. package/dist/esm/semantics/coverage/composedCoverage.d.ts +1 -1
  1211. package/dist/esm/semantics/coverage/composedCoverage.js +1 -1
  1212. package/dist/esm/semantics/coverage/items.d.ts +1 -1
  1213. package/dist/esm/semantics/coverage/items.js +1 -1
  1214. package/dist/esm/semantics/coverage/read.d.ts +3 -3
  1215. package/dist/esm/semantics/coverage/read.js +3 -3
  1216. package/dist/esm/semantics/types.d.ts +1 -1
  1217. package/dist/esm/semantics/types.js +1 -1
  1218. package/dist/esm/time/drift.d.ts +1 -1
  1219. package/dist/esm/time/drift.js +1 -1
  1220. package/dist/esm/time-travel/servedView/assembly.d.ts +4 -0
  1221. package/dist/esm/time-travel/servedView/assembly.js +44 -0
  1222. package/dist/esm/time-travel/servedView/assembly.js.map +1 -0
  1223. package/dist/esm/time-travel/servedView/conversation.d.ts +8 -0
  1224. package/dist/esm/time-travel/servedView/conversation.js +30 -0
  1225. package/dist/esm/time-travel/servedView/conversation.js.map +1 -0
  1226. package/dist/esm/time-travel/servedView/findings.d.ts +11 -0
  1227. package/dist/esm/time-travel/servedView/findings.js +68 -0
  1228. package/dist/esm/time-travel/servedView/findings.js.map +1 -0
  1229. package/dist/esm/time-travel/servedView/gaps.d.ts +76 -0
  1230. package/dist/esm/time-travel/servedView/gaps.js +476 -0
  1231. package/dist/esm/time-travel/servedView/gaps.js.map +1 -0
  1232. package/dist/esm/time-travel/servedView/ontology.d.ts +4 -0
  1233. package/dist/esm/time-travel/servedView/ontology.js +60 -0
  1234. package/dist/esm/time-travel/servedView/ontology.js.map +1 -0
  1235. package/dist/esm/time-travel/servedView/recordReads.d.ts +44 -0
  1236. package/dist/esm/time-travel/servedView/recordReads.js +73 -0
  1237. package/dist/esm/time-travel/servedView/recordReads.js.map +1 -0
  1238. package/dist/esm/time-travel/servedView/requestOnly.d.ts +6 -0
  1239. package/dist/esm/time-travel/servedView/requestOnly.js +67 -0
  1240. package/dist/esm/time-travel/servedView/requestOnly.js.map +1 -0
  1241. package/dist/esm/time-travel/servedView/system.d.ts +15 -0
  1242. package/dist/esm/time-travel/servedView/system.js +36 -0
  1243. package/dist/esm/time-travel/servedView/system.js.map +1 -0
  1244. package/dist/esm/time-travel/servedView/tools.d.ts +9 -0
  1245. package/dist/esm/time-travel/servedView/tools.js +36 -0
  1246. package/dist/esm/time-travel/servedView/tools.js.map +1 -0
  1247. package/dist/esm/time-travel/servedView/value.d.ts +38 -0
  1248. package/dist/esm/time-travel/servedView/value.js +57 -0
  1249. package/dist/esm/time-travel/servedView/value.js.map +1 -0
  1250. package/dist/esm/time-travel/servedView.d.ts +5 -65
  1251. package/dist/esm/time-travel/servedView.js +155 -877
  1252. package/dist/esm/time-travel/servedView.js.map +1 -1
  1253. package/dist/esm/tools/displayName.d.ts +6 -0
  1254. package/dist/esm/tools/displayName.js +15 -0
  1255. package/dist/esm/tools/displayName.js.map +1 -0
  1256. package/dist/esm/tools/finiteLabel.d.ts +16 -0
  1257. package/dist/esm/tools/finiteLabel.js +28 -0
  1258. package/dist/esm/tools/finiteLabel.js.map +1 -0
  1259. package/dist/esm/tools/inputRequest.d.ts +1 -1
  1260. package/dist/esm/tools/inputRequest.js +2 -2
  1261. package/dist/esm/tools/toolParty.d.ts +17 -0
  1262. package/dist/esm/tools/toolParty.js +40 -0
  1263. package/dist/esm/tools/toolParty.js.map +1 -0
  1264. package/dist/esm/tools/toolProvider.d.ts +1 -0
  1265. package/dist/esm/tools/toolResourceOwner.d.ts +27 -0
  1266. package/dist/esm/tools/toolResourceOwner.js +79 -0
  1267. package/dist/esm/tools/toolResourceOwner.js.map +1 -0
  1268. package/dist/esm/tools/toolSessions/contracts.d.ts +130 -0
  1269. package/dist/esm/tools/toolSessions/contracts.js +7 -0
  1270. package/dist/esm/tools/toolSessions/contracts.js.map +1 -0
  1271. package/dist/esm/tools/toolSessions/keys.d.ts +53 -0
  1272. package/dist/esm/tools/toolSessions/keys.js +113 -0
  1273. package/dist/esm/tools/toolSessions/keys.js.map +1 -0
  1274. package/dist/esm/tools/toolSessions/localStatus.d.ts +7 -0
  1275. package/dist/esm/tools/toolSessions/localStatus.js +9 -0
  1276. package/dist/esm/tools/toolSessions/localStatus.js.map +1 -0
  1277. package/dist/esm/tools/toolSessions.d.ts +30 -178
  1278. package/dist/esm/tools/toolSessions.js +138 -119
  1279. package/dist/esm/tools/toolSessions.js.map +1 -1
  1280. package/dist/esm/tools/tools.d.ts +6 -8
  1281. package/dist/esm/tools/tools.js +5 -15
  1282. package/dist/esm/tools/tools.js.map +1 -1
  1283. package/dist/esm/trace-toolpack/traceToolpack/artifactFacts.d.ts +15 -0
  1284. package/dist/esm/trace-toolpack/traceToolpack/artifactFacts.js +14 -0
  1285. package/dist/esm/trace-toolpack/traceToolpack/artifactFacts.js.map +1 -0
  1286. package/dist/esm/trace-toolpack/traceToolpack/backtrackView.d.ts +17 -0
  1287. package/dist/esm/trace-toolpack/traceToolpack/backtrackView.js +117 -0
  1288. package/dist/esm/trace-toolpack/traceToolpack/backtrackView.js.map +1 -0
  1289. package/dist/esm/trace-toolpack/traceToolpack/contextErrors.d.ts +43 -0
  1290. package/dist/esm/trace-toolpack/traceToolpack/contextErrors.js +354 -0
  1291. package/dist/esm/trace-toolpack/traceToolpack/contextErrors.js.map +1 -0
  1292. package/dist/esm/trace-toolpack/traceToolpack/findInTrace.d.ts +26 -0
  1293. package/dist/esm/trace-toolpack/traceToolpack/findInTrace.js +178 -0
  1294. package/dist/esm/trace-toolpack/traceToolpack/findInTrace.js.map +1 -0
  1295. package/dist/esm/trace-toolpack/traceToolpack/findingEvidence.d.ts +73 -0
  1296. package/dist/esm/trace-toolpack/traceToolpack/findingEvidence.js +176 -0
  1297. package/dist/esm/trace-toolpack/traceToolpack/findingEvidence.js.map +1 -0
  1298. package/dist/esm/trace-toolpack/traceToolpack/innerRecords.d.ts +11 -0
  1299. package/dist/esm/trace-toolpack/traceToolpack/innerRecords.js +88 -0
  1300. package/dist/esm/trace-toolpack/traceToolpack/innerRecords.js.map +1 -0
  1301. package/dist/esm/trace-toolpack/traceToolpack/narrativeView.d.ts +3 -0
  1302. package/dist/esm/trace-toolpack/traceToolpack/narrativeView.js +44 -0
  1303. package/dist/esm/trace-toolpack/traceToolpack/narrativeView.js.map +1 -0
  1304. package/dist/esm/trace-toolpack/traceToolpack/navigationHints.d.ts +6 -0
  1305. package/dist/esm/trace-toolpack/traceToolpack/navigationHints.js +42 -0
  1306. package/dist/esm/trace-toolpack/traceToolpack/navigationHints.js.map +1 -0
  1307. package/dist/esm/trace-toolpack/traceToolpack/nodeView.d.ts +5 -0
  1308. package/dist/esm/trace-toolpack/traceToolpack/nodeView.js +130 -0
  1309. package/dist/esm/trace-toolpack/traceToolpack/nodeView.js.map +1 -0
  1310. package/dist/esm/trace-toolpack/traceToolpack/packIndex.d.ts +69 -0
  1311. package/dist/esm/trace-toolpack/traceToolpack/packIndex.js +155 -0
  1312. package/dist/esm/trace-toolpack/traceToolpack/packIndex.js.map +1 -0
  1313. package/dist/esm/trace-toolpack/traceToolpack/parameterSchemas.d.ts +10 -0
  1314. package/dist/esm/trace-toolpack/traceToolpack/parameterSchemas.js +36 -0
  1315. package/dist/esm/trace-toolpack/traceToolpack/parameterSchemas.js.map +1 -0
  1316. package/dist/esm/trace-toolpack/traceToolpack/recursiveFactory.d.ts +40 -0
  1317. package/dist/esm/trace-toolpack/traceToolpack/recursiveFactory.js +392 -0
  1318. package/dist/esm/trace-toolpack/traceToolpack/recursiveFactory.js.map +1 -0
  1319. package/dist/esm/trace-toolpack/traceToolpack/runOverview.d.ts +5 -0
  1320. package/dist/esm/trace-toolpack/traceToolpack/runOverview.js +114 -0
  1321. package/dist/esm/trace-toolpack/traceToolpack/runOverview.js.map +1 -0
  1322. package/dist/esm/trace-toolpack/traceToolpack/sliceView.d.ts +5 -0
  1323. package/dist/esm/trace-toolpack/traceToolpack/sliceView.js +87 -0
  1324. package/dist/esm/trace-toolpack/traceToolpack/sliceView.js.map +1 -0
  1325. package/dist/esm/trace-toolpack/traceToolpack/structuralLimits.d.ts +41 -0
  1326. package/dist/esm/trace-toolpack/traceToolpack/structuralLimits.js +44 -0
  1327. package/dist/esm/trace-toolpack/traceToolpack/structuralLimits.js.map +1 -0
  1328. package/dist/esm/trace-toolpack/traceToolpack/toolCallJournal.d.ts +105 -0
  1329. package/dist/esm/trace-toolpack/traceToolpack/toolCallJournal.js +384 -0
  1330. package/dist/esm/trace-toolpack/traceToolpack/toolCallJournal.js.map +1 -0
  1331. package/dist/esm/trace-toolpack/traceToolpack/valueLines.d.ts +29 -0
  1332. package/dist/esm/trace-toolpack/traceToolpack/valueLines.js +52 -0
  1333. package/dist/esm/trace-toolpack/traceToolpack/valueLines.js.map +1 -0
  1334. package/dist/esm/trace-toolpack/traceToolpack/valueQueries.d.ts +6 -0
  1335. package/dist/esm/trace-toolpack/traceToolpack/valueQueries.js +122 -0
  1336. package/dist/esm/trace-toolpack/traceToolpack/valueQueries.js.map +1 -0
  1337. package/dist/esm/trace-toolpack/traceToolpack/writerHints.d.ts +13 -0
  1338. package/dist/esm/trace-toolpack/traceToolpack/writerHints.js +43 -0
  1339. package/dist/esm/trace-toolpack/traceToolpack/writerHints.js.map +1 -0
  1340. package/dist/esm/trace-toolpack/traceToolpack.d.ts +15 -40
  1341. package/dist/esm/trace-toolpack/traceToolpack.js +15 -2452
  1342. package/dist/esm/trace-toolpack/traceToolpack.js.map +1 -1
  1343. package/dist/events/dispatcher.js +2 -2
  1344. package/dist/events/payloads/access.js +3 -0
  1345. package/dist/events/payloads/access.js.map +1 -0
  1346. package/dist/events/payloads/agent.js +3 -0
  1347. package/dist/events/payloads/agent.js.map +1 -0
  1348. package/dist/events/payloads/answer.js +3 -0
  1349. package/dist/events/payloads/answer.js.map +1 -0
  1350. package/dist/events/payloads/artifacts.js +3 -0
  1351. package/dist/events/payloads/artifacts.js.map +1 -0
  1352. package/dist/events/payloads/consent.js +3 -0
  1353. package/dist/events/payloads/consent.js.map +1 -0
  1354. package/dist/events/payloads/context.js +3 -0
  1355. package/dist/events/payloads/context.js.map +1 -0
  1356. package/dist/events/payloads/cost.js +3 -0
  1357. package/dist/events/payloads/cost.js.map +1 -0
  1358. package/dist/events/payloads/dependencyTypes.js +3 -0
  1359. package/dist/events/payloads/dependencyTypes.js.map +1 -0
  1360. package/dist/events/payloads/evaluation.js +3 -0
  1361. package/dist/events/payloads/evaluation.js.map +1 -0
  1362. package/dist/events/payloads/fallback.js +3 -0
  1363. package/dist/events/payloads/fallback.js.map +1 -0
  1364. package/dist/events/payloads/findings.js +3 -0
  1365. package/dist/events/payloads/findings.js.map +1 -0
  1366. package/dist/events/payloads/flow.js +3 -0
  1367. package/dist/events/payloads/flow.js.map +1 -0
  1368. package/dist/events/payloads/integrity.js +4 -0
  1369. package/dist/events/payloads/integrity.js.map +1 -0
  1370. package/dist/events/payloads/maps.js +4 -0
  1371. package/dist/events/payloads/maps.js.map +1 -0
  1372. package/dist/events/payloads/mcpRequests.js +4 -0
  1373. package/dist/events/payloads/mcpRequests.js.map +1 -0
  1374. package/dist/events/payloads/memory.js +4 -0
  1375. package/dist/events/payloads/memory.js.map +1 -0
  1376. package/dist/events/payloads/reliability.js +3 -0
  1377. package/dist/events/payloads/reliability.js.map +1 -0
  1378. package/dist/events/payloads/runConfiguration.js +3 -0
  1379. package/dist/events/payloads/runConfiguration.js.map +1 -0
  1380. package/dist/events/payloads/skills.js +3 -0
  1381. package/dist/events/payloads/skills.js.map +1 -0
  1382. package/dist/events/payloads/stream.js +3 -0
  1383. package/dist/events/payloads/stream.js.map +1 -0
  1384. package/dist/events/payloads/thinking.js +3 -0
  1385. package/dist/events/payloads/thinking.js.map +1 -0
  1386. package/dist/events/payloads/toolCatalog.js +3 -0
  1387. package/dist/events/payloads/toolCatalog.js.map +1 -0
  1388. package/dist/events/payloads/toolChoice.js +3 -0
  1389. package/dist/events/payloads/toolChoice.js.map +1 -0
  1390. package/dist/events/payloads/toolEffects.js +3 -0
  1391. package/dist/events/payloads/toolEffects.js.map +1 -0
  1392. package/dist/events/payloads/toolSemantics.js +3 -0
  1393. package/dist/events/payloads/toolSemantics.js.map +1 -0
  1394. package/dist/events/payloads/toolSessionPayloads.js +18 -0
  1395. package/dist/events/payloads/toolSessionPayloads.js.map +1 -0
  1396. package/dist/events/payloads/validation.js +3 -0
  1397. package/dist/events/payloads/validation.js.map +1 -0
  1398. package/dist/events/registry.js +5 -15
  1399. package/dist/events/registry.js.map +1 -1
  1400. package/dist/hosting/answeredPause.js +16 -28
  1401. package/dist/hosting/answeredPause.js.map +1 -1
  1402. package/dist/hosting/durability.js +10 -8
  1403. package/dist/hosting/durability.js.map +1 -1
  1404. package/dist/hosting/standingAgent.js +72 -108
  1405. package/dist/hosting/standingAgent.js.map +1 -1
  1406. package/dist/hosting/stream.js +2 -5
  1407. package/dist/hosting/stream.js.map +1 -1
  1408. package/dist/hosting/streamHandler.js +5 -5
  1409. package/dist/hosting/streamHandler.js.map +1 -1
  1410. package/dist/index.js +7 -10
  1411. package/dist/index.js.map +1 -1
  1412. package/dist/influence-core/attribute.js +1 -1
  1413. package/dist/influence-core/attribute.js.map +1 -1
  1414. package/dist/influence-core/contrastive.js +1 -1
  1415. package/dist/influence-core/contrastive.js.map +1 -1
  1416. package/dist/influence-core/margin.js +1 -1
  1417. package/dist/influence-core/margin.js.map +1 -1
  1418. package/dist/influence-core/signals.js +1 -1
  1419. package/dist/influence-core/signals.js.map +1 -1
  1420. package/dist/influence-core/similarity.js +1 -1
  1421. package/dist/influence-core/similarity.js.map +1 -1
  1422. package/dist/injection-engine/buildInjectionEngineSubflow.js +1 -1
  1423. package/dist/injection-engine/buildInjectionEngineSubflow.js.map +1 -1
  1424. package/dist/injection-engine/devWarn.js +3 -2
  1425. package/dist/injection-engine/devWarn.js.map +1 -1
  1426. package/dist/injection-engine/entryScorer.js +1 -1
  1427. package/dist/injection-engine/entryScorer.js.map +1 -1
  1428. package/dist/injection-engine/skillGraph/cursorEvidence.js +58 -0
  1429. package/dist/injection-engine/skillGraph/cursorEvidence.js.map +1 -0
  1430. package/dist/injection-engine/skillGraph/cursorResolution.js +245 -0
  1431. package/dist/injection-engine/skillGraph/cursorResolution.js.map +1 -0
  1432. package/dist/injection-engine/skillGraph/decision.js +15 -0
  1433. package/dist/injection-engine/skillGraph/decision.js.map +1 -0
  1434. package/dist/injection-engine/skillGraph/entryScores.js +34 -0
  1435. package/dist/injection-engine/skillGraph/entryScores.js.map +1 -0
  1436. package/dist/injection-engine/skillGraph/entrySuppression.js +50 -0
  1437. package/dist/injection-engine/skillGraph/entrySuppression.js.map +1 -0
  1438. package/dist/injection-engine/skillGraph/graphConfig.js +3 -0
  1439. package/dist/injection-engine/skillGraph/graphConfig.js.map +1 -0
  1440. package/dist/injection-engine/skillGraph/graphContracts.js +17 -0
  1441. package/dist/injection-engine/skillGraph/graphContracts.js.map +1 -0
  1442. package/dist/injection-engine/skillGraph/graphCursor.js +3 -0
  1443. package/dist/injection-engine/skillGraph/graphCursor.js.map +1 -0
  1444. package/dist/injection-engine/skillGraph/graphDrawing.js +35 -0
  1445. package/dist/injection-engine/skillGraph/graphDrawing.js.map +1 -0
  1446. package/dist/injection-engine/skillGraph/graphRoutes.js +3 -0
  1447. package/dist/injection-engine/skillGraph/graphRoutes.js.map +1 -0
  1448. package/dist/injection-engine/skillGraph/passMemo.js +42 -0
  1449. package/dist/injection-engine/skillGraph/passMemo.js.map +1 -0
  1450. package/dist/injection-engine/skillGraph/reachability.js +67 -0
  1451. package/dist/injection-engine/skillGraph/reachability.js.map +1 -0
  1452. package/dist/injection-engine/skillGraph/routePredicates.js +66 -0
  1453. package/dist/injection-engine/skillGraph/routePredicates.js.map +1 -0
  1454. package/dist/injection-engine/skillGraph/routingView.js +28 -0
  1455. package/dist/injection-engine/skillGraph/routingView.js.map +1 -0
  1456. package/dist/injection-engine/skillGraph/treeCompilation.js +158 -0
  1457. package/dist/injection-engine/skillGraph/treeCompilation.js.map +1 -0
  1458. package/dist/injection-engine/skillGraph/triggerCompilation.js +79 -0
  1459. package/dist/injection-engine/skillGraph/triggerCompilation.js.map +1 -0
  1460. package/dist/injection-engine/skillGraph.js +40 -832
  1461. package/dist/injection-engine/skillGraph.js.map +1 -1
  1462. package/dist/injection-engine/skillMatch.js +2 -1
  1463. package/dist/injection-engine/skillMatch.js.map +1 -1
  1464. package/dist/injection-engine/skillToolDescriptors.js +2 -2
  1465. package/dist/injection-engine/skillToolDescriptors.js.map +1 -1
  1466. package/dist/lib/cosine.js.map +1 -0
  1467. package/dist/lib/iterationBudget.js +9 -1
  1468. package/dist/lib/iterationBudget.js.map +1 -1
  1469. package/dist/lib/saidByPerson.js +3 -1
  1470. package/dist/lib/saidByPerson.js.map +1 -1
  1471. package/dist/lib/spokenIds.js +2 -2
  1472. package/dist/lib/spokenIds.js.map +1 -1
  1473. package/dist/lib/toolBytes.js +2 -2
  1474. package/dist/lib/toolBytes.js.map +1 -1
  1475. package/dist/maps/engagement/lease.js +1 -1
  1476. package/dist/maps/engagement/lease.js.map +1 -1
  1477. package/dist/memory/causal/evidenceRecorder.js +221 -213
  1478. package/dist/memory/causal/evidenceRecorder.js.map +1 -1
  1479. package/dist/memory/causal/loadSnapshot.js +16 -59
  1480. package/dist/memory/causal/loadSnapshot.js.map +1 -1
  1481. package/dist/memory/causal/observation.js +16 -0
  1482. package/dist/memory/causal/observation.js.map +1 -0
  1483. package/dist/memory/causal/snapshotProjection.js +65 -0
  1484. package/dist/memory/causal/snapshotProjection.js.map +1 -0
  1485. package/dist/memory/causal/snapshotSchema.js +172 -0
  1486. package/dist/memory/causal/snapshotSchema.js.map +1 -0
  1487. package/dist/memory/causal/types.js +0 -18
  1488. package/dist/memory/causal/types.js.map +1 -1
  1489. package/dist/memory/causal/writeSnapshot.js +17 -14
  1490. package/dist/memory/causal/writeSnapshot.js.map +1 -1
  1491. package/dist/memory/embedding/index.js +1 -1
  1492. package/dist/memory/embedding/index.js.map +1 -1
  1493. package/dist/memory/store/InMemoryStore.js +1 -1
  1494. package/dist/memory/store/InMemoryStore.js.map +1 -1
  1495. package/dist/memory/store/staticVectorStore.js +1 -1
  1496. package/dist/memory/store/staticVectorStore.js.map +1 -1
  1497. package/dist/memory/wire/mountMemoryPipeline.js +8 -2
  1498. package/dist/memory/wire/mountMemoryPipeline.js.map +1 -1
  1499. package/dist/patterns/LlmRouter.js +49 -177
  1500. package/dist/patterns/LlmRouter.js.map +1 -1
  1501. package/dist/patterns/LlmSwarm.js +7 -70
  1502. package/dist/patterns/LlmSwarm.js.map +1 -1
  1503. package/dist/patterns/MapReduce.js +30 -20
  1504. package/dist/patterns/MapReduce.js.map +1 -1
  1505. package/dist/patterns/Swarm.js +233 -79
  1506. package/dist/patterns/Swarm.js.map +1 -1
  1507. package/dist/patterns/index.js.map +1 -1
  1508. package/dist/patterns/routing.js +22 -0
  1509. package/dist/patterns/routing.js.map +1 -0
  1510. package/dist/recorders/observability/BoundaryRecorder.js +23 -299
  1511. package/dist/recorders/observability/BoundaryRecorder.js.map +1 -1
  1512. package/dist/recorders/observability/boundaryRecorder/agentInternal.js +61 -0
  1513. package/dist/recorders/observability/boundaryRecorder/agentInternal.js.map +1 -0
  1514. package/dist/recorders/observability/boundaryRecorder/domainEvents.js +3 -0
  1515. package/dist/recorders/observability/boundaryRecorder/domainEvents.js.map +1 -0
  1516. package/dist/recorders/observability/boundaryRecorder/eventBuilders.js +84 -0
  1517. package/dist/recorders/observability/boundaryRecorder/eventBuilders.js.map +1 -0
  1518. package/dist/recorders/observability/boundaryRecorder/flowEvents.js +3 -0
  1519. package/dist/recorders/observability/boundaryRecorder/flowEvents.js.map +1 -0
  1520. package/dist/recorders/observability/boundaryRecorder/leanContent.js +55 -0
  1521. package/dist/recorders/observability/boundaryRecorder/leanContent.js.map +1 -0
  1522. package/dist/recorders/observability/boundaryRecorder/options.js +3 -0
  1523. package/dist/recorders/observability/boundaryRecorder/options.js.map +1 -0
  1524. package/dist/recorders/observability/boundaryRecorder/rangeLabels.js +43 -0
  1525. package/dist/recorders/observability/boundaryRecorder/rangeLabels.js.map +1 -0
  1526. package/dist/recorders/observability/boundaryRecorder/rollups.js +72 -0
  1527. package/dist/recorders/observability/boundaryRecorder/rollups.js.map +1 -0
  1528. package/dist/recorders/observability/fileRecordingSink.js +2 -4
  1529. package/dist/recorders/observability/fileRecordingSink.js.map +1 -1
  1530. package/dist/recorders/observability/recordingEnvelope.js +6 -10
  1531. package/dist/recorders/observability/recordingEnvelope.js.map +1 -1
  1532. package/dist/redaction/coverage.js +5 -3
  1533. package/dist/redaction/coverage.js.map +1 -1
  1534. package/dist/redaction/declared.js +18 -3
  1535. package/dist/redaction/declared.js.map +1 -1
  1536. package/dist/redaction/knownStrings.js +10 -34
  1537. package/dist/redaction/knownStrings.js.map +1 -1
  1538. package/dist/redaction/marker.js +1 -1
  1539. package/dist/redaction/privateCaller.js +84 -0
  1540. package/dist/redaction/privateCaller.js.map +1 -0
  1541. package/dist/redaction/privateCheckpoint.js +99 -0
  1542. package/dist/redaction/privateCheckpoint.js.map +1 -0
  1543. package/dist/redaction/privateFields.js +159 -0
  1544. package/dist/redaction/privateFields.js.map +1 -0
  1545. package/dist/redaction/privateRun.js +112 -0
  1546. package/dist/redaction/privateRun.js.map +1 -0
  1547. package/dist/redaction/runRedaction.js +141 -93
  1548. package/dist/redaction/runRedaction.js.map +1 -1
  1549. package/dist/redaction/served.js +28 -7
  1550. package/dist/redaction/served.js.map +1 -1
  1551. package/dist/resilience/withCircuitBreaker.js +1 -1
  1552. package/dist/security/extractSequence.js +1 -1
  1553. package/dist/semantics/coverage/answer.js +1 -1
  1554. package/dist/semantics/coverage/answer.js.map +1 -1
  1555. package/dist/semantics/coverage/composedCoverage.js +1 -1
  1556. package/dist/semantics/coverage/items.js +1 -1
  1557. package/dist/semantics/coverage/read.js +3 -3
  1558. package/dist/semantics/types.js +1 -1
  1559. package/dist/time/drift.js +1 -1
  1560. package/dist/time-travel/servedView/assembly.js +48 -0
  1561. package/dist/time-travel/servedView/assembly.js.map +1 -0
  1562. package/dist/time-travel/servedView/conversation.js +34 -0
  1563. package/dist/time-travel/servedView/conversation.js.map +1 -0
  1564. package/dist/time-travel/servedView/findings.js +72 -0
  1565. package/dist/time-travel/servedView/findings.js.map +1 -0
  1566. package/dist/time-travel/servedView/gaps.js +480 -0
  1567. package/dist/time-travel/servedView/gaps.js.map +1 -0
  1568. package/dist/time-travel/servedView/ontology.js +64 -0
  1569. package/dist/time-travel/servedView/ontology.js.map +1 -0
  1570. package/dist/time-travel/servedView/recordReads.js +79 -0
  1571. package/dist/time-travel/servedView/recordReads.js.map +1 -0
  1572. package/dist/time-travel/servedView/requestOnly.js +71 -0
  1573. package/dist/time-travel/servedView/requestOnly.js.map +1 -0
  1574. package/dist/time-travel/servedView/system.js +41 -0
  1575. package/dist/time-travel/servedView/system.js.map +1 -0
  1576. package/dist/time-travel/servedView/tools.js +40 -0
  1577. package/dist/time-travel/servedView/tools.js.map +1 -0
  1578. package/dist/time-travel/servedView/value.js +62 -0
  1579. package/dist/time-travel/servedView/value.js.map +1 -0
  1580. package/dist/time-travel/servedView.js +161 -882
  1581. package/dist/time-travel/servedView.js.map +1 -1
  1582. package/dist/tools/displayName.js +19 -0
  1583. package/dist/tools/displayName.js.map +1 -0
  1584. package/dist/tools/finiteLabel.js +36 -0
  1585. package/dist/tools/finiteLabel.js.map +1 -0
  1586. package/dist/tools/inputRequest.js +2 -2
  1587. package/dist/tools/toolParty.js +45 -0
  1588. package/dist/tools/toolParty.js.map +1 -0
  1589. package/dist/tools/toolResourceOwner.js +87 -0
  1590. package/dist/tools/toolResourceOwner.js.map +1 -0
  1591. package/dist/tools/toolSessions/contracts.js +10 -0
  1592. package/dist/tools/toolSessions/contracts.js.map +1 -0
  1593. package/dist/tools/toolSessions/keys.js +120 -0
  1594. package/dist/tools/toolSessions/keys.js.map +1 -0
  1595. package/dist/tools/toolSessions/localStatus.js +13 -0
  1596. package/dist/tools/toolSessions/localStatus.js.map +1 -0
  1597. package/dist/tools/toolSessions.js +151 -127
  1598. package/dist/tools/toolSessions.js.map +1 -1
  1599. package/dist/tools/tools.js +18 -17
  1600. package/dist/tools/tools.js.map +1 -1
  1601. package/dist/trace-toolpack/traceToolpack/artifactFacts.js +18 -0
  1602. package/dist/trace-toolpack/traceToolpack/artifactFacts.js.map +1 -0
  1603. package/dist/trace-toolpack/traceToolpack/backtrackView.js +120 -0
  1604. package/dist/trace-toolpack/traceToolpack/backtrackView.js.map +1 -0
  1605. package/dist/trace-toolpack/traceToolpack/contextErrors.js +357 -0
  1606. package/dist/trace-toolpack/traceToolpack/contextErrors.js.map +1 -0
  1607. package/dist/trace-toolpack/traceToolpack/findInTrace.js +181 -0
  1608. package/dist/trace-toolpack/traceToolpack/findInTrace.js.map +1 -0
  1609. package/dist/trace-toolpack/traceToolpack/findingEvidence.js +189 -0
  1610. package/dist/trace-toolpack/traceToolpack/findingEvidence.js.map +1 -0
  1611. package/dist/trace-toolpack/traceToolpack/innerRecords.js +94 -0
  1612. package/dist/trace-toolpack/traceToolpack/innerRecords.js.map +1 -0
  1613. package/dist/trace-toolpack/traceToolpack/narrativeView.js +47 -0
  1614. package/dist/trace-toolpack/traceToolpack/narrativeView.js.map +1 -0
  1615. package/dist/trace-toolpack/traceToolpack/navigationHints.js +47 -0
  1616. package/dist/trace-toolpack/traceToolpack/navigationHints.js.map +1 -0
  1617. package/dist/trace-toolpack/traceToolpack/nodeView.js +133 -0
  1618. package/dist/trace-toolpack/traceToolpack/nodeView.js.map +1 -0
  1619. package/dist/trace-toolpack/traceToolpack/packIndex.js +160 -0
  1620. package/dist/trace-toolpack/traceToolpack/packIndex.js.map +1 -0
  1621. package/dist/trace-toolpack/traceToolpack/parameterSchemas.js +40 -0
  1622. package/dist/trace-toolpack/traceToolpack/parameterSchemas.js.map +1 -0
  1623. package/dist/trace-toolpack/traceToolpack/recursiveFactory.js +397 -0
  1624. package/dist/trace-toolpack/traceToolpack/recursiveFactory.js.map +1 -0
  1625. package/dist/trace-toolpack/traceToolpack/runOverview.js +117 -0
  1626. package/dist/trace-toolpack/traceToolpack/runOverview.js.map +1 -0
  1627. package/dist/trace-toolpack/traceToolpack/sliceView.js +90 -0
  1628. package/dist/trace-toolpack/traceToolpack/sliceView.js.map +1 -0
  1629. package/dist/trace-toolpack/traceToolpack/structuralLimits.js +71 -0
  1630. package/dist/trace-toolpack/traceToolpack/structuralLimits.js.map +1 -0
  1631. package/dist/trace-toolpack/traceToolpack/toolCallJournal.js +388 -0
  1632. package/dist/trace-toolpack/traceToolpack/toolCallJournal.js.map +1 -0
  1633. package/dist/trace-toolpack/traceToolpack/valueLines.js +60 -0
  1634. package/dist/trace-toolpack/traceToolpack/valueLines.js.map +1 -0
  1635. package/dist/trace-toolpack/traceToolpack/valueQueries.js +126 -0
  1636. package/dist/trace-toolpack/traceToolpack/valueQueries.js.map +1 -0
  1637. package/dist/trace-toolpack/traceToolpack/writerHints.js +47 -0
  1638. package/dist/trace-toolpack/traceToolpack/writerHints.js.map +1 -0
  1639. package/dist/trace-toolpack/traceToolpack.js +18 -2455
  1640. package/dist/trace-toolpack/traceToolpack.js.map +1 -1
  1641. package/dist/types/adapters/observability/auditShapes.d.ts +5 -31
  1642. package/dist/types/adapters/observability/auditShapes.d.ts.map +1 -1
  1643. package/dist/types/adapters/observability/otel.d.ts +1 -1
  1644. package/dist/types/bridge/eventMeta.d.ts +2 -0
  1645. package/dist/types/bridge/eventMeta.d.ts.map +1 -1
  1646. package/dist/types/core/Agent.d.ts +18 -121
  1647. package/dist/types/core/Agent.d.ts.map +1 -1
  1648. package/dist/types/core/LLMCall.d.ts +1 -4
  1649. package/dist/types/core/LLMCall.d.ts.map +1 -1
  1650. package/dist/types/core/RunnerBase.d.ts +42 -114
  1651. package/dist/types/core/RunnerBase.d.ts.map +1 -1
  1652. package/dist/types/core/agent/arguments/answerRows.d.ts +27 -0
  1653. package/dist/types/core/agent/arguments/answerRows.d.ts.map +1 -0
  1654. package/dist/types/core/agent/arguments/ask.d.ts +5 -11
  1655. package/dist/types/core/agent/arguments/ask.d.ts.map +1 -1
  1656. package/dist/types/core/agent/arguments/dispatch.d.ts +4 -4
  1657. package/dist/types/core/agent/arguments/dispatch.d.ts.map +1 -1
  1658. package/dist/types/core/agent/arguments/kept.d.ts +1 -1
  1659. package/dist/types/core/agent/arguments/partialWindow.d.ts +2 -1
  1660. package/dist/types/core/agent/arguments/partialWindow.d.ts.map +1 -1
  1661. package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts +38 -0
  1662. package/dist/types/core/agent/arguments/pendingPrivateAsk.d.ts.map +1 -0
  1663. package/dist/types/core/agent/arguments/privateAnswers.d.ts +47 -0
  1664. package/dist/types/core/agent/arguments/privateAnswers.d.ts.map +1 -0
  1665. package/dist/types/core/agent/arguments/resolutionRows.d.ts +30 -0
  1666. package/dist/types/core/agent/arguments/resolutionRows.d.ts.map +1 -0
  1667. package/dist/types/core/agent/arguments/resolve.d.ts +2 -13
  1668. package/dist/types/core/agent/arguments/resolve.d.ts.map +1 -1
  1669. package/dist/types/core/agent/arguments/serve.d.ts +0 -5
  1670. package/dist/types/core/agent/arguments/serve.d.ts.map +1 -1
  1671. package/dist/types/core/agent/arguments/subflow.d.ts.map +1 -1
  1672. package/dist/types/core/agent/buildAgentChart.d.ts +3 -326
  1673. package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -1
  1674. package/dist/types/core/agent/buildToolRegistry.d.ts +1 -1
  1675. package/dist/types/core/agent/callerIdentity.d.ts +9 -64
  1676. package/dist/types/core/agent/callerIdentity.d.ts.map +1 -1
  1677. package/dist/types/core/agent/chartContract.d.ts +328 -0
  1678. package/dist/types/core/agent/chartContract.d.ts.map +1 -0
  1679. package/dist/types/core/agent/checkpointDomain.d.ts +12 -0
  1680. package/dist/types/core/agent/checkpointDomain.d.ts.map +1 -0
  1681. package/dist/types/core/agent/componentObservers.d.ts +15 -0
  1682. package/dist/types/core/agent/componentObservers.d.ts.map +1 -0
  1683. package/dist/types/core/agent/componentResources.d.ts +40 -0
  1684. package/dist/types/core/agent/componentResources.d.ts.map +1 -0
  1685. package/dist/types/core/agent/evidence/frames.d.ts.map +1 -1
  1686. package/dist/types/core/agent/evidence/servedJson.d.ts +1 -1
  1687. package/dist/types/core/agent/findings/contingent.d.ts +1 -1
  1688. package/dist/types/core/agent/findings/judge.d.ts +1 -1
  1689. package/dist/types/core/agent/findings/types.d.ts +1 -1
  1690. package/dist/types/core/agent/findings/unsettled.d.ts +3 -3
  1691. package/dist/types/core/agent/honesty/inputsMountContract.d.ts +67 -0
  1692. package/dist/types/core/agent/honesty/inputsMountContract.d.ts.map +1 -0
  1693. package/dist/types/core/agent/honesty/mounts.d.ts +4 -66
  1694. package/dist/types/core/agent/honesty/mounts.d.ts.map +1 -1
  1695. package/dist/types/core/agent/hostTurn.d.ts +18 -0
  1696. package/dist/types/core/agent/hostTurn.d.ts.map +1 -0
  1697. package/dist/types/core/agent/pauseOwnership.d.ts +25 -0
  1698. package/dist/types/core/agent/pauseOwnership.d.ts.map +1 -0
  1699. package/dist/types/core/agent/presentTool.d.ts +1 -1
  1700. package/dist/types/core/agent/resultCeiling.d.ts +1 -1
  1701. package/dist/types/core/agent/resumeAnswer.d.ts +11 -0
  1702. package/dist/types/core/agent/resumeAnswer.d.ts.map +1 -0
  1703. package/dist/types/core/agent/resumeCheckpoint.d.ts +13 -0
  1704. package/dist/types/core/agent/resumeCheckpoint.d.ts.map +1 -0
  1705. package/dist/types/core/agent/resumeError.d.ts +9 -0
  1706. package/dist/types/core/agent/resumeError.d.ts.map +1 -0
  1707. package/dist/types/core/agent/run/clocks.d.ts +45 -0
  1708. package/dist/types/core/agent/run/clocks.d.ts.map +1 -0
  1709. package/dist/types/core/agent/run/commitRunRedaction.d.ts +5 -0
  1710. package/dist/types/core/agent/run/commitRunRedaction.d.ts.map +1 -0
  1711. package/dist/types/core/agent/run/eventStageIds.d.ts +41 -0
  1712. package/dist/types/core/agent/run/eventStageIds.d.ts.map +1 -0
  1713. package/dist/types/core/agent/run/injectionDelivery.d.ts +5 -0
  1714. package/dist/types/core/agent/run/injectionDelivery.d.ts.map +1 -0
  1715. package/dist/types/core/agent/run/ledgerFacts.d.ts +9 -0
  1716. package/dist/types/core/agent/run/ledgerFacts.d.ts.map +1 -0
  1717. package/dist/types/core/agent/run/resumeRedaction.d.ts +7 -0
  1718. package/dist/types/core/agent/run/resumeRedaction.d.ts.map +1 -0
  1719. package/dist/types/core/agent/run/withoutTime.d.ts +9 -0
  1720. package/dist/types/core/agent/run/withoutTime.d.ts.map +1 -0
  1721. package/dist/types/core/agent/runValues.d.ts +72 -0
  1722. package/dist/types/core/agent/runValues.d.ts.map +1 -0
  1723. package/dist/types/core/agent/scripts/rows.d.ts +1 -1
  1724. package/dist/types/core/agent/scripts/types.d.ts +1 -1
  1725. package/dist/types/core/agent/stages/argumentAsk.d.ts +7 -1
  1726. package/dist/types/core/agent/stages/argumentAsk.d.ts.map +1 -1
  1727. package/dist/types/core/agent/stages/argumentParties.d.ts +4 -0
  1728. package/dist/types/core/agent/stages/argumentParties.d.ts.map +1 -0
  1729. package/dist/types/core/agent/stages/batchParties.d.ts +22 -0
  1730. package/dist/types/core/agent/stages/batchParties.d.ts.map +1 -0
  1731. package/dist/types/core/agent/stages/finalStageContract.d.ts +46 -0
  1732. package/dist/types/core/agent/stages/finalStageContract.d.ts.map +1 -0
  1733. package/dist/types/core/agent/stages/prepareFinal.d.ts +2 -45
  1734. package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -1
  1735. package/dist/types/core/agent/stages/searchCoverage.d.ts +1 -1
  1736. package/dist/types/core/agent/stages/seed.d.ts.map +1 -1
  1737. package/dist/types/core/agent/stages/servedParties.d.ts +40 -0
  1738. package/dist/types/core/agent/stages/servedParties.d.ts.map +1 -0
  1739. package/dist/types/core/agent/stages/timeLayer.d.ts +3 -3
  1740. package/dist/types/core/agent/stages/timeLayer.d.ts.map +1 -1
  1741. package/dist/types/core/agent/stages/toolCallShape.d.ts +8 -0
  1742. package/dist/types/core/agent/stages/toolCallShape.d.ts.map +1 -0
  1743. package/dist/types/core/agent/stages/toolCalls/access/argumentGate.d.ts +22 -0
  1744. package/dist/types/core/agent/stages/toolCalls/access/argumentGate.d.ts.map +1 -0
  1745. package/dist/types/core/agent/stages/toolCalls/access/argumentValidation.d.ts +11 -0
  1746. package/dist/types/core/agent/stages/toolCalls/access/argumentValidation.d.ts.map +1 -0
  1747. package/dist/types/core/agent/stages/toolCalls/access/bindings.d.ts +62 -0
  1748. package/dist/types/core/agent/stages/toolCalls/access/bindings.d.ts.map +1 -0
  1749. package/dist/types/core/agent/stages/toolCalls/access/callState.d.ts +15 -0
  1750. package/dist/types/core/agent/stages/toolCalls/access/callState.d.ts.map +1 -0
  1751. package/dist/types/core/agent/stages/toolCalls/access/capabilityQuestion.d.ts +29 -0
  1752. package/dist/types/core/agent/stages/toolCalls/access/capabilityQuestion.d.ts.map +1 -0
  1753. package/dist/types/core/agent/stages/toolCalls/access/checkInAdmission.d.ts +45 -0
  1754. package/dist/types/core/agent/stages/toolCalls/access/checkInAdmission.d.ts.map +1 -0
  1755. package/dist/types/core/agent/stages/toolCalls/access/heldAnswer.d.ts +9 -0
  1756. package/dist/types/core/agent/stages/toolCalls/access/heldAnswer.d.ts.map +1 -0
  1757. package/dist/types/core/agent/stages/toolCalls/access/middlewareAdmission.d.ts +51 -0
  1758. package/dist/types/core/agent/stages/toolCalls/access/middlewareAdmission.d.ts.map +1 -0
  1759. package/dist/types/core/agent/stages/toolCalls/access/toolPermission.d.ts +25 -0
  1760. package/dist/types/core/agent/stages/toolCalls/access/toolPermission.d.ts.map +1 -0
  1761. package/dist/types/core/agent/stages/toolCalls/batch/completion.d.ts +19 -0
  1762. package/dist/types/core/agent/stages/toolCalls/batch/completion.d.ts.map +1 -0
  1763. package/dist/types/core/agent/stages/toolCalls/batch/dispatchContext.d.ts +37 -0
  1764. package/dist/types/core/agent/stages/toolCalls/batch/dispatchContext.d.ts.map +1 -0
  1765. package/dist/types/core/agent/stages/toolCalls/batch/execute.d.ts +8 -0
  1766. package/dist/types/core/agent/stages/toolCalls/batch/execute.d.ts.map +1 -0
  1767. package/dist/types/core/agent/stages/toolCalls/batch/findingsAdmission.d.ts +19 -0
  1768. package/dist/types/core/agent/stages/toolCalls/batch/findingsAdmission.d.ts.map +1 -0
  1769. package/dist/types/core/agent/stages/toolCalls/batch/inputResolutions.d.ts +7 -0
  1770. package/dist/types/core/agent/stages/toolCalls/batch/inputResolutions.d.ts.map +1 -0
  1771. package/dist/types/core/agent/stages/toolCalls/batch/paused.d.ts +66 -0
  1772. package/dist/types/core/agent/stages/toolCalls/batch/paused.d.ts.map +1 -0
  1773. package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts +6 -0
  1774. package/dist/types/core/agent/stages/toolCalls/batch/refusal.d.ts.map +1 -0
  1775. package/dist/types/core/agent/stages/toolCalls/batch/settle.d.ts +67 -0
  1776. package/dist/types/core/agent/stages/toolCalls/batch/settle.d.ts.map +1 -0
  1777. package/dist/types/core/agent/stages/toolCalls/batch/settlementOperations.d.ts +18 -0
  1778. package/dist/types/core/agent/stages/toolCalls/batch/settlementOperations.d.ts.map +1 -0
  1779. package/dist/types/core/agent/stages/toolCalls/compose.d.ts +240 -0
  1780. package/dist/types/core/agent/stages/toolCalls/compose.d.ts.map +1 -0
  1781. package/dist/types/core/agent/stages/toolCalls/contracts/access.d.ts +111 -0
  1782. package/dist/types/core/agent/stages/toolCalls/contracts/access.d.ts.map +1 -0
  1783. package/dist/types/core/agent/stages/toolCalls/contracts/artifacts.d.ts +27 -0
  1784. package/dist/types/core/agent/stages/toolCalls/contracts/artifacts.d.ts.map +1 -0
  1785. package/dist/types/core/agent/stages/toolCalls/contracts/batchCall.d.ts +9 -0
  1786. package/dist/types/core/agent/stages/toolCalls/contracts/batchCall.d.ts.map +1 -0
  1787. package/dist/types/core/agent/stages/toolCalls/contracts/callCells.d.ts +44 -0
  1788. package/dist/types/core/agent/stages/toolCalls/contracts/callCells.d.ts.map +1 -0
  1789. package/dist/types/core/agent/stages/toolCalls/contracts/callFacts.d.ts +51 -0
  1790. package/dist/types/core/agent/stages/toolCalls/contracts/callFacts.d.ts.map +1 -0
  1791. package/dist/types/core/agent/stages/toolCalls/contracts/catalog.d.ts +57 -0
  1792. package/dist/types/core/agent/stages/toolCalls/contracts/catalog.d.ts.map +1 -0
  1793. package/dist/types/core/agent/stages/toolCalls/contracts/dispatchBatch.d.ts +18 -0
  1794. package/dist/types/core/agent/stages/toolCalls/contracts/dispatchBatch.d.ts.map +1 -0
  1795. package/dist/types/core/agent/stages/toolCalls/contracts/dispatchCall.d.ts +15 -0
  1796. package/dist/types/core/agent/stages/toolCalls/contracts/dispatchCall.d.ts.map +1 -0
  1797. package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts +212 -0
  1798. package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts.map +1 -0
  1799. package/dist/types/core/agent/stages/toolCalls/contracts/handlerDeps.d.ts +12 -0
  1800. package/dist/types/core/agent/stages/toolCalls/contracts/handlerDeps.d.ts.map +1 -0
  1801. package/dist/types/core/agent/stages/toolCalls/contracts/inputsDispatch.d.ts +3 -0
  1802. package/dist/types/core/agent/stages/toolCalls/contracts/inputsDispatch.d.ts.map +1 -0
  1803. package/dist/types/core/agent/stages/toolCalls/contracts/invocationInputs.d.ts +12 -0
  1804. package/dist/types/core/agent/stages/toolCalls/contracts/invocationInputs.d.ts.map +1 -0
  1805. package/dist/types/core/agent/stages/toolCalls/contracts/observation.d.ts +25 -0
  1806. package/dist/types/core/agent/stages/toolCalls/contracts/observation.d.ts.map +1 -0
  1807. package/dist/types/core/agent/stages/toolCalls/contracts/operations/artifacts.d.ts +38 -0
  1808. package/dist/types/core/agent/stages/toolCalls/contracts/operations/artifacts.d.ts.map +1 -0
  1809. package/dist/types/core/agent/stages/toolCalls/contracts/operations/catalog.d.ts +32 -0
  1810. package/dist/types/core/agent/stages/toolCalls/contracts/operations/catalog.d.ts.map +1 -0
  1811. package/dist/types/core/agent/stages/toolCalls/contracts/operations/context.d.ts +15 -0
  1812. package/dist/types/core/agent/stages/toolCalls/contracts/operations/context.d.ts.map +1 -0
  1813. package/dist/types/core/agent/stages/toolCalls/contracts/operations/coverage.d.ts +24 -0
  1814. package/dist/types/core/agent/stages/toolCalls/contracts/operations/coverage.d.ts.map +1 -0
  1815. package/dist/types/core/agent/stages/toolCalls/contracts/operations/credentials.d.ts +6 -0
  1816. package/dist/types/core/agent/stages/toolCalls/contracts/operations/credentials.d.ts.map +1 -0
  1817. package/dist/types/core/agent/stages/toolCalls/contracts/operations/effects.d.ts +15 -0
  1818. package/dist/types/core/agent/stages/toolCalls/contracts/operations/effects.d.ts.map +1 -0
  1819. package/dist/types/core/agent/stages/toolCalls/contracts/operations/integrity.d.ts +17 -0
  1820. package/dist/types/core/agent/stages/toolCalls/contracts/operations/integrity.d.ts.map +1 -0
  1821. package/dist/types/core/agent/stages/toolCalls/contracts/operations/limits.d.ts +20 -0
  1822. package/dist/types/core/agent/stages/toolCalls/contracts/operations/limits.d.ts.map +1 -0
  1823. package/dist/types/core/agent/stages/toolCalls/contracts/operations/middleware.d.ts +26 -0
  1824. package/dist/types/core/agent/stages/toolCalls/contracts/operations/middleware.d.ts.map +1 -0
  1825. package/dist/types/core/agent/stages/toolCalls/contracts/operations/observations.d.ts +9 -0
  1826. package/dist/types/core/agent/stages/toolCalls/contracts/operations/observations.d.ts.map +1 -0
  1827. package/dist/types/core/agent/stages/toolCalls/contracts/operations/progress.d.ts +12 -0
  1828. package/dist/types/core/agent/stages/toolCalls/contracts/operations/progress.d.ts.map +1 -0
  1829. package/dist/types/core/agent/stages/toolCalls/contracts/operations/resources.d.ts +13 -0
  1830. package/dist/types/core/agent/stages/toolCalls/contracts/operations/resources.d.ts.map +1 -0
  1831. package/dist/types/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.d.ts +31 -0
  1832. package/dist/types/core/agent/stages/toolCalls/contracts/operations/resumedInvocation.d.ts.map +1 -0
  1833. package/dist/types/core/agent/stages/toolCalls/contracts/operations/scripts.d.ts +41 -0
  1834. package/dist/types/core/agent/stages/toolCalls/contracts/operations/scripts.d.ts.map +1 -0
  1835. package/dist/types/core/agent/stages/toolCalls/contracts/operations/semantics.d.ts +11 -0
  1836. package/dist/types/core/agent/stages/toolCalls/contracts/operations/semantics.d.ts.map +1 -0
  1837. package/dist/types/core/agent/stages/toolCalls/contracts/operations/settlement.d.ts +14 -0
  1838. package/dist/types/core/agent/stages/toolCalls/contracts/operations/settlement.d.ts.map +1 -0
  1839. package/dist/types/core/agent/stages/toolCalls/contracts/operations/steps.d.ts +27 -0
  1840. package/dist/types/core/agent/stages/toolCalls/contracts/operations/steps.d.ts.map +1 -0
  1841. package/dist/types/core/agent/stages/toolCalls/contracts/resources.d.ts +68 -0
  1842. package/dist/types/core/agent/stages/toolCalls/contracts/resources.d.ts.map +1 -0
  1843. package/dist/types/core/agent/stages/toolCalls/contracts/results.d.ts +27 -0
  1844. package/dist/types/core/agent/stages/toolCalls/contracts/results.d.ts.map +1 -0
  1845. package/dist/types/core/agent/stages/toolCalls/contracts/resumeFrames.d.ts +15 -0
  1846. package/dist/types/core/agent/stages/toolCalls/contracts/resumeFrames.d.ts.map +1 -0
  1847. package/dist/types/core/agent/stages/toolCalls/contracts/routing.d.ts +115 -0
  1848. package/dist/types/core/agent/stages/toolCalls/contracts/routing.d.ts.map +1 -0
  1849. package/dist/types/core/agent/stages/toolCalls/decorators/limitsOperations.d.ts +5 -0
  1850. package/dist/types/core/agent/stages/toolCalls/decorators/limitsOperations.d.ts.map +1 -0
  1851. package/dist/types/core/agent/stages/toolCalls/decorators/middlewareOperations.d.ts +5 -0
  1852. package/dist/types/core/agent/stages/toolCalls/decorators/middlewareOperations.d.ts.map +1 -0
  1853. package/dist/types/core/agent/stages/toolCalls/decorators/reportingCredentials.d.ts +30 -0
  1854. package/dist/types/core/agent/stages/toolCalls/decorators/reportingCredentials.d.ts.map +1 -0
  1855. package/dist/types/core/agent/stages/toolCalls/evidence/coverageOperations.d.ts +10 -0
  1856. package/dist/types/core/agent/stages/toolCalls/evidence/coverageOperations.d.ts.map +1 -0
  1857. package/dist/types/core/agent/stages/toolCalls/evidence/integrityOperations.d.ts +5 -0
  1858. package/dist/types/core/agent/stages/toolCalls/evidence/integrityOperations.d.ts.map +1 -0
  1859. package/dist/types/core/agent/stages/toolCalls/evidence/judgeLanded.d.ts +30 -0
  1860. package/dist/types/core/agent/stages/toolCalls/evidence/judgeLanded.d.ts.map +1 -0
  1861. package/dist/types/core/agent/stages/toolCalls/evidence/madeInRun.d.ts +7 -0
  1862. package/dist/types/core/agent/stages/toolCalls/evidence/madeInRun.d.ts.map +1 -0
  1863. package/dist/types/core/agent/stages/toolCalls/evidence/producerCorpus.d.ts +23 -0
  1864. package/dist/types/core/agent/stages/toolCalls/evidence/producerCorpus.d.ts.map +1 -0
  1865. package/dist/types/core/agent/stages/toolCalls/evidence/scriptsOperations.d.ts +12 -0
  1866. package/dist/types/core/agent/stages/toolCalls/evidence/scriptsOperations.d.ts.map +1 -0
  1867. package/dist/types/core/agent/stages/toolCalls/evidence/semanticsOperations.d.ts +5 -0
  1868. package/dist/types/core/agent/stages/toolCalls/evidence/semanticsOperations.d.ts.map +1 -0
  1869. package/dist/types/core/agent/stages/toolCalls/evidence/sourceClock.d.ts +12 -0
  1870. package/dist/types/core/agent/stages/toolCalls/evidence/sourceClock.d.ts.map +1 -0
  1871. package/dist/types/core/agent/stages/toolCalls/evidence/towers.d.ts +19 -0
  1872. package/dist/types/core/agent/stages/toolCalls/evidence/towers.d.ts.map +1 -0
  1873. package/dist/types/core/agent/stages/toolCalls/execution/artifactsOperations.d.ts +13 -0
  1874. package/dist/types/core/agent/stages/toolCalls/execution/artifactsOperations.d.ts.map +1 -0
  1875. package/dist/types/core/agent/stages/toolCalls/execution/callStart.d.ts +36 -0
  1876. package/dist/types/core/agent/stages/toolCalls/execution/callStart.d.ts.map +1 -0
  1877. package/dist/types/core/agent/stages/toolCalls/execution/catalogOperations.d.ts +18 -0
  1878. package/dist/types/core/agent/stages/toolCalls/execution/catalogOperations.d.ts.map +1 -0
  1879. package/dist/types/core/agent/stages/toolCalls/execution/contextOperations.d.ts +16 -0
  1880. package/dist/types/core/agent/stages/toolCalls/execution/contextOperations.d.ts.map +1 -0
  1881. package/dist/types/core/agent/stages/toolCalls/execution/credentialAdmission.d.ts +49 -0
  1882. package/dist/types/core/agent/stages/toolCalls/execution/credentialAdmission.d.ts.map +1 -0
  1883. package/dist/types/core/agent/stages/toolCalls/execution/credentialsOperations.d.ts +10 -0
  1884. package/dist/types/core/agent/stages/toolCalls/execution/credentialsOperations.d.ts.map +1 -0
  1885. package/dist/types/core/agent/stages/toolCalls/execution/deliveredResult.d.ts +41 -0
  1886. package/dist/types/core/agent/stages/toolCalls/execution/deliveredResult.d.ts.map +1 -0
  1887. package/dist/types/core/agent/stages/toolCalls/execution/dispatchCall.d.ts +6 -0
  1888. package/dist/types/core/agent/stages/toolCalls/execution/dispatchCall.d.ts.map +1 -0
  1889. package/dist/types/core/agent/stages/toolCalls/execution/initialInvocation.d.ts +71 -0
  1890. package/dist/types/core/agent/stages/toolCalls/execution/initialInvocation.d.ts.map +1 -0
  1891. package/dist/types/core/agent/stages/toolCalls/execution/resourcesOperations.d.ts +10 -0
  1892. package/dist/types/core/agent/stages/toolCalls/execution/resourcesOperations.d.ts.map +1 -0
  1893. package/dist/types/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts +43 -0
  1894. package/dist/types/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts.map +1 -0
  1895. package/dist/types/core/agent/stages/toolCalls/execution/wantedArguments.d.ts +20 -0
  1896. package/dist/types/core/agent/stages/toolCalls/execution/wantedArguments.d.ts.map +1 -0
  1897. package/dist/types/core/agent/stages/toolCalls/helpers/dedupeIds.d.ts +4 -0
  1898. package/dist/types/core/agent/stages/toolCalls/helpers/dedupeIds.d.ts.map +1 -0
  1899. package/dist/types/core/agent/stages/toolCalls/helpers/dispatchRefusals.d.ts +62 -0
  1900. package/dist/types/core/agent/stages/toolCalls/helpers/dispatchRefusals.d.ts.map +1 -0
  1901. package/dist/types/core/agent/stages/toolCalls/helpers/mountedCursor.d.ts +42 -0
  1902. package/dist/types/core/agent/stages/toolCalls/helpers/mountedCursor.d.ts.map +1 -0
  1903. package/dist/types/core/agent/stages/toolCalls/helpers/periodWarnings.d.ts +24 -0
  1904. package/dist/types/core/agent/stages/toolCalls/helpers/periodWarnings.d.ts.map +1 -0
  1905. package/dist/types/core/agent/stages/toolCalls/helpers/readSkillRefusal.d.ts +88 -0
  1906. package/dist/types/core/agent/stages/toolCalls/helpers/readSkillRefusal.d.ts.map +1 -0
  1907. package/dist/types/core/agent/stages/toolCalls/helpers/sourceNote.d.ts +9 -0
  1908. package/dist/types/core/agent/stages/toolCalls/helpers/sourceNote.d.ts.map +1 -0
  1909. package/dist/types/core/agent/stages/toolCalls/helpers/unscopedRun.d.ts +12 -0
  1910. package/dist/types/core/agent/stages/toolCalls/helpers/unscopedRun.d.ts.map +1 -0
  1911. package/dist/types/core/agent/stages/toolCalls/index.d.ts +15 -0
  1912. package/dist/types/core/agent/stages/toolCalls/index.d.ts.map +1 -0
  1913. package/dist/types/core/agent/stages/toolCalls/observation/callSettlement.d.ts +30 -0
  1914. package/dist/types/core/agent/stages/toolCalls/observation/callSettlement.d.ts.map +1 -0
  1915. package/dist/types/core/agent/stages/toolCalls/observation/observationsOperations.d.ts +5 -0
  1916. package/dist/types/core/agent/stages/toolCalls/observation/observationsOperations.d.ts.map +1 -0
  1917. package/dist/types/core/agent/stages/toolCalls/observation/progressOperations.d.ts +8 -0
  1918. package/dist/types/core/agent/stages/toolCalls/observation/progressOperations.d.ts.map +1 -0
  1919. package/dist/types/core/agent/stages/toolCalls/resume/ask.d.ts +45 -0
  1920. package/dist/types/core/agent/stages/toolCalls/resume/ask.d.ts.map +1 -0
  1921. package/dist/types/core/agent/stages/toolCalls/resume/checkIn.d.ts +40 -0
  1922. package/dist/types/core/agent/stages/toolCalls/resume/checkIn.d.ts.map +1 -0
  1923. package/dist/types/core/agent/stages/toolCalls/resume/credential.d.ts +38 -0
  1924. package/dist/types/core/agent/stages/toolCalls/resume/credential.d.ts.map +1 -0
  1925. package/dist/types/core/agent/stages/toolCalls/resume/handler.d.ts +7 -0
  1926. package/dist/types/core/agent/stages/toolCalls/resume/handler.d.ts.map +1 -0
  1927. package/dist/types/core/agent/stages/toolCalls/resume/plain.d.ts +33 -0
  1928. package/dist/types/core/agent/stages/toolCalls/resume/plain.d.ts.map +1 -0
  1929. package/dist/types/core/agent/stages/toolCalls/routing/effectsOperations.d.ts +5 -0
  1930. package/dist/types/core/agent/stages/toolCalls/routing/effectsOperations.d.ts.map +1 -0
  1931. package/dist/types/core/agent/stages/toolCalls/routing/policyHalt.d.ts +18 -0
  1932. package/dist/types/core/agent/stages/toolCalls/routing/policyHalt.d.ts.map +1 -0
  1933. package/dist/types/core/agent/stages/toolCalls/routing/readSkillRoute.d.ts +21 -0
  1934. package/dist/types/core/agent/stages/toolCalls/routing/readSkillRoute.d.ts.map +1 -0
  1935. package/dist/types/core/agent/stages/toolCalls/routing/skillActivation.d.ts +16 -0
  1936. package/dist/types/core/agent/stages/toolCalls/routing/skillActivation.d.ts.map +1 -0
  1937. package/dist/types/core/agent/stages/toolCalls/routing/stepsOperations.d.ts +5 -0
  1938. package/dist/types/core/agent/stages/toolCalls/routing/stepsOperations.d.ts.map +1 -0
  1939. package/dist/types/core/agent/stages/toolResolver.d.ts +3 -2
  1940. package/dist/types/core/agent/stages/toolResolver.d.ts.map +1 -1
  1941. package/dist/types/core/agent/toolChoice/pick.d.ts +1 -1
  1942. package/dist/types/core/agent/toolResultCap.d.ts +1 -1
  1943. package/dist/types/core/agent/types.d.ts +16 -27
  1944. package/dist/types/core/agent/types.d.ts.map +1 -1
  1945. package/dist/types/core/agent/window/toolNames.d.ts +3 -3
  1946. package/dist/types/core/answerConsumption.d.ts +8 -0
  1947. package/dist/types/core/answerConsumption.d.ts.map +1 -0
  1948. package/dist/types/core/checkin.d.ts +1 -1
  1949. package/dist/types/core/codeRunnerTool.d.ts +1 -1
  1950. package/dist/types/core/consentLedger.d.ts +22 -0
  1951. package/dist/types/core/consentLedger.d.ts.map +1 -0
  1952. package/dist/types/core/consentRequest.d.ts +35 -54
  1953. package/dist/types/core/consentRequest.d.ts.map +1 -1
  1954. package/dist/types/core/conversation.d.ts +8 -29
  1955. package/dist/types/core/conversation.d.ts.map +1 -1
  1956. package/dist/types/core/memberRun.d.ts +1 -0
  1957. package/dist/types/core/memberRun.d.ts.map +1 -1
  1958. package/dist/types/core/pause.d.ts +5 -5
  1959. package/dist/types/core/pauseRecord.d.ts +14 -0
  1960. package/dist/types/core/pauseRecord.d.ts.map +1 -0
  1961. package/dist/types/core/runEntry.d.ts +9 -0
  1962. package/dist/types/core/runEntry.d.ts.map +1 -0
  1963. package/dist/types/core/runnerCoreValues.d.ts +17 -0
  1964. package/dist/types/core/runnerCoreValues.d.ts.map +1 -0
  1965. package/dist/types/core/runnerExecution.d.ts +72 -0
  1966. package/dist/types/core/runnerExecution.d.ts.map +1 -0
  1967. package/dist/types/core/runnerLive.d.ts +32 -1
  1968. package/dist/types/core/runnerLive.d.ts.map +1 -1
  1969. package/dist/types/core/slots/buildThinkingSubflow.d.ts +1 -1
  1970. package/dist/types/core/slots/buildToolsSlot.d.ts +27 -56
  1971. package/dist/types/core/slots/buildToolsSlot.d.ts.map +1 -1
  1972. package/dist/types/core/slots/discoverTools.d.ts +22 -0
  1973. package/dist/types/core/slots/discoverTools.d.ts.map +1 -0
  1974. package/dist/types/core-flow/Conditional.d.ts +0 -2
  1975. package/dist/types/core-flow/Conditional.d.ts.map +1 -1
  1976. package/dist/types/core-flow/Graph.d.ts +18 -23
  1977. package/dist/types/core-flow/Graph.d.ts.map +1 -1
  1978. package/dist/types/core-flow/Loop.d.ts +0 -2
  1979. package/dist/types/core-flow/Loop.d.ts.map +1 -1
  1980. package/dist/types/core-flow/Parallel.d.ts +11 -40
  1981. package/dist/types/core-flow/Parallel.d.ts.map +1 -1
  1982. package/dist/types/core-flow/Sequence.d.ts +0 -2
  1983. package/dist/types/core-flow/Sequence.d.ts.map +1 -1
  1984. package/dist/types/core-flow/Workflow.d.ts +0 -2
  1985. package/dist/types/core-flow/Workflow.d.ts.map +1 -1
  1986. package/dist/types/events/dispatcher.d.ts +2 -2
  1987. package/dist/types/events/payloads/access.d.ts +89 -0
  1988. package/dist/types/events/payloads/access.d.ts.map +1 -0
  1989. package/dist/types/events/payloads/agent.d.ts +242 -0
  1990. package/dist/types/events/payloads/agent.d.ts.map +1 -0
  1991. package/dist/types/events/payloads/answer.d.ts +96 -0
  1992. package/dist/types/events/payloads/answer.d.ts.map +1 -0
  1993. package/dist/types/events/payloads/artifacts.d.ts +140 -0
  1994. package/dist/types/events/payloads/artifacts.d.ts.map +1 -0
  1995. package/dist/types/events/payloads/consent.d.ts +87 -0
  1996. package/dist/types/events/payloads/consent.d.ts.map +1 -0
  1997. package/dist/types/events/payloads/context.d.ts +277 -0
  1998. package/dist/types/events/payloads/context.d.ts.map +1 -0
  1999. package/dist/types/events/payloads/cost.d.ts +41 -0
  2000. package/dist/types/events/payloads/cost.d.ts.map +1 -0
  2001. package/dist/types/events/payloads/dependencyTypes.d.ts +19 -0
  2002. package/dist/types/events/payloads/dependencyTypes.d.ts.map +1 -0
  2003. package/dist/types/events/payloads/evaluation.d.ts +298 -0
  2004. package/dist/types/events/payloads/evaluation.d.ts.map +1 -0
  2005. package/dist/types/events/payloads/fallback.d.ts +7 -0
  2006. package/dist/types/events/payloads/fallback.d.ts.map +1 -0
  2007. package/dist/types/events/payloads/findings.d.ts +244 -0
  2008. package/dist/types/events/payloads/findings.d.ts.map +1 -0
  2009. package/dist/types/events/payloads/flow.d.ts +69 -0
  2010. package/dist/types/events/payloads/flow.d.ts.map +1 -0
  2011. package/dist/types/events/payloads/integrity.d.ts +49 -0
  2012. package/dist/types/events/payloads/integrity.d.ts.map +1 -0
  2013. package/dist/types/events/payloads/maps.d.ts +48 -0
  2014. package/dist/types/events/payloads/maps.d.ts.map +1 -0
  2015. package/dist/types/events/payloads/mcpRequests.d.ts +328 -0
  2016. package/dist/types/events/payloads/mcpRequests.d.ts.map +1 -0
  2017. package/dist/types/events/payloads/memory.d.ts +118 -0
  2018. package/dist/types/events/payloads/memory.d.ts.map +1 -0
  2019. package/dist/types/events/payloads/reliability.d.ts +150 -0
  2020. package/dist/types/events/payloads/reliability.d.ts.map +1 -0
  2021. package/dist/types/events/payloads/runConfiguration.d.ts +225 -0
  2022. package/dist/types/events/payloads/runConfiguration.d.ts.map +1 -0
  2023. package/dist/types/events/payloads/skills.d.ts +360 -0
  2024. package/dist/types/events/payloads/skills.d.ts.map +1 -0
  2025. package/dist/types/events/payloads/stream.d.ts +231 -0
  2026. package/dist/types/events/payloads/stream.d.ts.map +1 -0
  2027. package/dist/types/events/payloads/thinking.d.ts +119 -0
  2028. package/dist/types/events/payloads/thinking.d.ts.map +1 -0
  2029. package/dist/types/events/payloads/toolCatalog.d.ts +158 -0
  2030. package/dist/types/events/payloads/toolCatalog.d.ts.map +1 -0
  2031. package/dist/types/events/payloads/toolChoice.d.ts +66 -0
  2032. package/dist/types/events/payloads/toolChoice.d.ts.map +1 -0
  2033. package/dist/types/events/payloads/toolEffects.d.ts +330 -0
  2034. package/dist/types/events/payloads/toolEffects.d.ts.map +1 -0
  2035. package/dist/types/events/payloads/toolSemantics.d.ts +69 -0
  2036. package/dist/types/events/payloads/toolSemantics.d.ts.map +1 -0
  2037. package/dist/types/events/payloads/toolSessionPayloads.d.ts +51 -0
  2038. package/dist/types/events/payloads/toolSessionPayloads.d.ts.map +1 -0
  2039. package/dist/types/events/payloads/validation.d.ts +30 -0
  2040. package/dist/types/events/payloads/validation.d.ts.map +1 -0
  2041. package/dist/types/events/payloads.d.ts +26 -3888
  2042. package/dist/types/events/payloads.d.ts.map +1 -1
  2043. package/dist/types/events/registry.d.ts +8 -15
  2044. package/dist/types/events/registry.d.ts.map +1 -1
  2045. package/dist/types/hosting/answeredPause.d.ts +9 -23
  2046. package/dist/types/hosting/answeredPause.d.ts.map +1 -1
  2047. package/dist/types/hosting/durability.d.ts +10 -7
  2048. package/dist/types/hosting/durability.d.ts.map +1 -1
  2049. package/dist/types/hosting/standingAgent.d.ts +4 -14
  2050. package/dist/types/hosting/standingAgent.d.ts.map +1 -1
  2051. package/dist/types/hosting/stream.d.ts +3 -3
  2052. package/dist/types/hosting/stream.d.ts.map +1 -1
  2053. package/dist/types/hosting/streamHandler.d.ts.map +1 -1
  2054. package/dist/types/index.d.ts +2 -1
  2055. package/dist/types/index.d.ts.map +1 -1
  2056. package/dist/types/injection-engine/devWarn.d.ts +3 -2
  2057. package/dist/types/injection-engine/devWarn.d.ts.map +1 -1
  2058. package/dist/types/injection-engine/hostContract.d.ts +3 -3
  2059. package/dist/types/injection-engine/skillExamples.d.ts +1 -1
  2060. package/dist/types/injection-engine/skillGraph/cursorEvidence.d.ts +49 -0
  2061. package/dist/types/injection-engine/skillGraph/cursorEvidence.d.ts.map +1 -0
  2062. package/dist/types/injection-engine/skillGraph/cursorResolution.d.ts +5 -0
  2063. package/dist/types/injection-engine/skillGraph/cursorResolution.d.ts.map +1 -0
  2064. package/dist/types/injection-engine/skillGraph/decision.d.ts +22 -0
  2065. package/dist/types/injection-engine/skillGraph/decision.d.ts.map +1 -0
  2066. package/dist/types/injection-engine/skillGraph/entryScores.d.ts +15 -0
  2067. package/dist/types/injection-engine/skillGraph/entryScores.d.ts.map +1 -0
  2068. package/dist/types/injection-engine/skillGraph/entrySuppression.d.ts +24 -0
  2069. package/dist/types/injection-engine/skillGraph/entrySuppression.d.ts.map +1 -0
  2070. package/dist/types/injection-engine/skillGraph/graphConfig.d.ts +40 -0
  2071. package/dist/types/injection-engine/skillGraph/graphConfig.d.ts.map +1 -0
  2072. package/dist/types/injection-engine/skillGraph/graphContracts.d.ts +480 -0
  2073. package/dist/types/injection-engine/skillGraph/graphContracts.d.ts.map +1 -0
  2074. package/dist/types/injection-engine/skillGraph/graphCursor.d.ts +126 -0
  2075. package/dist/types/injection-engine/skillGraph/graphCursor.d.ts.map +1 -0
  2076. package/dist/types/injection-engine/skillGraph/graphDrawing.d.ts +3 -0
  2077. package/dist/types/injection-engine/skillGraph/graphDrawing.d.ts.map +1 -0
  2078. package/dist/types/injection-engine/skillGraph/graphRoutes.d.ts +270 -0
  2079. package/dist/types/injection-engine/skillGraph/graphRoutes.d.ts.map +1 -0
  2080. package/dist/types/injection-engine/skillGraph/passMemo.d.ts +25 -0
  2081. package/dist/types/injection-engine/skillGraph/passMemo.d.ts.map +1 -0
  2082. package/dist/types/injection-engine/skillGraph/reachability.d.ts +72 -0
  2083. package/dist/types/injection-engine/skillGraph/reachability.d.ts.map +1 -0
  2084. package/dist/types/injection-engine/skillGraph/routePredicates.d.ts +37 -0
  2085. package/dist/types/injection-engine/skillGraph/routePredicates.d.ts.map +1 -0
  2086. package/dist/types/injection-engine/skillGraph/routingView.d.ts +4 -0
  2087. package/dist/types/injection-engine/skillGraph/routingView.d.ts.map +1 -0
  2088. package/dist/types/injection-engine/skillGraph/treeCompilation.d.ts +39 -0
  2089. package/dist/types/injection-engine/skillGraph/treeCompilation.d.ts.map +1 -0
  2090. package/dist/types/injection-engine/skillGraph/triggerCompilation.d.ts +17 -0
  2091. package/dist/types/injection-engine/skillGraph/triggerCompilation.d.ts.map +1 -0
  2092. package/dist/types/injection-engine/skillGraph.d.ts +12 -948
  2093. package/dist/types/injection-engine/skillGraph.d.ts.map +1 -1
  2094. package/dist/types/injection-engine/skillIntent.d.ts +1 -1
  2095. package/dist/types/injection-engine/skillIntent.d.ts.map +1 -1
  2096. package/dist/types/injection-engine/skillMatch.d.ts +2 -1
  2097. package/dist/types/injection-engine/skillMatch.d.ts.map +1 -1
  2098. package/dist/types/injection-engine/startRuleClaim.d.ts +1 -1
  2099. package/dist/types/injection-engine/types.d.ts +1 -1
  2100. package/dist/types/lib/cosine.d.ts.map +1 -0
  2101. package/dist/types/lib/iterationBudget.d.ts +3 -0
  2102. package/dist/types/lib/iterationBudget.d.ts.map +1 -1
  2103. package/dist/types/lib/saidByPerson.d.ts +1 -0
  2104. package/dist/types/lib/saidByPerson.d.ts.map +1 -1
  2105. package/dist/types/lib/toolBytes.d.ts +1 -1
  2106. package/dist/types/memory/causal/evidenceRecorder.d.ts +8 -56
  2107. package/dist/types/memory/causal/evidenceRecorder.d.ts.map +1 -1
  2108. package/dist/types/memory/causal/loadSnapshot.d.ts.map +1 -1
  2109. package/dist/types/memory/causal/observation.d.ts +73 -0
  2110. package/dist/types/memory/causal/observation.d.ts.map +1 -0
  2111. package/dist/types/memory/causal/snapshotProjection.d.ts +6 -0
  2112. package/dist/types/memory/causal/snapshotProjection.d.ts.map +1 -0
  2113. package/dist/types/memory/causal/snapshotSchema.d.ts +9 -0
  2114. package/dist/types/memory/causal/snapshotSchema.d.ts.map +1 -0
  2115. package/dist/types/memory/causal/types.d.ts +5 -82
  2116. package/dist/types/memory/causal/types.d.ts.map +1 -1
  2117. package/dist/types/memory/causal/writeSnapshot.d.ts.map +1 -1
  2118. package/dist/types/memory/embedding/index.d.ts +1 -1
  2119. package/dist/types/memory/embedding/index.d.ts.map +1 -1
  2120. package/dist/types/memory/stages/types.d.ts +1 -1
  2121. package/dist/types/memory/wire/mountMemoryPipeline.d.ts +7 -7
  2122. package/dist/types/memory/wire/mountMemoryPipeline.d.ts.map +1 -1
  2123. package/dist/types/patterns/LlmRouter.d.ts +11 -149
  2124. package/dist/types/patterns/LlmRouter.d.ts.map +1 -1
  2125. package/dist/types/patterns/LlmSwarm.d.ts +5 -49
  2126. package/dist/types/patterns/LlmSwarm.d.ts.map +1 -1
  2127. package/dist/types/patterns/MapReduce.d.ts.map +1 -1
  2128. package/dist/types/patterns/Swarm.d.ts +14 -45
  2129. package/dist/types/patterns/Swarm.d.ts.map +1 -1
  2130. package/dist/types/patterns/index.d.ts +1 -1
  2131. package/dist/types/patterns/index.d.ts.map +1 -1
  2132. package/dist/types/patterns/routing.d.ts +16 -0
  2133. package/dist/types/patterns/routing.d.ts.map +1 -0
  2134. package/dist/types/provider-contract/types.d.ts +5 -5
  2135. package/dist/types/recorders/core/CompactionMeter.d.ts +1 -1
  2136. package/dist/types/recorders/observability/BoundaryRecorder.d.ts +13 -427
  2137. package/dist/types/recorders/observability/BoundaryRecorder.d.ts.map +1 -1
  2138. package/dist/types/recorders/observability/boundaryRecorder/agentInternal.d.ts +14 -0
  2139. package/dist/types/recorders/observability/boundaryRecorder/agentInternal.d.ts.map +1 -0
  2140. package/dist/types/recorders/observability/boundaryRecorder/domainEvents.d.ts +211 -0
  2141. package/dist/types/recorders/observability/boundaryRecorder/domainEvents.d.ts.map +1 -0
  2142. package/dist/types/recorders/observability/boundaryRecorder/eventBuilders.d.ts +12 -0
  2143. package/dist/types/recorders/observability/boundaryRecorder/eventBuilders.d.ts.map +1 -0
  2144. package/dist/types/recorders/observability/boundaryRecorder/flowEvents.d.ts +13 -0
  2145. package/dist/types/recorders/observability/boundaryRecorder/flowEvents.d.ts.map +1 -0
  2146. package/dist/types/recorders/observability/boundaryRecorder/leanContent.d.ts +53 -0
  2147. package/dist/types/recorders/observability/boundaryRecorder/leanContent.d.ts.map +1 -0
  2148. package/dist/types/recorders/observability/boundaryRecorder/options.d.ts +96 -0
  2149. package/dist/types/recorders/observability/boundaryRecorder/options.d.ts.map +1 -0
  2150. package/dist/types/recorders/observability/boundaryRecorder/rangeLabels.d.ts +34 -0
  2151. package/dist/types/recorders/observability/boundaryRecorder/rangeLabels.d.ts.map +1 -0
  2152. package/dist/types/recorders/observability/boundaryRecorder/rollups.d.ts +54 -0
  2153. package/dist/types/recorders/observability/boundaryRecorder/rollups.d.ts.map +1 -0
  2154. package/dist/types/recorders/observability/fileRecordingSink.d.ts +2 -4
  2155. package/dist/types/recorders/observability/fileRecordingSink.d.ts.map +1 -1
  2156. package/dist/types/recorders/observability/recordingEnvelope.d.ts +6 -10
  2157. package/dist/types/recorders/observability/recordingEnvelope.d.ts.map +1 -1
  2158. package/dist/types/redaction/coverage.d.ts +5 -3
  2159. package/dist/types/redaction/coverage.d.ts.map +1 -1
  2160. package/dist/types/redaction/declared.d.ts +4 -0
  2161. package/dist/types/redaction/declared.d.ts.map +1 -1
  2162. package/dist/types/redaction/knownStrings.d.ts +5 -34
  2163. package/dist/types/redaction/knownStrings.d.ts.map +1 -1
  2164. package/dist/types/redaction/marker.d.ts +1 -1
  2165. package/dist/types/redaction/privateCaller.d.ts +44 -0
  2166. package/dist/types/redaction/privateCaller.d.ts.map +1 -0
  2167. package/dist/types/redaction/privateCheckpoint.d.ts +23 -0
  2168. package/dist/types/redaction/privateCheckpoint.d.ts.map +1 -0
  2169. package/dist/types/redaction/privateFields.d.ts +29 -0
  2170. package/dist/types/redaction/privateFields.d.ts.map +1 -0
  2171. package/dist/types/redaction/privateRun.d.ts +33 -0
  2172. package/dist/types/redaction/privateRun.d.ts.map +1 -0
  2173. package/dist/types/redaction/runRedaction.d.ts +47 -41
  2174. package/dist/types/redaction/runRedaction.d.ts.map +1 -1
  2175. package/dist/types/redaction/served.d.ts +10 -4
  2176. package/dist/types/redaction/served.d.ts.map +1 -1
  2177. package/dist/types/resilience/withCircuitBreaker.d.ts +1 -1
  2178. package/dist/types/semantics/coverage/composedCoverage.d.ts +1 -1
  2179. package/dist/types/semantics/coverage/items.d.ts +1 -1
  2180. package/dist/types/semantics/coverage/read.d.ts +3 -3
  2181. package/dist/types/semantics/types.d.ts +1 -1
  2182. package/dist/types/time/drift.d.ts +1 -1
  2183. package/dist/types/time-travel/servedView/assembly.d.ts +5 -0
  2184. package/dist/types/time-travel/servedView/assembly.d.ts.map +1 -0
  2185. package/dist/types/time-travel/servedView/conversation.d.ts +9 -0
  2186. package/dist/types/time-travel/servedView/conversation.d.ts.map +1 -0
  2187. package/dist/types/time-travel/servedView/findings.d.ts +12 -0
  2188. package/dist/types/time-travel/servedView/findings.d.ts.map +1 -0
  2189. package/dist/types/time-travel/servedView/gaps.d.ts +77 -0
  2190. package/dist/types/time-travel/servedView/gaps.d.ts.map +1 -0
  2191. package/dist/types/time-travel/servedView/ontology.d.ts +5 -0
  2192. package/dist/types/time-travel/servedView/ontology.d.ts.map +1 -0
  2193. package/dist/types/time-travel/servedView/recordReads.d.ts +45 -0
  2194. package/dist/types/time-travel/servedView/recordReads.d.ts.map +1 -0
  2195. package/dist/types/time-travel/servedView/requestOnly.d.ts +7 -0
  2196. package/dist/types/time-travel/servedView/requestOnly.d.ts.map +1 -0
  2197. package/dist/types/time-travel/servedView/system.d.ts +16 -0
  2198. package/dist/types/time-travel/servedView/system.d.ts.map +1 -0
  2199. package/dist/types/time-travel/servedView/tools.d.ts +10 -0
  2200. package/dist/types/time-travel/servedView/tools.d.ts.map +1 -0
  2201. package/dist/types/time-travel/servedView/value.d.ts +39 -0
  2202. package/dist/types/time-travel/servedView/value.d.ts.map +1 -0
  2203. package/dist/types/time-travel/servedView.d.ts +5 -65
  2204. package/dist/types/time-travel/servedView.d.ts.map +1 -1
  2205. package/dist/types/tools/displayName.d.ts +7 -0
  2206. package/dist/types/tools/displayName.d.ts.map +1 -0
  2207. package/dist/types/tools/finiteLabel.d.ts +17 -0
  2208. package/dist/types/tools/finiteLabel.d.ts.map +1 -0
  2209. package/dist/types/tools/inputRequest.d.ts +1 -1
  2210. package/dist/types/tools/toolParty.d.ts +18 -0
  2211. package/dist/types/tools/toolParty.d.ts.map +1 -0
  2212. package/dist/types/tools/toolProvider.d.ts +1 -0
  2213. package/dist/types/tools/toolProvider.d.ts.map +1 -1
  2214. package/dist/types/tools/toolResourceOwner.d.ts +28 -0
  2215. package/dist/types/tools/toolResourceOwner.d.ts.map +1 -0
  2216. package/dist/types/tools/toolSessions/contracts.d.ts +131 -0
  2217. package/dist/types/tools/toolSessions/contracts.d.ts.map +1 -0
  2218. package/dist/types/tools/toolSessions/keys.d.ts +54 -0
  2219. package/dist/types/tools/toolSessions/keys.d.ts.map +1 -0
  2220. package/dist/types/tools/toolSessions/localStatus.d.ts +8 -0
  2221. package/dist/types/tools/toolSessions/localStatus.d.ts.map +1 -0
  2222. package/dist/types/tools/toolSessions.d.ts +30 -178
  2223. package/dist/types/tools/toolSessions.d.ts.map +1 -1
  2224. package/dist/types/tools/tools.d.ts +6 -8
  2225. package/dist/types/tools/tools.d.ts.map +1 -1
  2226. package/dist/types/trace-toolpack/traceToolpack/artifactFacts.d.ts +16 -0
  2227. package/dist/types/trace-toolpack/traceToolpack/artifactFacts.d.ts.map +1 -0
  2228. package/dist/types/trace-toolpack/traceToolpack/backtrackView.d.ts +18 -0
  2229. package/dist/types/trace-toolpack/traceToolpack/backtrackView.d.ts.map +1 -0
  2230. package/dist/types/trace-toolpack/traceToolpack/contextErrors.d.ts +44 -0
  2231. package/dist/types/trace-toolpack/traceToolpack/contextErrors.d.ts.map +1 -0
  2232. package/dist/types/trace-toolpack/traceToolpack/findInTrace.d.ts +27 -0
  2233. package/dist/types/trace-toolpack/traceToolpack/findInTrace.d.ts.map +1 -0
  2234. package/dist/types/trace-toolpack/traceToolpack/findingEvidence.d.ts +74 -0
  2235. package/dist/types/trace-toolpack/traceToolpack/findingEvidence.d.ts.map +1 -0
  2236. package/dist/types/trace-toolpack/traceToolpack/innerRecords.d.ts +12 -0
  2237. package/dist/types/trace-toolpack/traceToolpack/innerRecords.d.ts.map +1 -0
  2238. package/dist/types/trace-toolpack/traceToolpack/narrativeView.d.ts +4 -0
  2239. package/dist/types/trace-toolpack/traceToolpack/narrativeView.d.ts.map +1 -0
  2240. package/dist/types/trace-toolpack/traceToolpack/navigationHints.d.ts +7 -0
  2241. package/dist/types/trace-toolpack/traceToolpack/navigationHints.d.ts.map +1 -0
  2242. package/dist/types/trace-toolpack/traceToolpack/nodeView.d.ts +6 -0
  2243. package/dist/types/trace-toolpack/traceToolpack/nodeView.d.ts.map +1 -0
  2244. package/dist/types/trace-toolpack/traceToolpack/packIndex.d.ts +70 -0
  2245. package/dist/types/trace-toolpack/traceToolpack/packIndex.d.ts.map +1 -0
  2246. package/dist/types/trace-toolpack/traceToolpack/parameterSchemas.d.ts +11 -0
  2247. package/dist/types/trace-toolpack/traceToolpack/parameterSchemas.d.ts.map +1 -0
  2248. package/dist/types/trace-toolpack/traceToolpack/recursiveFactory.d.ts +41 -0
  2249. package/dist/types/trace-toolpack/traceToolpack/recursiveFactory.d.ts.map +1 -0
  2250. package/dist/types/trace-toolpack/traceToolpack/runOverview.d.ts +6 -0
  2251. package/dist/types/trace-toolpack/traceToolpack/runOverview.d.ts.map +1 -0
  2252. package/dist/types/trace-toolpack/traceToolpack/sliceView.d.ts +6 -0
  2253. package/dist/types/trace-toolpack/traceToolpack/sliceView.d.ts.map +1 -0
  2254. package/dist/types/trace-toolpack/traceToolpack/structuralLimits.d.ts +42 -0
  2255. package/dist/types/trace-toolpack/traceToolpack/structuralLimits.d.ts.map +1 -0
  2256. package/dist/types/trace-toolpack/traceToolpack/toolCallJournal.d.ts +106 -0
  2257. package/dist/types/trace-toolpack/traceToolpack/toolCallJournal.d.ts.map +1 -0
  2258. package/dist/types/trace-toolpack/traceToolpack/valueLines.d.ts +30 -0
  2259. package/dist/types/trace-toolpack/traceToolpack/valueLines.d.ts.map +1 -0
  2260. package/dist/types/trace-toolpack/traceToolpack/valueQueries.d.ts +7 -0
  2261. package/dist/types/trace-toolpack/traceToolpack/valueQueries.d.ts.map +1 -0
  2262. package/dist/types/trace-toolpack/traceToolpack/writerHints.d.ts +14 -0
  2263. package/dist/types/trace-toolpack/traceToolpack/writerHints.d.ts.map +1 -0
  2264. package/dist/types/trace-toolpack/traceToolpack.d.ts +15 -40
  2265. package/dist/types/trace-toolpack/traceToolpack.d.ts.map +1 -1
  2266. package/package.json +7 -6
  2267. package/dist/core/agent/stages/toolCalls.js +0 -6194
  2268. package/dist/core/agent/stages/toolCalls.js.map +0 -1
  2269. package/dist/esm/core/agent/stages/toolCalls.d.ts +0 -895
  2270. package/dist/esm/core/agent/stages/toolCalls.js +0 -6159
  2271. package/dist/esm/core/agent/stages/toolCalls.js.map +0 -1
  2272. package/dist/esm/memory/embedding/cosine.js.map +0 -1
  2273. package/dist/memory/embedding/cosine.js.map +0 -1
  2274. package/dist/types/core/agent/stages/toolCalls.d.ts +0 -896
  2275. package/dist/types/core/agent/stages/toolCalls.d.ts.map +0 -1
  2276. package/dist/types/memory/embedding/cosine.d.ts.map +0 -1
  2277. /package/dist/esm/{memory/embedding → lib}/cosine.d.ts +0 -0
  2278. /package/dist/esm/{memory/embedding → lib}/cosine.js +0 -0
  2279. /package/dist/{memory/embedding → lib}/cosine.js +0 -0
  2280. /package/dist/types/{memory/embedding → lib}/cosine.d.ts +0 -0
@@ -1,887 +1,166 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.receiptAt = exports.servedViews = exports.servedAt = exports.UNGAPPED_FIELDS = exports.SERVED_GAPS = void 0;
4
- const context_js_1 = require("../core/agent/findings/context.js");
5
- const composeRequest_js_1 = require("../core/agent/composeRequest.js");
6
- const stagedRefs_js_1 = require("../core/agent/stagedRefs.js");
7
- const recovery_js_1 = require("../core/agent/evidence/recovery.js");
8
- const serve_js_1 = require("../core/agent/findings/serve.js");
9
- const serve_js_2 = require("../ontology/serve.js");
10
- const epochs_js_1 = require("./epochs.js");
11
- const marker_js_1 = require("../redaction/marker.js");
12
- /**
13
- * The commit log's redaction placeholder (footprintjs writes it where a run's
14
- * policy selected a key — `Agent.create({ redact })`). To this rebuild it is NO
15
- * value: never a system piece, a tool list or a tool name the view could print
16
- * as if the request had carried it. Read as absent, which is what the record
17
- * can show. The view states the cost through the gap a redacted snapshot always
18
- * carries: it travels without its fold base (footprintjs omits `initialState`
19
- * from the served view), so `no-fold-base` — "unproven and may be SHORT … reads
20
- * as empty rather than as unknown" — is on every view of it.
21
- *
22
- * Read so only when the record says a policy covered the run — the snapshot's
23
- * marker (`redaction/marker.ts` · `servedUnderPolicy`), asked once per call of
24
- * `servedAt` / `servedViews` — so a value that merely spells the word (a tool
25
- * NAMED `REDACTED`) is a value on a run no policy covered, as the answer
26
- * account and `assessAnswer` read it.
27
- */
28
- const LOG_PLACEHOLDER = 'REDACTED';
29
- /** {@link foldAtCall}, with the placeholder read as absent on a `served` record. */
30
- function readAtCall(location, key, served) {
31
- const value = (0, epochs_js_1.readAtCall)(location, key);
32
- return served && value === LOG_PLACEHOLDER ? undefined : value;
33
- }
34
- /** {@link foldRunConstant}, with the placeholder read as absent on a `served` record. */
35
- function readRunConstant(location, key, served) {
36
- const value = (0, epochs_js_1.readRunConstant)(location, key);
37
- return served && value === LOG_PLACEHOLDER ? undefined : value;
38
- }
39
- const receipt_js_1 = require("../core/agent/receipt/receipt.js");
40
- const conventions_js_1 = require("../lib/conventions.js");
41
2
  /**
42
- * The gap catalogue. Exported because a reader that renders a served view
43
- * renders its gaps beside it, and a renderer should print the library's own
44
- * sentence rather than invent one.
45
- */
46
- exports.SERVED_GAPS = Object.freeze({
47
- 'thinking-replay': Object.freeze({
48
- // The leaf reports preparation, not successful transport. Port hashes
49
- // remain valid; they must not be presented as the downstream wire body.
50
- fields: Object.freeze(['messages.entries', 'requestMeasurement']),
51
- why: 'Saved thinking was omitted after the request shown here was prepared. The messages and size shown are before that omission, not proof of what was sent or accepted.',
52
- }),
53
- 'cache-transform': Object.freeze({
54
- // MECHANISM (not printed — see the header's rule). A `CacheStrategy`'s
55
- // `prepareRequest` is handed the whole composed request after assembly and
56
- // hands one back; `buildReceipt` fingerprints the one it was GIVEN. So the
57
- // field list is everything a rewrite could have touched, not only the
58
- // `cache.*` fields that DESCRIBE the rewrite — listing those alone named
59
- // the report and excused nothing it reports on.
60
- //
61
- // THE RULE FOR THIS LIST is the request the strategy holds: `systemPrompt`
62
- // (→ `system.*`), `messages` (→ `messages.*`), `tools` and `toolChoice`
63
- // (→ every `tools.*` field). `tools.forced` and `tools.withheld` were
64
- // missing until 9.93.0 (`recorded-not-built.md`, entry 7): `callLLM.ts`
65
- // writes both from assembly's own decision — `deps.schemaTool?.name`,
66
- // `scope.wrapUpAsked` — and never from `preparedRequest`, so a strategy
67
- // that dropped the answer tool from `request.tools` or emptied the list
68
- // would leave a receipt whose `forced`/`withheld` describe a request the
69
- // port was not handed. `params` is the one field deliberately NOT here:
70
- // it is read off `preparedRequest`, past the strategy.
71
- //
72
- // RAISED WHERE A STRATEGY COULD HAVE REWRITTEN (9.93.0, entry 8). Until
73
- // this release `viewOf` pushed it unconditionally — including on charts
74
- // that run no strategy at all — because `cache.transform: 'unchanged'`
75
- // could not tell "a strategy returned what it was given" from "there was
76
- // no strategy", and inferring the second from any other committed key is
77
- // the absence-of-evidence reading this whole file refuses. The receipt
78
- // now carries the fact (`cache.strategy`, `null` when none ran), so the
79
- // condition is: raised when the receipt names a strategy, OR when there is
80
- // no receipt to say — a pre-9.93.0 receipt, a receipt-less chart, a
81
- // refused shape. Absent only where the record SAYS nothing stood between
82
- // assembly and the port.
83
- //
84
- // THE DAY-ONE FALSEHOOD THIS ENTRY SHIPPED WITH, killed in 9.88.0's sixth
85
- // round: the printed sentence said "only its INPUTS are on the record".
86
- // Three of its own fields are OUTPUTS and are on the record —
87
- // `cache.transform` (the verdict of comparing given against returned),
88
- // `cache.transformHash` (the digest of what came back when it differed)
89
- // and `cache.markersApplied` (the breakpoints the strategy actually
90
- // applied, as against the candidates in `scope.cacheMarkers`, which are
91
- // the inputs). A sentence describing the mechanism went false about the
92
- // mechanism; the sentence below describes only what the fields MEAN.
93
- //
94
- // This entry is the weakest claim on the list wherever it appears: it says
95
- // the rebuild stops before whatever the request met next, never that the
96
- // rebuild got that far. Whether it did is what the other gaps on the same
97
- // view say — see the qualifier on `ServedGap.fields`.
98
- //
99
- // AND BEING RAISED ON RECEIPT-LESS VIEWS IS WHY IT DOES NOT QUOTE
100
- // `RECEIPT_BOUNDARY` (9.88.0, seventh round). That sentence opens "A
101
- // receipt describes the request as this library last saw it" — and this
102
- // entry is still printed on views that have no receipt at all. Measured: a
103
- // message-API chart run with no run id carries exactly
104
- // `['no-receipt-on-chart', 'cache-transform']`, so the reader was told what
105
- // a receipt describes beside a view that has none. The boundary CLAIM is
106
- // not lost — the first sentence below is that claim in the vocabulary of a
107
- // view, and it is true whether or not a receipt exists. The quote stays on
108
- // `provider-defaults`, which fires only where a receipt was read.
109
- fields: Object.freeze([
110
- 'cache.transform',
111
- 'cache.transformHash',
112
- 'cache.markersApplied',
113
- 'cache.strategy',
114
- 'system.hash',
115
- 'system.chars',
116
- 'system.pieces',
117
- 'messages.count',
118
- 'messages.entries',
119
- 'messages.requestOnly',
120
- 'tools.names',
121
- 'tools.schemaHashes',
122
- 'tools.forced',
123
- 'tools.withheld',
124
- ]),
125
- why: 'What reached the provider may differ from the fields below, and nothing on this view ' +
126
- 'would show it. Where another gap on this view covers one of them, that gap is the ' +
127
- 'stronger claim.',
128
- }),
129
- 'forced-tool-schema': Object.freeze({
130
- // MECHANISM (not printed). Under a `'tool-forced'` output strategy the
131
- // synthetic answer tool is added at assembly from a build-time schema that
132
- // no stage commits, so `tools.schemaHashes` on the receipt carries a row
133
- // the rebuild has no counterpart for. The tool's NAME is a run constant
134
- // (`FORCED_OUTPUT_TOOL_KEY`, written by `stages/seed.ts`), which is why
135
- // `tools.names` and `tools.forced` rebuild and the schema body does not.
136
- fields: Object.freeze(['tools.schemaHashes']),
137
- why: 'The schema body behind the forced answer tool is not on this view. Its name is, so the ' +
138
- 'tool list is complete and the schemas beside it are one short.',
139
- }),
140
- 'provider-defaults': Object.freeze({
141
- // MECHANISM (not printed). `buildReceipt` reads `params` off the PREPARED
142
- // request — the object `LLMProvider.complete` is handed, after any cache
143
- // strategy has had it. Like `requestMeasurement`, it is read past the
144
- // strategy, and `cache-transform` deliberately does not name it. What is
145
- // still past the record is the vendor: an adapter or SDK can resolve a
146
- // final value the port never saw. `params` is also VALUE-CONDITIONAL —
147
- // `buildReceipt` writes no key for a dial nobody set — which is the whole
148
- // reason the printed sentence has to say what an absent key means.
149
- //
150
- // THE ONE ENTRY THAT QUOTES `RECEIPT_BOUNDARY`, and it is the only one that
151
- // honestly can: it is pushed inside `if (receipt !== undefined)`, so a view
152
- // carrying it always has a receipt for that sentence to be about.
153
- // `cache-transform` quoted it too until 9.88.0's seventh round, and
154
- // `cache-transform` is raised on the receipt-less views — where the reader
155
- // was told what a receipt describes beside a view that has none. Measured:
156
- // a message-API chart run with no run id carries `no-receipt-on-chart` and
157
- // `cache-transform`, and never this entry.
158
- fields: Object.freeze(['params']),
159
- why: 'A dial absent below was not recorded; that is not the same as the model running ' +
160
- 'without one. ' +
161
- receipt_js_1.RECEIPT_BOUNDARY,
162
- }),
163
- 'no-fold-base': Object.freeze({
164
- // MECHANISM (not printed). Raised when `location.basis` or
165
- // `location.runBasis` is `'log-only'` — the recording travelled without the
166
- // `initialState` the fold folds against (`getSnapshot({ redact: true })`
167
- // hands back exactly that shape: the log travels, the base does not), so
168
- // every read can see only what the log itself wrote. A rebuild that
169
- // recovered one turn of three reports one; a system prompt it could not
170
- // read at all is 0 characters rather than unknown; and `EpochLocation.epoch`
171
- // falls back to POSITION when it cannot read the run's committed
172
- // `iteration`, which is how a view can call the second turn the first while
173
- // that turn's own receipt still says 2.
174
- //
175
- // TWO bases, so every field the rebuild reads through a fold. The epoch's
176
- // own log rebuilds the system prompt, the conversation, the tool schemas
177
- // and the wrap-up flag; the RUN's log holds the run constants the forced
178
- // tool name and the staged-refs nudge are composed from. Under
179
- // 'dynamic-grouped' those are different logs with different bases, and a
180
- // gap raised off only the first denied the second.
181
- //
182
- // THE RULE FOR THIS LIST is mechanical, so it does not go short again: a
183
- // field belongs here when the rebuild derives it from `readAtCall` or
184
- // `readRunConstant` — both fold over values the log itself may never have
185
- // written, so both read absent when the base did not travel. `readAfterCall`
186
- // is the THIRD reader and is deliberately NOT on the rule: the only thing
187
- // read through it is the receipt, which the call's own bundle commits, so it
188
- // is there whatever the base. Naming it made the rule read wider than the
189
- // mechanism and put the receipt's own fields inside a gap that cannot touch
190
- // them. `system.chars` and `messages.count` were missed on the first two
191
- // passes because they are COUNTS of things the list already named, and a
192
- // short rebuild makes a count wrong exactly as it makes the thing wrong.
193
- //
194
- // `epoch` — THE VIEW'S OWN NUMBER — is here for a fourth reason, in
195
- // `EpochLocation.epoch`'s own words: a fold that cannot read `iteration`
196
- // numbers the epoch by its POSITION instead. Measured on a resumed run with
197
- // its base and its `iteration` writes gone, the rebuild called the second
198
- // turn epoch 1 while that turn's own receipt still said 2. The RECEIPT's
199
- // `basis.epoch` is NOT here and used to be: it is minted live and rides in
200
- // the call's bundle, so no missing base can move it. That inversion — the
201
- // list naming the number a missing base cannot touch, while the number it
202
- // fabricates was excused as ungappable — is what 9.88.0's fourth review
203
- // round found.
204
- //
205
- // THE PRINTED CLAUSE STOPPED NAMING THE RECEIPT (seventh round). It read
206
- // "may differ from the one the receipt for this turn carries", and this
207
- // gap is raised on views that have no receipt to carry anything — a
208
- // base-less recording of a chart that minted none gets both gaps at once. The fact a reader
209
- // needs is about the NUMBER, not about the witness: it may be the turn's
210
- // place in run order rather than the count the run kept. Measured on a
211
- // resumed run with its base and its `iteration` writes gone, the view calls
212
- // the second turn the first while that turn's own receipt still says 2.
213
- fields: Object.freeze([
214
- 'system.hash',
215
- 'system.chars',
216
- 'system.pieces',
217
- 'messages.count',
218
- 'messages.entries',
219
- 'messages.requestOnly',
220
- 'tools.schemaHashes',
221
- 'tools.names',
222
- 'tools.forced',
223
- 'tools.withheld',
224
- 'epoch',
225
- ]),
226
- why: 'The fields below are unproven and may be SHORT: a count can be lower than what really ' +
227
- 'went out, and a value that could not be recovered reads as empty rather than as ' +
228
- "unknown. The turn number below may be this turn's place in run order rather than the " +
229
- 'number the run itself gave it.',
230
- }),
231
- 'no-conversation-on-record': Object.freeze({
232
- // MECHANISM (not printed). `viewOf` reads the conversation from `history`
233
- // (the agent charts) or, failing that, from `messagesInjections` (`LLMCall`
234
- // and the message-API charts, which have no history at all). Neither
235
- // committed ⇒ `conversation` is `undefined` and `asSent` is `[]`, which is
236
- // indistinguishable from a call that really sent nothing — hence the gap.
237
- //
238
- // `messages.requestOnly` is on the list for a second reason: the
239
- // staged-refs nudge is recomposed FROM the conversation by `findStagedRefs`,
240
- // so a rebuild with no conversation finds no refs and reports no nudge,
241
- // which looks exactly like a call that had none.
242
- fields: Object.freeze(['messages.count', 'messages.entries', 'messages.requestOnly']),
243
- why: 'The turns that went out are unknown, not empty: an empty list here is the absence of a ' +
244
- 'record, never a record of absence. The request-only lines are unproved with them.',
245
- }),
246
- 'no-receipt-on-chart': Object.freeze({
247
- // Exactly the fields ONLY a receipt carries — the ones no rebuild produces,
248
- // so with no receipt they are absent rather than short. Everything else on
249
- // the view is folded from committed pieces as usual; what it loses is not
250
- // the value but the WITNESS, and the sentence below says so, because a
251
- // field list cannot.
252
- //
253
- // MECHANISM (not printed). Raised when `readReceipt` returns no receipt —
254
- // either nothing was committed under `RECEIPT_KEY` (a recording made before
255
- // the receipt existed, a run with `recordReceipt: false`, a message-API
256
- // chart handed no run id to salt with, or a consumer's own `call-llm`
257
- // stage, which this library does not mint for) or something WAS committed
258
- // there and was refused for carrying no basis. Every chart in this library
259
- // that CAN salt its hashes mints since 9.91.0.
260
- // Which of the two is {@link ServedGap.cause}, computed at that read.
261
- // Everything else on the view is still folded from committed pieces; what
262
- // it loses is the WITNESS, not the value.
263
- //
264
- // THE DAY-ONE FALSEHOOD THIS ENTRY SHIPPED WITH, killed in 9.88.0's sixth
265
- // round: the printed sentence opened "No receipt was found for this epoch"
266
- // and closed "absent here means unrecorded". Both are false under
267
- // `'receipt-shape-rejected'`, where a value WAS found and WAS recorded and
268
- // the read refused it. The sentence asserted a cause; the cause is a field.
269
- // The sentence below says only what the fields mean, which is the same
270
- // under either cause.
271
- //
272
- // TWO CHANGES in 9.88.0's fourth review round, both of them the same test:
273
- // does this gap's MECHANISM cause this field's absence?
274
- // • `basis.epoch` JOINED the list. It is a receipt-only field like the
275
- // other three on `basis`, and with no receipt it is gone with them. It
276
- // used to be named by `no-fold-base` alone, which cannot touch it.
277
- // • `omittedForAttention` LEFT it. It was absent on EVERY view, receipt
278
- // or not — no chart IN THIS LIBRARY supplied it — so a gap about the
279
- // missing receipt was explaining an absence it does not cause, and on a
280
- // view that HAS a receipt nothing explained it at all. It went to
281
- // `UNGAPPED_FIELDS` with the reason that was true of it then.
282
- // • …AND CAME BACK in 9.93.0, because the measurement behind that reason
283
- // was incomplete: the agent chart's WINDOW STAGE drops turns for budget
284
- // on every run whose strategy engages, and since 9.93.0 it hands them
285
- // to the mint (`window/evictedTurns.ts`). The field is value-
286
- // conditional — absent when nothing was dropped before the call — and
287
- // the one thing that can lose a recorded drop is losing the receipt,
288
- // which is this gap. `cache.strategy` joined for the same reason: a
289
- // receipt-only fact, gone with the receipt.
290
- // `requestMeasurement` is also receipt-only: its counts describe the
291
- // initial PREPARED request, not the composition rebuilt by this view.
292
- // Losing the whole receipt loses that witness. An older receipt may
293
- // itself omit the optional field, and an attempted measurement may say
294
- // `unavailable`; receiptAt preserves those states, never zero counts.
295
- // Neither state means the receipt is missing or changes this gap's cause.
296
- // The same applies to replayPreparations: downstream preparation was
297
- // observed only when the enabled receipt carries its annotation.
298
- //
299
- // AND THE SEVENTH ROUND SCOPED THE PRINTED CLAIM TO THE LEVEL IT HOLDS AT.
300
- // It said the absence of these fields is "a gap in the record, never a call
301
- // made without them". True of each field AS A WHOLE — a receipt always
302
- // carries `params` and always carries a `cache.transform` verdict, so those
303
- // containers go missing only with the receipt. FALSE one level down, and
304
- // that is the level a reader reads at: measured on an agent that set no
305
- // dials, `receipt.params` is `{}` — an absence inside the container that IS
306
- // "a call made without one", and `provider-defaults` says so on the very
307
- // views that have a receipt. The sentence below claims nothing about what
308
- // is inside a field it cannot see.
309
- fields: Object.freeze([
310
- 'basis.model',
311
- 'basis.provider',
312
- 'basis.runId',
313
- 'basis.epoch',
314
- 'params',
315
- 'cache.transform',
316
- 'cache.transformHash',
317
- 'cache.markersApplied',
318
- 'cache.strategy',
319
- 'omittedForAttention',
320
- 'requestMeasurement',
321
- 'replayPreparations',
322
- ]),
323
- why: 'Nothing on this view has been checked against what went out. Every field below is ' +
324
- 'missing as a whole, and an absence among them says nothing about the call — not even ' +
325
- 'that a dial was left unset.',
326
- }),
327
- 'findings-layout': Object.freeze({
328
- fields: Object.freeze([
329
- 'system.pieces',
330
- 'system.chars',
331
- 'messages.requestOnly',
332
- 'messages.count',
333
- 'messages.entries',
334
- ]),
335
- why: 'The findings context is unproven here. Its absence does not show that none was served.',
336
- }),
337
- 'no-run-log': Object.freeze({
338
- // MECHANISM (not printed). Raised on `!location.hasRunLog` — a SUBTREE
339
- // handed in on its own, with no run log to read. `readRunConstant` is the
340
- // only reader that touches that log, and everything it fetches is a
341
- // build-time fact `stages/seed.ts` wrote once: the forced output tool's
342
- // NAME (`FORCED_OUTPUT_TOOL_KEY`), `toolWantsByName`, which
343
- // `findStagedRefs` composes the nudge from, and — 9.101.0 — the findings
344
- // ledger's serve mode (`findingsServe`), which `collapseJudged` folds
345
- // judged tool results under. Losing that last one costs nothing on the
346
- // default mode (`servedModeOf` falls back to it); under the bench-gated
347
- // `'ledger-only'` the rebuilt `messages.entries` would carry fact results
348
- // verbatim where the receipt hashed tickets — a subtree without its run
349
- // log, on a mode no default reaches, recorded here rather than widened
350
- // into `fields`.
351
- //
352
- // `tools.schemaHashes` is on the list because the forced tool's NAME is the
353
- // run constant: losing it also loses the row the receipt hashes under that
354
- // name. The fix a reader has is to pass the whole recording rather than the
355
- // subtree, which is what the printed sentence says without naming any of
356
- // this.
357
- //
358
- // THE MEASURED-FALSE SENTENCE, killed in 9.88.0's seventh round. It said
359
- // "The fields below could not be fully recovered here" — a claim that the
360
- // recovery DID fail. Driven on the ordinary view that raises this gap (a
361
- // 'dynamic-grouped' agent with one plain tool, run log emptied), the
362
- // damaged rebuild is byte-identical to the intact one: same `tools.names`,
363
- // same `tools.schemas`, same absent `tools.forced`, same empty
364
- // `messages.requestOnly`. The gap fires and costs NOTHING, and the sentence
365
- // told the reader otherwise.
366
- //
367
- // THE REPAIR IS THE SENTENCE, NOT THE CONDITION, and the reason is that the
368
- // condition cannot be narrowed by anything this file can read. What the
369
- // missing log would have held is a forced tool's name and a `wants`
370
- // declaration; whether the run had either is recorded IN THAT LOG. To fire
371
- // the gap only where it costs something, the read would have to consult the
372
- // record whose absence raises it. So the gap stays unconditional — it is
373
- // the "you cannot tell" declaration, which is what this file is for — and
374
- // the sentence became the conditional it always was: the fields MAY be
375
- // short. Both directions are measured beside it in
376
- // `gap-sentences.test.ts`: emptying the run log on a forced-output run
377
- // takes the tool list from one name to none, on a staged-refs run it takes
378
- // away the request-only line, and on the plain run it takes nothing.
379
- fields: Object.freeze([
380
- 'tools.names',
381
- 'tools.forced',
382
- 'tools.schemaHashes',
383
- 'messages.requestOnly',
384
- ]),
385
- why: 'The fields below may be SHORT: a name can be missing from the tool list, and a line ' +
386
- 'that went out with the request can be missing too. An absence below is not evidence ' +
387
- 'that there was nothing there — read the whole recording rather than a piece of it.',
388
- }),
389
- });
390
- /**
391
- * The fields no gap names, and the reason each one needs none — the OTHER half
392
- * of the account.
393
- *
394
- * WHY IT EXISTS. `SERVED_GAPS` was hand-checked against the two shapes three
395
- * times in one release and came up short every time, because "is every field
396
- * named by a gap?" was a question a person answered by reading. It is now a
397
- * question a walk answers: `test/time-travel/gap-catalogue-walk.test.ts`
398
- * enumerates every field a real `Receipt` and a real `ServedView` carry and
399
- * requires each one to be named by a gap OR to be a key here. A field in
400
- * neither fails, by name.
401
- *
402
- * So this is not an exemption list. It is the place a field goes when NO GAP'S
403
- * MECHANISM EXPLAINS IT, and the value is the reason in one sentence, for the
404
- * next person who asks why the field has no gap. Adding a key here is as
405
- * reviewable as adding one to a gap, and that is the point: both are a claim
406
- * somebody wrote down.
407
- *
408
- * TWO reasons qualified when this list was written, and one of them has since
409
- * emptied out:
410
- *
411
- * • NO FOLD CAN FAIL TO PRODUCE IT — the field is read straight off the
412
- * located epoch, never through a fold. `callRuntimeStageId` is this kind.
413
- * • ITS ABSENCE IS UNIVERSAL AND HAS NOTHING TO DO WITH THIS RECORDING — no
414
- * chart IN THIS LIBRARY supplies it, on any run, so no gap about a limit of
415
- * the rebuild describes it. `omittedForAttention` WAS this kind from
416
- * 9.88.0's fourth review round to 9.93.0, and is not any more: the
417
- * measurement it rested on ("no chart drops for attention") had missed the
418
- * agent chart's window stage, which evicts turns for budget on every run
419
- * whose strategy engages and now files them on the receipt. A recorded
420
- * drop can be lost in exactly one way — with the receipt — so the field is
421
- * named by `no-receipt-on-chart` and is not here. The kind is kept on this
422
- * list because the next universally-absent field will need it, and because
423
- * a reason that was true for five releases and then measured false is
424
- * worth a sentence where the next person looks.
425
- *
426
- * A field a gap DOES name never belongs here, whatever else is also true of it.
427
- * `epoch` was a key here through three rounds, on the true-but-irrelevant
428
- * ground that `servedAt(k)` hands `k` back; what a base-less fold changes is
429
- * what that number MEANS, `servedViews()` returns the fold's number outright,
430
- * and `no-fold-base` names it now.
431
- *
432
- * Paths are spelled as they are on the shape that HAS the field — both keys
433
- * here are `ServedView` fields. Gap `fields` are spelled as `Receipt` paths —
434
- * see {@link ServedGap.fields} for the places the two shapes differ.
3
+ * servedView — the request an epoch was SERVED, rebuilt from what was
4
+ * committed, plus an honest list of what the log cannot rebuild.
435
5
  *
436
- * @example
437
- * ```ts
438
- * import { SERVED_GAPS, UNGAPPED_FIELDS } from 'agentfootprint';
6
+ * Role: Fold. `servedAt` reads a finished run's commit log and returns the
7
+ * model-facing request that epoch's call assembled; `receiptAt` reads
8
+ * the fingerprint that call left behind. Neither executes anything,
9
+ * records anything, or stores anything beside the log.
10
+ * Reads: a recording, through `epochs.ts` (which log, which index) and
11
+ * footprintjs's `commitValueAt`.
12
+ * Emits: N/A.
439
13
  *
440
- * // Why does nothing explain `callRuntimeStageId`? Because nothing has to.
441
- * UNGAPPED_FIELDS['callRuntimeStageId'];
442
- * Object.keys(SERVED_GAPS).length; // 7 gap kinds
443
- * ```
444
- */
445
- exports.UNGAPPED_FIELDS = Object.freeze({
446
- // MECHANISM (not printed). Read straight off `EpochLocation.callRuntimeStageId`,
447
- // which `epochAt` takes from the call's own commit bundle — never through
448
- // `keyedFold`, so no missing base and no missing run log can touch it. An
449
- // epoch with no bundle is not located at all, so there is no view to carry it.
450
- callRuntimeStageId: 'Never absent here, so there is nothing about it for a gap to excuse.',
451
- // THE SENTENCE THE RULE IS MODELLED ON. It makes no claim about code at all:
452
- // it says what the field MEANS inside the account, and nothing outside the
453
- // sentence can falsify it. Every other entry in this file was reduced to
454
- // this shape in 9.88.0's sixth round.
455
- gaps: 'The account itself rather than a fact about the request: a gap naming this list would be ' +
456
- 'the account excusing its own absence.',
457
- });
458
- /** A gap record, assembled from the catalogue — plus, where the site that
459
- * raises it established one, the cause it read. */
460
- function gapOf(kind, cause) {
461
- return { gap: kind, ...exports.SERVED_GAPS[kind], ...(cause !== undefined && { cause }) };
462
- }
463
- /**
464
- * The receipt this epoch's call committed, or WHY there is none. Shared by
465
- * `receiptAt` and by the rebuild, which reads exactly TWO things off a receipt
466
- * — the model/provider/runId basis, and whether a cache strategy stood between
467
- * assembly and the port — and nothing else.
468
- *
469
- * THE ONE PLACE THAT KNOWS. This function is where the difference between
470
- * "nothing was committed" and "something was committed and it is not a
471
- * receipt" exists at all: everywhere else the two are one `undefined`. It used
472
- * to be spent here, and the gap's printed sentence tried to make it up
473
- * afterwards from a list of causes — which is how a shape refusal added in this
474
- * release became a cause that sentence had already ruled out. So the answer
475
- * carries the reason out, and {@link ServedGap.cause} is where it lands.
476
- *
477
- * THE ONE PLACE THAT NARROWS, too — and what it admits is what it says it
478
- * admits. The check is the basis and nothing past it, so the value it hands
479
- * back is a {@link StoredReceipt}: every container past the basis is what the
480
- * MINTING release wrote, and a reader behind this narrowing reads them as
481
- * optional, because the type says so and the compiler holds it to that.
482
- * 9.93.0 read `receipt.cache.strategy` off a `Receipt` here — the minted
483
- * shape, which promises `cache` — and a stored receipt with a basis and no
484
- * `cache` made `servedAt` throw where 9.92 built a view. A reader reads the
485
- * receipt it is handed; a missing container is a fact about the vintage,
486
- * never a throw. It is also never repaired: nothing here fabricates a
487
- * `cache: {}` or writes to the record.
488
- */
489
- function readReceipt(location) {
490
- const value = (0, epochs_js_1.readAfterCall)(location, conventions_js_1.RECEIPT_KEY);
491
- // Nothing under the key: the run never minted one here. The record does not
492
- // say which of the ways that happens applied, and neither does this.
493
- if (value === undefined)
494
- return { cause: 'no-receipt-committed' };
495
- // Something IS under the key. A value without a basis is not a receipt —
496
- // refuse it rather than hand back a half-shape a caller would read
497
- // `.basis.runId` off — and REPORT the refusal, because a log that holds a
498
- // non-receipt under the receipt key is damaged, which is a different fact
499
- // about the recording from a run that never minted.
500
- const candidate = value;
501
- if (value === null || typeof value !== 'object' || typeof candidate.basis?.epoch !== 'number') {
502
- return { cause: 'receipt-shape-rejected' };
503
- }
504
- return { receipt: value };
505
- }
506
- /** A committed tool list, or `undefined` when the key held no array — which is
507
- * what makes it a FALLBACK CHAIN and not a merge: the first key that holds a
508
- * list is the list this call served, and an empty array is an answer. */
509
- function toolListOf(value) {
510
- return Array.isArray(value) ? value : undefined;
511
- }
512
- /** `toolWantsByName` back as the map `findStagedRefs` takes. It is committed
513
- * as a plain record because a `Map` does not survive the scope's write path
514
- * (an object write is JSON-round-tripped, and a `Map` round-trips to `{}`). */
515
- /**
516
- * The serve mode `seed` put on the record (`findingsServe`), narrowed the way
517
- * every run constant is: only the one non-default literal changes anything,
518
- * and an absent or unrecognised value is the default the wire itself falls
519
- * back to (`callLLM.ts · buildCallLLMStage`, `deps.findingsServe ?? …`) — so
520
- * an unarmed run, which never wrote the key, collapses nothing.
521
- */
522
- function servedModeOf(value) {
523
- return value === 'ledger-only' ? 'ledger-only' : 'ledger-and-facts';
524
- }
525
- /**
526
- * The answer-turn ask `seed` put on the record (`findingsAnswerAsk`, 9.103.0),
527
- * narrowed the same way: only the one literal the wire ever writes appends
528
- * the ask, and an absent key is the default the stage itself falls back to
529
- * (`deps.findingsAnswerAsk ?? 'none'`) — so an armed run on the default,
530
- * which never wrote the key, rebuilds the piece it served.
531
- */
532
- function answerAskOf(value) {
533
- return value === 'quote-facts' ? 'quote-facts' : 'none';
534
- }
535
- /**
536
- * The declared ontology `seed` put on the record (`ontology`, 9.106.0),
537
- * narrowed the way every run constant is: only a record carrying a `spec`
538
- * with `nodes` and `sources` records composes a piece, and an absent key —
539
- * every agent without `.ontology()` — composes nothing, which is what the
540
- * wire did (`callLLM.ts · buildCallLLMStage`, under `deps.ontology`).
541
- */
542
- function ontologyOf(value) {
543
- if (value === null || typeof value !== 'object')
544
- return undefined;
545
- const { spec, tools } = value;
546
- if (spec === null || typeof spec !== 'object')
547
- return undefined;
548
- const { nodes, sources } = spec;
549
- if (nodes === null ||
550
- typeof nodes !== 'object' ||
551
- sources === null ||
552
- typeof sources !== 'object') {
553
- return undefined;
554
- }
555
- // The tool → skills join (9.108.0), taken as the record holds it — a
556
- // record without the key (9.106.0, or a map naming only static tools)
557
- // composes the bytes it always did.
558
- const join = toolsJoinOf(tools);
559
- return { spec: spec, ...(join !== undefined && { tools: join }) };
560
- }
561
- /** `tools` narrowed by shape: string → string[]; anything else is no join. */
562
- function toolsJoinOf(value) {
563
- if (value === null || typeof value !== 'object' || Array.isArray(value))
564
- return undefined;
565
- const out = {};
566
- for (const [name, ids] of Object.entries(value)) {
567
- if (Array.isArray(ids) && ids.every((id) => typeof id === 'string'))
568
- out[name] = ids;
569
- }
570
- return Object.keys(out).length > 0 ? out : undefined;
571
- }
572
- function wantsMapOf(value) {
573
- if (value === null || typeof value !== 'object' || Array.isArray(value))
574
- return undefined;
575
- const map = new Map();
576
- for (const [name, kinds] of Object.entries(value)) {
577
- if (Array.isArray(kinds) && kinds.every((k) => typeof k === 'string')) {
578
- map.set(name, kinds);
579
- }
580
- }
581
- return map.size > 0 ? map : undefined;
582
- }
583
- /**
584
- * The BOUNDARY half of the fold law: a container that leaves this file is this
585
- * file's own.
586
- *
587
- * `keyedFold` deep-freezes its answers, so nothing a consumer does to a view
588
- * can reach a later epoch. This is the second, cheaper guarantee on top of it:
589
- * the two arrays a view would otherwise ALIAS straight out of the fold — the
590
- * conversation and the tool schemas — are copied, so `ServedView` is a value in
591
- * its own right and not a window onto the fold's cache. Elements are the fold's
592
- * frozen objects; the container is ours.
593
- *
594
- * Every other array on a view is built in `viewOf` from scratch and aliases
595
- * nothing, so it needs the COPY half of this and not the freeze — but it is
596
- * frozen anyway, by {@link frozenView}, because the type says `readonly`
597
- * throughout and a claim that is true of two containers out of six is a claim
598
- * a reader cannot use.
599
- */
600
- function detachedList(items) {
601
- return Object.freeze([...items]);
602
- }
603
- /**
604
- * A `ServedView` is a VALUE — all of it, not the two containers that happened
605
- * to need copying.
606
- *
607
- * Freezing the whole view costs a handful of `Object.freeze` calls per epoch
608
- * over containers that are already the right size to hand a person: a few
609
- * system pieces, at most one request-only line, a tool list, the gaps. It buys
610
- * one sentence a reader can rely on instead of a rule about which two arrays
611
- * are safe. `messages.asSent` and `tools.schemas` are already frozen by
612
- * {@link detachedList} — their ELEMENTS are the fold's own frozen objects and
613
- * this function does not walk into them, because they are not ours to freeze
614
- * twice.
615
- *
616
- * What this is NOT: protection against a shared reference. Nothing on a view
617
- * except those two arrays is shared with anything — every other container is
618
- * built here per call. The freeze makes the type's promise exact; the copy in
619
- * `detachedList` is what makes the fold safe.
14
+ * ── THE LAW ────────────────────────────────────────────────────────────────
15
+ *
16
+ * hash(servedAt(k)) === receiptAt(k).hash
17
+ *
18
+ * The receipt is minted at the stop, from the values about to go out. The
19
+ * served view is rebuilt afterwards, from the values that were committed. When
20
+ * the two agree, the record is complete: everything the model read is derivable
21
+ * from the trace. When they disagree, something reached the model that the run
22
+ * never wrote down — and that is a defect in the RECORD, not in the check.
23
+ * `test/time-travel/receipt-conformance.test.ts` is where the law is
24
+ * enforced; five real divergences were found by running it and each one was
25
+ * closed by committing a fact or declaring a gap, never by loosening it.
26
+ *
27
+ * ── WHY THE REBUILD DOES NOT RE-IMPLEMENT THE ASSEMBLY ─────────────────────
28
+ * The joined system string is a local inside the calling stage; it is never
29
+ * committed, only its pieces are. So the rebuild has to apply the identical
30
+ * join to the identical records — which is why the join is one exported
31
+ * function, `composeRequest.ts` · `joinSystemPrompt`, called by the stage on
32
+ * the way out and by this file on the way back. Same for the framework-field
33
+ * strip and the staged-refs nudge. A second implementation of any of them would
34
+ * make this file agree with itself and disagree with the wire.
35
+ *
36
+ * ── WHAT A GAP IS ──────────────────────────────────────────────────────────
37
+ * A `ServedGap` is a fact this view cannot PROVE — because the log cannot
38
+ * rebuild it, because the recording travelled without the base it folds
39
+ * against, or because the fact lives past the boundary a receipt is minted at.
40
+ * It is on the view rather than left implicit because a rebuild that quietly
41
+ * omits a piece looks exactly like a rebuild that proved the piece was absent.
42
+ * Naming the gap is what keeps the two apart.
43
+ *
44
+ * ── A GAP, NOT AN `undefined` ──────────────────────────────────────────────
45
+ * When the rebuild cannot recover the conversation at all — a chart that
46
+ * commits neither `history` nor `messagesInjections`, or a recording whose
47
+ * fold base did not travel — `servedAt` still returns a view, carrying a gap,
48
+ * rather than `undefined`.
49
+ *
50
+ * The alternative was tried and it is worse. Returning `undefined` withholds
51
+ * the system prompt, the tool list and the request-only lines, all of which
52
+ * this recording CAN prove, in order to avoid overstating one field it cannot.
53
+ * A Lens may omit; it may not deny — and dropping four proved facts to hide
54
+ * one hole omits more than the hole does. The gap says exactly which field is
55
+ * unproved, in wording a renderer prints verbatim, and leaves the rest
56
+ * standing.
57
+ *
58
+ * ── EVERY CHART THAT SERVES A MODEL MINTS, EXCEPT WHERE IT CANNOT SALT ─────
59
+ * Until 9.91.0 `buildReceipt` was called from exactly one place — the agent
60
+ * charts' `call-llm` stage (`stages/callLLM.ts`) — and the three other charts
61
+ * that hand a model a request (`LLMCall.ts` · `callLLM`,
62
+ * `buildMessageApiChart`, `buildAgentMessageApiChart`) left
63
+ * `no-receipt-on-chart` on every view they produced. Two reasons were recorded
64
+ * for that at the time. NEITHER survived.
65
+ *
66
+ * The first was the cache verdict: `Receipt.cache.transform` was said to have
67
+ * no honest value on a chart that runs no cache strategy, because
68
+ * `'unchanged'` would claim a strategy returned what it was given when none
69
+ * ran. But an `Agent` running a pass-through strategy records exactly that
70
+ * today — `buildReceipt` compares the request it was handed against itself —
71
+ * and `receipt-conformance.test.ts` asserts it and calls it correct. No fourth
72
+ * enum value was needed, and none was added.
73
+ *
74
+ * The second was the SALT, and it survives on exactly two of the three charts
75
+ * and not for the reason first written down. `LLMCall` owns its executor and
76
+ * mints a run id per run exactly as `Agent` does (a paragraph here said
77
+ * otherwise until 9.88.0, in a sentence a renderer printed verbatim), so it
78
+ * mints. The message-API charts are exported chart BUILDERS handed to an
79
+ * executor the CALLER owns, and nothing in a stage's scope carries that
80
+ * executor's run id — so their deps take one (`getRunId`), and they mint when
81
+ * they are given one. Given none they mint NOTHING rather than salting every
82
+ * hash with an empty string, because the salt is what makes shipping
83
+ * fingerprints in a recording safe (`core/agent/receipt/receipt.ts`, the third law).
84
+ *
85
+ * So a receipt-less view is still a shape this library produces — a chart
86
+ * builder run without a run id, a run that declined with `recordReceipt:
87
+ * false`, a consumer's own `call-llm` stage, a recording made before 9.88.0 —
88
+ * and the absence is DECLARED: `no-receipt-on-chart` names the fields only a
89
+ * receipt carries and says what follows for them. The rebuild never needed the
90
+ * receipt to work; what it loses is the WITNESS.
91
+ *
92
+ * ── AND THE CAUSE IS A VALUE, NOT A LIST INSIDE A SENTENCE ────────────────
93
+ * That gap's sentence used to end with the causes that produce it. That is
94
+ * PROSE DOING DATA'S JOB: a frozen constant cannot know what happened at the
95
+ * site it is printed beside, so it listed the causes somebody could think of —
96
+ * and a path it had never accounted for, the shape refusal by `readReceipt`
97
+ * in `recordReads.ts`, made the count and verdict false without a string edit.
98
+ * The discriminating fact moved to the one place that holds it: `readReceipt`
99
+ * reports whether the receipt key held nothing or held something it refused,
100
+ * and {@link ServedGap.cause} carries that answer out.
101
+ *
102
+ * ── AND THEN THE MECHANISM WENT TOO (9.88.0, sixth round) ─────────────────
103
+ * Five rounds tried to write TRUE mechanism sentences, and the rate of new
104
+ * falsehoods did not fall. The sixth round applied one question to all ten
105
+ * printed sentences — COULD THIS BECOME FALSE WITHOUT ANYONE EDITING IT? —
106
+ * and nine could, two of them being false the day they shipped. Exactly one
107
+ * could not, and it is the one that makes no claim about code at all:
108
+ * `UNGAPPED_FIELDS.gaps`, which says what its field MEANS inside the account.
109
+ * Nothing outside that sentence can falsify it.
110
+ *
111
+ * So the conclusion was not to write mechanism sentences better. It was to
112
+ * STOP WRITING THEM. A printed gap sentence may now say only: which fields it
113
+ * covers; what they mean on this view for the person reading (unproven,
114
+ * possibly short, absent-means-unknown, unchecked against what went out); and
115
+ * what to do differently. It may not name a module, a function, a key, a
116
+ * version, a chart, a strategy, an option, or any mechanism at all. If a
117
+ * sentence needs one of those words to be understood, it is explaining WHY the
118
+ * gap exists, which is not the printed sentence's job.
119
+ *
120
+ * NONE OF IT IS LOST. The mechanism is in the comment above each catalogue
121
+ * entry, where a maintainer reads it and review catches its rot, with the
122
+ * `file · symbol` pointers that are correct there and banned in printed prose.
123
+ * The cause is already data. The docs may explain the mechanism at length,
124
+ * because a doc is versioned with the code and its reader can open the file.
125
+ * The rule is enforced by `test/helpers/gapProseClaims.ts`, which on the
126
+ * printed surface admits no code-shaped token and no mechanism verb — close to
127
+ * a whitelist, and a whitelist has no synonyms.
128
+ *
129
+ * ── AND THE SEVENTH ROUND MEASURED WHAT THE SIXTH HAD CLAIMED ─────────────
130
+ * The sixth round said the reduction ENDED the class: a sentence with no code
131
+ * claim in it cannot go false when the code changes. That was checked, sentence
132
+ * by sentence, by driving a real run for each one — and it is not true. TEN of
133
+ * the eleven reduced sentences still make a claim a code edit falsifies. The
134
+ * one that does not is `UNGAPPED_FIELDS.gaps`, and it survives because it is
135
+ * SELF-REFERENTIAL: it says what its field is inside the account, not anything
136
+ * about the request. That is not a shape the other ten can copy. "May be
137
+ * SHORT", "absent means unknown", "the list is complete and the schemas are one
138
+ * short" are all claims about how the rebuild behaves, and the rebuild is code.
139
+ * The reduction changed the VOCABULARY of the claims, not their CLASS.
140
+ *
141
+ * The same round proved what does close it, by finding a BRAND-NEW false
142
+ * sentence in the round written to end false sentences: `no-run-log` shipped
143
+ * "The fields below could not be fully recovered here", and on the ordinary
144
+ * view that raises it nothing is lost at all. No rule caught that. A run
145
+ * caught it.
146
+ *
147
+ * SO THE POSITION IS: a gap sentence MAY make a code claim, because a sentence
148
+ * that makes none cannot inform. Every claim it makes is ASSERTED against a
149
+ * real view in `test/time-travel/gap-sentences.test.ts`, which drives one
150
+ * run per entry and checks the claim rather than the firing. The prose rule
151
+ * STAYS — it keeps the sentences short and readable and stops the enumerations
152
+ * coming back — but it is not what makes them true. The assertion is, and its
153
+ * blind spot is honest and small: a claim nobody wrote an assertion for.
620
154
  */
621
- function frozenView(view) {
622
- for (const piece of view.system.pieces)
623
- Object.freeze(piece);
624
- Object.freeze(view.system.pieces);
625
- for (const line of view.messages.requestOnly)
626
- Object.freeze(line);
627
- Object.freeze(view.messages.requestOnly);
628
- Object.freeze(view.tools.names);
629
- for (const gap of view.gaps)
630
- Object.freeze(gap);
631
- Object.freeze(view.gaps);
632
- if (view.basis !== undefined)
633
- Object.freeze(view.basis);
634
- Object.freeze(view.system);
635
- Object.freeze(view.messages);
636
- Object.freeze(view.tools);
637
- return Object.freeze(view);
638
- }
639
- /** Rebuild one epoch's view from a located epoch. */
640
- function viewOf(location, served) {
641
- // The receipt is read for exactly two things — WHICH model saw this, through
642
- // WHICH provider, salted with WHICH run id; and whether a cache strategy
643
- // stood between assembly and the port. Every other field below is rebuilt
644
- // from committed pieces and never from the record it is checked against; a
645
- // rebuild that read its own answer sheet would prove nothing. Both reads go
646
- // through `readReceipt`'s narrowing and its type: a stored receipt carries
647
- // what its vintage wrote, and nothing below dereferences a container the
648
- // narrowing did not check.
649
- const read = readReceipt(location);
650
- const receipt = read.receipt;
651
- // ── the system prompt ──────────────────────────────────────────────────
652
- // The pieces are committed; the joined string never is. Same function the
653
- // stage used, over the records as the stage read them.
654
- const injections = (readAtCall(location, 'systemPromptInjections', served) ??
655
- []);
656
- const iteration = readAtCall(location, 'iteration', served);
657
- const recovery = (0, recovery_js_1.evidenceRecoveryPiece)(readAtCall(location, 'evidenceRecovery', served), readAtCall(location, 'evidenceRecoveryUsed', served), iteration);
658
- // ── the conversation ───────────────────────────────────────────────────
659
- // Read BEFORE the call's own bundle: the call appends the assistant turn to
660
- // `history`, so the committed value at the call already includes the answer.
661
- //
662
- // TWO committed sources, because there are two kinds of chart and they do
663
- // not agree on where the conversation lives. The agent charts keep it in
664
- // `history` and treat `messagesInjections` as an observability projection.
665
- // `LLMCall` and the message-API charts have NO history at all: the messages
666
- // slot IS the conversation, composed by `messagesFromInjections` — the same
667
- // function called here. Reading only `history` on those charts found nothing
668
- // and reported an empty conversation the provider never sent.
669
- //
670
- // Neither present ⇒ the turns are UNKNOWN, and the gap below says so rather
671
- // than letting `[]` pass for a proof.
672
- const committedHistory = readAtCall(location, 'history', served);
673
- const committedInjections = readAtCall(location, 'messagesInjections', served);
674
- const conversation = Array.isArray(committedHistory)
675
- ? committedHistory
676
- : Array.isArray(committedInjections)
677
- ? [...(0, composeRequest_js_1.messagesFromInjections)(committedInjections)]
678
- : undefined;
679
- const committed = conversation ?? [];
680
- const history = (0, composeRequest_js_1.stripFrameworkFields)(committed);
681
- // ── the findings ledger, served (9.101.0, step 3) ──────────────────────
682
- // The SAME two pure functions the stage used, over the SAME committed
683
- // inputs, in the SAME order (`callLLM.ts · buildCallLLMStage`): the piece
684
- // from the ledger at the call and the wire's tool ids (nothing else — no
685
- // call number, so a re-ask rebuilds the same bytes it served) — derived
686
- // here as the stage derived them, from the COMMITTED conversation BEFORE
687
- // the collapse and the strip (an id is never rewritten, so either side
688
- // agrees; the batch settlement's marker, 9.113.0, is still on it — a
689
- // settled message is no result, `findings/offer.ts` · `isResultMessage`);
690
- // the collapse under the mode `seed` put on the record as the run constant
691
- // `findingsServe` (the `forcedOutputToolName` precedent — a build-time fact
692
- // read from the RECORD, never from the receipt this view is checked
693
- // against), stripped after it, and the answer-turn ask under the run
694
- // constant `findingsAnswerAsk` (9.103.0), written only when the ask went
695
- // out. No `.findings()` ⇒ no key ⇒ all three are no-ops and the rebuild is
696
- // the bytes it always was; no new gap kind, `withheld` untouched.
697
- const ledger = readAtCall(location, 'findingsLedger', served);
698
- const recordedLayout = (0, epochs_js_1.readAfterCall)(location, 'findingsLayout');
699
- const recordedBound = (0, epochs_js_1.readAfterCall)(location, 'findingsContextBytes');
700
- let layoutUnknown = recordedLayout !== undefined && recordedLayout !== context_js_1.FINDINGS_LAYOUT;
701
- let lateLayout = recordedLayout === context_js_1.FINDINGS_LAYOUT;
702
- if (lateLayout) {
703
- try {
704
- if (typeof recordedBound !== 'number')
705
- throw new Error('Missing bound');
706
- (0, context_js_1.findingsContextBytes)(recordedBound);
707
- }
708
- catch {
709
- lateLayout = false;
710
- layoutUnknown = true;
711
- }
712
- }
713
- // No discriminator means the original saved layout, never the installed version.
714
- const findings = lateLayout || layoutUnknown
715
- ? undefined
716
- : (0, serve_js_1.findingsLedgerPiece)(ledger, (0, serve_js_1.servedToolCallIds)(committed), answerAskOf(readRunConstant(location, 'findingsAnswerAsk', served)));
717
- const collapsed = (0, serve_js_1.collapseJudged)(committed, ledger, servedModeOf(readRunConstant(location, 'findingsServe', served)));
718
- const asSent = collapsed === committed ? history : (0, composeRequest_js_1.stripFrameworkFields)(collapsed);
719
- // ── the declared ontology, served (9.106.0) ────────────────────────────
720
- // The SAME pure function the stage used, over the run constant `seed`
721
- // wrote (the `findingsServe` precedent — a build-time fact read from the
722
- // RECORD, never from the receipt this view is checked against). No
723
- // `.ontology()` ⇒ no key ⇒ no piece, and the rebuild is the bytes it
724
- // always was.
725
- const ontologyRecord = ontologyOf(readRunConstant(location, 'ontology', served));
726
- // The hidden skill ids the call was composed under (9.108.0) — a per-epoch
727
- // key the Injection Engine's mount publishes, read at the call as the stage read it.
728
- const hiddenAtCall = readAtCall(location, 'hiddenSkillIds', served);
729
- const ontology = ontologyRecord === undefined
730
- ? undefined
731
- : (0, serve_js_2.ontologyPiece)(ontologyRecord.spec, {
732
- ...(ontologyRecord.tools !== undefined && { tools: ontologyRecord.tools }),
733
- ...(hiddenAtCall !== undefined && { hiddenSkillIds: hiddenAtCall }),
734
- });
735
- // ── the system prompt, joined ──────────────────────────────────────────
736
- // Injections, then the recovery piece, then the ontology piece, then the
737
- // findings piece — the fixed order the stage joins in. Every request-only
738
- // piece is joined, never committed as an injection.
739
- const composedPieces = recovery === undefined && ontology === undefined && findings === undefined
740
- ? injections
741
- : [
742
- ...injections,
743
- ...(recovery === undefined ? [] : [recovery]),
744
- ...(ontology === undefined ? [] : [ontology]),
745
- ...(findings === undefined ? [] : [findings]),
746
- ];
747
- const pieces = (0, composeRequest_js_1.contributingPieces)(composedPieces).map((record) => ({
748
- text: record.rawContent,
749
- slot: record.slot,
750
- source: record.source,
751
- }));
752
- // ── the tools ──────────────────────────────────────────────────────────
753
- // `dynamicToolSchemas` is the PRE-assembly list. Two rules run after it and
754
- // both are on the record: a withheld call (the wrap-up, or any call after
755
- // the evidence revision under an enforcing answer validation —
756
- // `composeRequest.ts` · `toolsWithheld`) is served no tool, and a
757
- // 'tool-forced' strategy adds one.
758
- //
759
- // TWO committed sources, for the same reason the conversation above has two
760
- // and with the same ordering rule (9.91.0). The agent charts map the tools
761
- // slot's output onto `dynamicToolSchemas` at the mount boundary; the
762
- // message-API charts carry it out under the slot's own name. Reading only
763
- // the first reported an EMPTY tool list on a chart that served three — a
764
- // Lens DENYING, about a fact the log holds perfectly well. The agent key is
765
- // read first and the fallback is reached only when it holds no array, so no
766
- // agent recording changes.
767
- const withheld = (0, composeRequest_js_1.toolsWithheld)(readAtCall(location, 'wrapUpAsked', served), readAtCall(location, 'toolsOffAfterRevision', served));
768
- const dynamic = toolListOf(readAtCall(location, 'dynamicToolSchemas', served)) ??
769
- toolListOf(readAtCall(location, 'toolSchemas', served)) ??
770
- [];
771
- const registered = withheld !== null ? [] : dynamic;
772
- const forcedRaw = readRunConstant(location, receipt_js_1.FORCED_OUTPUT_TOOL_KEY, served);
773
- const forced = typeof forcedRaw === 'string' && forcedRaw.length > 0 ? forcedRaw : undefined;
774
- // ── the request-only lines ─────────────────────────────────────────────
775
- // The staged-refs nudge is a pure function of committed state: the
776
- // conversation, the tools really served this call, and the `wants`
777
- // declarations `seed` put on the record for exactly this reason.
778
- const requestOnly = [];
779
- const wants = wantsMapOf(readRunConstant(location, 'toolWantsByName', served));
780
- if (wants !== undefined) {
781
- const match = (0, stagedRefs_js_1.findStagedRefs)(asSent, wants, new Set(registered.map((t) => t.name)));
782
- if (match !== undefined) {
783
- requestOnly.push({
784
- role: 'user',
785
- text: (0, stagedRefs_js_1.stagedRefsNudgeLine)(match),
786
- reason: 'staged-refs-nudge',
787
- });
788
- }
789
- }
790
- // The time line (step T6b) — the tools slot's committed composition, served only on the
791
- // iteration that composed it and never on the wrap-up call (`callLLM` · the same three tests).
792
- const timeLine = readAtCall(location, 'timeLine', served);
793
- if (withheld === null &&
794
- typeof timeLine?.text === 'string' &&
795
- timeLine.text.length > 0 &&
796
- timeLine.iteration === readAtCall(location, 'iteration', served)) {
797
- requestOnly.push({ role: 'user', text: timeLine.text, reason: 'time-window-line' });
798
- }
799
- // The evidence conclusion (the figures dial) — the committed carrier's late
800
- // line, on the iteration its instruction is served (`callLLM` · the same test).
801
- const conclusion = (0, recovery_js_1.evidenceConclusionLine)(readAtCall(location, 'evidenceRecovery', served), readAtCall(location, 'evidenceRecoveryUsed', served), iteration);
802
- if (conclusion !== undefined) {
803
- requestOnly.push({ role: 'user', text: conclusion, reason: 'evidence-conclusion' });
804
- }
805
- if (lateLayout) {
806
- try {
807
- requestOnly.push({
808
- role: 'user',
809
- text: (0, context_js_1.findingsContext)(committed, (0, epochs_js_1.readAtCall)(location, 'findingsLedger'), recordedBound),
810
- reason: 'findings-data',
811
- });
812
- }
813
- catch {
814
- layoutUnknown = true;
815
- }
816
- }
817
- // ── what this view cannot prove ────────────────────────────────────────
818
- // Order is deliberate: the two that make the WHOLE view suspect come first,
819
- // so a renderer that shows one gap shows the one that matters most.
820
- const gaps = [];
821
- if (layoutUnknown)
822
- gaps.push(gapOf('findings-layout'));
823
- // BOTH bases, because there are two folds above and either can be baseless.
824
- // Under 'dynamic-grouped' the epoch's pieces come from the turn's own inner
825
- // log (`location.basis`) and every run constant — the forced tool's name, the
826
- // `wants` the nudge is composed from — comes from the RUN log
827
- // (`location.runBasis`). Raising the gap off the first alone let a grouped
828
- // recording that travelled without its RUN base read every constant as absent
829
- // and declare NOTHING: a Lens denying rather than omitting, which is the law
830
- // this whole file is built on.
831
- if (location.basis === 'log-only' || location.runBasis === 'log-only') {
832
- gaps.push(gapOf('no-fold-base'));
833
- }
834
- if (conversation === undefined)
835
- gaps.push(gapOf('no-conversation-on-record'));
836
- if (!location.hasRunLog)
837
- gaps.push(gapOf('no-run-log'));
838
- // No receipt ⇒ nothing checks the rebuild, and the receipt-only fields are
839
- // absent. Mutually exclusive with `provider-defaults` below, which is the
840
- // caveat that applies when a receipt DID record the dials.
841
- //
842
- // The CAUSE rides along, from the one read that can tell "nothing was
843
- // committed" from "something was, and it is not a receipt". The gap's
844
- // sentence says neither — see {@link ServedGap.cause}.
845
- if (read.receipt === undefined)
846
- gaps.push(gapOf('no-receipt-on-chart', read.cause));
847
- // A rewrite is possible only where a strategy stood between assembly and
848
- // the port. The receipt says whether one did (`cache.strategy`, 9.93.0);
849
- // with no receipt, or a receipt minted before the field — or the whole
850
- // `cache` container — existed, the record cannot rule one out and the gap
851
- // stays — the "you cannot tell" declaration, never an inference from
852
- // absence. Only a receipt that SAYS `null` lifts it. The optional chain is
853
- // the vintage law, not defensiveness: `StoredReceipt` declares both
854
- // containers optional, so this is the one spelling that compiles.
855
- if (receipt?.cache?.strategy !== null) {
856
- gaps.push(gapOf('cache-transform'));
857
- }
858
- if (receipt !== undefined)
859
- gaps.push(gapOf('provider-defaults'));
860
- if (receipt?.replayPreparations !== undefined)
861
- gaps.push(gapOf('thinking-replay'));
862
- if (forced !== undefined)
863
- gaps.push(gapOf('forced-tool-schema'));
864
- return frozenView({
865
- epoch: location.epoch,
866
- callRuntimeStageId: location.callRuntimeStageId,
867
- ...(receipt !== undefined && {
868
- basis: {
869
- model: receipt.basis.model,
870
- provider: receipt.basis.provider,
871
- runId: receipt.basis.runId,
872
- },
873
- }),
874
- system: { text: (0, composeRequest_js_1.joinSystemPrompt)(composedPieces), pieces },
875
- messages: { asSent: detachedList(asSent), requestOnly },
876
- tools: {
877
- names: [...registered.map((t) => t.name), ...(forced !== undefined ? [forced] : [])],
878
- schemas: detachedList(registered),
879
- ...(forced !== undefined && { forced }),
880
- ...(withheld !== null && { withheld }),
881
- },
882
- gaps,
883
- });
884
- }
155
+ Object.defineProperty(exports, "__esModule", { value: true });
156
+ exports.receiptAt = exports.servedViews = exports.servedAt = exports.UNGAPPED_FIELDS = exports.SERVED_GAPS = void 0;
157
+ const epochs_js_1 = require("./epochs.js");
158
+ const marker_js_1 = require("../redaction/marker.js");
159
+ const recordReads_js_1 = require("./servedView/recordReads.js");
160
+ const assembly_js_1 = require("./servedView/assembly.js");
161
+ const gaps_js_1 = require("./servedView/gaps.js");
162
+ Object.defineProperty(exports, "SERVED_GAPS", { enumerable: true, get: function () { return gaps_js_1.SERVED_GAPS; } });
163
+ Object.defineProperty(exports, "UNGAPPED_FIELDS", { enumerable: true, get: function () { return gaps_js_1.UNGAPPED_FIELDS; } });
885
164
  /**
886
165
  * Rebuild what the model was SERVED on epoch `k`, from the run's committed
887
166
  * pieces alone.
@@ -920,7 +199,7 @@ function viewOf(location, served) {
920
199
  function servedAt(source, epoch) {
921
200
  const recording = (0, epochs_js_1.recordingOf)(source);
922
201
  const location = (0, epochs_js_1.epochAt)(recording, epoch);
923
- return location === undefined ? undefined : viewOf(location, (0, marker_js_1.servedUnderPolicy)(recording));
202
+ return location === undefined ? undefined : (0, assembly_js_1.viewOf)(location, (0, marker_js_1.servedUnderPolicy)(recording));
924
203
  }
925
204
  exports.servedAt = servedAt;
926
205
  /**
@@ -935,7 +214,7 @@ exports.servedAt = servedAt;
935
214
  function servedViews(source) {
936
215
  const recording = (0, epochs_js_1.recordingOf)(source);
937
216
  const served = (0, marker_js_1.servedUnderPolicy)(recording);
938
- return (0, epochs_js_1.epochLocations)(recording).map((location) => viewOf(location, served));
217
+ return (0, epochs_js_1.epochLocations)(recording).map((location) => (0, assembly_js_1.viewOf)(location, served));
939
218
  }
940
219
  exports.servedViews = servedViews;
941
220
  /**
@@ -980,7 +259,7 @@ exports.servedViews = servedViews;
980
259
  */
981
260
  function receiptAt(source, epoch) {
982
261
  const location = (0, epochs_js_1.epochAt)(source, epoch);
983
- return location === undefined ? undefined : readReceipt(location).receipt;
262
+ return location === undefined ? undefined : (0, recordReads_js_1.readReceipt)(location).receipt;
984
263
  }
985
264
  exports.receiptAt = receiptAt;
986
265
  //# sourceMappingURL=servedView.js.map