opencode-plugin-flow 4.4.0 → 5.0.0

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 (41) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +44 -40
  3. package/dist/application/errors.d.ts +5 -0
  4. package/dist/{runtime/api.d.ts → application/flow-service.d.ts} +89 -57
  5. package/dist/application/ports/session-repository.d.ts +11 -0
  6. package/dist/{runtime → application}/schema.d.ts +291 -371
  7. package/dist/cli.js +283 -2720
  8. package/dist/cli.js.map +7 -6
  9. package/dist/config-shared.d.ts +28 -14
  10. package/dist/config.d.ts +1 -1
  11. package/dist/distribution/legacy-cleanup.d.ts +25 -0
  12. package/dist/domain/feature-id.d.ts +3 -0
  13. package/dist/domain/limits.d.ts +1 -0
  14. package/dist/domain/orchestration-policy.d.ts +27 -0
  15. package/dist/domain/session.d.ts +181 -0
  16. package/dist/domain/transitions.d.ts +80 -0
  17. package/dist/guidance/catalog.d.ts +18 -0
  18. package/dist/guidance/ids.d.ts +4 -0
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1279 -1102
  21. package/dist/index.js.map +24 -18
  22. package/dist/infrastructure/fs/session-repository.d.ts +2 -0
  23. package/dist/infrastructure/fs/workspace-flow-service.d.ts +9 -0
  24. package/dist/{runtime → infrastructure/fs}/workspace.d.ts +10 -15
  25. package/dist/infrastructure/system/transition-environment.d.ts +2 -0
  26. package/dist/platform/opencode/config.d.ts +2 -0
  27. package/dist/{adapters → platform}/opencode/plugin.d.ts +1 -1
  28. package/dist/{adapters → platform}/opencode/sdk.d.ts +0 -1
  29. package/dist/platform/opencode/tools.d.ts +6 -0
  30. package/dist/prompt-model-evaluation.d.ts +19 -30
  31. package/dist/prompt-quality.d.ts +1 -1
  32. package/dist/version.d.ts +1 -0
  33. package/package.json +16 -11
  34. package/dist/adapters/opencode/config.d.ts +0 -3
  35. package/dist/adapters/opencode/tools.d.ts +0 -322
  36. package/dist/distribution/flow-skill-definitions.d.ts +0 -9
  37. package/dist/distribution/sync.d.ts +0 -69
  38. package/dist/runtime/time.d.ts +0 -2
  39. package/dist/runtime/transitions.d.ts +0 -230
  40. /package/dist/{runtime/json/strict-object.d.ts → infrastructure/fs/strict-json-object.d.ts} +0 -0
  41. /package/dist/{adapters → platform}/opencode/logging.d.ts +0 -0
@@ -1,64 +1,64 @@
1
1
  import { z } from "zod";
2
- export declare const FEATURE_ID_PATTERN: RegExp;
3
- export declare const FEATURE_ID_MESSAGE = "Feature ids must be lowercase kebab-case";
2
+ export { hasCandidateExecutionEvidence, hasVerifierExecutionEvidence, isCandidateShapedDecision, } from "../domain/orchestration-policy.js";
3
+ export declare const FeatureIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
4
4
  export declare const FeatureStatusSchema: z.ZodEnum<{
5
- pending: "pending";
6
- in_progress: "in_progress";
7
- completed: "completed";
8
5
  blocked: "blocked";
6
+ completed: "completed";
7
+ in_progress: "in_progress";
8
+ pending: "pending";
9
9
  }>;
10
10
  export declare const SessionStatusSchema: z.ZodEnum<{
11
- completed: "completed";
12
11
  blocked: "blocked";
12
+ completed: "completed";
13
13
  planning: "planning";
14
14
  ready: "ready";
15
15
  running: "running";
16
16
  }>;
17
17
  export declare const ReviewStatusSchema: z.ZodEnum<{
18
- passed: "passed";
19
18
  failed: "failed";
19
+ passed: "passed";
20
20
  }>;
21
21
  export declare const ValidationStatusSchema: z.ZodEnum<{
22
- passed: "passed";
23
22
  failed: "failed";
23
+ passed: "passed";
24
24
  }>;
25
25
  export declare const ValidationScopeSchema: z.ZodEnum<{
26
- targeted: "targeted";
27
26
  broad: "broad";
27
+ targeted: "targeted";
28
28
  }>;
29
29
  export declare const FeatureReviewDepthSchema: z.ZodEnum<{
30
+ detailed: "detailed";
30
31
  quick: "quick";
31
32
  standard: "standard";
32
- detailed: "detailed";
33
33
  }>;
34
34
  export declare const FinalReviewPolicySchema: z.ZodEnum<{
35
35
  broad: "broad";
36
36
  detailed: "detailed";
37
37
  }>;
38
38
  export declare const OrchestrationPassKindSchema: z.ZodEnum<{
39
- validation: "validation";
40
39
  audit: "audit";
41
40
  candidate: "candidate";
42
41
  discovery: "discovery";
42
+ "implementation-decision": "implementation-decision";
43
43
  review: "review";
44
+ validation: "validation";
44
45
  verification: "verification";
45
- "implementation-decision": "implementation-decision";
46
46
  }>;
47
47
  export declare const OrchestrationModeSchema: z.ZodEnum<{
48
+ audit: "audit";
49
+ "candidate-implementation": "candidate-implementation";
48
50
  evidence: "evidence";
51
+ review: "review";
49
52
  validation: "validation";
50
- audit: "audit";
51
53
  verifier: "verifier";
52
- review: "review";
53
- "candidate-implementation": "candidate-implementation";
54
54
  }>;
55
55
  export declare const OrchestrationDecisionSchema: z.ZodEnum<{
56
- parallel: "parallel";
57
- serial: "serial";
58
56
  "candidate-exact-path": "candidate-exact-path";
59
57
  "candidate-worktree": "candidate-worktree";
60
- tournament: "tournament";
58
+ parallel: "parallel";
59
+ serial: "serial";
61
60
  skipped: "skipped";
61
+ tournament: "tournament";
62
62
  }>;
63
63
  export declare const OrchestrationCandidateEligibilitySchema: z.ZodEnum<{
64
64
  eligible: "eligible";
@@ -66,70 +66,59 @@ export declare const OrchestrationCandidateEligibilitySchema: z.ZodEnum<{
66
66
  unknown: "unknown";
67
67
  }>;
68
68
  export declare const OrchestrationCandidateDecisionSchema: z.ZodEnum<{
69
+ serial_required: "serial_required";
69
70
  skipped: "skipped";
70
71
  used: "used";
71
- serial_required: "serial_required";
72
72
  }>;
73
73
  export declare const OrchestrationDecisionFactorSchema: z.ZodEnum<{
74
- shared_state: "shared_state";
74
+ independent_surface: "independent_surface";
75
+ needs_manager_judgment: "needs_manager_judgment";
75
76
  overlapping_files: "overlapping_files";
77
+ shared_state: "shared_state";
76
78
  small_slice: "small_slice";
77
- needs_manager_judgment: "needs_manager_judgment";
78
- independent_surface: "independent_surface";
79
79
  validation_available: "validation_available";
80
80
  }>;
81
81
  export declare const OrchestrationWriteScopeSchema: z.ZodEnum<{
82
- none: "none";
83
- "manager-serial": "manager-serial";
84
82
  "exact-path": "exact-path";
85
83
  "isolated-worktree": "isolated-worktree";
84
+ "manager-serial": "manager-serial";
86
85
  mixed: "mixed";
86
+ none: "none";
87
87
  }>;
88
88
  export declare const OrchestrationVerificationStatusSchema: z.ZodEnum<{
89
- pending: "pending";
90
- passed: "passed";
89
+ downgraded: "downgraded";
91
90
  failed: "failed";
92
91
  mixed: "mixed";
93
92
  "not-needed": "not-needed";
94
- downgraded: "downgraded";
93
+ passed: "passed";
94
+ pending: "pending";
95
95
  }>;
96
96
  export declare const OrchestrationOutcomeSchema: z.ZodEnum<{
97
97
  accepted: "accepted";
98
98
  modified: "modified";
99
- rejected: "rejected";
100
- partial: "partial";
101
99
  "not-covered": "not-covered";
100
+ partial: "partial";
101
+ rejected: "rejected";
102
102
  superseded: "superseded";
103
103
  }>;
104
- export declare function isCandidateShapedDecision(decision: string | undefined): boolean;
105
- export declare function hasCandidateExecutionEvidence(pass: {
106
- kind: string;
107
- modes: readonly string[];
108
- candidateWorkerCount: number;
109
- }): boolean;
110
- export declare function hasVerifierExecutionEvidence(pass: {
111
- kind: string;
112
- modes: readonly string[];
113
- verifierWorkerCount: number;
114
- }): boolean;
115
104
  export declare const OrchestrationPassRecordSchema: z.ZodObject<{
116
105
  id: z.ZodString;
117
106
  kind: z.ZodEnum<{
118
- validation: "validation";
119
107
  audit: "audit";
120
108
  candidate: "candidate";
121
109
  discovery: "discovery";
110
+ "implementation-decision": "implementation-decision";
122
111
  review: "review";
112
+ validation: "validation";
123
113
  verification: "verification";
124
- "implementation-decision": "implementation-decision";
125
114
  }>;
126
115
  decision: z.ZodOptional<z.ZodEnum<{
127
- parallel: "parallel";
128
- serial: "serial";
129
116
  "candidate-exact-path": "candidate-exact-path";
130
117
  "candidate-worktree": "candidate-worktree";
131
- tournament: "tournament";
118
+ parallel: "parallel";
119
+ serial: "serial";
132
120
  skipped: "skipped";
121
+ tournament: "tournament";
133
122
  }>>;
134
123
  decisionReason: z.ZodOptional<z.ZodString>;
135
124
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -138,25 +127,25 @@ export declare const OrchestrationPassRecordSchema: z.ZodObject<{
138
127
  unknown: "unknown";
139
128
  }>>;
140
129
  candidateDecision: z.ZodOptional<z.ZodEnum<{
130
+ serial_required: "serial_required";
141
131
  skipped: "skipped";
142
132
  used: "used";
143
- serial_required: "serial_required";
144
133
  }>>;
145
134
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
146
- shared_state: "shared_state";
135
+ independent_surface: "independent_surface";
136
+ needs_manager_judgment: "needs_manager_judgment";
147
137
  overlapping_files: "overlapping_files";
138
+ shared_state: "shared_state";
148
139
  small_slice: "small_slice";
149
- needs_manager_judgment: "needs_manager_judgment";
150
- independent_surface: "independent_surface";
151
140
  validation_available: "validation_available";
152
141
  }>>>;
153
142
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
143
+ audit: "audit";
144
+ "candidate-implementation": "candidate-implementation";
154
145
  evidence: "evidence";
146
+ review: "review";
155
147
  validation: "validation";
156
- audit: "audit";
157
148
  verifier: "verifier";
158
- review: "review";
159
- "candidate-implementation": "candidate-implementation";
160
149
  }>>>;
