@oscharko-dev/keiko 1.0.4 → 1.1.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 (929) hide show
  1. package/README.md +11 -1
  2. package/dist/ui/csp-hashes.json +6 -6
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +16 -14
  5. package/dist/ui/static/__next._full.txt +21 -20
  6. package/dist/ui/static/__next._tree.txt +2 -2
  7. package/dist/ui/static/_next/static/chunks/000t9p2ysi3dv.css +1 -0
  8. package/dist/ui/static/_next/static/chunks/01_gc9m97_vw5.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/02p2_qr2a9511.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/02ug3u_si269z.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/03deeo56ud39g.js +1 -0
  12. package/dist/ui/static/_next/static/chunks/0_8kv51rrhcg-.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/0ahpt93l7-z9f.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/0bbv42deftomm.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/0c3w2ubla6ek6.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/0e6em7dg4gr6q.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/0gnizm29lk3ll.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/0m0w3hleoejwg.js +1 -0
  19. package/dist/ui/static/_next/static/chunks/{2nubqp1hwandv.js → 0ojvvjnsf38bk.js} +1 -1
  20. package/dist/ui/static/_next/static/chunks/0we68cbpsgepq.css +1 -0
  21. package/dist/ui/static/_next/static/chunks/0xqxs7rppw_o5.css +5 -0
  22. package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +1 -0
  23. package/dist/ui/static/_next/static/chunks/14aztwc0_78th.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/18-rkk8vbltb8.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/187yy--dlljjz.js +1 -0
  26. package/dist/ui/static/_next/static/chunks/1ep9f2fjv7oh7.js +1 -0
  27. package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/1kacubgk0y2ki.js +1 -0
  29. package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +1 -0
  30. package/dist/ui/static/_next/static/chunks/1lb8ju8qa0d9m.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +5 -0
  32. package/dist/ui/static/_next/static/chunks/1mcajwmbse068.js +7 -0
  33. package/dist/ui/static/_next/static/chunks/{2l9r80s3qje3v.js → 1piodmepoegnw.js} +1 -1
  34. package/dist/ui/static/_next/static/chunks/1qsl7dx87n-af.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/{0vywz1p6au4ri.js → 1uetvnnpa5z22.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +1 -0
  38. package/dist/ui/static/_next/static/chunks/{0hn7lj400e79p.js → 2179tism08tgt.js} +1 -1
  39. package/dist/ui/static/_next/static/chunks/21t1klb1thn76.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/29nzymeooaepv.js +1 -0
  41. package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +1 -0
  42. package/dist/ui/static/_next/static/chunks/{064diuwddstj6.js → 2cn33khz2ae-h.js} +1 -1
  43. package/dist/ui/static/_next/static/chunks/{0b3klia_y6i3z.js → 2dbr8ufwv1hwn.js} +1 -1
  44. package/dist/ui/static/_next/static/chunks/2dpxapmdvqlh1.js +1 -0
  45. package/dist/ui/static/_next/static/chunks/2e4prtd3wmn0a.js +1 -0
  46. package/dist/ui/static/_next/static/chunks/2h_zvmb272ozs.js +1 -0
  47. package/dist/ui/static/_next/static/chunks/{3qtph5seqciux.css → 2l0gyhe4jpu23.css} +5 -5
  48. package/dist/ui/static/_next/static/chunks/2l9ens2l3tayx.js +1 -0
  49. package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +1 -0
  50. package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +1 -0
  51. package/dist/ui/static/_next/static/chunks/2uoxlx30y60nf.js +1 -0
  52. package/dist/ui/static/_next/static/chunks/2vhgpp_064_st.js +1 -0
  53. package/dist/ui/static/_next/static/chunks/2xpud5k1hwfvf.js +1 -0
  54. package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +1 -0
  55. package/dist/ui/static/_next/static/chunks/3-htoy7v6gx51.js +1 -0
  56. package/dist/ui/static/_next/static/chunks/3-l-8qt163_y6.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/3_rof9w-g14_v.js +3 -0
  58. package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +1 -0
  59. package/dist/ui/static/_next/static/chunks/3d-10944zk2o9.js +1 -0
  60. package/dist/ui/static/_next/static/chunks/3f6svr_pokw6j.js +1 -0
  61. package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +1 -0
  62. package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +1 -0
  63. package/dist/ui/static/_next/static/chunks/3ly6-f_52vfie.js +1 -0
  64. package/dist/ui/static/_next/static/chunks/3pm8eiwwesd47.js +1 -0
  65. package/dist/ui/static/_next/static/chunks/3tr04kks52pjw.js +1 -0
  66. package/dist/ui/static/_next/static/chunks/3wwyidrm300kk.js +1 -0
  67. package/dist/ui/static/_next/static/chunks/3xw9gh9d5ngza.js +1 -0
  68. package/dist/ui/static/_next/static/chunks/3zbk4r-6rxn7j.css +2 -0
  69. package/dist/ui/static/_next/static/chunks/42y02tbxkub8f.js +1 -0
  70. package/dist/ui/static/_not-found/__next._full.txt +20 -18
  71. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +13 -11
  72. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  73. package/dist/ui/static/_not-found.html +1 -1
  74. package/dist/ui/static/_not-found.txt +20 -18
  75. package/dist/ui/static/atlassian-connectors/__next._full.txt +22 -20
  76. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  77. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +15 -13
  78. package/dist/ui/static/atlassian-connectors.html +1 -1
  79. package/dist/ui/static/atlassian-connectors.txt +22 -20
  80. package/dist/ui/static/index.html +1 -1
  81. package/dist/ui/static/index.txt +21 -20
  82. package/dist/ui/static/launch/__next._full.txt +25 -23
  83. package/dist/ui/static/launch/__next._tree.txt +2 -2
  84. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +16 -14
  85. package/dist/ui/static/launch.html +1 -1
  86. package/dist/ui/static/launch.txt +25 -23
  87. package/dist/ui/static/local-knowledge/__next._full.txt +25 -23
  88. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  89. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +16 -14
  90. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +23 -21
  91. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  92. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +15 -13
  93. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  94. package/dist/ui/static/local-knowledge/capsule.txt +23 -21
  95. package/dist/ui/static/local-knowledge.html +1 -1
  96. package/dist/ui/static/local-knowledge.txt +25 -23
  97. package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.d.ts +30 -0
  98. package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.d.ts.map +1 -0
  99. package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.js +114 -0
  100. package/node_modules/@oscharko-dev/keiko-cli/dist/audit.d.ts.map +1 -1
  101. package/node_modules/@oscharko-dev/keiko-cli/dist/audit.js +108 -39
  102. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.d.ts +3 -0
  103. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.d.ts.map +1 -0
  104. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.js +14 -0
  105. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +1 -1
  106. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +7 -4
  108. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-model-resolution.d.ts.map +1 -1
  109. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-model-resolution.js +3 -1
  110. package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.d.ts.map +1 -1
  111. package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.js +4 -2
  112. package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.d.ts +60 -7
  113. package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.d.ts.map +1 -1
  114. package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.js +32 -10
  115. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-state.js +1 -1
  116. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  117. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +82 -103
  118. package/node_modules/@oscharko-dev/keiko-cli/dist/memory.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-cli/dist/memory.js +14 -7
  120. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.js +30 -7
  122. package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts +197 -0
  123. package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts.map +1 -0
  124. package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +147 -0
  125. package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts +3 -2
  126. package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.js +49 -36
  128. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts.map +1 -1
  129. package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.js +9 -7
  130. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
  131. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +8 -3
  132. package/node_modules/@oscharko-dev/keiko-cli/dist/run.d.ts.map +1 -1
  133. package/node_modules/@oscharko-dev/keiko-cli/dist/run.js +3 -1
  134. package/node_modules/@oscharko-dev/keiko-cli/dist/runner.d.ts.map +1 -1
  135. package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +58 -18
  136. package/node_modules/@oscharko-dev/keiko-cli/dist/security-log.d.ts.map +1 -1
  137. package/node_modules/@oscharko-dev/keiko-cli/dist/security-log.js +126 -57
  138. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +1 -1
  139. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +29 -6
  141. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.d.ts +52 -0
  142. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.d.ts.map +1 -0
  143. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.js +249 -0
  144. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts +85 -0
  145. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts.map +1 -1
  146. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.js +498 -56
  147. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +12 -8
  148. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
  149. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +147 -99
  150. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +50 -0
  151. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -0
  152. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +317 -0
  153. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +80 -0
  154. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -0
  155. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +462 -0
  156. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +480 -0
  157. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -0
  158. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +191 -0
  159. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.d.ts +169 -0
  160. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.d.ts.map +1 -0
  161. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.js +709 -0
  162. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.d.ts +6 -0
  163. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.d.ts.map +1 -0
  164. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.js +27 -0
  165. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.d.ts +164 -0
  166. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.d.ts.map +1 -0
  167. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.js +688 -0
  168. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.d.ts +78 -0
  169. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.d.ts.map +1 -0
  170. package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.js +252 -0
  171. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +43 -0
  172. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -0
  173. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +115 -0
  174. package/node_modules/@oscharko-dev/keiko-cli/dist/support-tool-catalog.d.ts.map +1 -1
  175. package/node_modules/@oscharko-dev/keiko-cli/dist/support-tool-catalog.js +118 -4
  176. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +21 -2
  177. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
  178. package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +885 -177
  179. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.js +95 -24
  181. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +13 -4
  182. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +364 -109
  184. package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.d.ts.map +1 -1
  185. package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.js +123 -51
  186. package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
  187. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  188. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  189. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  190. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +6322 -0
  191. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -0
  192. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +8278 -0
  193. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.d.ts +54 -0
  194. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.d.ts.map +1 -0
  195. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.js +215 -0
  196. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.d.ts +16 -0
  197. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.d.ts.map +1 -0
  198. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.js +82 -0
  199. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +50926 -0
  200. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -0
  201. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +60264 -0
  202. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +19 -0
  203. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  204. package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts +2 -2
  205. package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts.map +1 -1
  206. package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.js +1 -2
  207. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +5 -0
  208. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
  209. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +15 -0
  210. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +145 -1
  211. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  212. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +532 -6
  213. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +1 -1
  214. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  215. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +1 -0
  216. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
  217. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
  218. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +1 -1
  219. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  220. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +235 -0
  221. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
  222. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +743 -0
  223. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +216 -0
  224. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -0
  225. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +403 -0
  226. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts +3 -0
  227. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts.map +1 -1
  228. package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.js +18 -1
  229. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  230. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  231. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  232. package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.d.ts +2 -1
  233. package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.d.ts.map +1 -1
  234. package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.js +1 -1
  235. package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.d.ts +2 -1
  236. package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.d.ts.map +1 -1
  237. package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.js +2 -1
  238. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  239. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  240. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  241. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  242. package/node_modules/@oscharko-dev/keiko-git/dist/types.d.ts +20 -0
  243. package/node_modules/@oscharko-dev/keiko-git/dist/types.d.ts.map +1 -1
  244. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  245. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  246. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  247. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  248. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  249. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  250. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts +68 -0
  251. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -0
  252. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +532 -0
  253. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
  254. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +93 -76
  255. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts +120 -0
  256. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -0
  257. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +686 -0
  258. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
  259. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +150 -207
  260. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.d.ts +36 -0
  261. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.d.ts.map +1 -0
  262. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.js +264 -0
  263. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts.map +1 -1
  264. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts +1 -0
  265. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts.map +1 -1
  266. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.js +44 -12
  267. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.d.ts.map +1 -1
  268. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.js +30 -13
  269. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/local-vector-index-port.d.ts.map +1 -1
  270. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/local-vector-index-port.js +25 -6
  271. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.d.ts.map +1 -1
  272. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.js +46 -10
  273. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
  274. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +71 -20
  275. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
  276. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +54 -17
  277. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  278. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  279. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  280. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  281. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  282. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  283. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
  284. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +24 -5
  285. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts.map +1 -1
  286. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.js +35 -12
  287. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  288. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  289. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  290. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  291. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  292. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  293. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  294. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  295. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  296. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts.map +1 -1
  297. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +25 -7
  298. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.d.ts +4 -2
  299. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.d.ts.map +1 -1
  300. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.js +37 -12
  301. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/schema.d.ts.map +1 -1
  302. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/schema.js +34 -10
  303. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +3 -2
  304. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
  305. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.js +35 -12
  306. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.d.ts.map +1 -1
  307. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +24 -6
  308. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  309. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  310. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  311. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  312. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +408 -40
  313. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  314. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +237 -61
  315. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts +5 -0
  316. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
  317. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +72 -12
  318. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  319. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +75 -17
  320. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  321. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +404 -116
  322. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
  323. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +313 -92
  324. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +2 -3
  325. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
  326. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +260 -54
  327. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.d.ts.map +1 -1
  328. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.js +31 -11
  329. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/text-to-speech-adapter.d.ts.map +1 -1
  330. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/text-to-speech-adapter.js +147 -21
  331. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
  332. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +190 -44
  333. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  334. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  335. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  336. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  337. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  338. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  339. package/node_modules/@oscharko-dev/keiko-security/dist/fs-atomic-rename.d.ts.map +1 -1
  340. package/node_modules/@oscharko-dev/keiko-security/dist/fs-atomic-rename.js +39 -14
  341. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +107 -0
  342. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
  343. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +1998 -1
  344. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +2 -1
  345. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  346. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -3
  347. package/node_modules/@oscharko-dev/keiko-security/dist/log-port.d.ts.map +1 -1
  348. package/node_modules/@oscharko-dev/keiko-security/dist/log-port.js +36 -13
  349. package/node_modules/@oscharko-dev/keiko-security/dist/macos-keychain.d.ts.map +1 -1
  350. package/node_modules/@oscharko-dev/keiko-security/dist/macos-keychain.js +31 -15
  351. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +2 -1
  352. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts.map +1 -1
  353. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.js +46 -15
  354. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.d.ts +23 -0
  355. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.d.ts.map +1 -0
  356. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.js +11 -0
  357. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.d.ts +9 -0
  358. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.d.ts.map +1 -0
  359. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.js +115 -0
  360. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.d.ts +2 -0
  361. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.d.ts.map +1 -0
  362. package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.js +50 -0
  363. package/node_modules/@oscharko-dev/keiko-security/dist/secret-vault.d.ts.map +1 -1
  364. package/node_modules/@oscharko-dev/keiko-security/dist/secret-vault.js +260 -50
  365. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  366. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  367. package/node_modules/@oscharko-dev/keiko-security/dist/windows-local-volume.d.ts.map +1 -1
  368. package/node_modules/@oscharko-dev/keiko-security/dist/windows-local-volume.js +32 -7
  369. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts.map +1 -1
  370. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.js +38 -14
  371. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  372. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/credentialRoutes.d.ts.map +1 -1
  373. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/credentialRoutes.js +47 -5
  374. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
  375. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +160 -37
  376. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +48 -0
  377. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -0
  378. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +336 -0
  379. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.d.ts.map +1 -1
  380. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.js +28 -10
  381. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +5 -5
  382. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  383. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +49 -66
  384. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  385. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +5 -1
  386. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts +9 -1
  387. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  388. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +1202 -50
  389. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
  390. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +98 -35
  391. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.d.ts +22 -0
  392. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.d.ts.map +1 -0
  393. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.js +83 -0
  394. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.d.ts.map +1 -1
  395. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.js +10 -15
  396. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingRuntimeIssueIntake.d.ts.map +1 -1
  397. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingRuntimeIssueIntake.js +45 -23
  398. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubAuthorizationRoutes.d.ts.map +1 -1
  399. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubAuthorizationRoutes.js +21 -6
  400. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.d.ts.map +1 -1
  401. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.js +90 -12
  402. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
  403. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +85 -27
  404. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.d.ts +2 -0
  405. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.d.ts.map +1 -1
  406. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.js +118 -14
  407. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/issuePreviewRoutes.d.ts.map +1 -1
  408. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/issuePreviewRoutes.js +53 -9
  409. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts +7 -0
  410. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -0
  411. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +78 -0
  412. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
  413. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +126 -27
  414. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +857 -0
  415. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -0
  416. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +411 -0
  417. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.d.ts.map +1 -1
  418. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.js +49 -44
  419. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.d.ts +2 -0
  420. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.d.ts.map +1 -1
  421. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.js +17 -0
  422. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +9 -1
  423. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
  424. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +38 -20
  425. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +2 -0
  426. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
  427. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +4 -0
  428. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts +40 -0
  429. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts.map +1 -0
  430. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.js +372 -0
  431. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.d.ts +2 -0
  432. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.d.ts.map +1 -1
  433. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.js +104 -20
  434. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
  435. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +0 -1
  436. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts.map +1 -1
  437. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.js +183 -27
  438. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +12 -3
  439. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  440. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +963 -223
  441. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +3 -0
  442. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
  443. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
  444. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +123 -14
  445. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.d.ts +2 -0
  446. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.d.ts.map +1 -1
  447. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.js +33 -16
  448. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerifiedCommitAuthorityStore.d.ts.map +1 -1
  449. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerifiedCommitAuthorityStore.js +23 -9
  450. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +1 -1
  451. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  452. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +66 -19
  453. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
  454. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +46 -5
  455. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
  456. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +13 -1
  457. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
  458. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +6 -5
  459. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -2
  460. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  461. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
  462. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +130 -31
  463. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +3 -3
  464. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +1 -1
  465. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
  466. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +54 -47
  467. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +1 -1
  468. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts.map +1 -1
  469. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +13 -16
  470. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -2
  471. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
  472. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +56 -4
  473. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts +4 -1
  474. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts.map +1 -1
  475. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.js +24 -4
  476. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +10 -1
  477. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
  478. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +244 -61
  479. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +2 -1
  480. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  481. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +268 -368
  482. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +5 -13
  483. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
  484. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +15 -44
  485. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +16 -0
  486. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -0
  487. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +86 -0
  488. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +22 -0
  489. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -0
  490. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +438 -0
  491. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +30 -0
  492. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -0
  493. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +251 -0
  494. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts +7 -0
  495. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts.map +1 -0
  496. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.js +125 -0
  497. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
  498. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +42 -14
  499. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.d.ts.map +1 -1
  500. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +65 -36
  501. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
  502. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +109 -21
  503. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeQuestionPort.d.ts.map +1 -1
  504. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeQuestionPort.js +3 -6
  505. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +1 -1
  506. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
  507. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +18 -8
  508. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.d.ts.map +1 -1
  509. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.js +160 -46
  510. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
  511. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +423 -106
  512. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +2 -0
  513. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
  514. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +100 -18
  515. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +6 -1
  516. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  517. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +43 -16
  518. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.d.ts.map +1 -1
  519. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.js +51 -7
  520. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitDependencies.d.ts.map +1 -1
  521. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitDependencies.js +32 -9
  522. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.d.ts +1 -1
  523. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.d.ts.map +1 -1
  524. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.js +155 -22
  525. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +1 -1
  526. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
  527. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +300 -61
  528. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/windowsPortableAuthenticode.d.ts.map +1 -1
  529. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/windowsPortableAuthenticode.js +30 -11
  530. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  531. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +240 -61
  532. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
  533. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +45 -8
  534. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts +40 -0
  535. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts.map +1 -0
  536. package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.js +207 -0
  537. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +7 -1
  538. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  539. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +69 -58
  540. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
  541. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  542. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +194 -26
  543. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
  544. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +113 -17
  545. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  546. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +7 -1
  547. package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/debugLaunchPlan.d.ts.map +1 -1
  548. package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/debugLaunchPlan.js +35 -11
  549. package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.d.ts +1 -1
  550. package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.d.ts.map +1 -1
  551. package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.js +56 -15
  552. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspNodeAdapter.d.ts.map +1 -1
  553. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspNodeAdapter.js +201 -37
  554. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspProcessManager.d.ts.map +1 -1
  555. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspProcessManager.js +51 -11
  556. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/providers/javaProvider.d.ts.map +1 -1
  557. package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/providers/javaProvider.js +78 -11
  558. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +4 -1
  559. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
  560. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +55 -0
  561. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
  562. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +211 -65
  563. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
  564. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +33 -6
  565. package/node_modules/@oscharko-dev/keiko-server/dist/evidence-retention-log.d.ts.map +1 -1
  566. package/node_modules/@oscharko-dev/keiko-server/dist/evidence-retention-log.js +36 -6
  567. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
  568. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +97 -22
  569. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +5 -3
  570. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  571. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +220 -39
  572. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  573. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +283 -68
  574. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
  575. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +138 -45
  576. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeChatContext.d.ts.map +1 -1
  577. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeChatContext.js +97 -13
  578. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts +5 -0
  579. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
  580. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +146 -30
  581. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotReader.d.ts.map +1 -1
  582. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotReader.js +13 -1
  583. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotRegistry.d.ts.map +1 -1
  584. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotRegistry.js +122 -32
  585. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotService.d.ts.map +1 -1
  586. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotService.js +140 -24
  587. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.d.ts +6 -2
  588. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.d.ts.map +1 -1
  589. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.js +192 -8
  590. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
  591. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +154 -26
  592. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts +2 -2
  593. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
  594. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +100 -46
  595. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.d.ts +21 -0
  596. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.d.ts.map +1 -1
  597. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.js +108 -13
  598. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.d.ts.map +1 -1
  599. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.js +23 -20
  600. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.d.ts.map +1 -1
  601. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.js +93 -18
  602. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts +28 -0
  603. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts.map +1 -1
  604. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.js +123 -33
  605. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.d.ts.map +1 -1
  606. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.js +33 -33
  607. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.d.ts.map +1 -1
  608. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.js +97 -24
  609. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.d.ts +150 -0
  610. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.d.ts.map +1 -0
  611. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.js +64 -0
  612. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +226 -1
  613. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
  614. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +344 -70
  615. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +25 -0
  616. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
  617. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +159 -26
  618. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
  619. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +238 -59
  620. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/localMutationRoutes.d.ts.map +1 -1
  621. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/localMutationRoutes.js +2 -9
  622. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/mergeExecution.d.ts.map +1 -1
  623. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/mergeExecution.js +79 -13
  624. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.d.ts.map +1 -1
  625. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.js +6 -2
  626. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
  627. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +133 -16
  628. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionReceiptStore.d.ts.map +1 -1
  629. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionReceiptStore.js +73 -19
  630. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.d.ts.map +1 -1
  631. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.js +147 -50
  632. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionService.d.ts.map +1 -1
  633. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionService.js +4 -3
  634. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionTypes.d.ts +12 -4
  635. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionTypes.d.ts.map +1 -1
  636. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.d.ts +1 -1
  637. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.d.ts.map +1 -1
  638. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.js +138 -42
  639. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.d.ts.map +1 -1
  640. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.js +51 -7
  641. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.d.ts +4 -0
  642. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.d.ts.map +1 -1
  643. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.js +145 -26
  644. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts.map +1 -1
  645. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.js +43 -13
  646. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts.map +1 -1
  647. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.js +122 -11
  648. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.d.ts.map +1 -1
  649. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.js +4 -15
  650. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
  651. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +194 -11
  652. package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.d.ts +5 -2
  653. package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.d.ts.map +1 -1
  654. package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.js +157 -31
  655. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  656. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +514 -74
  657. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  658. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +7 -2
  659. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
  660. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +84 -20
  661. package/node_modules/@oscharko-dev/keiko-server/dist/harness-context-compactor.d.ts.map +1 -1
  662. package/node_modules/@oscharko-dev/keiko-server/dist/harness-context-compactor.js +30 -9
  663. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +7 -0
  664. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
  665. package/node_modules/@oscharko-dev/keiko-server/dist/index.js +20 -0
  666. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
  667. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +287 -68
  668. package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts.map +1 -1
  669. package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.js +219 -65
  670. package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.d.ts.map +1 -1
  671. package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.js +30 -10
  672. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.d.ts +233 -0
  673. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.d.ts.map +1 -0
  674. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.js +124 -0
  675. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.d.ts +8 -0
  676. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.d.ts.map +1 -0
  677. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.js +25 -0
  678. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.d.ts +34 -0
  679. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.d.ts.map +1 -0
  680. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.js +301 -0
  681. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.d.ts +215 -0
  682. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.d.ts.map +1 -0
  683. package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.js +755 -0
  684. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts +4 -0
  685. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts.map +1 -1
  686. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.js +6 -2
  687. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.d.ts.map +1 -1
  688. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.js +25 -14
  689. package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.d.ts +17 -0
  690. package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.d.ts.map +1 -0
  691. package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.js +35 -0
  692. package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.d.ts +6 -0
  693. package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.d.ts.map +1 -0
  694. package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.js +23 -0
  695. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts +106 -6
  696. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts.map +1 -1
  697. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.js +2504 -481
  698. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts +38 -2
  699. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts.map +1 -1
  700. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.js +187 -39
  701. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.d.ts +44 -0
  702. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.d.ts.map +1 -0
  703. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.js +255 -0
  704. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.d.ts +107 -0
  705. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.d.ts.map +1 -0
  706. package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.js +1052 -0
  707. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts.map +1 -1
  708. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.js +66 -17
  709. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.d.ts +3 -2
  710. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.d.ts.map +1 -1
  711. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.js +35 -5
  712. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
  713. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.js +3 -1
  714. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
  715. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +7 -6
  716. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reCheckRoutes.d.ts.map +1 -1
  717. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reCheckRoutes.js +7 -2
  718. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
  719. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +7 -2
  720. package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.d.ts +16 -0
  721. package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.d.ts.map +1 -0
  722. package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.js +90 -0
  723. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  724. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +12 -7
  725. package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts.map +1 -1
  726. package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.js +3 -3
  727. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
  728. package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +33 -9
  729. package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
  730. package/node_modules/@oscharko-dev/keiko-server/dist/server.js +50 -10
  731. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts.map +1 -1
  732. package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.js +37 -9
  733. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
  734. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +3 -2
  735. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts +36 -0
  736. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts.map +1 -0
  737. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.js +191 -0
  738. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.d.ts +5 -0
  739. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.d.ts.map +1 -0
  740. package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.js +44 -0
  741. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +1 -1
  742. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  743. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +61 -37
  744. package/node_modules/@oscharko-dev/keiko-server/dist/store/journeyOutcomeMigration.d.ts.map +1 -1
  745. package/node_modules/@oscharko-dev/keiko-server/dist/store/journeyOutcomeMigration.js +26 -5
  746. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
  747. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +9 -1
  748. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  749. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  750. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +31 -1
  751. package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.d.ts +4 -0
  752. package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.d.ts.map +1 -0
  753. package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.js +19 -0
  754. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +6 -1
  755. package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
  756. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
  757. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +34 -8
  758. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts.map +1 -1
  759. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.js +212 -13
  760. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/workspace-root-access.d.ts.map +1 -1
  761. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/workspace-root-access.js +31 -28
  762. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
  763. package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +6 -10
  764. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolBinder.d.ts.map +1 -1
  765. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolBinder.js +18 -9
  766. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
  767. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +41 -5
  768. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.d.ts.map +1 -1
  769. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.js +401 -17
  770. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
  771. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +1 -2
  772. package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.d.ts +1 -1
  773. package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.d.ts.map +1 -1
  774. package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.js +170 -39
  775. package/node_modules/@oscharko-dev/keiko-server/dist/update-legacy-audit-import.d.ts.map +1 -1
  776. package/node_modules/@oscharko-dev/keiko-server/dist/update-legacy-audit-import.js +94 -66
  777. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts +1 -1
  778. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts.map +1 -1
  779. package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.js +70 -20
  780. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.d.ts.map +1 -1
  781. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.js +87 -13
  782. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +2 -2
  783. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
  784. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +7 -7
  785. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.d.ts.map +1 -1
  786. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.js +4 -4
  787. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts +16 -0
  788. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts.map +1 -0
  789. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.js +182 -0
  790. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts +1 -1
  791. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts.map +1 -1
  792. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.js +5 -15
  793. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts +1 -1
  794. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts.map +1 -1
  795. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.js +21 -47
  796. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts +5 -5
  797. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
  798. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +21 -15
  799. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts +39 -0
  800. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts.map +1 -0
  801. package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.js +266 -0
  802. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts.map +1 -1
  803. package/node_modules/@oscharko-dev/keiko-server/dist/update-session.js +138 -20
  804. package/node_modules/@oscharko-dev/keiko-server/dist/voice-handlers.d.ts.map +1 -1
  805. package/node_modules/@oscharko-dev/keiko-server/dist/voice-handlers.js +5 -0
  806. package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.d.ts.map +1 -1
  807. package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.js +41 -11
  808. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
  809. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +70 -17
  810. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +11 -1
  811. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
  812. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +81 -26
  813. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.d.ts +2 -2
  814. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.d.ts.map +1 -1
  815. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.js +135 -37
  816. package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
  817. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts.map +1 -1
  818. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.js +4 -6
  819. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +2 -2
  820. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
  821. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +30 -70
  822. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.d.ts.map +1 -1
  823. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +1 -1
  824. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  825. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  826. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  827. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  828. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +7 -3
  829. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
  830. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +192 -14
  831. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +2 -0
  832. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
  833. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +6 -2
  834. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  835. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  836. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  837. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  838. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  839. package/package.json +32 -28
  840. package/release-impact.catalog.json +126 -0
  841. package/scripts/lib/local-state-audit.mjs +94 -0
  842. package/vendor/oscharko-dev-keiko-cli-1.1.0.tgz +0 -0
  843. package/vendor/{oscharko-dev-keiko-connectors-1.0.4.tgz → oscharko-dev-keiko-connectors-1.1.0.tgz} +0 -0
  844. package/vendor/oscharko-dev-keiko-contracts-1.1.0.tgz +0 -0
  845. package/vendor/oscharko-dev-keiko-evaluations-1.1.0.tgz +0 -0
  846. package/vendor/{oscharko-dev-keiko-evidence-1.0.4.tgz → oscharko-dev-keiko-evidence-1.1.0.tgz} +0 -0
  847. package/vendor/oscharko-dev-keiko-git-1.1.0.tgz +0 -0
  848. package/vendor/{oscharko-dev-keiko-harness-1.0.4.tgz → oscharko-dev-keiko-harness-1.1.0.tgz} +0 -0
  849. package/vendor/oscharko-dev-keiko-local-knowledge-1.1.0.tgz +0 -0
  850. package/vendor/{oscharko-dev-keiko-memory-capture-1.0.4.tgz → oscharko-dev-keiko-memory-capture-1.1.0.tgz} +0 -0
  851. package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.0.tgz +0 -0
  852. package/vendor/{oscharko-dev-keiko-memory-governance-1.0.4.tgz → oscharko-dev-keiko-memory-governance-1.1.0.tgz} +0 -0
  853. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.0.4.tgz → oscharko-dev-keiko-memory-retrieval-1.1.0.tgz} +0 -0
  854. package/vendor/oscharko-dev-keiko-memory-vault-1.1.0.tgz +0 -0
  855. package/vendor/oscharko-dev-keiko-model-gateway-1.1.0.tgz +0 -0
  856. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.0.4.tgz → oscharko-dev-keiko-quality-intelligence-1.1.0.tgz} +0 -0
  857. package/vendor/oscharko-dev-keiko-sandbox-1.1.0.tgz +0 -0
  858. package/vendor/{oscharko-dev-keiko-sdk-1.0.4.tgz → oscharko-dev-keiko-sdk-1.1.0.tgz} +0 -0
  859. package/vendor/oscharko-dev-keiko-security-1.1.0.tgz +0 -0
  860. package/vendor/oscharko-dev-keiko-server-1.1.0.tgz +0 -0
  861. package/vendor/oscharko-dev-keiko-tool-catalog-1.1.0.tgz +0 -0
  862. package/vendor/{oscharko-dev-keiko-tools-1.0.4.tgz → oscharko-dev-keiko-tools-1.1.0.tgz} +0 -0
  863. package/vendor/oscharko-dev-keiko-verification-1.1.0.tgz +0 -0
  864. package/vendor/{oscharko-dev-keiko-workflows-1.0.4.tgz → oscharko-dev-keiko-workflows-1.1.0.tgz} +0 -0
  865. package/vendor/{oscharko-dev-keiko-workspace-1.0.4.tgz → oscharko-dev-keiko-workspace-1.1.0.tgz} +0 -0
  866. package/dist/ui/static/_next/static/chunks/0-tss9mlvjuz4.js +0 -1
  867. package/dist/ui/static/_next/static/chunks/04lb-38e89aw8.js +0 -1
  868. package/dist/ui/static/_next/static/chunks/04t-d0js_hvfr.js +0 -1
  869. package/dist/ui/static/_next/static/chunks/086jxcgou7s_5.js +0 -1
  870. package/dist/ui/static/_next/static/chunks/08pxrik1lm06d.js +0 -5
  871. package/dist/ui/static/_next/static/chunks/093r62_9c_psx.js +0 -1
  872. package/dist/ui/static/_next/static/chunks/0_u5vd-_66bpj.js +0 -1
  873. package/dist/ui/static/_next/static/chunks/0gsb-naamu9g1.js +0 -1
  874. package/dist/ui/static/_next/static/chunks/0ix9hk8cnb0as.js +0 -1
  875. package/dist/ui/static/_next/static/chunks/0n9uef9g17pxd.js +0 -1
  876. package/dist/ui/static/_next/static/chunks/0o131urxtkbxj.js +0 -1
  877. package/dist/ui/static/_next/static/chunks/0pac-465ukeam.js +0 -1
  878. package/dist/ui/static/_next/static/chunks/0qzzopo8q0m1e.js +0 -1
  879. package/dist/ui/static/_next/static/chunks/0vvfq-eocx502.js +0 -1
  880. package/dist/ui/static/_next/static/chunks/15wh9-75zvro2.js +0 -1
  881. package/dist/ui/static/_next/static/chunks/160x2go4zkjhx.js +0 -1
  882. package/dist/ui/static/_next/static/chunks/17yrtbw7mk5py.css +0 -2
  883. package/dist/ui/static/_next/static/chunks/1kgbe4la7mty5.js +0 -1
  884. package/dist/ui/static/_next/static/chunks/1peg9ve597086.js +0 -1
  885. package/dist/ui/static/_next/static/chunks/1q6j3gd8d86-v.css +0 -2
  886. package/dist/ui/static/_next/static/chunks/1t_6hc_5pxuqd.js +0 -1
  887. package/dist/ui/static/_next/static/chunks/1v4mpk8t6w8_7.js +0 -1
  888. package/dist/ui/static/_next/static/chunks/1yj6x688jjk-a.js +0 -1
  889. package/dist/ui/static/_next/static/chunks/21djhsnzx069x.js +0 -1
  890. package/dist/ui/static/_next/static/chunks/23e-psiwdsaxk.js +0 -1
  891. package/dist/ui/static/_next/static/chunks/289h3-vke8o67.js +0 -1
  892. package/dist/ui/static/_next/static/chunks/2dxo0g3208ag1.js +0 -1
  893. package/dist/ui/static/_next/static/chunks/2jadbwshuwe_n.js +0 -1
  894. package/dist/ui/static/_next/static/chunks/2u9u5i8o6vd-w.js +0 -1
  895. package/dist/ui/static/_next/static/chunks/2vj6gqk9lh7yv.js +0 -1
  896. package/dist/ui/static/_next/static/chunks/3-k1y9vbxcms8.js +0 -3
  897. package/dist/ui/static/_next/static/chunks/3137i2nt475lq.js +0 -1
  898. package/dist/ui/static/_next/static/chunks/3_jzs5uvplshk.js +0 -1
  899. package/dist/ui/static/_next/static/chunks/3d-jscai6hb55.js +0 -1
  900. package/dist/ui/static/_next/static/chunks/3dkw81rui6ry8.js +0 -1
  901. package/dist/ui/static/_next/static/chunks/3f3ici8rsavir.js +0 -1
  902. package/dist/ui/static/_next/static/chunks/3f_-h2lm9ml4b.js +0 -1
  903. package/dist/ui/static/_next/static/chunks/3frfm_q9cqdtg.js +0 -1
  904. package/dist/ui/static/_next/static/chunks/3irz7sn3e2ix3.js +0 -1
  905. package/dist/ui/static/_next/static/chunks/3j1p83q4cv4cv.js +0 -1
  906. package/dist/ui/static/_next/static/chunks/3kgmrssgqwg_h.js +0 -1
  907. package/dist/ui/static/_next/static/chunks/3lc67g1jowxt_.js +0 -1
  908. package/dist/ui/static/_next/static/chunks/3pgmij812w0aa.css +0 -1
  909. package/dist/ui/static/_next/static/chunks/3q3ds5x5j4w7j.js +0 -1
  910. package/dist/ui/static/_next/static/chunks/3r2v5s5l7jkoj.js +0 -1
  911. package/dist/ui/static/_next/static/chunks/3w9c58yrtr4oj.js +0 -1
  912. package/dist/ui/static/_next/static/chunks/3wxm1wke5887n.js +0 -7
  913. package/dist/ui/static/_next/static/chunks/3ymz8bp4uzhhh.js +0 -1
  914. package/vendor/oscharko-dev-keiko-cli-1.0.4.tgz +0 -0
  915. package/vendor/oscharko-dev-keiko-contracts-1.0.4.tgz +0 -0
  916. package/vendor/oscharko-dev-keiko-evaluations-1.0.4.tgz +0 -0
  917. package/vendor/oscharko-dev-keiko-git-1.0.4.tgz +0 -0
  918. package/vendor/oscharko-dev-keiko-local-knowledge-1.0.4.tgz +0 -0
  919. package/vendor/oscharko-dev-keiko-memory-consolidation-1.0.4.tgz +0 -0
  920. package/vendor/oscharko-dev-keiko-memory-vault-1.0.4.tgz +0 -0
  921. package/vendor/oscharko-dev-keiko-model-gateway-1.0.4.tgz +0 -0
  922. package/vendor/oscharko-dev-keiko-sandbox-1.0.4.tgz +0 -0
  923. package/vendor/oscharko-dev-keiko-security-1.0.4.tgz +0 -0
  924. package/vendor/oscharko-dev-keiko-server-1.0.4.tgz +0 -0
  925. package/vendor/oscharko-dev-keiko-tool-catalog-1.0.4.tgz +0 -0
  926. package/vendor/oscharko-dev-keiko-verification-1.0.4.tgz +0 -0
  927. /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_buildManifest.js +0 -0
  928. /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_clientMiddlewareManifest.js +0 -0
  929. /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_ssgManifest.js +0 -0
