kiokuko-dsh 0.2.1 → 0.2.3

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 (353) hide show
  1. package/PERMISSIONS.md +21 -28
  2. package/README.ja.md +8 -6
  3. package/README.md +12 -6
  4. package/THIRD_PARTY_NOTICES.md +8 -0
  5. package/dist/client.cjs +2248 -1383
  6. package/dist/client.d.ts +3 -1
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/context/continuity-view.d.ts +1 -1
  9. package/dist/deep-thinker/configuration.d.ts.map +1 -1
  10. package/dist/deep-thinker/configuration.js +8 -5
  11. package/dist/deep-thinker/configuration.js.map +1 -1
  12. package/dist/deep-thinker/core/contracts.d.ts +107 -13
  13. package/dist/deep-thinker/core/contracts.d.ts.map +1 -1
  14. package/dist/deep-thinker/core/contracts.js +4 -2
  15. package/dist/deep-thinker/core/contracts.js.map +1 -1
  16. package/dist/deep-thinker/memory-finalizer.d.ts +10 -10
  17. package/dist/deep-thinker/memory-finalizer.js +2 -2
  18. package/dist/deep-thinker/memory-finalizer.js.map +1 -1
  19. package/dist/deep-thinker/report.d.ts +1 -1
  20. package/dist/deep-thinker/store.d.ts +10 -10
  21. package/dist/deep-thinker/store.d.ts.map +1 -1
  22. package/dist/deep-thinker/store.js +2 -2
  23. package/dist/deep-thinker/store.js.map +1 -1
  24. package/dist/dsh/coding-workflow/contracts.d.ts +120 -0
  25. package/dist/dsh/coding-workflow/contracts.d.ts.map +1 -0
  26. package/dist/dsh/coding-workflow/contracts.js +77 -0
  27. package/dist/dsh/coding-workflow/contracts.js.map +1 -0
  28. package/dist/dsh/coding-workflow/host.d.ts +41 -0
  29. package/dist/dsh/coding-workflow/host.d.ts.map +1 -0
  30. package/dist/dsh/coding-workflow/host.js +235 -0
  31. package/dist/dsh/coding-workflow/host.js.map +1 -0
  32. package/dist/dsh/coding-workflow/intent.d.ts +15 -0
  33. package/dist/dsh/coding-workflow/intent.d.ts.map +1 -0
  34. package/dist/dsh/coding-workflow/intent.js +86 -0
  35. package/dist/dsh/coding-workflow/intent.js.map +1 -0
  36. package/dist/dsh/coding-workflow/service.d.ts +155 -0
  37. package/dist/dsh/coding-workflow/service.d.ts.map +1 -0
  38. package/dist/dsh/coding-workflow/service.js +282 -0
  39. package/dist/dsh/coding-workflow/service.js.map +1 -0
  40. package/dist/dsh/coding-workflow/store.d.ts +17 -0
  41. package/dist/dsh/coding-workflow/store.d.ts.map +1 -0
  42. package/dist/dsh/coding-workflow/store.js +77 -0
  43. package/dist/dsh/coding-workflow/store.js.map +1 -0
  44. package/dist/dsh/completion-verifiers.d.ts +39 -0
  45. package/dist/dsh/completion-verifiers.d.ts.map +1 -0
  46. package/dist/dsh/completion-verifiers.js +9 -0
  47. package/dist/dsh/completion-verifiers.js.map +1 -0
  48. package/dist/dsh/config.d.ts +5 -1
  49. package/dist/dsh/config.d.ts.map +1 -1
  50. package/dist/dsh/core/host.d.ts +1 -1
  51. package/dist/dsh/core/host.d.ts.map +1 -1
  52. package/dist/dsh/core/host.js +97 -11
  53. package/dist/dsh/core/host.js.map +1 -1
  54. package/dist/dsh/core/index.d.ts +4 -4
  55. package/dist/dsh/core/index.js +2 -2
  56. package/dist/dsh/core/index.js.map +1 -1
  57. package/dist/dsh/core/tasks.d.ts +2 -0
  58. package/dist/dsh/core/tasks.d.ts.map +1 -1
  59. package/dist/dsh/core/tasks.js +43 -1
  60. package/dist/dsh/core/tasks.js.map +1 -1
  61. package/dist/dsh/core-runtime.d.ts +1 -0
  62. package/dist/dsh/core-runtime.d.ts.map +1 -1
  63. package/dist/dsh/core-runtime.js +4 -1
  64. package/dist/dsh/core-runtime.js.map +1 -1
  65. package/dist/dsh/decisions/config.d.ts +2 -2
  66. package/dist/dsh/enno-delegation.js +2 -2
  67. package/dist/dsh/enno-delegation.js.map +1 -1
  68. package/dist/dsh/execution-command.d.ts +4 -0
  69. package/dist/dsh/execution-command.d.ts.map +1 -0
  70. package/dist/dsh/execution-command.js +52 -0
  71. package/dist/dsh/execution-command.js.map +1 -0
  72. package/dist/dsh/execution-journal.d.ts +17 -0
  73. package/dist/dsh/execution-journal.d.ts.map +1 -0
  74. package/dist/dsh/execution-journal.js +69 -0
  75. package/dist/dsh/execution-journal.js.map +1 -0
  76. package/dist/dsh/execution-result.d.ts +20 -0
  77. package/dist/dsh/execution-result.d.ts.map +1 -0
  78. package/dist/dsh/execution-result.js +7 -0
  79. package/dist/dsh/execution-result.js.map +1 -0
  80. package/dist/dsh/execution-selection.d.ts +150 -23
  81. package/dist/dsh/execution-selection.d.ts.map +1 -1
  82. package/dist/dsh/execution-selection.js +18 -6
  83. package/dist/dsh/execution-selection.js.map +1 -1
  84. package/dist/dsh/host-adapter/admission.d.ts.map +1 -1
  85. package/dist/dsh/host-adapter/admission.js +33 -22
  86. package/dist/dsh/host-adapter/admission.js.map +1 -1
  87. package/dist/dsh/host-adapter/boundaries.d.ts.map +1 -1
  88. package/dist/dsh/host-adapter/boundaries.js +2 -0
  89. package/dist/dsh/host-adapter/boundaries.js.map +1 -1
  90. package/dist/dsh/host-adapter/context.d.ts.map +1 -1
  91. package/dist/dsh/host-adapter/context.js +18 -13
  92. package/dist/dsh/host-adapter/context.js.map +1 -1
  93. package/dist/dsh/host-adapter/lifecycle.d.ts.map +1 -1
  94. package/dist/dsh/host-adapter/lifecycle.js +12 -0
  95. package/dist/dsh/host-adapter/lifecycle.js.map +1 -1
  96. package/dist/dsh/host-adapter/routing.js +1 -1
  97. package/dist/dsh/host-adapter/routing.js.map +1 -1
  98. package/dist/dsh/host-adapter/turn-state.js +1 -1
  99. package/dist/dsh/host-adapter/turn-state.js.map +1 -1
  100. package/dist/dsh/host-adapter.d.ts.map +1 -1
  101. package/dist/dsh/host-adapter.js +61 -18
  102. package/dist/dsh/host-adapter.js.map +1 -1
  103. package/dist/dsh/index.d.ts +4 -2
  104. package/dist/dsh/index.d.ts.map +1 -1
  105. package/dist/dsh/index.js +7 -0
  106. package/dist/dsh/index.js.map +1 -1
  107. package/dist/dsh/intake-gate.d.ts +1 -0
  108. package/dist/dsh/intake-gate.d.ts.map +1 -1
  109. package/dist/dsh/intake-gate.js +9 -1
  110. package/dist/dsh/intake-gate.js.map +1 -1
  111. package/dist/dsh/lisp/approval.d.ts +2 -1
  112. package/dist/dsh/lisp/approval.d.ts.map +1 -1
  113. package/dist/dsh/lisp/approval.js +4 -3
  114. package/dist/dsh/lisp/approval.js.map +1 -1
  115. package/dist/dsh/lisp/candidate.d.ts +1 -1
  116. package/dist/dsh/lisp/code-intelligence-contracts.d.ts +78 -0
  117. package/dist/dsh/lisp/code-intelligence-contracts.d.ts.map +1 -0
  118. package/dist/dsh/lisp/code-intelligence-contracts.js +54 -0
  119. package/dist/dsh/lisp/code-intelligence-contracts.js.map +1 -0
  120. package/dist/dsh/lisp/code-intelligence-provider.d.ts +116 -0
  121. package/dist/dsh/lisp/code-intelligence.d.ts +13 -0
  122. package/dist/dsh/lisp/code-intelligence.d.ts.map +1 -0
  123. package/dist/dsh/lisp/code-intelligence.js +181 -0
  124. package/dist/dsh/lisp/code-intelligence.js.map +1 -0
  125. package/dist/dsh/lisp/coding-choice.d.ts +4 -1
  126. package/dist/dsh/lisp/coding-choice.d.ts.map +1 -1
  127. package/dist/dsh/lisp/coding-choice.js +26 -10
  128. package/dist/dsh/lisp/coding-choice.js.map +1 -1
  129. package/dist/dsh/lisp/compiled-cache.d.ts.map +1 -1
  130. package/dist/dsh/lisp/compiled-cache.js +3 -2
  131. package/dist/dsh/lisp/compiled-cache.js.map +1 -1
  132. package/dist/dsh/lisp/contracts.d.ts +4 -0
  133. package/dist/dsh/lisp/contracts.d.ts.map +1 -1
  134. package/dist/dsh/lisp/contracts.js +1 -0
  135. package/dist/dsh/lisp/contracts.js.map +1 -1
  136. package/dist/dsh/lisp/manager.d.ts +9 -1
  137. package/dist/dsh/lisp/manager.d.ts.map +1 -1
  138. package/dist/dsh/lisp/manager.js +91 -24
  139. package/dist/dsh/lisp/manager.js.map +1 -1
  140. package/dist/dsh/lisp/model-result.d.ts.map +1 -1
  141. package/dist/dsh/lisp/model-result.js +35 -1
  142. package/dist/dsh/lisp/model-result.js.map +1 -1
  143. package/dist/dsh/lisp/proposal-batch.d.ts +2 -0
  144. package/dist/dsh/lisp/proposal-batch.d.ts.map +1 -1
  145. package/dist/dsh/lisp/proposal-batch.js +32 -2
  146. package/dist/dsh/lisp/proposal-batch.js.map +1 -1
  147. package/dist/dsh/lisp/request-surface.d.ts +12 -2
  148. package/dist/dsh/lisp/request-surface.d.ts.map +1 -1
  149. package/dist/dsh/lisp/request-surface.js +1 -1
  150. package/dist/dsh/lisp/request-surface.js.map +1 -1
  151. package/dist/dsh/lisp/sandbox.d.ts +3 -0
  152. package/dist/dsh/lisp/sandbox.d.ts.map +1 -1
  153. package/dist/dsh/lisp/sandbox.js +13 -6
  154. package/dist/dsh/lisp/sandbox.js.map +1 -1
  155. package/dist/dsh/lisp/surface.d.ts +1 -1
  156. package/dist/dsh/lisp/surface.d.ts.map +1 -1
  157. package/dist/dsh/lisp/surface.js +118 -23
  158. package/dist/dsh/lisp/surface.js.map +1 -1
  159. package/dist/dsh/lisp/worker.d.ts +2 -0
  160. package/dist/dsh/lisp/worker.d.ts.map +1 -1
  161. package/dist/dsh/lisp/worker.js +7 -5
  162. package/dist/dsh/lisp/worker.js.map +1 -1
  163. package/dist/dsh/lisp-service-key.d.ts +9 -0
  164. package/dist/dsh/lisp-service-key.d.ts.map +1 -1
  165. package/dist/dsh/lisp-service-key.js +11 -0
  166. package/dist/dsh/lisp-service-key.js.map +1 -1
  167. package/dist/dsh/memory-application.d.ts +1 -1
  168. package/dist/dsh/memory-application.d.ts.map +1 -1
  169. package/dist/dsh/memory-application.js +4 -3
  170. package/dist/dsh/memory-application.js.map +1 -1
  171. package/dist/dsh/model-auto/candidates.d.ts.map +1 -1
  172. package/dist/dsh/model-auto/candidates.js +31 -22
  173. package/dist/dsh/model-auto/candidates.js.map +1 -1
  174. package/dist/dsh/model-configuration.d.ts +145 -2
  175. package/dist/dsh/model-configuration.d.ts.map +1 -1
  176. package/dist/dsh/model-configuration.js +10 -3
  177. package/dist/dsh/model-configuration.js.map +1 -1
  178. package/dist/dsh/model-selection-ui.d.ts.map +1 -1
  179. package/dist/dsh/model-selection-ui.js +7 -2
  180. package/dist/dsh/model-selection-ui.js.map +1 -1
  181. package/dist/dsh/models/config-store.d.ts +8 -0
  182. package/dist/dsh/models/config-store.d.ts.map +1 -0
  183. package/dist/dsh/models/config-store.js +49 -0
  184. package/dist/dsh/models/config-store.js.map +1 -0
  185. package/dist/dsh/models/contracts.d.ts +107 -0
  186. package/dist/dsh/models/contracts.d.ts.map +1 -0
  187. package/dist/dsh/models/contracts.js +104 -0
  188. package/dist/dsh/models/contracts.js.map +1 -0
  189. package/dist/dsh/models/metadata.d.ts +7 -0
  190. package/dist/dsh/models/metadata.d.ts.map +1 -0
  191. package/dist/dsh/models/metadata.js +13 -0
  192. package/dist/dsh/models/metadata.js.map +1 -0
  193. package/dist/dsh/models/profiles.d.ts +10 -0
  194. package/dist/dsh/models/profiles.d.ts.map +1 -0
  195. package/dist/dsh/models/profiles.js +176 -0
  196. package/dist/dsh/models/profiles.js.map +1 -0
  197. package/dist/dsh/models/service.d.ts +97 -0
  198. package/dist/dsh/models/service.d.ts.map +1 -0
  199. package/dist/dsh/models/service.js +518 -0
  200. package/dist/dsh/models/service.js.map +1 -0
  201. package/dist/dsh/models/surface.d.ts +8 -0
  202. package/dist/dsh/models/surface.d.ts.map +1 -0
  203. package/dist/dsh/models/surface.js +162 -0
  204. package/dist/dsh/models/surface.js.map +1 -0
  205. package/dist/dsh/models/vendor/THIRD_PARTY_NOTICES.txt +134 -0
  206. package/dist/dsh/models/vendor/abortable.d.ts +3 -0
  207. package/dist/dsh/models/vendor/abortable.d.ts.map +1 -0
  208. package/dist/dsh/models/vendor/abortable.js +10 -0
  209. package/dist/dsh/models/vendor/abortable.js.map +1 -0
  210. package/dist/dsh/models/vendor/auth-contract.d.ts +67 -0
  211. package/dist/dsh/models/vendor/auth-contract.d.ts.map +1 -0
  212. package/dist/dsh/models/vendor/auth-contract.js +2 -0
  213. package/dist/dsh/models/vendor/auth-contract.js.map +1 -0
  214. package/dist/dsh/models/vendor/credentials.d.ts +58 -0
  215. package/dist/dsh/models/vendor/credentials.d.ts.map +1 -0
  216. package/dist/dsh/models/vendor/credentials.js +205 -0
  217. package/dist/dsh/models/vendor/credentials.js.map +1 -0
  218. package/dist/dsh/models/vendor/nous-oauth.d.ts +6 -0
  219. package/dist/dsh/models/vendor/nous-oauth.d.ts.map +1 -0
  220. package/dist/dsh/models/vendor/nous-oauth.js +113 -0
  221. package/dist/dsh/models/vendor/nous-oauth.js.map +1 -0
  222. package/dist/dsh/models/vendor/opencode-adapter.d.ts +38 -0
  223. package/dist/dsh/models/vendor/opencode-adapter.d.ts.map +1 -0
  224. package/dist/dsh/models/vendor/opencode-adapter.js +207 -0
  225. package/dist/dsh/models/vendor/opencode-adapter.js.map +1 -0
  226. package/dist/dsh/models/vendor/opencode-catalog.d.ts +73 -0
  227. package/dist/dsh/models/vendor/opencode-catalog.d.ts.map +1 -0
  228. package/dist/dsh/models/vendor/opencode-catalog.js +253 -0
  229. package/dist/dsh/models/vendor/opencode-catalog.js.map +1 -0
  230. package/dist/dsh/models/vendor/opencode-codec.d.ts +7 -0
  231. package/dist/dsh/models/vendor/opencode-codec.d.ts.map +1 -0
  232. package/dist/dsh/models/vendor/opencode-codec.js +107 -0
  233. package/dist/dsh/models/vendor/opencode-codec.js.map +1 -0
  234. package/dist/dsh/models/vendor/opencode-owned.generated.d.ts +114 -0
  235. package/dist/dsh/models/vendor/opencode-owned.generated.d.ts.map +1 -0
  236. package/dist/dsh/models/vendor/opencode-owned.generated.js +2867 -0
  237. package/dist/dsh/models/vendor/opencode-owned.generated.js.map +1 -0
  238. package/dist/dsh/models/vendor/opencode-replay.d.ts +17 -0
  239. package/dist/dsh/models/vendor/opencode-replay.d.ts.map +1 -0
  240. package/dist/dsh/models/vendor/opencode-replay.js +147 -0
  241. package/dist/dsh/models/vendor/opencode-replay.js.map +1 -0
  242. package/dist/dsh/models/vendor/opencode-sdk.d.ts +6 -0
  243. package/dist/dsh/models/vendor/opencode-sdk.d.ts.map +1 -0
  244. package/dist/dsh/models/vendor/opencode-sdk.js +49915 -0
  245. package/dist/dsh/models/vendor/opencode-sdk.js.map +7 -0
  246. package/dist/dsh/models/vendor/opencode-transport.d.ts +6 -0
  247. package/dist/dsh/models/vendor/opencode-transport.d.ts.map +1 -0
  248. package/dist/dsh/models/vendor/opencode-transport.js +70 -0
  249. package/dist/dsh/models/vendor/opencode-transport.js.map +1 -0
  250. package/dist/dsh/models/vendor/pi-ai.d.ts +23 -0
  251. package/dist/dsh/models/vendor/pi-ai.d.ts.map +1 -0
  252. package/dist/dsh/models/vendor/pi-ai.js +27 -0
  253. package/dist/dsh/models/vendor/pi-ai.js.map +1 -0
  254. package/dist/dsh/modules/lisp.d.ts +1 -1
  255. package/dist/dsh/modules/lisp.d.ts.map +1 -1
  256. package/dist/dsh/modules/lisp.js +2 -13
  257. package/dist/dsh/modules/lisp.js.map +1 -1
  258. package/dist/dsh/modules/resources.d.ts +3 -1
  259. package/dist/dsh/modules/resources.d.ts.map +1 -1
  260. package/dist/dsh/modules/resources.js +4 -0
  261. package/dist/dsh/modules/resources.js.map +1 -1
  262. package/dist/dsh/native-model-catalog.d.ts.map +1 -1
  263. package/dist/dsh/native-model-catalog.js +4 -3
  264. package/dist/dsh/native-model-catalog.js.map +1 -1
  265. package/dist/dsh/node-tap-summary.d.ts +8 -1
  266. package/dist/dsh/node-tap-summary.d.ts.map +1 -1
  267. package/dist/dsh/node-tap-summary.js +33 -3
  268. package/dist/dsh/node-tap-summary.js.map +1 -1
  269. package/dist/dsh/on-demand-intake.d.ts +1 -1
  270. package/dist/dsh/on-demand-intake.d.ts.map +1 -1
  271. package/dist/dsh/on-demand-intake.js +35 -14
  272. package/dist/dsh/on-demand-intake.js.map +1 -1
  273. package/dist/dsh/owned-evidence.d.ts +49 -0
  274. package/dist/dsh/owned-evidence.d.ts.map +1 -0
  275. package/dist/dsh/owned-evidence.js +69 -0
  276. package/dist/dsh/owned-evidence.js.map +1 -0
  277. package/dist/dsh/owned-execution.d.ts +99 -0
  278. package/dist/dsh/owned-execution.d.ts.map +1 -0
  279. package/dist/dsh/owned-execution.js +558 -0
  280. package/dist/dsh/owned-execution.js.map +1 -0
  281. package/dist/dsh/plan-transition.d.ts +5 -0
  282. package/dist/dsh/plan-transition.d.ts.map +1 -0
  283. package/dist/dsh/plan-transition.js +34 -0
  284. package/dist/dsh/plan-transition.js.map +1 -0
  285. package/dist/dsh/session-memory-finalizer.d.ts.map +1 -1
  286. package/dist/dsh/session-memory-finalizer.js +46 -3
  287. package/dist/dsh/session-memory-finalizer.js.map +1 -1
  288. package/dist/dsh/setup.d.ts +1 -1
  289. package/dist/dsh/setup.d.ts.map +1 -1
  290. package/dist/dsh/setup.js +2 -0
  291. package/dist/dsh/setup.js.map +1 -1
  292. package/dist/dsh/skill-prompts.json +1 -1
  293. package/dist/dsh/task-completion-host.js +3 -3
  294. package/dist/dsh/task-completion-host.js.map +1 -1
  295. package/dist/dsh/task-completion.d.ts +17 -0
  296. package/dist/dsh/task-completion.d.ts.map +1 -1
  297. package/dist/dsh/task-completion.js +144 -38
  298. package/dist/dsh/task-completion.js.map +1 -1
  299. package/dist/dsh/task-intake.d.ts.map +1 -1
  300. package/dist/dsh/task-intake.js +7 -0
  301. package/dist/dsh/task-intake.js.map +1 -1
  302. package/dist/enno-oduno/coding-workflow.d.ts +39 -0
  303. package/dist/enno-oduno/coding-workflow.d.ts.map +1 -0
  304. package/dist/enno-oduno/coding-workflow.js +33 -0
  305. package/dist/enno-oduno/coding-workflow.js.map +1 -0
  306. package/dist/enno-oduno/schemas.d.ts +10 -10
  307. package/dist/enno-oduno/store.d.ts.map +1 -1
  308. package/dist/enno-oduno/store.js +56 -1
  309. package/dist/enno-oduno/store.js.map +1 -1
  310. package/dist/enno-oduno/types.d.ts +1 -0
  311. package/dist/enno-oduno/types.d.ts.map +1 -1
  312. package/dist/enno-oduno/verifier.d.ts.map +1 -1
  313. package/dist/enno-oduno/verifier.js +4 -1
  314. package/dist/enno-oduno/verifier.js.map +1 -1
  315. package/dist/locale/en.json +1 -1
  316. package/dist/locale/ja.json +1 -1
  317. package/dist/locale/ko.json +1 -1
  318. package/dist/locale/zh-CN.json +1 -1
  319. package/dist/memory/application.d.ts +2 -1
  320. package/dist/memory/application.d.ts.map +1 -1
  321. package/dist/memory/application.js +26 -12
  322. package/dist/memory/application.js.map +1 -1
  323. package/dist/memory/evidence.d.ts +2 -0
  324. package/dist/memory/evidence.d.ts.map +1 -1
  325. package/dist/memory/evidence.js +3 -1
  326. package/dist/memory/evidence.js.map +1 -1
  327. package/dist/model-tools/contracts.d.ts +4 -4
  328. package/dist/models-client.cjs +635 -0
  329. package/dist/models-client.d.ts +26 -0
  330. package/dist/models-client.d.ts.map +1 -0
  331. package/dist/models-client.js +642 -0
  332. package/dist/models-client.js.map +1 -0
  333. package/docs/code-intelligence.md +149 -0
  334. package/docs/coding-workflow.md +45 -0
  335. package/docs/dsh-auth-LICENSE.txt +22 -0
  336. package/docs/dsh-auth-provenance.md +25 -0
  337. package/docs/dsh-plugin.md +19 -0
  338. package/docs/execution-support.md +4 -0
  339. package/docs/kiokuko-models.md +66 -0
  340. package/docs/lisp-hot-tools.md +2 -2
  341. package/docs/lisp.md +112 -63
  342. package/docs/model-selection.ja.md +7 -9
  343. package/docs/model-selection.md +14 -12
  344. package/docs/owned-execution.md +99 -0
  345. package/lisp/supervisor.mjs +8 -2
  346. package/lisp/tools.lisp +31 -3
  347. package/migrations/035_owned_execution.sql +19 -0
  348. package/migrations/036_coding_workflow.sql +26 -0
  349. package/package.json +47 -12
  350. package/skills/coding-ideal-routine-skill/SKILL.md +6 -0
  351. package/skills/kiokuko-lisp/SKILL.md +53 -67
  352. package/skills/kiokuko-soul/SKILL.md +7 -28
  353. package/skills/one-shot-software-completion/SKILL.md +5 -6
