agentfootprint 9.41.0 → 9.43.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 (345) hide show
  1. package/AGENTS.md +30 -1
  2. package/CLAUDE.md +3 -1
  3. package/ai-instructions/claude-code/SKILL.md +31 -1
  4. package/dist/adapters/hosting/agentcore.js +71 -10
  5. package/dist/adapters/hosting/agentcore.js.map +1 -1
  6. package/dist/adapters/hosting/firestoreSessions.js +184 -14
  7. package/dist/adapters/hosting/firestoreSessions.js.map +1 -1
  8. package/dist/adapters/hosting/googleAgentEngine.js +29 -0
  9. package/dist/adapters/hosting/googleAgentEngine.js.map +1 -1
  10. package/dist/core/Agent.js +14 -1
  11. package/dist/core/Agent.js.map +1 -1
  12. package/dist/core/agent/AgentBuilder.js +56 -1
  13. package/dist/core/agent/AgentBuilder.js.map +1 -1
  14. package/dist/core/agent/buildAgentChart.js +5 -1
  15. package/dist/core/agent/buildAgentChart.js.map +1 -1
  16. package/dist/core/agent/buildDynamicAgentChart.js +5 -1
  17. package/dist/core/agent/buildDynamicAgentChart.js.map +1 -1
  18. package/dist/core/agent/coverage/absent.js +163 -0
  19. package/dist/core/agent/coverage/absent.js.map +1 -0
  20. package/dist/core/agent/coverage/answer.js +90 -0
  21. package/dist/core/agent/coverage/answer.js.map +1 -0
  22. package/dist/core/agent/coverage/evidence.js +90 -0
  23. package/dist/core/agent/coverage/evidence.js.map +1 -0
  24. package/dist/core/agent/coverage/index.js +37 -0
  25. package/dist/core/agent/coverage/index.js.map +1 -0
  26. package/dist/core/agent/coverage/items.js +91 -0
  27. package/dist/core/agent/coverage/items.js.map +1 -0
  28. package/dist/core/agent/coverage/ledger.js +131 -0
  29. package/dist/core/agent/coverage/ledger.js.map +1 -0
  30. package/dist/core/agent/coverage/read.js +56 -0
  31. package/dist/core/agent/coverage/read.js.map +1 -0
  32. package/dist/core/agent/coverage/types.js +15 -0
  33. package/dist/core/agent/coverage/types.js.map +1 -0
  34. package/dist/core/agent/evidence/evidenceIndex.js +18 -1
  35. package/dist/core/agent/evidence/evidenceIndex.js.map +1 -1
  36. package/dist/core/agent/stages/prepareFinal.js +44 -3
  37. package/dist/core/agent/stages/prepareFinal.js.map +1 -1
  38. package/dist/core/agent/stages/toolCalls.js +109 -3
  39. package/dist/core/agent/stages/toolCalls.js.map +1 -1
  40. package/dist/core/agent/toolEffects.js +1 -1
  41. package/dist/debug.js +49 -25
  42. package/dist/debug.js.map +1 -1
  43. package/dist/esm/adapters/hosting/agentcore.d.ts +8 -0
  44. package/dist/esm/adapters/hosting/agentcore.js +71 -10
  45. package/dist/esm/adapters/hosting/agentcore.js.map +1 -1
  46. package/dist/esm/adapters/hosting/firestoreSessions.d.ts +162 -14
  47. package/dist/esm/adapters/hosting/firestoreSessions.js +182 -13
  48. package/dist/esm/adapters/hosting/firestoreSessions.js.map +1 -1
  49. package/dist/esm/adapters/hosting/googleAgentEngine.d.ts +16 -1
  50. package/dist/esm/adapters/hosting/googleAgentEngine.js +29 -0
  51. package/dist/esm/adapters/hosting/googleAgentEngine.js.map +1 -1
  52. package/dist/esm/core/Agent.d.ts +8 -1
  53. package/dist/esm/core/Agent.js +14 -1
  54. package/dist/esm/core/Agent.js.map +1 -1
  55. package/dist/esm/core/agent/AgentBuilder.d.ts +43 -0
  56. package/dist/esm/core/agent/AgentBuilder.js +56 -1
  57. package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
  58. package/dist/esm/core/agent/buildAgentChart.d.ts +9 -0
  59. package/dist/esm/core/agent/buildAgentChart.js +6 -2
  60. package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
  61. package/dist/esm/core/agent/buildDynamicAgentChart.js +6 -2
  62. package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -1
  63. package/dist/esm/core/agent/coverage/absent.d.ts +104 -0
  64. package/dist/esm/core/agent/coverage/absent.js +157 -0
  65. package/dist/esm/core/agent/coverage/absent.js.map +1 -0
  66. package/dist/esm/core/agent/coverage/answer.d.ts +46 -0
  67. package/dist/esm/core/agent/coverage/answer.js +86 -0
  68. package/dist/esm/core/agent/coverage/answer.js.map +1 -0
  69. package/dist/esm/core/agent/coverage/evidence.d.ts +68 -0
  70. package/dist/esm/core/agent/coverage/evidence.js +86 -0
  71. package/dist/esm/core/agent/coverage/evidence.js.map +1 -0
  72. package/dist/esm/core/agent/coverage/index.d.ts +17 -0
  73. package/dist/esm/core/agent/coverage/index.js +17 -0
  74. package/dist/esm/core/agent/coverage/index.js.map +1 -0
  75. package/dist/esm/core/agent/coverage/items.d.ts +35 -0
  76. package/dist/esm/core/agent/coverage/items.js +85 -0
  77. package/dist/esm/core/agent/coverage/items.js.map +1 -0
  78. package/dist/esm/core/agent/coverage/ledger.d.ts +80 -0
  79. package/dist/esm/core/agent/coverage/ledger.js +125 -0
  80. package/dist/esm/core/agent/coverage/ledger.js.map +1 -0
  81. package/dist/esm/core/agent/coverage/read.d.ts +51 -0
  82. package/dist/esm/core/agent/coverage/read.js +52 -0
  83. package/dist/esm/core/agent/coverage/read.js.map +1 -0
  84. package/dist/esm/core/agent/coverage/types.d.ts +142 -0
  85. package/dist/esm/core/agent/coverage/types.js +14 -0
  86. package/dist/esm/core/agent/coverage/types.js.map +1 -0
  87. package/dist/esm/core/agent/evidence/evidenceIndex.d.ts +7 -0
  88. package/dist/esm/core/agent/evidence/evidenceIndex.js +18 -1
  89. package/dist/esm/core/agent/evidence/evidenceIndex.js.map +1 -1
  90. package/dist/esm/core/agent/stages/prepareFinal.d.ts +18 -0
  91. package/dist/esm/core/agent/stages/prepareFinal.js +42 -2
  92. package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -1
  93. package/dist/esm/core/agent/stages/toolCalls.js +109 -3
  94. package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
  95. package/dist/esm/core/agent/toolEffects.d.ts +2 -2
  96. package/dist/esm/core/agent/toolEffects.js +1 -1
  97. package/dist/esm/core/agent/types.d.ts +14 -0
  98. package/dist/esm/debug.d.ts +1 -0
  99. package/dist/esm/debug.js +7 -0
  100. package/dist/esm/debug.js.map +1 -1
  101. package/dist/esm/events/payloads.d.ts +46 -0
  102. package/dist/esm/events/registry.d.ts +5 -1
  103. package/dist/esm/events/registry.js +4 -0
  104. package/dist/esm/events/registry.js.map +1 -1
  105. package/dist/esm/hosting/conformance/cases.d.ts +2 -1
  106. package/dist/esm/hosting/conformance/cases.js +88 -2
  107. package/dist/esm/hosting/conformance/cases.js.map +1 -1
  108. package/dist/esm/hosting/conformance/types.d.ts +7 -7
  109. package/dist/esm/hosting/errors.d.ts +28 -0
  110. package/dist/esm/hosting/errors.js +40 -0
  111. package/dist/esm/hosting/errors.js.map +1 -1
  112. package/dist/esm/hosting/index.d.ts +11 -3
  113. package/dist/esm/hosting/index.js +15 -2
  114. package/dist/esm/hosting/index.js.map +1 -1
  115. package/dist/esm/hosting/memorySessions.js +39 -0
  116. package/dist/esm/hosting/memorySessions.js.map +1 -1
  117. package/dist/esm/hosting/sessionRetention.d.ts +56 -0
  118. package/dist/esm/hosting/sessionRetention.js +69 -0
  119. package/dist/esm/hosting/sessionRetention.js.map +1 -0
  120. package/dist/esm/hosting/sqliteSessions.d.ts +11 -1
  121. package/dist/esm/hosting/sqliteSessions.js +51 -0
  122. package/dist/esm/hosting/sqliteSessions.js.map +1 -1
  123. package/dist/esm/hosting/types.d.ts +184 -0
  124. package/dist/esm/hosting/types.js +9 -0
  125. package/dist/esm/hosting/types.js.map +1 -1
  126. package/dist/esm/hosting-providers.d.ts +15 -11
  127. package/dist/esm/hosting-providers.js +21 -11
  128. package/dist/esm/hosting-providers.js.map +1 -1
  129. package/dist/esm/index.d.ts +1 -0
  130. package/dist/esm/index.js +18 -0
  131. package/dist/esm/index.js.map +1 -1
  132. package/dist/esm/lib/context-bisect/arms/apply.d.ts +54 -0
  133. package/dist/esm/lib/context-bisect/arms/apply.js +41 -0
  134. package/dist/esm/lib/context-bisect/arms/apply.js.map +1 -0
  135. package/dist/esm/lib/context-bisect/arms/compare.d.ts +27 -0
  136. package/dist/esm/lib/context-bisect/arms/compare.js +112 -0
  137. package/dist/esm/lib/context-bisect/arms/compare.js.map +1 -0
  138. package/dist/esm/lib/context-bisect/arms/index.d.ts +16 -0
  139. package/dist/esm/lib/context-bisect/arms/index.js +16 -0
  140. package/dist/esm/lib/context-bisect/arms/index.js.map +1 -0
  141. package/dist/esm/lib/context-bisect/arms/manifest.d.ts +79 -0
  142. package/dist/esm/lib/context-bisect/arms/manifest.js +199 -0
  143. package/dist/esm/lib/context-bisect/arms/manifest.js.map +1 -0
  144. package/dist/esm/lib/context-bisect/arms/probe.d.ts +54 -0
  145. package/dist/esm/lib/context-bisect/arms/probe.js +125 -0
  146. package/dist/esm/lib/context-bisect/arms/probe.js.map +1 -0
  147. package/dist/esm/lib/context-bisect/arms/types.d.ts +319 -0
  148. package/dist/esm/lib/context-bisect/arms/types.js +67 -0
  149. package/dist/esm/lib/context-bisect/arms/types.js.map +1 -0
  150. package/dist/esm/lib/context-bisect/arms/validate.d.ts +26 -0
  151. package/dist/esm/lib/context-bisect/arms/validate.js +122 -0
  152. package/dist/esm/lib/context-bisect/arms/validate.js.map +1 -0
  153. package/dist/esm/lib/context-bisect/arms/verdict.d.ts +53 -0
  154. package/dist/esm/lib/context-bisect/arms/verdict.js +103 -0
  155. package/dist/esm/lib/context-bisect/arms/verdict.js.map +1 -0
  156. package/dist/esm/lib/context-bisect/index.d.ts +1 -0
  157. package/dist/esm/lib/context-bisect/index.js +5 -0
  158. package/dist/esm/lib/context-bisect/index.js.map +1 -1
  159. package/dist/esm/lib/injection-engine/index.d.ts +1 -1
  160. package/dist/esm/lib/injection-engine/index.js +3 -1
  161. package/dist/esm/lib/injection-engine/index.js.map +1 -1
  162. package/dist/esm/lib/injection-engine/skillExamples.d.ts +16 -13
  163. package/dist/esm/lib/injection-engine/skillExamples.js +16 -60
  164. package/dist/esm/lib/injection-engine/skillExamples.js.map +1 -1
  165. package/dist/esm/lib/injection-engine/skillGraph.d.ts +50 -0
  166. package/dist/esm/lib/injection-engine/skillGraph.js +52 -1
  167. package/dist/esm/lib/injection-engine/skillGraph.js.map +1 -1
  168. package/dist/esm/lib/injection-engine/skillGraphCheckup.d.ts +6 -5
  169. package/dist/esm/lib/injection-engine/skillGraphCheckup.js.map +1 -1
  170. package/dist/esm/lib/injection-engine/skillNeverRoutes.d.ts +131 -0
  171. package/dist/esm/lib/injection-engine/skillNeverRoutes.js +228 -0
  172. package/dist/esm/lib/injection-engine/skillNeverRoutes.js.map +1 -0
  173. package/dist/esm/lib/injection-engine/skillPartition.d.ts +69 -0
  174. package/dist/esm/lib/injection-engine/skillPartition.js +273 -0
  175. package/dist/esm/lib/injection-engine/skillPartition.js.map +1 -0
  176. package/dist/esm/lib/injection-engine/skillsFromDir.d.ts +83 -3
  177. package/dist/esm/lib/injection-engine/skillsFromDir.js +118 -7
  178. package/dist/esm/lib/injection-engine/skillsFromDir.js.map +1 -1
  179. package/dist/esm/lib/injection-engine/skillsFromDirRoutes.d.ts +105 -0
  180. package/dist/esm/lib/injection-engine/skillsFromDirRoutes.js +169 -0
  181. package/dist/esm/lib/injection-engine/skillsFromDirRoutes.js.map +1 -0
  182. package/dist/esm/lib/injection-engine/startRuleClaim.d.ts +91 -0
  183. package/dist/esm/lib/injection-engine/startRuleClaim.js +78 -0
  184. package/dist/esm/lib/injection-engine/startRuleClaim.js.map +1 -0
  185. package/dist/esm/lib/injection-engine/toolOutcome.d.ts +12 -3
  186. package/dist/esm/lib/injection-engine/toolOutcome.js +2 -1
  187. package/dist/esm/lib/injection-engine/toolOutcome.js.map +1 -1
  188. package/dist/events/registry.js +4 -0
  189. package/dist/events/registry.js.map +1 -1
  190. package/dist/hosting/conformance/cases.js +88 -2
  191. package/dist/hosting/conformance/cases.js.map +1 -1
  192. package/dist/hosting/errors.js +42 -1
  193. package/dist/hosting/errors.js.map +1 -1
  194. package/dist/hosting/index.js +18 -2
  195. package/dist/hosting/index.js.map +1 -1
  196. package/dist/hosting/memorySessions.js +39 -0
  197. package/dist/hosting/memorySessions.js.map +1 -1
  198. package/dist/hosting/sessionRetention.js +73 -0
  199. package/dist/hosting/sessionRetention.js.map +1 -0
  200. package/dist/hosting/sqliteSessions.js +51 -0
  201. package/dist/hosting/sqliteSessions.js.map +1 -1
  202. package/dist/hosting/types.js +10 -1
  203. package/dist/hosting/types.js.map +1 -1
  204. package/dist/hosting-providers.js +21 -11
  205. package/dist/hosting-providers.js.map +1 -1
  206. package/dist/index.js +72 -43
  207. package/dist/index.js.map +1 -1
  208. package/dist/lib/context-bisect/arms/apply.js +45 -0
  209. package/dist/lib/context-bisect/arms/apply.js.map +1 -0
  210. package/dist/lib/context-bisect/arms/compare.js +116 -0
  211. package/dist/lib/context-bisect/arms/compare.js.map +1 -0
  212. package/dist/lib/context-bisect/arms/index.js +35 -0
  213. package/dist/lib/context-bisect/arms/index.js.map +1 -0
  214. package/dist/lib/context-bisect/arms/manifest.js +207 -0
  215. package/dist/lib/context-bisect/arms/manifest.js.map +1 -0
  216. package/dist/lib/context-bisect/arms/probe.js +132 -0
  217. package/dist/lib/context-bisect/arms/probe.js.map +1 -0
  218. package/dist/lib/context-bisect/arms/types.js +68 -0
  219. package/dist/lib/context-bisect/arms/types.js.map +1 -0
  220. package/dist/lib/context-bisect/arms/validate.js +128 -0
  221. package/dist/lib/context-bisect/arms/validate.js.map +1 -0
  222. package/dist/lib/context-bisect/arms/verdict.js +107 -0
  223. package/dist/lib/context-bisect/arms/verdict.js.map +1 -0
  224. package/dist/lib/context-bisect/index.js +23 -1
  225. package/dist/lib/context-bisect/index.js.map +1 -1
  226. package/dist/lib/injection-engine/index.js +4 -1
  227. package/dist/lib/injection-engine/index.js.map +1 -1
  228. package/dist/lib/injection-engine/skillExamples.js +24 -68
  229. package/dist/lib/injection-engine/skillExamples.js.map +1 -1
  230. package/dist/lib/injection-engine/skillGraph.js +52 -1
  231. package/dist/lib/injection-engine/skillGraph.js.map +1 -1
  232. package/dist/lib/injection-engine/skillGraphCheckup.js.map +1 -1
  233. package/dist/lib/injection-engine/skillNeverRoutes.js +234 -0
  234. package/dist/lib/injection-engine/skillNeverRoutes.js.map +1 -0
  235. package/dist/lib/injection-engine/skillPartition.js +277 -0
  236. package/dist/lib/injection-engine/skillPartition.js.map +1 -0
  237. package/dist/lib/injection-engine/skillsFromDir.js +121 -9
  238. package/dist/lib/injection-engine/skillsFromDir.js.map +1 -1
  239. package/dist/lib/injection-engine/skillsFromDirRoutes.js +174 -0
  240. package/dist/lib/injection-engine/skillsFromDirRoutes.js.map +1 -0
  241. package/dist/lib/injection-engine/startRuleClaim.js +85 -0
  242. package/dist/lib/injection-engine/startRuleClaim.js.map +1 -0
  243. package/dist/lib/injection-engine/toolOutcome.js +2 -1
  244. package/dist/lib/injection-engine/toolOutcome.js.map +1 -1
  245. package/dist/types/adapters/hosting/agentcore.d.ts +8 -0
  246. package/dist/types/adapters/hosting/agentcore.d.ts.map +1 -1
  247. package/dist/types/adapters/hosting/firestoreSessions.d.ts +162 -14
  248. package/dist/types/adapters/hosting/firestoreSessions.d.ts.map +1 -1
  249. package/dist/types/adapters/hosting/googleAgentEngine.d.ts +16 -1
  250. package/dist/types/adapters/hosting/googleAgentEngine.d.ts.map +1 -1
  251. package/dist/types/core/Agent.d.ts +8 -1
  252. package/dist/types/core/Agent.d.ts.map +1 -1
  253. package/dist/types/core/agent/AgentBuilder.d.ts +43 -0
  254. package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
  255. package/dist/types/core/agent/buildAgentChart.d.ts +9 -0
  256. package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -1
  257. package/dist/types/core/agent/buildDynamicAgentChart.d.ts.map +1 -1
  258. package/dist/types/core/agent/coverage/absent.d.ts +105 -0
  259. package/dist/types/core/agent/coverage/absent.d.ts.map +1 -0
  260. package/dist/types/core/agent/coverage/answer.d.ts +47 -0
  261. package/dist/types/core/agent/coverage/answer.d.ts.map +1 -0
  262. package/dist/types/core/agent/coverage/evidence.d.ts +69 -0
  263. package/dist/types/core/agent/coverage/evidence.d.ts.map +1 -0
  264. package/dist/types/core/agent/coverage/index.d.ts +18 -0
  265. package/dist/types/core/agent/coverage/index.d.ts.map +1 -0
  266. package/dist/types/core/agent/coverage/items.d.ts +36 -0
  267. package/dist/types/core/agent/coverage/items.d.ts.map +1 -0
  268. package/dist/types/core/agent/coverage/ledger.d.ts +81 -0
  269. package/dist/types/core/agent/coverage/ledger.d.ts.map +1 -0
  270. package/dist/types/core/agent/coverage/read.d.ts +52 -0
  271. package/dist/types/core/agent/coverage/read.d.ts.map +1 -0
  272. package/dist/types/core/agent/coverage/types.d.ts +143 -0
  273. package/dist/types/core/agent/coverage/types.d.ts.map +1 -0
  274. package/dist/types/core/agent/evidence/evidenceIndex.d.ts +7 -0
  275. package/dist/types/core/agent/evidence/evidenceIndex.d.ts.map +1 -1
  276. package/dist/types/core/agent/stages/prepareFinal.d.ts +18 -0
  277. package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -1
  278. package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
  279. package/dist/types/core/agent/toolEffects.d.ts +2 -2
  280. package/dist/types/core/agent/types.d.ts +14 -0
  281. package/dist/types/core/agent/types.d.ts.map +1 -1
  282. package/dist/types/debug.d.ts +1 -0
  283. package/dist/types/debug.d.ts.map +1 -1
  284. package/dist/types/events/payloads.d.ts +46 -0
  285. package/dist/types/events/payloads.d.ts.map +1 -1
  286. package/dist/types/events/registry.d.ts +5 -1
  287. package/dist/types/events/registry.d.ts.map +1 -1
  288. package/dist/types/hosting/conformance/cases.d.ts +2 -1
  289. package/dist/types/hosting/conformance/cases.d.ts.map +1 -1
  290. package/dist/types/hosting/conformance/types.d.ts +7 -7
  291. package/dist/types/hosting/conformance/types.d.ts.map +1 -1
  292. package/dist/types/hosting/errors.d.ts +28 -0
  293. package/dist/types/hosting/errors.d.ts.map +1 -1
  294. package/dist/types/hosting/index.d.ts +11 -3
  295. package/dist/types/hosting/index.d.ts.map +1 -1
  296. package/dist/types/hosting/memorySessions.d.ts.map +1 -1
  297. package/dist/types/hosting/sessionRetention.d.ts +57 -0
  298. package/dist/types/hosting/sessionRetention.d.ts.map +1 -0
  299. package/dist/types/hosting/sqliteSessions.d.ts +11 -1
  300. package/dist/types/hosting/sqliteSessions.d.ts.map +1 -1
  301. package/dist/types/hosting/types.d.ts +184 -0
  302. package/dist/types/hosting/types.d.ts.map +1 -1
  303. package/dist/types/hosting-providers.d.ts +15 -11
  304. package/dist/types/hosting-providers.d.ts.map +1 -1
  305. package/dist/types/index.d.ts +1 -0
  306. package/dist/types/index.d.ts.map +1 -1
  307. package/dist/types/lib/context-bisect/arms/apply.d.ts +55 -0
  308. package/dist/types/lib/context-bisect/arms/apply.d.ts.map +1 -0
  309. package/dist/types/lib/context-bisect/arms/compare.d.ts +28 -0
  310. package/dist/types/lib/context-bisect/arms/compare.d.ts.map +1 -0
  311. package/dist/types/lib/context-bisect/arms/index.d.ts +17 -0
  312. package/dist/types/lib/context-bisect/arms/index.d.ts.map +1 -0
  313. package/dist/types/lib/context-bisect/arms/manifest.d.ts +80 -0
  314. package/dist/types/lib/context-bisect/arms/manifest.d.ts.map +1 -0
  315. package/dist/types/lib/context-bisect/arms/probe.d.ts +55 -0
  316. package/dist/types/lib/context-bisect/arms/probe.d.ts.map +1 -0
  317. package/dist/types/lib/context-bisect/arms/types.d.ts +320 -0
  318. package/dist/types/lib/context-bisect/arms/types.d.ts.map +1 -0
  319. package/dist/types/lib/context-bisect/arms/validate.d.ts +27 -0
  320. package/dist/types/lib/context-bisect/arms/validate.d.ts.map +1 -0
  321. package/dist/types/lib/context-bisect/arms/verdict.d.ts +54 -0
  322. package/dist/types/lib/context-bisect/arms/verdict.d.ts.map +1 -0
  323. package/dist/types/lib/context-bisect/index.d.ts +1 -0
  324. package/dist/types/lib/context-bisect/index.d.ts.map +1 -1
  325. package/dist/types/lib/injection-engine/index.d.ts +1 -1
  326. package/dist/types/lib/injection-engine/index.d.ts.map +1 -1
  327. package/dist/types/lib/injection-engine/skillExamples.d.ts +16 -13
  328. package/dist/types/lib/injection-engine/skillExamples.d.ts.map +1 -1
  329. package/dist/types/lib/injection-engine/skillGraph.d.ts +50 -0
  330. package/dist/types/lib/injection-engine/skillGraph.d.ts.map +1 -1
  331. package/dist/types/lib/injection-engine/skillGraphCheckup.d.ts +6 -5
  332. package/dist/types/lib/injection-engine/skillGraphCheckup.d.ts.map +1 -1
  333. package/dist/types/lib/injection-engine/skillNeverRoutes.d.ts +132 -0
  334. package/dist/types/lib/injection-engine/skillNeverRoutes.d.ts.map +1 -0
  335. package/dist/types/lib/injection-engine/skillPartition.d.ts +70 -0
  336. package/dist/types/lib/injection-engine/skillPartition.d.ts.map +1 -0
  337. package/dist/types/lib/injection-engine/skillsFromDir.d.ts +83 -3
  338. package/dist/types/lib/injection-engine/skillsFromDir.d.ts.map +1 -1
  339. package/dist/types/lib/injection-engine/skillsFromDirRoutes.d.ts +106 -0
  340. package/dist/types/lib/injection-engine/skillsFromDirRoutes.d.ts.map +1 -0
  341. package/dist/types/lib/injection-engine/startRuleClaim.d.ts +92 -0
  342. package/dist/types/lib/injection-engine/startRuleClaim.d.ts.map +1 -0
  343. package/dist/types/lib/injection-engine/toolOutcome.d.ts +12 -3
  344. package/dist/types/lib/injection-engine/toolOutcome.d.ts.map +1 -1
  345. package/package.json +1 -1