@@ -11,14 +11,9 @@
11
11
  // browser cannot inject an arbitrary join key onto another request's timeline;
12
12
  // * the optional Git-change response identity is a closed, body-free contract and is projected
13
13
  // field-by-field; unknown browser fields can never enter the activity log;
14
- // * the message text is written under `extra.clientNote`, NEVER `extra.message`: `"message"` is
15
- // on `log-redaction.ts`'s `DENIED_FIELD_NAMES` and would collapse to `[redacted:key]` even
16
- // though the value is already length-bounded by the wire guard. `clientNote` normalises to
17
- // `"clientnote"`, which is not denied, so the existing per-value guards (length/secret/
18
- // personal/prose/path) do the actual content-safety work on the value itself — the same
19
- // "structural, not caller discipline" principle `log-redaction.ts`'s own header states. No new
20
- // redaction path is written here; the existing choke point is applied a second time,
21
- // server-side, exactly as it is for every other logged field.
14
+ // * the hostile message text is reduced to a domain-separated SHA-256 digest before it reaches
15
+ // the logger. Length bounds and generic redaction are useful defenses, but neither makes an
16
+ // arbitrary client sentence an opaque identifier; the raw message never enters the event.
22
17
  //
23
18
  // Rate limiting reuses `createInlineCompletionRateLimiter` (the editor's existing token-bucket
