@ai-dev-orchestrator/schemas 0.1.1

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 (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/artifacts/agreement-artifacts.d.ts +311 -0
  4. package/dist/artifacts/agreement-artifacts.js +48 -0
  5. package/dist/artifacts/artifact-dependency-graph.d.ts +775 -0
  6. package/dist/artifacts/artifact-dependency-graph.js +57 -0
  7. package/dist/artifacts/artifact-system.d.ts +657 -0
  8. package/dist/artifacts/artifact-system.js +124 -0
  9. package/dist/artifacts/index.d.ts +3 -0
  10. package/dist/artifacts/index.js +3 -0
  11. package/dist/config/configuration.d.ts +324 -0
  12. package/dist/config/configuration.js +93 -0
  13. package/dist/config/event-bus-config.d.ts +153 -0
  14. package/dist/config/event-bus-config.js +27 -0
  15. package/dist/config/event-payloads.d.ts +919 -0
  16. package/dist/config/event-payloads.js +304 -0
  17. package/dist/config/event-system.d.ts +3231 -0
  18. package/dist/config/event-system.js +428 -0
  19. package/dist/config/event-types.d.ts +62 -0
  20. package/dist/config/event-types.js +66 -0
  21. package/dist/config/index.d.ts +5 -0
  22. package/dist/config/index.js +5 -0
  23. package/dist/dashboard/dashboard-api.d.ts +149 -0
  24. package/dist/dashboard/dashboard-api.js +80 -0
  25. package/dist/dashboard/dashboard-domain.d.ts +1076 -0
  26. package/dist/dashboard/dashboard-domain.js +305 -0
  27. package/dist/dashboard/index.d.ts +3 -0
  28. package/dist/dashboard/index.js +3 -0
  29. package/dist/dashboard/run-creation-params.d.ts +111 -0
  30. package/dist/dashboard/run-creation-params.js +14 -0
  31. package/dist/governance/governance.d.ts +1119 -0
  32. package/dist/governance/governance.js +111 -0
  33. package/dist/governance/index.d.ts +3 -0
  34. package/dist/governance/index.js +3 -0
  35. package/dist/governance/policy-engine.d.ts +634 -0
  36. package/dist/governance/policy-engine.js +214 -0
  37. package/dist/governance/review-resolution.d.ts +1053 -0
  38. package/dist/governance/review-resolution.js +67 -0
  39. package/dist/index.d.ts +10 -0
  40. package/dist/index.js +10 -0
  41. package/dist/observability/diagnostics.d.ts +185 -0
  42. package/dist/observability/diagnostics.js +63 -0
  43. package/dist/observability/index.d.ts +2 -0
  44. package/dist/observability/index.js +2 -0
  45. package/dist/observability/metrics.d.ts +187 -0
  46. package/dist/observability/metrics.js +67 -0
  47. package/dist/persistence/execution-analytics.d.ts +173 -0
  48. package/dist/persistence/execution-analytics.js +71 -0
  49. package/dist/persistence/index.d.ts +5 -0
  50. package/dist/persistence/index.js +5 -0
  51. package/dist/persistence/project-context.d.ts +164 -0
  52. package/dist/persistence/project-context.js +88 -0
  53. package/dist/persistence/repository-model.d.ts +27 -0
  54. package/dist/persistence/repository-model.js +16 -0
  55. package/dist/persistence/run-manifest.d.ts +422 -0
  56. package/dist/persistence/run-manifest.js +118 -0
  57. package/dist/persistence/state-persistence.d.ts +276 -0
  58. package/dist/persistence/state-persistence.js +83 -0
  59. package/dist/runner/built-in-runner-ids.d.ts +8 -0
  60. package/dist/runner/built-in-runner-ids.js +11 -0
  61. package/dist/runner/collaboration-model.d.ts +100 -0
  62. package/dist/runner/collaboration-model.js +19 -0
  63. package/dist/runner/confidence.d.ts +17 -0
  64. package/dist/runner/confidence.js +11 -0
  65. package/dist/runner/index.d.ts +8 -0
  66. package/dist/runner/index.js +8 -0
  67. package/dist/runner/permission-approval.d.ts +38 -0
  68. package/dist/runner/permission-approval.js +14 -0
  69. package/dist/runner/prompt-engine.d.ts +1467 -0
  70. package/dist/runner/prompt-engine.js +193 -0
  71. package/dist/runner/role-system.d.ts +458 -0
  72. package/dist/runner/role-system.js +94 -0
  73. package/dist/runner/runner-system.d.ts +1721 -0
  74. package/dist/runner/runner-system.js +268 -0
  75. package/dist/runner/task-brief.d.ts +18 -0
  76. package/dist/runner/task-brief.js +12 -0
  77. package/dist/shared/index.d.ts +3 -0
  78. package/dist/shared/index.js +3 -0
  79. package/dist/shared/shared.d.ts +30 -0
  80. package/dist/shared/shared.js +27 -0
  81. package/dist/shared/string-enums.d.ts +59 -0
  82. package/dist/shared/string-enums.js +24 -0
  83. package/dist/shared/utils.d.ts +25 -0
  84. package/dist/shared/utils.js +22 -0
  85. package/dist/specification/canonical-specification.d.ts +475 -0
  86. package/dist/specification/canonical-specification.js +151 -0
  87. package/dist/specification/index.d.ts +3 -0
  88. package/dist/specification/index.js +3 -0
  89. package/dist/specification/intake.d.ts +419 -0
  90. package/dist/specification/intake.js +70 -0
  91. package/dist/specification/iteration-contracts.d.ts +421 -0
  92. package/dist/specification/iteration-contracts.js +61 -0
  93. package/dist/workflow/index.d.ts +4 -0
  94. package/dist/workflow/index.js +4 -0
  95. package/dist/workflow/workflow-dsl.d.ts +81 -0
  96. package/dist/workflow/workflow-dsl.js +38 -0
  97. package/dist/workflow/workflow-engine.d.ts +5788 -0
  98. package/dist/workflow/workflow-engine.js +414 -0
  99. package/dist/workflow/workflow-file.d.ts +331 -0
  100. package/dist/workflow/workflow-file.js +41 -0
  101. package/dist/workflow/workflow-journal.d.ts +520 -0
  102. package/dist/workflow/workflow-journal.js +151 -0
  103. package/package.json +39 -0
@@ -0,0 +1,919 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const runStartedDataSchema: z.ZodObject<{
3
+ config: z.ZodObject<{
4
+ workflow: z.ZodString;
5
+ variant: z.ZodOptional<z.ZodString>;
6
+ repository: z.ZodString;
7
+ sourceType: z.ZodString;
8
+ }, z.core.$strip>;
9
+ tokenBudget: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ export type RunStartedData = z.infer<typeof runStartedDataSchema>;
12
+ export declare const runCompletedDataSchema: z.ZodObject<{
13
+ outcome: z.ZodEnum<{
14
+ success: "success";
15
+ failed: "failed";
16
+ partial: "partial";
17
+ }>;
18
+ reason: z.ZodOptional<z.ZodString>;
19
+ artifactCount: z.ZodNumber;
20
+ totalDurationMs: z.ZodNumber;
21
+ totalTokens: z.ZodObject<{
22
+ input: z.ZodNumber;
23
+ output: z.ZodNumber;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>;
26
+ export type RunCompletedData = z.infer<typeof runCompletedDataSchema>;
27
+ export declare const runAbortedDataSchema: z.ZodObject<{
28
+ reason: z.ZodString;
29
+ abortedBy: z.ZodEnum<{
30
+ policy: "policy";
31
+ governance: "governance";
32
+ system: "system";
33
+ user: "user";
34
+ }>;
35
+ lastState: z.ZodString;
36
+ }, z.core.$strip>;
37
+ export type RunAbortedData = z.infer<typeof runAbortedDataSchema>;
38
+ export declare const runResumedDataSchema: z.ZodObject<{
39
+ resumedFromState: z.ZodString;
40
+ checkpointTimestamp: z.ZodString;
41
+ eventsReplayed: z.ZodNumber;
42
+ }, z.core.$strip>;
43
+ export type RunResumedData = z.infer<typeof runResumedDataSchema>;
44
+ export declare const runPausedDataSchema: z.ZodObject<{
45
+ reason: z.ZodEnum<{
46
+ human_input_required: "human_input_required";
47
+ rate_limited: "rate_limited";
48
+ manual: "manual";
49
+ }>;
50
+ pausedInState: z.ZodString;
51
+ }, z.core.$strip>;
52
+ export type RunPausedData = z.infer<typeof runPausedDataSchema>;
53
+ export declare const stateEnteredDataSchema: z.ZodObject<{
54
+ stateId: z.ZodString;
55
+ stateType: z.ZodString;
56
+ entryActionsCount: z.ZodNumber;
57
+ }, z.core.$strip>;
58
+ export type StateEnteredData = z.infer<typeof stateEnteredDataSchema>;
59
+ export declare const stateExitedDataSchema: z.ZodObject<{
60
+ stateId: z.ZodString;
61
+ durationMs: z.ZodNumber;
62
+ }, z.core.$strip>;
63
+ export type StateExitedData = z.infer<typeof stateExitedDataSchema>;
64
+ export declare const transitionRequestedDataSchema: z.ZodObject<{
65
+ from: z.ZodString;
66
+ to: z.ZodString;
67
+ trigger: z.ZodString;
68
+ guardsToEvaluate: z.ZodNumber;
69
+ }, z.core.$strip>;
70
+ export type TransitionRequestedData = z.infer<typeof transitionRequestedDataSchema>;
71
+ export declare const transitionCompletedDataSchema: z.ZodObject<{
72
+ from: z.ZodString;
73
+ to: z.ZodString;
74
+ trigger: z.ZodString;
75
+ guardsEvaluated: z.ZodNumber;
76
+ guardsPassed: z.ZodNumber;
77
+ governanceConsulted: z.ZodBoolean;
78
+ durationMs: z.ZodNumber;
79
+ }, z.core.$strip>;
80
+ export type TransitionCompletedData = z.infer<typeof transitionCompletedDataSchema>;
81
+ export declare const transitionDeniedDataSchema: z.ZodObject<{
82
+ from: z.ZodString;
83
+ to: z.ZodString;
84
+ trigger: z.ZodString;
85
+ deniedBy: z.ZodEnum<{
86
+ policy: "policy";
87
+ guard: "guard";
88
+ governance: "governance";
89
+ }>;
90
+ reason: z.ZodString;
91
+ }, z.core.$strip>;
92
+ export type TransitionDeniedData = z.infer<typeof transitionDeniedDataSchema>;
93
+ export declare const workerDispatchedDataSchema: z.ZodObject<{
94
+ workerId: z.ZodString;
95
+ role: z.ZodString;
96
+ model: z.ZodString;
97
+ inputArtifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
98
+ type: z.ZodEnum<{
99
+ intake_requirements: "intake_requirements";
100
+ canonical_specification: "canonical_specification";
101
+ clarification_questions: "clarification_questions";
102
+ clarification_answers: "clarification_answers";
103
+ plan: "plan";
104
+ plan_review: "plan_review";
105
+ test_plan: "test_plan";
106
+ implementation: "implementation";
107
+ static_review: "static_review";
108
+ security_review: "security_review";
109
+ performance_review: "performance_review";
110
+ adversarial_review: "adversarial_review";
111
+ design_review: "design_review";
112
+ docs_review: "docs_review";
113
+ ux_review: "ux_review";
114
+ review_report: "review_report";
115
+ remediation_plan: "remediation_plan";
116
+ verification: "verification";
117
+ judge_decision: "judge_decision";
118
+ planning_agreement: "planning_agreement";
119
+ implementation_agreement: "implementation_agreement";
120
+ verification_agreement: "verification_agreement";
121
+ release_summary: "release_summary";
122
+ release_agreement: "release_agreement";
123
+ escalation_context: "escalation_context";
124
+ run_manifest: "run_manifest";
125
+ codebase_context: "codebase_context";
126
+ test_suite: "test_suite";
127
+ acceptance_validation: "acceptance_validation";
128
+ review_findings: "review_findings";
129
+ task_breakdown: "task_breakdown";
130
+ decomposition_review: "decomposition_review";
131
+ task_specifications: "task_specifications";
132
+ pr_diff_context: "pr_diff_context";
133
+ }>;
134
+ name: z.ZodString;
135
+ version: z.ZodNumber;
136
+ checksum: z.ZodString;
137
+ }, z.core.$strip>>>;
138
+ }, z.core.$strip>;
139
+ export type WorkerDispatchedData = z.infer<typeof workerDispatchedDataSchema>;
140
+ export declare const workerCompletedDataSchema: z.ZodObject<{
141
+ workerId: z.ZodString;
142
+ role: z.ZodString;
143
+ model: z.ZodString;
144
+ outputArtifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
145
+ type: z.ZodEnum<{
146
+ intake_requirements: "intake_requirements";
147
+ canonical_specification: "canonical_specification";
148
+ clarification_questions: "clarification_questions";
149
+ clarification_answers: "clarification_answers";
150
+ plan: "plan";
151
+ plan_review: "plan_review";
152
+ test_plan: "test_plan";
153
+ implementation: "implementation";
154
+ static_review: "static_review";
155
+ security_review: "security_review";
156
+ performance_review: "performance_review";
157
+ adversarial_review: "adversarial_review";
158
+ design_review: "design_review";
159
+ docs_review: "docs_review";
160
+ ux_review: "ux_review";
161
+ review_report: "review_report";
162
+ remediation_plan: "remediation_plan";
163
+ verification: "verification";
164
+ judge_decision: "judge_decision";
165
+ planning_agreement: "planning_agreement";
166
+ implementation_agreement: "implementation_agreement";
167
+ verification_agreement: "verification_agreement";
168
+ release_summary: "release_summary";
169
+ release_agreement: "release_agreement";
170
+ escalation_context: "escalation_context";
171
+ run_manifest: "run_manifest";
172
+ codebase_context: "codebase_context";
173
+ test_suite: "test_suite";
174
+ acceptance_validation: "acceptance_validation";
175
+ review_findings: "review_findings";
176
+ task_breakdown: "task_breakdown";
177
+ decomposition_review: "decomposition_review";
178
+ task_specifications: "task_specifications";
179
+ pr_diff_context: "pr_diff_context";
180
+ }>;
181
+ name: z.ZodString;
182
+ version: z.ZodNumber;
183
+ checksum: z.ZodString;
184
+ }, z.core.$strip>>>;
185
+ durationMs: z.ZodNumber;
186
+ inputTokens: z.ZodNumber;
187
+ outputTokens: z.ZodNumber;
188
+ repairAttempts: z.ZodNumber;
189
+ }, z.core.$strip>;
190
+ export type WorkerCompletedData = z.infer<typeof workerCompletedDataSchema>;
191
+ export declare const workerFailedDataSchema: z.ZodObject<{
192
+ workerId: z.ZodString;
193
+ role: z.ZodString;
194
+ error: z.ZodString;
195
+ errorCategory: z.ZodEnum<{
196
+ unknown: "unknown";
197
+ timeout: "timeout";
198
+ agent_error: "agent_error";
199
+ cancelled: "cancelled";
200
+ validation_error: "validation_error";
201
+ }>;
202
+ durationMs: z.ZodNumber;
203
+ inputTokens: z.ZodNumber;
204
+ outputTokens: z.ZodNumber;
205
+ willRetry: z.ZodBoolean;
206
+ }, z.core.$strip>;
207
+ export type WorkerFailedData = z.infer<typeof workerFailedDataSchema>;
208
+ export declare const workerRetriedDataSchema: z.ZodObject<{
209
+ workerId: z.ZodString;
210
+ role: z.ZodString;
211
+ attempt: z.ZodNumber;
212
+ maxAttempts: z.ZodNumber;
213
+ retryReason: z.ZodString;
214
+ backoffMs: z.ZodNumber;
215
+ }, z.core.$strip>;
216
+ export type WorkerRetriedData = z.infer<typeof workerRetriedDataSchema>;
217
+ export declare const workerCancelledDataSchema: z.ZodObject<{
218
+ workerId: z.ZodString;
219
+ role: z.ZodString;
220
+ cancelledBy: z.ZodEnum<{
221
+ timeout: "timeout";
222
+ governance: "governance";
223
+ system: "system";
224
+ user: "user";
225
+ }>;
226
+ reason: z.ZodString;
227
+ }, z.core.$strip>;
228
+ export type WorkerCancelledData = z.infer<typeof workerCancelledDataSchema>;
229
+ export declare const workerTimeoutDataSchema: z.ZodObject<{
230
+ workerId: z.ZodString;
231
+ role: z.ZodString;
232
+ timeoutMs: z.ZodNumber;
233
+ elapsedMs: z.ZodNumber;
234
+ }, z.core.$strip>;
235
+ export type WorkerTimeoutData = z.infer<typeof workerTimeoutDataSchema>;
236
+ export declare const artifactStoredDataSchema: z.ZodObject<{
237
+ artifactRef: z.ZodObject<{
238
+ type: z.ZodEnum<{
239
+ intake_requirements: "intake_requirements";
240
+ canonical_specification: "canonical_specification";
241
+ clarification_questions: "clarification_questions";
242
+ clarification_answers: "clarification_answers";
243
+ plan: "plan";
244
+ plan_review: "plan_review";
245
+ test_plan: "test_plan";
246
+ implementation: "implementation";
247
+ static_review: "static_review";
248
+ security_review: "security_review";
249
+ performance_review: "performance_review";
250
+ adversarial_review: "adversarial_review";
251
+ design_review: "design_review";
252
+ docs_review: "docs_review";
253
+ ux_review: "ux_review";
254
+ review_report: "review_report";
255
+ remediation_plan: "remediation_plan";
256
+ verification: "verification";
257
+ judge_decision: "judge_decision";
258
+ planning_agreement: "planning_agreement";
259
+ implementation_agreement: "implementation_agreement";
260
+ verification_agreement: "verification_agreement";
261
+ release_summary: "release_summary";
262
+ release_agreement: "release_agreement";
263
+ escalation_context: "escalation_context";
264
+ run_manifest: "run_manifest";
265
+ codebase_context: "codebase_context";
266
+ test_suite: "test_suite";
267
+ acceptance_validation: "acceptance_validation";
268
+ review_findings: "review_findings";
269
+ task_breakdown: "task_breakdown";
270
+ decomposition_review: "decomposition_review";
271
+ task_specifications: "task_specifications";
272
+ pr_diff_context: "pr_diff_context";
273
+ }>;
274
+ name: z.ZodString;
275
+ version: z.ZodNumber;
276
+ checksum: z.ZodString;
277
+ }, z.core.$strip>;
278
+ producedBy: z.ZodString;
279
+ sizeBytes: z.ZodNumber;
280
+ predecessorRef: z.ZodOptional<z.ZodObject<{
281
+ type: z.ZodEnum<{
282
+ intake_requirements: "intake_requirements";
283
+ canonical_specification: "canonical_specification";
284
+ clarification_questions: "clarification_questions";
285
+ clarification_answers: "clarification_answers";
286
+ plan: "plan";
287
+ plan_review: "plan_review";
288
+ test_plan: "test_plan";
289
+ implementation: "implementation";
290
+ static_review: "static_review";
291
+ security_review: "security_review";
292
+ performance_review: "performance_review";
293
+ adversarial_review: "adversarial_review";
294
+ design_review: "design_review";
295
+ docs_review: "docs_review";
296
+ ux_review: "ux_review";
297
+ review_report: "review_report";
298
+ remediation_plan: "remediation_plan";
299
+ verification: "verification";
300
+ judge_decision: "judge_decision";
301
+ planning_agreement: "planning_agreement";
302
+ implementation_agreement: "implementation_agreement";
303
+ verification_agreement: "verification_agreement";
304
+ release_summary: "release_summary";
305
+ release_agreement: "release_agreement";
306
+ escalation_context: "escalation_context";
307
+ run_manifest: "run_manifest";
308
+ codebase_context: "codebase_context";
309
+ test_suite: "test_suite";
310
+ acceptance_validation: "acceptance_validation";
311
+ review_findings: "review_findings";
312
+ task_breakdown: "task_breakdown";
313
+ decomposition_review: "decomposition_review";
314
+ task_specifications: "task_specifications";
315
+ pr_diff_context: "pr_diff_context";
316
+ }>;
317
+ name: z.ZodString;
318
+ version: z.ZodNumber;
319
+ checksum: z.ZodString;
320
+ }, z.core.$strip>>;
321
+ }, z.core.$strip>;
322
+ export type ArtifactStoredData = z.infer<typeof artifactStoredDataSchema>;
323
+ export declare const artifactVerifiedDataSchema: z.ZodObject<{
324
+ artifactRef: z.ZodObject<{
325
+ type: z.ZodEnum<{
326
+ intake_requirements: "intake_requirements";
327
+ canonical_specification: "canonical_specification";
328
+ clarification_questions: "clarification_questions";
329
+ clarification_answers: "clarification_answers";
330
+ plan: "plan";
331
+ plan_review: "plan_review";
332
+ test_plan: "test_plan";
333
+ implementation: "implementation";
334
+ static_review: "static_review";
335
+ security_review: "security_review";
336
+ performance_review: "performance_review";
337
+ adversarial_review: "adversarial_review";
338
+ design_review: "design_review";
339
+ docs_review: "docs_review";
340
+ ux_review: "ux_review";
341
+ review_report: "review_report";
342
+ remediation_plan: "remediation_plan";
343
+ verification: "verification";
344
+ judge_decision: "judge_decision";
345
+ planning_agreement: "planning_agreement";
346
+ implementation_agreement: "implementation_agreement";
347
+ verification_agreement: "verification_agreement";
348
+ release_summary: "release_summary";
349
+ release_agreement: "release_agreement";
350
+ escalation_context: "escalation_context";
351
+ run_manifest: "run_manifest";
352
+ codebase_context: "codebase_context";
353
+ test_suite: "test_suite";
354
+ acceptance_validation: "acceptance_validation";
355
+ review_findings: "review_findings";
356
+ task_breakdown: "task_breakdown";
357
+ decomposition_review: "decomposition_review";
358
+ task_specifications: "task_specifications";
359
+ pr_diff_context: "pr_diff_context";
360
+ }>;
361
+ name: z.ZodString;
362
+ version: z.ZodNumber;
363
+ checksum: z.ZodString;
364
+ }, z.core.$strip>;
365
+ integrityValid: z.ZodBoolean;
366
+ expectedChecksum: z.ZodString;
367
+ actualChecksum: z.ZodString;
368
+ }, z.core.$strip>;
369
+ export type ArtifactVerifiedData = z.infer<typeof artifactVerifiedDataSchema>;
370
+ export declare const artifactInvalidatedDataSchema: z.ZodObject<{
371
+ artifactRef: z.ZodObject<{
372
+ type: z.ZodEnum<{
373
+ intake_requirements: "intake_requirements";
374
+ canonical_specification: "canonical_specification";
375
+ clarification_questions: "clarification_questions";
376
+ clarification_answers: "clarification_answers";
377
+ plan: "plan";
378
+ plan_review: "plan_review";
379
+ test_plan: "test_plan";
380
+ implementation: "implementation";
381
+ static_review: "static_review";
382
+ security_review: "security_review";
383
+ performance_review: "performance_review";
384
+ adversarial_review: "adversarial_review";
385
+ design_review: "design_review";
386
+ docs_review: "docs_review";
387
+ ux_review: "ux_review";
388
+ review_report: "review_report";
389
+ remediation_plan: "remediation_plan";
390
+ verification: "verification";
391
+ judge_decision: "judge_decision";
392
+ planning_agreement: "planning_agreement";
393
+ implementation_agreement: "implementation_agreement";
394
+ verification_agreement: "verification_agreement";
395
+ release_summary: "release_summary";
396
+ release_agreement: "release_agreement";
397
+ escalation_context: "escalation_context";
398
+ run_manifest: "run_manifest";
399
+ codebase_context: "codebase_context";
400
+ test_suite: "test_suite";
401
+ acceptance_validation: "acceptance_validation";
402
+ review_findings: "review_findings";
403
+ task_breakdown: "task_breakdown";
404
+ decomposition_review: "decomposition_review";
405
+ task_specifications: "task_specifications";
406
+ pr_diff_context: "pr_diff_context";
407
+ }>;
408
+ name: z.ZodString;
409
+ version: z.ZodNumber;
410
+ checksum: z.ZodString;
411
+ }, z.core.$strip>;
412
+ reason: z.ZodEnum<{
413
+ policy: "policy";
414
+ manual: "manual";
415
+ upstream_changed: "upstream_changed";
416
+ }>;
417
+ invalidatedBy: z.ZodString;
418
+ }, z.core.$strip>;
419
+ export type ArtifactInvalidatedData = z.infer<typeof artifactInvalidatedDataSchema>;
420
+ export declare const governanceDecisionDataSchema: z.ZodObject<{
421
+ transition: z.ZodObject<{
422
+ from: z.ZodString;
423
+ to: z.ZodString;
424
+ }, z.core.$strip>;
425
+ decision: z.ZodEnum<{
426
+ allowed: "allowed";
427
+ denied: "denied";
428
+ escalated: "escalated";
429
+ }>;
430
+ policiesEvaluated: z.ZodReadonly<z.ZodArray<z.ZodString>>;
431
+ policyResults: z.ZodReadonly<z.ZodArray<z.ZodObject<{
432
+ policyType: z.ZodString;
433
+ outcome: z.ZodEnum<{
434
+ pass: "pass";
435
+ fail: "fail";
436
+ skip: "skip";
437
+ }>;
438
+ reason: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strip>>>;
440
+ reason: z.ZodString;
441
+ }, z.core.$strip>;
442
+ export type GovernanceDecisionData = z.infer<typeof governanceDecisionDataSchema>;
443
+ export declare const agreementProducedDataSchema: z.ZodObject<{
444
+ agreementType: z.ZodString;
445
+ artifactRef: z.ZodObject<{
446
+ type: z.ZodEnum<{
447
+ intake_requirements: "intake_requirements";
448
+ canonical_specification: "canonical_specification";
449
+ clarification_questions: "clarification_questions";
450
+ clarification_answers: "clarification_answers";
451
+ plan: "plan";
452
+ plan_review: "plan_review";
453
+ test_plan: "test_plan";
454
+ implementation: "implementation";
455
+ static_review: "static_review";
456
+ security_review: "security_review";
457
+ performance_review: "performance_review";
458
+ adversarial_review: "adversarial_review";
459
+ design_review: "design_review";
460
+ docs_review: "docs_review";
461
+ ux_review: "ux_review";
462
+ review_report: "review_report";
463
+ remediation_plan: "remediation_plan";
464
+ verification: "verification";
465
+ judge_decision: "judge_decision";
466
+ planning_agreement: "planning_agreement";
467
+ implementation_agreement: "implementation_agreement";
468
+ verification_agreement: "verification_agreement";
469
+ release_summary: "release_summary";
470
+ release_agreement: "release_agreement";
471
+ escalation_context: "escalation_context";
472
+ run_manifest: "run_manifest";
473
+ codebase_context: "codebase_context";
474
+ test_suite: "test_suite";
475
+ acceptance_validation: "acceptance_validation";
476
+ review_findings: "review_findings";
477
+ task_breakdown: "task_breakdown";
478
+ decomposition_review: "decomposition_review";
479
+ task_specifications: "task_specifications";
480
+ pr_diff_context: "pr_diff_context";
481
+ }>;
482
+ name: z.ZodString;
483
+ version: z.ZodNumber;
484
+ checksum: z.ZodString;
485
+ }, z.core.$strip>;
486
+ participantCount: z.ZodNumber;
487
+ findingsCount: z.ZodNumber;
488
+ verdict: z.ZodEnum<{
489
+ approved: "approved";
490
+ conditionally_approved: "conditionally_approved";
491
+ rejected: "rejected";
492
+ }>;
493
+ }, z.core.$strip>;
494
+ export type AgreementProducedData = z.infer<typeof agreementProducedDataSchema>;
495
+ export declare const escalationTriggeredDataSchema: z.ZodObject<{
496
+ trigger: z.ZodEnum<{
497
+ iteration_limit_exceeded: "iteration_limit_exceeded";
498
+ quality_gate_failed: "quality_gate_failed";
499
+ unresolvable_conflict: "unresolvable_conflict";
500
+ human_requested: "human_requested";
501
+ token_budget_exceeded: "token_budget_exceeded";
502
+ retry_limit_exceeded: "retry_limit_exceeded";
503
+ confidence_too_low: "confidence_too_low";
504
+ provider_failure: "provider_failure";
505
+ timeout: "timeout";
506
+ unrecoverable_error: "unrecoverable_error";
507
+ }>;
508
+ currentState: z.ZodString;
509
+ iterationCount: z.ZodNumber;
510
+ escalationContextRef: z.ZodObject<{
511
+ type: z.ZodEnum<{
512
+ intake_requirements: "intake_requirements";
513
+ canonical_specification: "canonical_specification";
514
+ clarification_questions: "clarification_questions";
515
+ clarification_answers: "clarification_answers";
516
+ plan: "plan";
517
+ plan_review: "plan_review";
518
+ test_plan: "test_plan";
519
+ implementation: "implementation";
520
+ static_review: "static_review";
521
+ security_review: "security_review";
522
+ performance_review: "performance_review";
523
+ adversarial_review: "adversarial_review";
524
+ design_review: "design_review";
525
+ docs_review: "docs_review";
526
+ ux_review: "ux_review";
527
+ review_report: "review_report";
528
+ remediation_plan: "remediation_plan";
529
+ verification: "verification";
530
+ judge_decision: "judge_decision";
531
+ planning_agreement: "planning_agreement";
532
+ implementation_agreement: "implementation_agreement";
533
+ verification_agreement: "verification_agreement";
534
+ release_summary: "release_summary";
535
+ release_agreement: "release_agreement";
536
+ escalation_context: "escalation_context";
537
+ run_manifest: "run_manifest";
538
+ codebase_context: "codebase_context";
539
+ test_suite: "test_suite";
540
+ acceptance_validation: "acceptance_validation";
541
+ review_findings: "review_findings";
542
+ task_breakdown: "task_breakdown";
543
+ decomposition_review: "decomposition_review";
544
+ task_specifications: "task_specifications";
545
+ pr_diff_context: "pr_diff_context";
546
+ }>;
547
+ name: z.ZodString;
548
+ version: z.ZodNumber;
549
+ checksum: z.ZodString;
550
+ }, z.core.$strip>;
551
+ }, z.core.$strip>;
552
+ export type EscalationTriggeredData = z.infer<typeof escalationTriggeredDataSchema>;
553
+ export declare const policyEvaluatedDataSchema: z.ZodObject<{
554
+ policyCount: z.ZodNumber;
555
+ passCount: z.ZodNumber;
556
+ failCount: z.ZodNumber;
557
+ skipCount: z.ZodNumber;
558
+ overallOutcome: z.ZodEnum<{
559
+ deny: "deny";
560
+ escalate: "escalate";
561
+ allow: "allow";
562
+ }>;
563
+ }, z.core.$strip>;
564
+ export type PolicyEvaluatedData = z.infer<typeof policyEvaluatedDataSchema>;
565
+ export declare const policyDeniedDataSchema: z.ZodObject<{
566
+ policyType: z.ZodString;
567
+ reason: z.ZodString;
568
+ remediations: z.ZodReadonly<z.ZodArray<z.ZodString>>;
569
+ }, z.core.$strip>;
570
+ export type PolicyDeniedData = z.infer<typeof policyDeniedDataSchema>;
571
+ export declare const policyEscalatedDataSchema: z.ZodObject<{
572
+ policyType: z.ZodString;
573
+ reason: z.ZodString;
574
+ escalationTarget: z.ZodEnum<{
575
+ human: "human";
576
+ governance: "governance";
577
+ }>;
578
+ }, z.core.$strip>;
579
+ export type PolicyEscalatedData = z.infer<typeof policyEscalatedDataSchema>;
580
+ export declare const findingRaisedDataSchema: z.ZodObject<{
581
+ findingId: z.ZodString;
582
+ severity: z.ZodEnum<{
583
+ high: "high";
584
+ medium: "medium";
585
+ low: "low";
586
+ info: "info";
587
+ critical: "critical";
588
+ }>;
589
+ category: z.ZodString;
590
+ title: z.ZodString;
591
+ reviewArtifact: z.ZodObject<{
592
+ type: z.ZodEnum<{
593
+ intake_requirements: "intake_requirements";
594
+ canonical_specification: "canonical_specification";
595
+ clarification_questions: "clarification_questions";
596
+ clarification_answers: "clarification_answers";
597
+ plan: "plan";
598
+ plan_review: "plan_review";
599
+ test_plan: "test_plan";
600
+ implementation: "implementation";
601
+ static_review: "static_review";
602
+ security_review: "security_review";
603
+ performance_review: "performance_review";
604
+ adversarial_review: "adversarial_review";
605
+ design_review: "design_review";
606
+ docs_review: "docs_review";
607
+ ux_review: "ux_review";
608
+ review_report: "review_report";
609
+ remediation_plan: "remediation_plan";
610
+ verification: "verification";
611
+ judge_decision: "judge_decision";
612
+ planning_agreement: "planning_agreement";
613
+ implementation_agreement: "implementation_agreement";
614
+ verification_agreement: "verification_agreement";
615
+ release_summary: "release_summary";
616
+ release_agreement: "release_agreement";
617
+ escalation_context: "escalation_context";
618
+ run_manifest: "run_manifest";
619
+ codebase_context: "codebase_context";
620
+ test_suite: "test_suite";
621
+ acceptance_validation: "acceptance_validation";
622
+ review_findings: "review_findings";
623
+ task_breakdown: "task_breakdown";
624
+ decomposition_review: "decomposition_review";
625
+ task_specifications: "task_specifications";
626
+ pr_diff_context: "pr_diff_context";
627
+ }>;
628
+ name: z.ZodString;
629
+ version: z.ZodNumber;
630
+ checksum: z.ZodString;
631
+ }, z.core.$strip>;
632
+ }, z.core.$strip>;
633
+ export type FindingRaisedData = z.infer<typeof findingRaisedDataSchema>;
634
+ export declare const findingAddressedDataSchema: z.ZodObject<{
635
+ findingId: z.ZodString;
636
+ resolutionType: z.ZodEnum<{
637
+ fixed: "fixed";
638
+ acknowledged: "acknowledged";
639
+ wont_fix: "wont_fix";
640
+ deferred: "deferred";
641
+ }>;
642
+ implementationArtifact: z.ZodObject<{
643
+ type: z.ZodEnum<{
644
+ intake_requirements: "intake_requirements";
645
+ canonical_specification: "canonical_specification";
646
+ clarification_questions: "clarification_questions";
647
+ clarification_answers: "clarification_answers";
648
+ plan: "plan";
649
+ plan_review: "plan_review";
650
+ test_plan: "test_plan";
651
+ implementation: "implementation";
652
+ static_review: "static_review";
653
+ security_review: "security_review";
654
+ performance_review: "performance_review";
655
+ adversarial_review: "adversarial_review";
656
+ design_review: "design_review";
657
+ docs_review: "docs_review";
658
+ ux_review: "ux_review";
659
+ review_report: "review_report";
660
+ remediation_plan: "remediation_plan";
661
+ verification: "verification";
662
+ judge_decision: "judge_decision";
663
+ planning_agreement: "planning_agreement";
664
+ implementation_agreement: "implementation_agreement";
665
+ verification_agreement: "verification_agreement";
666
+ release_summary: "release_summary";
667
+ release_agreement: "release_agreement";
668
+ escalation_context: "escalation_context";
669
+ run_manifest: "run_manifest";
670
+ codebase_context: "codebase_context";
671
+ test_suite: "test_suite";
672
+ acceptance_validation: "acceptance_validation";
673
+ review_findings: "review_findings";
674
+ task_breakdown: "task_breakdown";
675
+ decomposition_review: "decomposition_review";
676
+ task_specifications: "task_specifications";
677
+ pr_diff_context: "pr_diff_context";
678
+ }>;
679
+ name: z.ZodString;
680
+ version: z.ZodNumber;
681
+ checksum: z.ZodString;
682
+ }, z.core.$strip>;
683
+ }, z.core.$strip>;
684
+ export type FindingAddressedData = z.infer<typeof findingAddressedDataSchema>;
685
+ export declare const findingAcceptedDataSchema: z.ZodObject<{
686
+ findingId: z.ZodString;
687
+ acceptedBy: z.ZodString;
688
+ }, z.core.$strip>;
689
+ export type FindingAcceptedData = z.infer<typeof findingAcceptedDataSchema>;
690
+ export declare const findingRejectedDataSchema: z.ZodObject<{
691
+ findingId: z.ZodString;
692
+ rejectedBy: z.ZodString;
693
+ reason: z.ZodString;
694
+ }, z.core.$strip>;
695
+ export type FindingRejectedData = z.infer<typeof findingRejectedDataSchema>;
696
+ export declare const findingEscalatedDataSchema: z.ZodObject<{
697
+ findingId: z.ZodString;
698
+ reason: z.ZodString;
699
+ escalationContextRef: z.ZodObject<{
700
+ type: z.ZodEnum<{
701
+ intake_requirements: "intake_requirements";
702
+ canonical_specification: "canonical_specification";
703
+ clarification_questions: "clarification_questions";
704
+ clarification_answers: "clarification_answers";
705
+ plan: "plan";
706
+ plan_review: "plan_review";
707
+ test_plan: "test_plan";
708
+ implementation: "implementation";
709
+ static_review: "static_review";
710
+ security_review: "security_review";
711
+ performance_review: "performance_review";
712
+ adversarial_review: "adversarial_review";
713
+ design_review: "design_review";
714
+ docs_review: "docs_review";
715
+ ux_review: "ux_review";
716
+ review_report: "review_report";
717
+ remediation_plan: "remediation_plan";
718
+ verification: "verification";
719
+ judge_decision: "judge_decision";
720
+ planning_agreement: "planning_agreement";
721
+ implementation_agreement: "implementation_agreement";
722
+ verification_agreement: "verification_agreement";
723
+ release_summary: "release_summary";
724
+ release_agreement: "release_agreement";
725
+ escalation_context: "escalation_context";
726
+ run_manifest: "run_manifest";
727
+ codebase_context: "codebase_context";
728
+ test_suite: "test_suite";
729
+ acceptance_validation: "acceptance_validation";
730
+ review_findings: "review_findings";
731
+ task_breakdown: "task_breakdown";
732
+ decomposition_review: "decomposition_review";
733
+ task_specifications: "task_specifications";
734
+ pr_diff_context: "pr_diff_context";
735
+ }>;
736
+ name: z.ZodString;
737
+ version: z.ZodNumber;
738
+ checksum: z.ZodString;
739
+ }, z.core.$strip>;
740
+ }, z.core.$strip>;
741
+ export type FindingEscalatedData = z.infer<typeof findingEscalatedDataSchema>;
742
+ export declare const humanInputRequestedDataSchema: z.ZodObject<{
743
+ requestType: z.ZodEnum<{
744
+ clarification: "clarification";
745
+ review: "review";
746
+ approval: "approval";
747
+ decision: "decision";
748
+ }>;
749
+ context: z.ZodString;
750
+ currentState: z.ZodString;
751
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
752
+ }, z.core.$strip>;
753
+ export type HumanInputRequestedData = z.infer<typeof humanInputRequestedDataSchema>;
754
+ export declare const humanInputReceivedDataSchema: z.ZodObject<{
755
+ requestType: z.ZodString;
756
+ responseTimeMs: z.ZodNumber;
757
+ inputSizeChars: z.ZodNumber;
758
+ }, z.core.$strip>;
759
+ export type HumanInputReceivedData = z.infer<typeof humanInputReceivedDataSchema>;
760
+ export declare const humanApprovalGrantedDataSchema: z.ZodObject<{
761
+ approvalType: z.ZodString;
762
+ conditions: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
763
+ artifactRef: z.ZodOptional<z.ZodObject<{
764
+ type: z.ZodEnum<{
765
+ intake_requirements: "intake_requirements";
766
+ canonical_specification: "canonical_specification";
767
+ clarification_questions: "clarification_questions";
768
+ clarification_answers: "clarification_answers";
769
+ plan: "plan";
770
+ plan_review: "plan_review";
771
+ test_plan: "test_plan";
772
+ implementation: "implementation";
773
+ static_review: "static_review";
774
+ security_review: "security_review";
775
+ performance_review: "performance_review";
776
+ adversarial_review: "adversarial_review";
777
+ design_review: "design_review";
778
+ docs_review: "docs_review";
779
+ ux_review: "ux_review";
780
+ review_report: "review_report";
781
+ remediation_plan: "remediation_plan";
782
+ verification: "verification";
783
+ judge_decision: "judge_decision";
784
+ planning_agreement: "planning_agreement";
785
+ implementation_agreement: "implementation_agreement";
786
+ verification_agreement: "verification_agreement";
787
+ release_summary: "release_summary";
788
+ release_agreement: "release_agreement";
789
+ escalation_context: "escalation_context";
790
+ run_manifest: "run_manifest";
791
+ codebase_context: "codebase_context";
792
+ test_suite: "test_suite";
793
+ acceptance_validation: "acceptance_validation";
794
+ review_findings: "review_findings";
795
+ task_breakdown: "task_breakdown";
796
+ decomposition_review: "decomposition_review";
797
+ task_specifications: "task_specifications";
798
+ pr_diff_context: "pr_diff_context";
799
+ }>;
800
+ name: z.ZodString;
801
+ version: z.ZodNumber;
802
+ checksum: z.ZodString;
803
+ }, z.core.$strip>>;
804
+ }, z.core.$strip>;
805
+ export type HumanApprovalGrantedData = z.infer<typeof humanApprovalGrantedDataSchema>;
806
+ export declare const humanApprovalDeniedDataSchema: z.ZodObject<{
807
+ approvalType: z.ZodString;
808
+ reason: z.ZodString;
809
+ artifactRef: z.ZodOptional<z.ZodObject<{
810
+ type: z.ZodEnum<{
811
+ intake_requirements: "intake_requirements";
812
+ canonical_specification: "canonical_specification";
813
+ clarification_questions: "clarification_questions";
814
+ clarification_answers: "clarification_answers";
815
+ plan: "plan";
816
+ plan_review: "plan_review";
817
+ test_plan: "test_plan";
818
+ implementation: "implementation";
819
+ static_review: "static_review";
820
+ security_review: "security_review";
821
+ performance_review: "performance_review";
822
+ adversarial_review: "adversarial_review";
823
+ design_review: "design_review";
824
+ docs_review: "docs_review";
825
+ ux_review: "ux_review";
826
+ review_report: "review_report";
827
+ remediation_plan: "remediation_plan";
828
+ verification: "verification";
829
+ judge_decision: "judge_decision";
830
+ planning_agreement: "planning_agreement";
831
+ implementation_agreement: "implementation_agreement";
832
+ verification_agreement: "verification_agreement";
833
+ release_summary: "release_summary";
834
+ release_agreement: "release_agreement";
835
+ escalation_context: "escalation_context";
836
+ run_manifest: "run_manifest";
837
+ codebase_context: "codebase_context";
838
+ test_suite: "test_suite";
839
+ acceptance_validation: "acceptance_validation";
840
+ review_findings: "review_findings";
841
+ task_breakdown: "task_breakdown";
842
+ decomposition_review: "decomposition_review";
843
+ task_specifications: "task_specifications";
844
+ pr_diff_context: "pr_diff_context";
845
+ }>;
846
+ name: z.ZodString;
847
+ version: z.ZodNumber;
848
+ checksum: z.ZodString;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strip>;
851
+ export type HumanApprovalDeniedData = z.infer<typeof humanApprovalDeniedDataSchema>;
852
+ export declare const humanTimeoutDataSchema: z.ZodObject<{
853
+ requestType: z.ZodString;
854
+ timeoutMs: z.ZodNumber;
855
+ fallbackAction: z.ZodEnum<{
856
+ abort: "abort";
857
+ escalate: "escalate";
858
+ continue_with_default: "continue_with_default";
859
+ }>;
860
+ }, z.core.$strip>;
861
+ export type HumanTimeoutData = z.infer<typeof humanTimeoutDataSchema>;
862
+ export declare const humanPermissionRequestedDataSchema: z.ZodObject<{
863
+ runId: z.ZodString;
864
+ messageId: z.ZodString;
865
+ action: z.ZodString;
866
+ resource: z.ZodString;
867
+ riskLevel: z.ZodEnum<{
868
+ high: "high";
869
+ medium: "medium";
870
+ low: "low";
871
+ }>;
872
+ reasoning: z.ZodOptional<z.ZodString>;
873
+ }, z.core.$strip>;
874
+ export type HumanPermissionRequestedData = z.infer<typeof humanPermissionRequestedDataSchema>;
875
+ export declare const humanPermissionResolvedDataSchema: z.ZodObject<{
876
+ runId: z.ZodString;
877
+ messageId: z.ZodString;
878
+ granted: z.ZodBoolean;
879
+ }, z.core.$strip>;
880
+ export type HumanPermissionResolvedData = z.infer<typeof humanPermissionResolvedDataSchema>;
881
+ export declare const humanClarificationRequestedDataSchema: z.ZodObject<{
882
+ runId: z.ZodString;
883
+ messageId: z.ZodString;
884
+ question: z.ZodString;
885
+ context: z.ZodOptional<z.ZodString>;
886
+ }, z.core.$strip>;
887
+ export type HumanClarificationRequestedData = z.infer<typeof humanClarificationRequestedDataSchema>;
888
+ export declare const humanClarificationAnsweredDataSchema: z.ZodObject<{
889
+ runId: z.ZodString;
890
+ messageId: z.ZodString;
891
+ answer: z.ZodString;
892
+ }, z.core.$strip>;
893
+ export type HumanClarificationAnsweredData = z.infer<typeof humanClarificationAnsweredDataSchema>;
894
+ export declare const checkpointSavedDataSchema: z.ZodObject<{
895
+ checkpointId: z.ZodString;
896
+ currentState: z.ZodString;
897
+ artifactCount: z.ZodNumber;
898
+ sizeBytes: z.ZodNumber;
899
+ }, z.core.$strip>;
900
+ export type CheckpointSavedData = z.infer<typeof checkpointSavedDataSchema>;
901
+ export declare const checkpointRestoredDataSchema: z.ZodObject<{
902
+ checkpointId: z.ZodString;
903
+ restoredToState: z.ZodString;
904
+ eventsSinceCheckpoint: z.ZodNumber;
905
+ }, z.core.$strip>;
906
+ export type CheckpointRestoredData = z.infer<typeof checkpointRestoredDataSchema>;
907
+ export declare const systemErrorDataSchema: z.ZodObject<{
908
+ component: z.ZodString;
909
+ message: z.ZodString;
910
+ recoverable: z.ZodBoolean;
911
+ stack: z.ZodOptional<z.ZodString>;
912
+ }, z.core.$strip>;
913
+ export type SystemErrorData = z.infer<typeof systemErrorDataSchema>;
914
+ export declare const systemWarningDataSchema: z.ZodObject<{
915
+ component: z.ZodString;
916
+ message: z.ZodString;
917
+ suggestion: z.ZodOptional<z.ZodString>;
918
+ }, z.core.$strip>;
919
+ export type SystemWarningData = z.infer<typeof systemWarningDataSchema>;