kiokuko-dsh 0.1.69 → 0.1.70

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 (87) hide show
  1. package/README.ja.md +35 -1
  2. package/README.md +36 -7
  3. package/dist/akinator/memory-probe-types.d.ts +6 -6
  4. package/dist/context/continuity-view.d.ts +1 -1
  5. package/dist/deep-thinker/core/contracts.d.ts +34 -34
  6. package/dist/deep-thinker/memory-finalizer.d.ts +12 -12
  7. package/dist/deep-thinker/prompts.d.ts +3 -3
  8. package/dist/deep-thinker/quality-prompts.d.ts +3 -3
  9. package/dist/deep-thinker/report.d.ts +8 -8
  10. package/dist/deep-thinker/store.d.ts +3 -3
  11. package/dist/dsh/config.d.ts +17 -10
  12. package/dist/dsh/config.d.ts.map +1 -1
  13. package/dist/dsh/config.js +2 -0
  14. package/dist/dsh/config.js.map +1 -1
  15. package/dist/dsh/core/host.d.ts +10 -3
  16. package/dist/dsh/core/host.d.ts.map +1 -1
  17. package/dist/dsh/core/host.js +3 -1
  18. package/dist/dsh/core/host.js.map +1 -1
  19. package/dist/dsh/core/index.d.ts +20 -6
  20. package/dist/dsh/core/index.d.ts.map +1 -1
  21. package/dist/dsh/decisions/config.d.ts +1 -1
  22. package/dist/dsh/decisions/contracts.d.ts +3 -3
  23. package/dist/dsh/decisions/service.d.ts +4 -0
  24. package/dist/dsh/decisions/service.d.ts.map +1 -1
  25. package/dist/dsh/decisions/service.js +27 -3
  26. package/dist/dsh/decisions/service.js.map +1 -1
  27. package/dist/dsh/enno-delegation.d.ts.map +1 -1
  28. package/dist/dsh/enno-delegation.js +5 -1
  29. package/dist/dsh/enno-delegation.js.map +1 -1
  30. package/dist/dsh/execution-selection.d.ts +6 -6
  31. package/dist/dsh/finalization-request.d.ts.map +1 -1
  32. package/dist/dsh/finalization-request.js +1 -0
  33. package/dist/dsh/finalization-request.js.map +1 -1
  34. package/dist/dsh/host-adapter.d.ts +2 -0
  35. package/dist/dsh/host-adapter.d.ts.map +1 -1
  36. package/dist/dsh/host-adapter.js +2 -1
  37. package/dist/dsh/host-adapter.js.map +1 -1
  38. package/dist/dsh/index.js +2 -2
  39. package/dist/dsh/index.js.map +1 -1
  40. package/dist/dsh/lisp/surface.js +1 -1
  41. package/dist/dsh/lisp/surface.js.map +1 -1
  42. package/dist/dsh/memory-application.js +1 -1
  43. package/dist/dsh/memory-application.js.map +1 -1
  44. package/dist/dsh/model-configuration.d.ts +6 -6
  45. package/dist/dsh/modules/enno.d.ts +4 -4
  46. package/dist/dsh/observation-pack/policy.d.ts +28 -0
  47. package/dist/dsh/observation-pack/policy.d.ts.map +1 -0
  48. package/dist/dsh/observation-pack/policy.js +81 -0
  49. package/dist/dsh/observation-pack/policy.js.map +1 -0
  50. package/dist/dsh/observation-pack/service.d.ts +45 -0
  51. package/dist/dsh/observation-pack/service.d.ts.map +1 -0
  52. package/dist/dsh/observation-pack/service.js +151 -0
  53. package/dist/dsh/observation-pack/service.js.map +1 -0
  54. package/dist/dsh/semantic-compaction/contracts.d.ts +4 -2
  55. package/dist/dsh/semantic-compaction/contracts.d.ts.map +1 -1
  56. package/dist/dsh/semantic-compaction/contracts.js +2 -1
  57. package/dist/dsh/semantic-compaction/contracts.js.map +1 -1
  58. package/dist/dsh/semantic-compaction/coordinator.d.ts +8 -1
  59. package/dist/dsh/semantic-compaction/coordinator.d.ts.map +1 -1
  60. package/dist/dsh/semantic-compaction/coordinator.js +117 -15
  61. package/dist/dsh/semantic-compaction/coordinator.js.map +1 -1
  62. package/dist/dsh/semantic-compaction/policy.d.ts +3 -2
  63. package/dist/dsh/semantic-compaction/policy.d.ts.map +1 -1
  64. package/dist/dsh/semantic-compaction/policy.js +6 -6
  65. package/dist/dsh/semantic-compaction/policy.js.map +1 -1
  66. package/dist/dsh/semantic-compaction/progress.d.ts +24 -0
  67. package/dist/dsh/semantic-compaction/progress.d.ts.map +1 -0
  68. package/dist/dsh/semantic-compaction/progress.js +46 -0
  69. package/dist/dsh/semantic-compaction/progress.js.map +1 -0
  70. package/dist/dsh/session-memory-finalizer.d.ts +1 -0
  71. package/dist/dsh/session-memory-finalizer.d.ts.map +1 -1
  72. package/dist/dsh/session-memory-finalizer.js +11 -1
  73. package/dist/dsh/session-memory-finalizer.js.map +1 -1
  74. package/dist/enno-oduno/schemas.d.ts +73 -73
  75. package/dist/enno-oduno/validation-errors.d.ts +2 -2
  76. package/dist/ledger/checkpoint-contract.d.ts +4 -4
  77. package/dist/memory/application.d.ts +4 -4
  78. package/dist/memory/checkpoint-contract.d.ts +12 -12
  79. package/dist/memory/evolution/contracts.d.ts +1 -1
  80. package/dist/memory/reuse.d.ts +1 -1
  81. package/dist/memory/review/contracts.d.ts +1 -1
  82. package/dist/memory/review/evidence.js +1 -1
  83. package/dist/memory/review/evidence.js.map +1 -1
  84. package/dist/model-tools/contracts.d.ts +31 -31
  85. package/docs/semantic-compaction.md +57 -23
  86. package/docs/typed-decisions.md +1 -1
  87. package/package.json +1 -1