24
19
  // primitive — AGENTS.md §5 forbids a second one) as a single, process-wide bucket: a flapping tab
@@ -27,8 +22,29 @@
27
22
  // the browser — and a dropped report is still counted, mirroring `server-log.ts`'s own
28
23
  // `reportServerLogFailure` throttle-and-count-suppressed shape: the first drop after a quiet window
29
24
  // is logged immediately, later drops in the same window are counted silently, and the count is
30
- // flushed on the next window's first drop.
31
- import { isClientDiagnosticIngestRequest } from "@oscharko-dev/keiko-contracts/runtime/diagnostics";
25
+ // flushed on the next window's first drop — or, at the latest, by
26
+ // `flushClientDiagnosticsIngestCounts` when the process shuts down (#3532).
27
+ //
28
+ // Every refused report (malformed JSON, a shape the contract rejects, an oversized or cancelled
29
+ // body) gets its own throttled `client.diagnostic.rejected` line, and every drop, rejection and
30
+ // browser-reported delivery loss is also counted in the process-wide loss ledger that the
31
+ // `activity-log.loss` summary persists. None of those paths ever carries the refused content.
32
+ //
33
+ // #3557: a third shape, a binding report, carries a restored window's binding outcome
34
+ // (`client.binding.resolved`/`client.binding.target-missing`) with closed values only.
35
+ //
36
+ // KEIKO-3557: this route accepts TWO closed report shapes on the same rate limit, size bound, and
37
+ // rejection/loss accounting above. A message report (the shape this header describes) reaches
38
+ // `client.diagnostic` — a FAILURE, always at warn. A stage report (`useWindowStageEvidence`,
39
+ // keiko-ui: a desktop window placeholder mounting and later unmounting) reaches
40
+ // `client.stage.started`/`client.stage.settled` instead — the ORDINARY case, at info, with no
41
+ // `errorKind`. Routing routine evidence through the failure-shaped operation is exactly the defect
42
+ // this pair fixes: a live log showed 416 of 449 `client.diagnostic` lines were stage evidence, all
43
+ // misclassified warn/unknown and burying the rare real failures a `keiko support analyze --clusters`
44
+ // pass needs to find.
45
+ import { CLIENT_BINDING_FAILURE_OUTCOMES, CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES, isClientBindingIngestRequest, isClientDiagnosticIngestRequest, isClientSessionRepairIngestRequest, isClientStageIngestRequest, } from "@oscharko-dev/keiko-contracts/runtime/diagnostics";
46
+ import { activityLogEvent, defineActivityLogOperation, recordActivityLogLoss, } from "@oscharko-dev/keiko-contracts/runtime/observability";
47
+ import { sha256Hex } from "@oscharko-dev/keiko-security/hashing";
32
48
  import { RequestBodyCancelledError, RequestBodyTooLargeError, readBoundedRequestBody, } from "./bounded-request-body.js";