161
150
  workerCount: z.ZodDefault<z.ZodNumber>;
162
151
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -164,27 +153,27 @@ export declare const OrchestrationPassRecordSchema: z.ZodObject<{
164
153
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
165
154
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
166
155
  writeScope: z.ZodDefault<z.ZodEnum<{
167
- none: "none";
168
- "manager-serial": "manager-serial";
169
156
  "exact-path": "exact-path";
170
157
  "isolated-worktree": "isolated-worktree";
158
+ "manager-serial": "manager-serial";
171
159
  mixed: "mixed";
160
+ none: "none";
172
161
  }>>;
173
162
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
174
163
  verificationStatus: z.ZodDefault<z.ZodEnum<{
175
- pending: "pending";
176
- passed: "passed";
164
+ downgraded: "downgraded";
177
165
  failed: "failed";
178
166
  mixed: "mixed";
179
167
  "not-needed": "not-needed";
180
- downgraded: "downgraded";
168
+ passed: "passed";
169
+ pending: "pending";
181
170
  }>>;
182
171
  outcome: z.ZodDefault<z.ZodEnum<{
183
172
  accepted: "accepted";
184
173
  modified: "modified";
185
- rejected: "rejected";
186
- partial: "partial";
187
174
  "not-covered": "not-covered";
175
+ partial: "partial";
176
+ rejected: "rejected";
188
177
  superseded: "superseded";
189
178
  }>>;
190
179
  synthesisRef: z.ZodOptional<z.ZodString>;
@@ -198,25 +187,24 @@ export declare const OrchestrationTelemetrySchema: z.ZodObject<{
198
187
  candidateUsedDecisionCount: z.ZodDefault<z.ZodNumber>;
199
188
  candidateSerialRequiredDecisionCount: z.ZodDefault<z.ZodNumber>;
200
189
  skippedCandidateDecisionCount: z.ZodDefault<z.ZodNumber>;
201
- recordedPassIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
202
190
  latestPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
203
191
  id: z.ZodString;
204
192
  kind: z.ZodEnum<{
205
- validation: "validation";
206
193
  audit: "audit";
207
194
  candidate: "candidate";
208
195
  discovery: "discovery";
196
+ "implementation-decision": "implementation-decision";
209
197
  review: "review";
198
+ validation: "validation";
210
199
  verification: "verification";
211
- "implementation-decision": "implementation-decision";
212
200
  }>;
213
201
  decision: z.ZodOptional<z.ZodEnum<{
214
- parallel: "parallel";
215
- serial: "serial";
216
202
  "candidate-exact-path": "candidate-exact-path";
217
203
  "candidate-worktree": "candidate-worktree";
218
- tournament: "tournament";
204
+ parallel: "parallel";
205
+ serial: "serial";
219
206
  skipped: "skipped";
207
+ tournament: "tournament";
220
208
  }>>;
221
209
  decisionReason: z.ZodOptional<z.ZodString>;
222
210
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -225,25 +213,25 @@ export declare const OrchestrationTelemetrySchema: z.ZodObject<{
225
213
  unknown: "unknown";
226
214
  }>>;
227
215
  candidateDecision: z.ZodOptional<z.ZodEnum<{
216
+ serial_required: "serial_required";
228
217
  skipped: "skipped";
229
218
  used: "used";
230
- serial_required: "serial_required";
231
219
  }>>;
232
220
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
233
- shared_state: "shared_state";
221
+ independent_surface: "independent_surface";
222
+ needs_manager_judgment: "needs_manager_judgment";
234
223
  overlapping_files: "overlapping_files";
224
+ shared_state: "shared_state";
235
225
  small_slice: "small_slice";
236
- needs_manager_judgment: "needs_manager_judgment";
237
- independent_surface: "independent_surface";
238
226
  validation_available: "validation_available";
239
227
  }>>>;
240
228
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
229
+ audit: "audit";
230
+ "candidate-implementation": "candidate-implementation";
241
231
  evidence: "evidence";
232
+ review: "review";
242
233
  validation: "validation";
243
- audit: "audit";
244
234
  verifier: "verifier";
245
- review: "review";
246
- "candidate-implementation": "candidate-implementation";
247
235
  }>>>;
248
236
  workerCount: z.ZodDefault<z.ZodNumber>;
