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.
- package/PERMISSIONS.md +3 -3
- package/README.ja.md +10 -4
- package/README.ko.md +10 -3
- package/README.md +10 -4
- package/README.zh-CN.md +10 -3
- package/dist/build-info.json +7 -0
- package/dist/client.cjs +53 -1
- package/dist/dsh/agenticreplay-hooks.js +1 -1
- package/dist/dsh/agenticreplay-hooks.js.map +1 -1
- package/dist/dsh/agenticreplay-recorder.d.ts +5 -2
- package/dist/dsh/agenticreplay-recorder.d.ts.map +1 -1
- package/dist/dsh/agenticreplay-recorder.js +19 -9
- package/dist/dsh/agenticreplay-recorder.js.map +1 -1
- package/dist/dsh/core/host.d.ts.map +1 -1
- package/dist/dsh/core/host.js +2 -1
- package/dist/dsh/core/host.js.map +1 -1
- package/dist/dsh/core/tasks.js +1 -1
- package/dist/dsh/core/tasks.js.map +1 -1
- package/dist/dsh/decisions/akinator-answers.d.ts +3 -3
- package/dist/dsh/decisions/akinator-answers.d.ts.map +1 -1
- package/dist/dsh/decisions/akinator-answers.js +5 -5
- package/dist/dsh/decisions/akinator-answers.js.map +1 -1
- package/dist/dsh/decisions/diagnostics.js +2 -2
- package/dist/dsh/decisions/diagnostics.js.map +1 -1
- package/dist/dsh/decisions/request-intent.d.ts +3 -0
- package/dist/dsh/decisions/request-intent.d.ts.map +1 -1
- package/dist/dsh/decisions/request-intent.js +11 -2
- package/dist/dsh/decisions/request-intent.js.map +1 -1
- package/dist/dsh/existing-task-intake.js +1 -1
- package/dist/dsh/existing-task-intake.js.map +1 -1
- package/dist/dsh/failure-diagnostic.d.ts +3 -0
- package/dist/dsh/failure-diagnostic.d.ts.map +1 -0
- package/dist/dsh/failure-diagnostic.js +30 -0
- package/dist/dsh/failure-diagnostic.js.map +1 -0
- package/dist/dsh/harness/factory.d.ts.map +1 -1
- package/dist/dsh/harness/factory.js +4 -2
- package/dist/dsh/harness/factory.js.map +1 -1
- package/dist/dsh/host-adapter/admission.d.ts.map +1 -1
- package/dist/dsh/host-adapter/admission.js +17 -1
- package/dist/dsh/host-adapter/admission.js.map +1 -1
- package/dist/dsh/host-adapter/routing.d.ts +3 -2
- package/dist/dsh/host-adapter/routing.d.ts.map +1 -1
- package/dist/dsh/host-adapter/routing.js +18 -5
- package/dist/dsh/host-adapter/routing.js.map +1 -1
- package/dist/dsh/host-adapter/session-observation.d.ts.map +1 -1
- package/dist/dsh/host-adapter/session-observation.js +4 -1
- package/dist/dsh/host-adapter/session-observation.js.map +1 -1
- package/dist/dsh/host-adapter/turn-state.d.ts +1 -0
- package/dist/dsh/host-adapter/turn-state.d.ts.map +1 -1
- package/dist/dsh/host-adapter/turn-state.js.map +1 -1
- package/dist/dsh/host-adapter.d.ts.map +1 -1
- package/dist/dsh/host-adapter.js +5 -27
- package/dist/dsh/host-adapter.js.map +1 -1
- package/dist/dsh/index.d.ts.map +1 -1
- package/dist/dsh/index.js +3 -1
- package/dist/dsh/index.js.map +1 -1
- package/dist/dsh/intake-gate.js +1 -1
- package/dist/dsh/intake-gate.js.map +1 -1
- package/dist/dsh/lisp/proposal-batch.d.ts +1 -1
- package/dist/dsh/lisp/proposal-batch.d.ts.map +1 -1
- package/dist/dsh/lisp/proposal-batch.js +5 -46
- package/dist/dsh/lisp/proposal-batch.js.map +1 -1
- package/dist/dsh/lisp/surface.d.ts.map +1 -1
- package/dist/dsh/lisp/surface.js +4 -5
- package/dist/dsh/lisp/surface.js.map +1 -1
- package/dist/dsh/models/contracts.d.ts +51 -0
- package/dist/dsh/models/contracts.d.ts.map +1 -1
- package/dist/dsh/models/contracts.js +47 -1
- package/dist/dsh/models/contracts.js.map +1 -1
- package/dist/dsh/models/profiles.d.ts +12 -1
- package/dist/dsh/models/profiles.d.ts.map +1 -1
- package/dist/dsh/models/profiles.js +38 -1
- package/dist/dsh/models/profiles.js.map +1 -1
- package/dist/dsh/models/service.d.ts +9 -0
- package/dist/dsh/models/service.d.ts.map +1 -1
- package/dist/dsh/models/service.js +99 -9
- package/dist/dsh/models/service.js.map +1 -1
- package/dist/dsh/models/vendor/infron-listing.d.ts +2 -2
- package/dist/dsh/models/vendor/infron-listing.d.ts.map +1 -1
- package/dist/dsh/models/vendor/infron-listing.js +10 -4
- package/dist/dsh/models/vendor/infron-listing.js.map +1 -1
- package/dist/dsh/models/vendor/opencode-adapter.d.ts.map +1 -1
- package/dist/dsh/models/vendor/opencode-adapter.js +24 -1
- package/dist/dsh/models/vendor/opencode-adapter.js.map +1 -1
- package/dist/dsh/on-demand-intake.d.ts +2 -1
- package/dist/dsh/on-demand-intake.d.ts.map +1 -1
- package/dist/dsh/on-demand-intake.js +17 -8
- package/dist/dsh/on-demand-intake.js.map +1 -1
- package/dist/dsh/owned-execution.d.ts +0 -1
- package/dist/dsh/owned-execution.d.ts.map +1 -1
- package/dist/dsh/owned-execution.js +28 -49
- package/dist/dsh/owned-execution.js.map +1 -1
- package/dist/dsh/plugin-evidence.d.ts +9 -0
- package/dist/dsh/plugin-evidence.d.ts.map +1 -0
- package/dist/dsh/plugin-evidence.js +33 -0
- package/dist/dsh/plugin-evidence.js.map +1 -0
- package/dist/dsh/session-history-compatibility.d.ts.map +1 -1
- package/dist/dsh/session-history-compatibility.js +7 -4
- package/dist/dsh/session-history-compatibility.js.map +1 -1
- package/dist/dsh/session-recovery.d.ts +5 -0
- package/dist/dsh/session-recovery.d.ts.map +1 -1
- package/dist/dsh/session-recovery.js +26 -1
- package/dist/dsh/session-recovery.js.map +1 -1
- package/dist/dsh/setup.d.ts +1 -1
- package/dist/dsh/setup.d.ts.map +1 -1
- package/dist/dsh/setup.js +1 -1
- package/dist/dsh/skill-prompts.json +1 -1
- package/dist/dsh/task-completion-guidance.js +1 -1
- package/dist/dsh/task-completion-guidance.js.map +1 -1
- package/dist/dsh/task-completion-host.d.ts.map +1 -1
- package/dist/dsh/task-completion-host.js +17 -6
- package/dist/dsh/task-completion-host.js.map +1 -1
- package/dist/dsh/task-startup.js +1 -1
- package/dist/dsh/task-startup.js.map +1 -1
- package/dist/dsh/task-state-host.js +1 -1
- package/dist/dsh/task-state-host.js.map +1 -1
- package/dist/dsh/tool-exposure-diagnostics.d.ts +29 -0
- package/dist/dsh/tool-exposure-diagnostics.d.ts.map +1 -0
- package/dist/dsh/tool-exposure-diagnostics.js +33 -0
- package/dist/dsh/tool-exposure-diagnostics.js.map +1 -0
- package/dist/locale/en.json +1 -1
- package/dist/locale/ja.json +1 -1
- package/dist/locale/ko.json +1 -1
- package/dist/locale/zh-CN.json +1 -1
- package/dist/models-client.cjs +53 -1
- package/dist/models-client.d.ts.map +1 -1
- package/dist/models-client.js +69 -1
- package/dist/models-client.js.map +1 -1
- package/docs/agenticreplay-log-investigation-2026-11-04.ja.md +234 -0
- package/docs/kiokuko-models.md +10 -0
- package/docs/lisp.md +7 -7
- package/docs/owned-execution.md +4 -3
- package/docs/patches/dsh-latest-local-update.patch +42 -0
- package/package.json +3 -3
- package/skills/kiokuko-lisp/SKILL.md +6 -6
- 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.
|
|
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
|
-
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
-
|
|
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.
|
|
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
|
|