@@ -0,0 +1,26 @@
1
+ -- Old sessions remain legacy; enabled Lisp is never migrated into a task choice.
2
+ CREATE TABLE dsh_coding_workflows (
3
+ workflow_id TEXT PRIMARY KEY,
4
+ run_id TEXT NOT NULL UNIQUE REFERENCES ledger_runs(run_id) ON DELETE CASCADE,
5
+ session_id TEXT NOT NULL,
6
+ repository_root TEXT NOT NULL,
7
+ request_id TEXT NOT NULL,
8
+ revision INTEGER NOT NULL CHECK(revision > 0),
9
+ snapshot_json TEXT NOT NULL CHECK(json_valid(snapshot_json)),
10
+ updated_at TEXT NOT NULL,
11
+ UNIQUE(session_id,request_id)
12
+ );
13
+ CREATE INDEX idx_dsh_coding_session ON dsh_coding_workflows(session_id);
14
+ CREATE TABLE dsh_coding_operations (
15
+ workflow_id TEXT NOT NULL REFERENCES dsh_coding_workflows(workflow_id) ON DELETE CASCADE,
16
+ call_id TEXT NOT NULL,
17
+ request_digest TEXT NOT NULL,
18
+ response_json TEXT NOT NULL CHECK(json_valid(response_json)),
19
+ PRIMARY KEY(workflow_id,call_id)
20
+ );
21
+ ALTER TABLE dsh_completion_executions ADD COLUMN coding_scope INTEGER;
22
+ ALTER TABLE dsh_completion_executions ADD COLUMN coding_goal_ready INTEGER;
23
+ ALTER TABLE dsh_completion_executions ADD COLUMN coding_inputs_json TEXT;
24
+ ALTER TABLE enno_verifier_runs ADD COLUMN coding_source_paths_json TEXT;
25
+ ALTER TABLE enno_verifier_runs ADD COLUMN coding_source_digest TEXT;
26
+ ALTER TABLE enno_verifier_runs ADD COLUMN explicit_test_cases INTEGER;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiokuko-dsh",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Kiokuko plugin for DeepSeek Harness",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -102,7 +102,7 @@
102
102
  ]