33
49
  import { correlationIdOrUnknown, isValidCorrelationId } from "./correlation.js";
34
50
  import { createInlineCompletionRateLimiter, } from "./editor/inlineCompletionRateLimiter.js";
@@ -41,7 +57,670 @@ const MAX_CLIENT_DIAGNOSTIC_BODY_BYTES = 4_096;
41
57
  // rolling minute is generous for genuine crash/error reporting and bounds a flooding or hostile
42
58
  // page. `minIntervalMs: 0` disables the limiter's own burst/cooldown gate, so only the sliding
43
59
  // window cap below applies.
44
- const CLIENT_DIAGNOSTIC_RATE_LIMIT_KEY = "client-diagnostics";
60
+ //
61
+ // Two sliding windows (#3557): routine evidence (a stage, a binding that resolved, a session repair
62
+ // that recovered) spends its own budget, so a page load's dozen stage reports can never use up the
63
+ // budget a failure report needs.
64
+ const CLIENT_DIAGNOSTIC_RATE_LIMIT_KEYS = {
65
+ failure: "client-diagnostics",
66
+ routine: "client-diagnostics-routine",
67
+ };
68
+ const CLIENT_DIAGNOSTIC_RATE_LIMITED_OPERATION = defineActivityLogOperation({
69
+ contractKind: "activity-log-operation",
70
+ schemaVersion: 1,
71
+ op: "client.diagnostic.rate-limited",
72
+ category: "diagnostic",
73
+ owner: "keiko-server",
74
+ emitter: "client-diagnostics-routes.noticeRateLimitedDrop",
75
+ fields: {
76
+ suppressedDrops: { type: "integer", dataClass: "count", required: false },
77
+ // Which budget overflowed, so a dropped failure report is never hidden behind routine
78
+ // evidence (#3557 review).
79
+ budget: {
80
+ type: "string",
81
+ dataClass: "closed-enum",
82
+ required: true,
83
+ values: ["failure", "routine"],
84
+ },
85
+ trigger: {
86
+ type: "string",
87
+ dataClass: "closed-enum",
88
+ required: false,
89
+ values: ["window", "shutdown-flush"],
90
+ },
91
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
92
+ loss: { type: "string", dataClass: "loss-state", required: true },
93
+ },
94
+ causal: "correlation",
95
+ lifecycle: "loss",
96
+ analyzerProjection: "failure-cluster",
97
+ failureClasses: ["client-diagnostic-rate-limit"],
98
+ proofIds: ["client.diagnostic.rate-limited.line"],
99
+ releaseImpact: "patch",
100
+ });
101
+ const CLIENT_DIAGNOSTIC_REJECTED_OPERATION = defineActivityLogOperation({
102
+ contractKind: "activity-log-operation",
103
+ schemaVersion: 1,
104
+ op: "client.diagnostic.rejected",
105
+ category: "diagnostic",
106
+ owner: "keiko-server",
107
+ emitter: "client-diagnostics-routes.noticeRejectedReport",
108
+ fields: {
109
+ rejection: {
110
+ type: "string",
111
+ dataClass: "closed-enum",
112
+ required: true,
113
+ values: ["invalid-json", "invalid-shape", "too-large", "cancelled"],
114
+ },
115
+ suppressedRejections: { type: "integer", dataClass: "count", required: false },
116
+ trigger: {
117
+ type: "string",
118
+ dataClass: "closed-enum",
119
+ required: false,
120
+ values: ["window", "shutdown-flush"],
121
+ },
122
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
123
+ loss: { type: "string", dataClass: "loss-state", required: true },
124
+ },
125
+ causal: "correlation",
126
+ lifecycle: "loss",
127
+ analyzerProjection: "failure-cluster",
128
+ failureClasses: ["client-diagnostic-rejection"],
129
+ proofIds: ["client.diagnostic.rejected.line", "client.diagnostic.rejected.shutdown-flush"],
130
+ releaseImpact: "minor",
131
+ });
132
+ const CLIENT_VOICE_DIALOGUE_OPERATION = defineActivityLogOperation({
133
+ contractKind: "activity-log-operation",
134
+ schemaVersion: 1,
135
+ op: "voice.dialogue.stage",
136
+ category: "diagnostic",
137
+ owner: "keiko-server",
138
+ emitter: "client-diagnostics-routes.logVoiceDialogueStage",
139
+ fields: {
140
+ voiceCaptureError: {
141
+ type: "string",
142
+ dataClass: "closed-enum",
143
+ required: false,
144
+ values: [
145
+ "type-error",
146
+ "range-error",
147
+ "invalid-state",
148
+ "not-supported",
149
+ "security",
150
+ "not-readable",
151
+ "other",
152
+ ],
153
+ },
154
+ voiceCaptureReason: {
155
+ type: "string",
156
+ dataClass: "closed-enum",
157
+ required: false,
158
+ values: [
159
+ "vad-unavailable",
160
+ "speech-observed",
161
+ "renewal-unsupported",
162
+ "replacement-create-failed",
163
+ "replacement-start-failed",
164
+ "previous-stop-failed",
165
+ "replacement-stop-failed",
166
+ "unknown-failure",
167
+ ],
168
+ },
169
+ voiceDialogueStage: {
170
+ type: "string",
171
+ dataClass: "closed-enum",
172
+ required: true,
173
+ values: [
174
+ "started",
175
+ "turn-submitted",
176
+ "answer-ready",
177
+ "playback-settled",
178
+ "playback-fallback",
179
+ "capture-bound-reached",
180
+ "capture-renewed",
181
+ "interrupted",
182
+ "stopped",
183
+ ],
184
+ },
185
+ clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
186
+ clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
187
+ clientPostsFailed: { type: "integer", dataClass: "count", required: false },
188
+ clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
189
+ clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
190
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
191
+ loss: { type: "string", dataClass: "loss-state", required: true },
192
+ },
193
+ causal: "correlation",
194
+ lifecycle: "state",
195
+ analyzerProjection: "timeline",
196
+ failureClasses: ["client-diagnostic"],
197
+ proofIds: ["voice.dialogue.stage.line"],
198
+ releaseImpact: "patch",
199
+ });
200
+ const CLIENT_MARKDOWN_LAYOUT_OPERATION = defineActivityLogOperation({
201
+ contractKind: "activity-log-operation",
202
+ schemaVersion: 1,
203
+ op: "client.markdown.layout",
204
+ category: "diagnostic",
205
+ owner: "keiko-server",
206
+ emitter: "client-diagnostics-routes.logMarkdownLayout",
207
+ fields: {
208
+ messageId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
209
+ listNumbering: {
210
+ type: "string",
211
+ dataClass: "closed-enum",
212
+ required: true,
213
+ values: ["source-start"],
214
+ },
215
+ listStart: { type: "integer", dataClass: "count", required: false },
216
+ listIndex: { type: "integer", dataClass: "count", required: false },
217
+ depth: { type: "integer", dataClass: "count", required: false },
218
+ clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
219
+ clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
220
+ clientPostsFailed: { type: "integer", dataClass: "count", required: false },
221
+ clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
222
+ clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
223
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
224
+ loss: { type: "string", dataClass: "loss-state", required: true },
225
+ },
226
+ causal: "correlation",
227
+ lifecycle: "state",
228
+ analyzerProjection: "timeline",
229
+ failureClasses: ["client-diagnostic"],
230
+ proofIds: ["client.markdown.layout.line"],
231
+ releaseImpact: "patch",
232
+ });
233
+ const CLIENT_DIAGNOSTIC_OPERATION = defineActivityLogOperation({
234
+ contractKind: "activity-log-operation",
235
+ schemaVersion: 1,
236
+ op: "client.diagnostic",
237
+ category: "diagnostic",
238
+ owner: "keiko-server",
239
+ emitter: "client-diagnostics-routes.logClientDiagnostic",
240
+ fields: {
241
+ codingIssueOutcome: {
242
+ type: "string",
243
+ dataClass: "closed-enum",
244
+ required: false,
245
+ values: ["multiple-issues"],
246
+ },
247
+ errorClass: { type: "string", dataClass: "error-kind", required: false, maxLength: 64 },
248
+ frames: {
249
+ type: "string-array",
250
+ dataClass: "safe-platform-class",
251
+ required: false,
252
+ maxLength: 512,
253
+ maxItems: 8,
254
+ },
255
+ causeChain: {
256
+ type: "string-array",
257
+ dataClass: "error-kind",
258
+ required: false,
259
+ maxLength: 128,
260
+ maxItems: 5,
261
+ },
262
+ moduleLoadFailure: {
263
+ type: "string",
264
+ dataClass: "closed-enum",
265
+ required: false,
266
+ values: ["git-sync", "git-history"],
267
+ },
268
+ clientNoteDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
269
+ readyState: { type: "integer", dataClass: "count", required: false },
270
+ clientKind: {
271
+ type: "string",
272
+ dataClass: "closed-enum",
273
+ required: false,
274
+ values: [
275
+ "boundary",
276
+ "unhandled-rejection",
277
+ "window-error",
278
+ "sse-error",
279
+ "voice-dialogue",
280
+ "voice-playback",
281
+ "markdown-layout",
282
+ "other",
283
+ ],
284
+ },
285
+ voiceCaptureError: {
286
+ type: "string",
287
+ dataClass: "closed-enum",
288
+ required: false,
289
+ values: [
290
+ "type-error",
291
+ "range-error",
292
+ "invalid-state",
293
+ "not-supported",
294
+ "security",
295
+ "not-readable",
296
+ "other",
297
+ ],
298
+ },
299
+ voiceCaptureReason: {
300
+ type: "string",
301
+ dataClass: "closed-enum",
302
+ required: false,
303
+ values: [
304
+ "vad-unavailable",
305
+ "speech-observed",
306
+ "renewal-unsupported",
307
+ "replacement-create-failed",
308
+ "replacement-start-failed",
309
+ "previous-stop-failed",
310
+ "replacement-stop-failed",
311
+ "unknown-failure",
312
+ ],
313
+ },
314
+ voiceDialogueStage: {
315
+ type: "string",
316
+ dataClass: "closed-enum",
317
+ required: false,
318
+ values: [
319
+ "started",
320
+ "preparation-failed",
321
+ "turn-submitted",
322
+ "queue-unavailable",
323
+ "answer-ready",
324
+ "delivery-failed",
325
+ "delivery-cancelled",
326
+ "delivery-rejected",
327
+ "capture-renewal-failed",
328
+ "playback-settled",
329
+ "playback-fallback",
330
+ "capture-bound-reached",
331
+ "capture-renewed",
332
+ "interrupted",
333
+ "stopped",
334
+ ],
335
+ },
336
+ action: {
337
+ type: "string",
338
+ dataClass: "closed-enum",
339
+ required: false,
340
+ values: ["review", "approve", "apply"],
341
+ },
342
+ disposition: {
343
+ type: "string",
344
+ dataClass: "closed-enum",
345
+ required: false,
346
+ values: ["accepted", "discarded"],
347
+ },
348
+ relationshipId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
349
+ snapshotDigest: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
350
+ proposalId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
351
+ outcome: {
352
+ type: "string",
353
+ dataClass: "closed-enum",
354
+ required: false,
355
+ values: ["preview", "approved", "observed", "blocked"],
356
+ },
357
+ repositoryId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
358
+ workspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
359
+ historyScopeReason: {
360
+ type: "string",
361
+ dataClass: "closed-enum",
362
+ required: false,
363
+ values: [
364
+ "repository-mismatch",
365
+ "workspace-mismatch",
366
+ "activation-cancelled",
367
+ "activation-superseded",
368
+ "detail-cleared",
369
+ ],
370
+ },
371
+ historyTaskId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
372
+ requestedScopeId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
373
+ currentScopeId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
374
+ requestedWorkspaceId: {
375
+ type: "string",
376
+ dataClass: "opaque-id",
377
+ required: false,
378
+ maxLength: 256,
379
+ },
380
+ currentWorkspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
381
+ targetWorkspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
382
+ clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
383
+ clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
384
+ clientPostsFailed: { type: "integer", dataClass: "count", required: false },
385
+ clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
386
+ clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
387
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
388
+ loss: { type: "string", dataClass: "loss-state", required: true },
389
+ },
390
+ causal: "correlation",
391
+ lifecycle: "failure",
392
+ analyzerProjection: "failure-cluster",
393
+ failureClasses: ["client-diagnostic"],
394
+ proofIds: ["client.diagnostic.line"],
395
+ releaseImpact: "patch",
396
+ });
397
+ // Kebab-case persisted vocabulary for the `stage` field below. The registration generator's closed
398
+ // value pattern refuses the space-separated wire ids (`ClientStageId`, e.g. "chat window chunk")
399
+ // outright, and every other closed-enum field this module persists is already kebab-case
400
+ // (`clientKind`, `action`, `disposition`, `outcome`). The `satisfies` clause keeps this map
401
+ // exhaustive: a new `ClientStageId` the contracts leaf adds without a matching entry here fails
402
+ // typecheck, not a gate.
403
+ const CLIENT_STAGE_ACTIVITY_LOG_IDS = [
404
+ "window-chunk",
405
+ "chat-window-chunk",
406
+ "editor-widget-chunk",
407
+ "files-widget-chunk",
408
+ "chat-bind",
409
+ ];
410
+ const CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID = {
411
+ "window chunk": "window-chunk",
412
+ "chat window chunk": "chat-window-chunk",
413
+ "editor widget chunk": "editor-widget-chunk",
414
+ "files widget chunk": "files-widget-chunk",
415
+ "chat bind": "chat-bind",
416
+ };
417
+ // KEIKO-3557: routine desktop-window stage evidence (`useWindowStageEvidence`, keiko-ui) rides its
418
+ // own lifecycle operations instead of the failure-shaped `CLIENT_DIAGNOSTIC_OPERATION` above — a
419
+ // stage that starts and settles is the ordinary case, not a warning. Modelled on the non-failure
420
+ // `coding-app-session.channel.opened`/`.closed` pair (codingAppSessionRoutes.ts): `start`/`end`
421
+ // lifecycle, `timeline` projection, no `errorKind`, at level info.
422
+ const CLIENT_STAGE_FIELDS = {
423
+ stage: {
424
+ type: "string",
425
+ dataClass: "closed-enum",
426
+ required: true,
427
+ values: CLIENT_STAGE_ACTIVITY_LOG_IDS,
428
+ },
429
+ ordinal: { type: "integer", dataClass: "count", required: true },
430
+ };
431
+ const CLIENT_STAGE_STARTED_OPERATION = defineActivityLogOperation({
432
+ contractKind: "activity-log-operation",
433
+ schemaVersion: 1,
434
+ op: "client.stage.started",
435
+ category: "diagnostic",
436
+ owner: "keiko-server",
437
+ emitter: "client-diagnostics-routes.logClientStageStarted",
438
+ fields: CLIENT_STAGE_FIELDS,
439
+ causal: "correlation",
440
+ lifecycle: "start",
441
+ analyzerProjection: "timeline",
442
+ failureClasses: ["client-stage"],
443
+ proofIds: ["client.stage.started.line"],
444
+ releaseImpact: "patch",
445
+ });
446
+ const CLIENT_STAGE_SETTLED_OPERATION = defineActivityLogOperation({
447
+ contractKind: "activity-log-operation",
448
+ schemaVersion: 1,
449
+ op: "client.stage.settled",
450
+ category: "diagnostic",
451
+ owner: "keiko-server",
452
+ emitter: "client-diagnostics-routes.logClientStageSettled",
453
+ fields: CLIENT_STAGE_FIELDS,
454
+ causal: "correlation",
455
+ lifecycle: "end",
456
+ analyzerProjection: "timeline",
457
+ failureClasses: ["client-stage"],
458
+ proofIds: ["client.stage.settled.line"],
459
+ releaseImpact: "patch",
460
+ });
461
+ // #3557 review: a restored window's binding outcome, with the closed shape of its persisted
462
+ // reference. `resolved` is the ordinary case at info; `target-missing` is the failure at warn,
463
+ // so a reference lost at persistence (`redacted`) and a target that is really gone (`uuid`) are
464
+ // told apart in the log instead of collapsing into one message digest with an unknown error kind.
465
+ // Literal here, as the registry generator requires; the assignment in `clientBindingFields` fails
466
+ // typecheck if the contracts leaf ever adds a surface or shape these do not list.
467
+ const CLIENT_BINDING_ACTIVITY_LOG_SURFACES = ["chat-window"];
468
+ const CLIENT_BINDING_ACTIVITY_LOG_REFERENCE_SHAPES = [
469
+ "uuid",
470
+ "opaque",
471
+ "redacted",
472
+ "fingerprint",
473
+ "user-selected",
474
+ ];
475
+ const CLIENT_BINDING_FIELDS = {
476
+ surface: {
477
+ type: "string",
478
+ dataClass: "closed-enum",
479
+ required: true,
480
+ values: CLIENT_BINDING_ACTIVITY_LOG_SURFACES,
481
+ },
482
+ referenceShape: {
483
+ type: "string",
484
+ dataClass: "closed-enum",
485
+ required: true,
486
+ values: CLIENT_BINDING_ACTIVITY_LOG_REFERENCE_SHAPES,
487
+ },
488
+ // The chat id trips the card-number heuristic: a raw UUID, or one found again after persistence
489
+ // redacted it (through its fingerprint, or chosen by the person).
490
+ heuristicFlagged: { type: "boolean", dataClass: "closed-enum", required: true },
491
+ // The digest of the window's own persisted id, computed here from the validated reference: two
492
+ // windows restored from one list answer stay apart, and a later failure of the same window
493
+ // carries the same digest (#3557 review).
494
+ bindingDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
495
+ // How many list loads decided the outcome, when more than the line names; the line is then
496
+ // `partial` with `loss: event-location-unknown`, never silently complete.
497
+ decidingLoadCount: { type: "integer", dataClass: "count", required: false },
498
+ // The other list loads a legacy binding's verdict depended on, beyond the line's correlation id.
499
+ relatedCorrelationIds: {
500
+ type: "string-array",
501
+ dataClass: "opaque-id",
502
+ required: false,
503
+ maxLength: 128,
504
+ maxItems: 63,
505
+ },
506
+ };
507
+ const CLIENT_BINDING_TARGET_MISSING_FIELDS = {
508
+ ...CLIENT_BINDING_FIELDS,
509
+ // A window whose fingerprint names no listed chat any more: that fingerprint, so a chat the
510
+ // lookup found gone is told apart from a reference that never named one (#3557 review).
511
+ targetFingerprint: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
512
+ };
513
+ const CLIENT_BINDING_RESOLVED_FIELDS = {
514
+ ...CLIENT_BINDING_FIELDS,
515
+ // A binding found again after redaction (through its fingerprint, or chosen by the person): the
516
+ // fingerprint of the chat it bound to, the one the window persists, so two choices from one list
517
+ // answer stay apart (#3557 review).
518
+ targetFingerprint: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
519
+ };
520
+ const CLIENT_BINDING_RESOLVED_OPERATION = defineActivityLogOperation({
521
+ contractKind: "activity-log-operation",
522
+ schemaVersion: 1,
523
+ op: "client.binding.resolved",
524
+ category: "diagnostic",
525
+ owner: "keiko-server",
526
+ emitter: "client-diagnostics-routes.logClientBindingResolved",
527
+ fields: CLIENT_BINDING_RESOLVED_FIELDS,
528
+ causal: "correlation",
529
+ lifecycle: "end",
530
+ analyzerProjection: "timeline",
531
+ failureClasses: ["client-binding"],
532
+ proofIds: ["client.binding.resolved.line"],
533
+ releaseImpact: "patch",
534
+ });
535
+ const CLIENT_BINDING_TARGET_MISSING_OPERATION = defineActivityLogOperation({
536
+ contractKind: "activity-log-operation",
537
+ schemaVersion: 1,
538
+ op: "client.binding.target-missing",
539
+ category: "diagnostic",
540
+ owner: "keiko-server",
541
+ emitter: "client-diagnostics-routes.logClientBindingTargetMissing",
542
+ fields: CLIENT_BINDING_TARGET_MISSING_FIELDS,
543
+ causal: "correlation",
544
+ lifecycle: "failure",
545
+ analyzerProjection: "failure-cluster",
546
+ failureClasses: ["client-binding"],
547
+ proofIds: ["client.binding.target-missing.line"],
548
+ releaseImpact: "patch",
549
+ });
550
+ // #3557 review: a window whose chat id persistence redacted without a fingerprint listed the chats
551
+ // it may have shown, for the person to choose from. The line names the list loads that answered, how
552
+ // many chats were offered and how many of those read alike and show a fingerprint reference, zero
553
+ // included, so the recovery state the person saw is reconstructable.
554
+ const CLIENT_BINDING_CANDIDATES_OFFERED_OPERATION = defineActivityLogOperation({
555
+ contractKind: "activity-log-operation",
556
+ schemaVersion: 1,
557
+ op: "client.binding.candidates-offered",
558
+ category: "diagnostic",
559
+ owner: "keiko-server",
560
+ emitter: "client-diagnostics-routes.logClientBindingCandidatesOffered",
561
+ fields: {
562
+ ...CLIENT_BINDING_FIELDS,
563
+ candidateCount: { type: "integer", dataClass: "count", required: true },
564
+ disambiguatedCount: { type: "integer", dataClass: "count", required: true },
565
+ },
566
+ causal: "correlation",
567
+ lifecycle: "state",
568
+ analyzerProjection: "timeline",
569
+ failureClasses: ["client-binding"],
570
+ proofIds: ["client.binding.candidates-offered.line"],
571
+ releaseImpact: "patch",
572
+ });
573
+ const CLIENT_BINDING_CHOICE_FIELDS = {
574
+ ...CLIENT_BINDING_FIELDS,
575
+ // The chat the person decided about, by the fingerprint the window persists, never its id.
576
+ targetFingerprint: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
577
+ };
578
+ // #3557 review: the chat a person chose for such a window stays a choice until they keep it; they
579
+ // can withdraw it and choose again. Each decision is a state on the binding's timeline and names the
580
+ // chat it concerns, so which conversation the window ended with is reconstructable.
581
+ const CLIENT_BINDING_CHOICE_KEPT_OPERATION = defineActivityLogOperation({
582
+ contractKind: "activity-log-operation",
583
+ schemaVersion: 1,
584
+ op: "client.binding.choice-kept",
585
+ category: "diagnostic",
586
+ owner: "keiko-server",
587
+ emitter: "client-diagnostics-routes.logClientBindingChoiceKept",
588
+ fields: CLIENT_BINDING_CHOICE_FIELDS,
589
+ causal: "correlation",
590
+ lifecycle: "state",
591
+ analyzerProjection: "timeline",
592
+ failureClasses: ["client-binding"],
593
+ proofIds: ["client.binding.choice-kept.line"],
594
+ releaseImpact: "patch",
595
+ });
596
+ const CLIENT_BINDING_CHOICE_WITHDRAWN_OPERATION = defineActivityLogOperation({
597
+ contractKind: "activity-log-operation",
598
+ schemaVersion: 1,
599
+ op: "client.binding.choice-withdrawn",
600
+ category: "diagnostic",
601
+ owner: "keiko-server",
602
+ emitter: "client-diagnostics-routes.logClientBindingChoiceWithdrawn",
603
+ fields: CLIENT_BINDING_CHOICE_FIELDS,
604
+ causal: "correlation",
605
+ lifecycle: "state",
606
+ analyzerProjection: "timeline",
607
+ failureClasses: ["client-binding"],
608
+ proofIds: ["client.binding.choice-withdrawn.line"],
609
+ releaseImpact: "patch",
610
+ });
611
+ // #3557 review: a read a restarted BFF denied is repaired and replayed once (keiko-ui http.ts). The
612
+ // line sits on the denied request's timeline (the replay reuses its id) and names the repair request,
613
+ // so the self-heal, or the reason it did not happen, is reconstructable from the log alone.
614
+ const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_FAILURES = [
615
+ "replay-failed",
616
+ "replay-skipped",
617
+ "repair-failed",
618
+ ];
619
+ const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_RECOVERIES = ["replayed", "stream-repaired"];
620
+ const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS = ["run-events", "shared-event-source"];
621
+ const CLIENT_SESSION_REPAIR_RECOVERED_OPERATION = defineActivityLogOperation({
622
+ contractKind: "activity-log-operation",
623
+ schemaVersion: 1,
624
+ op: "client.session-repair.recovered",
625
+ category: "diagnostic",
626
+ owner: "keiko-server",
627
+ emitter: "client-diagnostics-routes.logClientSessionRepairRecovered",
628
+ fields: {
629
+ outcome: {
630
+ type: "string",
631
+ dataClass: "closed-enum",
632
+ required: true,
633
+ values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_RECOVERIES,
634
+ },
635
+ // The stream whose failure streak asked for the repair; a stream has no readable request id.
636
+ stream: {
637
+ type: "string",
638
+ dataClass: "closed-enum",
639
+ required: false,
640
+ values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
641
+ },
642
+ repairCorrelationId: {
643
+ type: "string",
644
+ dataClass: "opaque-id",
645
+ required: true,
646
+ maxLength: 128,
647
+ },
648
+ },
649
+ causal: "correlation",
650
+ lifecycle: "end",
651
+ analyzerProjection: "timeline",
652
+ failureClasses: ["client-session-repair"],
653
+ proofIds: ["client.session-repair.recovered.line"],
654
+ releaseImpact: "patch",
655
+ });
656
+ // #3557 review: a stream's repair request was acknowledged. The endpoint acknowledges whether or
657
+ // not it issued a cookie, so this is a state, not the recovery: the stream reports
658
+ // `stream-repaired` once it opens again, and a streak that keeps failing after this line shows a
659
+ // repair that did not restore it.
660
+ const CLIENT_SESSION_REPAIR_ACKNOWLEDGED_OPERATION = defineActivityLogOperation({
661
+ contractKind: "activity-log-operation",
662
+ schemaVersion: 1,
663
+ op: "client.session-repair.acknowledged",
664
+ category: "diagnostic",
665
+ owner: "keiko-server",
666
+ emitter: "client-diagnostics-routes.logClientSessionRepairAcknowledged",
667
+ fields: {
668
+ stream: {
669
+ type: "string",
670
+ dataClass: "closed-enum",
671
+ required: true,
672
+ values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
673
+ },
674
+ repairCorrelationId: {
675
+ type: "string",
676
+ dataClass: "opaque-id",
677
+ required: true,
678
+ maxLength: 128,
679
+ },
680
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
681
+ loss: { type: "string", dataClass: "loss-state", required: true },
682
+ },
683
+ causal: "correlation",
684
+ lifecycle: "state",
685
+ analyzerProjection: "timeline",
686
+ failureClasses: ["client-session-repair"],
687
+ proofIds: ["client.session-repair.acknowledged.line"],
688
+ releaseImpact: "patch",
689
+ });
690
+ const CLIENT_SESSION_REPAIR_FAILED_OPERATION = defineActivityLogOperation({
691
+ contractKind: "activity-log-operation",
692
+ schemaVersion: 1,
693
+ op: "client.session-repair.failed",
694
+ category: "diagnostic",
695
+ owner: "keiko-server",
696
+ emitter: "client-diagnostics-routes.logClientSessionRepairFailed",
697
+ fields: {
698
+ outcome: {
699
+ type: "string",
700
+ dataClass: "closed-enum",
701
+ required: true,
702
+ values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_FAILURES,
703
+ },
704
+ stream: {
705
+ type: "string",
706
+ dataClass: "closed-enum",
707
+ required: false,
708
+ values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
709
+ },
710
+ repairCorrelationId: {
711
+ type: "string",
712
+ dataClass: "opaque-id",
713
+ required: true,
714
+ maxLength: 128,
715
+ },
716
+ },
717
+ causal: "correlation",
718
+ lifecycle: "failure",
719
+ analyzerProjection: "failure-cluster",
720
+ failureClasses: ["client-session-repair"],
721
+ proofIds: ["client.session-repair.failed.line"],
722
+ releaseImpact: "patch",
723
+ });
45
724
  // One declaration for production and the test reset below — duplicating these three literals let
