agentworkshop 0.10.0 → 0.11.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 (531) hide show
  1. package/.AgentWorkShop/prompts/host-tools.json +47 -6
  2. package/.output/.AgentWorkShop/prompts/host-tools.json +47 -6
  3. package/.output/nitro.json +1 -1
  4. package/.output/public/_nuxt/2v5GdspM2.js +1 -0
  5. package/.output/public/_nuxt/79qPRzcC2.js +3 -0
  6. package/.output/public/_nuxt/{DXcrmAEB.js → B1h4ZjKu.js} +6 -6
  7. package/.output/public/_nuxt/{CtHO6S5H2.js → CMDDJOia2.js} +1 -1
  8. package/.output/public/_nuxt/{BntjKfNX2.js → CUdJHUOd2.js} +1 -1
  9. package/.output/public/_nuxt/CjCc77Ql.js +1 -0
  10. package/.output/public/_nuxt/D2EC-BTb2.js +1 -0
  11. package/.output/public/_nuxt/D4ZePemJ.js +1 -0
  12. package/.output/public/_nuxt/{Bn4GxfTn.js → DDVBwkyn.js} +1 -1
  13. package/.output/public/_nuxt/DkfR8ywD.js +1 -0
  14. package/.output/public/_nuxt/Dv_vyxzC.js +1 -0
  15. package/.output/public/_nuxt/LiHaSoeY.js +2 -0
  16. package/.output/public/_nuxt/PWLUz4KM2.js +1 -0
  17. package/.output/public/_nuxt/ZMaEnWy-.js +1 -0
  18. package/.output/public/_nuxt/_id_.CHcnHuNN.css +1 -0
  19. package/.output/public/_nuxt/{_wsId_.DDEHesFu.css → _wsId_.2GiFh9as.css} +1 -1
  20. package/.output/public/_nuxt/builds/latest.json +1 -1
  21. package/.output/public/_nuxt/builds/meta/cf638aaa-655e-454c-9786-ffa73903190a.json +1 -0
  22. package/.output/public/_nuxt/{default.DfmSp-wb.css → default.CwrtJt16.css} +1 -1
  23. package/.output/public/_nuxt/{entry.cd1EADeI.css → entry.DttkgxyK.css} +1 -1
  24. package/.output/public/_nuxt/kHiXWyIi.js +1 -0
  25. package/.output/public/_nuxt/projects.B0DecJy4.css +1 -0
  26. package/.output/public/_nuxt/workshop.Csi6_Wwg.css +1 -0
  27. package/.output/server/chunks/_/{TownView-uicih2T8.mjs → TownView-Cpb_4CFs.mjs} +4 -4
  28. package/.output/server/chunks/_/TownView-Cpb_4CFs.mjs.map +1 -0
  29. package/.output/server/chunks/_/{_id_-DMxiYYGr.mjs → _id_-7j1H6aZV.mjs} +8 -8
  30. package/.output/server/chunks/_/_id_-7j1H6aZV.mjs.map +1 -0
  31. package/.output/server/chunks/_/{_id_-BX8hihhe.mjs → _id_-Ca3d9Npk.mjs} +13 -13
  32. package/.output/server/chunks/_/_id_-Ca3d9Npk.mjs.map +1 -0
  33. package/.output/server/chunks/_/_id_-Dl378h-P.mjs +995 -0
  34. package/.output/server/chunks/_/_id_-Dl378h-P.mjs.map +1 -0
  35. package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs → _wsId_-e7Fm33hR.mjs} +16 -10
  36. package/.output/server/chunks/_/{_wsId_-DzfJ2fFZ.mjs.map → _wsId_-e7Fm33hR.mjs.map} +1 -1
  37. package/.output/server/chunks/_/access.mjs +1 -1
  38. package/.output/server/chunks/_/{analysis-DVLO0bCy.mjs → analysis-DvtU3Ots.mjs} +3 -3
  39. package/.output/server/chunks/_/analysis-DvtU3Ots.mjs.map +1 -0
  40. package/.output/server/chunks/_/catalog-view.mjs +1 -1
  41. package/.output/server/chunks/_/{daq-CWiRcs2W.mjs → daq-WT075QK5.mjs} +8 -8
  42. package/.output/server/chunks/_/daq-WT075QK5.mjs.map +1 -0
  43. package/.output/server/chunks/_/data-export.mjs +6 -6
  44. package/.output/server/chunks/_/data-query.mjs +3 -3
  45. package/.output/server/chunks/_/{dcw-BrEWEFnj.mjs → dcw-BhY0QjNL.mjs} +8 -8
  46. package/.output/server/chunks/_/dcw-BhY0QjNL.mjs.map +1 -0
  47. package/.output/server/chunks/_/{default-CAvZHtuk.mjs → default-C3L2_Bnq.mjs} +18 -8
  48. package/.output/server/chunks/_/{default-CAvZHtuk.mjs.map → default-C3L2_Bnq.mjs.map} +1 -1
  49. package/.output/server/chunks/_/eda-run.repo.mjs +2 -2
  50. package/.output/server/chunks/_/features.mjs +4 -4
  51. package/.output/server/chunks/_/golden.mjs +2 -2
  52. package/.output/server/chunks/_/host-bindings.mjs +1 -1
  53. package/.output/server/chunks/_/index.mjs +1 -1
  54. package/.output/server/chunks/_/{logs-Lx7w3LYH.mjs → logs-ClfR5sWn.mjs} +3 -3
  55. package/.output/server/chunks/_/logs-ClfR5sWn.mjs.map +1 -0
  56. package/.output/server/chunks/_/mes-console.mjs +1 -1
  57. package/.output/server/chunks/_/mes-templates.mjs +1 -1
  58. package/.output/server/chunks/_/nitro.mjs +4434 -2470
  59. package/.output/server/chunks/_/nitro.mjs.map +1 -1
  60. package/.output/server/chunks/_/{operations--xLPUg-f.mjs → operations-4t5GxQcD.mjs} +3 -3
  61. package/.output/server/chunks/_/operations-4t5GxQcD.mjs.map +1 -0
  62. package/.output/server/chunks/_/{pages-CzF3fZqL.mjs → pages-BwA6EqWo.mjs} +4 -4
  63. package/.output/server/chunks/_/pages-BwA6EqWo.mjs.map +1 -0
  64. package/.output/server/chunks/_/projects-k6arYbBh.mjs +345 -0
  65. package/.output/server/chunks/_/projects-k6arYbBh.mjs.map +1 -0
  66. package/.output/server/chunks/_/promote.mjs +186 -0
  67. package/.output/server/chunks/_/promote.mjs.map +1 -0
  68. package/.output/server/chunks/_/rest-auth.mjs +1 -1
  69. package/.output/server/chunks/_/spc.mjs +1 -1
  70. package/.output/server/chunks/_/{town-HjaOuPYS.mjs → town-CCkZYizH.mjs} +4 -4
  71. package/.output/server/chunks/_/town-CCkZYizH.mjs.map +1 -0
  72. package/.output/server/chunks/_/types-D6J7slEa.mjs +1 -1
  73. package/.output/server/chunks/_/{useDaqAddNode-CkGitJOy.mjs → useDaqAddNode-qUTVIBD0.mjs} +3 -3
  74. package/.output/server/chunks/_/useDaqAddNode-qUTVIBD0.mjs.map +1 -0
  75. package/.output/server/chunks/_/{useDaqDetailBinding-BKi46wvJ.mjs → useDaqDetailBinding-D0JkQZhl.mjs} +2 -2
  76. package/.output/server/chunks/_/useDaqDetailBinding-D0JkQZhl.mjs.map +1 -0
  77. package/.output/server/chunks/_/{useDaqDetailFrames-B6cqF1w1.mjs → useDaqDetailFrames-Du_raRy1.mjs} +2 -2
  78. package/.output/server/chunks/_/useDaqDetailFrames-Du_raRy1.mjs.map +1 -0
  79. package/.output/server/chunks/_/{useDaqDetailHistory-D0sdKiWx.mjs → useDaqDetailHistory-BQx0cKA6.mjs} +2 -2
  80. package/.output/server/chunks/_/useDaqDetailHistory-BQx0cKA6.mjs.map +1 -0
  81. package/.output/server/chunks/_/{useDaqDetailNode-DgxYQZBG.mjs → useDaqDetailNode-UCnodI1A.mjs} +4 -4
  82. package/.output/server/chunks/_/useDaqDetailNode-UCnodI1A.mjs.map +1 -0
  83. package/.output/server/chunks/_/{useDaqDetailParams-D-ZJw2GJ.mjs → useDaqDetailParams-D4ZVxVla.mjs} +3 -3
  84. package/.output/server/chunks/_/useDaqDetailParams-D4ZVxVla.mjs.map +1 -0
  85. package/.output/server/chunks/_/{useDaqFilters-Bi8Ybyhl.mjs → useDaqFilters-CugTQrIt.mjs} +4 -4
  86. package/.output/server/chunks/_/useDaqFilters-CugTQrIt.mjs.map +1 -0
  87. package/.output/server/chunks/_/{useDaqOptimizations-XodbRzgb.mjs → useDaqOptimizations-_P1sco7P.mjs} +2 -2
  88. package/.output/server/chunks/_/useDaqOptimizations-_P1sco7P.mjs.map +1 -0
  89. package/.output/server/chunks/_/{useDaqStream-CGbftQdw.mjs → useDaqStream-BVFNKAP9.mjs} +2 -2
  90. package/.output/server/chunks/_/useDaqStream-BVFNKAP9.mjs.map +1 -0
  91. package/.output/server/chunks/_/{useDaqTemplates-Bo_sE1xp.mjs → useDaqTemplates-DmcUC_Aw.mjs} +3 -3
  92. package/.output/server/chunks/_/useDaqTemplates-DmcUC_Aw.mjs.map +1 -0
  93. package/.output/server/chunks/_/{useDashboardData-BJ30kVLq.mjs → useDashboardData-Dv1SJs3v.mjs} +3 -3
  94. package/.output/server/chunks/_/useDashboardData-Dv1SJs3v.mjs.map +1 -0
  95. package/.output/server/chunks/_/{useDcwAddNode-BLqwQe59.mjs → useDcwAddNode-CZtXylAe.mjs} +3 -3
  96. package/.output/server/chunks/_/useDcwAddNode-CZtXylAe.mjs.map +1 -0
  97. package/.output/server/chunks/_/{useDcwCards-CofBoHat.mjs → useDcwCards-CItS2A_F.mjs} +2 -2
  98. package/.output/server/chunks/_/useDcwCards-CItS2A_F.mjs.map +1 -0
  99. package/.output/server/chunks/_/{useDcwDetailScope-DhkBcKaS.mjs → useDcwDetailScope-Dyu0bYy9.mjs} +3 -3
  100. package/.output/server/chunks/_/useDcwDetailScope-Dyu0bYy9.mjs.map +1 -0
  101. package/.output/server/chunks/_/{useDcwDetailTemplates-BSmmOkFn.mjs → useDcwDetailTemplates-CwK1rb2i.mjs} +2 -2
  102. package/.output/server/chunks/_/useDcwDetailTemplates-CwK1rb2i.mjs.map +1 -0
  103. package/.output/server/chunks/_/{useDcwFilter-Bh8dJ1of.mjs → useDcwFilter-CvuCOvU2.mjs} +2 -2
  104. package/.output/server/chunks/_/useDcwFilter-CvuCOvU2.mjs.map +1 -0
  105. package/.output/server/chunks/_/{useDcwLedger-UEB2x63E.mjs → useDcwLedger-CI-AK4j3.mjs} +2 -2
  106. package/.output/server/chunks/_/useDcwLedger-CI-AK4j3.mjs.map +1 -0
  107. package/.output/server/chunks/_/{useDcwLineMutations-9PElT2Fz.mjs → useDcwLineMutations-CsS2rDUh.mjs} +2 -2
  108. package/.output/server/chunks/_/useDcwLineMutations-CsS2rDUh.mjs.map +1 -0
  109. package/.output/server/chunks/_/{useDcwLineRun-BPm0ZPs1.mjs → useDcwLineRun-B1uLN_MJ.mjs} +2 -2
  110. package/.output/server/chunks/_/useDcwLineRun-B1uLN_MJ.mjs.map +1 -0
  111. package/.output/server/chunks/_/{useDcwParamApprovals-Ctczj8Lm.mjs → useDcwParamApprovals-CVab6q8T.mjs} +2 -2
  112. package/.output/server/chunks/_/useDcwParamApprovals-CVab6q8T.mjs.map +1 -0
  113. package/.output/server/chunks/_/{useDcwProducts-hgfkZhht.mjs → useDcwProducts-OAvQBk5O.mjs} +2 -2
  114. package/.output/server/chunks/_/useDcwProducts-OAvQBk5O.mjs.map +1 -0
  115. package/.output/server/chunks/_/{useDcwQuery-Dd411JAJ.mjs → useDcwQuery-dgEkZDAy.mjs} +2 -2
  116. package/.output/server/chunks/_/useDcwQuery-dgEkZDAy.mjs.map +1 -0
  117. package/.output/server/chunks/_/{useDcwQuickActions-C7cIVK0F.mjs → useDcwQuickActions-C3ItztwI.mjs} +2 -2
  118. package/.output/server/chunks/_/useDcwQuickActions-C3ItztwI.mjs.map +1 -0
  119. package/.output/server/chunks/_/{useDcwRecipes-DaQAxk7t.mjs → useDcwRecipes-BD4PjvzG.mjs} +2 -2
  120. package/.output/server/chunks/_/useDcwRecipes-BD4PjvzG.mjs.map +1 -0
  121. package/.output/server/chunks/_/{useDcwStream-2-KfS0lN.mjs → useDcwStream-BTcOZh5H.mjs} +2 -2
  122. package/.output/server/chunks/_/useDcwStream-BTcOZh5H.mjs.map +1 -0
  123. package/.output/server/chunks/_/{useDcwTemplates-BXtYJspX.mjs → useDcwTemplates-CsR6b3ws.mjs} +2 -2
  124. package/.output/server/chunks/_/useDcwTemplates-CsR6b3ws.mjs.map +1 -0
  125. package/.output/server/chunks/_/{useDcwWrites-IOVVc-Sz.mjs → useDcwWrites-C55DL7Fe.mjs} +2 -2
  126. package/.output/server/chunks/_/useDcwWrites-C55DL7Fe.mjs.map +1 -0
  127. package/.output/server/chunks/_/{useLogsScope-BFU7kLl9.mjs → useLogsScope-CUxlAoQN.mjs} +2 -2
  128. package/.output/server/chunks/_/useLogsScope-CUxlAoQN.mjs.map +1 -0
  129. package/.output/server/chunks/_/{workshop-CeaToa_8.mjs → workshop-D2ucb128.mjs} +4 -4
  130. package/.output/server/chunks/_/workshop-D2ucb128.mjs.map +1 -0
  131. package/.output/server/chunks/routes/api/mcp/workshop.mjs +1 -1
  132. package/.output/server/chunks/routes/api/system/backup/run.post.mjs +2 -2
  133. package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +1 -1
  134. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +8 -9
  135. package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -1
  136. package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs +15 -5
  137. package/.output/server/chunks/routes/api/workshop/aml/index.get.mjs.map +1 -1
  138. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs +10 -5
  139. package/.output/server/chunks/routes/api/workshop/aml/index5.get.mjs.map +1 -1
  140. package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs +39 -0
  141. package/.output/server/chunks/routes/api/workshop/aml/models/index.get.mjs.map +1 -0
  142. package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs +37 -0
  143. package/.output/server/chunks/routes/api/workshop/aml/training-plans/index.get.mjs.map +1 -0
  144. package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +1 -1
  145. package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs +62 -0
  146. package/.output/server/chunks/routes/api/workshop/channels/_id/harness-profiles/promote.post.mjs.map +1 -0
  147. package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs +37 -0
  148. package/.output/server/chunks/routes/api/workshop/channels/_id/improvement-stats.get.mjs.map +1 -0
  149. package/.output/server/chunks/routes/api/workshop/channels/_id/index.put.mjs +1 -1
  150. package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs +41 -0
  151. package/.output/server/chunks/routes/api/workshop/channels/_id/index10.get.mjs.map +1 -0
  152. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +7 -5
  153. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -1
  154. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +24 -22
  155. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -1
  156. package/.output/server/chunks/routes/api/workshop/channels/_id/index2.put.mjs +1 -1
  157. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +9 -13
  158. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -1
  159. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +22 -72
  160. package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -1
  161. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +14 -27
  162. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -1
  163. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +72 -7
  164. package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -1
  165. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs +28 -22
  166. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.get.mjs.map +1 -1
  167. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs +7 -66
  168. package/.output/server/chunks/routes/api/workshop/channels/_id/index5.post.mjs.map +1 -1
  169. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs +20 -38
  170. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.get.mjs.map +1 -1
  171. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs +99 -0
  172. package/.output/server/chunks/routes/api/workshop/channels/_id/index6.post.mjs.map +1 -0
  173. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs +34 -4
  174. package/.output/server/chunks/routes/api/workshop/channels/_id/index7.get.mjs.map +1 -1
  175. package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs +9 -8
  176. package/.output/server/chunks/routes/api/workshop/channels/_id/index8.get.mjs.map +1 -1
  177. package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs +38 -0
  178. package/.output/server/chunks/routes/api/workshop/channels/_id/index9.get.mjs.map +1 -0
  179. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs +46 -0
  180. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId/promote.post.mjs.map +1 -0
  181. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs +37 -0
  182. package/.output/server/chunks/routes/api/workshop/channels/_id/memories/experience-stats.get.mjs.map +1 -0
  183. package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +1 -1
  184. package/.output/server/chunks/routes/api/workshop/channels/_id/tools/reset.post.mjs +1 -1
  185. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.get.mjs +1 -1
  186. package/.output/server/chunks/routes/api/workshop/channels/_id/twin-profile.patch.mjs +1 -1
  187. package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +1 -1
  188. package/.output/server/chunks/routes/api/workshop/channels.post.mjs +6 -6
  189. package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +2 -2
  190. package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +1 -1
  191. package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs +9 -7
  192. package/.output/server/chunks/routes/api/workshop/daq/index.get.mjs.map +1 -1
  193. package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs +38 -0
  194. package/.output/server/chunks/routes/api/workshop/daq/index2.get.mjs.map +1 -0
  195. package/.output/server/chunks/routes/api/workshop/daq/index2.post.mjs +1 -1
  196. package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +1 -1
  197. package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +1 -1
  198. package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs +34 -16
  199. package/.output/server/chunks/routes/api/workshop/daq/query.get.mjs.map +1 -1
  200. package/.output/server/chunks/routes/api/workshop/daq/storage/retention.put.mjs +1 -1
  201. package/.output/server/chunks/routes/api/workshop/daq/storage/rollup.post.mjs +1 -1
  202. package/.output/server/chunks/routes/api/workshop/daq/storage.get.mjs +1 -1
  203. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +1 -1
  204. package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +1 -1
  205. package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +1 -1
  206. package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +1 -1
  207. package/.output/server/chunks/routes/api/workshop/dcw/_id/bindings.put.mjs +1 -1
  208. package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +1 -1
  209. package/.output/server/chunks/routes/api/workshop/dcw/_id/read.post.mjs +1 -1
  210. package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +1 -1
  211. package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +1 -1
  212. package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +1 -1
  213. package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +1 -1
  214. package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +1 -1
  215. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +7 -13
  216. package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -1
  217. package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +1 -1
  218. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +14 -8
  219. package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -1
  220. package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +1 -1
  221. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +9 -20
  222. package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -1
  223. package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +1 -1
  224. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +17 -14
  225. package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -1
  226. package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +1 -1
  227. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +15 -12
  228. package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -1
  229. package/.output/server/chunks/routes/api/workshop/dcw/index5.post.mjs +1 -1
  230. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs +11 -5
  231. package/.output/server/chunks/routes/api/workshop/dcw/index6.get.mjs.map +1 -1
  232. package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs +7 -2
  233. package/.output/server/chunks/routes/api/workshop/dcw/index7.get.mjs.map +1 -1
  234. package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs +33 -0
  235. package/.output/server/chunks/routes/api/workshop/dcw/index8.get.mjs.map +1 -0
  236. package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +1 -1
  237. package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +1 -1
  238. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +1 -1
  239. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +1 -1
  240. package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +1 -1
  241. package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs +41 -0
  242. package/.output/server/chunks/routes/api/workshop/dcw/lines/index.get.mjs.map +1 -0
  243. package/.output/server/chunks/routes/api/workshop/dcw/mes-artifacts/file.get.mjs +1 -1
  244. package/.output/server/chunks/routes/api/workshop/dcw/mes-hook-test.post.mjs +1 -1
  245. package/.output/server/chunks/routes/api/workshop/dcw/mes-test-read.post.mjs +1 -1
  246. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +1 -1
  247. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +1 -1
  248. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +1 -1
  249. package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +1 -1
  250. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/read.post.mjs +1 -1
  251. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs +8 -5
  252. package/.output/server/chunks/routes/api/workshop/dcw/params/_id/write.post.mjs.map +1 -1
  253. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.delete.mjs +1 -1
  254. package/.output/server/chunks/routes/api/workshop/dcw/params/_id_.patch.mjs +1 -1
  255. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +1 -1
  256. package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +1 -1
  257. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +1 -1
  258. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +1 -1
  259. package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +1 -1
  260. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +1 -1
  261. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +1 -1
  262. package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +1 -1
  263. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +1 -1
  264. package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +1 -1
  265. package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +1 -1
  266. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +8 -6
  267. package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +1 -1
  268. package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +1 -1
  269. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +1 -1
  270. package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +1 -1
  271. package/.output/server/chunks/routes/api/workshop/eda/vm/predict.post.mjs +1 -1
  272. package/.output/server/chunks/routes/api/workshop/exp/confirmations/_id/decide.post.mjs +1 -1
  273. package/.output/server/chunks/routes/api/workshop/exp/index.get.mjs +1 -1
  274. package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +1 -1
  275. package/.output/server/chunks/routes/api/workshop/harnesses/_id/providers.get.mjs +1 -1
  276. package/.output/server/chunks/routes/api/workshop/harnesses.get.mjs +1 -1
  277. package/.output/server/chunks/routes/api/workshop/hitl/pending.get.mjs +1 -1
  278. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs +17 -10
  279. package/.output/server/chunks/routes/api/workshop/hitl/respond.post.mjs.map +1 -1
  280. package/.output/server/chunks/routes/api/workshop/index.mjs +1 -1
  281. package/.output/server/chunks/routes/api/workshop/index.put.mjs +16 -11
  282. package/.output/server/chunks/routes/api/workshop/index.put.mjs.map +1 -1
  283. package/.output/server/chunks/routes/api/workshop/index12.get.mjs +1 -1
  284. package/.output/server/chunks/routes/api/workshop/index13.get.mjs +1 -1
  285. package/.output/server/chunks/routes/api/workshop/index4.post.mjs +1 -1
  286. package/.output/server/chunks/routes/api/workshop/index5.post.mjs +1 -1
  287. package/.output/server/chunks/routes/api/workshop/index6.get.mjs +1 -1
  288. package/.output/server/chunks/routes/api/workshop/index6.post.mjs +1 -1
  289. package/.output/server/chunks/routes/api/workshop/index7.get.mjs +1 -1
  290. package/.output/server/chunks/routes/api/workshop/index7.post.mjs +1 -1
  291. package/.output/server/chunks/routes/api/workshop/index8.get.mjs +1 -1
  292. package/.output/server/chunks/routes/api/workshop/index8.post.mjs +1 -1
  293. package/.output/server/chunks/routes/api/workshop/mes/bridge.post.mjs +1 -1
  294. package/.output/server/chunks/routes/api/workshop/mes/datasets.get.mjs +1 -1
  295. package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs +7 -8
  296. package/.output/server/chunks/routes/api/workshop/mes/index.put.mjs.map +1 -1
  297. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/autofix.mjs +1 -1
  298. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/compile.mjs +1 -1
  299. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/evidence.mjs +1 -1
  300. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/publish.mjs +1 -1
  301. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval-decision.mjs +1 -1
  302. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/approval.mjs +1 -1
  303. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/rules/_ruleId/transition.mjs +1 -1
  304. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/subgraph.mjs +1 -1
  305. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId/validate.mjs +1 -1
  306. package/.output/server/chunks/routes/api/workshop/ontology/drafts/_draftId_.mjs +1 -1
  307. package/.output/server/chunks/routes/api/workshop/ontology/export/_ontologyId_.mjs +1 -1
  308. package/.output/server/chunks/routes/api/workshop/ontology/index.mjs +1 -1
  309. package/.output/server/chunks/routes/api/workshop/ontology/scene.mjs +1 -1
  310. package/.output/server/chunks/routes/api/workshop/ontology/traces/_ontologyId_.mjs +1 -1
  311. package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId/compare.mjs +1 -1
  312. package/.output/server/chunks/routes/api/workshop/ontology/versions/_ontologyId_.mjs +1 -1
  313. package/.output/server/chunks/routes/api/workshop/optimization/capabilities.get.mjs +1 -1
  314. package/.output/server/chunks/routes/api/workshop/optimization/index.get.mjs +1 -1
  315. package/.output/server/chunks/routes/api/workshop/optimization/index.mjs +1 -1
  316. package/.output/server/chunks/routes/api/workshop/optimization/index2.mjs +1 -1
  317. package/.output/server/chunks/routes/api/workshop/optimization/profiles/_id/publish.post.mjs +1 -1
  318. package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/crosscheck.post.mjs +1 -1
  319. package/.output/server/chunks/routes/api/workshop/optimization/recommendations/_id/dispatch.post.mjs +1 -1
  320. package/.output/server/chunks/routes/api/workshop/optimization/solve.post.mjs +1 -1
  321. package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +1 -1
  322. package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +1 -1
  323. package/.output/server/chunks/routes/api/workshop/process-model/datasets.post.mjs +1 -1
  324. package/.output/server/chunks/routes/api/workshop/process-model/eligibility.mjs +1 -1
  325. package/.output/server/chunks/routes/api/workshop/process-model/experiments.mjs +1 -1
  326. package/.output/server/chunks/routes/api/workshop/process-model/index.mjs +1 -1
  327. package/.output/server/chunks/routes/api/workshop/process-model/specs/_id/publish.post.mjs +1 -1
  328. package/.output/server/chunks/routes/api/workshop/process-model/train.post.mjs +1 -1
  329. package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs +37 -0
  330. package/.output/server/chunks/routes/api/workshop/projects/_id/deliverables/index.get.mjs.map +1 -0
  331. package/.output/server/chunks/routes/api/workshop/projects/_id/kernel/tick.post.mjs +1 -1
  332. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs +37 -0
  333. package/.output/server/chunks/routes/api/workshop/projects/_id/work-items/index.get.mjs.map +1 -0
  334. package/.output/server/chunks/routes/api/workshop/projects/instantiate.post.mjs +1 -1
  335. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +1 -1
  336. package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +1 -1
  337. package/.output/server/chunks/routes/api/workshop/teams/_id/index.put.mjs +1 -1
  338. package/.output/server/chunks/routes/api/workshop/teams/_id/index2.get.mjs +1 -1
  339. package/.output/server/chunks/routes/api/workshop/tools/sync.post.mjs +1 -1
  340. package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +1 -1
  341. package/.output/server/chunks/routes/renderer.mjs +2 -2
  342. package/.output/server/chunks/virtual/entry.mjs +50 -46
  343. package/.output/server/chunks/virtual/precomputed.mjs +1 -1
  344. package/.output/server/package.json +1 -1
  345. package/README-zh.md +53 -8
  346. package/README.md +53 -8
  347. package/app/components/AppSidebar.vue +2 -0
  348. package/app/components/workshop/CommandPalette.vue +1 -0
  349. package/app/components/workshop/workbench/WorkbenchHead.vue +35 -7
  350. package/app/composables/useRouteMeta.ts +1 -0
  351. package/app/pages/projects/[id].vue +2882 -1603
  352. package/app/pages/projects/index.vue +982 -176
  353. package/config.yml +1 -1
  354. package/docs/cli.en.md +3 -3
  355. package/docs/cli.md +2 -2
  356. package/docs/plugins.en.md +1 -1
  357. package/docs/plugins.md +1 -1
  358. package/docs/sdk.en.md +1 -1
  359. package/docs/sdk.md +1 -1
  360. package/i18n/locales/en.ts +2 -0
  361. package/i18n/locales/zh-CN.ts +2 -0
  362. package/package.json +2 -2
  363. package/scripts/_audit/_readme-canvas-shot.mjs +48 -48
  364. package/scripts/_audit/cal3-staged-live.mjs +3 -0
  365. package/scripts/_audit/desktop-demo-shot.mjs +31 -31
  366. package/scripts/_audit/frontend-interaction-demo.mjs +99 -99
  367. package/scripts/_audit/multi-harness-isolation-live.mjs +132 -132
  368. package/scripts/_audit/omp-channel-project-session-live.mjs +481 -0
  369. package/scripts/_audit/omp-project-single-live.mjs +167 -0
  370. package/scripts/_audit/project-blueprint-live.mjs +63 -42
  371. package/scripts/_audit/project-landing-live.mjs +659 -0
  372. package/scripts/acceptance-rsi-evolution.ts +188 -0
  373. package/scripts/acceptance-rsi-live-e2e.mjs +611 -0
  374. package/scripts/acceptance-rsi-stage1.ts +208 -0
  375. package/scripts/check-rsi-redline.mjs +73 -0
  376. package/scripts/demo/accept-harness-fix.mjs +178 -0
  377. package/scripts/e2e-final-assertions.mjs +51 -51
  378. package/scripts/e2e-landing-scenario.mjs +409 -409
  379. package/scripts/e2e-landing-shot.mjs +24 -24
  380. package/scripts/e2e-page-shot.mjs +71 -71
  381. package/scripts/e2e-session-shot.mjs +82 -82
  382. package/scripts/e2e-ui-capture.mjs +125 -125
  383. package/scripts/e2e-us7-close.mjs +88 -88
  384. package/scripts/e2e-us7-final.mjs +132 -132
  385. package/scripts/e2e-us7-retry.mjs +136 -136
  386. package/scripts/session-memory-runtime-acceptance.mjs +245 -245
  387. package/server/api/workshop/agent-tools/invoke.post.ts +15 -7
  388. package/server/api/workshop/aml/datasets/index.get.ts +20 -4
  389. package/server/api/workshop/aml/jobs/index.get.ts +15 -4
  390. package/server/api/workshop/aml/models/[id]/index.get.ts +24 -0
  391. package/server/api/workshop/aml/training-plans/[id]/index.get.ts +19 -0
  392. package/server/api/workshop/channels/[id]/harness-profiles/index.get.ts +27 -0
  393. package/server/api/workshop/channels/[id]/harness-profiles/index.post.ts +46 -0
  394. package/server/api/workshop/channels/[id]/harness-profiles/promote.post.ts +48 -0
  395. package/server/api/workshop/channels/[id]/improvement-stats.get.ts +20 -0
  396. package/server/api/workshop/channels/[id]/memories/[memoryId]/promote.post.ts +33 -0
  397. package/server/api/workshop/channels/[id]/memories/experience-stats.get.ts +19 -0
  398. package/server/api/workshop/channels/[id]/verifications/index.get.ts +23 -0
  399. package/server/api/workshop/daq/[id]/index.get.ts +25 -0
  400. package/server/api/workshop/daq/query.get.ts +42 -14
  401. package/server/api/workshop/dcw/[id]/index.get.ts +24 -0
  402. package/server/api/workshop/dcw/lines/[id]/index.get.ts +27 -0
  403. package/server/api/workshop/dcw/params/[id]/write.post.ts +12 -3
  404. package/server/api/workshop/device-twins/[id]/control.post.ts +12 -4
  405. package/server/api/workshop/hitl/respond.post.ts +19 -21
  406. package/server/api/workshop/mes/secrets/index.put.ts +11 -6
  407. package/server/api/workshop/permissions/index.put.ts +20 -9
  408. package/server/api/workshop/projects/[id]/deliverables/[did]/index.get.ts +19 -0
  409. package/server/api/workshop/projects/[id]/work-items/[wid]/index.get.ts +20 -0
  410. package/server/plugins/workshop.ts +3 -0
  411. package/server/services/workshop/agents/agent-interface.ts +63 -2
  412. package/server/services/workshop/agents/base-agent.ts +7 -1
  413. package/server/services/workshop/agents/host-tool-bridge/dispatch.ts +3 -0
  414. package/server/services/workshop/agents/host-tool-bridge/tools/improvement.ts +33 -0
  415. package/server/services/workshop/agents/host-tool-bridge/tools/memory.ts +68 -12
  416. package/server/services/workshop/agents/industrial/analysis-tools.ts +3 -0
  417. package/server/services/workshop/agents/industrial/line-tools.ts +11 -1
  418. package/server/services/workshop/agents/industrial/ops-tools.ts +22 -0
  419. package/server/services/workshop/agents/industrial/recipe-propose-tools.ts +8 -2
  420. package/server/services/workshop/agents/omp-agent/client.ts +18 -1
  421. package/server/services/workshop/agents/omp-agent/context-governance.ts +13 -1
  422. package/server/services/workshop/agents/omp-agent/core.ts +6 -0
  423. package/server/services/workshop/agents/task-channel-profile.ts +55 -0
  424. package/server/services/workshop/agents/task-channel.ts +3 -0
  425. package/server/services/workshop/aml/intervention-ledger.ts +14 -0
  426. package/server/services/workshop/analysis/analysis.repo.ts +6 -4
  427. package/server/services/workshop/db/database/index.ts +1 -1
  428. package/server/services/workshop/db/database/migrations-blind-verification.ts +33 -0
  429. package/server/services/workshop/db/database/migrations-experience.ts +38 -0
  430. package/server/services/workshop/db/database/migrations-harness-profile.ts +28 -0
  431. package/server/services/workshop/db/database/migrations-improvement-actions.ts +30 -0
  432. package/server/services/workshop/db/database/migrations-improvement.ts +36 -0
  433. package/server/services/workshop/db/database/migrations-project.ts +179 -179
  434. package/server/services/workshop/db/database/open.ts +134 -117
  435. package/server/services/workshop/db/database/rows.ts +22 -2
  436. package/server/services/workshop/db/database/schema.ts +1675 -1667
  437. package/server/services/workshop/db/improvement-action.repo.ts +82 -0
  438. package/server/services/workshop/db/improvement.repo.ts +139 -0
  439. package/server/services/workshop/db/memory.repo.ts +238 -22
  440. package/server/services/workshop/dcw/dcw-controller/lines.ts +3 -3
  441. package/server/services/workshop/dcw/recipe-evidence.ts +181 -0
  442. package/server/services/workshop/experience/advisory.ts +135 -0
  443. package/server/services/workshop/experience/gates.ts +150 -0
  444. package/server/services/workshop/experience/harness-profile.ts +159 -0
  445. package/server/services/workshop/experience/overlay.ts +55 -0
  446. package/server/services/workshop/experience/promote.ts +123 -0
  447. package/server/services/workshop/optimization/python/__pycache__/problems.cpython-312.pyc +0 -0
  448. package/server/services/workshop/plugins/host/reload-swap.mjs +68 -0
  449. package/server/services/workshop/plugins/host/reload.mjs +42 -12
  450. package/server/services/workshop/projects/criteria-metrics.ts +54 -0
  451. package/server/services/workshop/projects/service.ts +158 -3
  452. package/server/services/workshop/runtime/manager/a2a.ts +61 -0
  453. package/server/services/workshop/runtime/manager/admin-agents.ts +68 -2
  454. package/server/services/workshop/runtime/manager/contracts.ts +23 -0
  455. package/server/services/workshop/runtime/manager/state.ts +132 -0
  456. package/server/services/workshop/runtime/manager/types.ts +3 -0
  457. package/server/services/workshop/runtime/manager/workspace.ts +18 -2
  458. package/server/services/workshop/runtime/memory/helpers.ts +4 -0
  459. package/server/services/workshop/runtime/memory/recall.ts +41 -10
  460. package/server/services/workshop/runtime/memory/reflect-collector.ts +213 -0
  461. package/server/services/workshop/runtime/memory/reflector.ts +321 -0
  462. package/server/services/workshop/runtime/memory/state.ts +2 -0
  463. package/server/services/workshop/runtime/memory/types.ts +16 -0
  464. package/server/services/workshop/runtime/memory/write.ts +68 -1
  465. package/server/services/workshop/verify/blind-verifier.ts +291 -0
  466. package/.output/public/_nuxt/-XI3FWdE2.js +0 -1
  467. package/.output/public/_nuxt/B2azkP06.js +0 -1
  468. package/.output/public/_nuxt/B7Xvcvc72.js +0 -1
  469. package/.output/public/_nuxt/BjERGiA_.js +0 -1
  470. package/.output/public/_nuxt/BuNUABSV.js +0 -1
  471. package/.output/public/_nuxt/BxCzghnC.js +0 -1
  472. package/.output/public/_nuxt/ChaPv2ma2.js +0 -1
  473. package/.output/public/_nuxt/CtR6fOPv.js +0 -1
  474. package/.output/public/_nuxt/D3ucelqH.js +0 -1
  475. package/.output/public/_nuxt/DYj0LL7W2.js +0 -2
  476. package/.output/public/_nuxt/DxCWsK3w2.js +0 -2
  477. package/.output/public/_nuxt/_id_.CHfy_h7D.css +0 -1
  478. package/.output/public/_nuxt/builds/meta/41ef012e-5907-4063-b58c-16c4d02de1b7.json +0 -1
  479. package/.output/public/_nuxt/projects.BYLuJvrX.css +0 -1
  480. package/.output/public/_nuxt/workshop.Dr7XdziI.css +0 -1
  481. package/.output/server/chunks/_/TownView-uicih2T8.mjs.map +0 -1
  482. package/.output/server/chunks/_/_id_-BX8hihhe.mjs.map +0 -1
  483. package/.output/server/chunks/_/_id_-CEoXvYq6.mjs +0 -619
  484. package/.output/server/chunks/_/_id_-CEoXvYq6.mjs.map +0 -1
  485. package/.output/server/chunks/_/_id_-DMxiYYGr.mjs.map +0 -1
  486. package/.output/server/chunks/_/analysis-DVLO0bCy.mjs.map +0 -1
  487. package/.output/server/chunks/_/daq-CWiRcs2W.mjs.map +0 -1
  488. package/.output/server/chunks/_/dcw-BrEWEFnj.mjs.map +0 -1
  489. package/.output/server/chunks/_/logs-Lx7w3LYH.mjs.map +0 -1
  490. package/.output/server/chunks/_/operations--xLPUg-f.mjs.map +0 -1
  491. package/.output/server/chunks/_/pages-CzF3fZqL.mjs.map +0 -1
  492. package/.output/server/chunks/_/projects-BYn-GiAJ.mjs +0 -85
  493. package/.output/server/chunks/_/projects-BYn-GiAJ.mjs.map +0 -1
  494. package/.output/server/chunks/_/town-HjaOuPYS.mjs.map +0 -1
  495. package/.output/server/chunks/_/useDaqAddNode-CkGitJOy.mjs.map +0 -1
  496. package/.output/server/chunks/_/useDaqDetailBinding-BKi46wvJ.mjs.map +0 -1
  497. package/.output/server/chunks/_/useDaqDetailFrames-B6cqF1w1.mjs.map +0 -1
  498. package/.output/server/chunks/_/useDaqDetailHistory-D0sdKiWx.mjs.map +0 -1
  499. package/.output/server/chunks/_/useDaqDetailNode-DgxYQZBG.mjs.map +0 -1
  500. package/.output/server/chunks/_/useDaqDetailParams-D-ZJw2GJ.mjs.map +0 -1
  501. package/.output/server/chunks/_/useDaqFilters-Bi8Ybyhl.mjs.map +0 -1
  502. package/.output/server/chunks/_/useDaqOptimizations-XodbRzgb.mjs.map +0 -1
  503. package/.output/server/chunks/_/useDaqStream-CGbftQdw.mjs.map +0 -1
  504. package/.output/server/chunks/_/useDaqTemplates-Bo_sE1xp.mjs.map +0 -1
  505. package/.output/server/chunks/_/useDashboardData-BJ30kVLq.mjs.map +0 -1
  506. package/.output/server/chunks/_/useDcwAddNode-BLqwQe59.mjs.map +0 -1
  507. package/.output/server/chunks/_/useDcwCards-CofBoHat.mjs.map +0 -1
  508. package/.output/server/chunks/_/useDcwDetailScope-DhkBcKaS.mjs.map +0 -1
  509. package/.output/server/chunks/_/useDcwDetailTemplates-BSmmOkFn.mjs.map +0 -1
  510. package/.output/server/chunks/_/useDcwFilter-Bh8dJ1of.mjs.map +0 -1
  511. package/.output/server/chunks/_/useDcwLedger-UEB2x63E.mjs.map +0 -1
  512. package/.output/server/chunks/_/useDcwLineMutations-9PElT2Fz.mjs.map +0 -1
  513. package/.output/server/chunks/_/useDcwLineRun-BPm0ZPs1.mjs.map +0 -1
  514. package/.output/server/chunks/_/useDcwParamApprovals-Ctczj8Lm.mjs.map +0 -1
  515. package/.output/server/chunks/_/useDcwProducts-hgfkZhht.mjs.map +0 -1
  516. package/.output/server/chunks/_/useDcwQuery-Dd411JAJ.mjs.map +0 -1
  517. package/.output/server/chunks/_/useDcwQuickActions-C7cIVK0F.mjs.map +0 -1
  518. package/.output/server/chunks/_/useDcwRecipes-DaQAxk7t.mjs.map +0 -1
  519. package/.output/server/chunks/_/useDcwStream-2-KfS0lN.mjs.map +0 -1
  520. package/.output/server/chunks/_/useDcwTemplates-BXtYJspX.mjs.map +0 -1
  521. package/.output/server/chunks/_/useDcwWrites-IOVVc-Sz.mjs.map +0 -1
  522. package/.output/server/chunks/_/useLogsScope-BFU7kLl9.mjs.map +0 -1
  523. package/.output/server/chunks/_/workshop-CeaToa_8.mjs.map +0 -1
  524. package/scripts/_audit/_fix-report.mjs +0 -32
  525. /package/.output/public/_nuxt/{B5D1k6CB2.js → B5D1k6CB.js} +0 -0
  526. /package/.output/public/_nuxt/{B6Olw0Op2.js → B6Olw0Op.js} +0 -0
  527. /package/.output/public/_nuxt/{BclHgAY6.js → BclHgAY62.js} +0 -0
  528. /package/.output/public/_nuxt/{D9saExk9.js → D9saExk92.js} +0 -0
  529. /package/.output/public/_nuxt/{DFI6asjj.js → DFI6asjj2.js} +0 -0
  530. /package/.output/public/_nuxt/{DkJVtqfc.js → DkJVtqfc2.js} +0 -0
  531. /package/.output/public/_nuxt/{OVP8I5uy2.js → OVP8I5uy.js} +0 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * GET /api/workshop/projects/:id/work-items/:wid —— 单工作项(主资源路径)。
