kiokuko-dsh 0.2.39 → 0.2.41

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 (540) hide show
  1. package/PERMISSIONS.md +2 -2
  2. package/README.ja.md +17 -5
  3. package/README.ko.md +17 -5
  4. package/README.md +17 -5
  5. package/README.zh-CN.md +17 -5
  6. package/dist/akinator/skill-discovery-attempt.d.ts +3 -1
  7. package/dist/akinator/skill-discovery-attempt.d.ts.map +1 -1
  8. package/dist/akinator/skill-discovery-attempt.js +12 -11
  9. package/dist/akinator/skill-discovery-attempt.js.map +1 -1
  10. package/dist/client.cjs +7 -10
  11. package/dist/client.d.ts.map +1 -1
  12. package/dist/context/continuity-view.d.ts +0 -11
  13. package/dist/context/continuity-view.d.ts.map +1 -1
  14. package/dist/context/continuity-view.js +5 -9
  15. package/dist/context/continuity-view.js.map +1 -1
  16. package/dist/deep-thinker/controller.d.ts +4 -1
  17. package/dist/deep-thinker/controller.d.ts.map +1 -1
  18. package/dist/deep-thinker/controller.js +10 -0
  19. package/dist/deep-thinker/controller.js.map +1 -1
  20. package/dist/deep-thinker/core/contracts.d.ts +11 -11
  21. package/dist/deep-thinker/memory-finalizer.d.ts +1 -1
  22. package/dist/deep-thinker/native-executor.d.ts +1 -1
  23. package/dist/deep-thinker/native-executor.d.ts.map +1 -1
  24. package/dist/deep-thinker/prompts.js +1 -1
  25. package/dist/deep-thinker/prompts.js.map +1 -1
  26. package/dist/deep-thinker/quality-prompts.js +1 -1
  27. package/dist/deep-thinker/quality-prompts.js.map +1 -1
  28. package/dist/deep-thinker/report.d.ts +1 -1
  29. package/dist/deep-thinker/store.d.ts +1 -1
  30. package/dist/dsh/agenticreplay-hooks.d.ts.map +1 -1
  31. package/dist/dsh/agenticreplay-hooks.js +13 -0
  32. package/dist/dsh/agenticreplay-hooks.js.map +1 -1
  33. package/dist/dsh/agenticreplay-recorder.d.ts +5 -0
  34. package/dist/dsh/agenticreplay-recorder.d.ts.map +1 -1
  35. package/dist/dsh/agenticreplay-recorder.js +19 -0
  36. package/dist/dsh/agenticreplay-recorder.js.map +1 -1
  37. package/dist/dsh/coding-workflow/contracts.d.ts +2 -5
  38. package/dist/dsh/coding-workflow/contracts.d.ts.map +1 -1
  39. package/dist/dsh/coding-workflow/contracts.js +1 -1
  40. package/dist/dsh/coding-workflow/contracts.js.map +1 -1
  41. package/dist/dsh/coding-workflow/host.d.ts.map +1 -1
  42. package/dist/dsh/coding-workflow/host.js +1 -4
  43. package/dist/dsh/coding-workflow/host.js.map +1 -1
  44. package/dist/dsh/coding-workflow/intent.d.ts.map +1 -1
  45. package/dist/dsh/coding-workflow/intent.js +0 -6
  46. package/dist/dsh/coding-workflow/intent.js.map +1 -1
  47. package/dist/dsh/coding-workflow/service.d.ts +4 -8
  48. package/dist/dsh/coding-workflow/service.d.ts.map +1 -1
  49. package/dist/dsh/coding-workflow/service.js +5 -57
  50. package/dist/dsh/coding-workflow/service.js.map +1 -1
  51. package/dist/dsh/completion-report.d.ts +0 -31
  52. package/dist/dsh/completion-report.d.ts.map +1 -1
  53. package/dist/dsh/completion-report.js +16 -94
  54. package/dist/dsh/completion-report.js.map +1 -1
  55. package/dist/dsh/composition.d.ts +1 -3
  56. package/dist/dsh/composition.d.ts.map +1 -1
  57. package/dist/dsh/composition.js +13 -34
  58. package/dist/dsh/composition.js.map +1 -1
  59. package/dist/dsh/config.d.ts +1 -22
  60. package/dist/dsh/config.d.ts.map +1 -1
  61. package/dist/dsh/config.js +0 -8
  62. package/dist/dsh/config.js.map +1 -1
  63. package/dist/dsh/context-injection.d.ts +1 -11
  64. package/dist/dsh/context-injection.d.ts.map +1 -1
  65. package/dist/dsh/context-injection.js +3 -24
  66. package/dist/dsh/context-injection.js.map +1 -1
  67. package/dist/dsh/continuity-adapter.d.ts +0 -5
  68. package/dist/dsh/continuity-adapter.d.ts.map +1 -1
  69. package/dist/dsh/continuity-adapter.js +1 -39
  70. package/dist/dsh/continuity-adapter.js.map +1 -1
  71. package/dist/dsh/decisions/contracts.d.ts +0 -1
  72. package/dist/dsh/decisions/contracts.d.ts.map +1 -1
  73. package/dist/dsh/decisions/contracts.js +1 -1
  74. package/dist/dsh/decisions/contracts.js.map +1 -1
  75. package/dist/dsh/decisions/diagnostics.d.ts +8 -11
  76. package/dist/dsh/decisions/diagnostics.d.ts.map +1 -1
  77. package/dist/dsh/decisions/diagnostics.js +1 -9
  78. package/dist/dsh/decisions/diagnostics.js.map +1 -1
  79. package/dist/dsh/decisions/intent-assessment.d.ts +2 -5
  80. package/dist/dsh/decisions/intent-assessment.d.ts.map +1 -1
  81. package/dist/dsh/decisions/intent-assessment.js +17 -9
  82. package/dist/dsh/decisions/intent-assessment.js.map +1 -1
  83. package/dist/dsh/efficiency.d.ts +0 -3
  84. package/dist/dsh/efficiency.d.ts.map +1 -1
  85. package/dist/dsh/efficiency.js +1 -9
  86. package/dist/dsh/efficiency.js.map +1 -1
  87. package/dist/dsh/execution-selection.d.ts +6 -7
  88. package/dist/dsh/execution-selection.d.ts.map +1 -1
  89. package/dist/dsh/execution-selection.js +10 -15
  90. package/dist/dsh/execution-selection.js.map +1 -1
  91. package/dist/dsh/execution-support.d.ts +0 -4
  92. package/dist/dsh/execution-support.d.ts.map +1 -1
  93. package/dist/dsh/execution-support.js +3 -15
  94. package/dist/dsh/execution-support.js.map +1 -1
  95. package/dist/dsh/harness/factory.d.ts +109 -0
  96. package/dist/dsh/harness/factory.d.ts.map +1 -0
  97. package/dist/dsh/harness/factory.js +566 -0
  98. package/dist/dsh/harness/factory.js.map +1 -0
  99. package/dist/dsh/harness/inbox.d.ts +22 -0
  100. package/dist/dsh/harness/inbox.d.ts.map +1 -0
  101. package/dist/dsh/harness/inbox.js +61 -0
  102. package/dist/dsh/harness/inbox.js.map +1 -0
  103. package/dist/dsh/harness/index.d.ts +19 -0
  104. package/dist/dsh/harness/index.d.ts.map +1 -0
  105. package/dist/dsh/harness/index.js +26 -0
  106. package/dist/dsh/harness/index.js.map +1 -0
  107. package/dist/dsh/harness/lifecycle.d.ts +26 -0
  108. package/dist/dsh/harness/lifecycle.d.ts.map +1 -0
  109. package/dist/dsh/harness/lifecycle.js +21 -0
  110. package/dist/dsh/harness/lifecycle.js.map +1 -0
  111. package/dist/dsh/harness/projections.d.ts +16 -0
  112. package/dist/dsh/harness/projections.d.ts.map +1 -0
  113. package/dist/dsh/harness/projections.js +34 -0
  114. package/dist/dsh/harness/projections.js.map +1 -0
  115. package/dist/dsh/head-worker-configuration.d.ts +1 -2
  116. package/dist/dsh/head-worker-configuration.d.ts.map +1 -1
  117. package/dist/dsh/head-worker-configuration.js +0 -5
  118. package/dist/dsh/head-worker-configuration.js.map +1 -1
  119. package/dist/dsh/host-adapter/admission.d.ts +1 -8
  120. package/dist/dsh/host-adapter/admission.d.ts.map +1 -1
  121. package/dist/dsh/host-adapter/admission.js +51 -260
  122. package/dist/dsh/host-adapter/admission.js.map +1 -1
  123. package/dist/dsh/host-adapter/boundaries.d.ts +1 -28
  124. package/dist/dsh/host-adapter/boundaries.d.ts.map +1 -1
  125. package/dist/dsh/host-adapter/boundaries.js +27 -328
  126. package/dist/dsh/host-adapter/boundaries.js.map +1 -1
  127. package/dist/dsh/host-adapter/context.d.ts +1 -7
  128. package/dist/dsh/host-adapter/context.d.ts.map +1 -1
  129. package/dist/dsh/host-adapter/context.js +5 -28
  130. package/dist/dsh/host-adapter/context.js.map +1 -1
  131. package/dist/dsh/host-adapter/efficiency-host.d.ts +0 -2
  132. package/dist/dsh/host-adapter/efficiency-host.d.ts.map +1 -1
  133. package/dist/dsh/host-adapter/efficiency-host.js +2 -2
  134. package/dist/dsh/host-adapter/efficiency-host.js.map +1 -1
  135. package/dist/dsh/host-adapter/lifecycle.d.ts +0 -7
  136. package/dist/dsh/host-adapter/lifecycle.d.ts.map +1 -1
  137. package/dist/dsh/host-adapter/lifecycle.js +58 -71
  138. package/dist/dsh/host-adapter/lifecycle.js.map +1 -1
  139. package/dist/dsh/host-adapter/memory-application-host.d.ts +0 -2
  140. package/dist/dsh/host-adapter/memory-application-host.d.ts.map +1 -1
  141. package/dist/dsh/host-adapter/memory-application-host.js +2 -2
  142. package/dist/dsh/host-adapter/memory-application-host.js.map +1 -1
  143. package/dist/dsh/host-adapter/routing.d.ts +1 -5
  144. package/dist/dsh/host-adapter/routing.d.ts.map +1 -1
  145. package/dist/dsh/host-adapter/routing.js +21 -73
  146. package/dist/dsh/host-adapter/routing.js.map +1 -1
  147. package/dist/dsh/host-adapter/session-observation.d.ts +1 -8
  148. package/dist/dsh/host-adapter/session-observation.d.ts.map +1 -1
  149. package/dist/dsh/host-adapter/session-observation.js +2 -55
  150. package/dist/dsh/host-adapter/session-observation.js.map +1 -1
  151. package/dist/dsh/host-adapter/tool-host.d.ts +3 -41
  152. package/dist/dsh/host-adapter/tool-host.d.ts.map +1 -1
  153. package/dist/dsh/host-adapter/tool-host.js +14 -243
  154. package/dist/dsh/host-adapter/tool-host.js.map +1 -1
  155. package/dist/dsh/host-adapter/turn-state.d.ts +0 -4
  156. package/dist/dsh/host-adapter/turn-state.d.ts.map +1 -1
  157. package/dist/dsh/host-adapter/turn-state.js +16 -93
  158. package/dist/dsh/host-adapter/turn-state.js.map +1 -1
  159. package/dist/dsh/host-adapter.d.ts +0 -11
  160. package/dist/dsh/host-adapter.d.ts.map +1 -1
  161. package/dist/dsh/host-adapter.js +17 -179
  162. package/dist/dsh/host-adapter.js.map +1 -1
  163. package/dist/dsh/index.d.ts +3 -16
  164. package/dist/dsh/index.d.ts.map +1 -1
  165. package/dist/dsh/index.js +0 -6
  166. package/dist/dsh/index.js.map +1 -1
  167. package/dist/dsh/lifecycle-memory.d.ts +3 -0
  168. package/dist/dsh/lifecycle-memory.d.ts.map +1 -1
  169. package/dist/dsh/lifecycle-memory.js +67 -45
  170. package/dist/dsh/lifecycle-memory.js.map +1 -1
  171. package/dist/dsh/lisp/candidate.d.ts +2 -2
  172. package/dist/dsh/lisp/code-intelligence-contracts.d.ts +1 -1
  173. package/dist/dsh/lisp/compiled-cache.d.ts.map +1 -1
  174. package/dist/dsh/lisp/compiled-cache.js +27 -6
  175. package/dist/dsh/lisp/compiled-cache.js.map +1 -1
  176. package/dist/dsh/lisp/host-tool-dispatch.d.ts.map +1 -1
  177. package/dist/dsh/lisp/host-tool-dispatch.js +14 -5
  178. package/dist/dsh/lisp/host-tool-dispatch.js.map +1 -1
  179. package/dist/dsh/lisp/manager.d.ts +7 -4
  180. package/dist/dsh/lisp/manager.d.ts.map +1 -1
  181. package/dist/dsh/lisp/manager.js +132 -103
  182. package/dist/dsh/lisp/manager.js.map +1 -1
  183. package/dist/dsh/lisp/sandbox.d.ts.map +1 -1
  184. package/dist/dsh/lisp/sandbox.js +1 -5
  185. package/dist/dsh/lisp/sandbox.js.map +1 -1
  186. package/dist/dsh/lisp/supervision.d.ts +33 -0
  187. package/dist/dsh/lisp/supervision.d.ts.map +1 -0
  188. package/dist/dsh/lisp/supervision.js +89 -0
  189. package/dist/dsh/lisp/supervision.js.map +1 -0
  190. package/dist/dsh/lisp/surface.d.ts +2 -2
  191. package/dist/dsh/lisp/surface.d.ts.map +1 -1
  192. package/dist/dsh/lisp/surface.js +105 -11
  193. package/dist/dsh/lisp/surface.js.map +1 -1
  194. package/dist/dsh/lisp/worker.d.ts +2 -1
  195. package/dist/dsh/lisp/worker.d.ts.map +1 -1
  196. package/dist/dsh/lisp/worker.js +7 -1
  197. package/dist/dsh/lisp/worker.js.map +1 -1
  198. package/dist/dsh/loop-guard.d.ts +0 -8
  199. package/dist/dsh/loop-guard.d.ts.map +1 -1
  200. package/dist/dsh/loop-guard.js +0 -51
  201. package/dist/dsh/loop-guard.js.map +1 -1
  202. package/dist/dsh/memory-application.d.ts.map +1 -1
  203. package/dist/dsh/memory-application.js +0 -6
  204. package/dist/dsh/memory-application.js.map +1 -1
  205. package/dist/dsh/message-sources.d.ts +2 -12
  206. package/dist/dsh/message-sources.d.ts.map +1 -1
  207. package/dist/dsh/message-sources.js +20 -39
  208. package/dist/dsh/message-sources.js.map +1 -1
  209. package/dist/dsh/model-configuration.d.ts +6 -24
  210. package/dist/dsh/model-configuration.d.ts.map +1 -1
  211. package/dist/dsh/model-configuration.js +1 -78
  212. package/dist/dsh/model-configuration.js.map +1 -1
  213. package/dist/dsh/model-routing.d.ts +1 -3
  214. package/dist/dsh/model-routing.d.ts.map +1 -1
  215. package/dist/dsh/model-routing.js +0 -11
  216. package/dist/dsh/model-routing.js.map +1 -1
  217. package/dist/dsh/model-selection-ui.d.ts +1 -2
  218. package/dist/dsh/model-selection-ui.d.ts.map +1 -1
  219. package/dist/dsh/model-selection-ui.js +48 -309
  220. package/dist/dsh/model-selection-ui.js.map +1 -1
  221. package/dist/dsh/models/contracts.d.ts +2 -2
  222. package/dist/dsh/models/service.d.ts +1 -1
  223. package/dist/dsh/modules/legacy-bindings.d.ts +3 -1
  224. package/dist/dsh/modules/legacy-bindings.d.ts.map +1 -1
  225. package/dist/dsh/modules/legacy-bindings.js +5 -5
  226. package/dist/dsh/modules/legacy-bindings.js.map +1 -1
  227. package/dist/dsh/modules/lisp.js +1 -1
  228. package/dist/dsh/modules/lisp.js.map +1 -1
  229. package/dist/dsh/native-execution-ownership.d.ts.map +1 -1
  230. package/dist/dsh/native-execution-ownership.js +0 -2
  231. package/dist/dsh/native-execution-ownership.js.map +1 -1
  232. package/dist/dsh/native-worker-routing.d.ts.map +1 -1
  233. package/dist/dsh/native-worker-routing.js +7 -2
  234. package/dist/dsh/native-worker-routing.js.map +1 -1
  235. package/dist/dsh/on-demand-intake.d.ts.map +1 -1
  236. package/dist/dsh/on-demand-intake.js +17 -8
  237. package/dist/dsh/on-demand-intake.js.map +1 -1
  238. package/dist/dsh/orchestration/execution-owner.d.ts +3 -1
  239. package/dist/dsh/orchestration/execution-owner.d.ts.map +1 -1
  240. package/dist/dsh/orchestration/execution-owner.js.map +1 -1
  241. package/dist/dsh/owned-execution.js +1 -1
  242. package/dist/dsh/owned-execution.js.map +1 -1
  243. package/dist/dsh/replay-memory-extract.d.ts.map +1 -1
  244. package/dist/dsh/replay-memory-extract.js +15 -1
  245. package/dist/dsh/replay-memory-extract.js.map +1 -1
  246. package/dist/dsh/repository-learning.d.ts.map +1 -1
  247. package/dist/dsh/repository-learning.js +3 -0
  248. package/dist/dsh/repository-learning.js.map +1 -1
  249. package/dist/dsh/runtime.d.ts +10 -2
  250. package/dist/dsh/runtime.d.ts.map +1 -1
  251. package/dist/dsh/runtime.js +22 -43
  252. package/dist/dsh/runtime.js.map +1 -1
  253. package/dist/dsh/semantic-compaction/policy.js +1 -1
  254. package/dist/dsh/semantic-compaction/policy.js.map +1 -1
  255. package/dist/dsh/session-bridge.d.ts +1 -1
  256. package/dist/dsh/session-bridge.d.ts.map +1 -1
  257. package/dist/dsh/session-bridge.js +1 -1
  258. package/dist/dsh/session-bridge.js.map +1 -1
  259. package/dist/dsh/session-memory-finalizer.js +1 -1
  260. package/dist/dsh/session-memory-finalizer.js.map +1 -1
  261. package/dist/dsh/session-review-context.d.ts.map +1 -1
  262. package/dist/dsh/session-review-context.js +3 -16
  263. package/dist/dsh/session-review-context.js.map +1 -1
  264. package/dist/dsh/setup.d.ts +1 -1
  265. package/dist/dsh/setup.d.ts.map +1 -1
  266. package/dist/dsh/skill-compiler.js +1 -1
  267. package/dist/dsh/skill-compiler.js.map +1 -1
  268. package/dist/dsh/skill-prompt-contracts.d.ts +2 -2
  269. package/dist/dsh/skill-prompt-contracts.js +1 -1
  270. package/dist/dsh/skill-prompts.json +1 -1
  271. package/dist/dsh/standard-skills.d.ts +1 -8
  272. package/dist/dsh/standard-skills.d.ts.map +1 -1
  273. package/dist/dsh/standard-skills.js +1 -8
  274. package/dist/dsh/standard-skills.js.map +1 -1
  275. package/dist/dsh/task-authority-context.d.ts +3 -0
  276. package/dist/dsh/task-authority-context.d.ts.map +1 -1
  277. package/dist/dsh/task-authority-context.js +3 -0
  278. package/dist/dsh/task-authority-context.js.map +1 -1
  279. package/dist/dsh/task-completion-guidance.d.ts +1 -5
  280. package/dist/dsh/task-completion-guidance.d.ts.map +1 -1
  281. package/dist/dsh/task-completion-guidance.js +4 -6
  282. package/dist/dsh/task-completion-guidance.js.map +1 -1
  283. package/dist/dsh/task-completion-host.js +4 -4
  284. package/dist/dsh/task-completion-host.js.map +1 -1
  285. package/dist/dsh/task-completion.d.ts +1 -13
  286. package/dist/dsh/task-completion.d.ts.map +1 -1
  287. package/dist/dsh/task-completion.js +9 -104
  288. package/dist/dsh/task-completion.js.map +1 -1
  289. package/dist/dsh/task-intake.d.ts +2 -3
  290. package/dist/dsh/task-intake.d.ts.map +1 -1
  291. package/dist/dsh/task-intake.js +90 -86
  292. package/dist/dsh/task-intake.js.map +1 -1
  293. package/dist/dsh/task-state.d.ts.map +1 -1
  294. package/dist/dsh/task-state.js +0 -8
  295. package/dist/dsh/task-state.js.map +1 -1
  296. package/dist/dsh/tool-exposure.d.ts +1 -1
  297. package/dist/dsh/tool-exposure.d.ts.map +1 -1
  298. package/dist/dsh/tool-exposure.js +0 -2
  299. package/dist/dsh/tool-exposure.js.map +1 -1
  300. package/dist/dsh/tool-policy.d.ts +5 -8
  301. package/dist/dsh/tool-policy.d.ts.map +1 -1
  302. package/dist/dsh/tool-policy.js +3 -35
  303. package/dist/dsh/tool-policy.js.map +1 -1
  304. package/dist/dsh/tools.d.ts +2 -6
  305. package/dist/dsh/tools.d.ts.map +1 -1
  306. package/dist/dsh/tools.js +7 -63
  307. package/dist/dsh/tools.js.map +1 -1
  308. package/dist/dsh/turn-process.d.ts +0 -93
  309. package/dist/dsh/turn-process.d.ts.map +1 -1
  310. package/dist/dsh/turn-process.js +1 -307
  311. package/dist/dsh/turn-process.js.map +1 -1
  312. package/dist/dsh/user-interaction.d.ts +9 -16
  313. package/dist/dsh/user-interaction.d.ts.map +1 -1
  314. package/dist/dsh/user-interaction.js +19 -158
  315. package/dist/dsh/user-interaction.js.map +1 -1
  316. package/dist/index.js +2 -19
  317. package/dist/ledger/types.d.ts +1 -1
  318. package/dist/ledger/types.d.ts.map +1 -1
  319. package/dist/ledger/types.js +0 -7
  320. package/dist/ledger/types.js.map +1 -1
  321. package/dist/locale/en.json +1 -1
  322. package/dist/locale/ja.json +1 -1
  323. package/dist/locale/ko.json +1 -1
  324. package/dist/locale/zh-CN.json +1 -1
  325. package/dist/memory/correction-contract.d.ts +4 -4
  326. package/dist/memory/lifecycle.d.ts +1 -1
  327. package/dist/memory/review/evidence.js +1 -1
  328. package/dist/memory/review/evidence.js.map +1 -1
  329. package/dist/model-tools/contracts.d.ts +0 -437
  330. package/dist/model-tools/contracts.d.ts.map +1 -1
  331. package/dist/model-tools/contracts.js +0 -13
  332. package/dist/model-tools/contracts.js.map +1 -1
  333. package/dist/model-tools/names.d.ts +1 -1
  334. package/dist/model-tools/names.d.ts.map +1 -1
  335. package/dist/model-tools/names.js +0 -7
  336. package/dist/model-tools/names.js.map +1 -1
  337. package/dist/model-tools/registry.js +1 -1
  338. package/dist/model-tools/registry.js.map +1 -1
  339. package/dist/models-client.cjs +2 -2
  340. package/dist/models-client.js +2 -2
  341. package/dist/models-client.js.map +1 -1
  342. package/docs/README.ja.md +0 -1
  343. package/docs/README.md +0 -1
  344. package/docs/agenticreplay-recording.md +1 -1
  345. package/docs/agenticreplay-verification.md +1 -1
  346. package/docs/answer-review.md +2 -2
  347. package/docs/architecture.md +4 -7
  348. package/docs/auto-memory-review.md +3 -3
  349. package/docs/coding-workflow.md +1 -1
  350. package/docs/concepts.ja.md +3 -5
  351. package/docs/concepts.md +3 -5
  352. package/docs/core-modules.md +5 -16
  353. package/docs/database.md +5 -10
  354. package/docs/decision-diagnostics.md +1 -2
  355. package/docs/deep-planning.md +3 -3
  356. package/docs/dsh-plugin.md +42 -178
  357. package/docs/execution-ledger.md +1 -2
  358. package/docs/execution-support.md +6 -7
  359. package/docs/harness-map.md +1 -1
  360. package/docs/japanese-output.md +1 -1
  361. package/docs/keyboard-shortcuts.md +1 -1
  362. package/docs/kiokuko-harness.md +71 -0
  363. package/docs/kiokuko-models.md +4 -9
  364. package/docs/lisp-hot-tools.md +12 -7
  365. package/docs/lisp.md +43 -9
  366. package/docs/memory-application.md +5 -5
  367. package/docs/memory-delivery.md +1 -1
  368. package/docs/memory-reuse.md +1 -1
  369. package/docs/model-selection.ja.md +40 -123
  370. package/docs/model-selection.md +45 -114
  371. package/docs/on-demand-intake.md +2 -2
  372. package/docs/owned-execution.md +7 -7
  373. package/docs/pr72-ci-verification.md +2 -2
  374. package/docs/pstack-adaptation.json +0 -34
  375. package/docs/pstack-skills.md +1 -1
  376. package/docs/semantic-compaction.md +2 -2
  377. package/docs/session-history-repair.md +2 -2
  378. package/docs/skill-compiler.md +2 -4
  379. package/docs/tool-exposure.md +1 -1
  380. package/docs/typed-decisions.md +1 -9
  381. package/docs/verification.md +11 -7
  382. package/dsh/cordis.legacy.patch.yml +7 -0
  383. package/dsh/cordis.patch.yml +6 -1
  384. package/lisp/supervisor.mjs +16 -7
  385. package/lisp/tools.lisp +1 -1
  386. package/migrations/051_drop_enno.sql +19 -0
  387. package/package.json +5 -14
  388. package/scripts/session-history-codec.mjs +1 -1
  389. package/skills/coding-ideal-routine-skill/SKILL.md +1 -1
  390. package/skills/kiokuko-lisp/SKILL.md +11 -5
  391. package/skills/kiokuko-single-purpose-functions/SKILL.md +1 -1
  392. package/skills/kiokuko-ui-design-soul/SKILL.md +2 -2
  393. package/skills/one-shot-software-completion/SKILL.md +4 -7
  394. package/skills/one-shot-software-completion/references/boundaries-and-lifecycle.md +3 -5
  395. package/dist/dsh/advisory-runner.d.ts +0 -32
  396. package/dist/dsh/advisory-runner.d.ts.map +0 -1
  397. package/dist/dsh/advisory-runner.js +0 -116
  398. package/dist/dsh/advisory-runner.js.map +0 -1
  399. package/dist/dsh/completion-verifiers.d.ts +0 -45
  400. package/dist/dsh/completion-verifiers.d.ts.map +0 -1
  401. package/dist/dsh/completion-verifiers.js +0 -9
  402. package/dist/dsh/completion-verifiers.js.map +0 -1
  403. package/dist/dsh/continuation.d.ts +0 -24
  404. package/dist/dsh/continuation.d.ts.map +0 -1
  405. package/dist/dsh/continuation.js +0 -215
  406. package/dist/dsh/continuation.js.map +0 -1
  407. package/dist/dsh/decisions/check-model.d.ts +0 -6
  408. package/dist/dsh/decisions/check-model.d.ts.map +0 -1
  409. package/dist/dsh/decisions/check-model.js +0 -36
  410. package/dist/dsh/decisions/check-model.js.map +0 -1
  411. package/dist/dsh/decisions/plan-review.d.ts +0 -17
  412. package/dist/dsh/decisions/plan-review.d.ts.map +0 -1
  413. package/dist/dsh/decisions/plan-review.js +0 -68
  414. package/dist/dsh/decisions/plan-review.js.map +0 -1
  415. package/dist/dsh/directive-projection.d.ts +0 -7
  416. package/dist/dsh/directive-projection.d.ts.map +0 -1
  417. package/dist/dsh/directive-projection.js +0 -32
  418. package/dist/dsh/directive-projection.js.map +0 -1
  419. package/dist/dsh/enno-controller.d.ts +0 -132
  420. package/dist/dsh/enno-controller.d.ts.map +0 -1
  421. package/dist/dsh/enno-controller.js +0 -368
  422. package/dist/dsh/enno-controller.js.map +0 -1
  423. package/dist/dsh/enno-delegation.d.ts +0 -36
  424. package/dist/dsh/enno-delegation.d.ts.map +0 -1
  425. package/dist/dsh/enno-delegation.js +0 -203
  426. package/dist/dsh/enno-delegation.js.map +0 -1
  427. package/dist/dsh/enno-memory-refresh-store.d.ts +0 -26
  428. package/dist/dsh/enno-memory-refresh-store.d.ts.map +0 -1
  429. package/dist/dsh/enno-memory-refresh-store.js +0 -45
  430. package/dist/dsh/enno-memory-refresh-store.js.map +0 -1
  431. package/dist/dsh/enno-memory-refresh.d.ts +0 -57
  432. package/dist/dsh/enno-memory-refresh.d.ts.map +0 -1
  433. package/dist/dsh/enno-memory-refresh.js +0 -280
  434. package/dist/dsh/enno-memory-refresh.js.map +0 -1
  435. package/dist/dsh/host-adapter/enno-memory-host.d.ts +0 -29
  436. package/dist/dsh/host-adapter/enno-memory-host.d.ts.map +0 -1
  437. package/dist/dsh/host-adapter/enno-memory-host.js +0 -49
  438. package/dist/dsh/host-adapter/enno-memory-host.js.map +0 -1
  439. package/dist/dsh/modules/enno.d.ts +0 -70
  440. package/dist/dsh/modules/enno.d.ts.map +0 -1
  441. package/dist/dsh/modules/enno.js +0 -22
  442. package/dist/dsh/modules/enno.js.map +0 -1
  443. package/dist/dsh/verification-identity.d.ts +0 -3
  444. package/dist/dsh/verification-identity.d.ts.map +0 -1
  445. package/dist/dsh/verification-identity.js +0 -15
  446. package/dist/dsh/verification-identity.js.map +0 -1
  447. package/dist/enno-oduno/advisory-store.d.ts +0 -31
  448. package/dist/enno-oduno/advisory-store.d.ts.map +0 -1
  449. package/dist/enno-oduno/advisory-store.js +0 -105
  450. package/dist/enno-oduno/advisory-store.js.map +0 -1
  451. package/dist/enno-oduno/advisory.d.ts +0 -18
  452. package/dist/enno-oduno/advisory.d.ts.map +0 -1
  453. package/dist/enno-oduno/advisory.js +0 -311
  454. package/dist/enno-oduno/advisory.js.map +0 -1
  455. package/dist/enno-oduno/coding-workflow.d.ts +0 -39
  456. package/dist/enno-oduno/coding-workflow.d.ts.map +0 -1
  457. package/dist/enno-oduno/coding-workflow.js +0 -33
  458. package/dist/enno-oduno/coding-workflow.js.map +0 -1
  459. package/dist/enno-oduno/confirmation.d.ts +0 -4
  460. package/dist/enno-oduno/confirmation.d.ts.map +0 -1
  461. package/dist/enno-oduno/confirmation.js +0 -146
  462. package/dist/enno-oduno/confirmation.js.map +0 -1
  463. package/dist/enno-oduno/directives.d.ts +0 -10
  464. package/dist/enno-oduno/directives.d.ts.map +0 -1
  465. package/dist/enno-oduno/directives.js +0 -294
  466. package/dist/enno-oduno/directives.js.map +0 -1
  467. package/dist/enno-oduno/experts.d.ts +0 -3
  468. package/dist/enno-oduno/experts.d.ts.map +0 -1
  469. package/dist/enno-oduno/experts.js +0 -28
  470. package/dist/enno-oduno/experts.js.map +0 -1
  471. package/dist/enno-oduno/handoff.d.ts +0 -4
  472. package/dist/enno-oduno/handoff.d.ts.map +0 -1
  473. package/dist/enno-oduno/handoff.js +0 -18
  474. package/dist/enno-oduno/handoff.js.map +0 -1
  475. package/dist/enno-oduno/language.d.ts +0 -4
  476. package/dist/enno-oduno/language.d.ts.map +0 -1
  477. package/dist/enno-oduno/language.js +0 -6
  478. package/dist/enno-oduno/language.js.map +0 -1
  479. package/dist/enno-oduno/memory-focus.d.ts +0 -32
  480. package/dist/enno-oduno/memory-focus.d.ts.map +0 -1
  481. package/dist/enno-oduno/memory-focus.js +0 -87
  482. package/dist/enno-oduno/memory-focus.js.map +0 -1
  483. package/dist/enno-oduno/memory-refresh-policy.d.ts +0 -17
  484. package/dist/enno-oduno/memory-refresh-policy.d.ts.map +0 -1
  485. package/dist/enno-oduno/memory-refresh-policy.js +0 -11
  486. package/dist/enno-oduno/memory-refresh-policy.js.map +0 -1
  487. package/dist/enno-oduno/memory-verification.d.ts +0 -7
  488. package/dist/enno-oduno/memory-verification.d.ts.map +0 -1
  489. package/dist/enno-oduno/memory-verification.js +0 -59
  490. package/dist/enno-oduno/memory-verification.js.map +0 -1
  491. package/dist/enno-oduno/plan-draft.d.ts +0 -15
  492. package/dist/enno-oduno/plan-draft.d.ts.map +0 -1
  493. package/dist/enno-oduno/plan-draft.js +0 -20
  494. package/dist/enno-oduno/plan-draft.js.map +0 -1
  495. package/dist/enno-oduno/plan-recovery.d.ts +0 -44
  496. package/dist/enno-oduno/plan-recovery.d.ts.map +0 -1
  497. package/dist/enno-oduno/plan-recovery.js +0 -160
  498. package/dist/enno-oduno/plan-recovery.js.map +0 -1
  499. package/dist/enno-oduno/repository-state.d.ts +0 -10
  500. package/dist/enno-oduno/repository-state.d.ts.map +0 -1
  501. package/dist/enno-oduno/repository-state.js +0 -146
  502. package/dist/enno-oduno/repository-state.js.map +0 -1
  503. package/dist/enno-oduno/sanitize.d.ts +0 -17
  504. package/dist/enno-oduno/sanitize.d.ts.map +0 -1
  505. package/dist/enno-oduno/sanitize.js +0 -88
  506. package/dist/enno-oduno/sanitize.js.map +0 -1
  507. package/dist/enno-oduno/schemas.d.ts +0 -968
  508. package/dist/enno-oduno/schemas.d.ts.map +0 -1
  509. package/dist/enno-oduno/schemas.js +0 -622
  510. package/dist/enno-oduno/schemas.js.map +0 -1
  511. package/dist/enno-oduno/service.d.ts +0 -62
  512. package/dist/enno-oduno/service.d.ts.map +0 -1
  513. package/dist/enno-oduno/service.js +0 -1505
  514. package/dist/enno-oduno/service.js.map +0 -1
  515. package/dist/enno-oduno/skills.d.ts +0 -22
  516. package/dist/enno-oduno/skills.d.ts.map +0 -1
  517. package/dist/enno-oduno/skills.js +0 -127
  518. package/dist/enno-oduno/skills.js.map +0 -1
  519. package/dist/enno-oduno/store.d.ts +0 -109
  520. package/dist/enno-oduno/store.d.ts.map +0 -1
  521. package/dist/enno-oduno/store.js +0 -833
  522. package/dist/enno-oduno/store.js.map +0 -1
  523. package/dist/enno-oduno/types.d.ts +0 -457
  524. package/dist/enno-oduno/types.d.ts.map +0 -1
  525. package/dist/enno-oduno/types.js +0 -66
  526. package/dist/enno-oduno/types.js.map +0 -1
  527. package/dist/enno-oduno/validation-errors.d.ts +0 -93
  528. package/dist/enno-oduno/validation-errors.d.ts.map +0 -1
  529. package/dist/enno-oduno/validation-errors.js +0 -159
  530. package/dist/enno-oduno/validation-errors.js.map +0 -1
  531. package/dist/enno-oduno/verifier.d.ts +0 -16
  532. package/dist/enno-oduno/verifier.d.ts.map +0 -1
  533. package/dist/enno-oduno/verifier.js +0 -271
  534. package/dist/enno-oduno/verifier.js.map +0 -1
  535. package/docs/enno-memory-benchmark.json +0 -761
  536. package/docs/enno-memory-evaluation.md +0 -137
  537. package/docs/enno-oduno.ja.md +0 -68
  538. package/docs/enno-oduno.md +0 -94
  539. package/skills/kiokuko-enno-oduno/SKILL.md +0 -64
  540. package/skills/kiokuko-enno-oduno/enno-oduno.png +0 -0