package/README.ja.md CHANGED
@@ -102,6 +102,40 @@ Lisp を選ぶと、Lisp 用ツールで通常実行します。役小角を使
102
102
  削除・既存ファイルの置換はユーザーの確認後に実行します。
103
103
  [設定、API、停止・復旧方法](docs/lisp.md)を参照してください。
104
104
 
105
+ ## TypeSafe (Jev)
106
+
107
+ Jev を自動の型付き判定に使えます。`~/.dsh/profiles/web/cordis.patch.yml` の既存の `kiokuko-dsh` 行に追加し、他の `config` 値は保持してください。
108
+
109
+ ```yaml
110
+ - id: kiokuko-dsh
111
+ config:
112
+ typedDecisions:
113
+ mode: auto
114
+ provider: typesafe
115
+ typesafe:
116
+ model: jev-latest
117
+ ```
118
+
119
+ APIキーは DSH の `~/.dsh/.credentials.yaml`(`DSH_HOME` を設定している場合は `$DSH_HOME/.credentials.yaml`)に書くか、`/kioku-typesafe-key YOUR_KEY` で保存します。既存の項目は残してください。
120
+
121
+ ```yaml
122
+ version: 1
123
+ refs:
124
+ TYPESAFE_API_KEY: YOUR_KEY
125
+ ```
126
+
127
+ YAMLファイルを手動で作る場合は `chmod 600 ~/.dsh/.credentials.yaml` を実行してください(`DSH_HOME` を設定している場合はそのパスを使用)。
128
+
129
+ プラグイン設定を変更したら DSH を再起動し、DSH のコマンド入力欄で確認します。
130
+
131
+ ```text
132
+ /kioku-typesafe-key status
133
+ /kioku-decisions probe
134
+ /kioku-decisions status
135
+ ```
136
+
137
+ `probe` は検査用のAPIリクエストを送ります。`status` は送信しません。保存したキーは `/kioku-typesafe-key clear` で削除できます。`/kioku-typesafe-key YOUR_KEY` の入力中はキーが画面に表示されます。詳しくは[型付き判定](docs/typed-decisions.md)と[Lispからの明示的な呼び出し](docs/typesafe.md)を参照してください。
138
+
105
139
  ## 過去の記憶を意味で選別
106
140
 
107
141
  TypeSafe または Nimble の利用確認が成功すると、既存検索の候補を今回の依頼に使えるか判定します。埋め込みは必須ではありません。`memoryReuse.mode: off` で停止できます。[設定・確認コマンド・評価方法](docs/memory-reuse.md)を参照してください。
@@ -110,4 +144,4 @@ TypeSafe または Nimble の利用確認が成功すると、既存検索の候
110
144
 
111
145
  ### 過去のツール出力の短縮
112
146
 