46
725
  // them drift, so the test reset silently exercised a limiter with different bounds than production.
47
726
  const CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG = {
@@ -51,43 +730,271 @@ const CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG = {
51
730
  };
52
731
  let rateLimiter = createInlineCompletionRateLimiter(CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG);
53
732
  const DROP_NOTICE_WINDOW_MS = 60_000;
54
- let dropNotice = { lastAt: null, suppressed: 0 };
55
- /** Test-only: puts the shared rate limiter and drop-notice counter back to a clean start. */
733
+ function quietThrottle() {
734
+ return { lastAt: null, suppressed: 0 };
735
+ }
736
+ const CLIENT_DIAGNOSTIC_REJECTIONS = [
737
+ "invalid-json",
738
+ "invalid-shape",
739
+ "too-large",
740
+ "cancelled",
741
+ ];
742
+ function quietRejectionThrottles() {
743
+ return new Map(CLIENT_DIAGNOSTIC_REJECTIONS.map((rejection) => [rejection, quietThrottle()]));
744
+ }
745
+ // One notice throttle per budget: routine overflow never suppresses the notice of a dropped
746
+ // failure report, which then keeps its own correlation id and budget class.
747
+ let dropNotices = {
748
+ failure: quietThrottle(),
749
+ routine: quietThrottle(),
750
+ };
751
+ let rejectionNotices = quietRejectionThrottles();
752
+ /** Test-only: puts the shared rate limiter and notice counters back to a clean start. */
56
753
  export function resetClientDiagnosticsIngestStateForTests() {
57
754
  rateLimiter = createInlineCompletionRateLimiter(CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG);
58
- dropNotice = { lastAt: null, suppressed: 0 };
755
+ dropNotices = { failure: quietThrottle(), routine: quietThrottle() };
756
+ rejectionNotices = quietRejectionThrottles();
59
757
  }
60
- function dropNoticeThrottled(now) {
61
- if (dropNotice.lastAt === null)
62
- return false;
63
- const elapsed = now - dropNotice.lastAt;
64
- return elapsed >= 0 && elapsed < DROP_NOTICE_WINDOW_MS;
758
+ function rejectionThrottle(rejection) {
759
+ let throttle = rejectionNotices.get(rejection);
760
+ if (throttle === undefined) {
761
+ throttle = quietThrottle();
762
+ rejectionNotices.set(rejection, throttle);
763
+ }
764
+ return throttle;
765
+ }
766
+ // True when this occurrence falls inside the open window: it is counted instead of logged.
767
+ function suppressedByThrottle(throttle, now) {
768
+ if (throttle.lastAt !== null) {
769
+ const elapsed = now - throttle.lastAt;
770
+ if (elapsed >= 0 && elapsed < DROP_NOTICE_WINDOW_MS) {
771
+ throttle.suppressed += 1;
772
+ return true;
773
+ }
774
+ }
775
+ return false;
776
+ }
777
+ // Opens a new window and hands back the count the previous window suppressed.
778
+ function openThrottleWindow(throttle, now) {
779
+ const suppressed = throttle.suppressed;
780
+ throttle.lastAt = now;
781
+ throttle.suppressed = 0;
782
+ return suppressed;
783
+ }
784
+ function writeRateLimitedNotice(correlationId, budget, suppressed, trigger) {
785
+ getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_RATE_LIMITED_OPERATION, { correlationId: correlationIdOrUnknown(correlationId), errorKind: "rate-limited" }, {
786
+ ...(suppressed > 0 ? { suppressedDrops: suppressed } : {}),
787
+ budget,
788
+ trigger,
789
+ completeness: "complete",
790
+ loss: "event-dropped",
791
+ }));
65
792
  }