@@ -1,137 +0,0 @@
1
- # Enno memory refresh evaluation
2
-
3
- Baseline: `d4e61126228acb043f6b182a9c4f9bab7ccb146a` (0.1.53).
4
- The implementation retains default `off`; Rerank is not adopted.
5
-
6
- ## Reproduce
7
-
8
- ```sh
9
- npm run test:enno-memory
10
- npm run test:benchmark:enno-memory
11
- npm run test:evaluation:enno-memory
12
-
13
- # Supply an isolated installation from tests/fixtures/dsh-runtime/package-lock.json.
14
- KIOKUKO_DSH_PACKAGE_ROOT=/absolute/path/to/fixture/node_modules \
15
- KIOKUKO_REQUIRE_DSH_NATIVE=1 npm run test:enno-memory
16
- ```
17
-
18
- Without the pinned DSH packages, the native tests report a skip. That skip is not evidence
19
- that the request path works. Evaluation makes no provider calls and reports `unmeasured`.
20
-
21
- ## Fixed comparisons
22
-
23
- - A: `off`, existing intake and final request fences.
24
- - Observe: same selections as A, decision-only observation.
25
- - B: `active`, semantic difference detection and Reuse / Full, lexical search.
26
- - C: not implemented; there is no evidence yet that Rerank improves selection or cost.
27
-
28
- The integration fixture has 200 initial candidates and separately asserts that
29
- `E_LOCK_TIMEOUT` memory is absent from that candidate set. B retrieves that memory after
30
- new evidence, retaining its applicability and boundary text. A and observe do not change
31
- context. Repeated evidence does not increase the additional Full count.
32
-
33
- The scripted model runs through the actual pinned DSH agent loop and persistent worker,
34
- including phase transitions, repeated tool failures, native compaction, supersede and
35
- terminal completion. Tests inspect the final request messages, all three permitted origins,
36
- private-workspace exclusion, original human input and visible final response.
37
- The scripted model and its synthetic usage counters cannot establish real-model quality or billed tokens.
38
-
39
- ## Measured scope and limits
40
-
41
- The benchmark uses disposable 20, 1,000, 9,999 and 10,001 entry corpora. Each mode uses the
42
- same task and corpus contents. The initial candidate selection precedes corpus expansion
43
- in all modes; a first boundary establishes the comparison baseline. Five subsequent
44
- boundaries include the new-error boundary and four repetitions. Output retains the samples,
45
- p50, p95, maximum, corpus probe cost, broker stages, discard reasons and call counts.
46
- These five samples are descriptive, not a confidence interval or a universal speedup estimate.
47
- The 10,001-entry case checks the existing integrity limit and safe degradation.
48
-
49
- Real-model Recall@5, task success, incorrect applications, total completion time and billed
50
- token savings remain **unmeasured**. The benchmark does not use a production database,
51
- user history, remote provider or artificial semantic vector.
52
-
53
- ## Local measurements (2026-09-16)
54
-
55
- Node v26.5.0, macOS, fixed lexical fixtures, 8,000-character presentation budget and
56
- 5,000 ms cooperative refresh budget. Five measured boundaries per cell, including one
57
- new-error boundary. Raw samples and stage timings: [benchmark JSON](enno-memory-benchmark.json).
58
- These are refresh-service timings, not complete task or model-request timings.
59
-
60
- | Corpus | Active p50 / p95 / max (ms) | Separate corpus probe (ms) | New error memory | Additional Full reservations |
61
- | ---: | ---: | ---: | --- | ---: |
62
- | 20 | 35.08 / 50.65 / 50.65 | 4.98 | Delivered | 1 |
63
- | 1,000 | 862.86 / 965.08 / 965.08 | 283.77 | Delivered | 1 |
64
- | 9,999 | 6,930.70 / 6,955.57 / 6,955.57 | 2,224.30 | Omitted: time budget | 5 |
65
- | 10,001 | 46.29 / 54.79 / 54.79 | 44.20 | Omitted: existing corpus limit | 0 |
66
-
67
- Off p95 was at most 0.008 ms and observe p95 at most 0.048 ms for the optional service
68
- alone. Neither calls retrieval nor computes an extra corpus hash. The separately timed
69
- corpus probe is a benchmark measurement, not work performed by off/observe.
70
- Every cell added zero LLM, embedding and remote calls. After successful selection in the
71
- 20/1,000-entry cells, four repeated boundaries added zero Full searches.
72
-
73
- The 9,999-entry cell discarded all six attempts including the baseline boundary. Five
74
- new-error attempts consumed five reservations despite being discarded; failures do not
75
- refund the budget. The repeated failed attempts demonstrate the bounded retry cost, not
76
- successful reuse. At 10,001 entries the existing integrity limit prevented reservations.
77
- The 5-second budget is cooperative and can be exceeded by synchronous work. The default
78
- 1-second budget has less headroom; these results do not establish a supported corpus size
79
- or a speed improvement. No confidence interval is claimed from five samples.
80
-
81
- ## Verification scope
82
-
83
- - 19 dedicated tests passed with the pinned native DSH runtime, zero skipped. These cover
84
- off/observe/active, the initial 200-candidate miss, new-error discovery, repeated evidence,
85
- phase rebinding, verifier timeout evidence reaching Zenki, compaction restoration,
86
- allowed origins, private exclusion, supersede, durable reservations, cancellation,
87
- stale ownership, current lease/capability checks, configuration changes, owner eviction,
88
- required embedding failure, optional observer failure and DB failures.
89
- - Delivery-transaction failure and process-local cache loss are injected at service/store
90
- boundaries. This does not claim operating-system process termination at every instruction
91
- between native insertion and acknowledgement.
92
- - The native fixture inspects 12 parent requests and four failed tools per mode, with a
93
- visible final response and terminal contract/worker state. Copy counts and compaction
94
- restoration are asserted from request bodies; they are not separate production observer
95
- counters. No Rerank pool or pool-eviction metrics are implemented.
96
- - Real provider comparisons remain unmeasured. `test:evaluation:enno-memory` reports that
97
- fact without reading credentials or making a provider call. Default remains off.
98
-
99
- ### Regression and delivery checks
100
-
101
- | Check | Result |
102
- | --- | --- |
103
- | `npm run typecheck` | Passed after the final source change |
104
- | Native-required `npm test` | 719 tests: 718 passed, one CLI installation environment failure, zero skipped |
105
- | Failed CLI installation test recheck | One passed, zero skipped, using isolated pnpm 11.25.0 and network access |
106
- | Final `test:enno-memory` | 19 passed, zero skipped, including the additional owner-eviction regression |
107
- | Forward-migration recheck | Nine passed, including older pending runs and receipt identities |
108
- | `npm run test:sampledb` | Baseline initialization and DSH runtime resume passed |
109
- | `npm run build` | Passed after the final source change |
110
- | `npm run pack:check` | Import, client artifact, relative module closure and migration inclusion passed |
111
- | `npm run publint` | Auto-selected Corepack/pnpm failed before linting; isolated npm packing passed |
112
- | DSH CLI/Web lifecycle | Install, authenticated HTTP routes, client bundle, reload and uninstall passed |
113
-
114
- The full test run includes the evolution and continuity suites. Its CLI failure was
115
- `ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING` in the local Corepack launcher. Direct fixed
116
- pnpm removed that failure; dependency installation additionally required network access.
117
- Neither the user package-manager configuration nor installed plugin was changed.
118
- The initial seven migration expectation failures were corrected and the nine related
119
- tests rerun before the final broad run.
120
-
121
- The `test:e2e:dsh` native composition and repeated-lifecycle stages passed with no skips;
122
- its final CLI stage hit the same environment problem. Only the CLI lifecycle functions
123
- were rerun after fixing the isolated test environment. They used the actual packed
124
- 0.1.53 working tree and DSH **0.1.5-rc.1**, a disposable profile/workspace, redirected
125
- Skill deployment and temporary caches. Web evidence verifies the served JavaScript and
126
- HTTP routes, not manual visual operation of the browser UI. This is not validation of
127
- DSH 0.1.6-alpha.1 or a published npm release.
128
-
129
- For this environment, publint was completed with:
130
-
131
- ```sh
132
- npm_config_cache=/private/tmp/kiokuko-enno-publint-cache npm run publint -- --pack npm
133
- ```
134
-
135
- All source changes remain uncommitted. The baseline commit identifies the starting tree,
136
- not a release containing these changes. `PLAN.md` is locally updated and remains ignored
137
- by the existing repository configuration.
@@ -1,68 +0,0 @@
1
- # 役小角(enno-oduno)
2
-
3
- ![役小角(enno-oduno)](../skills/kiokuko-enno-oduno/enno-oduno.png)
4
-
5
- build、debug、review、devopsでは、Enno-Odunoがrun-bound loopを管理します。
6
-
7
- ```text
8
- intake → ideal → plan → 確認 → WorkUnit実行 → 最終検証 → meditation
9
- ```
10
-
11
- 現在のDSH sessionをbindし、Akinatorのintakeを解決し、理想の結果を保存してから、revision-bound planをZenkiへ渡します。
12
- Zenkiは変更を責務と理由が1つのWorkUnitへ分割し、Gokiは承認済みunitだけを実行します。unitにはcode/ui/test/docs/operationsのローカルrouteがあります。
13
-
14
- 確認画面にはscope、除外、完了条件、Skill、expertise、command、timeoutを、元の依頼から判定した英語または日本語の構造化Markdownで表示します。
15
- path、command引数、identifier、timeoutの正確な値は変更しません。外側のcard titleとbuttonはDSH UIのlocaleが所有し、Kiokukoが所有するのはMarkdownのplan本文だけです。内部IDやraw JSONは表示しません。
16
-
17
- plan環境が欠落・変更した場合、discovery、plan保存、実装の前に停止し、continue/review/restart/cancelを選びます。継続は短命のroute-epoch-bound resume tokenと
18
- 単一ownerのexecution leaseを使い、期限切れleaseだけ安全に回収できます。曖昧なrunはrerouteしません。
19
-
20
- WorkUnit実行中にDSHのmodel requestが失敗しても、Kiokukoは中断されたmodel処理やtool処理を自動再送しません。次のuser turnで、同一DSH session、revision、WorkUnitを再検証してからexecution leaseを更新し、旧leaseが失効した後でも同じrunを再開します。
21
-
22
- Final Reviewはshell無効・repository相対pathでverifierを実行し、contract/mutation revision、verifier仕様、repository stateにevidenceを束縛します。
23
- 完全なpass evidenceだけを`enno_finish`が受理します。失敗時はGokiへ直接戻らず、Zenkiが新revisionで再計画します。受理後はread-only meditationで削除候補を記録するだけです。
24
-
25
- ideal、planning、final-reviewでは、親hostが最大3つの隔離read-only Advisory Round slotを使えます。Kiokuko自身はadvisorを起動せず、隔離を確認できないslotはunavailableになります。
26
-
27
- ## 実行中の記憶更新(任意)
28
-
29
- 新しいエラー、WorkUnitの対象、ユーザー条件を、次の安全なモデル要求境界で記憶検索に反映します。
30
- 通常のpreStepと永続boundary workerのcontext工程で同じ処理を使います。初回のintake検索、計画承認、実行lease、最終検証は維持します。
31
-
32
- ```yaml
33
- - id: kiokuko-dsh
34
- config:
35
- ennoMemory:
36
- mode: active
37
- maxFullSearchesPerRun: 8
38
- localBudgetMs: 1000
39
- rerank: false
40
- efficiency:
41
- observe: true
42
- ```
43
-
44
- | 設定 | 初期値 | 動作 |
45
- | --- | --- | --- |
46
- | `mode` | `off` | `off`: 追加処理なし。`observe`: 判断のみ観測。`active`: 差分に応じて追加検索 |
47
- | `maxFullSearchesPerRun` | `8` | 初回とは別の追加検索上限。1〜32。失敗・再起動・別ホストでも予約分を返金しない |
48
- | `localBudgetMs` | `1000` | 100〜5000 msの協調的な経過時間予算。超過した結果は採用しない |
49
- | `rerank` | `false` | 再順位付けは未採用。`true`は設定エラー |
50
-
51
- 検索が成功した後は、同じ意味のエラーを別call IDで観測しても追加検索は増えません。失敗した検索の次境界での再試行もrunの上限に計上します。役割やrevisionだけの変更では検索せず、選択済み記憶を現在の状態に結び直します。
52
- 新しい根拠やcorpusの変更時は、既存の連合検索で候補を取り直します。提示内容が圧縮で消えた場合は、有効性を検査して再提示します。
53
-
54
- 観測は現在のrun/sessionと実際のtool callに束縛できる最終結果、およびホストが保存したverifier結果だけを使います。
55
- 文字列の走査は1結果8 KiB、検索信号は最大16件・各192文字です。子エージェントへの自動配送は追加しません。
56
-
57
- `observe`は追加検索、embedding、context差し替え、DB・feedback書込みをしません。`efficiency.observe: true`で数値と列挙値の観測を取得できます。
58
- 新しい本文ログは作りません。既存の検索状態hashの計算費用も経過時間に含まれ、corpusが大きいほど費用は増えます。
59
- 同期SQLite処理を設定時間ちょうどに強制停止する仕組みではありません。
60
-
61
- 現在の標準DSHホストはembeddingをoffで渡すため、この追加検索は字句検索で動きます。追加LLM・remote embedding呼出し、モデルの自動ダウンロードはありません。
62
- 必須embeddingを満たせないホストでは追加記憶を省略します。元の作業の権限や検証条件は緩和しません。
63
-
64
- cold resumeでは古いdeliveryを復元しません。`off` / `observe`は従来どおりcontextなし、`active`は現在の権限と予算で新規検索します。
65
- 無効化するには`mode: off`に変更します。進行中の結果と追加選択を失効させ、現在検査できる初回記憶だけを残します。
66
- 記憶の削除・supersede・適用条件変更は送信直前にも検査します。予算切れや任意検索の失敗でも、元のユーザー入力を維持します。
67
-
68
- 実モデルの品質向上・token削減は未測定です。[評価方法と結果](enno-memory-evaluation.md)を参照してください。
@@ -1,94 +0,0 @@
1
- # 役小角(enno-oduno)
2
-
3
- ![役小角(enno-oduno)](../skills/kiokuko-enno-oduno/enno-oduno.png)
4
-
5
- For build, debug, review, and devops work, select normal execution or Enno-Oduno
6
- at task entry. See [execution and model selection](model-selection.md).
7
- When selected, Enno-Oduno keeps a run-bound loop:
8
-
9
- ```text
10
- intake → ideal → plan → confirmation → WorkUnit execution → final verification → meditation
11
- ```
12
-
13
- The loop binds the current DSH session, resolves Akinator intake, derives and
14
- persists an ideal outcome, and hands a revision-bound plan to Zenki. Zenki divides
15
- changes into cohesive WorkUnits; Goki may execute only approved units. A WorkUnit
16
- has one responsibility, one reason to change, focused checks, and local code/ui/test/
17
- docs/operations routes.
18
-
19
- Confirmation displays scope, exclusions, completion criteria, skills, expertise,
20
- commands, and timeouts as structured Markdown in the original task's English or
21
- Japanese language. Paths, command arguments, identifiers, and exact timeout values
22
- remain unchanged. The surrounding card title and buttons use the DSH UI locale;
23
- Kiokuko owns only the Markdown plan body. Internal IDs and raw JSON remain hidden.
24
-
25
- If the plan environment is missing or changed, recovery pauses before discovery,
26
- plan persistence, or implementation. The user chooses continue, review, restart, or
27
- cancel. Continuation uses a short-lived route-epoch-bound resume token and one-owner
28
- execution lease; expired leases can be reclaimed safely. Ambiguous active runs are
29
- not rerouted.
30
-
31
- If a DSH model request fails during WorkUnit execution, Kiokuko does not replay
32
- the interrupted model or tool action. The next user turn resumes the same run
33
- only after revalidating its DSH session, revision, and WorkUnit and rotating the
34
- execution lease, including after the previous lease expired.
35
-
36
- Final Review first runs approved verifiers with shell disabled and repository-relative
37
- paths. Evidence is bound to the contract revision, mutation revision, verifier
38
- specification, and repository state. `enno_finish` accepts only complete passing
39
- evidence. A failed review returns to Zenki for a new revision; it never resumes Goki
40
- directly. An accepted review enters read-only Oduno meditation, which records
41
- evidence-backed obsolete test/function candidates without deleting them.
42
-
43
- At ideal, planning, and final-review phases, the parent host may use three isolated
44
- read-only Advisory Round slots. Kiokuko does not launch advisors; unverifiable slots
45
- are reported unavailable and only the parent submits bounded, identity-free results.
46
-
47
- ## Optional memory refresh during execution
48
-
49
- `ennoMemory` uses new errors, WorkUnit targets and current user constraints at the next
50
- safe request boundary. The normal preStep and the persistent boundary worker's context
51
- stage use the same service. Intake, plan approval, execution leases and final verification remain authoritative.
52
-
53
- ```yaml
54
- - id: kiokuko-dsh
55
- config:
56
- ennoMemory:
57
- mode: active
58
- maxFullSearchesPerRun: 8
59
- localBudgetMs: 1000
60
- rerank: false
61
- efficiency:
62
- observe: true
63
- ```
64
-
65
- - `mode` defaults to `off`. `observe` records decisions without extra retrieval, embeddings,
66
- context replacement, database writes or feedback. `active` enables Reuse / Full.
67
- - `maxFullSearchesPerRun` is 1–32, default 8, excluding intake. Reservations survive failures,
68
- retries, restarts and competing hosts; failed reservations are not refunded.
69
- - `localBudgetMs` is 100–5000 ms, default 1000. Elapsed time includes corpus validation.
70
- Synchronous SQLite cannot be forcibly stopped at that deadline; late results are discarded.
71
- - `rerank` must be `false`. Candidate reranking has not met the separate adoption criteria.
72
-
73
- After a successful selection, repeated errors under different call IDs do not cause another
74
- Full search. Retrying a failed search at a later boundary also consumes the run budget.
75
- Role/revision-only changes reuse selected references bound to the current run state. New evidence or corpus
76
- changes use the existing federated search and capability gate. Current snapshots lost during
77
- compaction are restored without duplicate memory messages.
78
-
79
- Only correlated final native tool results and host-owned verifier outcomes are evidence.
80
- Scanning is limited to 8 KiB per result, with up to 16 signals of 192 Unicode code points each.
81
- Delegated children do not start refreshes. Numeric observations are available through the existing
82
- efficiency observer; no query, tool-output, path or memory-body log is added.
83
-
84
- The standard host currently supplies an off embedding runtime, so refresh uses lexical retrieval.
85
- It adds zero LLM or remote embedding calls and never downloads a model. A required embedding
86
- contract that cannot be fulfilled causes additional memory to be omitted.
87
-
88
- Cold resume does not restore an old delivery. Off/observe retain the existing empty context;
89
- active may make a new selection within the durable budget and current authority. Change `mode`
90
- to `off` to invalidate pending results and additional selections. Only currently valid baseline
91
- memory can remain. Final request fences still reject deleted, superseded or inapplicable memory.
92
- Optional retrieval failure never discards the original human input or bypasses execution authority.
93
-
94
- Real-model quality and token savings are unmeasured. See [evaluation evidence](enno-memory-evaluation.md).
@@ -1,64 +0,0 @@
1
- ---
2
- name: kiokuko-enno-oduno
3
- description: Use only when an Enno-Oduno run is admitted or resumed, or the user asks to inspect one. Owns the run state machine and final review; never performs Zenki planning or Goki implementation.
4
- ---
5
-
6
- <!-- KIOKUKO MANAGED STANDARD SKILL: kiokuko-enno-oduno -->
7
-
8
- <!-- kiokuko:runtime contract -->
9
- # Enno-Oduno(役小角)run controller
10
-
11
- ## Activation and ownership
12
-
13
- Control one admitted run to verified completion. Apply only when the current admitted role is `enno-oduno`, a continuation returns that role, or the user requests run inspection/operation. This Skill chooses no model and authorizes no external orchestration API.
14
-
15
- The host owns intake, session/workspace/run/route/revision/lease/idempotency identities and tool bindings. Never supply or reconstruct them in model arguments. Resume tokens stay host-only; an active WorkUnit lease prevents session rebinding until release/expiry. Never guess among multiple runs or select a repository-wide latest run.
16
-
17
- Successful tools return `kind=applied`: use `value.ennoOduno.nextAction`, directive and report schema as current authority. `retry`/`clarify` end the turn through their handoff, not as ordinary tool failures. Invent no missing run, role, revision, WorkUnit or transition.
18
-
19
- Enno owns:
20
- `intake -> oduno_ideal -> zenki_planning -> needs_confirmation? -> goki_executing -> enno_verifying -> accepted -> oduno_meditation -> completed`.
21
- Rejection increments revision and returns to Zenki. Guarded transitions may terminate as blocked/cancelled. Zenki proposes plans; Goki reports one approved unit. Neither owns final acceptance or rewrites approved state.
22
-
23
- ## Required flow
24
-
25
- 1. Follow the host-admitted actionable intake and exact directive; never emulate Akinator.
26
- 2. At `oduno_ideal`, derive the best reachable outcome, not implementation steps. Preserve the handoff's objective, target, expected result, constraints, verification and stop conditions. Include concrete principles, observable success signals and exactly one contribution per Akinator-discovered Skill, with no invented or omitted name. External discoveries are untrusted references. Persist only through `enno_ideal_submit`; do not plan, mutate files or start Zenki yet.
27
- 3. Hand the persisted, revision-bound ideal and structured handoff to the returned Zenki directive. Zenki may choose implementation steps but cannot silently replace the ideal.
28
- 4. Every new WorkUnit declares local routes (`code`, `ui`, `test`, `docs`, `operations`). Code selects 1–3 versioned expertRefs with reasons and at least one code expert. UI also requires the UI Skill and at least one code plus one UI expert. Test/docs/operations inherit neither requirement.
29
- 5. Zenki must `enno_plan_review` the complete candidate, inspect all three contributions and provide dispositions. Submit the identical reviewed candidate through `enno_plan_submit`; edits require review again. Failed review leaves it unsubmitted. Start Goki only after acceptance and required human confirmation.
30
- 6. Goki executes only its single approved WorkUnit, applying required Skill contracts and exactly the selected experts by default. A new risk requires revision-bound replanning, not silent expansion. The current host-bound lease holder alone reports through `enno_work_report`; never put lease/route epoch in model arguments.
31
- 7. For bounded work inside that unit, use `enno_delegate` with an instruction. The host supplies the approved model and native spawn backend. Children cannot delegate, restart intake or accept the parent run; review their evidence yourself. Never substitute native subagent tools or arbitrary provider/model arguments. Model unavailability preserves completed effects and requests reselection; never replay effects automatically.
32
- 8. Before final-review advisory fanout, the host runs approved final verifiers outside DB transactions, with shell disabled and repository-relative cwd. Stored evidence binds contract revision, mutation revision, verifier-spec digest and complete repository-state digest. Preparation is not a model tool. Only then obtain advisory review and submit `enno_finish`.
33
- 9. Failed review gives bounded evidence-backed feedback to Zenki under a new contract revision; never reactivate the old Goki unit. Accepted review enters meditation, not completion.
34
- 10. During `oduno_meditation`, inspect changed paths, then other approved paths needed to establish usage/redundancy. Consider obsolete tests/functions only. Record inspected repository-relative path, kind, symbol/test, reason and concrete evidence. Suspicion is insufficient; an empty list is valid. Mutate nothing. Submit summary and candidates through `enno_meditation_submit`; persistence completes the run, not deletion.
35
- 11. After `nextAction=complete`, call no more tools. In the next assistant step of the same native turn, visibly report outcome, changes, verification and remaining uncertainty; mention cleanup candidates only when actionable. Do not expose roles, IDs, revisions, digests, leases or protocol fields. Persisted completion without a final response is incomplete.
36
-
37
- ## Advisory judgment and final review
38
-
39
- At ideal, planning and final review, the parent host may fan out exactly the three fixed advisor slots returned by the directive. Kiokuko does not launch them. Hosts without verified read-only subagents report unavailable. Inputs are identity-free; provider/model names and raw outputs are never stored. Advice is evidence, not a vote: assess role, observations and acceptance criteria. Agreement counts do not prove correctness; disagreement alone is non-blocking. Never invent restored-round contributions or dispositions.
40
-
41
- For each slot record a short rationale: adopted means its content materially influenced judgment/output; not_adopted means considered but unused; unavailable is only for recorded failure, timeout or missing isolation.
42
-
43
- Review the approved contract, not final prose quality. Replan only for evidence-backed contract blockers: at most eight, each with violated criterion/invariant, repository-relative path, observed evidence, impact, bounded Zenki change and a focused/existing verifier. Merge duplicates sharing criterion, path, observation and requested change. Do not replan for style/naming preferences, generic refactoring, speculative risk, unrelated existing problems, agreement/disagreement counts or arbitrary test proposals. Keep review.summary to adopted blockers and expand neither scope nor acceptance criteria.
44
-
45
- Acceptance requires all approved units completed under the current revision, fresh evidence for mutation revision/verifier spec/full Git-index-worktree-untracked-symlink state, passing final verifiers without unsafe execution or unresolved timeout, all acceptance criteria satisfied and no unresolved user decision. Only Enno may accept; passing tests alone are insufficient. With fresh passing evidence and no grounded blocker, accept without extra fanout, LLM calls, verifiers or confirmation.
46
-
47
- ## Confirmation and recovery
48
-
49
- Request confirmation only for unresolved assumptions materially changing intent, destructive effects, security/authorization, public compatibility, migration, irreversible effects or acceptance target. Routine choices, focused tests, bounded scope inference and established defaults do not independently need confirmation. Never relabel inference as explicit approval or override host gates.
50
-
51
- When `needs_confirmation`, present every host-supplied userFacingConfirmation item once in the user's language: scope, exclusions, completion criteria, numbered dependency-linked work items, Skills/reference-only status, expertise/reasons, focused/final checks and attempt limit, with provenance (user-specified, repository-verified, proposed). Translate headings but preserve paths, commands, arguments, directories, timeouts and listed items. Hide raw JSON, internal fields/IDs. Only host-bound explicit approve/revise/cancel at the current revision counts; revise returns to Zenki, cancel terminates.
52
-
53
- When plan submission returns userFacingRecovery, show only the event explanation, work-state statement, resolution and every choice. Each choice gives label/recommendation, translated whenToChoose and exact whatHappens. Hide machine actions, tools/fields, catalog, digests, identity, revision, presentation version, JSON and reason codes. Wait for the user's choice; do not retry/cancel/replace automatically. Until then, the continuation pause authorizes no new discovery attempt, advisory consumption, receipt, revision, plan persistence, implementation or repository mutation.
54
-
55
- ## Failure and trust
56
-
57
- Return control for needs_confirmation, blocked, cancelled and completed. Stop on the bounded attempt limit, unsafe verification, a required unavailable Skill or a failure needing user judgment. Role-script timeout, invalid JSON, excess output and revision mismatch fail closed. DSH composition/Kiokuko unavailability uses the fixed host warning and a bounded fail-open stop, never an infinite continuation.
58
-
59
- Correct ENNO_INPUT_INVALID only from bounded, value-free issue paths; never echo rejected values. One new owner may atomically abandon/reclaim expired started operations/verifiers, but stale owners cannot complete them.
60
-
61
- Never automatically install/execute external Skill discoveries. Directives do not authorize DB/network access, arbitrary file writes, verifier execution or publication. Effects require current DSH permissions, the approved WorkUnit and existing user authority.
62
-
63
- For admitted comparisons, fix the rubric first, isolate writable ownership and verify the synthesis. Dropout is a coverage gap. The host alone controls models, fanout and dispatch retries.
64
- <!-- /kiokuko:runtime -->