113
- [Semantic compaction](docs/semantic-compaction.md) は、通常・Enno・Lisp モードで、DSH の自動圧縮前に古いツール出力を選んで短縮します。既定値は `semanticCompaction: { mode: auto, budgetMs: 5000 }` です。利用可能と確認された型付き判定バックエンドと、対応するネイティブサービスが必要です。`/kioku-decisions status` で有効状態と直近の結果を確認できます。
147
+ ObservationPack(既定値 `observationPack: { mode: auto }`)は、大きな正常終了のツール結果をモデルへ2回提示した後、抜粋と `observation_read` で原文を取得できる参照に置き換えます。[Semantic compaction](docs/semantic-compaction.md) は、TODOの完了境界でも前倒し判定を行い、通常・Enno・Lisp モードで、DSH の自動圧縮前に古いツール出力を選んで短縮します。既定値は `semanticCompaction: { mode: auto, preemptive: true, budgetMs: 5000 }` です。利用可能と確認された型付き判定バックエンドと、対応するネイティブサービスが必要です。`/kioku-decisions status` で有効状態と直近の結果を確認できます。
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Kiokuko(記憶庫) DeepSeek Harness Plugin
3
2
  [日本語](README.ja.md) | [简体中文](README.zh-CN.md) | [한국어](README.ko.md)
4
3
 
@@ -104,7 +103,41 @@ if you want Enno. Free text is passed to the AI as a discussion or correction.
104
103
  Deletion and replacement of existing files require human confirmation.
105
104
  See [setup, APIs, limits and recovery](docs/lisp.md).
106
105
 
107
- [Provider-independent typed decisions](docs/typed-decisions.md) route Akinator, installed Skills, Zenki draft review and Lisp through configured TypeSafe or Nimble HTTP adapters.
106
+ ## TypeSafe (Jev)
107
+
108
+ Kiokuko can use Jev for automatic typed decisions. Add this to the existing `kiokuko-dsh` row in `~/.dsh/profiles/web/cordis.patch.yml`, keeping its other `config` values:
109
+
110
+ ```yaml
111
+ - id: kiokuko-dsh
112
+ config:
113
+ typedDecisions:
114
+ mode: auto
115
+ provider: typesafe
116
+ typesafe:
117
+ model: jev-latest
118
+ ```
119
+
120
+ Set the API key in DSH's `~/.dsh/.credentials.yaml` (`$DSH_HOME/.credentials.yaml` if set), or use `/kioku-typesafe-key YOUR_KEY`. Keep any existing entries:
121
+
122
+ ```yaml
123
+ version: 1
124
+ refs:
125
+ TYPESAFE_API_KEY: YOUR_KEY
126
+ ```
127
+
128
+ If creating the YAML file yourself, run `chmod 600 ~/.dsh/.credentials.yaml` (use `$DSH_HOME` if set).
129
+
130
+ Reload DSH after changing the plugin configuration. In the DSH command UI, check the key and test the connection:
131
+
132
+ ```text
133
+ /kioku-typesafe-key status
134
+ /kioku-decisions probe
135
+ /kioku-decisions status
136
+ ```
137
+
138
+ `probe` sends a synthetic API request; `status` does not. `/kioku-typesafe-key clear` removes the stored key. Key input is visible when using `/kioku-typesafe-key YOUR_KEY`. See [typed decisions](docs/typed-decisions.md) and the [explicit Lisp API](docs/typesafe.md) for more.
139
+
140
+ ## Semantic memory reuse
108
141
 
109
142
  [Semantic memory reuse](docs/memory-reuse.md) checks existing retrieval candidates
110
143
  against the current request after a synthetic provider probe succeeds. Embeddings
@@ -112,10 +145,6 @@ are optional; `memoryReuse.mode: off` disables this additional selection.
112
145
 
113
146
  [Memory application and verification](docs/memory-application.md) records dispositions and host-observed regression evidence. Check the current native session with `/kioku-memory-application status` or `/kioku-memory-application status --json`.
114
147
 
115
- The compatibility [TypeSafe API](docs/typesafe.md) use `/kioku-typesafe-key` for
116
- DSH-managed credentials and `kioku.typesafe:evaluate` for explicit semantic
117
- questions. Lisp consumes the answers; file-change approval remains required.
118
-
119
148
  ### Semantic compaction
120
149
 