249
237
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -251,27 +239,27 @@ export declare const OrchestrationTelemetrySchema: z.ZodObject<{
251
239
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
252
240
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
253
241
  writeScope: z.ZodDefault<z.ZodEnum<{
254
- none: "none";
255
- "manager-serial": "manager-serial";
256
242
  "exact-path": "exact-path";
257
243
  "isolated-worktree": "isolated-worktree";
244
+ "manager-serial": "manager-serial";
258
245
  mixed: "mixed";
246
+ none: "none";
259
247
  }>>;
260
248
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
261
249
  verificationStatus: z.ZodDefault<z.ZodEnum<{
262
- pending: "pending";
263
- passed: "passed";
250
+ downgraded: "downgraded";
264
251
  failed: "failed";
265
252
  mixed: "mixed";
266
253
  "not-needed": "not-needed";
267
- downgraded: "downgraded";
254
+ passed: "passed";
255
+ pending: "pending";
268
256
  }>>;
269
257
  outcome: z.ZodDefault<z.ZodEnum<{
270
258
  accepted: "accepted";
271
259
  modified: "modified";
272
- rejected: "rejected";
273
- partial: "partial";
274
260
  "not-covered": "not-covered";
261
+ partial: "partial";
262
+ rejected: "rejected";
275
263
  superseded: "superseded";
276
264
  }>>;
277
265
  synthesisRef: z.ZodOptional<z.ZodString>;
@@ -280,35 +268,35 @@ export declare const OrchestrationTelemetrySchema: z.ZodObject<{
280
268
  export declare const ReviewFindingSchema: z.ZodObject<{
281
269
  summary: z.ZodString;
282
270
  severity: z.ZodDefault<z.ZodEnum<{
283
- blocking: "blocking";
284
271
  advisory: "advisory";
272
+ blocking: "blocking";
285
273
  }>>;
286
274
  }, z.core.$strict>;
287
275
  export declare const ReviewSchema: z.ZodObject<{
288
276
  status: z.ZodEnum<{
289
- passed: "passed";
290
277
  failed: "failed";
278
+ passed: "passed";
291
279
  }>;
292
280
  summary: z.ZodString;
293
281
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
294
282
  summary: z.ZodString;
295
283
  severity: z.ZodDefault<z.ZodEnum<{
296
- blocking: "blocking";
297
284
  advisory: "advisory";
285
+ blocking: "blocking";
298
286
  }>>;
299
287
  }, z.core.$strict>>>;
300
288
  }, z.core.$strict>;
301
289
  export declare const FinalReviewSchema: z.ZodObject<{
302
290
  status: z.ZodEnum<{
303
- passed: "passed";
304
291
  failed: "failed";
292
+ passed: "passed";
305
293
  }>;
306
294
  summary: z.ZodString;
307
295
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
308
296
  summary: z.ZodString;
309
297
  severity: z.ZodDefault<z.ZodEnum<{
310
- blocking: "blocking";
311
298
  advisory: "advisory";
299
+ blocking: "blocking";
312
300
  }>>;
313
301
  }, z.core.$strict>>>;
314
302
  reviewDepth: z.ZodEnum<{
@@ -319,8 +307,8 @@ export declare const FinalReviewSchema: z.ZodObject<{
319
307
  export declare const ValidationRunSchema: z.ZodObject<{
320
308
  command: z.ZodString;
321
309
  status: z.ZodEnum<{
322
- passed: "passed";
323
310
  failed: "failed";
311
+ passed: "passed";
324
312
  }>;
325
313
  summary: z.ZodString;
326
314
  }, z.core.$strict>;
@@ -328,23 +316,23 @@ export declare const ArtifactSchema: z.ZodObject<{
328
316
  path: z.ZodString;
329
317
  }, z.core.$strict>;
330
318
  export declare const FeatureSchema: z.ZodObject<{
331
- id: z.ZodString;
319
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
332
320
  title: z.ZodString;
333
321
  summary: z.ZodString;
334
322
  status: z.ZodDefault<z.ZodEnum<{
335
- pending: "pending";
336
- in_progress: "in_progress";
337
- completed: "completed";
338
323
  blocked: "blocked";
324
+ completed: "completed";
325
+ in_progress: "in_progress";
326
+ pending: "pending";
339
327
  }>>;
340
328
  reviewDepth: z.ZodDefault<z.ZodEnum<{
329
+ detailed: "detailed";
341
330
  quick: "quick";
342
331
  standard: "standard";
343
- detailed: "detailed";
344
332
  }>>;
345
333
  targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
346
334
  validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
347
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
335
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>>>;
348
336
  }, z.core.$strict>;
349
337
  export declare const PlanSchema: z.ZodObject<{
350
338
  summary: z.ZodString;
@@ -356,23 +344,23 @@ export declare const PlanSchema: z.ZodObject<{
356
344
  detailed: "detailed";
357
345
  }>>;
358
346
  features: z.ZodArray<z.ZodObject<{
359
- id: z.ZodString;
347
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
360
348
  title: z.ZodString;
361
349
  summary: z.ZodString;
362
350
  status: z.ZodDefault<z.ZodEnum<{
363
- pending: "pending";
364
- in_progress: "in_progress";
365
- completed: "completed";
366
351
  blocked: "blocked";
352
+ completed: "completed";
353
+ in_progress: "in_progress";
354
+ pending: "pending";
367
355
  }>>;
368
356
  reviewDepth: z.ZodDefault<z.ZodEnum<{
357
+ detailed: "detailed";
369
358
  quick: "quick";
370
359
  standard: "standard";
371
- detailed: "detailed";
372
360
  }>>;
373
361
  targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
374
362
  validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
375
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
363
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>>>;
376
364
  }, z.core.$strict>>;
377
365
  }, z.core.$strict>;
378
366
  export declare const PlanInputSchema: z.ZodObject<{
@@ -385,47 +373,55 @@ export declare const PlanInputSchema: z.ZodObject<{
385
373
  detailed: "detailed";
386
374
  }>>;
387
375
  features: z.ZodArray<z.ZodObject<{
388
- summary: z.ZodString;
389
- id: z.ZodString;
376
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
390
377
  title: z.ZodString;
378
+ summary: z.ZodString;
391
379
  status: z.ZodOptional<z.ZodEnum<{
392
- pending: "pending";
393
- in_progress: "in_progress";
394
- completed: "completed";
395
380
  blocked: "blocked";
381
+ completed: "completed";
382
+ in_progress: "in_progress";
383
+ pending: "pending";
396
384
  }>>;
397
385
  reviewDepth: z.ZodOptional<z.ZodEnum<{
386
+ detailed: "detailed";
398
387
  quick: "quick";
399
388
  standard: "standard";
400
- detailed: "detailed";
401
389
  }>>;
402
390
  targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
391
  validation: z.ZodOptional<z.ZodArray<z.ZodString>>;
404
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>>>;
405
393
  }, z.core.$strict>>;
406
394
  }, z.core.$strict>;
407
- export declare const WorkerOutcomeSchema: z.ZodObject<{
408
- kind: z.ZodDefault<z.ZodEnum<{
409
- completed: "completed";
410
- blocked: "blocked";
411
- needs_input: "needs_input";
412
- replan_required: "replan_required";
413
- }>>;
395
+ export declare const CompletedWorkerOutcomeSchema: z.ZodObject<{
396
+ kind: z.ZodLiteral<"completed">;
414
397
  summary: z.ZodOptional<z.ZodString>;
415
398
  resolutionHint: z.ZodOptional<z.ZodString>;
416
399
  }, z.core.$strict>;
417
400
  export declare const NeedsInputOutcomeSchema: z.ZodObject<{
418
- kind: z.ZodDefault<z.ZodEnum<{
401
+ kind: z.ZodEnum<{
419
402
  blocked: "blocked";
420
403
  needs_input: "needs_input";
421
404
  replan_required: "replan_required";
422
- }>>;
405
+ }>;
423
406
  summary: z.ZodString;
424
407
  resolutionHint: z.ZodOptional<z.ZodString>;
425
408
  }, z.core.$strict>;
409
+ export declare const WorkerOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
410
+ kind: z.ZodLiteral<"completed">;
411
+ summary: z.ZodOptional<z.ZodString>;
412
+ resolutionHint: z.ZodOptional<z.ZodString>;
413
+ }, z.core.$strict>, z.ZodObject<{
414
+ kind: z.ZodEnum<{
415
+ blocked: "blocked";
416
+ needs_input: "needs_input";
417
+ replan_required: "replan_required";
418
+ }>;
419
+ summary: z.ZodString;
420
+ resolutionHint: z.ZodOptional<z.ZodString>;
421
+ }, z.core.$strict>], "kind">;
426
422
  export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
427
423
  status: z.ZodLiteral<"ok">;
428
- featureId: z.ZodString;
424
+ featureId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
429
425
  summary: z.ZodString;
430
426
  artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
431
427
  path: z.ZodString;
@@ -433,45 +429,45 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
433
429
  validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
434
430
  command: z.ZodString;
435
431
  status: z.ZodEnum<{
436
- passed: "passed";
437
432
  failed: "failed";
433
+ passed: "passed";
438
434
  }>;
439
435
  summary: z.ZodString;
440
436
  }, z.core.$strict>>>;
441
437
  validationScope: z.ZodEnum<{
442
- targeted: "targeted";
443
438
  broad: "broad";
439
+ targeted: "targeted";
444
440
  }>;
445
441
  featureReviewDepth: z.ZodEnum<{
442
+ detailed: "detailed";
446
443
  quick: "quick";
447
444
  standard: "standard";
448
- detailed: "detailed";
449
445
  }>;
450
446
  featureReview: z.ZodObject<{
451
447
  status: z.ZodEnum<{
452
- passed: "passed";
453
448
  failed: "failed";
449
+ passed: "passed";
454
450
  }>;
455
451
  summary: z.ZodString;
456
452
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
457
453
  summary: z.ZodString;
458
454
  severity: z.ZodDefault<z.ZodEnum<{
459
- blocking: "blocking";
460
455
  advisory: "advisory";
456
+ blocking: "blocking";
461
457
  }>>;
462
458
  }, z.core.$strict>>>;
463
459
  }, z.core.$strict>;
464
460
  finalReview: z.ZodOptional<z.ZodObject<{
465
461
  status: z.ZodEnum<{
466
- passed: "passed";
467
462
  failed: "failed";
463
+ passed: "passed";
468
464
  }>;
469
465
  summary: z.ZodString;
470
466
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
471
467
  summary: z.ZodString;
472
468
  severity: z.ZodDefault<z.ZodEnum<{
473
- blocking: "blocking";
474
469
  advisory: "advisory";
470
+ blocking: "blocking";
475
471
  }>>;
476
472
  }, z.core.$strict>>>;
