kiokuko-dsh 0.2.43 → 0.2.45

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 (136) hide show
  1. package/PERMISSIONS.md +3 -3
  2. package/README.ja.md +10 -4
  3. package/README.ko.md +10 -3
  4. package/README.md +10 -4
  5. package/README.zh-CN.md +10 -3
  6. package/dist/build-info.json +7 -0
  7. package/dist/client.cjs +53 -1
  8. package/dist/dsh/agenticreplay-hooks.js +1 -1
  9. package/dist/dsh/agenticreplay-hooks.js.map +1 -1
  10. package/dist/dsh/agenticreplay-recorder.d.ts +5 -2
  11. package/dist/dsh/agenticreplay-recorder.d.ts.map +1 -1
  12. package/dist/dsh/agenticreplay-recorder.js +19 -9
  13. package/dist/dsh/agenticreplay-recorder.js.map +1 -1
  14. package/dist/dsh/core/host.d.ts.map +1 -1
  15. package/dist/dsh/core/host.js +2 -1
  16. package/dist/dsh/core/host.js.map +1 -1
  17. package/dist/dsh/core/tasks.js +1 -1
  18. package/dist/dsh/core/tasks.js.map +1 -1
  19. package/dist/dsh/decisions/akinator-answers.d.ts +3 -3
  20. package/dist/dsh/decisions/akinator-answers.d.ts.map +1 -1
  21. package/dist/dsh/decisions/akinator-answers.js +5 -5
  22. package/dist/dsh/decisions/akinator-answers.js.map +1 -1
  23. package/dist/dsh/decisions/diagnostics.js +2 -2
  24. package/dist/dsh/decisions/diagnostics.js.map +1 -1
  25. package/dist/dsh/decisions/request-intent.d.ts +3 -0
  26. package/dist/dsh/decisions/request-intent.d.ts.map +1 -1
  27. package/dist/dsh/decisions/request-intent.js +11 -2
  28. package/dist/dsh/decisions/request-intent.js.map +1 -1
  29. package/dist/dsh/existing-task-intake.js +1 -1
  30. package/dist/dsh/existing-task-intake.js.map +1 -1
  31. package/dist/dsh/failure-diagnostic.d.ts +3 -0
  32. package/dist/dsh/failure-diagnostic.d.ts.map +1 -0
  33. package/dist/dsh/failure-diagnostic.js +30 -0
  34. package/dist/dsh/failure-diagnostic.js.map +1 -0
  35. package/dist/dsh/harness/factory.d.ts.map +1 -1
  36. package/dist/dsh/harness/factory.js +4 -2
  37. package/dist/dsh/harness/factory.js.map +1 -1
  38. package/dist/dsh/host-adapter/admission.d.ts.map +1 -1
  39. package/dist/dsh/host-adapter/admission.js +17 -1
  40. package/dist/dsh/host-adapter/admission.js.map +1 -1
  41. package/dist/dsh/host-adapter/routing.d.ts +3 -2
  42. package/dist/dsh/host-adapter/routing.d.ts.map +1 -1
  43. package/dist/dsh/host-adapter/routing.js +18 -5
  44. package/dist/dsh/host-adapter/routing.js.map +1 -1
  45. package/dist/dsh/host-adapter/session-observation.d.ts.map +1 -1
  46. package/dist/dsh/host-adapter/session-observation.js +4 -1
  47. package/dist/dsh/host-adapter/session-observation.js.map +1 -1
  48. package/dist/dsh/host-adapter/turn-state.d.ts +1 -0
  49. package/dist/dsh/host-adapter/turn-state.d.ts.map +1 -1
  50. package/dist/dsh/host-adapter/turn-state.js.map +1 -1
  51. package/dist/dsh/host-adapter.d.ts.map +1 -1
  52. package/dist/dsh/host-adapter.js +5 -27
  53. package/dist/dsh/host-adapter.js.map +1 -1
  54. package/dist/dsh/index.d.ts.map +1 -1
  55. package/dist/dsh/index.js +3 -1
  56. package/dist/dsh/index.js.map +1 -1
  57. package/dist/dsh/intake-gate.js +1 -1
  58. package/dist/dsh/intake-gate.js.map +1 -1
  59. package/dist/dsh/lisp/proposal-batch.d.ts +1 -1
  60. package/dist/dsh/lisp/proposal-batch.d.ts.map +1 -1
  61. package/dist/dsh/lisp/proposal-batch.js +5 -46
  62. package/dist/dsh/lisp/proposal-batch.js.map +1 -1
  63. package/dist/dsh/lisp/surface.d.ts.map +1 -1
  64. package/dist/dsh/lisp/surface.js +4 -5
  65. package/dist/dsh/lisp/surface.js.map +1 -1
  66. package/dist/dsh/models/contracts.d.ts +51 -0
  67. package/dist/dsh/models/contracts.d.ts.map +1 -1
  68. package/dist/dsh/models/contracts.js +47 -1
  69. package/dist/dsh/models/contracts.js.map +1 -1
  70. package/dist/dsh/models/profiles.d.ts +12 -1
  71. package/dist/dsh/models/profiles.d.ts.map +1 -1
  72. package/dist/dsh/models/profiles.js +38 -1
  73. package/dist/dsh/models/profiles.js.map +1 -1
  74. package/dist/dsh/models/service.d.ts +9 -0
  75. package/dist/dsh/models/service.d.ts.map +1 -1
  76. package/dist/dsh/models/service.js +99 -9
  77. package/dist/dsh/models/service.js.map +1 -1
  78. package/dist/dsh/models/vendor/infron-listing.d.ts +2 -2
  79. package/dist/dsh/models/vendor/infron-listing.d.ts.map +1 -1
  80. package/dist/dsh/models/vendor/infron-listing.js +10 -4
  81. package/dist/dsh/models/vendor/infron-listing.js.map +1 -1
  82. package/dist/dsh/models/vendor/opencode-adapter.d.ts.map +1 -1
  83. package/dist/dsh/models/vendor/opencode-adapter.js +24 -1
  84. package/dist/dsh/models/vendor/opencode-adapter.js.map +1 -1
  85. package/dist/dsh/on-demand-intake.d.ts +2 -1
  86. package/dist/dsh/on-demand-intake.d.ts.map +1 -1
  87. package/dist/dsh/on-demand-intake.js +17 -8
  88. package/dist/dsh/on-demand-intake.js.map +1 -1
  89. package/dist/dsh/owned-execution.d.ts +0 -1
  90. package/dist/dsh/owned-execution.d.ts.map +1 -1
  91. package/dist/dsh/owned-execution.js +28 -49
  92. package/dist/dsh/owned-execution.js.map +1 -1
  93. package/dist/dsh/plugin-evidence.d.ts +9 -0
  94. package/dist/dsh/plugin-evidence.d.ts.map +1 -0
  95. package/dist/dsh/plugin-evidence.js +33 -0
  96. package/dist/dsh/plugin-evidence.js.map +1 -0
  97. package/dist/dsh/session-history-compatibility.d.ts.map +1 -1
  98. package/dist/dsh/session-history-compatibility.js +7 -4
  99. package/dist/dsh/session-history-compatibility.js.map +1 -1
  100. package/dist/dsh/session-recovery.d.ts +5 -0
  101. package/dist/dsh/session-recovery.d.ts.map +1 -1
  102. package/dist/dsh/session-recovery.js +26 -1
  103. package/dist/dsh/session-recovery.js.map +1 -1
  104. package/dist/dsh/setup.d.ts +1 -1
  105. package/dist/dsh/setup.d.ts.map +1 -1
  106. package/dist/dsh/setup.js +1 -1
  107. package/dist/dsh/skill-prompts.json +1 -1
  108. package/dist/dsh/task-completion-guidance.js +1 -1
  109. package/dist/dsh/task-completion-guidance.js.map +1 -1
  110. package/dist/dsh/task-completion-host.d.ts.map +1 -1
  111. package/dist/dsh/task-completion-host.js +17 -6
  112. package/dist/dsh/task-completion-host.js.map +1 -1
  113. package/dist/dsh/task-startup.js +1 -1
  114. package/dist/dsh/task-startup.js.map +1 -1
  115. package/dist/dsh/task-state-host.js +1 -1
  116. package/dist/dsh/task-state-host.js.map +1 -1
  117. package/dist/dsh/tool-exposure-diagnostics.d.ts +29 -0
  118. package/dist/dsh/tool-exposure-diagnostics.d.ts.map +1 -0
  119. package/dist/dsh/tool-exposure-diagnostics.js +33 -0
  120. package/dist/dsh/tool-exposure-diagnostics.js.map +1 -0
  121. package/dist/locale/en.json +1 -1
  122. package/dist/locale/ja.json +1 -1
  123. package/dist/locale/ko.json +1 -1
  124. package/dist/locale/zh-CN.json +1 -1
  125. package/dist/models-client.cjs +53 -1
  126. package/dist/models-client.d.ts.map +1 -1
  127. package/dist/models-client.js +69 -1
  128. package/dist/models-client.js.map +1 -1
  129. package/docs/agenticreplay-log-investigation-2026-11-04.ja.md +234 -0
  130. package/docs/kiokuko-models.md +10 -0
  131. package/docs/lisp.md +7 -7
  132. package/docs/owned-execution.md +4 -3
  133. package/docs/patches/dsh-latest-local-update.patch +42 -0
  134. package/package.json +3 -3
  135. package/skills/kiokuko-lisp/SKILL.md +6 -6
  136. package/skills/kiokuko-soul/SKILL.md +4 -4