3
+ *
4
+ * 对称性修复(2026-11-08 审查):该路径此前只有 patch/cancel/dispatch/retry,
5
+ * 主资源路径**可改不可读**(读侧只能走 observability 旁路或拉全量列表)。
6
+ * 本端点只读、返回工作项行本身;执行链详情仍走 observability 旁路(职责不同)。
7
+ */
8
+ import { getRouterParam } from 'h3'
9
+ import { defineApiHandler } from '../../../../../../utils/response'
10
+ import { resolveUser } from '../../../../caller'
11
+ import { getProjectService } from '../../../../../../services/workshop/projects/service'
12
+
13
+ export default defineApiHandler(async (event) => {
14
+ const user = resolveUser(event)
15
+ return getProjectService().getWorkItem(
16
+ getRouterParam(event, 'id')!,
17
+ getRouterParam(event, 'wid')!,
18
+ user,
19
+ )
20
+ })
@@ -35,6 +35,7 @@ import { createChatMessageRepo } from '../services/workshop/db/chat-message.repo
35
35
  import { createNotificationRepo } from '../services/workshop/db/notification.repo'
36
36
  import { createOutboxRepo } from '../services/workshop/db/outbox.repo'
37
37
  import { createHitlRequestRepo } from '../services/workshop/db/hitl-request.repo'