66
793
  // Reports a rate-limited drop exactly once per window, carrying how many further drops that same
67
794
  // window suppressed — never the report content, which was never admitted past the limiter.
68
- function noticeRateLimitedDrop(now, correlationId) {
69
- if (dropNoticeThrottled(now)) {
70
- dropNotice = { lastAt: dropNotice.lastAt, suppressed: dropNotice.suppressed + 1 };
795
+ function noticeRateLimitedDrop(budget, now, correlationId) {
796
+ recordActivityLogLoss("client-rate-suppressed");
797
+ const throttle = dropNotices[budget];
798
+ if (suppressedByThrottle(throttle, now))
799
+ return;
800
+ writeRateLimitedNotice(correlationId, budget, openThrottleWindow(throttle, now), "window");
801
+ }
802
+ function writeRejectedNotice(correlationId, rejection, suppressed, trigger) {
803
+ getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_REJECTED_OPERATION, { correlationId: correlationIdOrUnknown(correlationId), errorKind: "invalid-request" }, {
804
+ rejection,
805
+ ...(suppressed > 0 ? { suppressedRejections: suppressed } : {}),
806
+ trigger,
807
+ completeness: "complete",
808
+ loss: "event-dropped",
809
+ }));
810
+ }
811
+ // Reports a refused report once per window with the closed refusal reason; the refused bytes were
812
+ // never parsed into an event and never reach the log.
813
+ function noticeRejectedReport(rejection, correlationId) {
814
+ recordActivityLogLoss("client-rejected");
815
+ const now = Date.now();
816
+ const throttle = rejectionThrottle(rejection);
817
+ if (suppressedByThrottle(throttle, now))
71
818
  return;
819
+ writeRejectedNotice(correlationId, rejection, openThrottleWindow(throttle, now), "window");
820
+ }
821
+ /**
822
+ * Writes the counts the open throttle windows are still holding. Called once on the shutdown path
823
+ * before the process-exit evidence, so a storm that ended in a quiet window is never lost with the
824
+ * process: the trailing counts reach the log instead of waiting for a next window that never comes.
825
+ */
826
+ export function flushClientDiagnosticsIngestCounts() {
827
+ for (const budget of ["failure", "routine"]) {
828
+ const drops = openThrottleWindow(dropNotices[budget], null);
829
+ if (drops > 0)
830
+ writeRateLimitedNotice(undefined, budget, drops, "shutdown-flush");
831
+ }
832
+ for (const [rejection, throttle] of rejectionNotices) {
833
+ const suppressed = openThrottleWindow(throttle, null);
834
+ if (suppressed > 0)
835
+ writeRejectedNotice(undefined, rejection, suppressed, "shutdown-flush");
836
+ }
837
+ }
838
+ export function clientDiagnosticNoteDigest(message) {
839
+ return sha256Hex(`keiko-client-diagnostic-note-v1\0${message}`);
840
+ }
841
+ const CLIENT_DIAGNOSTIC_ERROR_KINDS = {
842
+ boundary: "internal",
843
+ "unhandled-rejection": "internal",
844
+ "window-error": "internal",
845
+ "sse-error": "unavailable",
846
+ "voice-dialogue": "internal",
847
+ "voice-playback": "unavailable",
848
+ "markdown-layout": "unknown",
849
+ other: "unknown",
850
+ };
851
+ // The browser's own delivery loss, as closed counts: each is added to the process loss ledger and
852
+ // projected onto the `client.diagnostic` line under its own count field.
853
+ const CLIENT_LOSS_PROJECTION = [
854
+ ["bufferEvicted", "client-buffer-evicted", "clientBufferEvicted"],
855
+ ["postsThrottled", "client-post-throttled", "clientPostsThrottled"],
856
+ ["postsFailed", "client-post-failed", "clientPostsFailed"],
857
+ ["rejectionsSuppressed", "client-rejection-suppressed", "clientRejectionsSuppressed"],
858
+ ["errorsSuppressed", "client-error-suppressed", "clientErrorsSuppressed"],
859
+ ];
860
+ function projectClientLoss(loss, extra) {
861
+ if (loss === undefined)
862
+ return;
863
+ for (const [key, reason, field] of CLIENT_LOSS_PROJECTION) {
864
+ const count = loss[key];
865
+ if (count === undefined || count === 0)
866
+ continue;
867
+ recordActivityLogLoss(reason, count);
868
+ extra[field] = count;
72
869
  }
73
- const suppressed = dropNotice.suppressed;
74
- dropNotice = { lastAt: now, suppressed: 0 };
75
- getServerLogger().warn({
76
- category: "diagnostic",
77
- op: "client.diagnostic.rate-limited",
78
- correlationId: correlationIdOrUnknown(correlationId),
79
- ...(suppressed > 0 ? { extra: { suppressedDrops: suppressed } } : {}),
80
- });
81
- }
82
- // Projects the validated request onto the activity log. `message` is admitted only as
83
- // `extra.clientNote` (see module header); `readyState`/`kind` ride along as bounded, closed-shape
84
- // fields the value guards pass through unchanged.
870
+ }
871
+ function clientDiagnosticErrorKind(kind) {
872
+ return kind === undefined ? "unknown" : CLIENT_DIAGNOSTIC_ERROR_KINDS[kind];
873
+ }
874
+ const VOICE_FAILURE_STAGES = new Set([
875
+ "preparation-failed",
876
+ "queue-unavailable",
877
+ "delivery-failed",
878
+ "delivery-cancelled",
879
+ "delivery-rejected",
880
+ "capture-renewal-failed",
881
+ ]);
882
+ function clientDiagnosticCorrelation(request, correlationId) {
883
+ const parent = request.parentCorrelationId;
884
+ return {
885
+ correlationId,
886
+ ...(parent !== undefined && isValidCorrelationId(parent) && parent !== correlationId
887
+ ? { parentCorrelationId: parent }
888
+ : {}),
889
+ };
890
+ }
891
+ function logVoiceDialogueStage(request, correlationId) {
892
+ const stage = request.voiceDialogueStage;
893
+ if (stage === undefined || VOICE_FAILURE_STAGES.has(stage))
894
+ return false;
895
+ const extra = {
896
+ voiceDialogueStage: stage,
897
+ ...(request.voiceCaptureError === undefined
898
+ ? {}
899
+ : { voiceCaptureError: request.voiceCaptureError }),
900
+ ...(request.voiceCaptureReason === undefined
901
+ ? {}
902
+ : { voiceCaptureReason: request.voiceCaptureReason }),
903
+ completeness: "complete",
904
+ loss: "none",
905
+ };
906
+ projectClientLoss(request.loss, extra);
907
+ getServerLogger().info(activityLogEvent(CLIENT_VOICE_DIALOGUE_OPERATION, clientDiagnosticCorrelation(request, correlationId), extra));
908
+ return true;
909
+ }
910
+ function logMarkdownLayout(request, correlationId) {
911
+ if (request.kind !== "markdown-layout")
912
+ return false;
913
+ const extra = {
914
+ listNumbering: "source-start",
915
+ ...(request.markdownLayout === undefined
916
+ ? {}
917
+ : {
918
+ ...(request.markdownLayout.messageId === undefined
919
+ ? {}
920
+ : { messageId: request.markdownLayout.messageId }),
921
+ listStart: request.markdownLayout.listStart,
922
+ listIndex: request.markdownLayout.listIndex,
923
+ depth: request.markdownLayout.depth,
924
+ }),
925
+ completeness: "complete",
926
+ loss: "none",
927
+ };
928
+ projectClientLoss(request.loss, extra);
929
+ getServerLogger().info(activityLogEvent(CLIENT_MARKDOWN_LAYOUT_OPERATION, clientDiagnosticCorrelation(request, correlationId), extra));
930
+ return true;
931
+ }
932
+ // Projects the validated request onto the activity log. `message` is admitted only as a digest;
933
+ // `readyState`/`kind` ride along as bounded, closed-shape fields.
934
+ // The class the page classified wins (a refused connection is `unavailable`, #3557); otherwise the
935
+ // server derives one from the report's closed context.
936
+ function requestDiagnosticErrorKind(request) {
937
+ if (request.errorKind !== undefined)
938
+ return request.errorKind;
939
+ if (request.moduleLoadFailure !== undefined) {
940
+ const errorClass = request.errorEvidence?.errorClass;
941
+ return errorClass === "ChunkLoadError" || errorClass === "NetworkError"
942
+ ? "unavailable"
943
+ : "internal";
944
+ }
945
+ if (request.voiceDialogueStage === "delivery-cancelled")
946
+ return "cancelled";
947
+ if (request.voiceDialogueStage === "delivery-rejected")
948
+ return "unavailable";
949
+ return clientDiagnosticErrorKind(request.kind);
950
+ }
951
+ function projectClientFailure(request, extra) {
952
+ if (request.moduleLoadFailure !== undefined)
953
+ extra.moduleLoadFailure = request.moduleLoadFailure;
954
+ if (request.errorEvidence !== undefined) {
955
+ extra.errorClass = request.errorEvidence.errorClass;
956
+ extra.frames = request.errorEvidence.frames;
957
+ extra.causeChain = request.errorEvidence.causeChain;
958
+ }
959
+ if (request.voiceCaptureError !== undefined)
960
+ extra.voiceCaptureError = request.voiceCaptureError;
961
+ if (request.voiceCaptureReason !== undefined)
962
+ extra.voiceCaptureReason = request.voiceCaptureReason;
963
+ }
964
+ function projectCodingContext(request, extra) {
965
+ if (request.codingIssueOutcome !== undefined)
966
+ extra.codingIssueOutcome = request.codingIssueOutcome;
967
+ const scope = request.codingHistoryScope;
968
+ if (scope === undefined)
969
+ return;
970
+ extra.historyScopeReason = scope.reason;
971
+ extra.historyTaskId = scope.taskId;
972
+ extra.requestedScopeId = scope.requestedScopeId;
973
+ extra.currentScopeId = scope.currentScopeId;
974
+ if (scope.requestedWorkspaceId !== undefined)
975
+ extra.requestedWorkspaceId = scope.requestedWorkspaceId;
976
+ if (scope.currentWorkspaceId !== undefined)
977
+ extra.currentWorkspaceId = scope.currentWorkspaceId;
978
+ if (scope.targetWorkspaceId !== undefined)
979
+ extra.targetWorkspaceId = scope.targetWorkspaceId;
980
+ }
85
981
  function logClientDiagnostic(request, ingestCorrelationId) {
86
- const extra = { clientNote: request.message };
982
+ const correlationId = request.correlationId !== undefined && isValidCorrelationId(request.correlationId)
983
+ ? request.correlationId
984
+ : correlationIdOrUnknown(ingestCorrelationId);
985
+ if (logVoiceDialogueStage(request, correlationId) || logMarkdownLayout(request, correlationId))
986
+ return;
987
+ const extra = {
988
+ clientNoteDigest: clientDiagnosticNoteDigest(request.message),
989
+ };
990
+ projectClientFailure(request, extra);
87
991
  if (request.readyState !== undefined)
88
992
  extra.readyState = request.readyState;
89
993
  if (request.kind !== undefined)
90
994
  extra.clientKind = request.kind;
995
+ if (request.voiceDialogueStage !== undefined) {
996
+ extra.voiceDialogueStage = request.voiceDialogueStage;
997
+ }
91
998
  if (request.gitChangeDescription !== undefined) {
92
999
  extra.action = request.gitChangeDescription.action;
93
1000
  extra.disposition = request.gitChangeDescription.disposition;
@@ -100,16 +1007,252 @@ function logClientDiagnostic(request, ingestCorrelationId) {
100
1007
  extra.repositoryId = request.workspaceTrustBinding.repositoryId;
101
1008
  extra.workspaceId = request.workspaceTrustBinding.workspaceId;
102
1009
  }
103
- const correlationId = request.correlationId !== undefined && isValidCorrelationId(request.correlationId)
104
- ? request.correlationId
1010
+ projectCodingContext(request, extra);
1011
+ projectClientLoss(request.loss, extra);
1012
+ extra.completeness = "complete";
1013
+ extra.loss = "none";
1014
+ getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_OPERATION, {
1015
+ ...clientDiagnosticCorrelation(request, correlationId),
1016
+ errorKind: requestDiagnosticErrorKind(request),
1017
+ }, extra));
1018
+ }
1019
+ function logClientStageStarted(request, correlationId) {
1020
+ getServerLogger().info(activityLogEvent(CLIENT_STAGE_STARTED_OPERATION, { correlationId }, {
1021
+ stage: CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID[request.stage],
1022
+ ordinal: request.ordinal,
1023
+ completeness: "complete",
1024
+ loss: "none",
1025
+ }));
1026
+ }
1027
+ function logClientStageSettled(request, correlationId) {
1028
+ getServerLogger().info(activityLogEvent(CLIENT_STAGE_SETTLED_OPERATION, { correlationId, durationMs: request.durationMs }, {
1029
+ stage: CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID[request.stage],
1030
+ ordinal: request.ordinal,
1031
+ completeness: "complete",
1032
+ loss: "none",
1033
+ }));
1034
+ }
1035
+ // A client-supplied id when it is a safe correlation id, else the ingest POST's own.
1036
+ function reportCorrelationId(clientCorrelationId, ingestCorrelationId) {
1037
+ return clientCorrelationId !== undefined && isValidCorrelationId(clientCorrelationId)
1038
+ ? clientCorrelationId
105
1039
  : correlationIdOrUnknown(ingestCorrelationId);
106
- getServerLogger().warn({
107
- category: "diagnostic",
108
- op: "client.diagnostic",
109
- correlationId,
110
- ...(request.kind === undefined ? {} : { errorKind: request.kind }),
111
- extra,
112
- });
1040
+ }
1041
+ // Projects a validated stage report onto its own lifecycle operation — never the failure-shaped
1042
+ // `client.diagnostic` above. Root cause of KEIKO-3557: 416 of 449 `client.diagnostic` lines in a
1043
+ // live log were exactly this routine evidence, all persisted as warn/unknown and burying the rare
1044
+ // real failures. Both phases of one mounted stage carry the same client-minted correlation id, so the
1045
+ // pair joins in the log even when another tab reuses the stage and ordinal (#3557 review).
1046
+ function logClientStage(request, ingestCorrelationId) {
1047
+ const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
1048
+ if (request.phase === "started") {
1049
+ logClientStageStarted(request, correlationId);
1050
+ return;
1051
+ }
1052
+ logClientStageSettled(request, correlationId);
1053
+ }
1054
+ // The deciding list loads the line can name: the primary id when it is a safe correlation id, and
1055
+ // each distinct safe related id besides it. An id the server refuses, or one named twice, never
1056
+ // counts as named; a malformed one is dropped rather than refusing the line (#3557 review).
1057
+ function namedDecidingLoads(request) {
1058
+ const { correlationId } = request;
1059
+ const primary = correlationId !== undefined && isValidCorrelationId(correlationId) ? correlationId : undefined;
1060
+ const related = [...new Set(request.relatedCorrelationIds ?? [])].filter((id) => id !== primary && isValidCorrelationId(id));
1061
+ return { primary, related };
1062
+ }
1063
+ // How many loads decided the outcome: the reported total, or else every distinct id the report
1064
+ // declared, valid or not.
1065
+ function decidingLoadTotal(request) {
1066
+ if (request.decidingLoadCount !== undefined)
1067
+ return request.decidingLoadCount;
1068
+ return new Set([
1069
+ ...(request.correlationId === undefined ? [] : [request.correlationId]),
1070
+ ...(request.relatedCorrelationIds ?? []),
1071
+ ]).size;
1072
+ }
1073
+ export function clientBindingDigest(windowRef) {
1074
+ return sha256Hex(`keiko-client-binding-v1\0${windowRef}`);
1075
+ }
1076
+ // Every deciding list load is named when the line can hold it (up to 64). When more loads decided
1077
+ // the outcome than the line names, the missing ones are classified loss, not a quiet count: the
1078
+ // line is `partial` with `loss: event-location-unknown`, and the total is kept (#3557 review).
1079
+ function clientBindingFields(request) {
1080
+ const { primary, related } = namedDecidingLoads(request);
1081
+ const named = (primary === undefined ? 0 : 1) + related.length;
1082
+ const deciding = decidingLoadTotal(request);
1083
+ const unnamed = deciding > named;
1084
+ return {
1085
+ surface: request.surface,
1086
+ referenceShape: request.referenceShape,
1087
+ heuristicFlagged: request.heuristicFlagged,
1088
+ bindingDigest: clientBindingDigest(request.windowRef),
1089
+ ...(related.length === 0 ? {} : { relatedCorrelationIds: related }),
1090
+ ...(unnamed ? { decidingLoadCount: deciding } : {}),
1091
+ completeness: unnamed ? "partial" : "complete",
1092
+ loss: unnamed ? "event-location-unknown" : "none",
1093
+ };
1094
+ }
1095
+ // The chat a restored binding names, only by its fingerprint and only when the report carries one.
1096
+ function targetFingerprintField(request) {
1097
+ return request.targetFingerprint === undefined
1098
+ ? {}
1099
+ : { targetFingerprint: request.targetFingerprint };
1100
+ }
1101
+ function logClientBindingResolved(request, correlationId) {
1102
+ getServerLogger().info(activityLogEvent(CLIENT_BINDING_RESOLVED_OPERATION, { correlationId }, { ...clientBindingFields(request), ...targetFingerprintField(request) }));
1103
+ }
1104
+ function isClientBindingOffer(request) {
1105
+ return (request.outcome === "candidates-offered" &&
1106
+ request.candidateCount !== undefined &&
1107
+ request.disambiguatedCount !== undefined);
1108
+ }
1109
+ function isClientBindingChoiceDecision(request) {
1110
+ return ((request.outcome === "choice-kept" || request.outcome === "choice-withdrawn") &&
1111
+ request.targetFingerprint !== undefined);
1112
+ }
1113
+ function logClientBindingCandidatesOffered(request, correlationId) {
1114
+ getServerLogger().info(activityLogEvent(CLIENT_BINDING_CANDIDATES_OFFERED_OPERATION, { correlationId }, {
1115
+ ...clientBindingFields(request),
1116
+ candidateCount: request.candidateCount,
1117
+ disambiguatedCount: request.disambiguatedCount,
1118
+ }));
1119
+ }
1120
+ function logClientBindingChoiceKept(request, correlationId) {
1121
+ getServerLogger().info(activityLogEvent(CLIENT_BINDING_CHOICE_KEPT_OPERATION, { correlationId }, { ...clientBindingFields(request), targetFingerprint: request.targetFingerprint }));
1122
+ }
1123
+ function logClientBindingChoiceWithdrawn(request, correlationId) {
1124
+ getServerLogger().info(activityLogEvent(CLIENT_BINDING_CHOICE_WITHDRAWN_OPERATION, { correlationId }, { ...clientBindingFields(request), targetFingerprint: request.targetFingerprint }));
1125
+ }
1126
+ function logClientBindingChoiceDecision(request, correlationId) {
1127
+ if (request.outcome === "choice-kept") {
1128
+ logClientBindingChoiceKept(request, correlationId);
1129
+ return;
1130
+ }
1131
+ logClientBindingChoiceWithdrawn(request, correlationId);
1132
+ }
1133
+ function logClientBindingTargetMissing(request, correlationId) {
1134
+ getServerLogger().warn(activityLogEvent(CLIENT_BINDING_TARGET_MISSING_OPERATION, { correlationId, errorKind: "unavailable" }, { ...clientBindingFields(request), ...targetFingerprintField(request) }));
1135
+ }
1136
+ // The binding line carries the correlation id of the request whose answer decided it (the target
1137
+ // list load), so `keiko support analyze --correlation-id` reads that load and the outcome as one
1138
+ // timeline. Without a valid one, the ingest POST's own id applies.
1139
+ function logClientBinding(request, ingestCorrelationId) {
1140
+ const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
1141
+ if (request.outcome === "resolved") {
1142
+ logClientBindingResolved(request, correlationId);
1143
+ return;
1144
+ }
1145
+ if (isClientBindingOffer(request)) {
1146
+ logClientBindingCandidatesOffered(request, correlationId);
1147
+ return;
1148
+ }
1149
+ if (isClientBindingChoiceDecision(request)) {
1150
+ logClientBindingChoiceDecision(request, correlationId);
1151
+ return;
1152
+ }
1153
+ logClientBindingTargetMissing(request, correlationId);
1154
+ }
1155
+ // Every repair report names its repair request (the ingest contract refuses one that does not), so
1156
+ // the line always links the repair attempt it describes (#3557 review).
1157
+ function sessionRepairCorrelation(request) {
1158
+ return {
1159
+ repairCorrelationId: request.repairCorrelationId,
1160
+ ...(request.stream === undefined ? {} : { stream: request.stream }),
1161
+ };
1162
+ }
1163
+ function logClientSessionRepairRecovered(request, correlationId) {
1164
+ getServerLogger().info(activityLogEvent(CLIENT_SESSION_REPAIR_RECOVERED_OPERATION, { correlationId }, {
1165
+ outcome: request.outcome,
1166
+ ...sessionRepairCorrelation(request),
1167
+ completeness: "complete",
1168
+ loss: "none",
1169
+ }));
1170
+ }
1171
+ function logClientSessionRepairAcknowledged(request, correlationId) {
1172
+ getServerLogger().info(activityLogEvent(CLIENT_SESSION_REPAIR_ACKNOWLEDGED_OPERATION, { correlationId }, {
1173
+ ...sessionRepairCorrelation(request),
1174
+ stream: request.stream,
1175
+ completeness: "complete",
1176
+ loss: "none",
1177
+ }));
1178
+ }
1179
+ // The class of the step that actually failed, as the browser classified it. A skipped replay
1180
+ // leaves the original refusal in place, an authority denial; any other outcome without a class is
1181
+ // unknown rather than guessed (#3557 review).
1182
+ function sessionRepairErrorKind(request) {
1183
+ if (request.errorKind !== undefined)
1184
+ return request.errorKind;
1185
+ return request.outcome === "replay-skipped" ? "authority-denied" : "unknown";
1186
+ }
1187
+ function logClientSessionRepairFailed(request, correlationId) {
1188
+ getServerLogger().warn(activityLogEvent(CLIENT_SESSION_REPAIR_FAILED_OPERATION, { correlationId, errorKind: sessionRepairErrorKind(request) }, {
1189
+ outcome: request.outcome,
1190
+ ...sessionRepairCorrelation(request),
1191
+ completeness: "complete",
1192
+ loss: "none",
1193
+ }));
1194
+ }
1195
+ // The line joins the denied request's own timeline (the replay reused its id), or a stream's
1196
+ // failure streak.
1197
+ function logClientSessionRepair(request, ingestCorrelationId) {
1198
+ const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
1199
+ const { outcome, stream } = request;
1200
+ if (outcome === "replayed" || outcome === "stream-repaired") {
1201
+ logClientSessionRepairRecovered({ ...request, outcome }, correlationId);
1202
+ return;
1203
+ }
1204
+ if (outcome === "repair-acknowledged") {
1205
+ // The contract guard refuses an acknowledged repair that names no stream.
1206
+ if (stream !== undefined)
1207
+ logClientSessionRepairAcknowledged({ ...request, stream }, correlationId);
1208
+ return;
1209
+ }
1210
+ logClientSessionRepairFailed({ ...request, outcome }, correlationId);
1211
+ }
1212
+ function classifyClientReport(value) {
1213
+ if (isClientStageIngestRequest(value))
1214
+ return { shape: "stage", report: value };
1215
+ if (isClientBindingIngestRequest(value))
1216
+ return { shape: "binding", report: value };
1217
+ if (isClientSessionRepairIngestRequest(value)) {
1218
+ // The repair id becomes a line field, so it meets the server's own correlation rule or the
1219
+ // report is refused like any other malformed one (#3557 review).
1220
+ return isValidCorrelationId(value.repairCorrelationId)
1221
+ ? { shape: "session-repair", report: value }
1222
+ : undefined;
1223
+ }
1224
+ if (isClientDiagnosticIngestRequest(value))
1225
+ return { shape: "message", report: value };
1226
+ return undefined;
1227
+ }
1228
+ function reportBudget(classified) {
1229
+ switch (classified.shape) {
1230
+ case "stage":
1231
+ return "routine";
1232
+ case "binding":
1233
+ return CLIENT_BINDING_FAILURE_OUTCOMES.has(classified.report.outcome) ? "failure" : "routine";
1234
+ case "session-repair":
1235
+ return CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES.has(classified.report.outcome)
1236
+ ? "routine"
1237
+ : "failure";
1238
+ case "message":
1239
+ return "failure";
1240
+ }
1241
+ }
1242
+ function logClientReport(classified, ingestCorrelationId) {
1243
+ switch (classified.shape) {
1244
+ case "stage":
1245
+ logClientStage(classified.report, ingestCorrelationId);
1246
+ return;
1247
+ case "binding":
1248
+ logClientBinding(classified.report, ingestCorrelationId);
1249
+ return;
1250
+ case "session-repair":
1251
+ logClientSessionRepair(classified.report, ingestCorrelationId);
1252
+ return;
1253
+ case "message":
1254
+ logClientDiagnostic(classified.report, ingestCorrelationId);
1255
+ }
113
1256
  }