477
473
  reviewDepth: z.ZodEnum<{
@@ -480,33 +476,28 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
476
  }>;
481
477
  }, z.core.$strict>>;
482
478
  outcome: z.ZodOptional<z.ZodObject<{
483
- kind: z.ZodDefault<z.ZodEnum<{
484
- completed: "completed";
485
- blocked: "blocked";
486
- needs_input: "needs_input";
487
- replan_required: "replan_required";
488
- }>>;
479
+ kind: z.ZodLiteral<"completed">;
489
480
  summary: z.ZodOptional<z.ZodString>;
490
481
  resolutionHint: z.ZodOptional<z.ZodString>;
491
482
  }, z.core.$strict>>;
492
483
  orchestrationPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
493
484
  id: z.ZodString;
494
485
  kind: z.ZodEnum<{
495
- validation: "validation";
496
486
  audit: "audit";
497
487
  candidate: "candidate";
498
488
  discovery: "discovery";
489
+ "implementation-decision": "implementation-decision";
499
490
  review: "review";
491
+ validation: "validation";
500
492
  verification: "verification";
501
- "implementation-decision": "implementation-decision";
502
493
  }>;
503
494
  decision: z.ZodOptional<z.ZodEnum<{
504
- parallel: "parallel";
505
- serial: "serial";
506
495
  "candidate-exact-path": "candidate-exact-path";
507
496
  "candidate-worktree": "candidate-worktree";
508
- tournament: "tournament";
497
+ parallel: "parallel";
498
+ serial: "serial";
509
499
  skipped: "skipped";
500
+ tournament: "tournament";
510
501
  }>>;
511
502
  decisionReason: z.ZodOptional<z.ZodString>;
512
503
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -515,25 +506,25 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
506
  unknown: "unknown";
516
507
  }>>;
517
508
  candidateDecision: z.ZodOptional<z.ZodEnum<{
509
+ serial_required: "serial_required";
518
510
  skipped: "skipped";
519
511
  used: "used";
520
- serial_required: "serial_required";
521
512
  }>>;
522
513
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
523
- shared_state: "shared_state";
514
+ independent_surface: "independent_surface";
515
+ needs_manager_judgment: "needs_manager_judgment";
524
516
  overlapping_files: "overlapping_files";
517
+ shared_state: "shared_state";
525
518
  small_slice: "small_slice";
526
- needs_manager_judgment: "needs_manager_judgment";
527
- independent_surface: "independent_surface";
528
519
  validation_available: "validation_available";
529
520
  }>>>;
530
521
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
522
+ audit: "audit";
523
+ "candidate-implementation": "candidate-implementation";
531
524
  evidence: "evidence";
525
+ review: "review";
532
526
  validation: "validation";
533
- audit: "audit";
534
527
  verifier: "verifier";
535
- review: "review";
536
- "candidate-implementation": "candidate-implementation";
537
528
  }>>>;
538
529
  workerCount: z.ZodDefault<z.ZodNumber>;
539
530
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -541,34 +532,34 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
541
532
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
542
533
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
543
534
  writeScope: z.ZodDefault<z.ZodEnum<{
544
- none: "none";
545
- "manager-serial": "manager-serial";
546
535
  "exact-path": "exact-path";
547
536
  "isolated-worktree": "isolated-worktree";
537
+ "manager-serial": "manager-serial";
548
538
  mixed: "mixed";
539
+ none: "none";
549
540
  }>>;
550
541
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
551
542
  verificationStatus: z.ZodDefault<z.ZodEnum<{
552
- pending: "pending";
553
- passed: "passed";
543
+ downgraded: "downgraded";
554
544
  failed: "failed";
555
545
  mixed: "mixed";
556
546
  "not-needed": "not-needed";
557
- downgraded: "downgraded";
547
+ passed: "passed";
548
+ pending: "pending";
558
549
  }>>;
559
550
  outcome: z.ZodDefault<z.ZodEnum<{
560
551
  accepted: "accepted";
561
552
  modified: "modified";
562
- rejected: "rejected";
563
- partial: "partial";
564
553
  "not-covered": "not-covered";
554
+ partial: "partial";
555
+ rejected: "rejected";
565
556
  superseded: "superseded";
566
557
  }>>;
567
558
  synthesisRef: z.ZodOptional<z.ZodString>;
568
559
  }, z.core.$strict>>>;
569
560
  }, z.core.$strict>, z.ZodObject<{
570
561
  status: z.ZodLiteral<"needs_input">;
571
- featureId: z.ZodString;
562
+ featureId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
572
563
  summary: z.ZodString;
573
564
  artifactsChanged: z.ZodDefault<z.ZodArray<z.ZodObject<{
574
565
  path: z.ZodString;
@@ -576,45 +567,45 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
576
567
  validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
577
568
  command: z.ZodString;
578
569
  status: z.ZodEnum<{
579
- passed: "passed";
580
570
  failed: "failed";
571
+ passed: "passed";
581
572
  }>;
582
573
  summary: z.ZodString;
583
574
  }, z.core.$strict>>>;
584
575
  validationScope: z.ZodOptional<z.ZodEnum<{
585
- targeted: "targeted";
586
576
  broad: "broad";
577
+ targeted: "targeted";
587
578
  }>>;
588
579
  featureReviewDepth: z.ZodOptional<z.ZodEnum<{
580
+ detailed: "detailed";
589
581
  quick: "quick";
590
582
  standard: "standard";
591
- detailed: "detailed";
592
583
  }>>;
593
584
  featureReview: z.ZodOptional<z.ZodObject<{
594
585
  status: z.ZodEnum<{
595
- passed: "passed";
596
586
  failed: "failed";
587
+ passed: "passed";
597
588
  }>;
598
589
  summary: z.ZodString;
599
590
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
600
591
  summary: z.ZodString;
601
592
  severity: z.ZodDefault<z.ZodEnum<{
602
- blocking: "blocking";
603
593
  advisory: "advisory";
594
+ blocking: "blocking";
604
595
  }>>;
605
596
  }, z.core.$strict>>>;
606
597
  }, z.core.$strict>>;
607
598
  finalReview: z.ZodOptional<z.ZodObject<{
608
599
  status: z.ZodEnum<{
609
- passed: "passed";
610
600
  failed: "failed";
601
+ passed: "passed";
611
602
  }>;
612
603
  summary: z.ZodString;
613
604
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
614
605
  summary: z.ZodString;
615
606
  severity: z.ZodDefault<z.ZodEnum<{
616
- blocking: "blocking";
617
607
  advisory: "advisory";
608
+ blocking: "blocking";
618
609
  }>>;
619
610
  }, z.core.$strict>>>;
620
611
  reviewDepth: z.ZodEnum<{
@@ -623,32 +614,32 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
623
614
  }>;
624
615
  }, z.core.$strict>>;
625
616
  outcome: z.ZodObject<{
626
- kind: z.ZodDefault<z.ZodEnum<{
617
+ kind: z.ZodEnum<{
627
618
  blocked: "blocked";
628
619
  needs_input: "needs_input";
629
620
  replan_required: "replan_required";
630
- }>>;
621
+ }>;
631
622
  summary: z.ZodString;
632
623
  resolutionHint: z.ZodOptional<z.ZodString>;
633
624
  }, z.core.$strict>;
634
625
  orchestrationPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
635
626
  id: z.ZodString;
636
627
  kind: z.ZodEnum<{
637
- validation: "validation";
638
628
  audit: "audit";
639
629
  candidate: "candidate";
640
630
  discovery: "discovery";
631
+ "implementation-decision": "implementation-decision";
641
632
  review: "review";
633
+ validation: "validation";
642
634
  verification: "verification";
643
- "implementation-decision": "implementation-decision";
644
635
  }>;
645
636
  decision: z.ZodOptional<z.ZodEnum<{
646
- parallel: "parallel";
647
- serial: "serial";
648
637
  "candidate-exact-path": "candidate-exact-path";
649
638
  "candidate-worktree": "candidate-worktree";
650
- tournament: "tournament";
639
+ parallel: "parallel";
640
+ serial: "serial";
651
641
  skipped: "skipped";
642
+ tournament: "tournament";
652
643
  }>>;
653
644
  decisionReason: z.ZodOptional<z.ZodString>;
654
645
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -657,25 +648,25 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
657
648
  unknown: "unknown";
658
649
  }>>;
659
650
  candidateDecision: z.ZodOptional<z.ZodEnum<{
651
+ serial_required: "serial_required";
660
652
  skipped: "skipped";
661
653
  used: "used";
662
- serial_required: "serial_required";
663
654
  }>>;