103
103
  },
104
104
  "permissions": {
105
- "summary": "Local Kiokuko state and managed files, optional network-backed Skills, embeddings and configured provider-independent typed decisions, DSH-managed TypeSafe credentials, and protected or approved subprocesses.",
105
+ "summary": "Kiokuko-owned local development execution, candidate memory and host receipts; normal user environment, PATH commands and child processes. Concrete confirmation for source/data deletion and durable user database changes.",
106
106
  "readPaths": [
107
107
  "Configured Kiokuko SQLite database and embedding assets",
108
108
  "Registered project roots and their repository metadata",
@@ -117,12 +117,13 @@
117
117
  "DSH run, lease, receipt, retrieval, Deep inputs/artifacts/budgets/reports, post-completion memory-finalization, and embedding state inside that database",
118
118
  ".agenticreplay/runs and .agenticreplay/exports inside verified session workspaces, or the configured Kiokuko data directory",
119
119
  "Legacy history compatibility under DSH's native write lease: exact rejected v3 file or validated new v3 generation from retained v0, identical .bak, disposable validation artifacts, and automatic deletion of confirmed identity-mismatched native logs",
120
- "Opt-in Lisp scratch, input snapshots, verified compiled bundle cache, durable operation journal, and approved file changes with host backups"
120
+ "Opt-in Lisp scratch, input snapshots, verified compiled bundle cache, durable operation journal, and approved file changes with host backups",
121
+ "Project files through owned native tools; private execution outbox beside the configured Kiokuko database"
121
122
  ],
122
123
  "commands": [
123
124
  "Restricted repository-relative verifier and backup subprocesses when explicitly requested",
124
125
  "Read-only fixed-argument Git commands for an explicitly captured Diff review",
125
- "Opt-in protected SBCL and brokered subprocesses; no implicit runtime installation or VM"
126
+ "Owned bash/zsh, PATH commands, builds/tests and Lisp with the normal user environment; explicit protected Lisp compatibility mode remains available"
126
127
  ],
127
128
  "externalServices": [
128
129
  "GitHub or skills.sh for optional Skill discovery and source retrieval",
@@ -132,12 +133,14 @@
132
133
  "DSH-configured model provider for automatic memory review (active by default, up to 12 worker dispatches per project per UTC day), ordinary finalization and configured memory evolution",
133
134
  "Configured TypeSafe fixed endpoint or explicit Nimble HTTPS/loopback endpoint for automatic task/Skill/draft decisions, projected memory reuse after a synthetic readiness probe, and Lisp; no redirects, retries or provider substitution; exact roles.check no-tool fallback for complete draft review",
134
135
  "Explicit Laya-CoreML Unix socket for local finite decisions using the existing v1 worker or optional strict operations; no subprocess client, automatic worker startup, model downloads or provider substitution",
135
- "DSH-configured admitted provider/model for default-active source-backed index reasoning: up to 8 worker dispatches per workspace per UTC day; no retrieval-time generation or automatic resend of uncertain dispatches"
136
+ "DSH-configured admitted provider/model for default-active source-backed index reasoning: up to 8 worker dispatches per workspace per UTC day; no retrieval-time generation or automatic resend of uncertain dispatches",
137
+ "User-configured AI API endpoints and vendored provider OAuth flows through Kiokuko Models"
136
138
  ],
137
139
  "credentials": [
138
140
  "Optional user-provided GitHub or embedding credentials; never bundled or persisted by the plugin",
139
141
  "TYPESAFE_API_KEY resolved per explicit call; optional DSH-managed set/unset via /kioku-typesafe-key, inherited environment precedence, no worker or Kiokuko storage exposure; input visible while typing",
140
- "Optional separate Nimble bearer credential reference through DSH; TYPESAFE_API_KEY is prohibited for Nimble; credentials are never persisted in decision records"
142
+ "Optional separate Nimble bearer credential reference through DSH; TYPESAFE_API_KEY is prohibited for Nimble; credentials are never persisted in decision records",
143
+ "Shared dsh-auth credentials: human Web login/key replacement/logout; logout also affects dsh-cli"
141
144
  ],
142
145
  "failureBoundaries": [
143
146
  "Repository identity, run identity, lease, revision, and integrity mismatches fail closed",
@@ -154,7 +157,7 @@
154
157
  },
155
158
  "scripts": {
156
159
  "clean:dist": "node --input-type=module --eval \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true });\"",
157
- "build": "npm run clean:dist && tsc -p tsconfig.build.json && node scripts/compile-skill-prompts.mjs && node scripts/build-dsh-client.mjs && node scripts/build-history-codecs.mjs && node scripts/build-plugin-entry.mjs",
160
+ "build": "npm run clean:dist && tsc -p tsconfig.build.json && node scripts/build-model-transports.mjs && node scripts/compile-skill-prompts.mjs && node scripts/build-dsh-client.mjs && node scripts/build-history-codecs.mjs && node scripts/build-plugin-entry.mjs",
158
161
  "typecheck": "tsc -p tsconfig.json --noEmit",
159
162
  "test": "node scripts/run-tests.mjs tests/dsh",
160
163
  "test:harness": "node --import tsx scripts/run-harness-evaluation.mjs",
@@ -178,7 +181,6 @@
178
181
  "publint": "publint",
179
182
  "pack:check": "node scripts/pack-check.mjs",
180
183
  "prepare": "npm run build",
181
- "prepublishOnly": "npm run typecheck && npm test && npm run build && npm run publint && npm run pack:check",
182
184
  "test:agenticreplay:package": "npm run build && node scripts/verify-agenticreplay-consumer.mjs && node scripts/verify-agenticreplay-consumer.mjs --pnpm",
183
185
  "test:memory-review": "node scripts/run-tests.mjs tests/dsh/unit/memory-review tests/dsh/integration/memory-review",
184
186
  "test:evolution": "node scripts/run-tests.mjs tests/dsh/unit/evolution tests/dsh/integration/evolution",
@@ -237,16 +239,21 @@
237
239
  "test:ci:prepare": "npm run verify:prepare",
238
240
  "test:ci:embedding": "node scripts/run-local-embedding-smoke.mjs --offline",
239
241
  "test:ci:approval:web": "npm run build && node scripts/run-ci-native.mjs browser-approval",
240
- "test:ci:shortcuts:web": "npm run build && node scripts/run-ci-native.mjs browser-shortcuts"
242
+ "test:ci:coding:web": "npm run build && node scripts/run-ci-native.mjs browser-coding",
243
+ "test:ci:shortcuts:web": "npm run build && node scripts/run-ci-native.mjs browser-shortcuts",
244
+ "test:models:web": "npm run build && node scripts/verify-models-web.mjs",
245
+ "test:code-intelligence": "node scripts/run-code-intelligence.mjs",
246
+ "test:code-intelligence:packed": "node scripts/run-code-intelligence.mjs --packed",
247
+ "test:code-intelligence:benchmark": "node scripts/benchmark-code-intelligence.mjs"
241
248
  },
242
249
  "dependencies": {
243
250
  "@deepseek-ai/cosmokit": "1.8.5",
244
- "@deepseek-ai/schemastery": "3.18.4",
251
+ "@deepseek-ai/schemastery": "3.18.5-alpha.1",
252
+ "agenticreplay": ">=0.1.0 <1.0.0",
245
253
  "jsonc-parser": "3.3.1",
246
254
  "semver": "7.8.5",
247
255
  "yaml": "2.9.0",
248
- "zod": "4.5.4",
249
- "agenticreplay": ">=0.1.0 <1.0.0"
256
+ "zod": "4.5.4"
250
257
  },
251
258
  "overrides": {
252
259
  "adm-zip": "0.6.1",
@@ -254,7 +261,12 @@
254
261
  "global-agent": "4.1.3"
255
262
  },
256
263
  "peerDependencies": {
264
+ "@ai-sdk/provider": "4.0.21",
257
265
  "@deepseek-ai/cordis": "~4.0.5-alpha.1",
266
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
267
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
268
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
269
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.2",
258
270
  "@huggingface/hub": "2.16.1",
259
271
  "@huggingface/transformers": "4.2.0",
260
272
  "sqlite-vec": "0.1.9"
@@ -268,11 +280,34 @@
268
280
  },
269
281
  "sqlite-vec": {
270
282
  "optional": true
283
+ },
284
+ "@deepseek-ai/dsh-llm": {
285
+ "optional": true
286
+ },
287
+ "@deepseek-ai/dsh-llm-pi-ai": {
288
+ "optional": true
289
+ },
290
+ "@deepseek-ai/dsh-agent": {
291
+ "optional": true
292
+ },
293
+ "@deepseek-ai/dsh-attachment": {
294
+ "optional": true
295
+ },
296
+ "@ai-sdk/provider": {
297
+ "optional": true
271
298
  }
272
299
  },