114
1257
  function badRequest(message, correlationId) {
115
1258
  return { status: 400, body: errorBody("BAD_REQUEST", message, correlationId) };
@@ -123,6 +1266,7 @@ async function readClientDiagnosticBody(req, correlationId) {
123
1266
  if (error instanceof RequestBodyTooLargeError) {
124
1267
  return {
125
1268
  kind: "rejected",
1269
+ rejection: "too-large",
126
1270
  result: {
127
1271
  status: 413,
128
1272
  body: errorBody("PAYLOAD_TOO_LARGE", "Request body exceeds the size limit.", correlationId),
@@ -132,6 +1276,7 @@ async function readClientDiagnosticBody(req, correlationId) {
132
1276
  if (error instanceof RequestBodyCancelledError) {
133
1277
  return {
134
1278
  kind: "rejected",
1279
+ rejection: "cancelled",
135
1280
  result: { status: 499, body: errorBody("REQUEST_CANCELLED", "Request was cancelled.") },
136
1281
  };
137
1282
  }
@@ -143,23 +1288,30 @@ async function readClientDiagnosticBody(req, correlationId) {
143
1288
  catch {
144
1289
  return {
145
1290
  kind: "rejected",
1291
+ rejection: "invalid-json",
146
1292
  result: badRequest("Request body is not valid JSON.", correlationId),
147
1293
  };
148
1294
  }
149
1295
  }
150
1296
  export async function handleClientDiagnosticIngest(ctx) {
151
1297
  const outcome = await readClientDiagnosticBody(ctx.req, ctx.correlationId);
152
- if (outcome.kind === "rejected")
1298
+ if (outcome.kind === "rejected") {
1299
+ noticeRejectedReport(outcome.rejection, ctx.correlationId);
153
1300
  return outcome.result;
154
- const parsed = outcome.value;
155
- if (!isClientDiagnosticIngestRequest(parsed)) {
1301
+ }
1302
+ // Every shape shares the same size bound and rejection/loss accounting below; routine evidence
1303
+ // and failure reports each spend their own rate-limit budget.
1304
+ const classified = classifyClientReport(outcome.value);
1305
+ if (classified === undefined) {
1306
+ noticeRejectedReport("invalid-shape", ctx.correlationId);
156
1307
  return badRequest("Request body is not a valid diagnostic report.", ctx.correlationId);
157
1308
  }
158
1309
  const now = Date.now();
159
- if (!rateLimiter.tryAcquire(CLIENT_DIAGNOSTIC_RATE_LIMIT_KEY, now)) {
160
- noticeRateLimitedDrop(now, ctx.correlationId);
1310
+ const budget = reportBudget(classified);
1311
+ if (!rateLimiter.tryAcquire(CLIENT_DIAGNOSTIC_RATE_LIMIT_KEYS[budget], now)) {
1312
+ noticeRateLimitedDrop(budget, now, ctx.correlationId);
161
1313
  return { status: 204, body: null };
162
1314
  }
163
- logClientDiagnostic(parsed, ctx.correlationId);
1315
+ logClientReport(classified, ctx.correlationId);
164
1316
  return { status: 204, body: null };
165
1317
  }