664
655
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
665
- shared_state: "shared_state";
656
+ independent_surface: "independent_surface";
657
+ needs_manager_judgment: "needs_manager_judgment";
666
658
  overlapping_files: "overlapping_files";
659
+ shared_state: "shared_state";
667
660
  small_slice: "small_slice";
668
- needs_manager_judgment: "needs_manager_judgment";
669
- independent_surface: "independent_surface";
670
661
  validation_available: "validation_available";
671
662
  }>>>;
672
663
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
664
+ audit: "audit";
665
+ "candidate-implementation": "candidate-implementation";
673
666
  evidence: "evidence";
667
+ review: "review";
674
668
  validation: "validation";
675
- audit: "audit";
676
669
  verifier: "verifier";
677
- review: "review";
678
- "candidate-implementation": "candidate-implementation";
679
670
  }>>>;
680
671
  workerCount: z.ZodDefault<z.ZodNumber>;
681
672
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -683,37 +674,37 @@ export declare const WorkerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
683
674
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
684
675
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
685
676
  writeScope: z.ZodDefault<z.ZodEnum<{
686
- none: "none";
687
- "manager-serial": "manager-serial";
688
677
  "exact-path": "exact-path";
689
678
  "isolated-worktree": "isolated-worktree";
679
+ "manager-serial": "manager-serial";
690
680
  mixed: "mixed";
681
+ none: "none";
691
682
  }>>;
692
683
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
693
684
  verificationStatus: z.ZodDefault<z.ZodEnum<{
694
- pending: "pending";
695
- passed: "passed";
685
+ downgraded: "downgraded";
696
686
  failed: "failed";
697
687
  mixed: "mixed";
698
688
  "not-needed": "not-needed";
699
- downgraded: "downgraded";
689
+ passed: "passed";
690
+ pending: "pending";
700
691
  }>>;
701
692
  outcome: z.ZodDefault<z.ZodEnum<{
702
693
  accepted: "accepted";
703
694
  modified: "modified";
704
- rejected: "rejected";
705
- partial: "partial";
706
695
  "not-covered": "not-covered";
696
+ partial: "partial";
697
+ rejected: "rejected";
707
698
  superseded: "superseded";
708
699
  }>>;
709
700
  synthesisRef: z.ZodOptional<z.ZodString>;
710
701
  }, z.core.$strict>>>;
711
702
  }, z.core.$strict>], "status">;
712
703
  export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
713
- featureId: z.ZodString;
704
+ featureId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
714
705
  status: z.ZodEnum<{
715
- completed: "completed";
716
706
  blocked: "blocked";
707
+ completed: "completed";
717
708
  needs_input: "needs_input";
718
709
  }>;
719
710
  summary: z.ZodString;
@@ -724,45 +715,45 @@ export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
724
715
  validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
725
716
  command: z.ZodString;
726
717
  status: z.ZodEnum<{
727
- passed: "passed";
728
718
  failed: "failed";
719
+ passed: "passed";
729
720
  }>;
730
721
  summary: z.ZodString;
731
722
  }, z.core.$strict>>>;
732
723
  validationScope: z.ZodOptional<z.ZodEnum<{
733
- targeted: "targeted";
734
724
  broad: "broad";
725
+ targeted: "targeted";
735
726
  }>>;
736
727
  featureReviewDepth: z.ZodOptional<z.ZodEnum<{
728
+ detailed: "detailed";
737
729
  quick: "quick";
738
730
  standard: "standard";
739
- detailed: "detailed";
740
731
  }>>;
741
732
  featureReview: z.ZodOptional<z.ZodObject<{
742
733
  status: z.ZodEnum<{
743
- passed: "passed";
744
734
  failed: "failed";
735
+ passed: "passed";
745
736
  }>;
746
737
  summary: z.ZodString;
747
738
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
748
739
  summary: z.ZodString;
749
740
  severity: z.ZodDefault<z.ZodEnum<{
750
- blocking: "blocking";
751
741
  advisory: "advisory";
742
+ blocking: "blocking";
752
743
  }>>;
753
744
  }, z.core.$strict>>>;
754
745
  }, z.core.$strict>>;
755
746
  finalReview: z.ZodOptional<z.ZodObject<{
756
747
  status: z.ZodEnum<{
757
- passed: "passed";
758
748
  failed: "failed";
749
+ passed: "passed";
759
750
  }>;
760
751
  summary: z.ZodString;
761
752
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
762
753
  summary: z.ZodString;
763
754
  severity: z.ZodDefault<z.ZodEnum<{
764
- blocking: "blocking";
765
755
  advisory: "advisory";
756
+ blocking: "blocking";
766
757
  }>>;
767
758
  }, z.core.$strict>>>;
768
759
  reviewDepth: z.ZodEnum<{
@@ -770,34 +761,37 @@ export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
770
761
  detailed: "detailed";
771
762
  }>;
772
763
  }, z.core.$strict>>;
773
- outcome: z.ZodOptional<z.ZodObject<{
774
- kind: z.ZodDefault<z.ZodEnum<{
775
- completed: "completed";
764
+ outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
765
+ kind: z.ZodLiteral<"completed">;
766
+ summary: z.ZodOptional<z.ZodString>;
767
+ resolutionHint: z.ZodOptional<z.ZodString>;
768
+ }, z.core.$strict>, z.ZodObject<{
769
+ kind: z.ZodEnum<{
776
770
  blocked: "blocked";
777
771
  needs_input: "needs_input";
778
772
  replan_required: "replan_required";
779
- }>>;
780
- summary: z.ZodOptional<z.ZodString>;
773
+ }>;
774
+ summary: z.ZodString;
781
775
  resolutionHint: z.ZodOptional<z.ZodString>;
782
- }, z.core.$strict>>;
776
+ }, z.core.$strict>], "kind">>;
783
777
  orchestrationPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
784
778
  id: z.ZodString;
785
779
  kind: z.ZodEnum<{
786
- validation: "validation";
787
780
  audit: "audit";
788
781
  candidate: "candidate";
789
782
  discovery: "discovery";
783
+ "implementation-decision": "implementation-decision";
790
784
  review: "review";
785
+ validation: "validation";
791
786
  verification: "verification";
792
- "implementation-decision": "implementation-decision";
793
787
  }>;
794
788
  decision: z.ZodOptional<z.ZodEnum<{
795
- parallel: "parallel";
796
- serial: "serial";
797
789
  "candidate-exact-path": "candidate-exact-path";
798
790
  "candidate-worktree": "candidate-worktree";
799
- tournament: "tournament";
791
+ parallel: "parallel";
792
+ serial: "serial";
800
793
  skipped: "skipped";
794
+ tournament: "tournament";
801
795
  }>>;
802
796
  decisionReason: z.ZodOptional<z.ZodString>;
803
797
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -806,25 +800,25 @@ export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
806
800
  unknown: "unknown";
807
801
  }>>;
808
802
  candidateDecision: z.ZodOptional<z.ZodEnum<{
803
+ serial_required: "serial_required";
809
804
  skipped: "skipped";
810
805
  used: "used";
811
- serial_required: "serial_required";
812
806
  }>>;
813
807
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
814
- shared_state: "shared_state";
808
+ independent_surface: "independent_surface";
809
+ needs_manager_judgment: "needs_manager_judgment";
815
810
  overlapping_files: "overlapping_files";
811
+ shared_state: "shared_state";
816
812
  small_slice: "small_slice";
817
- needs_manager_judgment: "needs_manager_judgment";
818
- independent_surface: "independent_surface";
819
813
  validation_available: "validation_available";
820
814
  }>>>;
821
815
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
816
+ audit: "audit";
817
+ "candidate-implementation": "candidate-implementation";
822
818
  evidence: "evidence";
819
+ review: "review";
823
820
  validation: "validation";
824
- audit: "audit";
825
821
  verifier: "verifier";
826
- review: "review";
827
- "candidate-implementation": "candidate-implementation";
828
822
  }>>>;
829
823
  workerCount: z.ZodDefault<z.ZodNumber>;
830
824
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -832,66 +826,36 @@ export declare const ExecutionHistoryEntrySchema: z.ZodObject<{
832
826
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
833
827
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
834
828
  writeScope: z.ZodDefault<z.ZodEnum<{
835
- none: "none";
836
- "manager-serial": "manager-serial";
837
829
  "exact-path": "exact-path";
838
830
  "isolated-worktree": "isolated-worktree";
831
+ "manager-serial": "manager-serial";
839
832
  mixed: "mixed";
833
+ none: "none";
840
834
  }>>;
841
835
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
842
836
  verificationStatus: z.ZodDefault<z.ZodEnum<{
843
- pending: "pending";
844
- passed: "passed";
837
+ downgraded: "downgraded";
845
838
  failed: "failed";
846
839
  mixed: "mixed";
847
840
  "not-needed": "not-needed";
848
- downgraded: "downgraded";
841
+ passed: "passed";
842
+ pending: "pending";
849
843
  }>>;
850
844
  outcome: z.ZodDefault<z.ZodEnum<{
851
845
  accepted: "accepted";
852
846
  modified: "modified";
853
- rejected: "rejected";
854
- partial: "partial";
855
847
  "not-covered": "not-covered";
848
+ partial: "partial";
849
+ rejected: "rejected";
856
850
  superseded: "superseded";
857
851
  }>>;
858
852
  synthesisRef: z.ZodOptional<z.ZodString>;
859
853
  }, z.core.$strict>>>;