package/dist/debug.js CHANGED
@@ -24,7 +24,8 @@
24
24
  */
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.assignCostVerdicts = exports.assembleTrajectory = exports.applyAblations = exports.ablationForSuspect = exports.traceDebugAgent = exports.SelfExplainBinding = exports.SELF_EXPLAIN_MAX_EVENTS = exports.buildSelfExplainToolProvider = exports.buildSelfExplainSkill = exports.mergeInnerRuns = exports.innerRunsOf = exports.innerRunStore = exports.INNER_RUN_RECORDS = exports.DEFAULT_INNER_RUN_LIMIT = exports.openRecording = exports.traceToolpack = exports.TRACE_TOOL_NAMES = exports.TOOLPACK_HARD_CAPS = exports.NO_COMPLETED_RUN_MESSAGE = exports.lazyTraceToolpack = exports.callTraceTool = exports.structuralProximity = exports.snippetUnits = exports.semanticAlignmentStrategy = exports.scoreMargin = exports.scoreLexicalInfluence = exports.scoreInfluence = exports.scoreContrastiveInfluence = exports.ratioStrategy = exports.rankingConfidence = exports.persistence = exports.pairwiseSimilarity = exports.marginStrategy = exports.listInfluenceStrategies = exports.lexicalOverlapStrategy = exports.explainChoice = exports.attributeChoice = exports.finalAnswerSimilarity = exports.embeddingCache = exports.EmbeddingCache = exports.DEFAULT_SHORTLIST_BAND = exports.DEFAULT_PERSISTENCE_THRESHOLD = exports.DEFAULT_MARGIN_THRESHOLD = exports.DEFAULT_INFLUENCE_WEIGHTS = exports.DEFAULT_CLEAR_WINNER_RATIO = exports.DEFAULT_CLEAR_WINNER_MARGIN = exports.contentHash = exports.compositeScore = exports.averageRelevancy = exports.adaptWeights = void 0;
27
- exports.recordedChat = exports.saysWhatNotWhenRule = exports.runToolLintCli = exports.optionalParamRule = exports.MOCK_EMBEDDER_CALIBRATION = exports.formatToolCatalogReport = exports.enumInProseRule = exports.differentiationHint = exports.descriptionRule = exports.defaultStructuralRules = exports.DEFAULT_WHEN_CUES = exports.DEFAULT_WATCH_BAND = exports.DEFAULT_OMISSION_CUES = exports.DEFAULT_CONFUSABILITY_THRESHOLD = exports.confusabilityText = exports.coerceCatalog = exports.catalogFromTools = exports.analyzeToolCatalog = exports.variableToBacktrackTrace = exports.toBacktrackTrace = exports.sliceToBacktrackTrace = exports.verdictFor = exports.suspectLabel = exports.stepOutputText = exports.runRestorationProbe = exports.runAblationProbe = exports.rerunWithoutSources = exports.removableSources = exports.probeFlipped = exports.localizeContextBug = exports.llmEdgeWeigher = exports.llmCallIdsFromEvents = exports.formatContextBugReport = exports.findDroppedContext = exports.defaultSuspectClassifier = exports.defaultOutcomeComparator = exports.CONTEXT_BISECT_DEFAULTS = exports.findLoopHeads = exports.classifySuspect = exports.DEFAULT_RECENCY_DECAY = exports.traceVariable = exports.joinVariableSlice = exports.buildWriterFrameIndex = exports.walkTrajectory = exports.walkToRoot = exports.shortlistEarlyCulprits = exports.bucketByAnchors = exports.bisectCulprits = void 0;
27
+ exports.confusabilityText = exports.coerceCatalog = exports.catalogFromTools = exports.analyzeToolCatalog = exports.variableToBacktrackTrace = exports.toBacktrackTrace = exports.sliceToBacktrackTrace = exports.verdictForArm = exports.validateStrategyArms = exports.scoreArmRuns = exports.RUN_CONFIGURED_EVENT = exports.nullBandFrom = exports.matchArm = exports.manifestFromEvents = exports.declaredFacetCount = exports.compareStrategyArms = exports.collectArmRuns = exports.checkArmApplied = exports.checkArmApplication = exports.armLabel = exports.armFacetsFromManifest = exports.armConfigKey = exports.applyArm = exports.verdictFor = exports.suspectLabel = exports.stepOutputText = exports.runRestorationProbe = exports.runAblationProbe = exports.rerunWithoutSources = exports.removableSources = exports.probeFlipped = exports.localizeContextBug = exports.llmEdgeWeigher = exports.llmCallIdsFromEvents = exports.formatContextBugReport = exports.findDroppedContext = exports.defaultSuspectClassifier = exports.defaultOutcomeComparator = exports.CONTEXT_BISECT_DEFAULTS = exports.findLoopHeads = exports.classifySuspect = exports.DEFAULT_RECENCY_DECAY = exports.traceVariable = exports.joinVariableSlice = exports.buildWriterFrameIndex = exports.walkTrajectory = exports.walkToRoot = exports.shortlistEarlyCulprits = exports.bucketByAnchors = exports.bisectCulprits = void 0;
28
+ exports.recordedChat = exports.saysWhatNotWhenRule = exports.runToolLintCli = exports.optionalParamRule = exports.MOCK_EMBEDDER_CALIBRATION = exports.formatToolCatalogReport = exports.enumInProseRule = exports.differentiationHint = exports.descriptionRule = exports.defaultStructuralRules = exports.DEFAULT_WHEN_CUES = exports.DEFAULT_WATCH_BAND = exports.DEFAULT_OMISSION_CUES = exports.DEFAULT_CONFUSABILITY_THRESHOLD = void 0;
28
29
  // influence-core — the ONE embedding-based scoring engine (RFC-002/003