121
- [Semantic compaction](docs/semantic-compaction.md) selectively shortens old tool results before native automatic compaction in normal, Enno and Lisp modes. It defaults to `semanticCompaction: { mode: auto, budgetMs: 5000 }` and requires a ready typed-decision backend and supported native services. Inspect activation and the last outcome with `/kioku-decisions status`.
150
+ ObservationPack (`observationPack: { mode: auto }`) preserves large successful native tool results for two model calls, then replaces them with excerpts and an `observation_read` handle. [Semantic compaction](docs/semantic-compaction.md) evaluates TODO completion boundaries and selectively shortens old tool results before native automatic compaction in normal, Enno and Lisp modes. It defaults to `semanticCompaction: { mode: auto, preemptive: true, budgetMs: 5000 }` and requires a ready typed-decision backend and supported native services. Inspect activation and the last outcome with `/kioku-decisions status`.
@@ -32,10 +32,10 @@ export declare const ProfileEvidenceSchema: z.ZodObject<{
32
32
  export type ProfileEvidenceRef = z.infer<typeof ProfileEvidenceSchema>;
33
33
  export declare const FieldResolutionSchema: z.ZodObject<{
34
34
  field: z.ZodEnum<{
35
+ target: "target";
36
+ taskType: "taskType";
35
37
  expected: "expected";
36
38
  constraints: "constraints";
37
- taskType: "taskType";
38
- target: "target";
39
39
  }>;
40
40
  decision: z.ZodEnum<{
41
41
  suggest: "suggest";
@@ -73,9 +73,9 @@ export declare const MemoryProbeResultSchema: z.ZodObject<{
73
73
  resolve: "resolve";
74
74
  }>;
75
75
  status: z.ZodEnum<{
76
- skipped: "skipped";
77
- unavailable: "unavailable";
78
76
  complete: "complete";
77
+ unavailable: "unavailable";
78
+ skipped: "skipped";
79
79
  incomplete: "incomplete";
80
80
  }>;
81
81
  coverage: z.ZodEnum<{
@@ -84,10 +84,10 @@ export declare const MemoryProbeResultSchema: z.ZodObject<{
84
84
  }>;
85
85
  resolutions: z.ZodArray<z.ZodObject<{
86
86
  field: z.ZodEnum<{
87
+ target: "target";
88
+ taskType: "taskType";
87
89
  expected: "expected";
88
90
  constraints: "constraints";
89
- taskType: "taskType";
90
- target: "target";
91
91
  }>;
92
92
  decision: z.ZodEnum<{
93
93
  suggest: "suggest";
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  export declare const ContinuityConfig: z.ZodObject<{
3
3
  mode: z.ZodDefault<z.ZodEnum<{
4
- off: "off";
5
4
  active: "active";
5
+ off: "off";
6
6
  shadow: "shadow";
7
7
  }>>;
8
8
  maxSupplementBytes: z.ZodDefault<z.ZodNumber>;
@@ -24,6 +24,7 @@ export type DeepBudget = z.infer<typeof DeepBudgetSchema>;
24
24
  export declare const DeepRouteSchema: z.ZodObject<{
25
25
  provider: z.ZodString;
26
26
  family: z.ZodEnum<{
27
+ other: "other";
27
28
  openai: "openai";
28
29
  deepseek: "deepseek";
29
30
  "opencode-go": "opencode-go";
@@ -31,12 +32,11 @@ export declare const DeepRouteSchema: z.ZodObject<{
31
32
  openrouter: "openrouter";
32
33
  orcarouter: "orcarouter";
33
34
  ollama: "ollama";
34
- other: "other";
35
35
  }>;
36
36
  connection: z.ZodEnum<{
37
+ local: "local";
37
38
  api: "api";
38
39
  codex: "codex";
39
- local: "local";
40
40
  }>;
41
41
  protocol: z.ZodEnum<{
42
42
  unknown: "unknown";
@@ -93,6 +93,7 @@ export declare const DeepConfigurationSchema: z.ZodObject<{
93
93
  routeBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
94
  provider: z.ZodString;
95
95
  family: z.ZodEnum<{
96
+ other: "other";
96
97
  openai: "openai";
97
98
  deepseek: "deepseek";
98
99
  "opencode-go": "opencode-go";
@@ -100,12 +101,11 @@ export declare const DeepConfigurationSchema: z.ZodObject<{
100
101
  openrouter: "openrouter";
101
102
  orcarouter: "orcarouter";
102
103
  ollama: "ollama";
103
- other: "other";
104
104
  }>;
105
105
  connection: z.ZodEnum<{
106
+ local: "local";
106
107
  api: "api";
107
108
  codex: "codex";
108
- local: "local";
109
109
  }>;
110
110
  protocol: z.ZodEnum<{
111
111
  unknown: "unknown";
@@ -348,10 +348,10 @@ export declare const QualityReviewSchema: z.ZodObject<{
348
348
  kind: z.ZodLiteral<"quality-review">;
349
349
  action: z.ZodEnum<{
350
350
  unresolved: "unresolved";
351
+ replan: "replan";
351
352
  select: "select";
352
353
  repair: "repair";
353
354
  synthesize: "synthesize";
354
- replan: "replan";
355
355
  }>;
356
356
  selectedCandidateId: z.ZodNullable<z.ZodString>;
357
357
  requirementIds: z.ZodArray<z.ZodString>;
@@ -365,8 +365,8 @@ export declare const QualityReviewSchema: z.ZodObject<{
365
365
  checkId: z.ZodString;
366
366
  verdict: z.ZodEnum<{
367
367
  unresolved: "unresolved";
368
- supported: "supported";
369
368
  contradicted: "contradicted";
369
+ supported: "supported";
370
370
  }>;
371
371
  reason: z.ZodString;
372
372
  evidence: z.ZodArray<z.ZodObject<{
@@ -378,8 +378,8 @@ export declare const QualityReviewSchema: z.ZodObject<{
378
378
  checkId: z.ZodString;
379
379
  kind: z.ZodEnum<{
380
380
  unknown: "unknown";
381
- agreement: "agreement";
382
381
  contradiction: "contradiction";
382
+ agreement: "agreement";
383
383
  complementary: "complementary";
384
384
  }>;
385
385
  reason: z.ZodString;
@@ -402,9 +402,9 @@ export declare const QualityReviewSchema: z.ZodObject<{
402
402
  }, z.core.$strict>>;
403
403
  }, z.core.$strict>;
404
404
  export declare const QualityPhaseSchema: z.ZodEnum<{
405
+ plan: "plan";
405
406
  repair: "repair";
406
407
  synthesize: "synthesize";
407
- plan: "plan";
408
408
  "plan-review": "plan-review";
409
409
  "draft-a": "draft-a";
410
410
  "draft-b": "draft-b";
@@ -414,9 +414,9 @@ export declare const QualityPhaseSchema: z.ZodEnum<{
414
414
  }>;
415
415
  export declare const QualityNodeSchema: z.ZodObject<{
416
416
  phase: z.ZodEnum<{
417
+ plan: "plan";
417
418
  repair: "repair";
418
419
  synthesize: "synthesize";
419
- plan: "plan";
420
420
  "plan-review": "plan-review";
421
421
  "draft-a": "draft-a";
422
422
  "draft-b": "draft-b";
@@ -501,10 +501,10 @@ export declare const QualityNodeSchema: z.ZodObject<{
501
501
  kind: z.ZodLiteral<"quality-review">;
502
502
  action: z.ZodEnum<{
503
503
  unresolved: "unresolved";
504
+ replan: "replan";
504
505
  select: "select";
505
506
  repair: "repair";
506
507
  synthesize: "synthesize";
507
- replan: "replan";
508
508
  }>;
509
509
  selectedCandidateId: z.ZodNullable<z.ZodString>;
510
510
  requirementIds: z.ZodArray<z.ZodString>;
@@ -518,8 +518,8 @@ export declare const QualityNodeSchema: z.ZodObject<{
518
518
  checkId: z.ZodString;
519
519
  verdict: z.ZodEnum<{
520
520
  unresolved: "unresolved";
521
- supported: "supported";
522
521
  contradicted: "contradicted";
522
+ supported: "supported";
523
523
  }>;
524
524
  reason: z.ZodString;
525
525
  evidence: z.ZodArray<z.ZodObject<{
@@ -531,8 +531,8 @@ export declare const QualityNodeSchema: z.ZodObject<{
531
531
  checkId: z.ZodString;
532
532
  kind: z.ZodEnum<{
533
533
  unknown: "unknown";
534
- agreement: "agreement";
535
534
  contradiction: "contradiction";
535
+ agreement: "agreement";
536
536
  complementary: "complementary";
537
537
  }>;
538
538
  reason: z.ZodString;
@@ -561,9 +561,9 @@ export type QualityReply = z.infer<typeof QualityPlanSchema> | z.infer<typeof Qu
561
561
  export declare const QualityJobSchema: z.ZodObject<{
562
562
  protocolVersion: z.ZodLiteral<2>;
563
563
  phase: z.ZodEnum<{
564
+ plan: "plan";
564
565
  repair: "repair";
565
566
  synthesize: "synthesize";
566
- plan: "plan";
567
567
  "plan-review": "plan-review";
568
568
  "draft-a": "draft-a";
569
569
  "draft-b": "draft-b";
@@ -594,8 +594,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
594
594
  replans: z.ZodNumber;
595
595
  status: z.ZodEnum<{
596
596
  superseded: "superseded";
597
- ready: "ready";
598
597
  unresolved: "unresolved";
598
+ ready: "ready";
599
599
  accepted: "accepted";
600
600
  planning: "planning";
601
601
  "verifying-plan": "verifying-plan";
@@ -635,9 +635,9 @@ export declare const GoalNodeSchema: z.ZodObject<{
635
635
  reason: z.ZodString;
636
636
  quality: z.ZodOptional<z.ZodObject<{
637
637
  phase: z.ZodEnum<{
638
+ plan: "plan";
638
639
  repair: "repair";
639
640
  synthesize: "synthesize";
640
- plan: "plan";
641
641
  "plan-review": "plan-review";
642
642
  "draft-a": "draft-a";
643
643
  "draft-b": "draft-b";
@@ -722,10 +722,10 @@ export declare const GoalNodeSchema: z.ZodObject<{
722
722
  kind: z.ZodLiteral<"quality-review">;
723
723
  action: z.ZodEnum<{
724
724
  unresolved: "unresolved";
725
+ replan: "replan";
725
726
  select: "select";
726
727
  repair: "repair";
727
728
  synthesize: "synthesize";
728
- replan: "replan";
729
729
  }>;
730
730
  selectedCandidateId: z.ZodNullable<z.ZodString>;
731
731
  requirementIds: z.ZodArray<z.ZodString>;
@@ -739,8 +739,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
739
739
  checkId: z.ZodString;
740
740
  verdict: z.ZodEnum<{
741
741
  unresolved: "unresolved";
742
- supported: "supported";
743
742
  contradicted: "contradicted";
743
+ supported: "supported";
744
744
  }>;
745
745
  reason: z.ZodString;
746
746
  evidence: z.ZodArray<z.ZodObject<{
@@ -752,8 +752,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
752
752
  checkId: z.ZodString;
753
753
  kind: z.ZodEnum<{
754
754
  unknown: "unknown";
755
- agreement: "agreement";
756
755
  contradiction: "contradiction";
756
+ agreement: "agreement";
757
757
  complementary: "complementary";
758
758
  }>;
759
759
  reason: z.ZodString;
@@ -808,10 +808,10 @@ export declare const GoalNodeSchema: z.ZodObject<{
808
808
  kind: z.ZodLiteral<"quality-review">;
809
809
  action: z.ZodEnum<{
810
810
  unresolved: "unresolved";
811
+ replan: "replan";
811
812
  select: "select";
812
813
  repair: "repair";
813
814
  synthesize: "synthesize";
814
- replan: "replan";
815
815
  }>;
816
816
  selectedCandidateId: z.ZodNullable<z.ZodString>;
817
817
  requirementIds: z.ZodArray<z.ZodString>;
@@ -825,8 +825,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
825
825
  checkId: z.ZodString;
826
826
  verdict: z.ZodEnum<{
827
827
  unresolved: "unresolved";
828
- supported: "supported";
829
828
  contradicted: "contradicted";
829
+ supported: "supported";
830
830
  }>;
831
831
  reason: z.ZodString;
832
832
  evidence: z.ZodArray<z.ZodObject<{
@@ -838,8 +838,8 @@ export declare const GoalNodeSchema: z.ZodObject<{
838
838
  checkId: z.ZodString;
839
839
  kind: z.ZodEnum<{
840
840
  unknown: "unknown";
841
- agreement: "agreement";
842
841
  contradiction: "contradiction";
842
+ agreement: "agreement";
843
843
  complementary: "complementary";
844
844
  }>;
845
845
  reason: z.ZodString;
@@ -877,13 +877,13 @@ export declare const DeepStateSchema: z.ZodObject<{
877
877
  ownerId: z.ZodNullable<z.ZodString>;
878
878
  leaseUntil: z.ZodNumber;
879
879
  phase: z.ZodEnum<{
880
- cancelled: "cancelled";
881
- ready: "ready";
882
880
  failed: "failed";
881
+ cancelled: "cancelled";
883
882
  blocked: "blocked";
884
883
  answered: "answered";
885
- running: "running";
884
+ ready: "ready";
886
885
  partial: "partial";
886
+ running: "running";
887
887
  paused: "paused";
888
888
  }>;
889
889
  task: z.ZodString;
@@ -938,6 +938,7 @@ export declare const DeepStateSchema: z.ZodObject<{
938
938
  routeBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
939
939
  provider: z.ZodString;
940
940
  family: z.ZodEnum<{
941
+ other: "other";
941
942
  openai: "openai";
942
943
  deepseek: "deepseek";
943
944
  "opencode-go": "opencode-go";
@@ -945,12 +946,11 @@ export declare const DeepStateSchema: z.ZodObject<{
945
946
  openrouter: "openrouter";
946
947
  orcarouter: "orcarouter";
947
948
  ollama: "ollama";
948
- other: "other";
949
949
  }>;
950
950
  connection: z.ZodEnum<{
951
+ local: "local";
951
952
  api: "api";
952
953
  codex: "codex";
953
- local: "local";
954
954
  }>;
955
955
  protocol: z.ZodEnum<{
956
956
  unknown: "unknown";
@@ -982,8 +982,8 @@ export declare const DeepStateSchema: z.ZodObject<{
982
982
  replans: z.ZodNumber;
983
983
  status: z.ZodEnum<{
984
984
  superseded: "superseded";
985
- ready: "ready";
986
985
  unresolved: "unresolved";
986
+ ready: "ready";
987
987
  accepted: "accepted";
988
988
  planning: "planning";
989
989
  "verifying-plan": "verifying-plan";
@@ -1023,9 +1023,9 @@ export declare const DeepStateSchema: z.ZodObject<{
1023
1023
  reason: z.ZodString;
1024
1024
  quality: z.ZodOptional<z.ZodObject<{
1025
1025
  phase: z.ZodEnum<{
1026
+ plan: "plan";
1026
1027
  repair: "repair";
1027
1028
  synthesize: "synthesize";
1028
- plan: "plan";
1029
1029
  "plan-review": "plan-review";
1030
1030
  "draft-a": "draft-a";
1031
1031
  "draft-b": "draft-b";
@@ -1110,10 +1110,10 @@ export declare const DeepStateSchema: z.ZodObject<{
1110
1110
  kind: z.ZodLiteral<"quality-review">;
1111
1111
  action: z.ZodEnum<{
1112
1112
  unresolved: "unresolved";
1113
+ replan: "replan";
1113
1114
  select: "select";
1114
1115
  repair: "repair";
1115
1116
  synthesize: "synthesize";
1116
- replan: "replan";
1117
1117
  }>;
1118
1118
  selectedCandidateId: z.ZodNullable<z.ZodString>;
1119
1119
  requirementIds: z.ZodArray<z.ZodString>;
@@ -1127,8 +1127,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1127
1127
  checkId: z.ZodString;
1128
1128
  verdict: z.ZodEnum<{
1129
1129
  unresolved: "unresolved";
1130
- supported: "supported";
1131
1130
  contradicted: "contradicted";
1131
+ supported: "supported";
1132
1132
  }>;
1133
1133
  reason: z.ZodString;
1134
1134
  evidence: z.ZodArray<z.ZodObject<{
@@ -1140,8 +1140,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1140
1140
  checkId: z.ZodString;
1141
1141
  kind: z.ZodEnum<{
1142
1142
  unknown: "unknown";
1143
- agreement: "agreement";
1144
1143
  contradiction: "contradiction";
1144
+ agreement: "agreement";
1145
1145
  complementary: "complementary";
1146
1146
  }>;
1147
1147
  reason: z.ZodString;
@@ -1196,10 +1196,10 @@ export declare const DeepStateSchema: z.ZodObject<{
1196
1196
  kind: z.ZodLiteral<"quality-review">;
1197
1197
  action: z.ZodEnum<{
1198
1198
  unresolved: "unresolved";
1199
+ replan: "replan";
1199
1200
  select: "select";
1200
1201
  repair: "repair";
1201
1202
  synthesize: "synthesize";
1202
- replan: "replan";
1203
1203
  }>;
1204
1204
  selectedCandidateId: z.ZodNullable<z.ZodString>;
1205
1205
  requirementIds: z.ZodArray<z.ZodString>;
@@ -1213,8 +1213,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1213
1213
  checkId: z.ZodString;
1214
1214
  verdict: z.ZodEnum<{
1215
1215
  unresolved: "unresolved";
1216
- supported: "supported";
1217
1216
  contradicted: "contradicted";
1217
+ supported: "supported";
1218
1218
  }>;
1219
1219
  reason: z.ZodString;
1220
1220
  evidence: z.ZodArray<z.ZodObject<{
@@ -1226,8 +1226,8 @@ export declare const DeepStateSchema: z.ZodObject<{
1226
1226
  checkId: z.ZodString;
1227
1227
  kind: z.ZodEnum<{
1228
1228
  unknown: "unknown";
1229
- agreement: "agreement";
1230
1229
  contradiction: "contradiction";
1230
+ agreement: "agreement";
1231
1231
  complementary: "complementary";
1232
1232
  }>;
1233
1233
  reason: z.ZodString;
@@ -53,6 +53,7 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
53
53
  routeBindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
54
54
  provider: z.ZodString;
55
55
  family: z.ZodEnum<{
56
+ other: "other";
56
57
  openai: "openai";
57
58
  deepseek: "deepseek";
58
59
  "opencode-go": "opencode-go";
@@ -60,12 +61,11 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
60
61
  openrouter: "openrouter";
61
62
  orcarouter: "orcarouter";
62
63
  ollama: "ollama";
63
- other: "other";
64
64
  }>;
65
65
  connection: z.ZodEnum<{
66
+ local: "local";
66
67
  api: "api";
67
68
  codex: "codex";
68
- local: "local";
69
69
  }>;
70
70
  protocol: z.ZodEnum<{
71
71
  unknown: "unknown";
@@ -87,8 +87,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
87
87
  nodeId: z.ZodString;
88
88
  status: z.ZodEnum<{
89
89
  superseded: "superseded";
90
- ready: "ready";
91
90
  unresolved: "unresolved";
91
+ ready: "ready";
92
92
  accepted: "accepted";
93
93
  planning: "planning";
94
94
  "verifying-plan": "verifying-plan";
@@ -112,10 +112,10 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
112
112
  kind: z.ZodLiteral<"quality-review">;
113
113
  action: z.ZodEnum<{
114
114
  unresolved: "unresolved";
115
+ replan: "replan";
115
116
  select: "select";
116
117
  repair: "repair";
117
118
  synthesize: "synthesize";
118
- replan: "replan";
119
119
  }>;
120
120
  selectedCandidateId: z.ZodNullable<z.ZodString>;
121
121
  requirementIds: z.ZodArray<z.ZodString>;
@@ -129,8 +129,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
129
129
  checkId: z.ZodString;
130
130
  verdict: z.ZodEnum<{
131
131
  unresolved: "unresolved";
132
- supported: "supported";
133
132
  contradicted: "contradicted";
133
+ supported: "supported";
134
134
  }>;
135
135
  reason: z.ZodString;
136
136
  evidence: z.ZodArray<z.ZodObject<{
@@ -142,8 +142,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
142
142
  checkId: z.ZodString;
143
143
  kind: z.ZodEnum<{
144
144
  unknown: "unknown";
145
- agreement: "agreement";
146
145
  contradiction: "contradiction";
146
+ agreement: "agreement";
147
147
  complementary: "complementary";
148
148
  }>;
149
149
  reason: z.ZodString;
@@ -224,10 +224,10 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
224
224
  kind: z.ZodLiteral<"quality-review">;
225
225
  action: z.ZodEnum<{
226
226
  unresolved: "unresolved";
227
+ replan: "replan";
227
228
  select: "select";
228
229
  repair: "repair";
229
230
  synthesize: "synthesize";
230
- replan: "replan";
231
231
  }>;
232
232
  selectedCandidateId: z.ZodNullable<z.ZodString>;
233
233
  requirementIds: z.ZodArray<z.ZodString>;
@@ -241,8 +241,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
241
241
  checkId: z.ZodString;
242
242
  verdict: z.ZodEnum<{
243
243
  unresolved: "unresolved";
244
- supported: "supported";
245
244
  contradicted: "contradicted";
245
+ supported: "supported";
246
246
  }>;
247
247
  reason: z.ZodString;
248
248
  evidence: z.ZodArray<z.ZodObject<{
@@ -254,8 +254,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
254
254
  checkId: z.ZodString;
255
255
  kind: z.ZodEnum<{
256
256
  unknown: "unknown";
257
- agreement: "agreement";
258
257
  contradiction: "contradiction";
258
+ agreement: "agreement";
259
259
  complementary: "complementary";
260
260
  }>;
261
261
  reason: z.ZodString;
@@ -324,10 +324,10 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
324
324
  kind: z.ZodLiteral<"quality-review">;
325
325
  action: z.ZodEnum<{
326
326
  unresolved: "unresolved";
327
+ replan: "replan";
327
328
  select: "select";
328
329
  repair: "repair";
329
330
  synthesize: "synthesize";
330
- replan: "replan";
331
331
  }>;
332
332
  selectedCandidateId: z.ZodNullable<z.ZodString>;
333
333
  requirementIds: z.ZodArray<z.ZodString>;
@@ -341,8 +341,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
341
341
  checkId: z.ZodString;
342
342
  verdict: z.ZodEnum<{
343
343
  unresolved: "unresolved";
344
- supported: "supported";
345
344
  contradicted: "contradicted";
345
+ supported: "supported";
346
346
  }>;
347
347
  reason: z.ZodString;
348
348
  evidence: z.ZodArray<z.ZodObject<{
@@ -354,8 +354,8 @@ export declare const DeepFinalizationSourceSchema: z.ZodObject<{
354
354
  checkId: z.ZodString;
355
355
  kind: z.ZodEnum<{
356
356
  unknown: "unknown";
357
- agreement: "agreement";
358
357
  contradiction: "contradiction";
358
+ agreement: "agreement";
359
359
  complementary: "complementary";
360
360
  }>;
361
361
  reason: z.ZodString;
@@ -59,7 +59,7 @@ export declare function parseDeepReply(role: DeepRole, output: unknown, quality?
59
59
  synthesis: string;
60
60
  } | {
61
61
  kind: "quality-review";
62
- action: "unresolved" | "select" | "repair" | "synthesize" | "replan";
62
+ action: "unresolved" | "replan" | "select" | "repair" | "synthesize";
63
63
  selectedCandidateId: string | null;
64
64
  requirementIds: string[];
65
65
  reason: string;
@@ -70,7 +70,7 @@ export declare function parseDeepReply(role: DeepRole, output: unknown, quality?
70
70
  evaluations: {
71
71
  candidateId: string;
72
72
  checkId: string;
73
- verdict: "unresolved" | "supported" | "contradicted";
73
+ verdict: "unresolved" | "contradicted" | "supported";
74
74
  reason: string;
75
75
  evidence: {
76
76
  artifactId: string;
@@ -79,7 +79,7 @@ export declare function parseDeepReply(role: DeepRole, output: unknown, quality?
79
79
  }[];
80
80
  agreement: {
81
81
  checkId: string;
82
- kind: "unknown" | "agreement" | "contradiction" | "complementary";
82
+ kind: "unknown" | "contradiction" | "agreement" | "complementary";
83
83
  reason: string;
84
84
  }[];
85
85
  issues: {