860
854
  }, z.core.$strict>;
861
- export declare const TokenTelemetrySchema: z.ZodObject<{
862
- source: z.ZodDefault<z.ZodEnum<{
863
- host_unavailable: "host_unavailable";
864
- reported: "reported";
865
- }>>;
866
- visibleTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
867
- cacheReadTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
868
- nonCacheTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
869
- }, z.core.$strict>;
870
- export declare const PhaseBoundarySchema: z.ZodObject<{
871
- reason: z.ZodEnum<{
872
- feature_limit: "feature_limit";
873
- token_limit: "token_limit";
874
- review_failure_limit: "review_failure_limit";
875
- }>;
876
- summary: z.ZodString;
877
- resumeInstructions: z.ZodString;
878
- recordedAt: z.ZodString;
879
- }, z.core.$strict>;
880
855
  export declare const BudgetTelemetrySchema: z.ZodObject<{
881
- phaseStartedAt: z.ZodDefault<z.ZodString>;
882
- completedFeaturesSinceBoundary: z.ZodDefault<z.ZodNumber>;
883
856
  reviewCount: z.ZodDefault<z.ZodNumber>;
884
857
  failedReviewCount: z.ZodDefault<z.ZodNumber>;
885
858
  failedReviewAttemptsByFeature: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
886
- tokenTelemetry: z.ZodDefault<z.ZodObject<{
887
- source: z.ZodDefault<z.ZodEnum<{
888
- host_unavailable: "host_unavailable";
889
- reported: "reported";
890
- }>>;
891
- visibleTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
892
- cacheReadTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
893
- nonCacheTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
894
- }, z.core.$strict>>;
895
859
  orchestration: z.ZodPrefault<z.ZodObject<{
896
860
  passCount: z.ZodDefault<z.ZodNumber>;
897
861
  workerCount: z.ZodDefault<z.ZodNumber>;
@@ -901,25 +865,24 @@ export declare const BudgetTelemetrySchema: z.ZodObject<{
901
865
  candidateUsedDecisionCount: z.ZodDefault<z.ZodNumber>;
902
866
  candidateSerialRequiredDecisionCount: z.ZodDefault<z.ZodNumber>;
903
867
  skippedCandidateDecisionCount: z.ZodDefault<z.ZodNumber>;
904
- recordedPassIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
905
868
  latestPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
906
869
  id: z.ZodString;
907
870
  kind: z.ZodEnum<{
908
- validation: "validation";
909
871
  audit: "audit";
910
872
  candidate: "candidate";
911
873
  discovery: "discovery";
874
+ "implementation-decision": "implementation-decision";
912
875
  review: "review";
876
+ validation: "validation";
913
877
  verification: "verification";
914
- "implementation-decision": "implementation-decision";
915
878
  }>;
916
879
  decision: z.ZodOptional<z.ZodEnum<{
917
- parallel: "parallel";
918
- serial: "serial";
919
880
  "candidate-exact-path": "candidate-exact-path";
920
881
  "candidate-worktree": "candidate-worktree";
921
- tournament: "tournament";
882
+ parallel: "parallel";
883
+ serial: "serial";
922
884
  skipped: "skipped";
885
+ tournament: "tournament";
923
886
  }>>;
924
887
  decisionReason: z.ZodOptional<z.ZodString>;
925
888
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -928,25 +891,25 @@ export declare const BudgetTelemetrySchema: z.ZodObject<{
928
891
  unknown: "unknown";
929
892
  }>>;
930
893
  candidateDecision: z.ZodOptional<z.ZodEnum<{
894
+ serial_required: "serial_required";
931
895
  skipped: "skipped";
932
896
  used: "used";
933
- serial_required: "serial_required";
934
897
  }>>;
935
898
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
936
- shared_state: "shared_state";
899
+ independent_surface: "independent_surface";
900
+ needs_manager_judgment: "needs_manager_judgment";
937
901
  overlapping_files: "overlapping_files";
902
+ shared_state: "shared_state";
938
903
  small_slice: "small_slice";
939
- needs_manager_judgment: "needs_manager_judgment";
940
- independent_surface: "independent_surface";
941
904
  validation_available: "validation_available";
942
905
  }>>>;
943
906
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
907
+ audit: "audit";
908
+ "candidate-implementation": "candidate-implementation";
944
909
  evidence: "evidence";
910
+ review: "review";
945
911
  validation: "validation";
946
- audit: "audit";
947
912
  verifier: "verifier";
948
- review: "review";
949
- "candidate-implementation": "candidate-implementation";
950
913
  }>>>;
951
914
  workerCount: z.ZodDefault<z.ZodNumber>;
952
915
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -954,57 +917,47 @@ export declare const BudgetTelemetrySchema: z.ZodObject<{
954
917
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
955
918
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
956
919
  writeScope: z.ZodDefault<z.ZodEnum<{
957
- none: "none";
958
- "manager-serial": "manager-serial";
959
920
  "exact-path": "exact-path";
960
921
  "isolated-worktree": "isolated-worktree";
922
+ "manager-serial": "manager-serial";
961
923
  mixed: "mixed";
924
+ none: "none";
962
925
  }>>;
963
926
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
964
927
  verificationStatus: z.ZodDefault<z.ZodEnum<{
965
- pending: "pending";
966
- passed: "passed";
928
+ downgraded: "downgraded";
967
929
  failed: "failed";
968
930
  mixed: "mixed";
969
931
  "not-needed": "not-needed";
970
- downgraded: "downgraded";
932
+ passed: "passed";
933
+ pending: "pending";
971
934
  }>>;
972
935
  outcome: z.ZodDefault<z.ZodEnum<{
973
936
  accepted: "accepted";
974
937
  modified: "modified";
975
- rejected: "rejected";
976
- partial: "partial";
977
938
  "not-covered": "not-covered";
939
+ partial: "partial";
940
+ rejected: "rejected";
978
941
  superseded: "superseded";
979
942
  }>>;
980
943
  synthesisRef: z.ZodOptional<z.ZodString>;
981
944
  }, z.core.$strict>>>;
982
945
  }, z.core.$strict>>;
983
- phaseBoundary: z.ZodDefault<z.ZodNullable<z.ZodObject<{
984
- reason: z.ZodEnum<{
985
- feature_limit: "feature_limit";
986
- token_limit: "token_limit";
987
- review_failure_limit: "review_failure_limit";
988
- }>;
989
- summary: z.ZodString;
990
- resumeInstructions: z.ZodString;
991
- recordedAt: z.ZodString;
992
- }, z.core.$strict>>>;
993
946
  }, z.core.$strict>;