@@ -16,7 +16,7 @@ Coding: coding_workflow defines Goal/items/checks before the task Lisp choice. P
16
16
 
17
17
  Persistent: coding choice or /kioku-lisp enable. /kioku-lisp enable-task optionally selects disposable scratch evaluations. lisp_define, lisp_call and lisp_observe need no task-mode switch or Working task. Compose functions by exact dependency refs; reuse only your own protected worker, otherwise compute in private protected scratch with no repository mount or host RPC. Schemas never prove arbitrary Lisp safe. A child inherits only capabilities visible in its native scope, not the parent's task lease, heap, or result refs. Shared publication and real effects retain their approval and authority checks. ON selects Lisp computation/orchestration; direct Bash/zsh/PowerShell is rejected, even reads. Run Git/gh/builds/tests through kioku.process:run / start-job. Read/search/Skill and owned file tools remain available. Failure requires recovery or explicit /kioku-lisp disable; no silent shell fallback. Never spoof host-bound session/agent/directory/generation.
18
18
 
19
- Owned kioku_read/write/edit/remove/exec/result retain development receipts. Ordinary commands, investigation, builds/tests, edits and disposable artifacts need no routine confirmation. Source/data deletion and durable user DB mutation require concrete review; declare destructiveTargets. Arbitrary code effects are not exhaustively classified. Organize memory only after completion and permission; save only the exact approved content.
19
+ Owned kioku_read/write/edit/remove/exec/result retain development receipts. Ordinary commands, investigation, builds/tests, edits and disposable artifacts need no routine confirmation. Declare destructiveTargets for known command effects. Arbitrary code effects are not exhaustively classified. Organize memory only after completion and permission; save only the exact approved content.
20
20
 