29
30
  // block D6). Not a recorder: pure, embedder-injected scoring functions
30
31
  // + the shared bounded embedding cache. Honest claim: every score is an
@@ -135,13 +136,36 @@ Object.defineProperty(exports, "runRestorationProbe", { enumerable: true, get: f
135
136
  Object.defineProperty(exports, "stepOutputText", { enumerable: true, get: function () { return index_js_6.stepOutputText; } });
136
137
  Object.defineProperty(exports, "suspectLabel", { enumerable: true, get: function () { return index_js_6.suspectLabel; } });
137
138
  Object.defineProperty(exports, "verdictFor", { enumerable: true, get: function () { return index_js_6.verdictFor; } });
139
+ // Strategy arms — the SUBSTITUTION half of the counterfactual engine
140
+ // ("scorer A vs scorer B", "topK vs a re-ranker"). Deliberately a SIBLING of
141
+ // `AblationSpec` rather than a fifth arm on it: ablation removes, an arm
142
+ // replaces, and the union feeds a subset search substitutions do not compose
143
+ // under. Wired to 9.41.0's run manifest, so a run says which arm it belonged to
144
+ // instead of the experimenter asserting it. See lib/context-bisect/arms/README.md.
145
+ var index_js_7 = require("./lib/context-bisect/index.js");
146
+ Object.defineProperty(exports, "applyArm", { enumerable: true, get: function () { return index_js_7.applyArm; } });
147
+ Object.defineProperty(exports, "armConfigKey", { enumerable: true, get: function () { return index_js_7.armConfigKey; } });
148
+ Object.defineProperty(exports, "armFacetsFromManifest", { enumerable: true, get: function () { return index_js_7.armFacetsFromManifest; } });
149
+ Object.defineProperty(exports, "armLabel", { enumerable: true, get: function () { return index_js_7.armLabel; } });
150
+ Object.defineProperty(exports, "checkArmApplication", { enumerable: true, get: function () { return index_js_7.checkArmApplication; } });
151
+ Object.defineProperty(exports, "checkArmApplied", { enumerable: true, get: function () { return index_js_7.checkArmApplied; } });
152
+ Object.defineProperty(exports, "collectArmRuns", { enumerable: true, get: function () { return index_js_7.collectArmRuns; } });
153
+ Object.defineProperty(exports, "compareStrategyArms", { enumerable: true, get: function () { return index_js_7.compareStrategyArms; } });
154
+ Object.defineProperty(exports, "declaredFacetCount", { enumerable: true, get: function () { return index_js_7.declaredFacetCount; } });
155
+ Object.defineProperty(exports, "manifestFromEvents", { enumerable: true, get: function () { return index_js_7.manifestFromEvents; } });
156
+ Object.defineProperty(exports, "matchArm", { enumerable: true, get: function () { return index_js_7.matchArm; } });
157
+ Object.defineProperty(exports, "nullBandFrom", { enumerable: true, get: function () { return index_js_7.nullBandFrom; } });
158
+ Object.defineProperty(exports, "RUN_CONFIGURED_EVENT", { enumerable: true, get: function () { return index_js_7.RUN_CONFIGURED_EVENT; } });
159
+ Object.defineProperty(exports, "scoreArmRuns", { enumerable: true, get: function () { return index_js_7.scoreArmRuns; } });
160
+ Object.defineProperty(exports, "validateStrategyArms", { enumerable: true, get: function () { return index_js_7.validateStrategyArms; } });
161
+ Object.defineProperty(exports, "verdictForArm", { enumerable: true, get: function () { return index_js_7.verdictForArm; } });
138
162
  // BacktrackTrace serializer — feeds agentThinkingUI's <BacktrackView>
139
163
  // (the "why?" board) straight off a localizer report. Pure mapping, no
140
164
  // UI dependency; the interfaces mirror agentthinkingui's contract.
141
- var index_js_7 = require("./lib/context-bisect/index.js");
142
- Object.defineProperty(exports, "sliceToBacktrackTrace", { enumerable: true, get: function () { return index_js_7.sliceToBacktrackTrace; } });
143
- Object.defineProperty(exports, "toBacktrackTrace", { enumerable: true, get: function () { return index_js_7.toBacktrackTrace; } });
144
- Object.defineProperty(exports, "variableToBacktrackTrace", { enumerable: true, get: function () { return index_js_7.variableToBacktrackTrace; } });
165
+ var index_js_8 = require("./lib/context-bisect/index.js");
166
+ Object.defineProperty(exports, "sliceToBacktrackTrace", { enumerable: true, get: function () { return index_js_8.sliceToBacktrackTrace; } });
167
+ Object.defineProperty(exports, "toBacktrackTrace", { enumerable: true, get: function () { return index_js_8.toBacktrackTrace; } });
168
+ Object.defineProperty(exports, "variableToBacktrackTrace", { enumerable: true, get: function () { return index_js_8.variableToBacktrackTrace; } });
145
169
  // Tool-catalog confusability lint (RFC-002 tier 1, C1–C3) — build-time,
146
170
  // CI-gateable, framework-agnostic: plain { name, description?, inputSchema? }
147
171
  // tools in (OpenAI/Anthropic/MCP lists coerce via coerceCatalog; the
@@ -149,24 +173,24 @@ Object.defineProperty(exports, "variableToBacktrackTrace", { enumerable: true, g
149
173
  // out. Pluggable structural rule pack; thresholds + embedder consumer-
150
174
  // injected with our defaults. Bin: `agentfootprint-lint-tools`.
151
175
  // Front door: docs/guides/tool-catalog-lint.md.
152
- var index_js_8 = require("./lib/tool-lint/index.js");
153
- Object.defineProperty(exports, "analyzeToolCatalog", { enumerable: true, get: function () { return index_js_8.analyzeToolCatalog; } });
154
- Object.defineProperty(exports, "catalogFromTools", { enumerable: true, get: function () { return index_js_8.catalogFromTools; } });
155
- Object.defineProperty(exports, "coerceCatalog", { enumerable: true, get: function () { return index_js_8.coerceCatalog; } });
156
- Object.defineProperty(exports, "confusabilityText", { enumerable: true, get: function () { return index_js_8.confusabilityText; } });
157
- Object.defineProperty(exports, "DEFAULT_CONFUSABILITY_THRESHOLD", { enumerable: true, get: function () { return index_js_8.DEFAULT_CONFUSABILITY_THRESHOLD; } });
158
- Object.defineProperty(exports, "DEFAULT_OMISSION_CUES", { enumerable: true, get: function () { return index_js_8.DEFAULT_OMISSION_CUES; } });
159
- Object.defineProperty(exports, "DEFAULT_WATCH_BAND", { enumerable: true, get: function () { return index_js_8.DEFAULT_WATCH_BAND; } });
160
- Object.defineProperty(exports, "DEFAULT_WHEN_CUES", { enumerable: true, get: function () { return index_js_8.DEFAULT_WHEN_CUES; } });
161
- Object.defineProperty(exports, "defaultStructuralRules", { enumerable: true, get: function () { return index_js_8.defaultStructuralRules; } });
162
- Object.defineProperty(exports, "descriptionRule", { enumerable: true, get: function () { return index_js_8.descriptionRule; } });
163
- Object.defineProperty(exports, "differentiationHint", { enumerable: true, get: function () { return index_js_8.differentiationHint; } });
164
- Object.defineProperty(exports, "enumInProseRule", { enumerable: true, get: function () { return index_js_8.enumInProseRule; } });
165
- Object.defineProperty(exports, "formatToolCatalogReport", { enumerable: true, get: function () { return index_js_8.formatToolCatalogReport; } });
166
- Object.defineProperty(exports, "MOCK_EMBEDDER_CALIBRATION", { enumerable: true, get: function () { return index_js_8.MOCK_EMBEDDER_CALIBRATION; } });
167
- Object.defineProperty(exports, "optionalParamRule", { enumerable: true, get: function () { return index_js_8.optionalParamRule; } });
168
- Object.defineProperty(exports, "runToolLintCli", { enumerable: true, get: function () { return index_js_8.runToolLintCli; } });
169
- Object.defineProperty(exports, "saysWhatNotWhenRule", { enumerable: true, get: function () { return index_js_8.saysWhatNotWhenRule; } });
176
+ var index_js_9 = require("./lib/tool-lint/index.js");
177
+ Object.defineProperty(exports, "analyzeToolCatalog", { enumerable: true, get: function () { return index_js_9.analyzeToolCatalog; } });
178
+ Object.defineProperty(exports, "catalogFromTools", { enumerable: true, get: function () { return index_js_9.catalogFromTools; } });
179
+ Object.defineProperty(exports, "coerceCatalog", { enumerable: true, get: function () { return index_js_9.coerceCatalog; } });
180
+ Object.defineProperty(exports, "confusabilityText", { enumerable: true, get: function () { return index_js_9.confusabilityText; } });
181
+ Object.defineProperty(exports, "DEFAULT_CONFUSABILITY_THRESHOLD", { enumerable: true, get: function () { return index_js_9.DEFAULT_CONFUSABILITY_THRESHOLD; } });
182
+ Object.defineProperty(exports, "DEFAULT_OMISSION_CUES", { enumerable: true, get: function () { return index_js_9.DEFAULT_OMISSION_CUES; } });
183
+ Object.defineProperty(exports, "DEFAULT_WATCH_BAND", { enumerable: true, get: function () { return index_js_9.DEFAULT_WATCH_BAND; } });
184
+ Object.defineProperty(exports, "DEFAULT_WHEN_CUES", { enumerable: true, get: function () { return index_js_9.DEFAULT_WHEN_CUES; } });
185
+ Object.defineProperty(exports, "defaultStructuralRules", { enumerable: true, get: function () { return index_js_9.defaultStructuralRules; } });
186
+ Object.defineProperty(exports, "descriptionRule", { enumerable: true, get: function () { return index_js_9.descriptionRule; } });
187
+ Object.defineProperty(exports, "differentiationHint", { enumerable: true, get: function () { return index_js_9.differentiationHint; } });
188
+ Object.defineProperty(exports, "enumInProseRule", { enumerable: true, get: function () { return index_js_9.enumInProseRule; } });
189
+ Object.defineProperty(exports, "formatToolCatalogReport", { enumerable: true, get: function () { return index_js_9.formatToolCatalogReport; } });
190
+ Object.defineProperty(exports, "MOCK_EMBEDDER_CALIBRATION", { enumerable: true, get: function () { return index_js_9.MOCK_EMBEDDER_CALIBRATION; } });
191
+ Object.defineProperty(exports, "optionalParamRule", { enumerable: true, get: function () { return index_js_9.optionalParamRule; } });
192
+ Object.defineProperty(exports, "runToolLintCli", { enumerable: true, get: function () { return index_js_9.runToolLintCli; } });
193
+ Object.defineProperty(exports, "saysWhatNotWhenRule", { enumerable: true, get: function () { return index_js_9.saysWhatNotWhenRule; } });
170
194
  // recorded-chat — the session-scoped turn recorder. Wraps a consumer agent
171
195
  // factory into a recorded conversation: send() freezes each turn's evidence,
172
196
  // reason(k)/rerunTurn(k)/fork(k) are the per-turn transparency loop. Absorbs
@@ -174,6 +198,6 @@ Object.defineProperty(exports, "saysWhatNotWhenRule", { enumerable: true, get: f
174
198
  // threading, same-factory runner derivation) while COMPOSING with the loop
175
199
  // above (localizeContextBug + rerunWithoutSources returned UNMODIFIED), never
176
200
  // duplicating it. Branch, never rewrite.
177
- var index_js_9 = require("./lib/recorded-chat/index.js");
178
- Object.defineProperty(exports, "recordedChat", { enumerable: true, get: function () { return index_js_9.recordedChat; } });
201
+ var index_js_10 = require("./lib/recorded-chat/index.js");
202
+ Object.defineProperty(exports, "recordedChat", { enumerable: true, get: function () { return index_js_10.recordedChat; } });
179
203
  //# sourceMappingURL=debug.js.map
package/dist/debug.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"debug.js","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;AAEH,uEAAuE;AACvE,uEAAuE;AACvE,wEAAwE;AACxE,wEAAwE;AACxE,4BAA4B;AAC5B,0DA8DuC;AA7DrC,wGAAA,YAAY,OAAA;AACZ,4GAAA,gBAAgB,OAAA;AAChB,0GAAA,cAAc,OAAA;AACd,uGAAA,WAAW,OAAA;AACX,uHAAA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kB,OAAA;AAClB,8GAAA,kBAAkB,OAAA;AAClB,oGAAA,QAAQ,OAAA;AACR,wGAAA,YAAY,OAAA;AACZ,gHAAA,oBAAoB,OAAA;AACpB,wGAAA,YAAY,OAAA;AACZ,gHAAA,oBAAoB,OAAA;AACpB,yGAAA,aAAa,OAAA;AAiBf,sEAAsE;AACtE,uEAAuE;AACvE,mEAAmE;AACnE,0DAYuC;AAXrC,iHAAA,qBAAqB,OAAA;AACrB,4GAAA,gBAAgB,OAAA;AAChB,oHAAA,wBAAwB,OAAA;AAU1B,wEAAwE;AACxE,8EAA8E;AAC9E,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,gEAAgE;AAChE,gDAAgD;AAChD,qDAgCkC;AA/BhC,8GAAA,kBAAkB,OAAA;AAClB,4GAAA,gBAAgB,OAAA;AAChB,yGAAA,aAAa,OAAA;AACb,6GAAA,iBAAiB,OAAA;AACjB,2HAAA,+BAA+B,OAAA;AAC/B,iHAAA,qBAAqB,OAAA;AACrB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,kHAAA,sBAAsB,OAAA;AACtB,2GAAA,eAAe,OAAA;AACf,+GAAA,mBAAmB,OAAA;AACnB,2GAAA,eAAe,OAAA;AACf,mHAAA,uBAAuB,OAAA;AACvB,qHAAA,yBAAyB,OAAA;AACzB,6GAAA,iBAAiB,OAAA;AACjB,0GAAA,cAAc,OAAA;AACd,+GAAA,mBAAmB,OAAA;AAgBrB,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,uEAAuE;AACvE,2EAA2E;AAC3E,8EAA8E;AAC9E,yCAAyC;AACzC,0DAasC;AAZpC,yGAAA,YAAY,OAAA"}
@@ -320,6 +320,14 @@ export type AgentCoreSessionsOptions = AgentCoreFileSessionsOptions | AgentCoreM
320
320
  * refused by name too (`UnreadableEnvelopeError`), never answered with a fresh
321
321
  * start. Only a session that was never written hydrates as `undefined`.
322
322
  *
323
+ * **The two modes differ on retention (9.42.0), and the difference is
324
+ * reported rather than smoothed over.** `'session-storage'` owns its file, so
325
+ * it implements the port's optional `retention()` as a sweep you call.
326
+ * `'memory'` appends events to a service whose expiry belongs to the memory
327
+ * resource an operator configured, and this shim has no delete on its surface
328
+ * — so it implements no retention member at all, and `sessionRetention()`
329
+ * refuses BY NAME rather than reporting a sweep that would delete nothing.
330
+ *
323
331
  * @example Survive a stop/resume, no AWS SDK required
324
332
  * agentCoreSessions({ store: 'session-storage' });
325
333
  *
@@ -74,6 +74,7 @@ import { artifactWireBody, readArtifactWireOp } from '../../hosting/artifactWire
74
74
  import { readSessionWireOp, sessionWireBody } from '../../hosting/sessionWire.js';
75
75
  import { checkEnvelope } from '../../hosting/envelope.js';
76
76
  import { headerValue, httpHost } from '../../hosting/httpHost.js';
77
+ import { DEFAULT_SWEEP_LIMIT } from '../../hosting/types.js';
77
78
  import { lazyRequire } from '../../lib/lazyRequire.js';
78
79
  // ─── The runtime host ────────────────────────────────────────────────
79
80
  const HOST_NAME = 'agentCoreRuntimeHost';
@@ -439,6 +440,14 @@ export const DEFAULT_SESSION_STORAGE_PATH = '/tmp/agentcore-session';
439
440
  * refused by name too (`UnreadableEnvelopeError`), never answered with a fresh
440
441
  * start. Only a session that was never written hydrates as `undefined`.
441
442
  *
443
+ * **The two modes differ on retention (9.42.0), and the difference is
444
+ * reported rather than smoothed over.** `'session-storage'` owns its file, so
445
+ * it implements the port's optional `retention()` as a sweep you call.
446
+ * `'memory'` appends events to a service whose expiry belongs to the memory
447
+ * resource an operator configured, and this shim has no delete on its surface
448
+ * — so it implements no retention member at all, and `sessionRetention()`
449
+ * refuses BY NAME rather than reporting a sweep that would delete nothing.
450
+ *
442
451
  * @example Survive a stop/resume, no AWS SDK required
443
452
  * agentCoreSessions({ store: 'session-storage' });
444
453
  *
@@ -450,6 +459,17 @@ export function agentCoreSessions(options) {
450
459
  }
451
460
  function fileSessions(options) {
452
461
  const path = options.path ?? DEFAULT_SESSION_STORAGE_PATH;
462
+ /** Write the whole file the way `persist` does — one temp file, one rename. */
463
+ async function writeFileAtomically(next) {
464
+ const { writeFile, rename, mkdir } = await import('node:fs/promises');
465
+ const { dirname } = await import('node:path');
466
+ await mkdir(dirname(path), { recursive: true }).catch(() => undefined);
467
+ // Write-then-rename: a container killed mid-write leaves the previous
468
+ // conversations intact rather than a truncated file that refuses to parse.
469
+ const temporary = `${path}.${process.pid}.tmp`;
470
+ await writeFile(temporary, JSON.stringify(next), 'utf8');
471
+ await rename(temporary, path);
472
+ }
453
473
  async function readFile() {
454
474
  const { readFile: read } = await import('node:fs/promises');
455
475
  let raw;
@@ -488,20 +508,61 @@ function fileSessions(options) {
488
508
  return checkEnvelope(stored, sessionId);
489
509
  },
490
510
  async persist(sessionId, envelope) {
491
- const { writeFile, rename, mkdir } = await import('node:fs/promises');
492
- const { dirname } = await import('node:path');
493
511
  const file = await readFile();
494
- const next = {
512
+ await writeFileAtomically({
495
513
  version: 1,
496
514
  sessions: { ...file.sessions, [sessionId]: envelope },
497
- };
498
- await mkdir(dirname(path), { recursive: true }).catch(() => undefined);
499
- // Write-then-rename: a container killed mid-write leaves the previous
500
- // conversation intact rather than a truncated file that refuses to parse.
501
- const temporary = `${path}.${process.pid}.tmp`;
502
- await writeFile(temporary, JSON.stringify(next), 'utf8');
503
- await rename(temporary, path);
515
+ });
504
516
  },
517
+ // ── Retention (9.42.0) ──────────────────────────────────────────────
518
+ //
519
+ // `'this-store'`: the conversations are one JSON file this container owns,
520
+ // and nothing else is going to trim it. Worth having even though the
521
+ // runtime reclaims a session's storage when the session ends — one file
522
+ // holds every session this container has seen, so a long-lived container
523
+ // accumulates conversations that ended hours ago, and `/tmp` filling up
524
+ // inside a container is a failure that arrives as something else entirely.
525
+ //
526
+ // The sibling `{ store: 'memory' }` mode implements NO retention member,
527
+ // and that absence is deliberate rather than unfinished: it appends events
528
+ // to a service whose expiry belongs to the memory resource an operator
529
+ // configured, and this shim's surface has no delete on it. Claiming a
530
+ // sweep it cannot perform, or a backend policy nobody here has verified,
531
+ // would be worse than the refusal an absent member produces.
532
+ retention: () => ({
533
+ deletedBy: 'this-store',
534
+ forgetOlderThan: async (before, sweepOptions) => {
535
+ const limit = Math.max(1, Math.floor(sweepOptions?.limit ?? DEFAULT_SWEEP_LIMIT));
536
+ const file = await readFile();
537
+ const kept = {};
538
+ let forgotten = 0;
539
+ let more = false;
540
+ for (const [sessionId, envelope] of Object.entries(file.sessions)) {
541
+ // A row this store cannot read the timestamp of is KEPT. A sweep
542
+ // deletes on evidence; "I could not tell how old this is" is not
543
+ // evidence, and the one mistake a retention job must not make is
544
+ // deleting a conversation it did not understand.
545
+ const savedAt = envelope?.savedAt;
546
+ const expired = typeof savedAt === 'number' && savedAt < before;
547
+ if (!expired) {
548
+ kept[sessionId] = envelope;
549
+ }
550
+ else if (forgotten >= limit) {
551
+ kept[sessionId] = envelope;
552
+ more = true;
553
+ }
554
+ else {
555
+ forgotten += 1;
556
+ }
557
+ }
558
+ // One write, and only when something actually goes: a sweep that found
559
+ // nothing must not rewrite the file every minute, because the rename
560
+ // is the moment a crash can cost a turn.
561
+ if (forgotten > 0)
562
+ await writeFileAtomically({ version: 1, sessions: kept });
563
+ return { forgotten, more };
564
+ },
565
+ }),
505
566
  };
506
567
  }
507
568
  // ─── 'memory': one AgentCore Memory event per persist ────────────────
@@ -1 +1 @@
1
- {"version":3,"file":"agentcore.js","sourceRoot":"","sources":["../../../../src/adapters/hosting/agentcore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAA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O;gBACP,SAAS;gBACT,eAAe,EAAE,IAAI;gBACrB,GAAG,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,CAAC;aAChD,CAAC,CAA+E,CAAC;YAClF,MAAM,MAAM,GAA4B,CAAC,MAAM,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;gBAC7E,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,EAAE;gBAC5B,QAAQ,EAAE,mBAAmB,CAAC,KAAK,CAAC,OAAO,CAAC;aAC7C,CAAC,CAAC,CAAC;YACJ,OAAO,EAAE,MAAM,EAAE,CAAC;QACpB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -11,9 +11,9 @@
11
11
  * containers, one conversation" answer Google has.
12
12
  *
13
13
  * ── The shape, said plainly ─────────────────────────────────────────────────
14
- * One collection. One document per session. Six fields:
14
+ * One collection. One document per session. Seven fields:
15
15
  *
16
- * sessionId · format · savedAt · envelope · owner · messageCount
16
+ * sessionId · format · savedAt · envelope · owner · messageCount · expiresAt
17
17
  *
18
18
  * That is the SQLite table, moved. It is deliberately the same shape, because
19
19
  * the two stores implement the same port under the same laws, and a reader who
@@ -95,6 +95,45 @@
95
95
  * in, and names those fields rather than restating the service's message — see
96
96
  * {@link firestoreFailure} for why no Google text is ever echoed here.
97
97
  *
98
+ * ── Retention: a SECOND timestamp, not a converted one (9.42.0) ─────────────
99
+ * A native Firestore TTL policy deletes a document when a field of type
100
+ * **Timestamp** is in the past. `savedAt` is a NUMBER — epoch milliseconds —
101
+ * so until this release an operator could not point a policy at this
102
+ * collection at all without a library change. The fix is a second field,
103
+ * `expiresAt`, written as a `Date` (the client stores one as a Timestamp) on
104
+ * every persist, holding `savedAt + expireAfterMs`. Give the store no
105
+ * `expireAfterMs` and the field is written as `null`, which a TTL policy
106
+ * ignores, and nothing about this release changes.
107
+ *
108
+ * **`savedAt` was NOT converted, and that is the load-bearing decision.** It is
109
+ * the ordering key of the composite index, the field the listing sorts by, and
110
+ * the first half of every cursor this store has ever minted (`<savedAt>:<docId>`,
111
+ * parsed with `parseFloat` and handed back to `startAfter` as a number).
112
+ * Converting it would have meant a new index, a new cursor grammar, and every
113
+ * pagination token issued by an earlier release becoming unreadable — but the
114
+ * decisive one is quieter: **Firestore's value ordering sorts by TYPE first.**
115
+ * Every number sorts before every timestamp. A collection holding old
116
+ * number-`savedAt` documents beside new timestamp-`savedAt` ones would list
117
+ * them in two blocks, all of one type then all of the other, with a person's
118
+ * conversations silently out of order by the type of the field rather than by
119
+ * when they were written. A second field costs one small write per turn and
120
+ * has no such shadow.
121
+ *
122
+ * So the migration consequence, plainly:
123
+ *
124
+ * • **Every document already stored stays readable and listable.** Nothing
125
+ * about `savedAt`, the index, the cursor or the query changed, and a
126
+ * document written by 9.33–9.41 is read by this release unchanged.
127
+ * • **Old documents do not start expiring.** They carry no `expiresAt`, and
128
+ * a TTL policy ignores a document whose field is missing. A conversation
129
+ * that is still being used gains one on its next turn; a conversation
130
+ * nobody ever writes to again keeps living. If those matter, delete them
131
+ * by hand once (a query on `savedAt` plus `forget`, or a `gcloud`
132
+ * bulk-delete) — this adapter will not walk your collection behind your
133
+ * back.
134
+ * • **The policy is still yours to create.** `retention().enableWith` prints
135
+ * the exact command with your collection and database in it.
136
+ *
98
137
  * ── The ceiling, since a store should name its own ──────────────────────────
99
138
  * A Firestore document is capped at 1 MiB. A conversation whose stored envelope
100
139
  * approaches that is refused BY NAME before the write
@@ -122,8 +161,29 @@
122
161
  * for it. So the write is a transaction.
123
162
  *
124
163
  * ── How much of this is verified ────────────────────────────────────────────
125
- * **Contract-shaped and tested. NOT field-validated.** Nothing here has been run
126
- * against a live Firestore by this repository.
164
+ * **Field-validated except the ownership refusal (2026-08).** An independent
165
+ * field trial ran THIS adapter against a real Firestore and exercised seven of
166
+ * its eight areas live: the round trip, the server-side indexed listing with
167
+ * its document-name tiebreak and real cursor, the missing-index refusal, the
168
+ * hashed document name, the size ceiling, ownership derived from the envelope,
169
+ * and `forget`.
170
+ *
171
+ * The eighth is named because under-claiming and over-claiming are the same
172
+ * defect: **the refusal of a turn signed by somebody else** — the
173
+ * `resolveSessionOwner` conflict this file's `persist` raises out of the
174
+ * transaction — was NOT exercised, because it did not exist when the trial
175
+ * ran. It is held by tests here, including the contested-write case of the
176
+ * shared conformance battery, and by nothing in the field. Two writers racing
177
+ * for one fresh session against a real Firestore, with the real client's
178
+ * transaction retry underneath, is exactly the shape a double models by
179
+ * assumption; the sibling Vertex adapter's equivalent was found in the field
180
+ * and not in a test suite.
181
+ *
182
+ * This section said "NOT field-validated. Nothing here has been run against a
183
+ * live Firestore" for two releases after that stopped being true. Under-claiming
184
+ * is the safe direction and it is still the same defect class the trials keep
185
+ * reporting: a status that does not track the evidence is a status nobody can
186
+ * use, whichever way it is wrong.
127
187
  *
128
188
  * The pin is the `firestoreSessions` row of `GOOGLE_SURFACE_PINS` in
129
189
  * `test/adapters/google/googlePin.ts`, asserted by
@@ -148,7 +208,8 @@
148
208
  * everywhere. That the row spells those members the way Google does is held by a
149
209
  * hand check against a real install, not by a test that runs here.
150
210
  *
151
- * The DESIGN is informed by an independent field trial of a different Firestore
211
+ * The DESIGN was informed, before any of that, by an EARLIER and separate trial
212
+ * of a DIFFERENT Firestore
152
213
  * session adapter, which ran against a real Firestore and passed eight ownership
153
214
  * and history checks — and whose own report named the defect this adapter does
154
215
  * not reproduce: that adapter read every document for one owner, sorted them in
@@ -158,7 +219,7 @@
158
219
  * real service; it proves nothing about this file's query, cursor, transaction
159
220
  * or index, because that adapter had none of them.
160
221
  */
161
- import type { SessionLifecycle } from '../../hosting/types.js';
222
+ import type { SessionExpiryPolicy, SessionLifecycle } from '../../hosting/types.js';
162
223
  /** One document as it came back. `firestore.d.ts` line 1605. */
163
224
  export interface FirestoreDocumentSnapshotLike {
164
225
  /** A PROPERTY, not a method — `readonly exists: boolean`. */
@@ -282,6 +343,39 @@ export interface FirestoreSessionsOptions {
282
343
  * still loading the module?" is a fair question to have answered here.
283
344
  */
284
345
  readonly firestore?: FirestoreLike;
346
+ /**
347
+ * How long after its last turn a conversation should expire, in
348
+ * milliseconds. Omit and nothing expires (9.42.0).
349
+ *
350
+ * Setting it makes every write stamp {@link EXPIRES_AT_FIELD} —
351
+ * `savedAt + expireAfterMs`, as a timestamp — which is the field a **native
352
+ * Firestore TTL policy** reads. The policy itself is yours to enable, once,
353
+ * with the command {@link FirestoreSessions.retention} hands you; this store
354
+ * writes what it reads and never deletes a document on a clock of its own.
355
+ * Both halves are needed and neither is silent about the other: with no
356
+ * policy the field is inert data, and with no `expireAfterMs` the policy has
357
+ * nothing to act on.
358
+ *
359
+ * **The clock is the conversation's own `savedAt`, not this process's.** So
360
+ * the expiry is IDLE time: every turn pushes it out, and a conversation dies
361
+ * `expireAfterMs` after somebody last spoke, which is what a session
362
+ * retention rule almost always means. It also makes the stamp a pure
363
+ * function of the envelope — the same conversation stamps the same instant
364
+ * on any machine, whatever its clock says.
365
+ *
366
+ * **It does not reach backwards.** Documents written before this was
367
+ * configured carry no expiry field, and a TTL policy ignores a document
368
+ * whose field is missing — so old conversations expire only once they are
369
+ * written again. See the module header for what to do about the ones that
370
+ * never will be.
371
+ *
372
+ * Named `expireAfterMs` rather than `ttlMs` deliberately, even though the
373
+ * artifact stores in this package spell their dial the second way: theirs is
374
+ * stamped once at mint and measured from creation, and this one is measured
375
+ * from the LAST turn and moves on every write. One word for two clocks would
376
+ * be the cheaper name and the more expensive mistake.
377
+ */
378
+ readonly expireAfterMs?: number;
285
379
  /**
286
380
  * @internal Test seam only — the `@google-cloud/firestore` module, injected.
287
381
  * Lets the suite exercise every path (including the refusals) without a
@@ -292,6 +386,34 @@ export interface FirestoreSessionsOptions {
292
386
  }
293
387
  /** Where sessions live when the caller names no collection. */
294
388
  export declare const DEFAULT_SESSION_COLLECTION = "agentfootprint_sessions";
389
+ /**
390
+ * The document field a native TTL policy is configured against (9.42.0).
391
+ *
392
+ * A SECOND field beside `savedAt`, never a change to it — see the module
393
+ * header for why converting the ordering key would have re-sorted every
394
+ * conversation already in the collection.
395
+ *
396
+ * Exported because an operator has to type this name into the console or the
397
+ * `gcloud` line, and a field name that lives only inside a string literal is a
398
+ * field name somebody will mistype at 2am.
399
+ */
400
+ export declare const EXPIRES_AT_FIELD = "expiresAt";
401
+ /**
402
+ * The one step that turns the TTL policy on, with this store's own collection
403
+ * and database already in it.
404
+ *
405
+ * One spelling, shared by the retention answer and the documentation that
406
+ * quotes it, for the same reason the missing-index refusal prints the whole
407
+ * `gcloud` line: the person reading it can fix this in sixty seconds, and only
408
+ * if nobody makes them go and look up the flags first.
409
+ *
410
+ * `--database` is always printed, including for `(default)`, where gcloud
411
+ * would have assumed it — a project may hold several databases, and a policy
412
+ * created on the wrong one leaves conversations living forever with nothing to
413
+ * suggest why. Single-quoted, because `(default)` is bare parentheses and a
414
+ * syntax error in every shell this will be pasted into.
415
+ */
416
+ export declare function ttlPolicyCommand(collection: string, database?: string): string;
295
417
  /**
296
418
  * Firestore's hard ceiling on one document, in bytes. Not ours — the service's.
297
419
  *
@@ -321,6 +443,21 @@ export interface FirestoreSessions extends SessionLifecycle {
321
443
  readonly collection: string;
322
444
  /** Forget one session. A session that was never there is not an error. */
323
445
  forget(sessionId: string): Promise<void>;
446
+ /**
447
+ * How conversations here stop existing: **the backend does it**, on a native
448
+ * TTL policy an operator enables once, against {@link EXPIRES_AT_FIELD}
449
+ * (9.42.0).
450
+ *
451
+ * Narrowed from the port's optional member to a required one, and to the one
452
+ * arm this store can be: a caller holding a `FirestoreSessions` needs no
453
+ * feature check and no branch, and gets a compile error rather than a
454
+ * runtime surprise if they reach for a sweep that does not exist here.
455
+ *
456
+ * `active` says whether this store was built with `expireAfterMs` and is
457
+ * therefore stamping anything; `enableWith` is the exact command, with this
458
+ * store's collection and database already filled in.
459
+ */
460
+ retention(): SessionExpiryPolicy;
324
461
  /**
325
462
  * The document name one session id maps to — the sha-256 above.
326
463
  *
@@ -401,20 +538,31 @@ export declare class EnvelopeTooLargeError extends Error {
401
538
  * Conversations in Firestore — a fleet-shared session store with no instance to
402
539
  * run.
403
540
  *
404
- * **Status: contract-shaped and tested, NOT field-validated.** Every SDK member
405
- * it calls was read off a real install of `@google-cloud/firestore` 9.0.0 and
406
- * hand-verified there; the test that re-checks those names against the real
407
- * package SKIPS in this repository, because the package is deliberately not
408
- * installed here. What runs in CI is the dispatch pin. No test here pretends to
409
- * have reached Google. See the module header for the full account, and for what
410
- * a field trial of a DIFFERENT adapter did and did not establish about this
411
- * design.
541
+ * **Status: field-validated except the ownership refusal (2026-08).** An
542
+ * independent field trial ran this adapter against a real Firestore and
543
+ * exercised seven of its eight areas live — round trip, indexed and cursored
544
+ * listing, the missing-index refusal, the hashed document name, the size
545
+ * ceiling, derived ownership and `forget`. The eighth, the refusal of a turn
546
+ * signed by somebody ELSE, was added after the trial and is held by tests
547
+ * here and by nothing in the field. Every SDK member it calls was read off a
548
+ * real install of `@google-cloud/firestore` 9.0.0 and hand-verified there; the
549
+ * test that re-checks those names against the real package SKIPS in this
550
+ * repository, because the package is deliberately not installed here. What
551
+ * runs in CI is the dispatch pin. See the module header for the full account.
412
552
  *
413
553
  * @throws FirestoreIndexMissingError from `listByUser` until the composite index
414
554
  * exists — see the module header for the exact index.
415
555
  * @throws EnvelopeTooLargeError from `persist` for a conversation above
416
556
  * {@link FIRESTORE_MAX_ENVELOPE_BYTES}. Never truncated.
417
557
  *
558
+ * @example Conversations that expire 30 days after their last turn
559
+ * const sessions = firestoreSessions({
560
+ * project: 'my-project',
561
+ * expireAfterMs: 30 * 24 * 60 * 60 * 1000,
562
+ * });
563
+ * // Then, ONCE, as an operator — the store prints the exact command:
564
+ * console.log(sessions.retention().enableWith);
565
+ *
418
566
  * @example A standing agent whose conversations are shared across instances
419
567
  * import { standingAgent, nodeHost } from 'agentfootprint/hosting';
420
568
  * import { firestoreSessions } from 'agentfootprint/hosting';