994
947
  export declare const SessionSchema: z.ZodObject<{
995
- version: z.ZodLiteral<2>;
996
- id: z.ZodString;
948
+ version: z.ZodLiteral<3>;
949
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").SessionId, string>>;
997
950
  goal: z.ZodString;
998
951
  status: z.ZodEnum<{
999
- completed: "completed";
1000
952
  blocked: "blocked";
953
+ completed: "completed";
1001
954
  planning: "planning";
1002
955
  ready: "ready";
1003
956
  running: "running";
1004
957
  }>;
1005
958
  approval: z.ZodEnum<{
1006
- pending: "pending";
1007
959
  approved: "approved";
960
+ pending: "pending";
1008
961
  }>;
1009
962
  plan: z.ZodNullable<z.ZodObject<{
1010
963
  summary: z.ZodString;
@@ -1016,31 +969,31 @@ export declare const SessionSchema: z.ZodObject<{
1016
969
  detailed: "detailed";
1017
970
  }>>;
1018
971
  features: z.ZodArray<z.ZodObject<{
1019
- id: z.ZodString;
972
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
1020
973
  title: z.ZodString;
1021
974
  summary: z.ZodString;
1022
975
  status: z.ZodDefault<z.ZodEnum<{
1023
- pending: "pending";
1024
- in_progress: "in_progress";
1025
- completed: "completed";
1026
976
  blocked: "blocked";
977
+ completed: "completed";
978
+ in_progress: "in_progress";
979
+ pending: "pending";
1027
980
  }>>;
1028
981
  reviewDepth: z.ZodDefault<z.ZodEnum<{
982
+ detailed: "detailed";
1029
983
  quick: "quick";
1030
984
  standard: "standard";
1031
- detailed: "detailed";
1032
985
  }>>;
1033
986
  targets: z.ZodDefault<z.ZodArray<z.ZodString>>;
1034
987
  validation: z.ZodDefault<z.ZodArray<z.ZodString>>;
1035
- dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
988
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>>>;
1036
989
  }, z.core.$strict>>;
1037
990
  }, z.core.$strict>>;
1038
- activeFeatureId: z.ZodNullable<z.ZodString>;
991
+ activeFeatureId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>>;
1039
992
  history: z.ZodDefault<z.ZodArray<z.ZodObject<{
1040
- featureId: z.ZodString;
993
+ featureId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../domain/session.js").FeatureId, string>>;
1041
994
  status: z.ZodEnum<{
1042
- completed: "completed";
1043
995
  blocked: "blocked";
996
+ completed: "completed";
1044
997
  needs_input: "needs_input";
1045
998
  }>;
1046
999
  summary: z.ZodString;
@@ -1051,45 +1004,45 @@ export declare const SessionSchema: z.ZodObject<{
1051
1004
  validationRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
1052
1005
  command: z.ZodString;
1053
1006
  status: z.ZodEnum<{
1054
- passed: "passed";
1055
1007
  failed: "failed";
1008
+ passed: "passed";
1056
1009
  }>;
1057
1010
  summary: z.ZodString;
1058
1011
  }, z.core.$strict>>>;
1059
1012
  validationScope: z.ZodOptional<z.ZodEnum<{
1060
- targeted: "targeted";
1061
1013
  broad: "broad";
1014
+ targeted: "targeted";
1062
1015
  }>>;
1063
1016
  featureReviewDepth: z.ZodOptional<z.ZodEnum<{
1017
+ detailed: "detailed";
1064
1018
  quick: "quick";
1065
1019
  standard: "standard";
1066
- detailed: "detailed";
1067
1020
  }>>;
1068
1021
  featureReview: z.ZodOptional<z.ZodObject<{
1069
1022
  status: z.ZodEnum<{
1070
- passed: "passed";
1071
1023
  failed: "failed";
1024
+ passed: "passed";
1072
1025
  }>;
1073
1026
  summary: z.ZodString;
1074
1027
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
1075
1028
  summary: z.ZodString;
1076
1029
  severity: z.ZodDefault<z.ZodEnum<{
1077
- blocking: "blocking";
1078
1030
  advisory: "advisory";
1031
+ blocking: "blocking";
1079
1032
  }>>;
1080
1033
  }, z.core.$strict>>>;
1081
1034
  }, z.core.$strict>>;
1082
1035
  finalReview: z.ZodOptional<z.ZodObject<{
1083
1036
  status: z.ZodEnum<{
1084
- passed: "passed";
1085
1037
  failed: "failed";
1038
+ passed: "passed";
1086
1039
  }>;
1087
1040
  summary: z.ZodString;
1088
1041
  blockingFindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
1089
1042
  summary: z.ZodString;
1090
1043
  severity: z.ZodDefault<z.ZodEnum<{
1091
- blocking: "blocking";
1092
1044
  advisory: "advisory";
1045
+ blocking: "blocking";
1093
1046
  }>>;
1094
1047
  }, z.core.$strict>>>;
1095
1048
  reviewDepth: z.ZodEnum<{
@@ -1097,34 +1050,37 @@ export declare const SessionSchema: z.ZodObject<{
1097
1050
  detailed: "detailed";
1098
1051
  }>;
1099
1052
  }, z.core.$strict>>;
1100
- outcome: z.ZodOptional<z.ZodObject<{
1101
- kind: z.ZodDefault<z.ZodEnum<{
1102
- completed: "completed";
1053
+ outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1054
+ kind: z.ZodLiteral<"completed">;
1055
+ summary: z.ZodOptional<z.ZodString>;
1056
+ resolutionHint: z.ZodOptional<z.ZodString>;
1057
+ }, z.core.$strict>, z.ZodObject<{
1058
+ kind: z.ZodEnum<{
1103
1059
  blocked: "blocked";
1104
1060
  needs_input: "needs_input";
1105
1061
  replan_required: "replan_required";
1106
- }>>;
1107
- summary: z.ZodOptional<z.ZodString>;
1062
+ }>;
1063
+ summary: z.ZodString;
1108
1064
  resolutionHint: z.ZodOptional<z.ZodString>;
1109
- }, z.core.$strict>>;
1065
+ }, z.core.$strict>], "kind">>;
1110
1066
  orchestrationPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
1111
1067
  id: z.ZodString;
1112
1068
  kind: z.ZodEnum<{
1113
- validation: "validation";
1114
1069
  audit: "audit";
1115
1070
  candidate: "candidate";
1116
1071
  discovery: "discovery";
1072
+ "implementation-decision": "implementation-decision";
1117
1073
  review: "review";
1074
+ validation: "validation";
1118
1075
  verification: "verification";
1119
- "implementation-decision": "implementation-decision";
1120
1076
  }>;
1121
1077
  decision: z.ZodOptional<z.ZodEnum<{
1122
- parallel: "parallel";
1123
- serial: "serial";
1124
1078
  "candidate-exact-path": "candidate-exact-path";
1125
1079
  "candidate-worktree": "candidate-worktree";
1126
- tournament: "tournament";
1080
+ parallel: "parallel";
1081
+ serial: "serial";
1127
1082
  skipped: "skipped";
1083
+ tournament: "tournament";
1128
1084
  }>>;
1129
1085
  decisionReason: z.ZodOptional<z.ZodString>;
1130
1086
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -1133,25 +1089,25 @@ export declare const SessionSchema: z.ZodObject<{
1133
1089
  unknown: "unknown";
1134
1090
  }>>;
1135
1091
  candidateDecision: z.ZodOptional<z.ZodEnum<{
1092
+ serial_required: "serial_required";
1136
1093
  skipped: "skipped";
1137
1094
  used: "used";
1138
- serial_required: "serial_required";
1139
1095
  }>>;
1140
1096
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1141
- shared_state: "shared_state";
1097
+ independent_surface: "independent_surface";
1098
+ needs_manager_judgment: "needs_manager_judgment";
1142
1099
  overlapping_files: "overlapping_files";
1100
+ shared_state: "shared_state";
1143
1101
  small_slice: "small_slice";
1144
- needs_manager_judgment: "needs_manager_judgment";
1145
- independent_surface: "independent_surface";
1146
1102
  validation_available: "validation_available";
1147
1103
  }>>>;
1148
1104
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1105
+ audit: "audit";
1106
+ "candidate-implementation": "candidate-implementation";
1149
1107
  evidence: "evidence";
1108
+ review: "review";
1150
1109
  validation: "validation";
1151
- audit: "audit";
1152
1110
  verifier: "verifier";
1153
- review: "review";
1154
- "candidate-implementation": "candidate-implementation";
1155
1111
  }>>>;
1156
1112
  workerCount: z.ZodDefault<z.ZodNumber>;
1157
1113
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -1159,47 +1115,36 @@ export declare const SessionSchema: z.ZodObject<{
1159
1115
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1160
1116
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
1161
1117
  writeScope: z.ZodDefault<z.ZodEnum<{
1162
- none: "none";
1163
- "manager-serial": "manager-serial";
1164
1118
  "exact-path": "exact-path";
1165
1119
  "isolated-worktree": "isolated-worktree";
1120
+ "manager-serial": "manager-serial";
1166
1121
  mixed: "mixed";
1122
+ none: "none";
1167
1123
  }>>;
1168
1124
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1169
1125
  verificationStatus: z.ZodDefault<z.ZodEnum<{
1170
- pending: "pending";
1171
- passed: "passed";
1126
+ downgraded: "downgraded";
1172
1127
  failed: "failed";
1173
1128
  mixed: "mixed";
1174
1129
  "not-needed": "not-needed";
1175
- downgraded: "downgraded";
1130
+ passed: "passed";
1131
+ pending: "pending";
1176
1132
  }>>;
1177
1133
  outcome: z.ZodDefault<z.ZodEnum<{
1178
1134
  accepted: "accepted";
1179
1135
  modified: "modified";
1180
- rejected: "rejected";
1181
- partial: "partial";
1182
1136
  "not-covered": "not-covered";
1137
+ partial: "partial";
1138
+ rejected: "rejected";
1183
1139
  superseded: "superseded";
1184
1140
  }>>;
1185
1141
  synthesisRef: z.ZodOptional<z.ZodString>;
1186
1142
  }, z.core.$strict>>>;