21
21
  Foreground kioku.process:run retains native Bash sandbox/approval/Stop without a memory task/Goal. Protected coding requires prototype/result inspection. Admitted workflows, owned tools and async jobs keep task/protocol authority. Use kioku.tools:call-tool/broker receipts. All workers are OS-isolated; direct Lisp/FFI cannot access workspace files or inherited credentials. Generated passed fields prove no verification. Bind task_completion conditions/source paths before checks; collect async receipts with kioku_result. Cancellation/ownership remain authoritative. Plan permits read/search/status until human approval exits at the next boundary.
22
22
 
@@ -60,10 +60,10 @@ identity/size/digest and read-only copies; other absolute paths fail. Limits: 64
60
60
  256 MiB/generation. `kioku.files:input`: read; `kioku.files:scratch`: write/unzip. Reimport
61
61
  applied files for comparison; export only when authorized. `kioku.files:propose-write`:
62
62
  relative paths, successful evaluation, durable recording.
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;
63
+ Changes within the working project directory, including deletion, replacement and project DB updates, need no extra user permission. Outside-project changes require concrete confirmation. Protected compatibility mode retains frozen targets and its protected-path restrictions. Duplicate targets fail;
64
64
  unchanged writes do nothing. Refusal/skip/UI failure/cancellation never authorizes.
65
65
  Trust APPLIED/UNCHANGED/NOT_APPLIED/UNKNOWN receipts; partial failure stops later writes.
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
66
+ Never retry unknown effects. Use owned tools for working-project files and project DB updates; protected compatibility mode refuses its protected paths/databases/links and recursive deletion. Independent backups never auto-prune. RUNNING lasts until
67
67
  receipts save; restart repairs finalization without reapplying effects.
68
68
 
69
69
  ## Programs, verification and packages
@@ -185,7 +185,7 @@ Native tool schemas remain authoritative for exact arguments.
185
185
  captured bytes in private scratch and runs an approved host verifier. Observe
186
186
  all required files, including `package.json`; missing dependencies/scripts
187
187
  fail or return NOT_APPLIED. `testStatus:unknown` is not a passing test.