38
+ import { createImprovementRepo } from '../services/workshop/db/improvement.repo'
38
39
  import { initProjectService } from '../services/workshop/projects/service'
39
40
  import { startProjectReconciler } from '../services/workshop/projects/reconciler'
40
41
  import { initProjectKernel } from '../services/workshop/projects/kernel'
@@ -145,6 +146,8 @@ export default function workshopPlugin(nitroApp: {
145
146
  notifications: createNotificationRepo(db),
146
147
  outbox: createOutboxRepo(db),
147
148
  hitlRequests: createHitlRequestRepo(db),
149
+ // RSI 改进提案(WP-D2;学习环与写治理的唯一交接面)
150
+ improvements: createImprovementRepo(db),
148
151
  }
149
152
  // S4/S5/R1/R3:合规三表仓储接线(审批历史/报警事件/审计日志/高危复核)
150
153
  bindOpsRepos({
@@ -137,7 +137,14 @@ export interface AgentWorkspace {
137
137
  * scope: auto=私有+公共(默认;sessionId 命中加分) / private / shared / session=仅当前会话行;
138
138
  * sessionId = 运行时当前会话(工具桥注入)。返回结构化片段(综合分排序)。
139
139
  */
140
- recallMemory(input: { query: string, scope?: 'auto' | 'private' | 'shared' | 'session', limit?: number, sessionId?: string | null }): Promise<Array<{
140
+ recallMemory(input: {
141
+ query: string
142
+ scope?: 'auto' | 'private' | 'shared' | 'session'
143
+ limit?: number
144
+ sessionId?: string | null
145
+ /** RSI 作用域上下文(WP-A3):缺省按频道产线绑定自动解析 */
146
+ scopeContext?: { lineId?: string | null, productId?: string | null }
147
+ }): Promise<Array<{
141
148
  id: string
142
149
  kind: string
143
150
  title: string
@@ -152,13 +159,67 @@ export interface AgentWorkspace {
152
159
  sessionId?: string | null
153
160
  rootId?: string | null
154
161
  visibility?: 'channel-shared' | 'private' | 'cross-channel'
162
+ /** RSI 经验元信息(WP-A3;非经验行带默认值) */
163
+ outcome?: string
164
+ status?: string
165
+ scopeKind?: string
166
+ scopeKey?: string
155
167
  }>>
156
168
  /**
157
169
  * 记忆主动沉淀(save_memory 工具桥):Agent 作业中总结的可复用经验/结论。
158
170
  * scope='private' → 本人记忆库;scope='shared' → Channel 公共记忆域(全员可检索);
159
171
  * sessionId 给定时记忆带会话作用域(session 档检索可命中)。
160
172
  */
161
- saveMemory(input: { title: string, content: string, importance?: number, scope: 'private' | 'shared', dedupKey?: string, sessionId?: string | null }): Promise<{ scope: 'private' | 'shared', dedupKey: string }>
173
+ saveMemory(input: {
174
+ title: string
175
+ content: string
176
+ importance?: number
177
+ scope: 'private' | 'shared' | 'line' | 'global'
178
+ dedupKey?: string
179
+ sessionId?: string | null
180
+ /** line/global 经验条目的证据锚点(WP-A4;必填,否则拒绝) */
181
+ taskId?: string | null
182
+ }): Promise<{ scope: 'private' | 'shared' | 'line' | 'global', dedupKey: string }>
183
+ /**
184
+ * 改进提案读面(WP-D2;只读):本 channel 的「带证据候选」(改配方/入知识/补 runbook)。
185
+ * 执行永远走各自 HITL 工具,本方法不产生任何写动作。
186
+ */
187
+ listImprovementProposals?(input: { status?: 'pending' | 'accepted' | 'rejected' | 'expired', limit?: number }): Promise<Array<{
188
+ id: string
189
+ kind: string
190
+ lineId: string
191
+ recipeId: string
192
+ sourceKind: string
193
+ sourceId: string
194
+ title: string
195
+ detail: string
196
+ status: string
197
+ decidedAt: string | null
198
+ createdAt: string
199
+ }>>
200
+ /**
201
+ * 跨 Channel 共享经验检索(WP-A4;成员可调,只读):同 owner 频道的 experience 行,
202
+ * 按 line/product/global 作用域锚定;仅返回 active/validated(候选经验不外泄)。
203
+ */
204
+ searchSharedExperience?(input: {
205
+ query: string
206
+ scope: 'line' | 'product' | 'global'
207
+ scopeKey?: string
208
+ limit?: number
209
+ }): Promise<Array<{
210
+ channelId: string
211
+ channelName: string
212
+ title: string
213
+ content: string
214
+ outcome: string
215
+ status: string
216
+ scopeKind: string
217
+ scopeKey: string
218
+ importance: number
219
+ createdAt: string
220
+ taskId: string | null
221
+ visibility: 'channel-shared' | 'private' | 'cross-channel'
222
+ }>>
162
223
  /**
163
224
  * 会话压缩摘要入库(harvest 桥;omp compaction 产出的会话摘要 → 本成员持久记忆)。
164
225
  * 平台 70% 主动压缩与 omp 原生 auto-compaction 双路统一经此落库(episodic-session)。
@@ -29,6 +29,7 @@ import type {
29
29
  SupervisionSnapshot,
30
30
  } from './agent-interface'
31
31
  import { createSessionState, dispatchHostTool, type HostToolBridgeContext, type HostToolSessionState } from './host-tool-bridge'
32
+ import { channelOverlayText } from '../experience/overlay'
32
33
  import {
33
34
  contextPrefix as buildContextPrefix,
34
35
  createRosterCache,
@@ -264,7 +265,12 @@ export abstract class BaseAgentImpl implements AgentInterface {
264
265
  agentId: this.selfAgentId,
265
266
  roster: await this.roster.roster(),
266
267
  })
267
- return this.currentSessionBlock ? `${base}\n\n${this.currentSessionBlock}` : base
268
+ return [
269
+ base,
270
+ this.currentSessionBlock,
271
+ // WP-B1:频道 Harness overlay(仅 active profile;无 profile → '',prompt 与现状逐字节一致)
272
+ channelOverlayText(this.channelId),
273
+ ].filter(part => !!part).join('\n\n')
268
274
  }
269
275
 
270
276
  /** 消息/任务 parts 拼文本(worker/peer 共用) */
@@ -32,6 +32,7 @@ import { handleCancelTask, handleDispatchTask, handleGetMyTaskQueue, handleGetTa
32
32
  import { handleGrantNodes, handleRevokeNodes } from './tools/team-delegation'
33
33
  import { handleBroadcastMessage, handleListOtherTeams, handlePollMessages, handleReadChannelMail, handleSearchOtherTeamsMemory, handleSendCrossChannelMessage, handleSendMessageToAgent } from './tools/messaging'
34
34
  import { handleSaveMemory, handleSearchMemory } from './tools/memory'
35
+ import { handleImprovementList } from './tools/improvement'
35
36
  import { handleCreateTeamAgent, handleGetQueueOverview, handleListTeamAgents, handleRemoveTeamAgent, handleUpdateTeamAgent } from './tools/team'
36
37
  import { HYBRID_TWIN_DIRECT_WRITE_TOOL_NAMES, OBSERVE_BLOCKED_TOOL_NAMES } from '../tool-classes'
37
38
  import { GovernanceHarnessAuditError, withGovernanceHarnessToolAudit } from '../governance-harness-audit'
@@ -408,6 +409,8 @@ async function dispatchHostToolInner(ctx: HostToolBridgeContext, req: HostToolCa
408
409
  return await handleSearchMemory(args, ws, ctx.state.sessionId)
409
410
  case 'save_memory':
410
411
  return await handleSaveMemory(args, ws, ctx.state.sessionId)
412
+ case 'improvement_list':
413
+ return await handleImprovementList(args, ws)
411
414
  case 'create_team_agent':
412
415
  return await handleCreateTeamAgent(args, ws)
413
416
  case 'update_team_agent':
@@ -0,0 +1,33 @@
1
+ /**
2
+ * 改进提案读面(WP-D2)—— improvement_list 工具。
3
+ *
4
+ * 只读:把反射器产出的「带证据候选」列给 Agent(改配方/入知识/补 runbook 的建议)。
5
+ * 真正的写动作必须走各自的 HITL 工具(recipe_update / kb_agent ingest),本工具不写任何东西。
6
+ */
7
+ import type { AgentWorkspace } from '../../agent-interface'
8
+ import type { HostToolResult } from '../types'
9
+
10
+ const STATUSES = new Set(['pending', 'accepted', 'rejected', 'expired'])
11
+
12
+ export async function handleImprovementList(args: Record<string, unknown>, ws: AgentWorkspace): Promise<HostToolResult> {
13
+ if (!ws.listImprovementProposals) {
14
+ return { text: '改进提案读面在当前运行时不可用(workspace 未接线)。', isError: true }
15
+ }
16
+ const rawStatus = typeof args.status === 'string' ? args.status.trim() : ''
17
+ const status = rawStatus && STATUSES.has(rawStatus) ? rawStatus as 'pending' | 'accepted' | 'rejected' | 'expired' : undefined
18
+ const limit = typeof args.limit === 'number' ? args.limit : undefined
19
+ const rows = await ws.listImprovementProposals({ status, limit })
20
+ if (rows.length === 0) {
21
+ return { text: `暂无改进提案${status ? `(status=${status})` : ''}。提案由反射器在干预判定为 identifiable_effect 等场景自动产出。` }
22
+ }
23
+ const lines = rows.map((r) => {
24
+ const ev = [
25
+ r.lineId ? `line=${r.lineId}` : '',
26
+ r.recipeId ? `recipe=${r.recipeId}` : '',
27
+ `source=${r.sourceKind}:${r.sourceId.slice(0, 8)}`,
28
+ r.decidedAt ? `decided=${r.decidedAt.slice(0, 16)}` : '',
29
+ ].filter(Boolean).join(' · ')
30
+ return `- [${r.status}] ${r.title}\n ${r.detail}\n id=${r.id} · ${ev}`
31
+ })
32
+ return { text: `改进提案(${rows.length} 条${status ? `,status=${status}` : ''}):\n${lines.join('\n')}\n\n注意:提案只是候选;执行必须走对应 HITL 工具(recipe_update 等),审批通过后才会真正改产线。` }
33
+ }
@@ -6,23 +6,37 @@
6
6
  import type { AgentWorkspace } from '../../agent-interface'
7
7
  import type { HostToolResult } from '../types'
8
8
 
9
+ type RecallScope = 'auto' | 'private' | 'shared' | 'session'
10
+ type CrossScope = 'line' | 'product' | 'global'
11
+ const CROSS_SCOPES: CrossScope[] = ['line', 'product', 'global']
12
+
9
13
  export async function handleSearchMemory(args: Record<string, unknown>, ws: AgentWorkspace, sessionId?: string | null): Promise<HostToolResult> {
10
14
  const query = args.query as string
11
- const scope = (args.scope as 'auto' | 'private' | 'shared' | 'session' | undefined) ?? 'auto'
12
- if (scope === 'session' && !sessionId) {
15
+ const scope = (args.scope as RecallScope | CrossScope | undefined) ?? 'auto'
16
+ // WP-A4:line/product/global = 跨 Channel 共享经验档(同 owner 授权在 manager 层)
17
+ if (CROSS_SCOPES.includes(scope as CrossScope)) {
18
+ return searchCrossChannel(args, ws, scope as CrossScope)
19
+ }
20
+ const recallScope = scope as RecallScope
21
+ if (recallScope === 'session' && !sessionId) {
13
22
  return { text: '当前回合没有 session 上下文,scope=session 不可用;请改用 auto/private/shared。' }
14
23
  }
15
- const snippets = await ws.recallMemory({ query, scope, limit: args.limit as number | undefined, sessionId })
24
+ const snippets = await ws.recallMemory({ query, scope: recallScope, limit: args.limit as number | undefined, sessionId })
16
25
  if (snippets.length === 0) {
17
26
  return { text: `记忆检索无命中(query="${query}", scope=${scope})。可尝试更换关键词或放宽 scope。` }
18
27
  }
19
28
  const lines = snippets.map((s) => {
20
29
  // §7.4:每条记忆标注来源 Channel / task / session / 可见性,便于判断可信来源
30
+ // WP-A3:经验行额外标注作用域/极性/生命周期(scope=line:x · outcome=positive · status=validated)
31
+ const isExperience = s.kind === 'experience'
21
32
  const provenance = [
22
33
  s.source,
23
34
  s.kind,
24
35
  `score=${s.score}`,
25
36
  s.visibility ?? '',
37
+ isExperience && s.scopeKind ? `scope=${s.scopeKind}${s.scopeKey ? `:${s.scopeKey}` : ''}` : '',
38
+ isExperience && s.outcome ? `outcome=${s.outcome}` : '',
39
+ isExperience && s.status ? `status=${s.status}` : '',
26
40
  s.channelId ? `channel=${s.channelId.slice(0, 8)}` : '',
27
41
  s.taskId ? `task=${s.taskId.slice(0, 8)}` : '',
28
42
  s.sessionId ? `session=${s.sessionId.slice(0, 8)}` : '',
@@ -40,21 +54,63 @@ export async function handleSearchMemory(args: Record<string, unknown>, ws: Agen
40
54
  export async function handleSaveMemory(args: Record<string, unknown>, ws: AgentWorkspace, sessionId?: string | null): Promise<HostToolResult> {
41
55
  const title = args.title as string
42
56
  const content = args.content as string
43
- const scope = args.scope as 'private' | 'shared'
57
+ const scope = args.scope as 'private' | 'shared' | 'line' | 'global'
44
58
  // session_scope=false 显式声明频道级记忆;默认(缺省/true)落当前会话作用域
45
59
  const sessionScope = args.session_scope === undefined ? true : args.session_scope === true
46
60
  const sessionIdToStamp = sessionScope ? (sessionId ?? null) : null
47
- const saved = await ws.saveMemory({
48
- title,
49
- content,
50
- importance: args.importance as number | undefined,
51
- scope,
52
- dedupKey: args.dedup_key as string | undefined,
53
- sessionId: sessionIdToStamp,
54
- })
61
+ // WP-A4:跨频道经验必须带证据锚点(任务 id),无锚点自述不得进入共享经验层
62
+ const taskId = typeof args.task_id === 'string' && args.task_id.trim() ? args.task_id.trim() : null
63
+ let saved: { scope: 'private' | 'shared' | 'line' | 'global', dedupKey: string }
64
+ try {
65
+ saved = await ws.saveMemory({
66
+ title,
67
+ content,
68
+ importance: args.importance as number | undefined,
69
+ scope,
70
+ dedupKey: args.dedup_key as string | undefined,
71
+ sessionId: sessionIdToStamp,
72
+ taskId,
73
+ })
74
+ }
75
+ catch (err) {
76
+ // 策略/绑定/证据门拒绝:原文回给 Agent(可据此改档位重试),不伪装成功
77
+ return { text: `记忆写入被拒绝: ${err instanceof Error ? err.message : String(err)}`, isError: true } as HostToolResult
78
+ }
79
+ if (scope === 'line' || scope === 'global') {
80
+ return { text: `已沉淀${scope === 'line' ? '同产线共享经验(跨频道可检索)' : '全局共享经验(跨频道可检索)'}: "${title}"(status=candidate,待验证后晋级; dedupKey=${saved.dedupKey})` }
81
+ }
55
82
  const where = scope === 'shared' ? 'Channel 公共记忆(全员可检索)' : '本人私有记忆'
56
83
  const sessionNote = sessionIdToStamp
57
84
  ? `;已标注会话作用域(${sessionIdToStamp.slice(0, 8)}…,scope=session 检索可命中)`
58
85
  : ';频道级(跨会话可见)'
59
86
  return { text: `已沉淀到${where}: "${title}"(dedupKey=${saved.dedupKey})${sessionNote}` }
60
87
  }
88
+
89
+ /** 跨 Channel 共享经验检索(WP-A4):同 owner 频道的 experience 行,只读 */
90
+ async function searchCrossChannel(args: Record<string, unknown>, ws: AgentWorkspace, scope: CrossScope): Promise<HostToolResult> {
91
+ if (!ws.searchSharedExperience) {
92
+ return { text: '跨频道经验检索在当前运行时不可用(workspace 未接线)。', isError: true } as HostToolResult
93
+ }
94
+ const query = args.query as string
95
+ const scopeKey = typeof args.scope_key === 'string' && args.scope_key.trim() ? args.scope_key.trim() : undefined
96
+ if (scope === 'product' && !scopeKey) {
97
+ return { text: 'scope=product 需要 scope_key(产品 id),例如 scope_key="prod-..."。' }
98
+ }
99
+ const rows = await ws.searchSharedExperience({ query, scope, scopeKey, limit: args.limit as number | undefined })
100
+ if (rows.length === 0) {
101
+ return { text: `跨频道经验检索无命中(query="${query}", scope=${scope}${scopeKey ? `:${scopeKey}` : ''})。仅同 owner 频道且 status=active/validated 的经验可命中。` }
102
+ }
103
+ const lines = rows.map((r) => {
104
+ const provenance = [
105
+ 'cross-channel',
106
+ r.channelName,
107
+ `scope=${r.scopeKind}${r.scopeKey ? `:${r.scopeKey}` : ''}`,
108
+ `outcome=${r.outcome}`,
109
+ `status=${r.status}`,
110
+ r.taskId ? `task=${r.taskId.slice(0, 8)}` : '',
111
+ r.createdAt.slice(0, 16).replace('T', ' '),
112
+ ].filter(Boolean).join(' · ')
113
+ return ` [${provenance}] ${r.title}\n ${r.content}`
114
+ })
115
+ return { text: `跨频道经验检索结果(${rows.length} 条, scope=${scope}):\n${lines.join('\n')}` }
116
+ }
@@ -28,6 +28,8 @@ export interface AnalysisSaveInput {
28
28
  line_id?: string
29
29
  recipe_id?: string
30
30
  recipe_version?: string
31
+ /** RSI WP-D1:关联配方试验批次(dcw-runs.runId),把分析结论挂进证据链 */
32
+ recipe_run_id?: string
31
33
  window_from?: string
32
34
  window_to?: string
33
35
  data_sources?: string
@@ -163,6 +165,7 @@ export async function toolAnalysisSave(agentId: string, args: AnalysisSaveInput,
163
165
  metrics: (args.metrics && typeof args.metrics === 'object' && !Array.isArray(args.metrics) ? args.metrics : {}) as Record<string, unknown>,
164
166
  recipeId,
165
167
  recipeVersion,
168
+ recipeRunId: String(args.recipe_run_id ?? '').trim(),
166
169
  windowFrom,
167
170
  windowTo,
168
171
  dataSources: String(args.data_sources ?? ''),
@@ -10,6 +10,7 @@
10
10
  */
11
11
  import { getToolApprovals } from '../tool-approvals'
12
12
  import { agentBadgeLabel } from '../agent-badge'
13
+ import { currentToolInvocation } from '../governance-harness-audit'
13
14
  import { getDcwController } from '../../dcw/dcw-controller'
14
15
  import { getDcwLineRepo } from '../../dcw/dcw-line.repo'
15
16
  import { recordOps } from '../../ops/ops'
@@ -103,7 +104,16 @@ export async function toolLineStart(agentId: string, args: LineStartInput, chann
103
104
  return { text: `审批通过后复核失败:产线「${lineName}」已在运行(批次 ${ctrl.lineState(lineId).runId}),本次未重复开线。`, isError: true }
104
105
  }
105
106
  try {
106
- const run = await ctrl.lineStart(lineId, recipeId)
107
+ // 归因:line_start 的逐参数写入必须携带频道/任务锚点,否则干预台账 channel 为空,
108
+ // C1 独立回读的任务终态补扫(按 channel 取 pending)永远看不到这批写入。
109
+ const invocation = currentToolInvocation()
110
+ const run = await ctrl.lineStart(lineId, recipeId, {
111
+ source: 'recipe',
112
+ actor: agentId,
113
+ actorName: agentBadgeLabel(agentId),
114
+ channelId: channelId ?? '',
115
+ ...(invocation?.taskId ? { taskId: invocation.taskId } : {}),
116
+ })
107
117
  const results = run.results ?? []
108
118
  const failed = results.filter(r => !r.ok)
109
119
  const unverified = results.filter(r => r.ok && r.verify?.verdict !== 'verified' && r.ack !== 'readback-verified')
@@ -22,6 +22,8 @@ import { RECOVERY_RETRY_HINT, RECOVERY_TRACE_HINT, RECOVERY_VERIFY_HINT } from '
22
22
  import { approvalOnlyTrialReceipt, sameApprovalOnlyTrialReceipt, type ApprovalOnlyTrialReceipt } from './bench-approval-only'
23
23
  import { currentToolInvocation } from '../governance-harness-audit'
24
24
  import { executionModeOfAgent } from '../execution-mode'
25
+ import { getAmlRuntime } from '../../aml/runtime'
26
+ import { markRecipeProposalsAccepted } from '../../db/improvement.repo'
25
27
 
26
28
  // ================================================================
27
29
  // 运维日志 / Recipe 变更史查询(Agent 自查面:负责产线 scoped)
@@ -41,6 +43,19 @@ export function channelBoundLineId(agentId: string): string | null {
41
43
  }
42
44
  }
43
45
 
46
+ /** Agent 成员所属 Channel(写台账归因用;manager 未装配 → 空串) */
47
+ export function channelIdOfAgent(agentId: string): string {
48
+ try {
49
+ const g = globalThis as typeof globalThis & {
50
+ __workshopManager?: { deps?: { repos?: { channelAgents?: { findById(id: string): { channelId?: string } | undefined } } } }
51
+ }
52
+ return g.__workshopManager?.deps?.repos?.channelAgents?.findById(agentId)?.channelId ?? ''
53
+ }
54
+ catch {
55
+ return ''
56
+ }
57
+ }
58
+
44
59
  /** Agent 负责范围 = 绑定节点的全集(节点 id 集 + 这些节点所属产线集)
45
60
  * ∪ 绑定配方所在产线(kind='recipe';v2 权限模型:配方绑定授予该线的读面+配方操作面)
46
61
  * ∪ 频道绑定产线(boundLineIds;v18 只读扩权:日志/配方史/上下文可读)。 */
@@ -870,6 +885,11 @@ export async function toolRecipeUpdate(agentId: string, args: {
870
885
  return `${node?.name ?? p.node_id} ${before ?? '?'}→${Number(p.value)}`
871
886
  }).join(';')
872
887
  const droppedNote = dropped.length > 0 ? `\n注意:已自动剔除失效参数(${dropped.join('、')}:节点已删除或改挂其他产线),这些参数不再属于本配方。` : ''
888
+ // WP-D2:配方固化成功后,把该配方的 pending 改进提案收口为 accepted(提案≠写,只反映处理结果)
889
+ try {
890
+ markRecipeProposalsAccepted(getAmlRuntime().db, recipeId, agentBadgeLabel(agentId))
891
+ }
892
+ catch { /* 提案收口失败不影响配方保存 */ }
873
893
  return {
874
894
  text: `已保存为 v${updated.version ?? 1}:「${updated.name}」参数 ${changedNodes};原因:${reason}。${droppedNote}${hitlNote}\n注意:配方定义已更新,运行中批次仍按开跑时冻结的参数生产;要把新参数推到运行中的产线(经治理联锁整批下发),用 recipe_apply。回退用 recipe_rollback。`,
875
895
  }
@@ -1260,6 +1280,7 @@ export async function toolRecipeTrial(agentId: string, args: {
1260
1280
  overrides: list, trial: true, agentDispatch: true, agentApprovalId: gateApprovalId, emergency,
1261
1281
  agentTrialMeta: {
1262
1282
  actor: agentId, actorName: agentBadgeLabel(agentId), hypothesis,
1283
+ channelId: invocation?.channelId || channelIdOfAgent(agentId),
1263
1284
  ...(invocation?.agentId === agentId && invocation.taskId ? { taskId: invocation.taskId } : {}),
1264
1285
  executionMode: executionModeOfAgent(agentId),
1265
1286
  },
@@ -1390,6 +1411,7 @@ export async function toolRecipeApply(agentId: string, args: {
1390
1411
  agentTrialMeta: {
1391
1412
  actor: agentId,
1392
1413
  actorName: agentBadgeLabel(agentId),
1414
+ channelId: invocation?.channelId || channelIdOfAgent(agentId),
1393
1415
  ...(invocation?.agentId === agentId && invocation.taskId ? { taskId: invocation.taskId } : {}),
1394
1416
  executionMode: executionModeOfAgent(agentId),
1395
1417
  },
@@ -27,7 +27,8 @@ import { recordOps } from '../../ops/ops'
27
27
  import { evaluateRecipeParamLimits } from '../../dcw/dcw-controller/write'
28
28
  import { GOVERNED_DISPATCH_HINT, RECOVERY_RETRY_HINT, RECOVERY_TRACE_HINT, RECOVERY_VERIFY_HINT } from './fallback-hints'
29
29
  import { amlActivityForLine } from './aml-activity'
30
- import { agentOpsScope, revalidateApprovedAction } from './ops-tools'
30
+ import { agentOpsScope, channelIdOfAgent, revalidateApprovedAction } from './ops-tools'
31
+ import { recipeEvidenceText } from '../../dcw/recipe-evidence'
31
32
 
32
33
  /** 候选包上限(防审批卡被刷屏;1~3 套) */
33
34
  const MAX_PACKAGES = 3
@@ -306,6 +307,7 @@ export async function toolRecipePropose(agentId: string, args: {
306
307
  actor: agentId,
307
308
  actorName: agentBadgeLabel(agentId),
308
309
  hypothesis: chosen.name,
310
+ channelId: invocation?.channelId || channelIdOfAgent(agentId),
309
311
  ...(invocation?.agentId === agentId && invocation.taskId ? { taskId: invocation.taskId } : {}),
310
312
  executionMode: executionModeOfAgent(agentId),
311
313
  },
@@ -353,7 +355,11 @@ export async function toolRecipePropose(agentId: string, args: {
353
355
  return `- ${label} ${change}${node?.unit ?? ''}${ackTagOf(r)}${r.ok ? '' : ` 被拒:${String(r.message).slice(0, 80)}`}`
354
356
  })
355
357
  const feedback = decision.comment ? `\n[人工反馈] ${decision.comment}` : ''
356
- const runIdNote = `runId:${run.id}(后续轮次按此回访效果并回写经验)`
358
+ // RSI WP-D1:回执附证据链(批次成效由 verdict 聚合,取代"自行回访"的提示词纪律)
359
+ const evidenceBlock = recipeEvidenceText(recipeId, { limit: 3 })
360
+ const runIdNote = evidenceBlock
361
+ ? `runId:${run.id}(后续轮次按此回访效果并回写经验)\n\n${evidenceBlock}`
362
+ : `runId:${run.id}(后续轮次按此回访效果并回写经验)`
357
363
  // 全失败:响亮失败(isError;统一回退指引,口径 mirror recipe_trial/recipe_rollback)
358
364
  if (run.results.length > 0 && okN === 0) {
359
365
  return {
@@ -27,6 +27,10 @@ export abstract class OmpRpcAgentImplClient extends OmpRpcAgentImplEventMapping
27
27
  if (this.client) this.harnessRestartReason = 'PROCESS_EXIT'
28
28
  this.client = null
29
29
  this.hostToolsRegistered = false
30
+ // 会话身份随进程失效:新进程是**新会话**,旧 sessionId 残留会被
31
+ // noteHarnessUse 绑到新 pid(continuity 报假身份,比 null 更危险)。
32
+ // 置空后由下方 probeContext 从新进程 get_state 重新取回。
33
+ this.sessionId = null
30
34
  const command = this.config.command ?? 'omp'
31
35
  const client = new OmpRpcClient({
32
36
  command,
@@ -91,7 +95,13 @@ export abstract class OmpRpcAgentImplClient extends OmpRpcAgentImplEventMapping
91
95
  await client.send({ type: 'set_host_tools', tools: hostToolsForAgent(this.selfAgentId, this.agentRole, this.channelId) })
92
96
 
93
97
  // 上下文治理探测(feature-detect 一次;失败退化被动 usage 跟踪)+ 原生压缩兜底保持开启
94
- void this.probeContext(client).catch(() => {})
98
+ // 会话身份(sessionId)也由 probeContext 取回:必须 **await** —— fire-and-forget 会与
99
+ // omp 会话 bootstrap 竞态,首回合可能取不到 → continuity 长期 sessionless(实测)。
100
+ // 探测失败不阻塞建连(旧版 omp 无 get_state),此时由回合落定钩子 probeSessionIdentity 补探。
101
+ try {
102
+ await this.probeContext(client)
103
+ }
104
+ catch { /* 探测不可用:仅被动 usage 跟踪 */ }
95
105
  void client.send({ type: 'set_auto_compaction', enabled: true }).catch(() => {})
96
106
 
97
107
  this.client = client
@@ -99,6 +109,13 @@ export abstract class OmpRpcAgentImplClient extends OmpRpcAgentImplEventMapping
99
109
  }
100
110
  }
101
111
 
112
+ /** 会话身份兜底探测(覆盖 core 的空实现):回合落定后若无 sessionId,向活客户端补探一次。 */
113
+ protected override async probeSessionIdentity(): Promise<void> {
114
+ const client = this.client
115
+ if (!client || !client.alive) return
116
+ await this.probeContext(client)
117
+ }
118
+
102
119
  /** 上下文状态探测:get_state 取 contextWindow/sessionId(一次;失败仅损失 percent 精度) */
103
120
  protected async probeContext(client: OmpRpcClient): Promise<void> {
104
121
  try {
@@ -207,8 +207,20 @@ export abstract class OmpRpcAgentImplContextGovernance extends OmpRpcAgentImplCo
207
207
  }
208
208
  }
209
209
 
210
- /** 回合落定钩子(AgentRuntime 在信箱空时调用):后台压缩检查,自守卫不抛错 */
210
+ /**
211
+ * 回合落定钩子(AgentRuntime 在信箱空时调用):会话身份兜底探测 + 后台压缩检查。
212
+ *
213
+ * 会话身份:建连时已 await 一次 probeContext,但 omp 可能在**首个 prompt 之后**才分配
214
+ * sessionId —— 回合结束时补探一次,保证重建后的会话最终一定有身份(否则 continuity
215
+ * 长期 sessionless,卸载/预算/救援决策都基于错误状态)。探测失败静默。
216
+ */
211
217
  async onTurnSettled(): Promise<void> {
218
+ if (!this.sessionId) {
219
+ try {
220
+ await this.probeSessionIdentity()
221
+ }
222
+ catch { /* 探测不可用:保持 null,不阻塞 */ }
223
+ }
212
224
  await this.contextGate('post-settle')
213
225
  }
214
226
  }
@@ -16,6 +16,12 @@ import { randomUUID } from 'node:crypto'
16
16
  export abstract class OmpRpcAgentImplCore extends BaseAgentImpl {
17
17
  // ── 跨层能力契约(由后面的层实现;见本文件头部说明)──
18
18
  protected abstract ensureClient(ctx: AgentRunContext): Promise<void>
19
+ /**
20
+ * 会话身份兜底探测(get_state → sessionId)。默认空实现:未覆盖该钩子的层不报错。
21
+ * 实现在 client 层(那里持有 client 与 probeContext);context-governance 的回合落定
22
+ * 钩子经本方法补探 —— 客户端重建后 omp 可能在首个 prompt 之后才分配 sessionId。
23
+ */
24
+ protected async probeSessionIdentity(): Promise<void> {}
19
25
  protected abstract mapOmpEvent(event: AgentSessionEvent, taskId: string | undefined): AgentEvent[]
20
26
  /** 构造器里 `liveAgents().add(this)` 需要本能力在**本层**可见(实现在 02-lifecycle)。
21
27
  * 必须是 public:结构化类型 `LiveOmpAgent` 只认公开成员,protected 不参与可赋值性判断。 */
@@ -0,0 +1,55 @@
1
+ /**
2
+ * 任务实例的 AML Profile 继承(WP-D5)。
3
+ *
4
+ * 背景:任务实例 Channel 此前完全不继承母频道 profile(=legacy),导致经验最丰富的
5
+ * 优化频道无法把能力随任务实例带出去(审计 G3)。
6
+ *
7
+ * 纪律(ADR-6):
8
+ * - 继承 profile/capability/scene/objective/optimizationMode/provider 谱系;
9
+ * - **写权限降档**:`bounded_auto` 一律降为 `hitl_governed`(实例是任务域临时实体,
10
+ * 写权限不得高于母频道常态);`recommendation_only` 原样;
11
+ * - **不继承模型绑定**(boundModelId/boundAt):实例是短命实体,绑定需重新过
12
+ * `assertModelBindableToChannel` 门禁,禁止隐式携带;
13
+ * - 母频道为 legacy → 不写实例 profile(保持缺省零行为)。
14
+ */
15
+ import type { HybridChannelProfile } from '../aml/twin/channel-profile'
16
+ import { getChannelTwinProfile, setHybridChannelProfile } from '../aml/twin/channel-profile'
17
+
18
+ /** 母 profile → 实例可继承的字段(降档后的纯函数,便于单测) */
19
+ export function instanceProfileOf(parent: HybridChannelProfile): Omit<HybridChannelProfile, 'channelId'> | null {
20
+ if (!parent || parent.profile === 'legacy') return null
21
+ return {
22
+ profile: parent.profile,
23
+ capability: parent.capability ?? {},
24
+ ...(parent.sceneId ? { sceneId: parent.sceneId } : {}),
25
+ ...(parent.sceneVersion ? { sceneVersion: parent.sceneVersion } : {}),
26
+ ...(parent.sceneContract ? { sceneContract: parent.sceneContract } : {}),
27
+ ...(parent.objective ? { objective: parent.objective } : {}),
28
+ // 写权限降档:bounded_auto → hitl_governed;其余原样
29
+ controlPolicy: parent.controlPolicy === 'bounded_auto' ? 'hitl_governed' : parent.controlPolicy,
30
+ ...(parent.providerId ? { providerId: parent.providerId } : {}),
31
+ ...(parent.providerVersion ? { providerVersion: parent.providerVersion } : {}),
32
+ ...(parent.providerHash ? { providerHash: parent.providerHash } : {}),
33
+ ...(parent.scenePackId ? { scenePackId: parent.scenePackId } : {}),
34
+ ...(parent.providerGeneration !== undefined ? { providerGeneration: parent.providerGeneration } : {}),
35
+ ...(parent.optimizationMode ? { optimizationMode: parent.optimizationMode } : {}),
36
+ ...(parent.executionMode ? { executionMode: parent.executionMode } : {}),
37
+ }
38
+ }
39
+
40
+ /**
41
+ * 把母频道的 profile 复制到任务实例(降档 + 不继承模型绑定)。
42
+ * 失败只记日志:实例装配绝不因 profile 继承失败而中断。
43
+ */
44
+ export function inheritChannelProfile(parentChannelId: string, instanceChannelId: string): boolean {
45
+ try {
46
+ const parent = getChannelTwinProfile(parentChannelId)
47
+ const inherited = instanceProfileOf(parent)
48
+ if (!inherited) return false
49
+ setHybridChannelProfile({ ...inherited, channelId: instanceChannelId, createdBy: 'system:task-instance' })
50
+ return true
51
+ }
52
+ catch {
53
+ return false
54
+ }
55
+ }
@@ -21,6 +21,7 @@
21
21
  import { randomUUID } from 'node:crypto'
22
22
  import { parseJson } from '../db/database'
23
23
  import { AppError } from '../../../utils/errors'
24
+ import { inheritChannelProfile } from './task-channel-profile'
24
25
 
25
26
  export const TASK_INSTANCE_MARKER = '·任务·'
26
27
  const EXCLUDED_NAME_MARKERS = [TASK_INSTANCE_MARKER, '·session·']
@@ -162,5 +163,7 @@ export async function createTaskInstanceChannel(deps: TaskInstanceDeps, input: {
162
163
  createdByKind: 'project',
163
164
  instanceKind: 'task',
164
165
  })
166
+ // 5) RSI WP-D5:继承母频道 AML profile(降档 + 不继承模型绑定;legacy 不写)
167
+ inheritChannelProfile(input.templateChannelId, created.channelId)
165
168
  return { sessionId: session.id, channelId: created.channelId, leadAgentId: created.leadAgentId, members }
166
169
  }
@@ -152,6 +152,14 @@ export function recordIntervention(input: InterventionRecordInput): string | nul
152
152
  }
153
153
  }
154
154
 
155
+ /** verdict 回填后的反射钩子(RSI WP-A2;manager 装配;null = 不反射) */
156
+ let assessmentReflectHook: ((eventId: string) => void) | null = null
157
+
158
+ /** 注册/注销 verdict 反射钩子(幂等;传 null 注销) */
159
+ export function registerInterventionAssessmentHook(fn: ((eventId: string) => void) | null): void {
160
+ assessmentReflectHook = fn
161
+ }
162
+
155
163
  /** 回填可辨识性判定(exploration 判读或回填任务调用) */
156
164
  export function attachAssessment(
157
165
  id: string,
@@ -174,6 +182,12 @@ export function attachAssessment(
174
182
  assessment.detail ? JSON.stringify(assessment.detail) : null,
175
183
  new Date().toISOString(), id,
176
184
  )
185
+ // RSI 经验反射(WP-A2):verdict 落地即触发经验蒸馏(钩子由 manager 装配;
186
+ // 未注册时(单测/独立脚本)静默跳过 —— 学习环永不阻断台账写入)
187
+ try {
188
+ assessmentReflectHook?.(id)
189
+ }
190
+ catch { /* 学习环故障不影响判定回填 */ }
177
191
  return true
178
192
  }
179
193
  catch (err) {