1187
1143
  }, z.core.$strict>>>;
1188
1144
  budget: z.ZodPrefault<z.ZodObject<{
1189
- phaseStartedAt: z.ZodDefault<z.ZodString>;
1190
- completedFeaturesSinceBoundary: z.ZodDefault<z.ZodNumber>;
1191
1145
  reviewCount: z.ZodDefault<z.ZodNumber>;
1192
1146
  failedReviewCount: z.ZodDefault<z.ZodNumber>;
1193
1147
  failedReviewAttemptsByFeature: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1194
- tokenTelemetry: z.ZodDefault<z.ZodObject<{
1195
- source: z.ZodDefault<z.ZodEnum<{
1196
- host_unavailable: "host_unavailable";
1197
- reported: "reported";
1198
- }>>;
1199
- visibleTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1200
- cacheReadTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1201
- nonCacheTokens: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1202
- }, z.core.$strict>>;
1203
1148
  orchestration: z.ZodPrefault<z.ZodObject<{
1204
1149
  passCount: z.ZodDefault<z.ZodNumber>;
1205
1150
  workerCount: z.ZodDefault<z.ZodNumber>;
@@ -1209,25 +1154,24 @@ export declare const SessionSchema: z.ZodObject<{
1209
1154
  candidateUsedDecisionCount: z.ZodDefault<z.ZodNumber>;
1210
1155
  candidateSerialRequiredDecisionCount: z.ZodDefault<z.ZodNumber>;
1211
1156
  skippedCandidateDecisionCount: z.ZodDefault<z.ZodNumber>;
1212
- recordedPassIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1213
1157
  latestPasses: z.ZodDefault<z.ZodArray<z.ZodObject<{
1214
1158
  id: z.ZodString;
1215
1159
  kind: z.ZodEnum<{
1216
- validation: "validation";
1217
1160
  audit: "audit";
1218
1161
  candidate: "candidate";
1219
1162
  discovery: "discovery";
1163
+ "implementation-decision": "implementation-decision";
1220
1164
  review: "review";
1165
+ validation: "validation";
1221
1166
  verification: "verification";
1222
- "implementation-decision": "implementation-decision";
1223
1167
  }>;
1224
1168
  decision: z.ZodOptional<z.ZodEnum<{
1225
- parallel: "parallel";
1226
- serial: "serial";
1227
1169
  "candidate-exact-path": "candidate-exact-path";
1228
1170
  "candidate-worktree": "candidate-worktree";
1229
- tournament: "tournament";
1171
+ parallel: "parallel";
1172
+ serial: "serial";
1230
1173
  skipped: "skipped";
1174
+ tournament: "tournament";
1231
1175
  }>>;
1232
1176
  decisionReason: z.ZodOptional<z.ZodString>;
1233
1177
  candidateEligibility: z.ZodDefault<z.ZodEnum<{
@@ -1236,25 +1180,25 @@ export declare const SessionSchema: z.ZodObject<{
1236
1180
  unknown: "unknown";
1237
1181
  }>>;
1238
1182
  candidateDecision: z.ZodOptional<z.ZodEnum<{
1183
+ serial_required: "serial_required";
1239
1184
  skipped: "skipped";
1240
1185
  used: "used";
1241
- serial_required: "serial_required";
1242
1186
  }>>;
1243
1187
  decisionFactors: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1244
- shared_state: "shared_state";
1188
+ independent_surface: "independent_surface";
1189
+ needs_manager_judgment: "needs_manager_judgment";
1245
1190
  overlapping_files: "overlapping_files";
1191
+ shared_state: "shared_state";
1246
1192
  small_slice: "small_slice";
1247
- needs_manager_judgment: "needs_manager_judgment";
1248
- independent_surface: "independent_surface";
1249
1193
  validation_available: "validation_available";
1250
1194
  }>>>;
1251
1195
  modes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1196
+ audit: "audit";
1197
+ "candidate-implementation": "candidate-implementation";
1252
1198
  evidence: "evidence";
1199
+ review: "review";
1253
1200
  validation: "validation";
1254
- audit: "audit";
1255
1201
  verifier: "verifier";
1256
- review: "review";
1257
- "candidate-implementation": "candidate-implementation";
1258
1202
  }>>>;
1259
1203
  workerCount: z.ZodDefault<z.ZodNumber>;
1260
1204
  candidateWorkerCount: z.ZodDefault<z.ZodNumber>;
@@ -1262,48 +1206,38 @@ export declare const SessionSchema: z.ZodObject<{
1262
1206
  sliceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1263
1207
  dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
1264
1208
  writeScope: z.ZodDefault<z.ZodEnum<{
1265
- none: "none";
1266
- "manager-serial": "manager-serial";
1267
1209
  "exact-path": "exact-path";
1268
1210
  "isolated-worktree": "isolated-worktree";
1211
+ "manager-serial": "manager-serial";
1269
1212
  mixed: "mixed";
1213
+ none: "none";
1270
1214
  }>>;
1271
1215
  handoffRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
1272
1216
  verificationStatus: z.ZodDefault<z.ZodEnum<{
1273
- pending: "pending";
1274
- passed: "passed";
1217
+ downgraded: "downgraded";
1275
1218
  failed: "failed";
1276
1219
  mixed: "mixed";
1277
1220
  "not-needed": "not-needed";
1278
- downgraded: "downgraded";
1221
+ passed: "passed";
1222
+ pending: "pending";
1279
1223
  }>>;
1280
1224
  outcome: z.ZodDefault<z.ZodEnum<{
1281
1225
  accepted: "accepted";
1282
1226
  modified: "modified";
1283
- rejected: "rejected";
1284
- partial: "partial";
1285
1227
  "not-covered": "not-covered";
1228
+ partial: "partial";
1229
+ rejected: "rejected";
1286
1230
  superseded: "superseded";
1287
1231
  }>>;
1288
1232
  synthesisRef: z.ZodOptional<z.ZodString>;
1289
1233
  }, z.core.$strict>>>;
1290
1234
  }, z.core.$strict>>;
1291
- phaseBoundary: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1292
- reason: z.ZodEnum<{
1293
- feature_limit: "feature_limit";
1294
- token_limit: "token_limit";
1295
- review_failure_limit: "review_failure_limit";
1296
- }>;
1297
- summary: z.ZodString;
1298
- resumeInstructions: z.ZodString;
1299
- recordedAt: z.ZodString;
1300
- }, z.core.$strict>>>;
1301
1235
  }, z.core.$strict>>;
1302
1236
  closure: z.ZodNullable<z.ZodObject<{
1303
1237
  kind: z.ZodEnum<{
1238
+ abandoned: "abandoned";
1304
1239
  completed: "completed";
1305
1240
  deferred: "deferred";
1306
- abandoned: "abandoned";
1307
1241
  }>;
1308
1242
  summary: z.ZodString;
1309
1243
  recordedAt: z.ZodString;
@@ -1320,18 +1254,4 @@ export declare const SessionSchema: z.ZodObject<{
1320
1254
  completedAt: z.ZodNullable<z.ZodString>;
1321
1255
  }, z.core.$strict>;
1322
1256
  }, z.core.$strict>;
1323
- export type Artifact = z.infer<typeof ArtifactSchema>;
1324
- export type BudgetTelemetry = z.infer<typeof BudgetTelemetrySchema>;
1325
- export type ExecutionHistoryEntry = z.infer<typeof ExecutionHistoryEntrySchema>;
1326
- export type Feature = z.infer<typeof FeatureSchema>;
1327
- export type FeatureReviewDepth = z.infer<typeof FeatureReviewDepthSchema>;
1328
- export type FinalReview = z.infer<typeof FinalReviewSchema>;
1329
- export type OrchestrationPassRecord = z.infer<typeof OrchestrationPassRecordSchema>;
1330
- export type OrchestrationTelemetry = z.infer<typeof OrchestrationTelemetrySchema>;
1331
- export type PhaseBoundary = z.infer<typeof PhaseBoundarySchema>;
1332
- export type Plan = z.infer<typeof PlanSchema>;
1333
- export type PlanInput = z.input<typeof PlanInputSchema>;
1334
- export type Review = z.infer<typeof ReviewSchema>;
1335
- export type Session = z.infer<typeof SessionSchema>;
1336
- export type ValidationRun = z.infer<typeof ValidationRunSchema>;
1337
- export type WorkerResult = z.infer<typeof WorkerResultSchema>;
1257
+ export type { Artifact, BudgetTelemetry, ExecutionHistoryEntry, Feature, FeatureReviewDepth, FinalReview, OrchestrationPassRecord, OrchestrationTelemetry, Plan, PlanInput, Review, Session, ValidationRun, WorkerResult, } from "../domain/session.js";