@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.
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/artifacts/agreement-artifacts.d.ts +311 -0
- package/dist/artifacts/agreement-artifacts.js +48 -0
- package/dist/artifacts/artifact-dependency-graph.d.ts +775 -0
- package/dist/artifacts/artifact-dependency-graph.js +57 -0
- package/dist/artifacts/artifact-system.d.ts +657 -0
- package/dist/artifacts/artifact-system.js +124 -0
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/index.js +3 -0
- package/dist/config/configuration.d.ts +324 -0
- package/dist/config/configuration.js +93 -0
- package/dist/config/event-bus-config.d.ts +153 -0
- package/dist/config/event-bus-config.js +27 -0
- package/dist/config/event-payloads.d.ts +919 -0
- package/dist/config/event-payloads.js +304 -0
- package/dist/config/event-system.d.ts +3231 -0
- package/dist/config/event-system.js +428 -0
- package/dist/config/event-types.d.ts +62 -0
- package/dist/config/event-types.js +66 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.js +5 -0
- package/dist/dashboard/dashboard-api.d.ts +149 -0
- package/dist/dashboard/dashboard-api.js +80 -0
- package/dist/dashboard/dashboard-domain.d.ts +1076 -0
- package/dist/dashboard/dashboard-domain.js +305 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.js +3 -0
- package/dist/dashboard/run-creation-params.d.ts +111 -0
- package/dist/dashboard/run-creation-params.js +14 -0
- package/dist/governance/governance.d.ts +1119 -0
- package/dist/governance/governance.js +111 -0
- package/dist/governance/index.d.ts +3 -0
- package/dist/governance/index.js +3 -0
- package/dist/governance/policy-engine.d.ts +634 -0
- package/dist/governance/policy-engine.js +214 -0
- package/dist/governance/review-resolution.d.ts +1053 -0
- package/dist/governance/review-resolution.js +67 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/observability/diagnostics.d.ts +185 -0
- package/dist/observability/diagnostics.js +63 -0
- package/dist/observability/index.d.ts +2 -0
- package/dist/observability/index.js +2 -0
- package/dist/observability/metrics.d.ts +187 -0
- package/dist/observability/metrics.js +67 -0
- package/dist/persistence/execution-analytics.d.ts +173 -0
- package/dist/persistence/execution-analytics.js +71 -0
- package/dist/persistence/index.d.ts +5 -0
- package/dist/persistence/index.js +5 -0
- package/dist/persistence/project-context.d.ts +164 -0
- package/dist/persistence/project-context.js +88 -0
- package/dist/persistence/repository-model.d.ts +27 -0
- package/dist/persistence/repository-model.js +16 -0
- package/dist/persistence/run-manifest.d.ts +422 -0
- package/dist/persistence/run-manifest.js +118 -0
- package/dist/persistence/state-persistence.d.ts +276 -0
- package/dist/persistence/state-persistence.js +83 -0
- package/dist/runner/built-in-runner-ids.d.ts +8 -0
- package/dist/runner/built-in-runner-ids.js +11 -0
- package/dist/runner/collaboration-model.d.ts +100 -0
- package/dist/runner/collaboration-model.js +19 -0
- package/dist/runner/confidence.d.ts +17 -0
- package/dist/runner/confidence.js +11 -0
- package/dist/runner/index.d.ts +8 -0
- package/dist/runner/index.js +8 -0
- package/dist/runner/permission-approval.d.ts +38 -0
- package/dist/runner/permission-approval.js +14 -0
- package/dist/runner/prompt-engine.d.ts +1467 -0
- package/dist/runner/prompt-engine.js +193 -0
- package/dist/runner/role-system.d.ts +458 -0
- package/dist/runner/role-system.js +94 -0
- package/dist/runner/runner-system.d.ts +1721 -0
- package/dist/runner/runner-system.js +268 -0
- package/dist/runner/task-brief.d.ts +18 -0
- package/dist/runner/task-brief.js +12 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.js +3 -0
- package/dist/shared/shared.d.ts +30 -0
- package/dist/shared/shared.js +27 -0
- package/dist/shared/string-enums.d.ts +59 -0
- package/dist/shared/string-enums.js +24 -0
- package/dist/shared/utils.d.ts +25 -0
- package/dist/shared/utils.js +22 -0
- package/dist/specification/canonical-specification.d.ts +475 -0
- package/dist/specification/canonical-specification.js +151 -0
- package/dist/specification/index.d.ts +3 -0
- package/dist/specification/index.js +3 -0
- package/dist/specification/intake.d.ts +419 -0
- package/dist/specification/intake.js +70 -0
- package/dist/specification/iteration-contracts.d.ts +421 -0
- package/dist/specification/iteration-contracts.js +61 -0
- package/dist/workflow/index.d.ts +4 -0
- package/dist/workflow/index.js +4 -0
- package/dist/workflow/workflow-dsl.d.ts +81 -0
- package/dist/workflow/workflow-dsl.js +38 -0
- package/dist/workflow/workflow-engine.d.ts +5788 -0
- package/dist/workflow/workflow-engine.js +414 -0
- package/dist/workflow/workflow-file.d.ts +331 -0
- package/dist/workflow/workflow-file.js +41 -0
- package/dist/workflow/workflow-journal.d.ts +520 -0
- package/dist/workflow/workflow-journal.js +151 -0
- package/package.json +39 -0
|
@@ -0,0 +1,1119 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const policyTokenUsageSchema: z.ZodObject<{
|
|
3
|
+
inputTokens: z.ZodNumber;
|
|
4
|
+
outputTokens: z.ZodNumber;
|
|
5
|
+
totalTokens: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type PolicyTokenUsage = z.infer<typeof policyTokenUsageSchema>;
|
|
8
|
+
export declare const humanApprovalSchema: z.ZodObject<{
|
|
9
|
+
approvedBy: z.ZodString;
|
|
10
|
+
timestamp: z.ZodString;
|
|
11
|
+
conditions: z.ZodOptional<z.ZodString>;
|
|
12
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
type: z.ZodEnum<{
|
|
14
|
+
intake_requirements: "intake_requirements";
|
|
15
|
+
canonical_specification: "canonical_specification";
|
|
16
|
+
clarification_questions: "clarification_questions";
|
|
17
|
+
clarification_answers: "clarification_answers";
|
|
18
|
+
plan: "plan";
|
|
19
|
+
plan_review: "plan_review";
|
|
20
|
+
test_plan: "test_plan";
|
|
21
|
+
implementation: "implementation";
|
|
22
|
+
static_review: "static_review";
|
|
23
|
+
security_review: "security_review";
|
|
24
|
+
performance_review: "performance_review";
|
|
25
|
+
adversarial_review: "adversarial_review";
|
|
26
|
+
design_review: "design_review";
|
|
27
|
+
docs_review: "docs_review";
|
|
28
|
+
ux_review: "ux_review";
|
|
29
|
+
review_report: "review_report";
|
|
30
|
+
remediation_plan: "remediation_plan";
|
|
31
|
+
verification: "verification";
|
|
32
|
+
judge_decision: "judge_decision";
|
|
33
|
+
planning_agreement: "planning_agreement";
|
|
34
|
+
implementation_agreement: "implementation_agreement";
|
|
35
|
+
verification_agreement: "verification_agreement";
|
|
36
|
+
release_summary: "release_summary";
|
|
37
|
+
release_agreement: "release_agreement";
|
|
38
|
+
escalation_context: "escalation_context";
|
|
39
|
+
run_manifest: "run_manifest";
|
|
40
|
+
codebase_context: "codebase_context";
|
|
41
|
+
test_suite: "test_suite";
|
|
42
|
+
acceptance_validation: "acceptance_validation";
|
|
43
|
+
review_findings: "review_findings";
|
|
44
|
+
task_breakdown: "task_breakdown";
|
|
45
|
+
decomposition_review: "decomposition_review";
|
|
46
|
+
task_specifications: "task_specifications";
|
|
47
|
+
pr_diff_context: "pr_diff_context";
|
|
48
|
+
}>;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
version: z.ZodNumber;
|
|
51
|
+
checksum: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type HumanApproval = z.infer<typeof humanApprovalSchema>;
|
|
55
|
+
export declare const escalationReasonSchema: z.ZodEnum<{
|
|
56
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
57
|
+
quality_gate_failed: "quality_gate_failed";
|
|
58
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
59
|
+
human_requested: "human_requested";
|
|
60
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
61
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
62
|
+
confidence_too_low: "confidence_too_low";
|
|
63
|
+
}>;
|
|
64
|
+
export type EscalationReason = z.infer<typeof escalationReasonSchema>;
|
|
65
|
+
export declare const escalationTriggerSchema: z.ZodEnum<{
|
|
66
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
67
|
+
quality_gate_failed: "quality_gate_failed";
|
|
68
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
69
|
+
human_requested: "human_requested";
|
|
70
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
71
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
72
|
+
confidence_too_low: "confidence_too_low";
|
|
73
|
+
provider_failure: "provider_failure";
|
|
74
|
+
timeout: "timeout";
|
|
75
|
+
unrecoverable_error: "unrecoverable_error";
|
|
76
|
+
}>;
|
|
77
|
+
export type EscalationTrigger = z.infer<typeof escalationTriggerSchema>;
|
|
78
|
+
export declare const findingSummarySchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
severity: z.ZodString;
|
|
81
|
+
status: z.ZodString;
|
|
82
|
+
description: z.ZodString;
|
|
83
|
+
resolutionRef: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
type: z.ZodEnum<{
|
|
85
|
+
intake_requirements: "intake_requirements";
|
|
86
|
+
canonical_specification: "canonical_specification";
|
|
87
|
+
clarification_questions: "clarification_questions";
|
|
88
|
+
clarification_answers: "clarification_answers";
|
|
89
|
+
plan: "plan";
|
|
90
|
+
plan_review: "plan_review";
|
|
91
|
+
test_plan: "test_plan";
|
|
92
|
+
implementation: "implementation";
|
|
93
|
+
static_review: "static_review";
|
|
94
|
+
security_review: "security_review";
|
|
95
|
+
performance_review: "performance_review";
|
|
96
|
+
adversarial_review: "adversarial_review";
|
|
97
|
+
design_review: "design_review";
|
|
98
|
+
docs_review: "docs_review";
|
|
99
|
+
ux_review: "ux_review";
|
|
100
|
+
review_report: "review_report";
|
|
101
|
+
remediation_plan: "remediation_plan";
|
|
102
|
+
verification: "verification";
|
|
103
|
+
judge_decision: "judge_decision";
|
|
104
|
+
planning_agreement: "planning_agreement";
|
|
105
|
+
implementation_agreement: "implementation_agreement";
|
|
106
|
+
verification_agreement: "verification_agreement";
|
|
107
|
+
release_summary: "release_summary";
|
|
108
|
+
release_agreement: "release_agreement";
|
|
109
|
+
escalation_context: "escalation_context";
|
|
110
|
+
run_manifest: "run_manifest";
|
|
111
|
+
codebase_context: "codebase_context";
|
|
112
|
+
test_suite: "test_suite";
|
|
113
|
+
acceptance_validation: "acceptance_validation";
|
|
114
|
+
review_findings: "review_findings";
|
|
115
|
+
task_breakdown: "task_breakdown";
|
|
116
|
+
decomposition_review: "decomposition_review";
|
|
117
|
+
task_specifications: "task_specifications";
|
|
118
|
+
pr_diff_context: "pr_diff_context";
|
|
119
|
+
}>;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
version: z.ZodNumber;
|
|
122
|
+
checksum: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type FindingSummary = z.infer<typeof findingSummarySchema>;
|
|
126
|
+
export declare const iterationSummarySchema: z.ZodObject<{
|
|
127
|
+
iteration: z.ZodNumber;
|
|
128
|
+
producerArtifact: z.ZodObject<{
|
|
129
|
+
type: z.ZodEnum<{
|
|
130
|
+
intake_requirements: "intake_requirements";
|
|
131
|
+
canonical_specification: "canonical_specification";
|
|
132
|
+
clarification_questions: "clarification_questions";
|
|
133
|
+
clarification_answers: "clarification_answers";
|
|
134
|
+
plan: "plan";
|
|
135
|
+
plan_review: "plan_review";
|
|
136
|
+
test_plan: "test_plan";
|
|
137
|
+
implementation: "implementation";
|
|
138
|
+
static_review: "static_review";
|
|
139
|
+
security_review: "security_review";
|
|
140
|
+
performance_review: "performance_review";
|
|
141
|
+
adversarial_review: "adversarial_review";
|
|
142
|
+
design_review: "design_review";
|
|
143
|
+
docs_review: "docs_review";
|
|
144
|
+
ux_review: "ux_review";
|
|
145
|
+
review_report: "review_report";
|
|
146
|
+
remediation_plan: "remediation_plan";
|
|
147
|
+
verification: "verification";
|
|
148
|
+
judge_decision: "judge_decision";
|
|
149
|
+
planning_agreement: "planning_agreement";
|
|
150
|
+
implementation_agreement: "implementation_agreement";
|
|
151
|
+
verification_agreement: "verification_agreement";
|
|
152
|
+
release_summary: "release_summary";
|
|
153
|
+
release_agreement: "release_agreement";
|
|
154
|
+
escalation_context: "escalation_context";
|
|
155
|
+
run_manifest: "run_manifest";
|
|
156
|
+
codebase_context: "codebase_context";
|
|
157
|
+
test_suite: "test_suite";
|
|
158
|
+
acceptance_validation: "acceptance_validation";
|
|
159
|
+
review_findings: "review_findings";
|
|
160
|
+
task_breakdown: "task_breakdown";
|
|
161
|
+
decomposition_review: "decomposition_review";
|
|
162
|
+
task_specifications: "task_specifications";
|
|
163
|
+
pr_diff_context: "pr_diff_context";
|
|
164
|
+
}>;
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
version: z.ZodNumber;
|
|
167
|
+
checksum: z.ZodString;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
reviewerArtifact: z.ZodObject<{
|
|
170
|
+
type: z.ZodEnum<{
|
|
171
|
+
intake_requirements: "intake_requirements";
|
|
172
|
+
canonical_specification: "canonical_specification";
|
|
173
|
+
clarification_questions: "clarification_questions";
|
|
174
|
+
clarification_answers: "clarification_answers";
|
|
175
|
+
plan: "plan";
|
|
176
|
+
plan_review: "plan_review";
|
|
177
|
+
test_plan: "test_plan";
|
|
178
|
+
implementation: "implementation";
|
|
179
|
+
static_review: "static_review";
|
|
180
|
+
security_review: "security_review";
|
|
181
|
+
performance_review: "performance_review";
|
|
182
|
+
adversarial_review: "adversarial_review";
|
|
183
|
+
design_review: "design_review";
|
|
184
|
+
docs_review: "docs_review";
|
|
185
|
+
ux_review: "ux_review";
|
|
186
|
+
review_report: "review_report";
|
|
187
|
+
remediation_plan: "remediation_plan";
|
|
188
|
+
verification: "verification";
|
|
189
|
+
judge_decision: "judge_decision";
|
|
190
|
+
planning_agreement: "planning_agreement";
|
|
191
|
+
implementation_agreement: "implementation_agreement";
|
|
192
|
+
verification_agreement: "verification_agreement";
|
|
193
|
+
release_summary: "release_summary";
|
|
194
|
+
release_agreement: "release_agreement";
|
|
195
|
+
escalation_context: "escalation_context";
|
|
196
|
+
run_manifest: "run_manifest";
|
|
197
|
+
codebase_context: "codebase_context";
|
|
198
|
+
test_suite: "test_suite";
|
|
199
|
+
acceptance_validation: "acceptance_validation";
|
|
200
|
+
review_findings: "review_findings";
|
|
201
|
+
task_breakdown: "task_breakdown";
|
|
202
|
+
decomposition_review: "decomposition_review";
|
|
203
|
+
task_specifications: "task_specifications";
|
|
204
|
+
pr_diff_context: "pr_diff_context";
|
|
205
|
+
}>;
|
|
206
|
+
name: z.ZodString;
|
|
207
|
+
version: z.ZodNumber;
|
|
208
|
+
checksum: z.ZodString;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
findingsProduced: z.ZodNumber;
|
|
211
|
+
findingsResolved: z.ZodNumber;
|
|
212
|
+
findingsRemaining: z.ZodNumber;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
export type IterationSummary = z.infer<typeof iterationSummarySchema>;
|
|
215
|
+
export declare const escalationContextSchema: z.ZodObject<{
|
|
216
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
217
|
+
stageId: z.ZodString;
|
|
218
|
+
reason: z.ZodEnum<{
|
|
219
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
220
|
+
quality_gate_failed: "quality_gate_failed";
|
|
221
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
222
|
+
human_requested: "human_requested";
|
|
223
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
224
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
225
|
+
confidence_too_low: "confidence_too_low";
|
|
226
|
+
}>;
|
|
227
|
+
iterationHistory: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
228
|
+
iteration: z.ZodNumber;
|
|
229
|
+
producerArtifact: z.ZodObject<{
|
|
230
|
+
type: z.ZodEnum<{
|
|
231
|
+
intake_requirements: "intake_requirements";
|
|
232
|
+
canonical_specification: "canonical_specification";
|
|
233
|
+
clarification_questions: "clarification_questions";
|
|
234
|
+
clarification_answers: "clarification_answers";
|
|
235
|
+
plan: "plan";
|
|
236
|
+
plan_review: "plan_review";
|
|
237
|
+
test_plan: "test_plan";
|
|
238
|
+
implementation: "implementation";
|
|
239
|
+
static_review: "static_review";
|
|
240
|
+
security_review: "security_review";
|
|
241
|
+
performance_review: "performance_review";
|
|
242
|
+
adversarial_review: "adversarial_review";
|
|
243
|
+
design_review: "design_review";
|
|
244
|
+
docs_review: "docs_review";
|
|
245
|
+
ux_review: "ux_review";
|
|
246
|
+
review_report: "review_report";
|
|
247
|
+
remediation_plan: "remediation_plan";
|
|
248
|
+
verification: "verification";
|
|
249
|
+
judge_decision: "judge_decision";
|
|
250
|
+
planning_agreement: "planning_agreement";
|
|
251
|
+
implementation_agreement: "implementation_agreement";
|
|
252
|
+
verification_agreement: "verification_agreement";
|
|
253
|
+
release_summary: "release_summary";
|
|
254
|
+
release_agreement: "release_agreement";
|
|
255
|
+
escalation_context: "escalation_context";
|
|
256
|
+
run_manifest: "run_manifest";
|
|
257
|
+
codebase_context: "codebase_context";
|
|
258
|
+
test_suite: "test_suite";
|
|
259
|
+
acceptance_validation: "acceptance_validation";
|
|
260
|
+
review_findings: "review_findings";
|
|
261
|
+
task_breakdown: "task_breakdown";
|
|
262
|
+
decomposition_review: "decomposition_review";
|
|
263
|
+
task_specifications: "task_specifications";
|
|
264
|
+
pr_diff_context: "pr_diff_context";
|
|
265
|
+
}>;
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
version: z.ZodNumber;
|
|
268
|
+
checksum: z.ZodString;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
reviewerArtifact: z.ZodObject<{
|
|
271
|
+
type: z.ZodEnum<{
|
|
272
|
+
intake_requirements: "intake_requirements";
|
|
273
|
+
canonical_specification: "canonical_specification";
|
|
274
|
+
clarification_questions: "clarification_questions";
|
|
275
|
+
clarification_answers: "clarification_answers";
|
|
276
|
+
plan: "plan";
|
|
277
|
+
plan_review: "plan_review";
|
|
278
|
+
test_plan: "test_plan";
|
|
279
|
+
implementation: "implementation";
|
|
280
|
+
static_review: "static_review";
|
|
281
|
+
security_review: "security_review";
|
|
282
|
+
performance_review: "performance_review";
|
|
283
|
+
adversarial_review: "adversarial_review";
|
|
284
|
+
design_review: "design_review";
|
|
285
|
+
docs_review: "docs_review";
|
|
286
|
+
ux_review: "ux_review";
|
|
287
|
+
review_report: "review_report";
|
|
288
|
+
remediation_plan: "remediation_plan";
|
|
289
|
+
verification: "verification";
|
|
290
|
+
judge_decision: "judge_decision";
|
|
291
|
+
planning_agreement: "planning_agreement";
|
|
292
|
+
implementation_agreement: "implementation_agreement";
|
|
293
|
+
verification_agreement: "verification_agreement";
|
|
294
|
+
release_summary: "release_summary";
|
|
295
|
+
release_agreement: "release_agreement";
|
|
296
|
+
escalation_context: "escalation_context";
|
|
297
|
+
run_manifest: "run_manifest";
|
|
298
|
+
codebase_context: "codebase_context";
|
|
299
|
+
test_suite: "test_suite";
|
|
300
|
+
acceptance_validation: "acceptance_validation";
|
|
301
|
+
review_findings: "review_findings";
|
|
302
|
+
task_breakdown: "task_breakdown";
|
|
303
|
+
decomposition_review: "decomposition_review";
|
|
304
|
+
task_specifications: "task_specifications";
|
|
305
|
+
pr_diff_context: "pr_diff_context";
|
|
306
|
+
}>;
|
|
307
|
+
name: z.ZodString;
|
|
308
|
+
version: z.ZodNumber;
|
|
309
|
+
checksum: z.ZodString;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
findingsProduced: z.ZodNumber;
|
|
312
|
+
findingsResolved: z.ZodNumber;
|
|
313
|
+
findingsRemaining: z.ZodNumber;
|
|
314
|
+
}, z.core.$strip>>>;
|
|
315
|
+
unresolvedFindings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
severity: z.ZodString;
|
|
318
|
+
status: z.ZodString;
|
|
319
|
+
description: z.ZodString;
|
|
320
|
+
resolutionRef: z.ZodOptional<z.ZodObject<{
|
|
321
|
+
type: z.ZodEnum<{
|
|
322
|
+
intake_requirements: "intake_requirements";
|
|
323
|
+
canonical_specification: "canonical_specification";
|
|
324
|
+
clarification_questions: "clarification_questions";
|
|
325
|
+
clarification_answers: "clarification_answers";
|
|
326
|
+
plan: "plan";
|
|
327
|
+
plan_review: "plan_review";
|
|
328
|
+
test_plan: "test_plan";
|
|
329
|
+
implementation: "implementation";
|
|
330
|
+
static_review: "static_review";
|
|
331
|
+
security_review: "security_review";
|
|
332
|
+
performance_review: "performance_review";
|
|
333
|
+
adversarial_review: "adversarial_review";
|
|
334
|
+
design_review: "design_review";
|
|
335
|
+
docs_review: "docs_review";
|
|
336
|
+
ux_review: "ux_review";
|
|
337
|
+
review_report: "review_report";
|
|
338
|
+
remediation_plan: "remediation_plan";
|
|
339
|
+
verification: "verification";
|
|
340
|
+
judge_decision: "judge_decision";
|
|
341
|
+
planning_agreement: "planning_agreement";
|
|
342
|
+
implementation_agreement: "implementation_agreement";
|
|
343
|
+
verification_agreement: "verification_agreement";
|
|
344
|
+
release_summary: "release_summary";
|
|
345
|
+
release_agreement: "release_agreement";
|
|
346
|
+
escalation_context: "escalation_context";
|
|
347
|
+
run_manifest: "run_manifest";
|
|
348
|
+
codebase_context: "codebase_context";
|
|
349
|
+
test_suite: "test_suite";
|
|
350
|
+
acceptance_validation: "acceptance_validation";
|
|
351
|
+
review_findings: "review_findings";
|
|
352
|
+
task_breakdown: "task_breakdown";
|
|
353
|
+
decomposition_review: "decomposition_review";
|
|
354
|
+
task_specifications: "task_specifications";
|
|
355
|
+
pr_diff_context: "pr_diff_context";
|
|
356
|
+
}>;
|
|
357
|
+
name: z.ZodString;
|
|
358
|
+
version: z.ZodNumber;
|
|
359
|
+
checksum: z.ZodString;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
}, z.core.$strip>>>;
|
|
362
|
+
artifactRefs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
363
|
+
type: z.ZodEnum<{
|
|
364
|
+
intake_requirements: "intake_requirements";
|
|
365
|
+
canonical_specification: "canonical_specification";
|
|
366
|
+
clarification_questions: "clarification_questions";
|
|
367
|
+
clarification_answers: "clarification_answers";
|
|
368
|
+
plan: "plan";
|
|
369
|
+
plan_review: "plan_review";
|
|
370
|
+
test_plan: "test_plan";
|
|
371
|
+
implementation: "implementation";
|
|
372
|
+
static_review: "static_review";
|
|
373
|
+
security_review: "security_review";
|
|
374
|
+
performance_review: "performance_review";
|
|
375
|
+
adversarial_review: "adversarial_review";
|
|
376
|
+
design_review: "design_review";
|
|
377
|
+
docs_review: "docs_review";
|
|
378
|
+
ux_review: "ux_review";
|
|
379
|
+
review_report: "review_report";
|
|
380
|
+
remediation_plan: "remediation_plan";
|
|
381
|
+
verification: "verification";
|
|
382
|
+
judge_decision: "judge_decision";
|
|
383
|
+
planning_agreement: "planning_agreement";
|
|
384
|
+
implementation_agreement: "implementation_agreement";
|
|
385
|
+
verification_agreement: "verification_agreement";
|
|
386
|
+
release_summary: "release_summary";
|
|
387
|
+
release_agreement: "release_agreement";
|
|
388
|
+
escalation_context: "escalation_context";
|
|
389
|
+
run_manifest: "run_manifest";
|
|
390
|
+
codebase_context: "codebase_context";
|
|
391
|
+
test_suite: "test_suite";
|
|
392
|
+
acceptance_validation: "acceptance_validation";
|
|
393
|
+
review_findings: "review_findings";
|
|
394
|
+
task_breakdown: "task_breakdown";
|
|
395
|
+
decomposition_review: "decomposition_review";
|
|
396
|
+
task_specifications: "task_specifications";
|
|
397
|
+
pr_diff_context: "pr_diff_context";
|
|
398
|
+
}>;
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
version: z.ZodNumber;
|
|
401
|
+
checksum: z.ZodString;
|
|
402
|
+
}, z.core.$strip>>>;
|
|
403
|
+
suggestedActions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
export type EscalationContext = z.infer<typeof escalationContextSchema>;
|
|
406
|
+
export declare const transitionAllowedSchema: z.ZodObject<{
|
|
407
|
+
allowed: z.ZodLiteral<true>;
|
|
408
|
+
reason: z.ZodString;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
export type TransitionAllowed = z.infer<typeof transitionAllowedSchema>;
|
|
411
|
+
export declare const transitionDeniedSchema: z.ZodObject<{
|
|
412
|
+
allowed: z.ZodLiteral<false>;
|
|
413
|
+
reason: z.ZodString;
|
|
414
|
+
remediation: z.ZodString;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
export type TransitionDenied = z.infer<typeof transitionDeniedSchema>;
|
|
417
|
+
export declare const transitionEscalatedSchema: z.ZodObject<{
|
|
418
|
+
escalate: z.ZodLiteral<true>;
|
|
419
|
+
reason: z.ZodString;
|
|
420
|
+
context: z.ZodObject<{
|
|
421
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
422
|
+
stageId: z.ZodString;
|
|
423
|
+
reason: z.ZodEnum<{
|
|
424
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
425
|
+
quality_gate_failed: "quality_gate_failed";
|
|
426
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
427
|
+
human_requested: "human_requested";
|
|
428
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
429
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
430
|
+
confidence_too_low: "confidence_too_low";
|
|
431
|
+
}>;
|
|
432
|
+
iterationHistory: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
433
|
+
iteration: z.ZodNumber;
|
|
434
|
+
producerArtifact: z.ZodObject<{
|
|
435
|
+
type: z.ZodEnum<{
|
|
436
|
+
intake_requirements: "intake_requirements";
|
|
437
|
+
canonical_specification: "canonical_specification";
|
|
438
|
+
clarification_questions: "clarification_questions";
|
|
439
|
+
clarification_answers: "clarification_answers";
|
|
440
|
+
plan: "plan";
|
|
441
|
+
plan_review: "plan_review";
|
|
442
|
+
test_plan: "test_plan";
|
|
443
|
+
implementation: "implementation";
|
|
444
|
+
static_review: "static_review";
|
|
445
|
+
security_review: "security_review";
|
|
446
|
+
performance_review: "performance_review";
|
|
447
|
+
adversarial_review: "adversarial_review";
|
|
448
|
+
design_review: "design_review";
|
|
449
|
+
docs_review: "docs_review";
|
|
450
|
+
ux_review: "ux_review";
|
|
451
|
+
review_report: "review_report";
|
|
452
|
+
remediation_plan: "remediation_plan";
|
|
453
|
+
verification: "verification";
|
|
454
|
+
judge_decision: "judge_decision";
|
|
455
|
+
planning_agreement: "planning_agreement";
|
|
456
|
+
implementation_agreement: "implementation_agreement";
|
|
457
|
+
verification_agreement: "verification_agreement";
|
|
458
|
+
release_summary: "release_summary";
|
|
459
|
+
release_agreement: "release_agreement";
|
|
460
|
+
escalation_context: "escalation_context";
|
|
461
|
+
run_manifest: "run_manifest";
|
|
462
|
+
codebase_context: "codebase_context";
|
|
463
|
+
test_suite: "test_suite";
|
|
464
|
+
acceptance_validation: "acceptance_validation";
|
|
465
|
+
review_findings: "review_findings";
|
|
466
|
+
task_breakdown: "task_breakdown";
|
|
467
|
+
decomposition_review: "decomposition_review";
|
|
468
|
+
task_specifications: "task_specifications";
|
|
469
|
+
pr_diff_context: "pr_diff_context";
|
|
470
|
+
}>;
|
|
471
|
+
name: z.ZodString;
|
|
472
|
+
version: z.ZodNumber;
|
|
473
|
+
checksum: z.ZodString;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
reviewerArtifact: z.ZodObject<{
|
|
476
|
+
type: z.ZodEnum<{
|
|
477
|
+
intake_requirements: "intake_requirements";
|
|
478
|
+
canonical_specification: "canonical_specification";
|
|
479
|
+
clarification_questions: "clarification_questions";
|
|
480
|
+
clarification_answers: "clarification_answers";
|
|
481
|
+
plan: "plan";
|
|
482
|
+
plan_review: "plan_review";
|
|
483
|
+
test_plan: "test_plan";
|
|
484
|
+
implementation: "implementation";
|
|
485
|
+
static_review: "static_review";
|
|
486
|
+
security_review: "security_review";
|
|
487
|
+
performance_review: "performance_review";
|
|
488
|
+
adversarial_review: "adversarial_review";
|
|
489
|
+
design_review: "design_review";
|
|
490
|
+
docs_review: "docs_review";
|
|
491
|
+
ux_review: "ux_review";
|
|
492
|
+
review_report: "review_report";
|
|
493
|
+
remediation_plan: "remediation_plan";
|
|
494
|
+
verification: "verification";
|
|
495
|
+
judge_decision: "judge_decision";
|
|
496
|
+
planning_agreement: "planning_agreement";
|
|
497
|
+
implementation_agreement: "implementation_agreement";
|
|
498
|
+
verification_agreement: "verification_agreement";
|
|
499
|
+
release_summary: "release_summary";
|
|
500
|
+
release_agreement: "release_agreement";
|
|
501
|
+
escalation_context: "escalation_context";
|
|
502
|
+
run_manifest: "run_manifest";
|
|
503
|
+
codebase_context: "codebase_context";
|
|
504
|
+
test_suite: "test_suite";
|
|
505
|
+
acceptance_validation: "acceptance_validation";
|
|
506
|
+
review_findings: "review_findings";
|
|
507
|
+
task_breakdown: "task_breakdown";
|
|
508
|
+
decomposition_review: "decomposition_review";
|
|
509
|
+
task_specifications: "task_specifications";
|
|
510
|
+
pr_diff_context: "pr_diff_context";
|
|
511
|
+
}>;
|
|
512
|
+
name: z.ZodString;
|
|
513
|
+
version: z.ZodNumber;
|
|
514
|
+
checksum: z.ZodString;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
findingsProduced: z.ZodNumber;
|
|
517
|
+
findingsResolved: z.ZodNumber;
|
|
518
|
+
findingsRemaining: z.ZodNumber;
|
|
519
|
+
}, z.core.$strip>>>;
|
|
520
|
+
unresolvedFindings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
521
|
+
id: z.ZodString;
|
|
522
|
+
severity: z.ZodString;
|
|
523
|
+
status: z.ZodString;
|
|
524
|
+
description: z.ZodString;
|
|
525
|
+
resolutionRef: z.ZodOptional<z.ZodObject<{
|
|
526
|
+
type: z.ZodEnum<{
|
|
527
|
+
intake_requirements: "intake_requirements";
|
|
528
|
+
canonical_specification: "canonical_specification";
|
|
529
|
+
clarification_questions: "clarification_questions";
|
|
530
|
+
clarification_answers: "clarification_answers";
|
|
531
|
+
plan: "plan";
|
|
532
|
+
plan_review: "plan_review";
|
|
533
|
+
test_plan: "test_plan";
|
|
534
|
+
implementation: "implementation";
|
|
535
|
+
static_review: "static_review";
|
|
536
|
+
security_review: "security_review";
|
|
537
|
+
performance_review: "performance_review";
|
|
538
|
+
adversarial_review: "adversarial_review";
|
|
539
|
+
design_review: "design_review";
|
|
540
|
+
docs_review: "docs_review";
|
|
541
|
+
ux_review: "ux_review";
|
|
542
|
+
review_report: "review_report";
|
|
543
|
+
remediation_plan: "remediation_plan";
|
|
544
|
+
verification: "verification";
|
|
545
|
+
judge_decision: "judge_decision";
|
|
546
|
+
planning_agreement: "planning_agreement";
|
|
547
|
+
implementation_agreement: "implementation_agreement";
|
|
548
|
+
verification_agreement: "verification_agreement";
|
|
549
|
+
release_summary: "release_summary";
|
|
550
|
+
release_agreement: "release_agreement";
|
|
551
|
+
escalation_context: "escalation_context";
|
|
552
|
+
run_manifest: "run_manifest";
|
|
553
|
+
codebase_context: "codebase_context";
|
|
554
|
+
test_suite: "test_suite";
|
|
555
|
+
acceptance_validation: "acceptance_validation";
|
|
556
|
+
review_findings: "review_findings";
|
|
557
|
+
task_breakdown: "task_breakdown";
|
|
558
|
+
decomposition_review: "decomposition_review";
|
|
559
|
+
task_specifications: "task_specifications";
|
|
560
|
+
pr_diff_context: "pr_diff_context";
|
|
561
|
+
}>;
|
|
562
|
+
name: z.ZodString;
|
|
563
|
+
version: z.ZodNumber;
|
|
564
|
+
checksum: z.ZodString;
|
|
565
|
+
}, z.core.$strip>>;
|
|
566
|
+
}, z.core.$strip>>>;
|
|
567
|
+
artifactRefs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
568
|
+
type: z.ZodEnum<{
|
|
569
|
+
intake_requirements: "intake_requirements";
|
|
570
|
+
canonical_specification: "canonical_specification";
|
|
571
|
+
clarification_questions: "clarification_questions";
|
|
572
|
+
clarification_answers: "clarification_answers";
|
|
573
|
+
plan: "plan";
|
|
574
|
+
plan_review: "plan_review";
|
|
575
|
+
test_plan: "test_plan";
|
|
576
|
+
implementation: "implementation";
|
|
577
|
+
static_review: "static_review";
|
|
578
|
+
security_review: "security_review";
|
|
579
|
+
performance_review: "performance_review";
|
|
580
|
+
adversarial_review: "adversarial_review";
|
|
581
|
+
design_review: "design_review";
|
|
582
|
+
docs_review: "docs_review";
|
|
583
|
+
ux_review: "ux_review";
|
|
584
|
+
review_report: "review_report";
|
|
585
|
+
remediation_plan: "remediation_plan";
|
|
586
|
+
verification: "verification";
|
|
587
|
+
judge_decision: "judge_decision";
|
|
588
|
+
planning_agreement: "planning_agreement";
|
|
589
|
+
implementation_agreement: "implementation_agreement";
|
|
590
|
+
verification_agreement: "verification_agreement";
|
|
591
|
+
release_summary: "release_summary";
|
|
592
|
+
release_agreement: "release_agreement";
|
|
593
|
+
escalation_context: "escalation_context";
|
|
594
|
+
run_manifest: "run_manifest";
|
|
595
|
+
codebase_context: "codebase_context";
|
|
596
|
+
test_suite: "test_suite";
|
|
597
|
+
acceptance_validation: "acceptance_validation";
|
|
598
|
+
review_findings: "review_findings";
|
|
599
|
+
task_breakdown: "task_breakdown";
|
|
600
|
+
decomposition_review: "decomposition_review";
|
|
601
|
+
task_specifications: "task_specifications";
|
|
602
|
+
pr_diff_context: "pr_diff_context";
|
|
603
|
+
}>;
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
version: z.ZodNumber;
|
|
606
|
+
checksum: z.ZodString;
|
|
607
|
+
}, z.core.$strip>>>;
|
|
608
|
+
suggestedActions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
export type TransitionEscalated = z.infer<typeof transitionEscalatedSchema>;
|
|
612
|
+
export declare const transitionDecisionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
613
|
+
allowed: z.ZodLiteral<true>;
|
|
614
|
+
reason: z.ZodString;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
allowed: z.ZodLiteral<false>;
|
|
617
|
+
reason: z.ZodString;
|
|
618
|
+
remediation: z.ZodString;
|
|
619
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
620
|
+
escalate: z.ZodLiteral<true>;
|
|
621
|
+
reason: z.ZodString;
|
|
622
|
+
context: z.ZodObject<{
|
|
623
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
624
|
+
stageId: z.ZodString;
|
|
625
|
+
reason: z.ZodEnum<{
|
|
626
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
627
|
+
quality_gate_failed: "quality_gate_failed";
|
|
628
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
629
|
+
human_requested: "human_requested";
|
|
630
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
631
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
632
|
+
confidence_too_low: "confidence_too_low";
|
|
633
|
+
}>;
|
|
634
|
+
iterationHistory: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
635
|
+
iteration: z.ZodNumber;
|
|
636
|
+
producerArtifact: z.ZodObject<{
|
|
637
|
+
type: z.ZodEnum<{
|
|
638
|
+
intake_requirements: "intake_requirements";
|
|
639
|
+
canonical_specification: "canonical_specification";
|
|
640
|
+
clarification_questions: "clarification_questions";
|
|
641
|
+
clarification_answers: "clarification_answers";
|
|
642
|
+
plan: "plan";
|
|
643
|
+
plan_review: "plan_review";
|
|
644
|
+
test_plan: "test_plan";
|
|
645
|
+
implementation: "implementation";
|
|
646
|
+
static_review: "static_review";
|
|
647
|
+
security_review: "security_review";
|
|
648
|
+
performance_review: "performance_review";
|
|
649
|
+
adversarial_review: "adversarial_review";
|
|
650
|
+
design_review: "design_review";
|
|
651
|
+
docs_review: "docs_review";
|
|
652
|
+
ux_review: "ux_review";
|
|
653
|
+
review_report: "review_report";
|
|
654
|
+
remediation_plan: "remediation_plan";
|
|
655
|
+
verification: "verification";
|
|
656
|
+
judge_decision: "judge_decision";
|
|
657
|
+
planning_agreement: "planning_agreement";
|
|
658
|
+
implementation_agreement: "implementation_agreement";
|
|
659
|
+
verification_agreement: "verification_agreement";
|
|
660
|
+
release_summary: "release_summary";
|
|
661
|
+
release_agreement: "release_agreement";
|
|
662
|
+
escalation_context: "escalation_context";
|
|
663
|
+
run_manifest: "run_manifest";
|
|
664
|
+
codebase_context: "codebase_context";
|
|
665
|
+
test_suite: "test_suite";
|
|
666
|
+
acceptance_validation: "acceptance_validation";
|
|
667
|
+
review_findings: "review_findings";
|
|
668
|
+
task_breakdown: "task_breakdown";
|
|
669
|
+
decomposition_review: "decomposition_review";
|
|
670
|
+
task_specifications: "task_specifications";
|
|
671
|
+
pr_diff_context: "pr_diff_context";
|
|
672
|
+
}>;
|
|
673
|
+
name: z.ZodString;
|
|
674
|
+
version: z.ZodNumber;
|
|
675
|
+
checksum: z.ZodString;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
reviewerArtifact: z.ZodObject<{
|
|
678
|
+
type: z.ZodEnum<{
|
|
679
|
+
intake_requirements: "intake_requirements";
|
|
680
|
+
canonical_specification: "canonical_specification";
|
|
681
|
+
clarification_questions: "clarification_questions";
|
|
682
|
+
clarification_answers: "clarification_answers";
|
|
683
|
+
plan: "plan";
|
|
684
|
+
plan_review: "plan_review";
|
|
685
|
+
test_plan: "test_plan";
|
|
686
|
+
implementation: "implementation";
|
|
687
|
+
static_review: "static_review";
|
|
688
|
+
security_review: "security_review";
|
|
689
|
+
performance_review: "performance_review";
|
|
690
|
+
adversarial_review: "adversarial_review";
|
|
691
|
+
design_review: "design_review";
|
|
692
|
+
docs_review: "docs_review";
|
|
693
|
+
ux_review: "ux_review";
|
|
694
|
+
review_report: "review_report";
|
|
695
|
+
remediation_plan: "remediation_plan";
|
|
696
|
+
verification: "verification";
|
|
697
|
+
judge_decision: "judge_decision";
|
|
698
|
+
planning_agreement: "planning_agreement";
|
|
699
|
+
implementation_agreement: "implementation_agreement";
|
|
700
|
+
verification_agreement: "verification_agreement";
|
|
701
|
+
release_summary: "release_summary";
|
|
702
|
+
release_agreement: "release_agreement";
|
|
703
|
+
escalation_context: "escalation_context";
|
|
704
|
+
run_manifest: "run_manifest";
|
|
705
|
+
codebase_context: "codebase_context";
|
|
706
|
+
test_suite: "test_suite";
|
|
707
|
+
acceptance_validation: "acceptance_validation";
|
|
708
|
+
review_findings: "review_findings";
|
|
709
|
+
task_breakdown: "task_breakdown";
|
|
710
|
+
decomposition_review: "decomposition_review";
|
|
711
|
+
task_specifications: "task_specifications";
|
|
712
|
+
pr_diff_context: "pr_diff_context";
|
|
713
|
+
}>;
|
|
714
|
+
name: z.ZodString;
|
|
715
|
+
version: z.ZodNumber;
|
|
716
|
+
checksum: z.ZodString;
|
|
717
|
+
}, z.core.$strip>;
|
|
718
|
+
findingsProduced: z.ZodNumber;
|
|
719
|
+
findingsResolved: z.ZodNumber;
|
|
720
|
+
findingsRemaining: z.ZodNumber;
|
|
721
|
+
}, z.core.$strip>>>;
|
|
722
|
+
unresolvedFindings: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
723
|
+
id: z.ZodString;
|
|
724
|
+
severity: z.ZodString;
|
|
725
|
+
status: z.ZodString;
|
|
726
|
+
description: z.ZodString;
|
|
727
|
+
resolutionRef: z.ZodOptional<z.ZodObject<{
|
|
728
|
+
type: z.ZodEnum<{
|
|
729
|
+
intake_requirements: "intake_requirements";
|
|
730
|
+
canonical_specification: "canonical_specification";
|
|
731
|
+
clarification_questions: "clarification_questions";
|
|
732
|
+
clarification_answers: "clarification_answers";
|
|
733
|
+
plan: "plan";
|
|
734
|
+
plan_review: "plan_review";
|
|
735
|
+
test_plan: "test_plan";
|
|
736
|
+
implementation: "implementation";
|
|
737
|
+
static_review: "static_review";
|
|
738
|
+
security_review: "security_review";
|
|
739
|
+
performance_review: "performance_review";
|
|
740
|
+
adversarial_review: "adversarial_review";
|
|
741
|
+
design_review: "design_review";
|
|
742
|
+
docs_review: "docs_review";
|
|
743
|
+
ux_review: "ux_review";
|
|
744
|
+
review_report: "review_report";
|
|
745
|
+
remediation_plan: "remediation_plan";
|
|
746
|
+
verification: "verification";
|
|
747
|
+
judge_decision: "judge_decision";
|
|
748
|
+
planning_agreement: "planning_agreement";
|
|
749
|
+
implementation_agreement: "implementation_agreement";
|
|
750
|
+
verification_agreement: "verification_agreement";
|
|
751
|
+
release_summary: "release_summary";
|
|
752
|
+
release_agreement: "release_agreement";
|
|
753
|
+
escalation_context: "escalation_context";
|
|
754
|
+
run_manifest: "run_manifest";
|
|
755
|
+
codebase_context: "codebase_context";
|
|
756
|
+
test_suite: "test_suite";
|
|
757
|
+
acceptance_validation: "acceptance_validation";
|
|
758
|
+
review_findings: "review_findings";
|
|
759
|
+
task_breakdown: "task_breakdown";
|
|
760
|
+
decomposition_review: "decomposition_review";
|
|
761
|
+
task_specifications: "task_specifications";
|
|
762
|
+
pr_diff_context: "pr_diff_context";
|
|
763
|
+
}>;
|
|
764
|
+
name: z.ZodString;
|
|
765
|
+
version: z.ZodNumber;
|
|
766
|
+
checksum: z.ZodString;
|
|
767
|
+
}, z.core.$strip>>;
|
|
768
|
+
}, z.core.$strip>>>;
|
|
769
|
+
artifactRefs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
770
|
+
type: z.ZodEnum<{
|
|
771
|
+
intake_requirements: "intake_requirements";
|
|
772
|
+
canonical_specification: "canonical_specification";
|
|
773
|
+
clarification_questions: "clarification_questions";
|
|
774
|
+
clarification_answers: "clarification_answers";
|
|
775
|
+
plan: "plan";
|
|
776
|
+
plan_review: "plan_review";
|
|
777
|
+
test_plan: "test_plan";
|
|
778
|
+
implementation: "implementation";
|
|
779
|
+
static_review: "static_review";
|
|
780
|
+
security_review: "security_review";
|
|
781
|
+
performance_review: "performance_review";
|
|
782
|
+
adversarial_review: "adversarial_review";
|
|
783
|
+
design_review: "design_review";
|
|
784
|
+
docs_review: "docs_review";
|
|
785
|
+
ux_review: "ux_review";
|
|
786
|
+
review_report: "review_report";
|
|
787
|
+
remediation_plan: "remediation_plan";
|
|
788
|
+
verification: "verification";
|
|
789
|
+
judge_decision: "judge_decision";
|
|
790
|
+
planning_agreement: "planning_agreement";
|
|
791
|
+
implementation_agreement: "implementation_agreement";
|
|
792
|
+
verification_agreement: "verification_agreement";
|
|
793
|
+
release_summary: "release_summary";
|
|
794
|
+
release_agreement: "release_agreement";
|
|
795
|
+
escalation_context: "escalation_context";
|
|
796
|
+
run_manifest: "run_manifest";
|
|
797
|
+
codebase_context: "codebase_context";
|
|
798
|
+
test_suite: "test_suite";
|
|
799
|
+
acceptance_validation: "acceptance_validation";
|
|
800
|
+
review_findings: "review_findings";
|
|
801
|
+
task_breakdown: "task_breakdown";
|
|
802
|
+
decomposition_review: "decomposition_review";
|
|
803
|
+
task_specifications: "task_specifications";
|
|
804
|
+
pr_diff_context: "pr_diff_context";
|
|
805
|
+
}>;
|
|
806
|
+
name: z.ZodString;
|
|
807
|
+
version: z.ZodNumber;
|
|
808
|
+
checksum: z.ZodString;
|
|
809
|
+
}, z.core.$strip>>>;
|
|
810
|
+
suggestedActions: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
}, z.core.$strip>]>;
|
|
813
|
+
export type TransitionDecision = z.infer<typeof transitionDecisionSchema>;
|
|
814
|
+
export declare const transitionRequestSchema: z.ZodObject<{
|
|
815
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
816
|
+
from: z.ZodString;
|
|
817
|
+
to: z.ZodString;
|
|
818
|
+
artifacts: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
819
|
+
type: z.ZodEnum<{
|
|
820
|
+
intake_requirements: "intake_requirements";
|
|
821
|
+
canonical_specification: "canonical_specification";
|
|
822
|
+
clarification_questions: "clarification_questions";
|
|
823
|
+
clarification_answers: "clarification_answers";
|
|
824
|
+
plan: "plan";
|
|
825
|
+
plan_review: "plan_review";
|
|
826
|
+
test_plan: "test_plan";
|
|
827
|
+
implementation: "implementation";
|
|
828
|
+
static_review: "static_review";
|
|
829
|
+
security_review: "security_review";
|
|
830
|
+
performance_review: "performance_review";
|
|
831
|
+
adversarial_review: "adversarial_review";
|
|
832
|
+
design_review: "design_review";
|
|
833
|
+
docs_review: "docs_review";
|
|
834
|
+
ux_review: "ux_review";
|
|
835
|
+
review_report: "review_report";
|
|
836
|
+
remediation_plan: "remediation_plan";
|
|
837
|
+
verification: "verification";
|
|
838
|
+
judge_decision: "judge_decision";
|
|
839
|
+
planning_agreement: "planning_agreement";
|
|
840
|
+
implementation_agreement: "implementation_agreement";
|
|
841
|
+
verification_agreement: "verification_agreement";
|
|
842
|
+
release_summary: "release_summary";
|
|
843
|
+
release_agreement: "release_agreement";
|
|
844
|
+
escalation_context: "escalation_context";
|
|
845
|
+
run_manifest: "run_manifest";
|
|
846
|
+
codebase_context: "codebase_context";
|
|
847
|
+
test_suite: "test_suite";
|
|
848
|
+
acceptance_validation: "acceptance_validation";
|
|
849
|
+
review_findings: "review_findings";
|
|
850
|
+
task_breakdown: "task_breakdown";
|
|
851
|
+
decomposition_review: "decomposition_review";
|
|
852
|
+
task_specifications: "task_specifications";
|
|
853
|
+
pr_diff_context: "pr_diff_context";
|
|
854
|
+
}>;
|
|
855
|
+
name: z.ZodString;
|
|
856
|
+
version: z.ZodNumber;
|
|
857
|
+
checksum: z.ZodString;
|
|
858
|
+
}, z.core.$strip>>>;
|
|
859
|
+
iterationCount: z.ZodOptional<z.ZodNumber>;
|
|
860
|
+
findings: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
861
|
+
id: z.ZodString;
|
|
862
|
+
severity: z.ZodString;
|
|
863
|
+
status: z.ZodString;
|
|
864
|
+
description: z.ZodString;
|
|
865
|
+
resolutionRef: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
type: z.ZodEnum<{
|
|
867
|
+
intake_requirements: "intake_requirements";
|
|
868
|
+
canonical_specification: "canonical_specification";
|
|
869
|
+
clarification_questions: "clarification_questions";
|
|
870
|
+
clarification_answers: "clarification_answers";
|
|
871
|
+
plan: "plan";
|
|
872
|
+
plan_review: "plan_review";
|
|
873
|
+
test_plan: "test_plan";
|
|
874
|
+
implementation: "implementation";
|
|
875
|
+
static_review: "static_review";
|
|
876
|
+
security_review: "security_review";
|
|
877
|
+
performance_review: "performance_review";
|
|
878
|
+
adversarial_review: "adversarial_review";
|
|
879
|
+
design_review: "design_review";
|
|
880
|
+
docs_review: "docs_review";
|
|
881
|
+
ux_review: "ux_review";
|
|
882
|
+
review_report: "review_report";
|
|
883
|
+
remediation_plan: "remediation_plan";
|
|
884
|
+
verification: "verification";
|
|
885
|
+
judge_decision: "judge_decision";
|
|
886
|
+
planning_agreement: "planning_agreement";
|
|
887
|
+
implementation_agreement: "implementation_agreement";
|
|
888
|
+
verification_agreement: "verification_agreement";
|
|
889
|
+
release_summary: "release_summary";
|
|
890
|
+
release_agreement: "release_agreement";
|
|
891
|
+
escalation_context: "escalation_context";
|
|
892
|
+
run_manifest: "run_manifest";
|
|
893
|
+
codebase_context: "codebase_context";
|
|
894
|
+
test_suite: "test_suite";
|
|
895
|
+
acceptance_validation: "acceptance_validation";
|
|
896
|
+
review_findings: "review_findings";
|
|
897
|
+
task_breakdown: "task_breakdown";
|
|
898
|
+
decomposition_review: "decomposition_review";
|
|
899
|
+
task_specifications: "task_specifications";
|
|
900
|
+
pr_diff_context: "pr_diff_context";
|
|
901
|
+
}>;
|
|
902
|
+
name: z.ZodString;
|
|
903
|
+
version: z.ZodNumber;
|
|
904
|
+
checksum: z.ZodString;
|
|
905
|
+
}, z.core.$strip>>;
|
|
906
|
+
}, z.core.$strip>>>>;
|
|
907
|
+
humanApproval: z.ZodOptional<z.ZodObject<{
|
|
908
|
+
approvedBy: z.ZodString;
|
|
909
|
+
timestamp: z.ZodString;
|
|
910
|
+
conditions: z.ZodOptional<z.ZodString>;
|
|
911
|
+
artifactRef: z.ZodOptional<z.ZodObject<{
|
|
912
|
+
type: z.ZodEnum<{
|
|
913
|
+
intake_requirements: "intake_requirements";
|
|
914
|
+
canonical_specification: "canonical_specification";
|
|
915
|
+
clarification_questions: "clarification_questions";
|
|
916
|
+
clarification_answers: "clarification_answers";
|
|
917
|
+
plan: "plan";
|
|
918
|
+
plan_review: "plan_review";
|
|
919
|
+
test_plan: "test_plan";
|
|
920
|
+
implementation: "implementation";
|
|
921
|
+
static_review: "static_review";
|
|
922
|
+
security_review: "security_review";
|
|
923
|
+
performance_review: "performance_review";
|
|
924
|
+
adversarial_review: "adversarial_review";
|
|
925
|
+
design_review: "design_review";
|
|
926
|
+
docs_review: "docs_review";
|
|
927
|
+
ux_review: "ux_review";
|
|
928
|
+
review_report: "review_report";
|
|
929
|
+
remediation_plan: "remediation_plan";
|
|
930
|
+
verification: "verification";
|
|
931
|
+
judge_decision: "judge_decision";
|
|
932
|
+
planning_agreement: "planning_agreement";
|
|
933
|
+
implementation_agreement: "implementation_agreement";
|
|
934
|
+
verification_agreement: "verification_agreement";
|
|
935
|
+
release_summary: "release_summary";
|
|
936
|
+
release_agreement: "release_agreement";
|
|
937
|
+
escalation_context: "escalation_context";
|
|
938
|
+
run_manifest: "run_manifest";
|
|
939
|
+
codebase_context: "codebase_context";
|
|
940
|
+
test_suite: "test_suite";
|
|
941
|
+
acceptance_validation: "acceptance_validation";
|
|
942
|
+
review_findings: "review_findings";
|
|
943
|
+
task_breakdown: "task_breakdown";
|
|
944
|
+
decomposition_review: "decomposition_review";
|
|
945
|
+
task_specifications: "task_specifications";
|
|
946
|
+
pr_diff_context: "pr_diff_context";
|
|
947
|
+
}>;
|
|
948
|
+
name: z.ZodString;
|
|
949
|
+
version: z.ZodNumber;
|
|
950
|
+
checksum: z.ZodString;
|
|
951
|
+
}, z.core.$strip>>;
|
|
952
|
+
}, z.core.$strip>>;
|
|
953
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
954
|
+
inputTokens: z.ZodNumber;
|
|
955
|
+
outputTokens: z.ZodNumber;
|
|
956
|
+
totalTokens: z.ZodNumber;
|
|
957
|
+
}, z.core.$strip>>;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
export type TransitionRequest = z.infer<typeof transitionRequestSchema>;
|
|
960
|
+
export declare const agreementStatusSchema: z.ZodObject<{
|
|
961
|
+
exists: z.ZodBoolean;
|
|
962
|
+
valid: z.ZodBoolean;
|
|
963
|
+
artifact: z.ZodOptional<z.ZodObject<{
|
|
964
|
+
type: z.ZodEnum<{
|
|
965
|
+
intake_requirements: "intake_requirements";
|
|
966
|
+
canonical_specification: "canonical_specification";
|
|
967
|
+
clarification_questions: "clarification_questions";
|
|
968
|
+
clarification_answers: "clarification_answers";
|
|
969
|
+
plan: "plan";
|
|
970
|
+
plan_review: "plan_review";
|
|
971
|
+
test_plan: "test_plan";
|
|
972
|
+
implementation: "implementation";
|
|
973
|
+
static_review: "static_review";
|
|
974
|
+
security_review: "security_review";
|
|
975
|
+
performance_review: "performance_review";
|
|
976
|
+
adversarial_review: "adversarial_review";
|
|
977
|
+
design_review: "design_review";
|
|
978
|
+
docs_review: "docs_review";
|
|
979
|
+
ux_review: "ux_review";
|
|
980
|
+
review_report: "review_report";
|
|
981
|
+
remediation_plan: "remediation_plan";
|
|
982
|
+
verification: "verification";
|
|
983
|
+
judge_decision: "judge_decision";
|
|
984
|
+
planning_agreement: "planning_agreement";
|
|
985
|
+
implementation_agreement: "implementation_agreement";
|
|
986
|
+
verification_agreement: "verification_agreement";
|
|
987
|
+
release_summary: "release_summary";
|
|
988
|
+
release_agreement: "release_agreement";
|
|
989
|
+
escalation_context: "escalation_context";
|
|
990
|
+
run_manifest: "run_manifest";
|
|
991
|
+
codebase_context: "codebase_context";
|
|
992
|
+
test_suite: "test_suite";
|
|
993
|
+
acceptance_validation: "acceptance_validation";
|
|
994
|
+
review_findings: "review_findings";
|
|
995
|
+
task_breakdown: "task_breakdown";
|
|
996
|
+
decomposition_review: "decomposition_review";
|
|
997
|
+
task_specifications: "task_specifications";
|
|
998
|
+
pr_diff_context: "pr_diff_context";
|
|
999
|
+
}>;
|
|
1000
|
+
name: z.ZodString;
|
|
1001
|
+
version: z.ZodNumber;
|
|
1002
|
+
checksum: z.ZodString;
|
|
1003
|
+
}, z.core.$strip>>;
|
|
1004
|
+
missingReason: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
}, z.core.$strip>;
|
|
1006
|
+
export type AgreementStatus = z.infer<typeof agreementStatusSchema>;
|
|
1007
|
+
export declare const policyCheckOutcomeSchema: z.ZodEnum<{
|
|
1008
|
+
pass: "pass";
|
|
1009
|
+
fail: "fail";
|
|
1010
|
+
skip: "skip";
|
|
1011
|
+
}>;
|
|
1012
|
+
export type PolicyCheckOutcome = z.infer<typeof policyCheckOutcomeSchema>;
|
|
1013
|
+
export declare const policyEvaluationSchema: z.ZodObject<{
|
|
1014
|
+
policy: z.ZodString;
|
|
1015
|
+
evaluated: z.ZodBoolean;
|
|
1016
|
+
result: z.ZodEnum<{
|
|
1017
|
+
pass: "pass";
|
|
1018
|
+
fail: "fail";
|
|
1019
|
+
skip: "skip";
|
|
1020
|
+
}>;
|
|
1021
|
+
detail: z.ZodString;
|
|
1022
|
+
escalationTrigger: z.ZodOptional<z.ZodEnum<{
|
|
1023
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
1024
|
+
quality_gate_failed: "quality_gate_failed";
|
|
1025
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
1026
|
+
human_requested: "human_requested";
|
|
1027
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
1028
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
1029
|
+
confidence_too_low: "confidence_too_low";
|
|
1030
|
+
provider_failure: "provider_failure";
|
|
1031
|
+
timeout: "timeout";
|
|
1032
|
+
unrecoverable_error: "unrecoverable_error";
|
|
1033
|
+
}>>;
|
|
1034
|
+
}, z.core.$strip>;
|
|
1035
|
+
export type PolicyEvaluation = z.infer<typeof policyEvaluationSchema>;
|
|
1036
|
+
export declare const governanceOutcomeSchema: z.ZodEnum<{
|
|
1037
|
+
allowed: "allowed";
|
|
1038
|
+
denied: "denied";
|
|
1039
|
+
escalated: "escalated";
|
|
1040
|
+
}>;
|
|
1041
|
+
export type GovernanceOutcome = z.infer<typeof governanceOutcomeSchema>;
|
|
1042
|
+
export declare const governanceDecisionSchema: z.ZodObject<{
|
|
1043
|
+
timestamp: z.ZodString;
|
|
1044
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
1045
|
+
transitionRequested: z.ZodObject<{
|
|
1046
|
+
from: z.ZodString;
|
|
1047
|
+
to: z.ZodString;
|
|
1048
|
+
}, z.core.$strip>;
|
|
1049
|
+
policiesEvaluated: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1050
|
+
policy: z.ZodString;
|
|
1051
|
+
evaluated: z.ZodBoolean;
|
|
1052
|
+
result: z.ZodEnum<{
|
|
1053
|
+
pass: "pass";
|
|
1054
|
+
fail: "fail";
|
|
1055
|
+
skip: "skip";
|
|
1056
|
+
}>;
|
|
1057
|
+
detail: z.ZodString;
|
|
1058
|
+
escalationTrigger: z.ZodOptional<z.ZodEnum<{
|
|
1059
|
+
iteration_limit_exceeded: "iteration_limit_exceeded";
|
|
1060
|
+
quality_gate_failed: "quality_gate_failed";
|
|
1061
|
+
unresolvable_conflict: "unresolvable_conflict";
|
|
1062
|
+
human_requested: "human_requested";
|
|
1063
|
+
token_budget_exceeded: "token_budget_exceeded";
|
|
1064
|
+
retry_limit_exceeded: "retry_limit_exceeded";
|
|
1065
|
+
confidence_too_low: "confidence_too_low";
|
|
1066
|
+
provider_failure: "provider_failure";
|
|
1067
|
+
timeout: "timeout";
|
|
1068
|
+
unrecoverable_error: "unrecoverable_error";
|
|
1069
|
+
}>>;
|
|
1070
|
+
}, z.core.$strip>>>;
|
|
1071
|
+
outcome: z.ZodEnum<{
|
|
1072
|
+
allowed: "allowed";
|
|
1073
|
+
denied: "denied";
|
|
1074
|
+
escalated: "escalated";
|
|
1075
|
+
}>;
|
|
1076
|
+
reason: z.ZodString;
|
|
1077
|
+
artifactsInspected: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1078
|
+
type: z.ZodEnum<{
|
|
1079
|
+
intake_requirements: "intake_requirements";
|
|
1080
|
+
canonical_specification: "canonical_specification";
|
|
1081
|
+
clarification_questions: "clarification_questions";
|
|
1082
|
+
clarification_answers: "clarification_answers";
|
|
1083
|
+
plan: "plan";
|
|
1084
|
+
plan_review: "plan_review";
|
|
1085
|
+
test_plan: "test_plan";
|
|
1086
|
+
implementation: "implementation";
|
|
1087
|
+
static_review: "static_review";
|
|
1088
|
+
security_review: "security_review";
|
|
1089
|
+
performance_review: "performance_review";
|
|
1090
|
+
adversarial_review: "adversarial_review";
|
|
1091
|
+
design_review: "design_review";
|
|
1092
|
+
docs_review: "docs_review";
|
|
1093
|
+
ux_review: "ux_review";
|
|
1094
|
+
review_report: "review_report";
|
|
1095
|
+
remediation_plan: "remediation_plan";
|
|
1096
|
+
verification: "verification";
|
|
1097
|
+
judge_decision: "judge_decision";
|
|
1098
|
+
planning_agreement: "planning_agreement";
|
|
1099
|
+
implementation_agreement: "implementation_agreement";
|
|
1100
|
+
verification_agreement: "verification_agreement";
|
|
1101
|
+
release_summary: "release_summary";
|
|
1102
|
+
release_agreement: "release_agreement";
|
|
1103
|
+
escalation_context: "escalation_context";
|
|
1104
|
+
run_manifest: "run_manifest";
|
|
1105
|
+
codebase_context: "codebase_context";
|
|
1106
|
+
test_suite: "test_suite";
|
|
1107
|
+
acceptance_validation: "acceptance_validation";
|
|
1108
|
+
review_findings: "review_findings";
|
|
1109
|
+
task_breakdown: "task_breakdown";
|
|
1110
|
+
decomposition_review: "decomposition_review";
|
|
1111
|
+
task_specifications: "task_specifications";
|
|
1112
|
+
pr_diff_context: "pr_diff_context";
|
|
1113
|
+
}>;
|
|
1114
|
+
name: z.ZodString;
|
|
1115
|
+
version: z.ZodNumber;
|
|
1116
|
+
checksum: z.ZodString;
|
|
1117
|
+
}, z.core.$strip>>>;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
export type GovernanceDecision = z.infer<typeof governanceDecisionSchema>;
|