273
300
  "devDependencies": {
301
+ "@ai-sdk/anthropic": "4.0.71",
302
+ "@ai-sdk/google": "4.0.87",
303
+ "@ai-sdk/openai": "4.0.83",
304
+ "@ai-sdk/openai-compatible": "3.0.62",
305
+ "@ai-sdk/provider": "4.0.21",
274
306
  "@deepseek-ai/cordis": "4.0.5-alpha.1",
307
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.2",
308
+ "@deepseek-ai/dsh-attachment": "0.2.1-alpha.2",
275
309
  "@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
310
+ "@deepseek-ai/dsh-llm-pi-ai": "0.2.1-alpha.2",
276
311
  "@deepseek-ai/dsh-session-format": "0.2.1-alpha.2",
277
312
  "@deepseek-ai/dsh-session-format-v0-to-v1": "0.2.1-alpha.2",
278
313
  "@deepseek-ai/dsh-session-format-v1-to-v2": "0.2.1-alpha.2",
@@ -18,6 +18,12 @@ description: バグ修正・機能追加・挙動に関わる設定や配布物
18
18
 
19
19
  ## 2. 部品ではなく、つながった利用経路を見る
20
20
 
21
+ DSH の実装タスクでは、初回の変更前に `coding_workflow status` を読み、`propose` で Goal・依存関係付きの全項目・各項目の観測可能な条件・別の最終 Goal 条件を原子的に登録する。先に必要な読取調査を行ってよい。元依頼の権限と対象を広げない。Enno では既存 ideal・plan を提出し、その共通表示を使う。別の Goal を提案しない。
22
+
23
+ ホストが Goal・項目・条件を示し、そのタスクで Lisp を使うか人間に確認する。未回答・閉じる・切断は pending。モデルは回答を代行せず、選択前に変更・プロセス・Lisp を起動しない。`next` は再表示と依存達成済みの項目の確認に使う。no では通常ツールで同じ条件を進め、Lisp を勧め直さない。yes の起動失敗はブロッカーとして扱う。
24
+
25
+ 選択後は各項目を自律的に進める。実行前に `task_completion bind` でチェックを対応付け、owned tools または Lisp の実子プロセスから host receipt を得る。全項目が達成済みになった後、最新成果物で通常の利用入口を確かめる最終 Goal チェックを実行する。状態と未達理由は `coding_workflow status` で確認し、自己申告で完了にしない。
26
+
21
27
  変更に関連する通常の操作を、入口から観測可能な結果までたどる。該当する場合は、配布・インストール → 読み込まれる指示/設定 → 公開ツールや UI → 実処理 → ユーザーの成果物までを対象にする。
22
28
 
23
29
  - 各部品の成功を、連結した経路の成功に置き換えない。生産側が実際に出す値を、消費側がそのまま受け取れるか確かめる。
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: kiokuko-lisp
3
- description: Compose reusable Common Lisp task tools in protected disposable workers or use the legacy persistent session.
3
+ description: Compose reusable Common Lisp task tools alongside owned development tools, in disposable or persistent workers.
4
4
  ---
5
5
 
6
6
  <!-- KIOKUKO MANAGED STANDARD SKILL: kiokuko-lisp -->
@@ -10,22 +10,23 @@ description: Compose reusable Common Lisp task tools in protected disposable wor
10
10
 
11
11
  ## Admission and tools
12
12
 
13
- Persistent mode: coding choice or `/kioku-lisp enable`. Task mode: separate session
14
- via `/kioku-lisp enable-task`, fresh protected workers per definition/call. Missing
15
- runtime or failed protection blocks admission.
16
- Never spoof host-bound session/agent/directory/generation. Native read/glob/grep/skill retain
17
- DSH permissions; ordinary bash/mutation/delegation stay blocked. Lisp/FFI/programs:
18
- runtime files, declared read-only copies, scratch only; no private host files, project
19
- writes, database, network or host sockets. Helpers cannot expand permissions. Use
20
- proposals/audited brokers, never escape protection.
13
+ Coding: coding_workflow defines Goal/items/checks before the task Lisp choice. Pending blocks effects; next reopens. Resume saved choice; new task/scope asks again. No uses ordinary tools. Verify items, then the user entry with fresh host results.
14
+
15
+
16
+
17
+ Persistent mode: coding choice or /kioku-lisp enable. Task mode uses /kioku-lisp enable-task with fresh workers per definition/call. Lisp and ordinary tools coexist. Coding-task startup failure blocks until recovery or explicit route change; legacy ordinary tools remain available. Never spoof host-bound session/agent/directory/generation.
18
+
19
+ Use kioku_read, kioku_write, kioku_edit, kioku_remove, kioku_exec and kioku_result for observed development. PATH commands, bash/zsh, builds/tests, coding-needed external investigation and project edits need no routine confirmation. Source/data deletion and existing durable user database mutation need a concrete review; generated/temp/disposable artifacts and routine Kioku saving are authorized. Declare destructiveTargets when executing commands with destructive intent. The host does not attempt to classify every side effect of arbitrary code.
20
+
21
+ Lisp uses the normal user environment and child processes. Prefer kioku.tools:call-tool with the owned tools or kioku.process broker APIs to obtain host receipts. Direct Lisp/FFI effects are not independently observed and cannot establish successful verification. Bind task_completion conditions/source paths before executing checks, including subdirectory checks. Collect asynchronous final receipts with kioku_result. A model/Lisp passed field is never process evidence. Plan, goal, cancellation and execution ownership remain authoritative. During Plan use read/search/status; explicit human implementation instructions or Plan approval exit at the next accepted boundary.
21
22
 
22
23
  Schemas define arguments; never guess. `lisp_describe` without a symbol gives the
23
24
  API/verifier map, even during recovery. Persistent `lisp_eval`: declared inputs;
24
25
  `lisp_describe`: functions; `lisp_inspect`: paged evidence; `lisp_status`: state;
25
26
  `lisp_cancel`: stop; `lisp_reset`: healthy, confirmed-stopped worker only, no recovery bypass.
26
- Task `lisp_define`: protected example-checked lambda; `lisp_call`: inline input/inputRef;
27
+ Task `lisp_define`: compiled, schema/example-checked lambda; `lisp_call`: inline input/inputRef;
27
28
  `lisp_observe`: workspace capture without bodies; `lisp_stage`: freeze against observed
28
- baseRef; `lisp_verify`: private-scratch check; `lisp_apply`: host approval/frozen-target
29
+ baseRef; `lisp_verify`: private-scratch check; `lisp_apply`: frozen-target
29
30
  recheck; `lisp_compare`: no execution. Status/inspection read refs/receipts. Unknown
30
31
  test status or generated `passed` fields never prove host verification.
31
32
 
@@ -40,13 +41,15 @@ remain owner-bound until expiry. Never replay effects.
40
41
 
41
42
  Common Lisp/CL-PPCRE/CL-CSV/YASON via `kioku.tools`, `kioku.data`,
42
43
  `kioku.files`, `kioku.process`, `kioku.objects`, `kioku.environment`, `kioku.ci`,
43
- `kioku.decisions`, `kioku.typesafe`; no Quicklisp/network downloads. First enable
44
+ `kioku.decisions`, `kioku.typesafe`, `kioku.code`; no Quicklisp/network downloads. First enable
44
45
  compiles; later starts reuse verified code, not session state. Compile/cache failure
45
46
  blocks startup: report `/kioku-lisp recover`; never modify compiled files or replay effects.
46
47
  Task mode: bounded JSON schemas, exact dependency toolRefs, no heap/worker refs
47
48
  between calls. Disposable `lisp_eval`; workspace inputs use `lisp_observe`, never
48
49
  legacy inputs/proposals. Expired refs never read current files; persistent mode owns shared heap.
49
50
 
51
+ Persistent `kioku.code`: negotiate V1 with capabilities; use with-snapshot; check status/freshness. Handles expire per evaluation. Missing V1 returns unavailable, with no tool/parser fallback. Aggregate before returning. Fixed DTOs and budgets: docs/lisp.md.
52
+
50
53
  Persistent: define/test/use cohesive `defun` tools in one `lisp_eval`, reuse on new
51
54
  inputs. Batch known work/compact evidence; split at decisions/approvals/limits. Never
52
55
  preprogram guesses or eval data. Definitions last one generation; `lisp_describe`
@@ -57,19 +60,15 @@ identity/size/digest and read-only copies; other absolute paths fail. Limits: 64
57
60
  256 MiB/generation. `kioku.files:input`: read; `kioku.files:scratch`: write/unzip. Reimport
58
61
  applied files for comparison; export only when authorized. `kioku.files:propose-write`:
59
62
  relative paths, successful evaluation, durable recording.
60
- Deletion/replacement: profile policy on frozen targets/diffs. Duplicate targets fail;
63
+ Development mode: ordinary replacement is authorized; deletion of source/data requires concrete confirmation. Protected compatibility mode retains its frozen-target profile policy. Duplicate targets fail;
61
64
  unchanged writes do nothing. Refusal/skip/UI failure/cancellation never authorizes.
62
65
  Trust APPLIED/UNCHANGED/NOT_APPLIED/UNKNOWN receipts; partial failure stops later writes.
63
- Never retry unknown effects. Refuse protected paths/databases/links, recursive deletion
64
- and database mutation. Independent backups never auto-prune. RUNNING lasts until
66
+ Never retry unknown effects. Use owned tools for ordinary project files and confirmed durable DB changes; protected compatibility mode refuses its protected paths/databases/links and recursive deletion. Independent backups never auto-prune. RUNNING lasts until
65
67
  receipts save; restart repairs finalization without reapplying effects.
66
68
 
67
69
  ## Programs, verification and packages
68
70
 
69
- `kioku.process:run`/`start-job`: program/args/timeout/scratch-relative directory, no
70
- links/traversal; job-status/cancel-job manage bounded credential-free jobs. macOS:
71
- no fork, use Lisp/direct brokers, not shell/npm/multiprocessing. Node (22.8+):
72
- `--test --experimental-test-isolation=none` avoids children. Linux: Bubblewrap PID namespaces.
71
+ `kioku.process:run`/`start-job` use project-relative or absolute directories in development mode, normal PATH/environment and child processes. Use job-status/cancel-job and inspect final receipts. Explicit protected mode retains scratch-only directories, sandboxed environment and its OS child/network restrictions; never escape protection.
73
72
 
74
73
  `kioku.ci:list-runs :limit 10`/`failed-log`: bound-repo host gh/auth, no Lisp credentials.
75
74
  `verify`: only `:typecheck`, `:lisp`, `:test`, `:build`, `:package`, `:vendor`, never shell
@@ -82,23 +81,8 @@ ok=true is not process success: check result-code/verifier state/code. Report ob
82
81
  results; partial reads cannot prove byte equality. Separate scratch/applied-file
83
82
  checks; validate custom checkers on known cases.
84
83
 
85
- `kioku.packages`: separately approved public npm host broker, never arbitrary URLs,
86
- registry credentials or shell args; workers remain network-denied:
87
- - `metadata "sharp"`: latest metadata, or one exact canonical `:version`; verify advisory ranges.
88
- - `audit versions`: hash table of at most ten names/exact versions sent to npm bulk
89
- advisories. Empty results cover only those versions, not the whole project.
90
- - `update-lockfiles versions`: capture root manifest and existing npm/pnpm locks,
91
- add explicit security overrides; installed managers generate locks in private
92
- OS-protected scratch. `:directory`: workspace-relative root. Refuse Local/Git deps
93
- and multi-project workspaces; exclude scripts/hooks/original npm config/inherited
94
- credentials. Separate sandbox allows networking/children, unchanged worker protection.
95
- Updates: persistent eval, one call, no unrelated proposals; ordinary review/backups/
96
- journal. Recheck captures before generation returns and before application. Generation
97
- approval never authorizes writes. SUCCEEDED/generatedOnly means generation; only host
98
- `changes` receipts establish APPLIED/UNCHANGED. Refusal/failure/cancellation: no proposals;
99
- exact replay sends nothing. HTTP: 30 seconds/256 KiB; each fixed package-manager command:
100
- 90 seconds/256 KiB output. No retries/runtime downloads/dependency installation/
101
- profile changes/auto-reload. New host APIs need plugin build/reload, never just worker reset.
84
+ `kioku.packages` remains a bounded public npm broker: metadata (latest/exact version), audit (at most ten exact names/versions), update-lockfiles (persistent eval, one call, root npm/pnpm manifests/locks and security overrides). No arbitrary URLs, credentials, shell arguments, Local/Git dependencies or multi-project workspaces. Managers generate frozen proposals in separate network scratch; scripts/hooks and inherited config/credentials are excluded. Recheck captured inputs before returning and applying. Generation
85
+ approval never authorizes writes; only host changes receipts establish APPLIED/UNCHANGED. SUCCEEDED/generatedOnly is generation. Failure/refusal/cancellation returns no proposals; exact replay sends nothing. HTTP: 30s/256KiB; manager: 90s/256KiB. No retries, runtime downloads, installs, profile changes or reloads. New host APIs require plugin build/reload, not worker reset.
102
86
 
103
87
  ## Evidence, recovery and adapters
104
88
 
@@ -149,7 +133,7 @@ DSH guards/registry, refuses others/recursive eval. Bounded stdout/stderr. See l
149
133
 
150
134
  <!-- kiokuko:runtime prototype-driven-planning -->
151
135
  For Lisp coding, plans or reviews, settle testable doubts with current evidence or authorized target-runtime probes. Choose controls and counterexamples first; record commands, failures, observations and refs in one reasoned plan. Stop when evidence suffices or budgets expire; ask only for needed intent or authority.
152
- ask_user_question/exit_plan_mode keep Lisp guards.
136
+ ask_user_question/exit_plan_mode preserve ownership, cancellation and the selected execution mode.
153
137
 
154
138
  <!-- /kiokuko:runtime -->
155
139
 
@@ -157,7 +141,7 @@ ask_user_question/exit_plan_mode keep Lisp guards.
157
141
  ## Project-shared functions
158
142
 
159
143
  Project-shared functions work in both Lisp modes without a mode switch after the
160
- coding choice. They execute in separate protected workers, preserving the persistent
144
+ coding choice. They execute in separate workers under the selected execution mode, preserving the persistent
161
145
  worker's APIs and heap. `lisp_hot_contract` applies the profile approval policy to
162
146
  schemas and 1–32 finite input/expected cases. Only the host grants approval. `lisp_hot_install` validates against that immutable contract and replaces
163
147
  the active version only at the expected revision. Dependency code is snapshotted.
@@ -176,7 +160,7 @@ Native tool schemas remain authoritative for exact arguments.
176
160
  - `lisp_define`: `{operationId, name, description, source, inputSchema,
177
161
  outputSchema, dependencies?: [{binding,toolRef}], examples?: [{input,expected}],
178
162
  firstInput?}`. Source is one Lisp lambda. The host saves an immutable toolRef
179
- only after protected compilation and declared examples pass.
163
+ only after compilation and declared examples pass.
180
164
  - `lisp_call`: `{operationId, toolRef, input}` or `{operationId, toolRef, inputRef}`.
181
165
  Select bounded `fields` with JSON pointers when the full body is unnecessary;
182
166
  pass its resultRef to later calls without sending that body through the model.
@@ -189,14 +173,13 @@ Native tool schemas remain authoritative for exact arguments.
189
173
  captured bytes in private scratch and runs an approved host verifier. Observe
190
174
  all required files, including `package.json`; missing dependencies/scripts
191
175
  fail or return NOT_APPLIED. `testStatus:unknown` is not a passing test.
192
- - `lisp_apply`: `{operationId, candidateRef, verificationRef?}` requires host
193
- approval, rechecks the read set and frozen targets, and accepts only a successful
176
+ - `lisp_apply`: `{operationId, candidateRef, verificationRef?}` uses owned execution in development mode and concrete approval for destructive changes; it rechecks the read set and frozen targets, and accepts only a successful
194
177
  verification receipt for the same candidate. Without one, it reports `not-run`.
195
178
  - `lisp_compare`: `{operationId, leftRef, rightRef}` compares saved bases and
196
179
  operation/content hashes without executing either candidate.
197
180
 
198
181
  The task worker recompiles saved source for each call. Global variables and
199
- process RPC cannot carry state between calls. Saved resultRefs remain owner-bound
182
+ process RPC cannot carry heap state between calls. Development mode can invoke owned host tools; protected compatibility task workers deny host RPC. Saved resultRefs remain owner-bound
200
183
  for up to 30 days across worker/host restart; expired refs do not read live files.
201
184
  `lisp_status` lists recent refs and unresolved attempts; `lisp_inspect` reads
202
185
  receipts without replay. Persistent `lisp_inspect` accepts a current-generation
@@ -352,32 +335,35 @@ shortlist order for selection; source and test for diagnosis. Define `obj` first
352
335
  <!-- /kiokuko:documentation -->
353
336
 
354
337
  <!-- kiokuko:documentation approval-help -->
355
- ## Profile-wide Lisp approval policy
356
-
357
- `lisp.approvalMode` defaults to `ask`; auto-approval is never inferred from an
358
- unknown request or from selecting Lisp. Ordinary questions keep normal execution
359
- without a Lisp choice or an approval selector in the chat composer. Once a task
360
- is identified as coding implementation or debugging, the existing coding choice
361
- can offer protected Lisp or normal execution; coding plans do not require Lisp.
362
- Auto-approval is an explicit opt-in through General settings,
363
- `/kioku-lisp approval auto`, or “Auto-approve all Lisp actions for this profile and
364
- continue” in a Lisp approval dialog. Use `/kioku-lisp approval ask` to return to
365
- manual consent. Explicit configuration and saved profile settings persist across
366
- chats and restarts and override the default; changing the default does not revoke
367
- a previously saved choice.
368
- All Lisp permission categories are covered, including file restoration, host
369
- verification, public npm package operations, and shared-function changes.
370
-
371
- Follow the current host-reported mode. In auto mode execute authorized work
372
- without asking whether to submit, resubmit, run tests, or apply changes. Ask only
373
- for missing intent that materially changes the work. In ask mode submit the
374
- operation directly to the host approval dialog without an extra conversational
375
- permission question. Earlier references to human approval describe ask mode.
376
- Explicit refusal, cancellation, stale inputs and unknown outcomes still stop
377
- execution; changing mode does not replay completed or refused operations.
378
- Identity checks, protected paths, backups and journal recovery remain enforced.
338
+ ## Development approval policy
339
+
340
+ Project edits, verification, helper compilation/registration and ordinary Kioku storage are authorized. Source/data deletion and durable user DB mutations need a concrete review, regardless of the legacy lisp.approvalMode ask/auto value. Old profile settings still load. Do not request conversational permission before a required host review. Refusal, cancellation, stale targets and uncertain outcomes remain authoritative; never replay effects.
379
341
 
380
342
  <!-- /kiokuko:documentation -->
381
343
  <!-- kiokuko:runtime approval-policy -->
382
- Follow the live host approval mode. Profile auto-approve covers every Lisp permission: execute authorized actions without permission or resubmission questions. Ask only for materially missing intent. Ask mode uses host dialogs without an extra conversational permission request. Refusal, cancellation, stale inputs and unknown outcomes still stop work; never replay effects because mode changed.
344
+ Routine development and helper registration are authorized. Concrete destructive review remains required. Lisp failure does not block ordinary tools. Report execution, verification and saving separately; retry saving without replaying effects.
383
345
  <!-- /kiokuko:runtime -->
346
+
347
+
348
+ <!-- kiokuko:documentation code-intelligence -->
349
+ ## Read-only code intelligence
350
+
351
+ Persistent evaluations may use `kioku.code` when the calling agent has a V1
352
+ provider. Call `capabilities` first; absence/old version returns `unavailable`.
353
+ There is no generic LSP/tool/parser fallback. Task workers cannot use host RPC.
354
+ Use `with-snapshot` around `open`/`outline`/`enclosing`/fixed `query`/`span`/read-only
355
+ `semantic`; it releases accepted snapshots with `unwind-protect`. Check `status`
356
+ before `data`: preserve partial, unsupported, unavailable, stale, cancelled,
357
+ timeout and limit-exceeded results. Unready diagnostics are not clean diagnostics.
358
+ Queries are only `declarations`, `calls`, `imports`; semantic kinds are definition,
359
+ references, implementation, hover, diagnostics, completion. Never request writes,
360
+ rename, commands, arbitrary query text, or arbitrary RPC.
361
+ Aggregate/filter in Lisp and return counts plus chosen spans and outcome metadata.
362
+ Do not return an entire large corpus just because the worker can hold it. Positions
363
+ are zero-based UTF-16; ranges half-open; snapshots are disk-only. Reopen after a
364
+ file/checkout change. Handles expire at evaluation end and saved results are not
365
+ live authority. Keep 100 calls, 16 MiB input, 64 KiB responses, 30 seconds per code
366
+ batch; per response 32 KiB, document 2 MiB, captures 200, outline 100, span 8000.
367
+ Release stays available after limits. Check `lisp_describe` for exact arguments.
368
+
369
+ <!-- /kiokuko:documentation -->
@@ -8,39 +8,18 @@ description: Kiokuko's entry router for non-trivial DSH work. Read it before any
8
8
  <!-- kiokuko:runtime contract -->
9
9
  # SOUL router
10
10
 
11
- ## Authority
11
+ Read first. Host owns intake/session/capabilities/routing/delegation. No model task_prepare/task_answer; their absence is normal. Require ready/exhausted, permissive nextAction; invent no profile.
12
12
 
13
- Read first. Host owns intake/session/capability binding/routing/delegation. Host-only `task_prepare`/`task_answer`: never call/emulate/stop for absence. Require `ready`/`exhausted` intake and permissive `nextAction`; invent no profile fields.
14
-
15
- User instructions outrank Skill preferences, never host safety/authorization/identity/revision/lease/state/integrity checks. Resolve routine choices from authorization/evidence; ask about unclear intent/effects. Optional intake/enrichment failures degrade guidance, not native work.
16
-
17
- Complete authorized work with focused evidence; report blockers. Recheck only changed conditions. Never guess budgets or auto-retry/continue.
18
-
19
- ## Shared credo
13
+ User instructions outrank Skill preferences. Preserve identity/revisions/leases/integrity and Plan/goal/cancellation/ownership. Optional enrichment never vetoes ordinary work. Resolve routine choices from authorization/evidence; clarify unclear intent/destruction. Complete work, report blockers, recheck changes; no invented budgets/effect replay.
20
14
 
21
15
  **本当に、それを全部計算・保存・検索する必要があるのか?**
16
+ Preserve required results; remove needless computation/storage/search, narrow the rest, then optimize. Exhaustive work needs evidence. Never silently approximate/delete data or waive required validation, recovery or audit. No extra approval/artifact.
22
17
 
23
- Before design, preserve the required result, remove needless computation/storage/search, narrow the rest, then optimize.
24
-
25
- Require evidence for exhaustive work; never silently approximate/delete data/waive required validation/recovery/audit/host checks. No extra approval/artifact.
26
-
27
- ## Capabilities and routes
28
-
29
- Use request/directive-matched Skills for conversation/research/writing/organization/memory/coding. Never impose code contracts/execution choices/runtime startup on unrelated work.
30
-
31
- Read selected Skill indexes, then risk-selected references. Resources grant no execution authority; the host owns configuration/permissions.
32
-
33
- Modules own roles/tools/execution/recovery. Preserve host exclusions/identity/lease/outcome. Missing required modules/unresolved requests stay blocked: never switch paths/replay effects to bypass them. Optional gaps cannot block unrelated work.
34
-
35
- Normal execution: current model/memory/Skills/native permissions; no orchestration contract/extra approval. Never invent run/role/revision/WorkUnit/state transitions or bypass routing by provider changes/agents. Respect directives/scope.
36
-
37
- ## Availability and trust
38
-
39
- Unavailable Skills: use current evidence unless host safety/authorization/identity/integrity blocks. Never substitute similar/namespaced/fetched/reference-only Skills for required bundled Skills or auto-install/execute external Skills. Never claim unread Skills/unrun checks; availability is not use.
18
+ Match Skills to the request/directive; non-code needs no coding startup. Read selected indexes and risk-selected references. Preserve roles/exclusions/recovery and host outcomes/model/effort; optional gaps never block work.
40
19
 
41
- Before diagnostics, confirm supported file types via status/capabilities. Unsupported Markdown/documents: read, verify structure/requirements/whitespace. Unavailable diagnostics: unverified, not clean.
20
+ Normal execution uses current model/memory/Skills and kioku_read/write/edit/remove/exec/result. Project work, PATH/bash/zsh, Lisp, builds/tests and routine Kioku saving need no routine approval; review source/data deletion and durable user DB changes concretely. Lisp failure needs recovery or explicit route change. Bind source/test/config checks before execution and collect final background receipts. Receipts prove observations, not generalized lessons; check recalled candidates against current sources. Report work/verification/saving separately; retry saving only. Human implementation instructions or Plan approval request exit at the next accepted boundary; a plan-only answer does not exit.
42
21
 
43
- After a successful edit/write, re-read before next mutation; serialize edits. If stale, re-read and reconcile; never force overwrite/disable freshness checks. Never repeat unsupported diagnostics unchanged.
22
+ Unavailable Skills: use current evidence unless required host identity/authority/integrity prevents it. Never substitute required Skills or auto-install/execute fetched Skills. Never claim unread Skills or unrun checks. Before diagnostics check supported file types; For Markdown and unsupported documents, read and check structure, requirements and whitespace manually. Unavailable diagnostics remain unverified, not clean. After a successful edit or write, re-read before the next mutation. Serialize changes; on stale content re-read and reconcile, never force overwrite or repeat unsupported diagnostics unchanged.
44
23
 
45
- Select `kiokuko-{investigate,architecture,review,benchmark,verification,skill-authoring,technical-writing}` as needed; use `coding-ideal-routine-skill` for code changes. Inherit host model/effort.
24
+ Select kiokuko-{investigate,architecture,review,benchmark,verification,skill-authoring,technical-writing} as needed. Coding: coding-ideal-routine-skill owns coding_workflow and fresh Goal evidence.
46
25
  <!-- /kiokuko:runtime -->
@@ -16,12 +16,9 @@ defaults never override intent, permissions or host integrity checks.
16
16
 
17
17
  **本当に、それを全部計算・保存・検索する必要があるのか?**
18
18
 
19
- Complete the required outcome with only the computation, persistence and search
20
- it needs. Before implementation, eliminate unnecessary work and narrow the rest;
21
- justify exhaustive processing or retention with a concrete requirement. Search
22
- for missing evidence and stop when it is sufficient. Verify that omitted work
23
- does not change required behavior or weaken integration, recovery or checks.
24
- Completion means meeting the user's requirements, not processing everything.
19
+ Before implementation, remove unnecessary computation, persistence and search;
20
+ justify exhaustive work by a required outcome. Stop when evidence suffices.
21
+ Verify that omissions preserve behavior, integration, recovery and checks.
25
22
 
26
23
  ## Read economically
27
24
 
@@ -41,6 +38,8 @@ failures or lost context. Token budgets use host usage, not bytes or capacity.
41
38
 
42
39
  ## Completion contract
43
40
 
41
+ Coding: coding_workflow binds Goal/items/checks before the task Lisp choice. Verify items, then the user entry with fresh host evidence. Pending checks prevent completion; resume exact task/operation IDs.
42
+
44
43
  Bind behavior, required method, preserved contracts and evidence before editing.
45
44
  No unapproved proxy: raster for required geometry, hardcoded output, mocks or
46
45
  disconnected helpers. Tests are evidence, not specification; expectation changes