188
- - `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
188
+ - `lisp_apply`: `{operationId, candidateRef, verificationRef?}` uses owned execution in development mode without extra approval for local changes; it rechecks the read set and frozen targets, and accepts only a successful
189
189
  verification receipt for the same candidate. Without one, it reports `not-run`.
190
190
  - `lisp_compare`: `{operationId, leftRef, rightRef}` compares saved bases and
191
191
  operation/content hashes without executing either candidate.
@@ -349,11 +349,11 @@ shortlist order for selection; source and test for diagnosis. Define `obj` first
349
349
  <!-- kiokuko:documentation approval-help -->
350
350
  ## Development approval policy
351
351
 
352
- 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.
352
+ Project edits, verification, helper compilation/registration and ordinary Kioku storage are authorized. Changes within the working project directory, including deletion, replacement and project DB updates, need no extra user permission. Outside-project changes require concrete confirmation. Legacy lisp.approvalMode ask/auto does not add confirmation for local files. 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.
353
353
 
354
354
  <!-- /kiokuko:documentation -->
355
355
  <!-- kiokuko:runtime approval-policy -->
356
- Routine development and helper registration are authorized. Concrete destructive review remains required. Lisp failure retains the selected shell route. Report execution, verification and saving separately; retry saving without replaying effects.
356
+ Routine development and helper registration are authorized. Lisp failure retains the selected shell route. Report execution, verification and saving separately; retry saving without replaying effects.
357
357
  <!-- /kiokuko:runtime -->
358
358
 
359
359
 
@@ -8,16 +8,16 @@ 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
- Read first. Host owns intake/session/capabilities/routing/delegation; absent task_prepare/task_answer is normal. Require ready/exhausted and permissive nextAction; invent no profile.
11
+ Read first. Host owns intake, identity, capabilities and routing; require ready/exhausted and permissive nextAction. Never invent a profile.
12
12
 
13
- User instructions outrank Skills. Preserve identity/revisions/leases/integrity and Plan/goal/cancellation/ownership. Optional enrichment never vetoes work. Use authorization/evidence for routine choices; clarify unclear intent/destruction. Finish, report blockers, recheck changes; no invented budgets.
13
+ User instructions outrank Skills. Preserve identity, revisions, leases, Plan, cancellation and ownership. Optional enrichment never vetoes work. Clarify unclear intent or destructive effects; finish, verify and report blockers.
14
14
 
15
15
  **本当に、それを全部計算・保存・検索する必要があるのか?**
16
16
  Preserve results: eliminate needless computation/storage/search, narrow scope, then optimize. Justify exhaustive work. Never silently approximate/delete data or waive validation, recovery or audit. No extra approvals/artifacts.
17
17
 
18
- Choose request-relevant Skills; non-code needs no coding startup. Read indexes and risk-relevant references. Preserve roles/exclusions/recovery and host outcomes/model/effort.
18
+ Read relevant Skill indexes and risk-selected references; non-code needs no coding startup. Preserve roles, exclusions and recovery.
19
19
 
20
- Use current model/memory/Skills and kioku_read/write/edit/remove/exec/result. Project work, PATH/bash/zsh, Lisp and builds/tests are authorized; review source/data deletion and durable user DB changes concretely. Recover Lisp or explicitly change route. Pre-bind source/test/config checks; collect final background receipts. Receipts establish observations only; check recalled candidates against current sources. Report work, verification and memory saving separately. After completion, get permission to organize memory; show the exact proposal and save only its user-approved revision. Comments need new previews; decline saves nothing. Memory failure never blocks work. Reconcile uncertain approved saves with the original key; never replay work or invent save identities. Human implementation requests or Plan approval request exit at the next accepted boundary; plan-only answers stay in Plan.
20
+ Use current model/memory/Skills and kioku_read/write/edit/remove/exec/result. Changes within the working project directory, including deletion, replacement and project DB updates, need no extra user permission. Outside-project changes require concrete confirmation. PATH/bash/zsh, Lisp and builds/tests remain authorized; native permissions and integrity checks still apply. Recover Lisp or explicitly change route. Pre-bind source/test/config checks; collect final background receipts. Receipts establish observations only; check recalled candidates against current sources. Report work, verification and memory saving separately. After completion, get permission to organize memory; show the exact proposal and save only its user-approved revision. Comments need new previews; decline saves nothing. Memory failure never blocks work. Reconcile uncertain approved saves with the original key; never replay work or invent save identities. Human implementation requests or Plan approval request exit at the next accepted boundary; plan-only answers stay in Plan.
21
21
 
22
22
  Without Skills, use current evidence within host identity/authority/integrity; never substitute required Skills or auto-install/execute fetched ones. Claim no unread Skills or unrun checks. Check supported file types before diagnostics; manually check Markdown/unsupported documents for structure, requirements and whitespace. Unavailable diagnostics stay unverified. After each successful edit/write, re-read before the next mutation; reconcile stale content and never force overwrites. Never repeat unsupported diagnostics unchanged.
23
23